On 3/3/06, Stamatis Karvounarakis <[EMAIL PROTECTED]> wrote:
> Thank for the answer. I have created a simple portal using the jetspeed2
> guide to a simple portal. I have put the jar in the lets say

It's good to see your taking the simple approach.

> simple/WEB-INF/lib. Is this correct? One additional question. Since the

This is correct.

> portlet  is hot delpoyed in jetspeed2 in which startup will the servlet be
> loaded? Do I have to restart tomcat, or it will be loaded upon the

Yes it will.

> deployment of the portlet?

Tomcat startes the lifecycle of the web app context when portlets are
deployed. You shouldn't have to restart tomcat even when you redeploy.
There is the antijar looking problem on windows. The getting started
with j2 says,

"Tomcat 5.5.9 on Windows you have to set the global Context attribute
"antiJARLocking" to true."

In ${org.apache.jetspeed.server.home}\conf\context.xml use:

                                                
    <Context antiJARLocking="true">
    ...
    </Context>

The only problem that I have had with Tomcat hot deploy is when you
use singletons. You have to be sure to reinitialize the static
variables in any of your classes.

>
> Thanks again
>
> On 3/2/06, David Sean Taylor <[EMAIL PROTECTED]> wrote:
> >
> > Stamatis Karvounarakis wrote:
> > > Hello I have a servlet that I want to load on startup of jetspeed2. So I
> > > have added the following fragment in web.xml of my own project as I used
> > to
> > > do in jetspeed1:
> > > <servlet>
> > >                 <servlet-name>
> > >                         init
> > >                 </servlet-name>
> > >                 <servlet-class>
> > >
> > gr.ics.forth.SWPG.appserver.web.impl.CWEBInitServlet
> > >                 </servlet-class>
> > >                 <load-on-startup>1</load-on-startup>
> > >         </servlet>
> > >
> > > Nevertheless,the servlet is not launched. Can someone explain to me what
> > do
> > > I do wrong?
> > > Thanks a lot
> > >
> > > Stamatis
> > >
> > Where did you put the class
> >
> > gr.ics.forth.SWPG.appserver.web.impl.CWEBInitServlet
> >
> > Assuming you want it to start up in Jetspeed's context, it has to go in
> > Jetspeed's classpath, usually as a jar file in WEB-INF/lib or a class
> > file fully qualified under WEB-INF/classes
> >
> > Also, be careful where you place the <servlet> definition in the web.xml
> > as XML element definitions there are DTD validated
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>


--
Philip Donaghy
donaghy.blogspot.com del.icio.us/donaghy/philip
Skype: philipmarkdonaghy
Office: +33 5 56 60 88 02
Mobile: +33 6 20 83 22 62

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to