users@glassfish.java.net

JSP debug - no line numbers generated

From: David Harrigan <dharrigan_at_gmail.com>
Date: Thu, 14 Dec 2006 03:46:11 -0800 (PST)

Hi,

GF v2 B28.

I'm getting an error in one of my JSPs (to be expected, it's not working
correctly). Yet, on the stack trace coming back, I'm getting no debug
information (i.e., line numbers). Here's part of the trace...


[#|2006-12-14T09:54:20.325+0000|INFO|sun-appserver-ee9.1|javax.enterprise.system.stream.out|_ThreadID=12;_ThreadName=TP-Processor12;|
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|#]

[#|2006-12-14T09:54:20.327+0000|WARNING|sun-appserver-ee9.1|javax.enterprise.system.stream.err|_ThreadID=12;_ThreadName=TP-Processor12;_RequestID=f1446b7f-7932-489f-922d-69a621b5915f;|java.lang.NullPointerEx
ception
        at org.apache.jsp.ouk.web.results_jsp._jspService(Unknown Source)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:464)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:358)


In my sun-web.xml, I have these settings set:

        <property name="keepgenerated" value="true" />
        <property name="development" value="true" />
        <property name="classdebuginfo" value="true" />

and in my domain.xml, I have this setting:

<java-config classpath-suffix="" debug-enabled="true" debug-options="-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555"
env-classpath-ignored="true" java-home="${com.sun.aas.javaRoot}"
javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated
-g" system-classpath="${com.sun.aas.installRoot}/lib/appserv-launch.jar">

Notice the javac-options set to -g which should generate all debug info.

I tried removing the .java file and the .class file of the jsp and still no
joy

I'm using JDK 1.5.0_09 and Ubuntu Linux 6.10 with kernel version 2.6.17.

Is there anyway I can test the class to see if line numbers *are* being
generated, or it's false alarm?

-=david=-
-- 
View this message in context: http://www.nabble.com/JSP-debug---no-line-numbers-generated-tf2819991.html#a7870999
Sent from the java.net - glassfish users mailing list archive at Nabble.com.