无法启动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 Perera。示例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
答案 0 :(得分:2)
您是否定义了AXIS2_HOME环境变量?如果是这样删除并尝试。你可以看到
Using AXIS2_HOME: D:\axis2
没有使用其他服务器。 (我试图在Windows中启动服务器并成功启动。)
答案 1 :(得分:1)
在Linux中你可以这样做
转到主文件夹
按Ctrl + h(显示隐藏文件)
打开.bashrc文件
如果定义了$ AXIS2_HOME,请将其删除,然后添加
export AXIS2_HOME=""
export PATH=$PATH:$AXIS2_HOME
即使您从apt-get
下载了Axis2,也会删除