How to contribute to Tomcat's shared/lib? [message #222888] |
Tue, 21 October 2008 11:42  |
Eclipse User |
|
|
|
Dear all,
I have a WTP project that makes use of a service which is a jar in
Tomcat's shared/lib folder. The service uses Java serialization and fails
to deserialize an instance of a class from my WTP project. Clearly, the
service, residing in shared/lib, has its own classloader, different from
the one of my (WTP) project.
I am trying to have a part of my WTP project produce a jar that should go
into shared/lib (and contains the classes that need deserialization).
How can I accomplish this in Eclipse / WTP? Do I create a separate Java
project for this? How to I tell it to export as a JAR to Tomcat's
shared/lib directoy? Or is it done in a completely different way?
Many thanks for any feedback and apologies in advance for asking a rather
basic question,
Kaspar
|
|
|
Re: How to contribute to Tomcat's shared/lib? [message #222895 is a reply to message #222888] |
Tue, 21 October 2008 13:10  |
Eclipse User |
|
|
|
First review the answer to this[1] WTP Tomcat FAQ question. There isn't
anything that automatically exports or publishes a jar to "shared/lib".
You will probably have better luck modifying catalina.properties to
include a convenient location of your choosing during development.
In case you weren't aware, Tomcat 6.0.x doesn't include any "shared/lib"
by default. You have to create a shared classloader by modifying
catalina.properties.
Cheers,
Larry
[1]
http://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_are_classes_in_my _Tomcat_installation.27s_shared.2Flib_not_seen_by_my_Web_app lication.3F
Kaspar Fischer wrote:
> Dear all,
>
> I have a WTP project that makes use of a service which is a jar in
> Tomcat's shared/lib folder. The service uses Java serialization and
> fails to deserialize an instance of a class from my WTP project.
> Clearly, the service, residing in shared/lib, has its own classloader,
> different from the one of my (WTP) project.
>
> I am trying to have a part of my WTP project produce a jar that should
> go into shared/lib (and contains the classes that need deserialization).
>
> How can I accomplish this in Eclipse / WTP? Do I create a separate Java
> project for this? How to I tell it to export as a JAR to Tomcat's
> shared/lib directoy? Or is it done in a completely different way?
>
> Many thanks for any feedback and apologies in advance for asking a
> rather basic question,
> Kaspar
|
|
|
Powered by
FUDForum. Page generated in 0.27057 seconds