13 Replies Latest reply on Sep 4, 2012 9:39 AM by Giuliano Aparecido

    Seam Component in Web Service

    Giuliano Aparecido Newbie

      Hi,

       

      Configuration: JBoss AS 4.2.2, Axis2 1.4.1, JDK 1.6_07, eclipse Indigo


      I have posted some questions before about the configuration of the web services, now I think the issue is not in the configuration any more.
      We have a seam project and I need to implement a web service (a new project) to login in the first project. The web service will be a .war file.
      I can not migrate the system to new versions of JBoss, etc...
      I am testing the web service alone yet, I didn't create the .war and put in our other project.

       

      I am using Axis2 and the web service is deployed fine.
      I separated the business logic from the service implementation. So, in the service implementation I need to call this seam component (business logic).
      I am trying to use Component.getInstance(), but I am getting error.

       

      First I got "No application context active".

       

      Then I searched on the internet and found some "solutions".
      I tried many, like:

       

      Lifecycle.beginCall() before using the component....

       

      and:

       

              MockServletContext servletContext = new MockServletContext();

             

              ServletLifecycle.beginApplication(servletContext);

             

              FactoryFinder.setFactory(FactoryFinder.APPLICATION_FACTORY, MockApplicationFactory.class.getName());

              new Initialization(servletContext).create().init();

              ((Init) servletContext.getAttribute(Seam.getComponentName(Init.class))).setDebug(false);

       

      Now I am getting the erroe of nullPointerException, because Component.getInstance does not find the component.

       

      What can I do?
      Any idea?

       

      Thanks!

        • 1. Re: Seam Component in Web Service
          Martin Kouba Master

          Hi Giuliano,

           

          I would either use Lifecycle#beginCall() and Lifecycle#endCall() during endpoint invocation - no servlet context mocking - or do some lower level integration via ContextualHttpServletRequest (provided Axis2 has some extension points).

          1 of 1 people found this helpful
          • 2. Re: Seam Component in Web Service
            Giuliano Aparecido Newbie

            Hi Martin,

             

            Thanks for the quick reply

             

            I will try with ContextualHttpServletRequest and post the results here.

            • 3. Re: Seam Component in Web Service
              Giuliano Aparecido Newbie

              One problem is that the web service is the implementation of a customer interface. Basically, the users will login in a cloud system (provided by a customer) and will have a lot of softwares (saas) for using. For this integration with this cloud, the web service needs to implement the inteface provided by the customer (from the cloud). That's because the cloud system calls specifc method, like createInstance and createUsers...
              Using ContextualHttpServletRequest, I would have to implement methods like getResources and I would lose the integration with the cloud...

              Like in this page: http://seamframework.org/Documentation/ReplacingServletsWithSeamResources


              Anyway, thanks!

               

              Any other idea?

              • 4. Re: Seam Component in Web Service
                Martin Kouba Master

                I'm afraid I'm not following you... What does it mean "lose the integration with the cloud"?

                 

                Anyway Lifecycle#beginCall() is working, isn't it?

                • 5. Re: Seam Component in Web Service
                  Giuliano Aparecido Newbie

                  Sorry, I wasn't clear hehe

                   

                  For example, the cloud system calls the method createInstance when the application is subscribed. That's why I need to implemented the customer interface (because of these methods).
                  As I understood (reading the documentation I passed the link before), I need to create some methods which will me called everytime, so I would lose the integration because the specific methods (like createInstance) would be called.
                  Am I wrong?
                  I am already tired haha

                   

                  I tried the Lifecycle.beginCall() before but it wasn't working:

                  It throws:

                  17:02:24,438 INFO  [PhaseInterceptorChain] Interceptor has thrown exception, unwinding now

                  java.lang.RuntimeException: java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application

                            at org.jboss.wsf.stack.cxf.AbstractInvoker.handleException(AbstractInvoker.java:147)

                            at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:116)

                            at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:56)

                            at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)

                            at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:92)

                            at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:221)

                            at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:78)

                            at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:92)

                            at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:214)

                            at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:157)

                            at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:61)

                            at org.jboss.wsf.stack.cxf.CXFServletExt.service(CXFServletExt.java:152)

                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                            at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

                            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

                            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

                            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

                            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

                            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

                            at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

                            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

                            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                            at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

                            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

                            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

                            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

                            at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

                            at java.lang.Thread.run(Thread.java:619)

                  Caused by: java.lang.IllegalStateException: Attempted to invoke a Seam component outside an initialized application

                            at org.jboss.seam.contexts.Lifecycle.getApplication(Lifecycle.java:36)

                            at org.jboss.seam.contexts.Lifecycle.beginCall(Lifecycle.java:88)

                            at at.prosigma.fujitsu.service.FujitsuIntegrationServiceImpl.createUsers(FujitsuIntegrationServiceImpl.java:75)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                            at java.lang.reflect.Method.invoke(Method.java:597)

                            at org.jboss.wsf.container.jboss42.DefaultInvocationHandler.invoke(DefaultInvocationHandler.java:106)

                            at org.jboss.wsf.stack.cxf.AbstractInvoker.invoke(AbstractInvoker.java:111)

                            ... 29 more

                  • 6. Re: Seam Component in Web Service
                    Martin Kouba Master

                    Hm, that stack trace is very strange. Looks like your Seam app is not properly initialized. Do you have it  properly configured (Seam listener, seam.properties, etc.)? ...see also http://docs.jboss.org/seam/2.2.2.Final/reference/en-US/html/configuration.html

                    • 7. Re: Seam Component in Web Service
                      Giuliano Aparecido Newbie

                      Hi Martin,

                       

                      I am new in JBoss Seam...so maybe it is some configuration...
                      We have an application in Seam already...for the web service, I created a "Dynamic Web project" and the web service based in the service implementation class...
                      I will see the configuration...thanks

                      • 8. Re: Seam Component in Web Service
                        Giuliano Aparecido Newbie

                        I tried to set the configuration files in this web service and now I got this issue:

                         

                        09:54:35,652 ERROR [[/profilerFujitsuCloud]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener

                        java.lang.RuntimeException: Resource providers must be application-scoped components

                                  at org.jboss.seam.init.Initialization.installComponents(Initialization.java:1087)

                                  at org.jboss.seam.init.Initialization.init(Initialization.java:720)

                                  at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)

                                  at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)

                                  at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)

                                  at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

                                  at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

                                  at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

                                  at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

                                  at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

                                  at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                                  at org.jboss.web.WebModule.startModule(WebModule.java:83)

                                  at org.jboss.web.WebModule.startService(WebModule.java:61)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy44.start(Unknown Source)

                                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                                  at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

                                  at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

                                  at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

                                  at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy45.start(Unknown Source)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy9.deploy(Unknown Source)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy4.start(Unknown Source)

                                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy5.deploy(Unknown Source)

                                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

                                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

                                  at org.jboss.Main.boot(Main.java:200)

                                  at org.jboss.Main$1.run(Main.java:508)

                                  at java.lang.Thread.run(Thread.java:619)

                        09:54:35,667 ERROR [StandardContext] Error listenerStart

                        09:54:35,667 ERROR [StandardContext] Context [/profilerFujitsuCloud] startup failed due to previous errors

                        09:54:35,840 ERROR [STDERR] log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.

                        09:54:35,996 WARN  [ServiceController] Problem starting service jboss.web.deployment:war=profilerFujitsuCloud.war,id=-1093800538

                        org.jboss.deployment.DeploymentException: URL file:/D:/FutjitsuIntegration/jboss-4.2.2.GA/server/default/tmp/deploy/tmp40628profilerFujitsuCloudEAR.ear-contents/profilerFujitsuCloud-exp.war/ deployment failed

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

                                  at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                                  at org.jboss.web.WebModule.startModule(WebModule.java:83)

                                  at org.jboss.web.WebModule.startService(WebModule.java:61)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy44.start(Unknown Source)

                                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                                  at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

                                  at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

                                  at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

                                  at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy45.start(Unknown Source)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy9.deploy(Unknown Source)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy4.start(Unknown Source)

                                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy5.deploy(Unknown Source)

                                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

                                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

                                  at org.jboss.Main.boot(Main.java:200)

                                  at org.jboss.Main$1.run(Main.java:508)

                                  at java.lang.Thread.run(Thread.java:619)

                        09:54:35,996 ERROR [MainDeployer] Could not start deployment: file:/D:/FutjitsuIntegration/jboss-4.2.2.GA/server/default/tmp/deploy/tmp40628profilerFujitsuCloudEAR.ear-contents/profilerFujitsuCloud.war

                        org.jboss.deployment.DeploymentException: URL file:/D:/FutjitsuIntegration/jboss-4.2.2.GA/server/default/tmp/deploy/tmp40628profilerFujitsuCloudEAR.ear-contents/profilerFujitsuCloud-exp.war/ deployment failed

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:379)

                                  at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

                                  at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                                  at org.jboss.web.WebModule.startModule(WebModule.java:83)

                                  at org.jboss.web.WebModule.startService(WebModule.java:61)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy44.start(Unknown Source)

                                  at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                                  at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

                                  at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

                                  at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

                                  at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy45.start(Unknown Source)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy9.deploy(Unknown Source)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

                                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

                                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                  at $Proxy0.start(Unknown Source)

                                  at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy4.start(Unknown Source)

                                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                  at java.lang.reflect.Method.invoke(Method.java:597)

                                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                  at $Proxy5.deploy(Unknown Source)

                                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

                                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

                                  at org.jboss.Main.boot(Main.java:200)

                                  at org.jboss.Main$1.run(Main.java:508)

                                  at java.lang.Thread.run(Thread.java:619)

                         

                        I think I need to change the structure or set again the configuration files.

                         

                        Any idea?

                        • 9. Re: Seam Component in Web Service
                          Martin Kouba Master

                          Your app contains a Seam resource component (something that extends AbstractResource) which is not application scoped -> use @Scope(APPLICATION).

                          1 of 1 people found this helpful
                          • 10. Re: Seam Component in Web Service
                            Giuliano Aparecido Newbie

                            Thank you very much Martin.

                             

                            Now it is deployed fine and no error is throw.

                            • 11. Re: Seam Component in Web Service
                              Giuliano Aparecido Newbie

                              I am having a new issue now, about the EntityManager...

                               

                              When I started the server, it throws:

                              org.jboss.seam.InstantiationException: Could not instantiate Seam component: entityManagerFactory

                                        at org.jboss.seam.Component.newInstance(Component.java:2096)

                                        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)

                                        at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)

                                        at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:112)

                                        at org.jboss.seam.init.Initialization.init(Initialization.java:727)

                                        at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)

                                        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)

                                        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)

                                        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)

                                        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)

                                        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

                                        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)

                                        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)

                                        at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)

                                        at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)

                                        at org.jboss.web.WebModule.startModule(WebModule.java:83)

                                        at org.jboss.web.WebModule.startService(WebModule.java:61)

                                        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                        at $Proxy0.start(Unknown Source)

                                        at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                        at $Proxy44.start(Unknown Source)

                                        at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)

                                        at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)

                                        at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)

                                        at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)

                                        at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                        at $Proxy45.start(Unknown Source)

                                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)

                                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                        at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                        at $Proxy9.deploy(Unknown Source)

                                        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)

                                        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)

                                        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)

                                        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)

                                        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)

                                        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)

                                        at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)

                                        at $Proxy0.start(Unknown Source)

                                        at org.jboss.system.ServiceController.start(ServiceController.java:417)

                                        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                        at $Proxy4.start(Unknown Source)

                                        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)

                                        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)

                                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)

                                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)

                                        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)

                                        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)

                                        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)

                                        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

                                        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                                        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)

                                        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)

                                        at $Proxy5.deploy(Unknown Source)

                                        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)

                                        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)

                                        at org.jboss.Main.boot(Main.java:200)

                                        at org.jboss.Main$1.run(Main.java:508)

                                        at java.lang.Thread.run(Thread.java:619)

                              Caused by: java.lang.RuntimeException: exception invoking: startup

                                        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:148)

                                        at org.jboss.seam.Component.callComponentMethod(Component.java:2209)

                                        at org.jboss.seam.Component.callCreateMethod(Component.java:2124)

                                        at org.jboss.seam.Component.newInstance(Component.java:2084)

                                        ... 141 more

                              Caused by: java.lang.reflect.InvocationTargetException

                                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                                        at java.lang.reflect.Method.invoke(Method.java:597)

                                        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)

                                        at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:138)

                                        ... 144 more

                              Caused by: java.lang.ClassFormatError: Name index 0 in LocalVariableTable has bad constant type in class file org/hibernate/cfg/AnnotationBinder

                                        at java.lang.ClassLoader.defineClass1(Native Method)

                                        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)

                                        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

                                        at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814)

                                        at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)

                                        at org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)

                                        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)

                                        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)

                                        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

                                        at org.hibernate.cfg.AnnotationConfiguration.addPackage(AnnotationConfiguration.java:165)

                                        at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:919)

                                        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:792)

                                        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:186)

                                        at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:246)

                                        at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)

                                        at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)

                                        at org.jboss.seam.persistence.EntityManagerFactory.createEntityManagerFactory(EntityManagerFactory.java:85)

                                        at org.jboss.seam.persistence.EntityManagerFactory.startup(EntityManagerFactory.java:50)

                               

                               

                              persistence.xml

                              <persistence-unit name="profilerFujitsuCloud">

                                    <provider>org.hibernate.ejb.HibernatePersistence</provider>

                                    <jta-data-source>java:/profilerDatasource</jta-data-source>

                                    <properties>

                                       <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>

                                       <property name="hibernate.hbm2ddl.auto" value="none"/>

                                       <property name="hibernate.show_sql" value="false"/>

                                       <property name="hibernate.format_sql" value="false"/>

                                       <property name="jboss.entity.manager.factory.jndi.name" value="java:/profilerEntityManagerFactory"/>

                                       <property name="c3p0.acquire_increment" value="30"/>

                                       <property name="c3p0.idle_test_period" value="100"/> <!-- seconds -->

                                       <property name="c3p0.max_size" value="100"/>

                                       <property name="c3p0.max_statements" value="50"/>

                                       <property name="c3p0.min_size" value="10"/>

                                       <property name="c3p0.timeout" value="100"/>  <!-- seconds -->

                                    </properties>

                                 </persistence-unit>

                              </persistence>

                               

                               

                              components.xml

                               

                              <core:init jndi-pattern="profilerFujitsuCloud/\#{ejbName}/local" debug="true"/>

                              <core:manager concurrent-request-timeout="2000"

                                conversation-id-parameter="cid" conversation-timeout="1200000" parent-conversation-id-parameter="pid"/>

                               

                              <persistence:entity-manager-factory name="entityManagerFactory" persistence-unit-name="profilerFujitsuCloud" />

                              <persistence:managed-persistence-context name="entityManager" auto-create="true" entity-manager-factory="#{entityManagerFactory}" />

                               

                              datasource (profilerFujitsuCloud-ds.xml)

                              <datasources>

                                

                                 <local-tx-datasource>

                                    <jndi-name>profilerDatasource</jndi-name>

                                    <!-- DO NOT COMMIT CHANGES TO THIS FILE TO CVS! OTHERWISE HUDSON BUILD WILL FAIL! -->

                                    <connection-url>jdbc:sqlserver://ws08sql64:1433;databaseName=hudson_profiler</connection-url>

                                    <driver-class>com.microsoft.sqlserver.jdbc.SQLServerDriver</driver-class>

                                    <user-name>prosigma</user-name>

                                    <password>prosig01</password>

                                 </local-tx-datasource>

                              </datasources>

                               

                              Any idea??

                              • 12. Re: Seam Component in Web Service
                                Martin Kouba Master

                                Looks like some hibernate libraries (hibernate-annotations) are corrupted (see the cause: ClassFormatError) or there might be a jdk conflict... try to cleanup your local maven repo. Have no other idea...

                                • 13. Re: Seam Component in Web Service
                                  Giuliano Aparecido Newbie

                                  Thanks for helping...


                                  I haven't found any solution for this issue yet...

                                   

                                  But I have another question: what is the best way to call a seam application (one project) in another seam application (another project) ? Because the web service needs to instantiate another application (project).