11 Replies Latest reply on Feb 17, 2009 1:55 AM by jaikiran

    Start-Error under UNIX

    ceene

      Hello all

      I have a big problem. I work normaly with Eclipse, JBoss 4.2.3 under WinXP and Seam.

      Now I must deploy my Project on JBoss 4.2.3 under UNIX and I get the following error

      19:47:56,987 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=ASSLoginBean.jar
      java.lang.TypeNotPresentException: Type org.jboss.seam.annotations.Name not present
       at com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
       at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
       at java.lang.Class.getDeclaredAnnotations(Class.java:1628)
       at java.lang.Class.getAnnotations(Class.java:1589)
       at java.lang.Class.getAnnotation(Class.java:1569)
       at org.jboss.aop.annotation.AnnotationElement.getVisibleAnnotation(AnnotationElement.java:88)
       at org.jboss.aop.Advisor.resolveAnnotation(Advisor.java:321)
       at org.jboss.ejb3.SessionContainer.checkForDuplicateLocalAndRemoteInterfaces(SessionContainer.java:126)
       at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:119)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:492)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)
       at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423)
       at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)
       at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:599)
       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:193)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
      


      Under WinXP everthing is fine.

        • 1. Re: Start-Error under UNIX
          jaikiran

           

          at com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
          at java.lang.Class.getDeclaredAnnotations(Class.java:1628)


          Which JDK do you use on the UNIX system? Please post the initial few logs from the console which contains the operating system and JDK information. Also what does this output (both on Windows and Unix)

          java -version


          • 2. Re: Start-Error under UNIX
            ceene

            JDK: 1.6.0

            19:46:39,032 INFO [Server] Starting JBoss (MX MicroKernel)...
            19:46:39,036 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
            19:46:39,046 INFO [Server] Home Dir: /disc5/jboss-4.2.3.GA
            19:46:39,047 INFO [Server] Home URL: file:/disc5/jboss-4.2.3.GA/
            19:46:39,050 INFO [Server] Patch URL: null
            19:46:39,050 INFO [Server] Server Name: default
            19:46:39,051 INFO [Server] Server Home Dir: /disc5/jboss-4.2.3.GA/server/default
            19:46:39,052 INFO [Server] Server Home URL: file:/disc5/jboss-4.2.3.GA/server/default/
            19:46:39,053 INFO [Server] Server Log Dir: /disc5/jboss-4.2.3.GA/server/default/log
            19:46:39,063 INFO [Server] Server Temp Dir: /disc5/jboss-4.2.3.GA/server/default/tmp
            19:46:39,064 INFO [Server] Root Deployment Filename: jboss-service.xml
            19:46:40,263 INFO [ServerInfo] Java version: 1.6.0,IBM Corporation
            19:46:40,263 INFO [ServerInfo] Java VM: IBM J9 VM 2.4,IBM Corporation
            19:46:40,263 INFO [ServerInfo] OS-System: AIX 5.2,ppc64
            19:46:42,944 INFO [Server] Core system initialized
            19:46:57,493 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
            19:46:57,508 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
            19:46:59,875 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
            19:46:59,875 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
            19:47:00,862 INFO [TransactionManagerService] Starting recovery manager
            19:47:01,304 INFO [TransactionManagerService] Recovery manager started
            19:47:01,304 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
            19:47:15,756 INFO [EJB3Deployer] Starting java:comp multiplexer
            19:47:31,957 INFO [NativeServerConfig] JBoss Web Services - Native
            19:47:31,958 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)
            19:47:36,163 INFO [Embedded] Catalina naming disabled
            19:47:36,885 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments
             was not found on the java.library.path: /usr/java6_64/jre/lib/ppc64/default:/usr/java6_64/jre/lib/ppc64:/usr/java6_64/jre/lib/ppc64:/
            usr/java6_64/jre/lib/ppc64/default:/usr/lib:/usr/java6_64/jre/lib/ppc64/j9vm:/usr/java6_64/jre/lib/ppc64:/usr/java6_64/jre/../lib/ppc6
            4:/usr/lib
            


            output java -version:
            java version "1.3.1"
            Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
            Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX build ca131-20041210 (JIT enabled: jitc))

            If you need other infos tell me.
            I hope you can help me.

            • 3. Re: Start-Error under UNIX
              ceene

              Sorry the output is false
              The correct output is:
              # java -version
              java version "1.6.0"
              Java(TM) SE Runtime Environment (build pap6460sr3-20081106_07(SR3))
              IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 AIX ppc64-64 jvmap6460-20081105_25433 (JIT enabled, AOT enabled)
              J9VM - 20081105_025433_BHdSMr
              JIT - r9_20081031_1330
              GC - 20081027_AB)
              JCL - 20081106_01

              • 4. Re: Start-Error under UNIX
                jaikiran

                 


                19:46:40,263 INFO [ServerInfo] Java version: 1.6.0,IBM Corporation
                19:46:40,263 INFO [ServerInfo] Java VM: IBM J9 VM 2.4,IBM Corporation


                So you are using Java 6 and IBM JDK with JBoss-AS-4.2.3. As far as i remember JBoss-4.2.x is not fully qualified with Java 6. Can you try this with a Sun Java 1.5 JDK? Having said that, i am not sure why the same configuration works on a Windows environment. Can you post the similar console logs from the Windows system?

                • 5. Re: Start-Error under UNIX
                  ceene

                  09:35:39,965 INFO [Server] Starting JBoss (MX MicroKernel)...
                  09:35:39,975 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
                  09:35:39,975 INFO [Server] Home Dir: C:\jboss-4.2.3.GA
                  09:35:39,975 INFO [Server] Home URL: file:/C:/jboss-4.2.3.GA/
                  09:35:39,985 INFO [Server] Patch URL: null
                  09:35:39,985 INFO [Server] Server Name: default
                  09:35:39,985 INFO [Server] Server Home Dir: C:\jboss-4.2.3.GA\server\default
                  09:35:39,985 INFO [Server] Server Home URL: file:/C:/jboss-4.2.3.GA/server/default/
                  09:35:39,985 INFO [Server] Server Log Dir: C:\jboss-4.2.3.GA\server\default\log
                  09:35:39,985 INFO [Server] Server Temp Dir: C:\jboss-4.2.3.GA\server\default\tmp
                  09:35:39,985 INFO [Server] Root Deployment Filename: jboss-service.xml
                  09:35:41,667 INFO [ServerInfo] Java version: 1.6.0_04,Sun Microsystems Inc.
                  09:35:41,667 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun Microsystems Inc.
                  09:35:41,667 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                  09:35:44,321 INFO [Server] Core system initialized
                  09:35:58,772 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                  09:35:58,782 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
                  09:36:01,856 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
                  09:36:01,856 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
                  09:36:03,368 INFO [TransactionManagerService] Starting recovery manager
                  09:36:03,809 INFO [TransactionManagerService] Recovery manager started
                  09:36:03,809 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
                  09:36:19,441 INFO [EJB3Deployer] Starting java:comp multiplexer
                  09:36:34,783 INFO [NativeServerConfig] JBoss Web Services - Native
                  09:36:34,783 INFO [NativeServerConfig] jbossws-3.0.1-native-2.0.4.GA (build=200803312044)

                  This is from the Windows System

                  • 6. Re: Start-Error under UNIX
                    ceene

                    With Java 1.5 on AIX I get the following console-output

                    09:40:14,690 INFO [Server] Starting JBoss (MX MicroKernel)...
                    09:40:14,692 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)
                    09:40:14,696 INFO [Server] Home Dir: /disc5/jboss-4.2.3.GA
                    09:40:14,696 INFO [Server] Home URL: file:/disc5/jboss-4.2.3.GA/
                    09:40:14,723 INFO [Server] Patch URL: null
                    09:40:14,724 INFO [Server] Server Name: default
                    09:40:14,724 INFO [Server] Server Home Dir: /disc5/jboss-4.2.3.GA/server/default
                    09:40:14,724 INFO [Server] Server Home URL: file:/disc5/jboss-4.2.3.GA/server/default/
                    09:40:14,725 INFO [Server] Server Log Dir: /disc5/jboss-4.2.3.GA/server/default/log
                    09:40:14,725 INFO [Server] Server Temp Dir: /disc5/jboss-4.2.3.GA/server/default/tmp
                    09:40:14,726 INFO [Server] Root Deployment Filename: jboss-service.xml
                    09:40:15,726 INFO [ServerInfo] Java version: 1.5.0,IBM Corporation
                    09:40:15,727 INFO [ServerInfo] Java VM: IBM J9 VM 2.3,IBM Corporation
                    09:40:15,727 INFO [ServerInfo] OS-System: AIX 5.2,ppc64
                    09:40:17,026 INFO [Server] Core system initialized
                    09:40:25,144 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                    09:40:25,148 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
                    09:40:26,967 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
                    09:40:26,968 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
                    09:40:27,678 INFO [TransactionManagerService] Starting recovery manager
                    09:40:28,015 INFO [TransactionManagerService] Recovery manager started
                    09:40:28,015 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
                    09:40:36,903 INFO [EJB3Deployer] Starting java:comp multiplexer
                    09:40:41,261 ERROR [MainDeployer] Could not initialise deployment: file:/disc5/jboss-4.2.3.GA/server/default/deploy/jbossws.sar/
                    java.lang.NoClassDefFoundError: javax.ejb.Stateless
                    at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
                    at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
                    at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:618)
                    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.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 $Proxy34.accepts(Unknown Source)

                    • 7. Re: Start-Error under UNIX
                      jaikiran

                       

                      09:35:41,667 INFO [ServerInfo] Java version: 1.6.0_04,Sun Microsystems Inc.
                      09:35:41,667 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b19,Sun Microsystems Inc.


                      This shows that your Windows system is having a different configuration and that's the reason why it's working there. On Windows you are using Sun Java whereas on Unix you are using IBM JDK.

                      On your Unix system, download Sun JDK and point JAVA_HOME to that Sun JDK path.


                      • 8. Re: Start-Error under UNIX
                        jaikiran

                         

                        "Ceene" wrote:
                        With Java 1.5 on AIX I get the following console-output

                        09:40:15,726 INFO [ServerInfo] Java version: 1.5.0,IBM Corporation
                        09:40:15,727 INFO [ServerInfo] Java VM: IBM J9 VM 2.3,IBM Corporation
                        09:40:15,727 INFO [ServerInfo] OS-System: AIX 5.2,ppc64
                        ...
                        09:40:36,903 INFO [EJB3Deployer] Starting java:comp multiplexer
                        09:40:41,261 ERROR [MainDeployer] Could not initialise deployment: file:/disc5/jboss-4.2.3.GA/server/default/deploy/jbossws.sar/
                        java.lang.NoClassDefFoundError: javax.ejb.Stateless
                        at org.jboss.ejb3.EJB3Util.isStateless(EJB3Util.java:42)
                        at org.jboss.ejb3.EJB3Deployer.hasEjbAnnotation(EJB3Deployer.java:219)
                        at org.jboss.ejb3.EJB3Deployer.accepts(EJB3Deployer.java:271)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                        at java.lang.reflect.Method.invoke(Method.java:618)
                        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.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 $Proxy34.accepts(Unknown Source)


                        Its because of this http://www.jboss.org/community/docs/DOC-12933

                        • 9. Re: Start-Error under UNIX
                          ceene

                          Now I have the correct Version of JBoss but I get another error and it sound similar to the old error.

                          10:10:06,386 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleASS' to JNDI name 'java:OracleASS'
                          10:10:06,600 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=ASSLoginBean.jar
                          java.lang.ClassNotFoundException: Unexpected error during load of: ejb.ASSLoginBean, msg=(ejb/ASSLoginBean) bad major version at offset=6
                          at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:560)
                          at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
                          at java.lang.ClassLoader.loadClass(ClassLoader.java:597)
                          at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293)
                          at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138)
                          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486)
                          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)
                          at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423)
                          at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384)
                          at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)
                          at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
                          at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
                          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)

                          Do you know a JBoss and JDK Version for AIX that works?

                          • 10. Re: Start-Error under UNIX
                            ceene

                            Ok i fixed the problem.
                            If you work with seam, u need to copy the jboss-seam*.jar in the lib-Folder of the server.

                            • 11. Re: Start-Error under UNIX
                              jaikiran

                               

                              "Ceene" wrote:
                              Ok i fixed the problem.

                              Good to know, you fixed it.

                              "Ceene" wrote:

                              If you work with seam, u need to copy the jboss-seam*.jar in the lib-Folder of the server.


                              Hmm, not sure how Seam came into picture for this Java compatibility error.