Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Classpath issues - Tomcat 5.5 server referencing other projects
Classpath issues - Tomcat 5.5 server referencing other projects [message #146383] Mon, 07 November 2005 05:53 Go to next message
Eclipse UserFriend
I do not seem to be able to get my Tomcat5.5 server to find classes held
in other projects. Eg., I have an XyzModel project and a XyzServer
project set up to use Tomcat5.5. In the server project I include the
model project on the build path, and select it in the project
references, but when I run my servlet, Tomcat complains that it cannot
find any of the classes in my model project.

Am I excpecting too much from the server project to set up Tomcat to
reference classes in other projects? Is there a 'proper' solution to
this problem, or do I have to hack some kind of temporary fix?

I am using WTP 0.7.1.

If anyone can shed any light on where I am going wrong with my config, I
would appreciate that. Thanks.

Rus.
Re: Classpath issues - Tomcat 5.5 server referencing other projects [message #146421 is a reply to message #146383] Mon, 07 November 2005 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Russell Dodd wrote:
>
> I do not seem to be able to get my Tomcat5.5 server to find classes held
> in other projects. Eg., I have an XyzModel project and a XyzServer
> project set up to use Tomcat5.5. In the server project I include the
> model project on the build path, and select it in the project
> references, but when I run my servlet, Tomcat complains that it cannot
> find any of the classes in my model project.
>
> Am I excpecting too much from the server project to set up Tomcat to
> reference classes in other projects? Is there a 'proper' solution to
> this problem, or do I have to hack some kind of temporary fix?
>
> I am using WTP 0.7.1.
>
> If anyone can shed any light on where I am going wrong with my config, I
> would appreciate that. Thanks.
>
> Rus.

I'm not sure what 'Project References' propety page is really for but it
doesn't mean this.

The mechanism under which this sharing of a utility project inside one
or more web projects is currently under going change. But it is
possible to get this working with 0.7.1 (sorry; I really dont have time
to explain how here) but by the time M8 comes out I expect first class
support to be ironed out.

In M8 I'm hopeful this support will work seamlessly through the J2EE
Module Dependancy -> Web Libraries property page.


The build path has an Order and Export tab, I'm not entirely sure what
this page is meant to export when the box is ticked. Maybe it only
works to WAR export not Server publishing.



An alternative for now is to write an ANT script to build and export
your JAR into your web project. I have used that mechanism for a good
while pre 0.7 slow but it does the job at just one click. Checkout Run
-> External Tools.

Hope this helps...
Re: Classpath issues - Tomcat 5.5 server referencing other projects [message #146428 is a reply to message #146421] Mon, 07 November 2005 11:12 Go to previous messageGo to next message
Eclipse UserFriend
> I'm not sure what 'Project References' propety page is really for but it
> doesn't mean this.
>
> The mechanism under which this sharing of a utility project inside one
> or more web projects is currently under going change. But it is
> possible to get this working with 0.7.1 (sorry; I really dont have time
> to explain how here) but by the time M8 comes out I expect first class
> support to be ironed out.
>
> In M8 I'm hopeful this support will work seamlessly through the J2EE
> Module Dependancy -> Web Libraries property page.
>
>
> The build path has an Order and Export tab, I'm not entirely sure what
> this page is meant to export when the box is ticked. Maybe it only
> works to WAR export not Server publishing.
>
>
>
> An alternative for now is to write an ANT script to build and export
> your JAR into your web project. I have used that mechanism for a good
> while pre 0.7 slow but it does the job at just one click. Checkout Run
> -> External Tools.
>
> Hope this helps...


Thanks for your prompt reply. I guess it looks as though I should
download the M8 build and see if I can get that working.
Re: Classpath issues - Tomcat 5.5 server referencing other projects [message #146435 is a reply to message #146428] Mon, 07 November 2005 11:40 Go to previous message
Eclipse UserFriend
Russell Dodd wrote:
> Thanks for your prompt reply. I guess it looks as though I should
> download the M8 build and see if I can get that working.

Oops! My bad, I meant M9.
Previous Topic:EJB spec violation
Next Topic:XML Validation in 0.7.1
Goto Forum:
  


Current Time: Fri Jun 06 11:26:02 EDT 2025

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

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

Back to the top