RE: Re: [jade-develop] Problems with the JSP example


Subject: RE: Re: [jade-develop] Problems with the JSP example
From: Stelios Gerogiannakis (SGerogia@archetypon.com)
Date: Thu Feb 06 2003 - 15:55:15 MET


Hello,

some things to note:

- Use the latest Tomcat version

- DO NOT install Tomcat in a dir with spaces!

- If you are using JDK1.4+:
        * Find catalina.policy and add entries like the following
 grant codeBase "file:${catalina.home}/webapps/myApp/WEB-INF/lib/jade.jar!/-" {
         permission java.security.AllPermission;
 };
for all jade JARS
        * Launch Tomcat by using the command <tomcat>\bin\startup.bat -security

From what I can recall, one of these (or all of these combined, not sure) solve problems similar to yours.

Best regards,

Stelios

-----Original Message-----
From: Vassilios Koutkias [mailto:bikout@med.auth.gr]
Sent: Thursday, February 06, 2003 4:18 PM
To: eduardo.ramirez@itesm.mx
Cc: jade-develop@sharon.cselt.it
Subject: Re: Re: [jade-develop] Problems with the JSP example

Dear Eduardo,

Thank you very much for your reply.

Initially, I also thought that the problem was due to a security constraint,
thus, I disabled my firewall and even requested the testajade.jsp page locally:

http://localhost:8080/myapp/testajade.jsp.

However, the problem still remains.

The first step I follow, is launching the Buffer agent (java jade.Boot -
platform Buffer:example.jsp.Buffer), which is successfully done. As a result,
the Main-Container of the agent platform is created. Then, I start-up the
Tomcat Server. This doesn't work either...

Is there a special configuration I have to make in the Tomcat Server for the
example application? What do you mean by saying that Tomcat Server must have
the permission to write the Container-ID file?

What modifications have you made in the code of the testajade.jsp or
tesjade.jsp page?

Thank you in advance...

Vassilis.

> I also had some problems with the example, so let me share you the
> pitfalls I found and the way I work around them.
>
>
> First of all notice that the main container must be running before the
> web application loads, otherwise, you should restart the web application
> (perhaps the whole server) after the platform is running.
>
>
> Does tomcat have permissions to write the Container-ID file?
> Do you have firewall or proxy software running?
>
>
> Hope it helps...
>
>
>
> Eduardo Ramírez
>
>
> Center for Intelligent Systems
> ITESM Campus Monterrey
> Monterrey, Mex.
>
>

> On Tue, 2003-02-04 at 08:25, Vassilios Koutkias wrote:
> Dear Jaders,
>
> I have some problems regarding the JSP example distributed with JADE,
although
> I follow the steps that are described in the corresponding tutorial.
>
> 1) When I request the "testajade.jsp" page, the following exception is
> generated in Tomcat's console:
>
> -------------------------------------------
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.4
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.4
> container jade created
> This is JADE 2.6 - 2002/07/19 09:32:33
> downloaded in Open Source, under LGPL restrictions,
> at http://jade.cselt.it/
>
> Communication failure while contacting agent platform: Communication Failure
> [nested message is: error marshalling arguments; nested exception is:
> java.net.SocketException: Software caused connection abort: socket
> write error]
> jade.core.IMTPException: Communication Failure [nested message is: error

_______________________________________________
jade-develop mailing list
jade-develop@sharon.cselt.it
http://sharon.cselt.it/mailman/listinfo/jade-develop
UNSUBSCRIBE INSTRUCTIONS AT http://jade.cselt.it/mailing.htm#unsubscribe



This archive was generated by hypermail 2a22 : Thu Feb 06 2003 - 15:52:52 MET