cxf部署在websphere上引起的java.lang.J9VMInternals.initialize

将发布好的webservice部署在WAS上,ws页面打不开

异常如下:

 

[11-3-17 11:22:29:405 CST] 00000051 ServletWrappe E   SRVE0100E: 未识别出由 servlet CXFServlet 抛出的 init() 异常:java.lang.NoClassDefFoundError: com.infodms.ws.service.dao.BalanceInfoDao (initialization failure)
 at java.lang.J9VMInternals.initialize(J9VMInternals.java:123)
 at com.infodms.ws.service.server.CI02Impl.<init>(CI02Impl.java:19)
 at java.lang.Class.newInstanceImpl(Native Method)
 at java.lang.Class.newInstance(Class.java:1263)
 at com.infodms.ws.common.MyCXFNoSpringServlet.loadBus(MyCXFNoSpringServlet.java:36)
 at org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFServlet.java:84)
 at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185)

 

这个类明明是有的啊,改下类加载顺序,问题依旧。

 

换另外一台机器部署,没有此问题。看来问题出现在机器的环境上。把两台机器的log拿出来对比一下。

 

正常的机器:

 

************ Start Display Current Environment ************
WebSphere Platform 6.1 [ND 6.1.0.0 b0620.14]  running with process name MICROSOF-E2A16FCell01\MICROSOF-E2A16FNode01\server and process id 2168
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 3, v.5973
Java version = J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060504 (JIT enabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA, Java Compiler = j9jit23, Java VM name = IBM J9 VM

 

有问题的机器:

 

************ Start Display Current Environment ************
WebSphere Platform 6.1 [ND 6.1.0.0 b0620.14]  running with process name 20110220-1156Cell01\20110220-1156Node01\server1 and process id 1724
Host Operating System is Windows XP, version 5.1 build 2600 Service Pack 2
Java version = J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20060504 (JIT disabled)
J9VM - 20060501_06428_lHdSMR
JIT  - 20060428_1800_r8
GC   - 20060501_AA, Java Compiler = NONE, Java VM name = IBM J9 VM

 

WAS版本是一样的,发现Windows版本不一样,把有问题的机器打上SP3补丁,问题解决。

你可能感兴趣的:(java,windows,IBM,XP,websphere)