1 2 Previous Next 25 Replies Latest reply on Oct 15, 2012 3:27 PM by anikulin Go to original post
      • 15. Re: Camel Rest binding JSON
        anikulin

        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

          If you don't mind, could you attach your project here?

          • 17. Re: Camel Rest binding JSON
            anikulin

            Yes, sure. No problems.

            • 18. Re: Camel Rest binding JSON
              mageshbk

              It is missing one dependency magick-model. Can you attach that jar?

              • 19. Re: Camel Rest binding JSON
                anikulin

                Sure.

                • 20. Re: Camel Rest binding JSON
                  mageshbk

                  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

                    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

                      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

                        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

                          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

                            Thanks a lot. I've solved my problem.

                            1 2 Previous Next