You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/06/08 12:41:48 UTC

[Bug 58010] New: Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

            Bug ID: 58010
           Summary: Class file are not getting compiled with debuginfo
                    while setting classdebuginfo in jasper ant task
           Product: Tomcat 7
           Version: 7.0.55
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Jasper
          Assignee: dev@tomcat.apache.org
          Reporter: vasa.v03@gmail.com

JSP Classes compiled by Jasper Ant Task getting compiled without debuginfo even
though by default classdebuginfo is set to true in
apache-tomcat-7.0.55-src/java/org/apache/jasper/JspC.java:189 


Used the following snippet for compiling jsp in a sample web application
------------------------------------------------------------
<taskdef name="jasper2" classname="org.apache.jasper.JspC">
<classpath>
... 
</classpath>
</taskdef>


<mkdir dir="${dir}/"/>
<jasper2 validateXml="false" classdebuginfo="true" uriroot="${dir}/jsp"
outputDir="${dir}/src" verbose="1" />
--------------------------------------------------------------

Used the following command to check if the classes compiled by Jasper has debug
info enabled or not .

javap -l Sample.class

which did not give LineNumberTable and LocalVariableTable attributes.

http://stackoverflow.com/questions/1508235/determine-whether-class-file-was-compiled-with-debug-info

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #6 from Mark Thomas <ma...@apache.org> ---
I've just tested this locally using the latest 7.0.x code (not that that should
matter - I don;t recall any changes in this area for years) and it works as
expected. Please follow up on the users mailing list if you require further
assistance.

If you are able to recreate this issue then feel free to re-open it and provide
the exact steps necessary to reproduce it from a clean install of the latest
7.0.x release.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

Joshua C Rebelo <jo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #3 from Joshua C Rebelo <jo...@gmail.com> ---
Marking the defect as re-opened, as I think its still not working.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
classDebugInfo not classdebuginfo

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

Joshua C Rebelo <jo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joshua.rebelo@gmail.com
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

--- Comment #2 from Joshua C Rebelo <jo...@gmail.com> ---

I have tried that flag, but the javap -l command output for jsp class files
doesn't have the LineNumberTable and LocalVariableTable attributes details.

My build.xml has this entry.

<taskdef classname="org.apache.jasper.JspC" name="jasper" >
            <classpath>
                <pathelement location="${JAVA_HOME}/../lib/tools.jar"/>
                <pathelement location="${compile.home}"/>
                ...
                <path refid="jasper.compile.classpath"/>
            </classpath>
        </taskdef>
        <jasper verbose="1"
                package="org.apache.jsp"
                classDebugInfo="true"
                uriroot="${basedir}/${prep.home}/jsp"
                ....
                outputDir="${basedir}/${prep.home}/src" />

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

--- Comment #5 from Vasantharaju <va...@gmail.com> ---
I tried with classDebugInfo as well the issue still persists .
Let us know for more information or samples

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 58010] Class file are not getting compiled with debuginfo while setting classdebuginfo in jasper ant task

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58010

--- Comment #4 from Vasantharaju <va...@gmail.com> ---
Even is the flag misspelled the default behavior for jasper is to compile class
files with debuginfo as per documentation.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org