1 Reply Latest reply on Apr 16, 2007 4:01 PM by Scott Stark

    JBoss AS 5.0.0.Beta2 doesn't work with jdk1.6

    Joshua Jackson Master

      Dear all,

      I tried running JBoss AS 5.0.0.Beta2 on jdk1.6.0 but it doesn't work. JBoss AS 5.0.0.Beta1 runs well on jdk1.6.0

      Here are the full stack trace:

      ===============================================================================
      
       JBoss Bootstrap Environment
      
       JBOSS_HOME: D:\javastuff\jboss\jboss-5.0.0.Beta2
      
       JAVA: C:\opt\env\jdk1.6.0\bin\java
      
       JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=2
      56m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600
      000
      
       CLASSPATH: C:\opt\env\jdk1.6.0\lib\tools.jar;D:\javastuff\jboss\jboss-5.0.0.Be
      ta2\bin\run.jar
      
      ===============================================================================
      
      08:23:19,375 INFO [ServerImpl] Starting JBoss (Microcontainer)...
      08:23:19,375 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta2 (build:
       SVNTag=JBoss_5_0_0_Beta2 date=200704060017)
      08:23:19,375 INFO [ServerImpl] Home Dir: D:\javastuff\jboss\jboss-5.0.0.Beta2
      08:23:19,375 INFO [ServerImpl] Home URL: file:/D:/javastuff/jboss/jboss-5.0.0.B
      eta2/
      08:23:19,375 INFO [ServerImpl] Library URL: file:/D:/javastuff/jboss/jboss-5.0.
      0.Beta2/lib/
      08:23:19,375 INFO [ServerImpl] Patch URL: null
      08:23:19,375 INFO [ServerImpl] Server Name: default
      08:23:19,375 INFO [ServerImpl] Server Home Dir: D:\javastuff\jboss\jboss-5.0.0.
      Beta2\server\default
      08:23:19,375 INFO [ServerImpl] Server Home URL: file:/D:/javastuff/jboss/jboss-
      5.0.0.Beta2/server/default/
      08:23:19,375 INFO [ServerImpl] Server Data Dir: D:\javastuff\jboss\jboss-5.0.0.
      Beta2\server\default\data
      08:23:19,375 INFO [ServerImpl] Server Temp Dir: D:\javastuff\jboss\jboss-5.0.0.
      Beta2\server\default\tmp
      08:23:19,375 INFO [ServerImpl] Server Config URL: file:/D:/javastuff/jboss/jbos
      s-5.0.0.Beta2/server/default/conf/
      08:23:19,375 INFO [ServerImpl] Server Library URL: file:/D:/javastuff/jboss/jbo
      ss-5.0.0.Beta2/server/default/lib/
      08:23:19,375 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
      08:23:19,421 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/D:/j
      avastuff/jboss/jboss-5.0.0.Beta2/server/default/conf/bootstrap-beans.xml
      08:23:20,609 INFO [ProfileImpl] Using profile root:D:\javastuff\jboss\jboss-5.0
      .0.Beta2\server\default
      08:23:22,734 ERROR [AbstractKernelController] Error installing to Instantiated:
      name=DeploymentFilter state=Described
      java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
       at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature
      .java:174)
       at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature
      .java:125)
       at org.jboss.metadata.spi.signature.Signature.getParametersTypes(Signatu
      re.java:292)
       at org.jboss.metadata.plugins.loader.reflection.AnnotatedElementMetaData
      Loader.getComponentMetaDataRetrieval(AnnotatedElementMetaDataLoader.java:138)
       at org.jboss.metadata.plugins.context.AbstractMetaDataContext.getCompone
      ntMetaDataRetrieval(AbstractMetaDataContext.java:280)
       at org.jboss.metadata.spi.retrieval.MetaDataRetrievalToMetaDataBridge.ge
      tComponentMetaData(MetaDataRetrievalToMetaDataBridge.java:159)
       at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.meth
      odHasAnnotations(AOPConstructorJoinpoint.java:202)
       at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasM
      ethodMetaData(AOPConstructorJoinpoint.java:172)
       at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.hasI
      nstanceOrJoinpointMetaData(AOPConstructorJoinpoint.java:152)
       at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.disp
      atch(AOPConstructorJoinpoint.java:99)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dis
      patchJoinPoint(KernelControllerContextAction.java:103)
       at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionIn
      ternal(InstantiateAction.java:52)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.ins
      tallAction(KernelControllerContextAction.java:197)
       at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.ins
      tall(KernelControllerContextAction.java:136)
       at org.jboss.dependency.plugins.AbstractControllerContextActions.install
      (AbstractControllerContextActions.java:51)
       at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
      ctControllerContext.java:233)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:724)
       at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
      ctController.java:445)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:555)
       at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
      actController.java:489)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:289)
       at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
      oller.java:192)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
      (AbstractKernelDeployer.java:302)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean
      s(AbstractKernelDeployer.java:272)
       at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(Abs
      tractKernelDeployer.java:119)
       at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicK
      ernelDeployer.java:64)
       at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(Basic
      XMLDeployer.java:76)
       at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(Basic
      XMLDeployer.java:146)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.deploy
      (ProfileServiceBootstrap.java:295)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootst
      rap(ProfileServiceBootstrap.java:222)
       at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot
      strap.java:89)
       at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.
      java:403)
       at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.ja
      va:342)
       at org.jboss.Main.boot(Main.java:210)
       at org.jboss.Main$1.run(Main.java:522)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: [Ljava.lang.String;
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature
      .java:170)
       ... 35 more
      08:23:23,281 INFO [ServerInfo] Java version: 1.6.0,Sun Microsystems Inc.
      08:23:23,281 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.6.0-b105,S
      un Microsystems Inc.
      08:23:23,281 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      08:23:23,328 INFO [JMXKernel] Legacy JMX core initialized
      Failed to boot JBoss:
      java.lang.RuntimeException: Exception during Bootstrap
       at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot
      strap.java:99)
       at org.jboss.system.server.profileservice.ServerImpl.doStart(ServerImpl.
      java:403)
       at org.jboss.system.server.profileservice.ServerImpl.start(ServerImpl.ja
      va:342)
       at org.jboss.Main.boot(Main.java:210)
       at org.jboss.Main$1.run(Main.java:522)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: org.jboss.deployers.spi.IncompleteDeploymentException: Summary of inc
      omplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual Stat
      e}
      
      VFSBootstrapScanner
       -> DeploymentFilter{Configured:**ERROR**}
      
      VFSDeployerScanner
       -> DeploymentFilter{Configured:**ERROR**}
      
      VFSDeploymentScanner
       -> DeploymentFilter{Configured:**ERROR**}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      DeploymentFilter -> java.lang.ClassNotFoundException: [Ljava.lang.String;
      
      
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.checkI
      ncomplete(ProfileServiceBootstrap.java:389)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.bootst
      rap(ProfileServiceBootstrap.java:236)
       at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBoot
      strap.java:89)
       ... 5 more


      Does anyone knows why this occurs?

      Thanks in advance

        • 1. Re: JBoss AS 5.0.0.Beta2 doesn't work with jdk1.6
          Scott Stark Master

          Because there are limitations with how the mc determines matching method signatures in the absence of an explicit signature declaration and jdk6 is returning reflection info in a different order for one, and this issue looks to be different handling of an implicitly referenced array class. Testing with jdk6 isn't a big priority currently, so if you want to drill into the issue and supply a patch that would be great.