Including a Project into a Web Project [message #64186] |
Mon, 10 January 2005 18:40 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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?
|
|
|
Powered by
FUDForum. Page generated in 0.03223 seconds