2

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

感谢雪兰佩雷拉。示例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
4

2 回答 2

2

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

Using AXIS2_HOME:      D:\axis2 

没有使用其他服务器。(我尝试在windows中启动服务器并成功启动。)

于 2012-10-25T02:07:46.363 回答
1

在 Linux 中,您可以这样做

转到主文件夹

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

打开 .bashrc 文件

如果定义了 $AXIS2_HOME 将其删除,然后添加

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

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

于 2014-11-07T14:59:12.970 回答