问题描述:
将JADE的Container与JBoss放在同一个JVM平台中运行,首先,JADE的MainContainer端口必须与JBoss的RMI端口(1098、1099)不能冲突,本人使用的是8888端口,但是还是出现下面的错误:
15
:
30
:
18
,
015
ERROR [STDERR]
2006
-
11
-
29
15
:
30
:
18
jade.core.AgentContainerImpl joinPlatform
严重: Some problem occurred while joining agent platform.
15 : 30 : 18 , 015 ERROR [STDERR] jade.core.ProfileException: Can ' t get a proxy to the Platform Manager [nested jade.core.IMTPException: Communication failure while starting JADE Runtime System. Check if the RMIRegistry CLASSPATH includes the RMI Stub classes of JADE. [nested java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files / JBoss / server / default / deploy / ...
严重: Some problem occurred while joining agent platform.
15 : 30 : 18 , 015 ERROR [STDERR] jade.core.ProfileException: Can ' t get a proxy to the Platform Manager [nested jade.core.IMTPException: Communication failure while starting JADE Runtime System. Check if the RMIRegistry CLASSPATH includes the RMI Stub classes of JADE. [nested java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.net.MalformedURLException: no protocol: Files / JBoss / server / default / deploy / ...
原因:
部署工程到JBoss服务器的时候,访问目录存在空格(请看最后一行,本人JBoss目录放在了D:/Program Files/目录下),JADE的解释程序将空格当成了分隔符。
解决方法:
将JBoss根目录置于分区的根目录,重新部署,运行即可!