2012-10-25 47 views
2

WSO2 ESB 4.5.0样品的Axis2服务器无法启动(samples.util.SampleAxis2Server)WSO2 ESB 4.5.0样品的Axis2服务器无法启动(samples.util.SampleAxis2Server)

D:\esb-4.5.0\samples\axis2Server>axis2server.bat 
"Starting Sample Axis2 Server ..." 
Using AXIS2_HOME:  D:\axis2 
Using JAVA_HOME:  C:\Program Files\Java\jdk1.6.0_33 
Server could not start due to class loading issue java.lang.ClassNotFoundException: samples.util.SampleAxis2Server 

感谢Shelan佩雷拉。示例axis2服务器正在工作。


我在执行示例客户端后得到新的异常。

客户端:

ERROR {org.apache.sandesha2.SandeshaModule} - Could not load module policies. Using default values. 

ESB:

Heap dump file created [1178627263 bytes in 45.317 secs] 
WARN - TimeoutHandler Expiring message ID : urn:uuid: ee4eeea8-1dd0-4704-8914-074c6cee40ae; 
dropping message after global timeout of : 120 seconds 
Exception in thread "[Timer] - Periodical Task (Bundle 124) (Bundle 124)" 
java.lang.OutOfMemoryError:Java heap space[2012-10-25 10:13:10,070] ERROR - NativeWorkerPool 
Uncaught exception java.lang.OutOfMemoryError: Java heap space 
ERROR - NativeWorkerPool Uncaught exception 
java.lang.OutOfMemoryError: Java heap space 
Exception in thread "NHTTPLatencyView-nio-http-latency-view" java.lang.OutOfMemo 
Exception in thread "PoolCleaner[28471793:1351129604388]" java.lang.OutOfMemoryE 
Exception in thread "http-sender-connections-view" java.lang.OutOfMemoryError: 
Exception in thread "NHTTPS2SLatencyView-nio-http-latency-view" java.lang.OutOfM 
ERROR - CarbonDeploymentSchedulerTask Error while running deployment synchronizer 
java.lang.OutOfMemoryError: Java heap space 

回答

2

是否定义AXIS2_HOME环境变量?如果这样删除并尝试。您可以看到,

Using AXIS2_HOME:  D:\axis2 

未使用某些其他服务器。 (我试过在windows启动服务器,并成功启动。)

+0

您是否使用某个端口偏移量启动了ESB? –

+0

它正在运行的示例axis2服务器,谢谢! – Ack

+0

没有。我的ESB运行在端口9443上: – Ack

1

在Linux中,你可以做到这一点

转到主文件夹

按Ctrl + H(显示隐藏文件)

开放.bashrc文件

如果$ AXIS2_HOME定义删除它,然后添加

export AXIS2_HOME="" 
export PATH=$PATH:$AXIS2_HOME 

即使您从apt-get下载了Axis2,这也会删除