Problem debugging web project with another project dependency [message #96697] |
Mon, 22 August 2005 17:16  |
Eclipse User |
|
|
|
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
I have a smallish web project which deploys to Tomcat 4.1 as a war. It
depends on another project which is exported as a .jar library. Until
this morning, it worked fine, but now it is telling me that it can't
find one of the classes, which is a couple of levels down in the jar
hierarchy. What changed at the time was that I was trying to get it so
I could debug the code both of the main project and the library. With a
bunch of fooling around, it ended up that I can't get the main project
to start.
I'm using wtp 0.7, and everything looks fine when I do a "Clean". In
the error text below, wra is the name of the library, all of the
indicated class files exist, and Eclipse can find them because it
doesn't report any errors when I do a Clean. The Tomcat engine,
however, can't seem to find them. Where do I look to see what paths
tomcat is using? The main project IS set up in Tomcat, and Tomcat
starts in both debug and run modes with no problems.
The below code is the error I'm seeing in my browser (Firefox):
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 2 in the jsp file: /Login.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\PROJECTS\EclipseWorkspace\workspace\.metadata\.plugins
\org.eclipse.wst.server.core\tmp0\work\Standalone\localhost\ SiteData
\Login_jsp.java:43: package wra.util does not exist
wra.util.WraAdmin wraAdmin = null;
^
An error occurred at line: 2 in the jsp file: /Login.jsp
Generated servlet error:
C:\PROJECTS\EclipseWorkspace\workspace\.metadata\.plugins
\org.eclipse.wst.server.core\tmp0\work\Standalone\localhost\ SiteData
\Login_jsp.java:45: package wra.util does not exist
wraAdmin = (wra.util.WraAdmin) pageContext.getAttribute
("wraAdmin", PageContext.REQUEST_SCOPE);
^
Thanks for any suggestions!
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
Re: Problem debugging web project with another project dependency [message #96807 is a reply to message #96697] |
Tue, 23 August 2005 09:20  |
Eclipse User |
|
|
|
Originally posted by: ns_dkerber.ns_WarrenRogersAssociates.com
Got it going; it appears that the part I was missing was the entry in
"Java JAR Dependencies" and/or "Project References" (I haven't bothered
to narrow down which one it was for sure). Now I can debug both my main
project code, and my library code together.
In article <MPG.1d740ab875f2368098968a@news.eclipse.org>,
ns_dkerber@ns_WarrenRogersAssociates.com says...
> I have a smallish web project which deploys to Tomcat 4.1 as a war. It
> depends on another project which is exported as a .jar library. Until
> this morning, it worked fine, but now it is telling me that it can't
> find one of the classes, which is a couple of levels down in the jar
> hierarchy. What changed at the time was that I was trying to get it so
> I could debug the code both of the main project and the library. With a
> bunch of fooling around, it ended up that I can't get the main project
> to start.
>
>
>
> I'm using wtp 0.7, and everything looks fine when I do a "Clean". In
> the error text below, wra is the name of the library, all of the
> indicated class files exist, and Eclipse can find them because it
> doesn't report any errors when I do a Clean. The Tomcat engine,
> however, can't seem to find them. Where do I look to see what paths
> tomcat is using? The main project IS set up in Tomcat, and Tomcat
> starts in both debug and run modes with no problems.
>
>
>
> The below code is the error I'm seeing in my browser (Firefox):
>
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 2 in the jsp file: /Login.jsp
>
> Generated servlet error:
> [javac] Compiling 1 source file
>
> C:\PROJECTS\EclipseWorkspace\workspace\.metadata\.plugins
> \org.eclipse.wst.server.core\tmp0\work\Standalone\localhost\ SiteData
> \Login_jsp.java:43: package wra.util does not exist
> wra.util.WraAdmin wraAdmin = null;
> ^
>
>
>
> An error occurred at line: 2 in the jsp file: /Login.jsp
>
> Generated servlet error:
> C:\PROJECTS\EclipseWorkspace\workspace\.metadata\.plugins
> \org.eclipse.wst.server.core\tmp0\work\Standalone\localhost\ SiteData
> \Login_jsp.java:45: package wra.util does not exist
> wraAdmin = (wra.util.WraAdmin) pageContext.getAttribute
> ("wraAdmin", PageContext.REQUEST_SCOPE);
> ^
>
>
>
>
> Thanks for any suggestions!
>
>
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
|
|
|
Powered by
FUDForum. Page generated in 0.30327 seconds