- This topic has 31 replies, 10 voices, and was last updated 16 years ago by
support-joy.
-
AuthorPosts
-
yyuan98MemberThere 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
Riyad KallaMemberWhat 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.
Riyad KallaMemberI 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.
Riyad KallaMemberWe 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>
Riyad KallaMemberGuys can you try my suggestion above? We are trying to determine if we fixed this bug.
Michael LaccettiParticipantI’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.
ghiroMemberany 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
Riyad KallaMemberghiro,
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/
ghiroMemberthanks for the update.
phattyMemberUsing 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?
Riyad KallaMemberphatty,
What kind of issue? What kind of file are you trying to debug? (class or JSP)?
phattyMember@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…
Riyad KallaMemberIf 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?
Balazs D. TothParticipantHi,
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)
Riyad KallaMemberdtb,
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.
-
AuthorPosts