You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Anastasia Smirnova <ns...@desertrainlab.com> on 2001/04/02 10:19:53 UTC
Classpath for user portlets
Hi all,
How do I set correct classpath for my portlets?
Please, help me.
Best regards, stacy
mailto:anasmi@mail.ru
Re: Classpath for user portlets
Posted by Santiago Gala <sg...@hisitech.com>.
Anastasia Smirnova wrote:
> Hi all,
>
> How do I set correct classpath for my portlets?
>
> Please, help me.
>
> Best regards, stacy
>
> mailto:anasmi@mail.ru
The best way is to put portlet classes either in WEB-INF/lib (as a jar
file) or in WEB-INF/classes (as a class hierarchy, create classes if it
does not exist) or the jetspeed context.
In this way you will not have to play with the CLASSPATH, but the
servlet engine will do it.
If you put your classes in the source hierarchy (under src/java) they
will be compiled and put into the war when you do "./build.[sh|bat]
webapp". This will allow you to replace the war completely without
additional effort.
Having classes inside the webapp hierarchy means you must be careful if
you want to reload the war, as your classes would be lost if you delete
the directory (needed, i.e. for tomcat, when you replace the war file)
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org