facebook

JSP debugging w/JBoss 3.2.7: source not found

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #230223 Reply

    dglick
    Participant

    I 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.

    #230234 Reply

    Riyad Kalla
    Member

    Does 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.

    #230433 Reply

    dglick
    Participant

    The 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?

    #230437 Reply

    Riyad Kalla
    Member

    Why 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.

    #230450 Reply

    dglick
    Participant

    Thanks, Riyad. We can debate the philosophy of where Eclipse should allow the web root to exist over a beer sometime… 😉

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSP debugging w/JBoss 3.2.7: source not found

You must be logged in to post in the forum log in