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


Subject: RE: Re: [jade-develop] Problems with the JSP example
From: Vassilios Koutkias (bikout@med.auth.gr)
Date: Fri Feb 07 2003 - 13:21:56 MET


Dear Stelios,

you were absolutely right! I installed a newer version of Tomcat in my system
and avoided the spaces in the CATALINA_HOME directory... (I had made the
configurations in Tomcat that you suggested in the first place.)

Thus, requesting the testagade.jsp page resulted in a successful launching of
the two Snooper agents in a container of the JADE Agent Platform. Just fine!

However, when I request the testjade.jsp page, even if a container is created
in the JADE Platform, there is no agent created in it, and I still get the
following message in my browser:

------------------------
description The server encountered an internal error() that prevented it from
fulfilling this request.

exception

org.apache.jasper.JasperException: Trying to start an agent without proper
runtime support.

etc. etc.
------------------------

and in Tomcat's console:

------------------------
Snooper created
    This is JADE 2.6 - 2002/07/19 09:32:33
    downloaded in Open Source, under LGPL restrictions,
    at http://jade.cselt.it/

Agent container Container-1@JADE-IMTP://develop1 is ready.
Jade Inited()
Start
------------------------

Finally, when I launch Tomcat with the "-security" option and request
testjade.jsp, there is no container created in the JADE Platform and the
following message is displayed in the browser:

------------------------
java.security.AccessControlException: access denied
(java.util.PropertyPermission * read,write) It works !!!!
------------------------

and in Tomcat's console:

------------------------
Snooper created
------------------------

Thank you very much. Your hints were really precious...

Best regards,

Vassilis.

> 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 : Fri Feb 07 2003 - 13:24:15 MET