坛主救命啊!!!一个关于jboss的问题

04-03-10 devilbaby
我一启动jboss服务器就出现异常

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

.

JBoss Bootstrap Environment

.

JBOSS_HOME: D:\jboss-3.0.6_tomcat-4.1.18\bin\\..

.

JAVA: D:\JAVA\bin\java

.

JAVA_OPTS: -Dpromgram.name=run.bat -Dprogram.name=run.bat

.

CLASSPATH: ;D:\JAVA\lib\tools.jar;D:\jboss-3.0.6_tomcat-4.1.18\bin\\run.jar

.

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

.

19:09:27,348 INFO [Server] JBoss Release: JBoss-3.0.6 CVSTag=JBoss_3_0_6

19:09:27,378 INFO [Server] Home Dir: D:\jboss-3.0.6_tomcat-4.1.18

19:09:27,378 INFO [Server] Home URL: file:/D:/jboss-3.0.6_tomcat-4.1.18/

19:09:27,378 INFO [Server] Library URL: file:/D:/jboss-3.0.6_tomcat-4.1.18/lib/

19:09:27,378 INFO [Server] Patch URL: null

19:09:27,378 INFO [Server] Server Name: default

19:09:27,388 INFO [Server] Server Home Dir: D:\jboss-3.0.6_tomcat-4.1.18\server

\default

19:09:27,408 INFO [Server] Server Home URL: file:/D:/jboss-3.0.6_tomcat-4.1.18/

server/default/

19:09:27,408 INFO [Server] Server Data Dir: D:\jboss-3.0.6_tomcat-4.1.18\server

\default\db

19:09:27,408 INFO [Server] Server Temp Dir: D:\jboss-3.0.6_tomcat-4.1.18\server

\default\tmp

19:09:27,408 INFO [Server] Server Config URL: file:/D:/jboss-3.0.6_tomcat-4.1.1

8/server/default/conf/

19:09:27,408 INFO [Server] Server Library URL: file:/D:/jboss-3.0.6_tomcat-4.1.

18/server/default/lib/

19:09:27,408 INFO [Server] Root Deployemnt Filename: jboss-service.xml

19:09:27,418 INFO [Server] Starting General Purpose Architecture (GPA)...

19:09:27,768 INFO [ServerInfo] Java version: 1.4.1_01,Sun Microsystems Inc.

19:09:27,768 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.1_01-b01

,Sun Microsystems Inc.

19:09:27,778 INFO [ServerInfo] OS-System: Windows XP 5.2,x86

19:09:27,838 INFO [ServiceController] Controller MBean online

19:09:27,958 INFO [MainDeployer] Creating

19:09:27,999 INFO [MainDeployer] Created

19:09:27,999 INFO [MainDeployer] Starting

19:09:27,999 INFO [MainDeployer] Started

19:09:28,019 INFO [JARDeployer] Creating

19:09:28,019 INFO [JARDeployer] Created

19:09:28,019 INFO [JARDeployer] Starting

19:09:28,019 INFO [MainDeployer] Adding deployer: org.jboss.deployment.JARDeplo

yer@15b0afd

19:09:28,019 INFO [JARDeployer] Started

19:09:28,039 INFO [SARDeployer] Creating

19:09:28,039 INFO [SARDeployer] Created

19:09:28,039 INFO [SARDeployer] Starting

19:09:28,039 INFO [MainDeployer] Adding deployer: org.jboss.deployment.SARDeplo

yer@1a9334

19:09:28,069 INFO [SARDeployer] Started

19:09:28,079 INFO [Server] Core system initialized

19:09:28,079 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss

-3.0.6_tomcat-4.1.18/server/default/conf/jboss-service.xml

19:09:30,072 ERROR [WebService] Failed to get localhost name

java.lang.NullPointerException

at java.net.InetAddress.cacheAddress(InetAddress.java:648)

at java.net.InetAddress.cacheAddress(InetAddress.java:633)

at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)

at java.net.InetAddress.getLocalHost(InetAddress.java:1125)

at org.jboss.web.WebService.<init>(WebService.java:85)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

orAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

onstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:

812)

at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:

266)

at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:

293)

at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)

at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura

tor.java:165)

at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java

:128)

at org.jboss.system.ServiceController.install(ServiceController.java:231

)

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:324)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea

nDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)

at $Proxy2.install(Unknown Source)

at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)

at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)

at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:575)

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:324)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea

nDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:325)

at org.jboss.system.server.ServerImpl.start(ServerImpl.java:222)

at org.jboss.Main.boot(Main.java:148)

at org.jboss.Main$1.run(Main.java:381)

at java.lang.Thread.run(Thread.java:536)

请问该如何解决?

banq
2004-03-11 15:10
以前帖子有了,是你的主机没有解析localhost。如果是linux,在/etc/host中配置。

devilbaby
2004-03-12 12:44
我是刚学Jboss的,找了好久也没找到以前你解决该问题的帖子

我用的系统是winserver 2003,那里解析主机的文件应该是在systemroot\System32\Drivers\Etc\hosts

那里面的内容为

# Copyright (c) 1993-1999 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost

请问我该如何去解析主机从而解决问题呢?更奇怪的是如果我连上了Internet,Jboss就能正常启动了

谢谢帮忙!

devilbaby
2004-03-13 17:30
前面的问题解决了,但是在Jboss启动的过程中又抛出了别的异常,是创建容器错误吗?怎样去解决?

这里输入http://127.0.0.1:8080/jmx-console/index.jsp有页面显示,但是http://127.0.0.1:8083

就没有空白页出现,这是因为抛出下面那些异常的原因吗?

(异常片断的截取)

2004-03-13 17:04:17,083 INFO [org.jboss.ejb.EjbModule] Deploying MEJB

2004-03-13 17:04:17,153 ERROR [org.jboss.ejb.EjbModule] error adding container to app.

org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: :service=Webserver; - nested throwable: (javax.management.InstanceNotFoundException: :service=Webserver is not registered.)

at org.jboss.util.jmx.MBeanProxy.<init>(MBeanProxy.java:76)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:280)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:245)

at org.jboss.ejb.EjbModule.initializeContainer(EjbModule.java:700)

at org.jboss.ejb.EjbModule.createStatelessSessionContainer(EjbModule.java:583)

at org.jboss.ejb.EjbModule.createContainer(EjbModule.java:538)

at org.jboss.ejb.EjbModule.createService(EjbModule.java:363)

at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:136)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

2004-03-13 17:04:17,484 ERROR [org.jboss.ejb.EjbModule] Initialization failed

org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: :service=Webserver; - nested throwable: (javax.management.InstanceNotFoundException: :service=Webserver is not registered.)

at org.jboss.util.jmx.MBeanProxy.<init>(MBeanProxy.java:76)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:280)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:245)

at org.jboss.ejb.EjbModule.destroyService(EjbModule.java:456)

at org.jboss.ejb.EjbModule.createService(EjbModule.java:406)

at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:136)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)

at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)

at org.jboss.system.ServiceController$ServiceProxy.invoke

2004-03-13 17:04:17,874 WARN [org.jboss.system.ServiceController] Problem creating service jboss.j2ee:service=EjbModule,url=file%/D%/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/ejb-management.jar

org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: :service=Webserver; - nested throwable: (javax.management.InstanceNotFoundException: :service=Webserver is not registered.)

at org.jboss.util.jmx.MBeanProxy.<init>(MBeanProxy.java:76)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:280)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:245)

at org.jboss.ejb.EjbModule.destroyService(EjbModule.java:456)

at org.jboss.ejb.EjbModule.createService(EjbModule.java:406)

at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:136)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke

org.jboss.util.NestedRuntimeException: Error creating MBeanProxy: :service=Webserver; - nested throwable: (javax.management.InstanceNotFoundException: :service=Webserver is not registered.)

at org.jboss.util.jmx.MBeanProxy.<init>(MBeanProxy.java:76)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:280)

at org.jboss.util.jmx.MBeanProxy.create(MBeanProxy.java:245)

at org.jboss.ejb.EjbModule.destroyService(EjbModule.java:456)

at org.jboss.ejb.EjbModule.createService(EjbModule.java:406)

at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:136)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke

猜你喜欢