Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Including a Project into a Web Project
Including a Project into a Web Project [message #64186] Mon, 10 January 2005 18:40 Go to next message
Eclipse UserFriend
Originally posted by: Steve.L.Nelson.wellsfargo.com

I have been having some trouble getting my Tomcat runtime to recognize a
project I am including into my webproject.

First the information:
Fresh install of wtp-1.0m2 with fresh install of all required components.
Tomcat 5.5.6 - Fresh Install

I first create a Project (UtilityProject) and add a class to it
(UtilityClass).

Then I add a web project (WebProject) with and index.jsp file. I set the
WebProject up to reference UtilityProject.

The jsp editor seems to find the UtilityClass just fine, but when I try
and execute the .jsp through the Tomcat runtime it tells me the class
isn't there. Apparently I need to add it to the classpath of tomcat but I
am unsure of how to do this.

Any ideas?
Re: Including a Project into a Web Project - Now Working [message #64212 is a reply to message #64186] Mon, 10 January 2005 18:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Steve.L.Nelson.wellsfargo.com

Okay, got it working. I had to go into the Run options for the Tomcat
Server and add the projects to the ClassPath. I have to do this for both
the Debug and Run options. I wish this process could be a little more
automated like it is in WSAD.

Steve Nelson wrote:

> I have been having some trouble getting my Tomcat runtime to recognize a
> project I am including into my webproject.

> First the information:
> Fresh install of wtp-1.0m2 with fresh install of all required components.
> Tomcat 5.5.6 - Fresh Install

> I first create a Project (UtilityProject) and add a class to it
> (UtilityClass).

> Then I add a web project (WebProject) with and index.jsp file. I set the
> WebProject up to reference UtilityProject.

> The jsp editor seems to find the UtilityClass just fine, but when I try
> and execute the .jsp through the Tomcat runtime it tells me the class
> isn't there. Apparently I need to add it to the classpath of tomcat but I
> am unsure of how to do this.

> Any ideas?
Re: Including a Project into a Web Project - Now Working - Maybe Not [message #64249 is a reply to message #64212] Mon, 10 January 2005 20:29 Go to previous message
Eclipse UserFriend
Originally posted by: Steve.L.Nelson.wellsfargo.com

Okay, I spoke to soon. Apparently because the Utility Project defines a
Struts Action the struts.jar gets included in the Classpath twice and
breaks. Any ideas on this one?

Steve Nelson wrote:

> Okay, got it working. I had to go into the Run options for the Tomcat
> Server and add the projects to the ClassPath. I have to do this for both
> the Debug and Run options. I wish this process could be a little more
> automated like it is in WSAD.

> Steve Nelson wrote:

>> I have been having some trouble getting my Tomcat runtime to recognize a
>> project I am including into my webproject.

>> First the information:
>> Fresh install of wtp-1.0m2 with fresh install of all required components.
>> Tomcat 5.5.6 - Fresh Install

>> I first create a Project (UtilityProject) and add a class to it
>> (UtilityClass).

>> Then I add a web project (WebProject) with and index.jsp file. I set the
>> WebProject up to reference UtilityProject.

>> The jsp editor seems to find the UtilityClass just fine, but when I try
>> and execute the .jsp through the Tomcat runtime it tells me the class
>> isn't there. Apparently I need to add it to the classpath of tomcat but I
>> am unsure of how to do this.

>> Any ideas?
Previous Topic:Folders names
Next Topic:M2 JSP Edtior no highlighting and code assist
Goto Forum:
  


Current Time: Thu Jul 18 19:22:37 GMT 2024

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

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

Back to the top