solaris10下安装启动jboss-5.1.0.GA-jdk6,无法启动。求助

[复制链接]
查看11 | 回复1 | 2011-5-7 01:45:08 | 显示全部楼层 |阅读模式
跪求高手指点,我在solaris10下安装jboss-5.1.0.GA-jdk6,./run.sh default & 无法启动。系统默认的安装的jdk是jdk1.6.0_26.
错误信息如下,项目急求帮助。谢谢!
bash-3.2$ cd jboss-5.1.0.GA/bin
bash-3.2$ ./run.sh default &
[1] 1926
bash-3.2$ =========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /export/home/tsaip2/jboss-5.1.0.GA
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: /export/home/tsaip2/jboss-5.1.0.GA/bin/run.jar
=========================================================================
run.sh: unused non-option argument: default
16:02:50,877 INFO[ServerImpl] Starting JBoss (Microcontainer)...
16:02:50,880 INFO[ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)
16:02:50,881 INFO[ServerImpl] Bootstrap URL: null
16:02:50,882 INFO[ServerImpl] Home Dir: /export/home/tsaip2/jboss-5.1.0.GA
16:02:50,883 INFO[ServerImpl] Home URL: file:/export/home/tsaip2/jboss-5.1.0.GA/
16:02:50,884 INFO[ServerImpl] Library URL: file:/export/home/tsaip2/jboss-5.1.0.GA/lib/
16:02:50,886 INFO[ServerImpl] Patch URL: null
16:02:50,887 INFO[ServerImpl] Common Base URL: file:/export/home/tsaip2/jboss-5.1.0.GA/common/
16:02:50,887 INFO[ServerImpl] Common Library URL: file:/export/home/tsaip2/jboss-5.1.0.GA/common/lib/
16:02:50,888 INFO[ServerImpl] Server Name: default
16:02:50,889 INFO[ServerImpl] Server Base Dir: /export/home/tsaip2/jboss-5.1.0.GA/server
16:02:50,890 INFO[ServerImpl] Server Base URL: file:/export/home/tsaip2/jboss-5.1.0.GA/server/
16:02:50,891 INFO[ServerImpl] Server Config URL: file:/export/home/tsaip2/jboss-5.1.0.GA/server/default/conf/
16:02:50,892 INFO[ServerImpl] Server Home Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default
16:02:50,892 INFO[ServerImpl] Server Home URL: file:/export/home/tsaip2/jboss-5.1.0.GA/server/default/
16:02:50,894 INFO[ServerImpl] Server Data Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/data
16:02:50,894 INFO[ServerImpl] Server Library URL: file:/export/home/tsaip2/jboss-5.1.0.GA/server/default/lib/
16:02:50,895 INFO[ServerImpl] Server Log Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/log
16:02:50,896 INFO[ServerImpl] Server Native Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/tmp/native
16:02:50,897 INFO[ServerImpl] Server Temp Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/tmp
16:02:50,898 INFO[ServerImpl] Server Temp Deploy Dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/tmp/deploy
16:02:53,637 INFO[ServerImpl] Starting Microcontainer, bootstrapURL=file:/export/home/tsaip2/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
16:02:55,786 INFO[VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
16:02:55,794 INFO[VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
16:02:56,631 INFO[CopyMechanism] VFS temp dir: /export/home/tsaip2/jboss-5.1.0.GA/server/default/tmp
16:02:56,633 INFO[ZipEntryContext] VFS force nested jars copy-mode is enabled.
16:03:00,682 INFO[ServerInfo] Java version: 1.6.0_26,Sun Microsystems Inc.
16:03:00,683 INFO[ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
16:03:00,684 INFO[ServerInfo] Java VM: Java HotSpot(TM) Server VM 20.1-b02,Sun Microsystems Inc.
16:03:00,685 INFO[ServerInfo] OS-System: SunOS 5.10,x86
16:03:00,687 INFO[ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/export/home/tsaip2/jboss-5.1.0.GA/lib/endorsed
16:03:00,825 INFO[JMXKernel] Legacy JMX core initialized
16:03:06,683 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described
java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)
at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)
at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)
at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)
at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
at org.jboss.kernel.plugins.dependency.InstantiateAction.installActionInternal(InstantiateAction.java:66)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
Failed to boot JBoss:
java.lang.IllegalStateException: Incompletely deployed:
DEPLOYMENTS IN ERROR:
Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "ProfileServiceBootstrap" is missing the following dependencies:
Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
Deployment "ProfileService" is missing the following dependencies:
Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServiceDeployer" is missing the following dependencies:
Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Thread.java:662)
16:03:08,204 INFO[ServerImpl] Runtime shutdown hook called, forceHalt: true
16:03:08,212 INFO[ServerImpl] Shutdown complete
Shutdown complete
Halting VM


回复

使用道具 举报

千问 | 2011-5-7 01:45:08 | 显示全部楼层
Looks like a bug that occurs with certain specific combinations of JRE and OS versions (see https://jira.jboss.org/jira/browse/JBAS-6981). Basically, the JBoss config is relying on reflection to return constructors in a certain order, and in some cases this order is different, causing the exception. Did you change your JRE version when you reinstalled, say from 1.6.0_17 to _18?
Anyway, the workaround is described in the JIRA issue, and also here. You need to change the content of conf/bootstrap/profile.xml. Look for the definition of the AttachmentStore, and change the constructor line so that it starts:

The original version doesn't have the class="java.io.File" attribute.
Pretty sloppy of the JBoss folks, but there you go.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行