12 Replies Latest reply on Jan 29, 2009 9:25 AM by jaikiran pai

    jboss as 5 with java 6???

    ioannis ntantis Newbie

      Hi,

      I am trying to run jboss as 5 with java 1.6 btu i get several class exception.

      I saw that this editision of the AS is targeted for java 5. Is it possible to use it with java 6 or i will have to downgrae my java?

      If it is possible could you please tell me what i need to do in order to run as 5?

      Thanks in advance,
      giannis

        • 1. Re: jboss as 5 with java 6???
          jaikiran pai Master

          You can run the AS5.0 GA against JDK6. What exceptions do you get? Please post the entire exception stacktrace along with the console logs. Is this a clean installation or have you done any changes?

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: jboss as 5 with java 6???
            ioannis ntantis Newbie

            I am trying to run jboss under windows by running the run.bet file from cmd.

            How can i get the whole log and trace? are they stored anywhere?

            Thanks in advance,
            giannis

            • 3. Re: jboss as 5 with java 6???
              jaikiran pai Master

               

              I am trying to run jboss under windows by running the run.bet file from cmd.


              Is there no output on the console when you run that bat file from the command prompt?

              I am trying to run jboss as 5 with java 1.6 btu i get several class exception.


              Where are you seeing these exceptions?

              • 4. Re: jboss as 5 with java 6???
                jaikiran pai Master

                By the way, the logs are also written to %JBOSS_HOME%/server/< serverName>/log/server.log. But i wouldn't recommend posting that entire file contents here since its too verbose.

                • 5. Re: jboss as 5 with java 6???
                  ioannis ntantis Newbie

                  Hi again,

                  Ok i got the output appearing from in the command prompt (as much as i could because it dissapers due to buffer size i think).

                  Here is what i get(sorry for the long post):
                  exception stacktrace C:\jboss-5.0.0.GA\bin>run.bat
                  ===============================================================================

                  JBoss Bootstrap Environment

                  JBOSS_HOME: C:\jboss-5.0.0.GA

                  JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java

                  JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Ds
                  un.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

                  CLASSPATH: C:\jboss-5.0.0.GA\bin\run.jar

                  ===============================================================================

                  14:36:08,609 INFO [ServerImpl] Starting JBoss (Microcontainer)...
                  14:36:08,609 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
                  14:36:08,609 INFO [ServerImpl] Bootstrap URL: null
                  14:36:08,609 INFO [ServerImpl] Home Dir: C:\jboss-5.0.0.GA
                  14:36:08,609 INFO [ServerImpl] Home URL: file:/C:/jboss-5.0.0.GA/
                  14:36:08,609 INFO [ServerImpl] Library URL: file:/C:/jboss-5.0.0.GA/lib/
                  14:36:08,609 INFO [ServerImpl] Patch URL: null
                  14:36:08,609 INFO [ServerImpl] Common Base URL: file:/C:/jboss-5.0.0.GA/common/
                  14:36:08,609 INFO [ServerImpl] Common Library URL: file:/C:/jboss-5.0.0.GA/common/lib/
                  14:36:08,609 INFO [ServerImpl] Server Name: default
                  14:36:08,609 INFO [ServerImpl] Server Base Dir: C:\jboss-5.0.0.GA\server
                  14:36:08,609 INFO [ServerImpl] Server Base URL: file:/C:/jboss-5.0.0.GA/server/
                  14:36:08,609 INFO [ServerImpl] Server Config URL: file:/C:/jboss-5.0.0.GA/server/default/conf/
                  14:36:08,609 INFO [ServerImpl] Server Home Dir: C:\jboss-5.0.0.GA\server\default
                  14:36:08,609 INFO [ServerImpl] Server Home URL: file:/C:/jboss-5.0.0.GA/server/default/
                  14:36:08,609 INFO [ServerImpl] Server Data Dir: C:\jboss-5.0.0.GA\server\default\data
                  14:36:08,609 INFO [ServerImpl] Server Library URL: file:/C:/jboss-5.0.0.GA/server/default/lib/
                  14:36:08,609 INFO [ServerImpl] Server Log Dir: C:\jboss-5.0.0.GA\server\default\log
                  14:36:08,609 INFO [ServerImpl] Server Native Dir: C:\jboss-5.0.0.GA\server\default\tmp\native
                  14:36:08,609 INFO [ServerImpl] Server Temp Dir: C:\jboss-5.0.0.GA\server\default\tmp
                  14:36:08,609 INFO [ServerImpl] Server Temp Deploy Dir: C:\jboss-5.0.0.GA\server\default\tmp\deploy
                  14:36:10,234 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/jboss-5.0.0.GA/server/default/conf/bootst
                  rap.xml
                  14:36:11,515 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
                  14:36:11,531 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
                  14:36:12,828 INFO [CopyMechanism] VFS temp dir: C:\jboss-5.0.0.GA\server\default\tmp
                  14:36:12,828 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
                  14:36:16,671 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
                  14:36:16,671 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.
                  14:36:16,671 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
                  14:36:16,796 INFO [JMXKernel] Legacy JMX core initialized
                  14:36:24,281 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository
                  .SerializableDeploymentRepository@a1b4e7(root=C:\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b
                  82c3[domain=default,server=default,name=default])
                  14:36:24,296 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeployme
                  ntRepository@a1b4e7(root=C:\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,s
                  erver=default,name=default])
                  14:36:24,296 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@135d18b{key=org.jboss.profileservice.spi.ProfileKey@
                  143b82c3[domain=default,server=default,name=default]}
                  14:36:31,609 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                  14:36:40,546 WARN [ClassLoaderManager] Unexpected error during load of:org.jboss.resource.metadata.repository.DefaultJC
                  AMetaDataRepository
                  java.lang.UnsupportedClassVersionError: Bad version number in .class file
                  at java.lang.ClassLoader.defineClass1(Native Method)
                  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                  at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:62)
                  at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:509)
                  at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:469)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:467)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:444)
                  at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                  at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                  at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                  at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:254)
                  at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:148)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:256)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1099)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:735)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisito
                  r.java:63)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126
                  )
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.j
                  ava:125)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWit
                  hInput.java:102)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.j
                  ava:78)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:297)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                  at org.jboss.Main.boot(Main.java:209)
                  at org.jboss.Main$1.run(Main.java:547)
                  at java.lang.Thread.run(Thread.java:595)
                  14:36:40,765 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.0.GA/server/default/d
                  eployers/jboss-jca.deployer/ state=PreReal mode=Manual requiredState=Real
                  org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/C:/jboss-5.0.0.GA/server/default/deployers/jboss-
                  jca.deployer/
                  at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136
                  )
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.j
                  ava:125)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWit
                  hInput.java:102)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.j
                  ava:78)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                  at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                  at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                  at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                  at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:297)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                  at org.jboss.Main.boot(Main.java:209)
                  at org.jboss.Main$1.run(Main.java:547)
                  at java.lang.Thread.run(Thread.java:595)
                  Caused by: java.lang.IllegalArgumentException: Exception loading class for ScopeKey addition.
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisito
                  r.java:67)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126
                  )
                  ... 23 more
                  Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: org.jboss.resource.metadata.repository.Def
                  aultJCAMetaDataRepository, msg=Bad version number in .class file
                  at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:169)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:256)
                  at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1099)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:735)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:378)
                  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
                  at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisito
                  r.java:63)
                  ... 24 more
                  Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
                  at java.lang.ClassLoader.defineClass1(Native Method)
                  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
                  at org.jboss.classloader.spi.base.BaseClassLoader.access$200(BaseClassLoader.java:62)
                  at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:509)
                  at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:469)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:467)
                  at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:444)
                  at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:134)
                  at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:131)
                  at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:452)
                  at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:254)
                  at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:148)
                  ... 30 more
                  14:36:41,250 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
                  14:36:41,250 ERROR [ProfileServiceBootstrap] Failed to load profile:
                  java.lang.IllegalStateException: Deployers are shutdown
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.checkShutdown(DeployersImpl.java:187)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:778)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:297)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                  at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                  at org.jboss.Main.boot(Main.java:209)
                  at org.jboss.Main$1.run(Main.java:547)
                  at java.lang.Thread.run(Thread.java:595)
                  14:36:41,328 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Start
                  ed in 32s:703ms
                  14:36:42,218 WARN [JaasSecurityManagerService] Stopping failed jboss.security:service=JaasSecurityManager
                  javax.naming.NameNotFoundException: jaas not bound
                  at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
                  at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
                  at org.jnp.server.NamingServer.unbind(NamingServer.java:349)
                  at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:858)
                  at org.jnp.interfaces.NamingContext.unbind(NamingContext.java:841)
                  at javax.naming.InitialContext.unbind(InitialContext.java:375)
                  at org.jboss.security.plugins.JaasSecurityManagerService.stopService(JaasSecurityManagerService.java:491)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:405)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:324)
                  at sun.reflect.GeneratedMethodAccessor106.invoke(Unknown Source)
                  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:157)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                  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:668)
                  at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)
                  at $Proxy36.stop(Unknown Source)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:56)
                  at org.jboss.system.microcontainer.StartStopLifecycleAction.uninstallAction(StartStopLifecycleAction.java:37)
                  at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleUninstallAction(SimpleControllerConte
                  xtAction.java:79)
                  at org.jboss.dependency.plugins.action.AccessControllerContextAction.uninstall(AccessControllerContextAction.jav
                  a:131)
                  at org.jboss.dependency.plugins.AbstractControllerContextActions.uninstall(AbstractControllerContextActions.java
                  :58)
                  at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
                  at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1242)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
                  at org.jboss.system.ServiceController.stop(ServiceController.java:510)
                  at org.jboss.system.deployers.ServiceDeployer.stop(ServiceDeployer.java:153)
                  at org.jboss.system.deployers.ServiceDeployer.undeploy(ServiceDeployer.java:133)
                  at org.jboss.system.deployers.ServiceDeployer.undeploy(ServiceDeployer.java:45)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalUndeploy(AbstractSimpleRealDeploy
                  er.java:69)
                  at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.undeploy(AbstractRealDeployer.java:112)
                  at org.jboss.deployers.plugins.deployers.DeployerWrapper.undeploy(DeployerWrapper.java:196)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doUndeploy(DeployersImpl.java:1469)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1376)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.doUninstallParentLast(DeployersImpl.java:1369)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.uninstall(DeployersImpl.java:1331)
                  at org.jboss.dependency.plugins.AbstractControllerContext.uninstall(AbstractControllerContext.java:354)
                  at org.jboss.dependency.plugins.AbstractController.uninstall(AbstractController.java:1631)
                  at org.jboss.dependency.plugins.AbstractController.uninstallContext(AbstractController.java:1242)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:827)
                  at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                  at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:694)
                  at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.unload(ProfileServiceBootstrap.java:418)
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.unloadProfile(ProfileServiceBootstrap.java:383
                  )
                  at org.jboss.system.server.profileservice.ProfileServiceBootstrap.shutdown(ProfileServiceBootstrap.java:230)
                  at org.jboss.bootstrap.AbstractServerImpl.shutdownServer(AbstractServerImpl.java:504)
                  at org.jboss.bootstrap.AbstractServerImpl$ShutdownHook.run(AbstractServerImpl.java:832)

                  Thanks a lot,
                  giannis

                  • 6. Re: jboss as 5 with java 6???
                    jaikiran pai Master

                     

                    JAVA: C:\Program Files\Java\jdk1.5.0_07\bin\java


                    14:36:16,671 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
                    14:36:16,671 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-b03,Sun Microsystems Inc.


                    So you are using JDK5 and not JDK6 :)

                    JBossAS5 comes with 2 variants. I guess you downloaded the one which was compiled using JDK6 and are using it against JDK5. And hence those errors.

                    You have 2 options:

                    1) Download the JDK5 version of JBossAS-5.0 GA and use it against JDK5

                    OR

                    2) Download JDK6 and point the JAVA_HOME to this JDK and use it against the current downloaded AS.


                    • 7. Re: jboss as 5 with java 6???
                      ioannis ntantis Newbie

                      i did download 6 and install it but it gives me the same errors

                      i have no idea at all really of what is going on...


                      thanks,
                      giannis

                      • 8. Re: jboss as 5 with java 6???
                        jaikiran pai Master

                         

                        "giannisAPI" wrote:


                        i have no idea at all really of what is going on...




                        As i mentioned in my earlier post, you have set your JAVA_HOME to point to JDK5 installation instead of JDK6 and that's what is causing the issue. Did you change your JAVA_HOME to point to JDK6?

                        • 9. Re: jboss as 5 with java 6???
                          ioannis ntantis Newbie

                          yes i did and it did not solve the issue...
                          i set again to java 5 as i read in the notes from jboss that is intended to run with java 5

                          this is the notes from the as i download:
                          http://sourceforge.net/project/shownotes.php?release_id=645033&group_id=22866


                          thanks a lo fo ryour help,
                          giannis

                          • 10. Re: jboss as 5 with java 6???
                            ioannis ntantis Newbie

                            I was not using the latest edition java 6. I downloaded java 1.6.0_11 and now it works smoothly.

                            thanks a lot for your help, much appreciated,
                            giannis

                            • 11. Re: jboss as 5 with java 6???
                              jaikiran pai Master

                               

                              "giannisAPI" wrote:
                              INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)



                              Going by the build date in that log message you are using the JDK6 variant of the AS and using it against JDK5. For the JDK5 variant of JBossAS5.0 GA, the build date is:

                              INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)
                              


                              Let's do this from scratch, one step at a time. From the subject line of your thread, i guess you want to use JBossAS with JDK6.

                              * Both the variants of AS5.0 GA work against the JDK6. However only one variant of the download works against JDK5.

                              * Let's download the JDK5 variant of the AS from here http://downloads.sourceforge.net/jboss/jboss-5.0.0.GA.zip?modtime=1228452561&big_mirror=1

                              * Extract the zip to some location on your system (preferably one which does not have a space in it's path) Ex: C:\JBoss5

                              * Next let's download the Sun Java 1.6 from here https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u11-oth-JPR@CDS-CDS_Developer

                              * Download/Install it to some location on your system (preferably one which does not have a space in it's path) Ex: C:\jdk1.6.0_11

                              * Open up a command prompt and set the JAVA_HOME to point to C:\jdk1.6.0_11

                              set JAVA_HOME=C:/jdk1.6.0_11


                              * From the same command prompt, 'cd' to the folder where JBoss was installed

                              cd C:/JBoss5
                              cd bin


                              * Now from the command prompt start the AS

                              ./run.bat


                              That should get it going without any issues. Let us know if you still run into some issue.


                              • 12. Re: jboss as 5 with java 6???
                                jaikiran pai Master

                                 

                                "giannisAPI" wrote:
                                I was not using the latest edition java 6. I downloaded java 1.6.0_11 and now it works smoothly.

                                thanks a lot for your help, much appreciated,
                                giannis


                                Great, so you solved the issue while i was typing my reply :)