Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Problem in adding external archives to web projects
Problem in adding external archives to web projects [message #158922] Fri, 03 February 2006 17:18 Go to next message
Eclipse UserFriend
Originally posted by: steffeno.in.tum.de

Hello together!

I hope i finally found my way to the right forum.

First of all i like to tell you how much i like the wtp which helped me a
lot with my work.

But know to my problem.
I am using Eclipse with WTP to develop a dynamic web projekt including an
webservice over tomcat 5.0
All Webservice skelettons are calling my server class which is implemented
with the singleton pattern.
All this is working fine.
My project classes are all located in some package in the src folder
together
with the package of the web service skelletons and the beans that are
transfered over the web service.
Now i wanted to add log4j to my project. But when i am adding the log4j via
Bild Path -> add external archives the web service is not working anymore.
I get "exception: java.lang.reflect.InvocationTargetException" execptions
on my testclient if i try to call the web service. The server is not
throwing any exceptions.
I fixed that with copying the log4j.jar to the tomcat\common\lib folder.
That works so far but now i have my log statements mixed with the tomcat
log messages(in debug a lot of stuff). I found a workaround but my problem
is
connected to this one.
Now i wanted to add further external jars. In my case the prevayler.jar
(www.prevayler.org) to my project.
And again the webservices aren't working anymore until i copy the
prevayler.jar in the tomcat\common\lib again.
But now the tomcat is throwing a classnotfound exception when my code is
calling one of my own classes that inherits from one class in the
prevayler.jar.
Now my question:
Why does this error occur? All classes of my project are found and the
class i mean is located in the same package as some of the others.
Why can tomcat find all these classes but not the one that inherits from
an external archive that is included in the build path?
What can I do for a workaround?

I am grateful for every tip or idea.

thx for your help.

Oliver Steffens
Re: Problem in adding external archives to web projects [message #158930 is a reply to message #158922] Fri, 03 February 2006 17:43 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
For why the jar isn't copied, see:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=116783

This is fixed in the latest M-build, but you may find:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=126076

annoying. This one is also fixed, but will appear in the next M-build.

Cheers,
Larry


Oliver Steffens wrote:
> Hello together!
>
> I hope i finally found my way to the right forum.
>
> First of all i like to tell you how much i like the wtp which helped me
> a lot with my work.
>
> But know to my problem.
> I am using Eclipse with WTP to develop a dynamic web projekt including
> an webservice over tomcat 5.0
> All Webservice skelettons are calling my server class which is
> implemented with the singleton pattern.
> All this is working fine.
> My project classes are all located in some package in the src folder
> together
> with the package of the web service skelletons and the beans that are
> transfered over the web service.
> Now i wanted to add log4j to my project. But when i am adding the log4j via
> Bild Path -> add external archives the web service is not working anymore.
> I get "exception: java.lang.reflect.InvocationTargetException"
> execptions on my testclient if i try to call the web service. The server
> is not throwing any exceptions.
> I fixed that with copying the log4j.jar to the tomcat\common\lib folder.
> That works so far but now i have my log statements mixed with the tomcat
> log messages(in debug a lot of stuff). I found a workaround but my
> problem is
> connected to this one.
> Now i wanted to add further external jars. In my case the prevayler.jar
> (www.prevayler.org) to my project. And again the webservices aren't
> working anymore until i copy the prevayler.jar in the tomcat\common\lib
> again.
> But now the tomcat is throwing a classnotfound exception when my code is
> calling one of my own classes that inherits from one class in the
> prevayler.jar.
> Now my question:
> Why does this error occur? All classes of my project are found and the
> class i mean is located in the same package as some of the others.
> Why can tomcat find all these classes but not the one that inherits from
> an external archive that is included in the build path?
> What can I do for a workaround?
>
> I am grateful for every tip or idea.
>
> thx for your help.
>
> Oliver Steffens
>
>
Previous Topic:WTP 1.0+ Classpath Change publishing to Tomcat.
Next Topic:how to generate web service client
Goto Forum:
  


Current Time: Sat Apr 27 05:23:19 GMT 2024

Powered by FUDForum. Page generated in 0.02885 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top