facebook

Debugging JSPs with Oracle Application Server 10g Standalone

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 15 posts - 16 through 30 (of 32 total)
  • Author
    Posts
  • #242817 Reply

    yyuan98
    Member

    There is a debug option for <java-compiler> (this prints out the debugging message during JSP comiple, see message below) in server.xml file. It did not help. I did not see other debugging options available.

    ———JSP compile time Message from standard out ———-
    05/12/07 16:26:46 javaHome C:\jdk1.5.0_05\jre
    05/12/07 16:26:46 osName windows 2000
    05/12/07 16:26:46 pathSep ;
    05/12/07 16:26:46 useJavac true
    05/12/07 16:26:46 javaCompilerPath null
    05/12/07 16:26:46 javaHome C:\jdk1.5.0_05\jre
    05/12/07 16:26:46 osName windows 2000
    05/12/07 16:26:46 pathSep ;
    05/12/07 16:26:46 useJavac true
    05/12/07 16:26:46 javaCompilerPath C:\jdk1.5.0_05\bin\javac.exe
    05/12/07 16:26:46 Start Compilation using javac
    05/12/07 16:26:46 Start Compilation using javac
    05/12/07 16:26:46 Using External Javac Compiler…
    05/12/07 16:26:46 Args: [C:\jdk1.5.0_05\bin\javac.exe, -source, 1.4, -target, 1.4, -J-Xmx1024m, -encoding, UTF8, @.\javac.params.23871225]
    05/12/07 16:26:54 Compilation elapsed = 8s

    #242818 Reply

    Riyad Kalla
    Member

    What you want to set is that when the JSP pages are compiled with javac, you want them compiled with their debugging symbols intact. I looked around google and didn’t quickly find a setting for that.

    I will ask another.

    #242822 Reply

    Riyad Kalla
    Member

    I had a developer look into this and we found a bug specifically with version 10 of 10g server, we will try and get this fixed soon, sorry for the inconvenience.

    #243051 Reply

    Riyad Kalla
    Member

    We made some headway here, can you guys try this and see if it works, this is only for version 10 of 10g:

    If you just want to generated the smap file, you can set the JspServlet
    init-param debug to file.

    If you want the smap embedded in the generated class file set debug to true.

    I’ve not tried it but these parameters are usually set in the
    j2ee/home/config/global-web-application.xml file as follows:

    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>

    #244196 Reply

    Riyad Kalla
    Member

    Guys can you try my suggestion above? We are trying to determine if we fixed this bug.

    #246957 Reply

    Michael Laccetti
    Participant

    I’ve enabled JSP debugging in Oracle AS (10.1.3) as described above, but have no luck debugging JSPs. The breakpoint exists, but I don’t get the little checkmark beside it.

    I’m using the JSPs while using Struts+Tiles.

    #270434 Reply

    ghiro
    Member

    any news regarding this thread?
    i got the same problem.
    i have oc4j 10.1.2, starting it in debug mode within myeclipse and i’ m correctly debugging java servelts.
    Wanted to do the same with jsp pages, but I got no luck.

    thanks in advance

    #270440 Reply

    Riyad Kalla
    Member

    ghiro,
    You must be using 10.1.3 or later for proper debugging support, more information here: https://www.genuitec.com/forums/topic/oracle-as-how-to-debug-classes-or-jsps/

    #270464 Reply

    ghiro
    Member

    thanks for the update.

    #289875 Reply

    phatty
    Member

    Using myEclipse 6.5 and OC4j 10.1.3, have all the parameters set in the global-web-applications.xml file for oc4j to emit debug info and recognize a debugger, but still having issues. Has anyone solved this problem completely?

    #289892 Reply

    Riyad Kalla
    Member

    phatty,

    What kind of issue? What kind of file are you trying to debug? (class or JSP)?

    #290123 Reply

    phatty
    Member

    @support-rkalla wrote:

    phatty,

    What kind of issue? What kind of file are you trying to debug? (class or JSP)?

    Sorry for my lack of info. Java class files debug just fine in OC4J.

    Its the JSPs that we cannot get to debug. Currently we are using JBOSS to debug JSPs and the OC4J to verify builds are working before we push the ear file out to our test server and then production server (both of which are oracle application servers. Ideally we want to get away from JBOSS and just use OC4J, but if we cannot get the JSP debugging working we have to continue using two local servers, not cool…

    #290158 Reply

    Riyad Kalla
    Member

    If you create a simple scriplet in your JSPs, like <%= System.out.println(“Bob”) %> and set a breakpoint on it, does execution stop there or just keep going?

    Also are you sure you have the OC4J connector set to launch the server in “Debug” mode?

    And lastly, if you are using the Server view, are you launching the server with the “Run” button, or the “Debug” button?

    #291662 Reply

    Balazs D. Toth
    Participant

    Hi,
    Has anyone at all succeded in debugging JSP with MyEclipse on a remote Oracle AS?
    I’ve been working on it quite a few days.
    Debugging Java programs/servlets is simple and works at once.
    The Oracle documentation is a bit misleading, since it’s about remote debugging with the help of JDeveloper.
    And I found an error, too. (In the opmn.xml file the ‘debug’ init-param value cannot be true, the possible valus are: none/class/file.)
    Though I see the compiled JSPs with ‘some’ debug infos in them, I can’t stop at the breakpoints.
    Should I need to copy some JDeveloper jar files into my project?
    MyEclipse 5.0 GA Pro, Oracle AS 10.1.3.1 with two OC4J instances with ASControl (opmn)
    Balazs Toth (dtb)

    #291801 Reply

    Riyad Kalla
    Member

    dtb,

    Unfortunately the success of debugging (since MyEclipse’s impl is based on the spec) really depends almost entirely on the app server and what source map they hand back (if any). If execution isn’t stopping, then OC4J isn’t breaking on those pages… if execution is stopping but ME isn’t jumping to the right code, then the source map coming back is either incomplete or there isn’t one.

    I know that doesn’t help fix the problem, but just wanted to communicate how it looked from our end.

Viewing 15 posts - 16 through 30 (of 32 total)
Reply To: Debugging JSPs with Oracle Application Server 10g Standalone

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