- This topic has 4 replies, 2 voices, and was last updated 19 years, 9 months ago by
dglick.
-
AuthorPosts
-
dglickParticipantI have an EJB/JSP app that uses an ant script to deploy to JBoss 3.2.7. I can’t use the web deployment feature of MyEcilpseIDE because the project has multiple developers, not all of whom use Eclipse, and the web source folder is within the Java source folder.
After I deploy with my ant script, I start up the JBoss instance via the MyEclipse connector. I can set breakpoints in the Java code and step through it without a problem. When I set a breakpoint in a JSP page, the program breaks but shows a ‘JSP source not found’ error.
I’m thinking that being able to debug the JSP source code would be a good thing… 🙂 Any help would be appreciated.
Riyad KallaMemberDoes that version of JBoss use Tomcat 5? If not, then that is your problem.
If it does use Tomcat 5, then I think the real problem is that the source map returned by Tomcat to MyEclipse makes no sense since your Ant script goes through some translation of the location of the files. So forexample when Tomcat says “Source for line 54 in this file maps to /WebRoot/index.jsp line 66” MyEclipse looks in “/WebRoot/index.jsp” and finds nothing, because your project likely looks something more like “/src/WEbRoot/index.jsp” or something to that effect.
dglickParticipantThe problem turned out to be that my project needed to be set up as a MyEclipse Web Project, even though I was not using MyEclipse deployment. This, in turn, required that I move the web root directory out of the Java source tree, since I couldn’t point MyEclipse at it while it was within the Java source tree. Once I moved the web root and configured the project as a MyEclipse Web Project, JSP debugging started working correctly. Life is good.
Why does MyEclipse require that the web root directory reside outside of the Java source directory?
Riyad KallaMemberWhy does MyEclipse require that the web root directory reside outside of the Java source directory?
Because the default output dir (WebRoot/WEB-INF/classes) cannot be contained within a source directory, Eclipse won’t allow it.
dglickParticipantThanks, Riyad. We can debate the philosophy of where Eclipse should allow the web root to exist over a beer sometime… 😉
-
AuthorPosts