.earファイルをデプロイしましたが、このエラーが発生しました。私はJBossを初めて使用しますが、修正方法がわかりません。
18:36:15,903 INFO [ServerImpl] Starting JBoss (Microcontainer)...
18:36:15,904 INFO [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221053)
18:36:15,904 INFO [ServerImpl] Bootstrap URL: null
18:36:15,904 INFO [ServerImpl] Home Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA
18:36:15,904 INFO [ServerImpl] Home URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/
18:36:15,904 INFO [ServerImpl] Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/lib/
18:36:15,905 INFO [ServerImpl] Patch URL: null
18:36:15,905 INFO [ServerImpl] Common Base URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/common/
18:36:15,905 INFO [ServerImpl] Common Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/common/lib/
18:36:15,905 INFO [ServerImpl] Server Name: default
18:36:15,906 INFO [ServerImpl] Server Base Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server
18:36:15,906 INFO [ServerImpl] Server Base URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/
18:36:15,906 INFO [ServerImpl] Server Config URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/conf/
18:36:15,906 INFO [ServerImpl] Server Home Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default
18:36:15,906 INFO [ServerImpl] Server Home URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/
18:36:15,906 INFO [ServerImpl] Server Data Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/data
18:36:15,906 INFO [ServerImpl] Server Library URL: file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/lib/
18:36:15,906 INFO [ServerImpl] Server Log Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/log
18:36:15,907 INFO [ServerImpl] Server Native Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp/native
18:36:15,907 INFO [ServerImpl] Server Temp Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp
18:36:15,907 INFO [ServerImpl] Server Temp Deploy Dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp/deploy
18:36:16,416 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/conf/bootstrap.xml
18:36:16,851 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]
18:36:16,854 INFO [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]
18:36:17,055 INFO [CopyMechanism] VFS temp dir: /Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/server/default/tmp
18:36:17,056 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
18:36:17,905 INFO [ServerInfo] Java version: 1.7.0_09,Oracle Corporation
18:36:17,905 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
18:36:17,905 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 23.5-b02,Oracle Corporation
18:36:17,906 INFO [ServerInfo] OS-System: Mac OS X 10.7.5,x86_64
18:36:17,907 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=/Users/ronyjohn007/JBOSS/jboss-5.1.0.GA/lib/endorsed
18:36:17,934 INFO [JMXKernel] Legacy JMX core initialized
18:36:19,183 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:722)
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 "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 "ProfileServiceDeployer" is missing the following dependencies:
Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "**ERROR**")
Deployment "ProfileServiceBootstrap" is missing the following dependencies:
Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
Dependency "jboss.kernel:service=Kernel" (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**")
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:722)
18:36:19,633 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
18:36:19,638 INFO [ServerImpl] Shutdown complete
Shutdown complete
Halting VM
あなたはこれを試すことができます。
Jboss-5.1.0.GA\server\default\conf\bootstrapにあるファイルprofile.xmlを開きます
「添付ファイルストア」ブロックを見つけます。
《パラメータ》に「class = "Java.io.File」を追加します。
または、次のリンクを試すことができます: JBoss 5.1.0.GA/AttachmentStoreの起動時にエラーが発生しました
直接ソリューションへのパス: jbossサーバーの起動エラー
ファイルprofile.xmlを開きます
jboss-5.1.0.GA\server\default\conf\bootstrap\profile.xmlそして次に
置換->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor><parameter><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
と->
<bean name="AttachmentStore" class="org.jboss.system.server.profileservice.repository.AbstractAttachmentStore">
<constructor>><parameter class="Java.io.File"><inject bean="BootstrapProfileFactory" property="attachmentStoreRoot" /></parameter></constructor>
Java_homeを1.7から1.6に変更したところ、conf/bootstrap/profile.xmlを変更せずに(bin\run.confまたはbin\run.conf.batで)問題が解決しました。
私の問題はgriboと同様に解決されました。パス変数が正しくJDK6を指していました(JBoss5.1をJDK6で実行しています)。しかし、Eclipseでは、JBossランタイムJREがJRE8を指していた。 JRE6を指すと、問題は解決しました。
また、conf/bootstrap /profile.xmlを変更する必要はありませんでした。私は最初にそれを試しましたが、問題は解決しませんでした。