Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How to contribute to Tomcat's shared/lib?
How to contribute to Tomcat's shared/lib? [message #222888] Tue, 21 October 2008 11:42 Go to next message
Kaspar Fischer is currently offline Kaspar Fischer
Messages: 1
Registered: July 2009
Junior Member
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 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
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
Previous Topic:WSDL Parser error
Next Topic:How do I include external files in dynamic web project?
Goto Forum:
  


Current Time: Sat Aug 30 10:26:45 EDT 2014

Powered by FUDForum. Page generated in 0.01533 seconds