关于JBOSS打开
运行run.bat的时候出现异常了
===============================================================================
JBoss Bootstrap Environment
JBOSS_HOME: D:\编程软件\jboss-4.2.3.GA
JAVA: C:\Program Files\Java\jdk1.6.0_06\bin\java
JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.cli
ent.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
CLASSPATH: C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar;D:\编程软件\jboss-4
.2.3.GA\bin\run.jar
===============================================================================
23:41:21,703 INFO [Server] Starting JBoss (MX MicroKernel)...
23:41:21,718 INFO [Server] Release ID: JBoss [Trinity] 4.2.3.GA (build: SVNTag=
JBoss_4_2_3_GA date=200807181417)
23:41:21,718 INFO [Server] Home Dir: D:\编程软件\jboss-4.2.3.GA
23:41:21,718 INFO [Server] Home URL: file:/D:/编程软件/jboss-4.2.3.GA/
23:41:21,718 INFO [Server] Patch URL: null
23:41:21,718 INFO [Server] Server Name: default
23:41:21,718 INFO [Server] Server Home Dir: D:\编程软件\jboss-4.2.3.GA\server\d
efault
23:41:21,718 INFO [Server] Server Home URL: file:/D:/编程软件/jboss-4.2.3.GA/se
rver/default/
23:41:21,718 INFO [Server] Server Log Dir: D:\编程软件\jboss-4.2.3.GA\server\de
fault\log
23:41:21,718 INFO [Server] Server Temp Dir: D:\编程软件\jboss-4.2.3.GA\server\d
efault\tmp
23:41:21,718 INFO [Server] Root Deployment Filename: jboss-service.xml
23:41:22,078 INFO [ServerInfo] Java version: 1.6.0_06,Sun Microsystems Inc.
23:41:22,078 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 10.0-b22,Sun
Microsystems Inc.
23:41:22,078 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
23:41:22,515 INFO [Server] Core system initialized
23:41:24,734 ERROR [MainDeployer] Could not create deployment: file:/D:/编程软件
/jboss-4.2.3.GA/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
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 $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:171)
... 36 more
Caused by: java.lang.Error: ERROR: it turns out the root cause is not always a r
untime exception!
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:1295)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
1237)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
... 38 more
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect
.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.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:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
er.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
or.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
BeanOperationInterceptor.java:142)
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 $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:171)
... 36 more
Caused by: java.lang.Error: ERROR: it turns out the root cause is not always a r
untime exception!
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:1295)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
1237)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
... 38 more
23:41:24,984 INFO [Server] Runtime shutdown hook called, forceHalt: true
23:41:24,984 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
23:41:25,000 INFO [Server] Shutdown complete
Shutdown complete
Halting VM
请按任意键继续. . .
不知道为什么了..
[解决办法]
JBoss的目录名
不能包含中文字符,
包括中文的特殊字符。