Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Eclipse/Tomcat test environment: Project dependencies/classpath

Reply
Thread Tools

Eclipse/Tomcat test environment: Project dependencies/classpath

 
 
Thomas
Guest
Posts: n/a
 
      10-18-2003
Hi,
I have created a Tomcat project within Eclipse containing several
servlets. Accessing the servlets via the webapps (projects) URL works
fine.
Afterwards I created another Tomcat project extending the first one
(first project is checked in the second project's project references.
I have correct web.xml files for both projects. The web.xml for the
2nd project defines servlets contained in the 1st projest. This causes
an error. The classloader apparently cannot find the servlets which
actually belong to the 1st project. No classes that come from the 1st
project are found in the 2nd project at all at runtime (compilation
worked fine so there is no error in the build path).
What do I have to do inorder to connect both projects? I do not want
to copy all servlets and misc classes from the 1st to the 2nd project
but use the 1st project as a foundation for extension projects like
the 2nd one.
Can anyone help?
 
Reply With Quote
 
 
 
 
Robert Olofsson
Guest
Posts: n/a
 
      10-18-2003
Thomas ((E-Mail Removed)) wrote:
: What do I have to do inorder to connect both projects? I do not want
: to copy all servlets and misc classes from the 1st to the 2nd project
: but use the 1st project as a foundation for extension projects like
: the 2nd one.

I would suggest that you read the class loader howto:
http://jakarta.apache.org/tomcat/tom...der-howto.html

Basically different web apps can not see each others classes.
Put the classes that need to be shared across several web apps in
the $CATALINA_HOME/shared/classes directory

/robo
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A test can be opened only within a test Project Error Dave ASP .Net Web Controls 3 02-05-2008 05:40 AM
TEST TEST Test...Blah Blah Blah generalbatguano@pacbell.net Computer Support 2 09-15-2006 03:47 AM
TEST TEST Test...Blah Blah Blah Generalbatguano@pacbell.net Computer Support 6 09-13-2006 01:53 AM
TEST TEST TEST Gazwad Computer Support 2 09-05-2003 07:32 PM
test test test test test test test Computer Support 2 07-02-2003 06:02 PM



Advertisments