6 Replies Latest reply on Oct 18, 2010 12:12 PM by andreas_back

    Problem starting web service

    Fausto De La Torre Newbie

      Hi, I have a problem that I don't understand, a jar module which contains ejb services and one webservice, when is deployed generates the next error, but this happen only in a specific enviroment and I don't know what is the cause because in another enviroment works fine, I have compared two instances in two enviroments and looks the same, except in the instance where error happens are  more libraries than the other, I can't delete this files.

       

      If anyone can give a clue, thanks so much.

       

       

      2010-04-28 09:40:18,855 WARN  [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jar=genNumeracionExtraWorkflow-1.0.jar,name=ServicioWebSecuencialBean,servi

       

      ce=EJB3

       

      java.lang.RuntimeException: Error creating callback handler for bean package.secuenciales.servicio.ServicioWebSecuencialBean

       

              at org.jboss.ejb3.EJBContainer.createCallbackHandler(EJBContainer.java:688)

       

              at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:580)

       

              at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:154)

       

              at org.jboss.ejb3.stateless.StatelessContainer.start(StatelessContainer.java:96)

       

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

       

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

       

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

       

              at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)

       

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

       

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

       

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

       

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

       

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

       

              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.GeneratedMethodAccessor10.invoke(Unknown Source)

       

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

       

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

       

              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 $Proxy697.start(Unknown Source)

       

              at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)

       

              at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:302)

       

              at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:363)

       

              at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:83)

       

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

       

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

       

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

       

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

       

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

       

              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.GeneratedMethodAccessor10.invoke(Unknown Source)

       

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

       

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

       

              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 $Proxy34.start(Unknown Source)

       

              at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:525)

       

              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:592)

       

              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 $Proxy35.start(Unknown Source)

       

              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 sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source)

       

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

       

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

       

              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.GeneratedMethodAccessor4.invoke(Unknown Source)

       

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

       

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

       

              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.GeneratedMethodAccessor10.invoke(Unknown Source)

       

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

       

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

       

              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:592)

       

              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:595)

       

      Caused by: java.lang.NullPointerException

       

              at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseContainerSuperClassFromAnnotationsOnly(InterceptorInfoRepository.java:510)

       

              at org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialiseFromAnnotations(InterceptorInfoRepository.java:498)

       

              at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getOrInitialiseFromAnnotations(InterceptorInfoRepository.java:485)

       

              at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getBeanClassInterceptors(InterceptorInfoRepository.java:180)

       

              at org.jboss.ejb3.interceptor.InterceptorInfoRepository.getBeanClassPostConstructs(InterceptorInfoRepository.java:160)

       

              at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.<init>(LifecycleInterceptorHandler.java:71)

       

              at org.jboss.ejb3.EJBContainer.createCallbackHandler(EJBContainer.java:683)

        • 1. Re: Problem starting web service
          jaikiran pai Master

          Which version of JBoss AS is this?

           

          Fausto De La Torre wrote:

          I have compared two instances in two enviroments and looks the same, except in the instance where error happens are  more libraries than the other, I can't delete this files.

           

          Which exact libraries and where are they placed?

          • 2. Re: Problem starting web service
            andreas_back Novice

            Hello Jaikiran,

             

            exactly the same exception occours for

             

                 *      JBoss 4.2.3 (fresh unzipped)

                 *      JBossWS 3.1.1.

             

            if a jar-archive is started for classes that are generated by wsconsume - without any further changes for the attached WSDL.

             

            The attached jar-archive has been stored under default/deploy.

             

            With best regards,

             

            Andreas

            • 3. Re: Problem starting web service
              jaikiran pai Master

              andreas_back wrote:

               

              Hello Jaikiran,

               

              exactly the same exception occours for

               

                   *      JBoss 4.2.3 (fresh unzipped)

               

              Any reason why you are using 4.2.3?  4.2.x versions weren't fully EJB3 compliant. Also, that version is very old and is no longer being developed or even bug  fixed. So even if it turns out to be a bug in the JBoss EJB3 code, we won't be able to provide a fix, unless ofcourse if you are using the enterprise (paid) version for which patches can be provided.

              • 4. Re: Problem starting web service
                andreas_back Novice

                Hello Jaikiran,

                 

                thank you for your response!

                 

                Someone else - the architect of platform where we deliver a solution for - has done the decision. Therefore it is used by us - no chance to change it. The architect prefers to wait for JBoss 6.0.final instead of migrating to JBoss 5.x.

                 

                Perhaps a non-stuff member of the comminity could find the version info useful.

                 

                > we won't be able to provide a fix, unless of course if you are using the  enterprise (paid) version for which patches can be provided

                 

                Yes, I'd say that I understood some implications of the Red Hat/JBoss business model ...

                 

                With best regards,

                 

                Andreas

                • 5. Re: Problem starting web service
                  jaikiran pai Master

                  I haven't looked into the details of it, but a quick glance of that code you posted shows:

                   

                  import javax.ejb.Stateless;
                  import javax.jws.WebService;
                  import org.jboss.wsf.spi.annotation.WebContext;
                  
                  @Stateless
                  @WebService(name="GetBasisartikelService")
                  @WebContext(contextRoot="/jaxws-samples-retail")
                  public interface GetBasisartikelService
                  

                   

                   

                  So you are marking an interface as a @Stateless? That's not allowed.

                  • 6. Re: Problem starting web service
                    andreas_back Novice

                    Hello Jaikiran,

                     

                    yes, of course, you are right, that is not allowed :-(

                     

                    One point was that - obviously - wsconsume produces classes for the client consumption of the webservice, not classes that are ready to use on the server. The server bean has to be implemented manually. That made it running.

                     

                    With best regards,

                     

                    Andreas