Problem in adding external archives to web projects [message #158922] |
Fri, 03 February 2006 17:18 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.02885 seconds