Subject: FW: Problems runnig JADE with J2EE
From: Bellifemine Fabio (Fabio.Bellifemine@TILAB.COM)
Date: Fri Oct 04 2002 - 14:00:55 MET DST
-----Original Message-----
From: ginoway@virgilio.it [mailto:ginoway@virgilio.it]
Sent: 03 October 2002 10:12
To: jade-develop-admin@sharon.cselt.it
Subject: Problems runnig JADE with J2EE
Hi! I'm working with JADE and J2EE. I want to run a JADE platform on J2EE
server. I have done a servlet whose goal is to create a MainContainer and
than i want to run Agents on it. When i run my servlet on the browser the
system shutt down the server and gives me this error:
Communication failure while contacting agent platform: Communication failure
while starting JADE Runtime System. Check if the RMIRegistry CLASSPATH includes
the RMI Stub classes of JADE. [nested message is: Error unmarshaling return
header; nested exception is:
java.net.SocketException: Connection aborted by peer: socket write
error]
jade.core.IMTPException: Communication failure while starting JADE
Runtime System. Check if the RMIRegistry CLASSPATH includes the RMI Stub
classes of JADE. [nested message is: Error unmarshaling return header; nested
exception is:
java.net.SocketException: Connection aborted by peer: socket write
error]
at jade.imtp.rmi.RMIIMTPManager.remotiz(RMIIMTPManager.java:218)
at jade.core.MainContainerImpl.register(MainContainerImpl.java:206)
at jade.core.AgentContainerImpl.joinPlatform(AgentContainerImpl.java:576)
at jade.core.Runtime.createMainContainer(Runtime.java:95)
Here is the part of code of my servlet where i create the main container:
Runtime rt = Runtime.instance();
rt.setCloseVM(true);
// container creation
ProfileImpl p = new ProfileImpl();
p.setParameter(Profile.MAIN,"true");
p.setParameter(Profile.MAIN_HOST,"Brie")
p.setParameter(Profile.MAIN_PORT,"1200");
ac = rt.createMainContainer(p);
Have you some suggestions for me?
Bye
Andrea Fochi
This archive was generated by hypermail 2a22 : Fri Oct 04 2002 - 14:01:04 MET DST