-
15. Re: Camel Rest binding JSON
anikulin Oct 9, 2012 3:28 PM (in response to mageshbk)Unfortunatelly it doesn't work, I've added
jackson.jackson-mapper-asl
dependency in module.xml file of RESTeasy module and tried to use this syntax<module name="org.jboss.resteasy.resteasy-jackson-provider" export="true"/>
also, but it throws the same exception. -
16. Re: Camel Rest binding JSON
mageshbk Oct 9, 2012 10:49 PM (in response to anikulin)If you don't mind, could you attach your project here?
-
17. Re: Camel Rest binding JSON
anikulin Oct 11, 2012 1:27 PM (in response to mageshbk)Yes, sure. No problems.
-
tradeservice.zip 130.8 KB
-
-
18. Re: Camel Rest binding JSON
mageshbk Oct 11, 2012 5:45 PM (in response to anikulin)It is missing one dependency magick-model. Can you attach that jar?
-
19. Re: Camel Rest binding JSON
anikulin Oct 12, 2012 4:54 AM (in response to mageshbk)Sure.
-
magick-model-1.0.jar 4.7 KB
-
-
20. Re: Camel Rest binding JSON
mageshbk Oct 12, 2012 8:19 AM (in response to anikulin)Anton,
I see this error after deploying
Caused by: org.jboss.modules.ModuleNotFoundException: Module com.magick.models:main is not found in local module loader @cb6009 (roots: C:\ESB\release\jboss-as7\standalone\dist\target\switchyard-as7-0.6\modules at org.jboss.modules.LocalModuleLoader.findModule(LocalModuleLoader.java:126) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.ModuleLoader.loadModuleLocal(ModuleLoader.java:275) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.ModuleLoader.preloadModule(ModuleLoader.java:222) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.LocalModuleLoader.preloadModule(LocalModuleLoader.java:94) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.Module.addPaths(Module.java:841) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.Module.link(Module.java:1181) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.Module.relinkIfNecessary(Module.java:1207) [jboss-modules.jar:1.1.1.GA] at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:208) [jboss-modules.jar:1.1.1.GA] at org.jboss.as.server.moduleservice.ModuleLoadService.start(ModuleLoadService.java:70) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
Are you trying to deploy your application jars as modules? If so, then you may not have created a proper dependency tree. My advice would be to bundle your common jars along with your application. This would take care of attaching the needed dependencies on deployment. You can go the module route too, but then you will have to find and add all the dependencies tags.
-
21. Re: Camel Rest binding JSON
mageshbk Oct 12, 2012 8:51 AM (in response to mageshbk)If I use the following syntax then you problem gets solved
<module name="org.codehaus.jackson.jackson-mapper-asl" export="true"/>
But I am not sure that is the right way to go. Anyway, I iwll see why the case as it is now. But still I would recommend to deploy applications jars into the deployment folder rather than as modules.
-
22. Re: Camel Rest binding JSON
anikulin Oct 12, 2012 5:55 PM (in response to mageshbk)Have you added
<module name="org.codehaus.jackson.jackson-mapper-asl" export="true"/>
to module.xml file of RESTeasy module?To bundle common jars along with application, does it mean to deploy the dependency jars in deployment folder along with the main app?
Thanks for help.
-
23. Re: Camel Rest binding JSON
mageshbk Oct 13, 2012 1:36 AM (in response to anikulin)You can add it to com.magick.models or the RESTEasy module. Both ways it should work. Better to deploy it along with main app or a common jar that is included as a dependency in your app. I beleive we should be asking this question to the AS7 guys.
-
24. Re: Camel Rest binding JSON
mageshbk Oct 14, 2012 2:50 AM (in response to anikulin)Okay here is the thread that mentions the details about deploying your common jars as you please. For the RESTEasy module, I was under the impression that these dependencies were already exported. But does not seem to be so. I have raised a JIRA for RESTEasy here:
https://issues.jboss.org/browse/RESTEASY-786
Until we get that sorted, please add explicit dependency for jackson-mapper and any other modules needed, either in your common jar manifest or the common jar module.xml
-
25. Re: Camel Rest binding JSON
anikulin Oct 15, 2012 3:27 PM (in response to mageshbk)Thanks a lot. I've solved my problem.