8 Replies Latest reply on Jul 3, 2008 7:19 AM by amitsh

    Error on Jboss 4.2.2

    amitsh

      HI Friends,

      I have been working towards migrating from Jboss 4.0.2 to Jboss 4.2.2.

      Now for some details we have three different server configured using the binding.xml Where one server handles web requests, One where we have our sessions beans and other where we have our web server Api.

      As earlier we were using Jboss 4.0.2 we are unable to have the latest jboss portal bundled. which has resulted in doing the migration from 4.0.2 to 4.2.2

      Now just to start I just followed the build process which creates the servers for me inside jboss-4.2.2/server folder.

      Just to test whether things work on jboss-4.2.2, I am just starting one of the server without deploying any of our application code.

      But this give me the below error and server stops.
      stack trace

      
      14:56:49,083 INFO [Server] Starting JBoss (MX MicroKernel)...
      14:56:49,083 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
      14:56:49,083 INFO [Server] Home Dir: D:\server\jboss-4.2.2
      14:56:49,099 INFO [Server] Home URL: file:/D:/server/jboss-4.2.2/
      14:56:49,099 INFO [Server] Patch URL: null
      14:56:49,099 INFO [Server] Server Name: Business
      14:56:49,099 INFO [Server] Server Home Dir: D:\server\jboss-4.2.2\server\Business
      14:56:49,099 INFO [Server] Server Home URL: file:/D:/server/jboss-4.2.2/server/Business/
      14:56:49,099 INFO [Server] Server Log Dir: D:\server\jboss-4.2.2\server\Business\log
      14:56:49,099 INFO [Server] Server Temp Dir: D:\server\jboss-4.2.2\server\Business\tmp
      14:56:49,208 INFO [Server] Root Deployment Filename: jboss-service.xml
      14:56:49,911 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc.
      14:56:49,911 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_09-b03,Sun Microsystems Inc.
      14:56:49,911 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      Failed to boot JBoss:
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       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:585)14:56:50,474 INFO [Server] Core system initialized
      14:56:52,083 INFO [SystemPropertiesService] Loaded system properties from: file:/D:/server//properties/business.properties
      14:56:52,083 INFO [SystemPropertiesService] Loaded system properties from: file:/D:/server//properties/reporting.properties
      14:56:52,083 INFO [SystemPropertiesService] Loaded system properties from: file:/D:/server//license/License.properties
      14:56:52,817 ERROR [MainDeployer] Could not create deployment: file:/D:/server/jboss-4.2.2/server/Business/conf/jboss-service.xml
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
       at org.jboss.system.ServiceController.install(ServiceController.java:226)
       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:585)
       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.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       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:585)
       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.reflect.UndeclaredThrowableException
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       ... 36 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/xml/binding/ObjectModelFactory
       at org.jboss.security.auth.login.XMLLoginConfig.<init>(XMLLoginConfig.java:33)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
       ... 38 more
      
       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.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       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:585)
       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.reflect.UndeclaredThrowableException
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
       ... 36 more
      Caused by: java.lang.NoClassDefFoundError: org/jboss/xml/binding/ObjectModelFactory
       at org.jboss.security.auth.login.XMLLoginConfig.<init>(XMLLoginConfig.java:33)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)14:56:52,880 INFO [Server] Runtime shutdown hook called, forceHalt: true
      14:56:52,880 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
      14:56:52,880 INFO [Server] Shutdown complete
      Shutdown complete
      Halting VM
      
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
       at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
       at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
       at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
       ... 38 more
      
      
      


        • 1. Re: Error on Jboss 4.2.2
          jaikiran

           

          Now just to start I just followed the build process which creates the servers for me inside jboss-4.2.2/server folder.


          Are you sure the server configurations are being created correctly? How do you do it through the build process? Just copy from "default" configuration?

          Caused by: java.lang.NoClassDefFoundError: org/jboss/xml/binding/ObjectModelFactory


          Looks like you are missing some jboss related jar file from the classpath of the server configuration you created ( D:\server\jboss-4.2.2\server\Business)


          • 2. Re: Error on Jboss 4.2.2
            amitsh

            Hi Jaikiran,

            Thanks for the prompt reply.

            Before I try what you suggested ... I have some query.

            Our application has jboss/deploy , jboss/conf etc as part of our codebase (that is whatever minimal that is required is there, and as far as I have info it is from default jboss server only). Now using these files we have an ant script which creates the server for us inside Jboss/server folder.

            Now the query that I have does jboss-4.2.2 have any compatibility issue. (i.e. server created by my build process presently has default server setting from Jboss-4.0.2

            If some one can give some direction on as what are changes in the Jboss 4.2.2 architechture compared jboss-4.0.2

            Regards
            Amit

            • 3. Re: Error on Jboss 4.2.2
              peterj

              How are you creating the new server configuration? A straight copy from server/default to server/Business? What configuration files are you changing?

              Use the windiff tool (one of the support tools provided with XP) to get a listing of the files that have been renamed or moved (there are many). Or it might be easier to look at your ant script to see what files it is attempting to modify, and look at where they are in 4.2.2. We can help you on specific files that you might have trouble finding.

              • 4. Re: Error on Jboss 4.2.2
                amitsh

                Thanks Peter,

                I already Did what you are suggesting :-).
                now this is what I did I manually created two server from Default server provided in jboss. Then as we do in for our application I did the modification to the jboss services xml file and pointed to the bindings.xml file.

                I was able to start both server simultaneously with some other minor changes.

                But After success of this I deployed the application as we do in our application and have added the required libraries. Now when I start server I am unable run my application.
                FYI we are using EJB 2 (Session Beans) and Hibernate 3 which is part of the business layer and this resides in one server. We then have struts 1.x and this is part of other server.

                Please let me know if we have to some other configuration to work with ejb2 on jboss 4.2.2

                I dont have stack trace with me at this moment.

                Please let me know if you see some issue

                Thanks
                Amit

                • 5. Re: Error on Jboss 4.2.2
                  peterj

                   

                  Now when I start server I am unable run my application.


                  We really need to see a stack trace or more info on what you mean by "unable to run" before we could even guess at what the issue is.

                  • 6. Re: Error on Jboss 4.2.2
                    amitsh

                    HI Peter,

                    I have able to have my application running, thanks for your valuable suggestions.
                    I had missed to include

                    jboss-hibernate.deployer
                    which we had in jboss4.0.2 into jboss-4.2.2 custom servers.

                    The only problem that remains is Web service. As Jboss 4.0.2 had
                    jboss-ws4ee.sar
                    and this has been replaced with jbossws.sar in Jboss-4.2.2.
                    I have been looking for details as to do have to do some modification to use jbossws or we can still use jboss-ws4ee instead of jbossws.sar in jboss4.2.2.

                    Please let me know if have some details about this.

                    Thanking you in advance.

                    Regards
                    Amit Sharma


                    • 7. Re: Error on Jboss 4.2.2
                      peterj

                      I have only used the new JAX-WS based web services as offered in 4.2.x, I never used web services before that. I do not know if you can bring your web services forward, or if you will have to reimplement them. You will, at minimum, probably have to regenerate the stubs using wstools. You might ask about this in the Web Services forum: http://www.jboss.com/index.html?module=bb&op=viewforum&f=200

                      • 8. Re: Error on Jboss 4.2.2
                        amitsh

                        Thanks a lot Peter !!!

                        I will take in jbossws forum

                        Regards
                        Amit Sharma