This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26420 - org.apache.jasper.JasperException when starting debugger
Summary: org.apache.jasper.JasperException when starting debugger
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2002-08-09 15:05 UTC by sva
Modified: 2004-03-03 22:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Web module (7.63 KB, application/zip)
2002-08-09 15:08 UTC, sva
Details
Localhost log (with exception inside) (35.91 KB, text/plain)
2002-08-09 15:09 UTC, sva
Details
JPEG Picture with exception (227.75 KB, image/jpeg)
2002-08-13 11:58 UTC, sva
Details
Exception stack trace (6.87 KB, text/plain)
2002-08-13 12:00 UTC, sva
Details
Tomcat exception (8.34 KB, text/plain)
2004-02-23 13:16 UTC, L Martinek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sva 2002-08-09 15:05:17 UTC
Steps to reproduce:
1. Mount web-module (from attachment).
2. Open test_jsp.jsp & jsp2.jsp
3. Start debugging test_jsp.
4. Execute jsp2.jsp
5. Start debugging jsp2.jsp

Sometimes after step 5 I have exception, but if it's not 
occured, repeat again steps 3-5.

Well reproduced under RH Linux 7.2 & Sparc Solaris 8 with 
Netbeans 3.4 RC2 (build 200208082340)

P.S. May be this bug should be submitted to tomcatint 
component. If I'm not right, please correct me.
Comment 1 sva 2002-08-09 15:08:02 UTC
Created attachment 7073 [details]
Web module
Comment 2 sva 2002-08-09 15:09:15 UTC
Created attachment 7074 [details]
Localhost log (with exception inside)
Comment 3 sva 2002-08-09 15:10:17 UTC
Additional comments:  Exception is showned inside 
localhost_log tab of output. Also, browser display 
exception instead of JSP.
Comment 4 sva 2002-08-09 15:11:37 UTC
Also I have following output to console:
=========================================================
<sva@hercules(pts/32).321> ./runide.sh 
cannot load servlet name: jsp
Internal HTTP server running on port 8082
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@cd67f
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@510bb7
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@440d13
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@a867dc
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@a30a0b
IOManager.init Tab Closed 
org.netbeans.modules.debugger.jpda.JPDADebugger@6f9c62
Internal HTTP server stopped
=========================================================
Comment 5 sva 2002-08-09 17:43:20 UTC
Better way to reproduce this bug is to press reload on 
browser, when starting new session of debugger or starting 
execution of JSP.
Comment 6 Petr Jiricka 2002-08-13 09:07:38 UTC
The exception that appears in the web browser that 
Vladimir sent to me privately (Vladimir, could you please 
attach this exception to this bug ?) shows that this bug 
is caused by bad synchronization inside Tomcat, as 
described in Tomcat bug 6907:

http://issues.apache.org/bugzilla/show_bug.cgi?id=6907

This bug appears in all versions of Tomcat 4.0.x, and is 
fixed in 4.1.x. I suggest we mark this bug as "will not 
fix".

Comment 7 sva 2002-08-13 11:58:46 UTC
Created attachment 7089 [details]
JPEG Picture with exception
Comment 8 sva 2002-08-13 12:00:42 UTC
Created attachment 7090 [details]
Exception stack trace
Comment 9 Patrick Keegan 2002-08-20 20:44:06 UTC
Release note provided by Leslie:

When testing or debugging web applications, an exception 
(org.apache.jasper.JasperException or 
javax.servlet.ServletException: duplicate class 
definition) may be thrown. It will appear in the server 
log file and/or in the web browser window.  This bug is a 
consequence of Tomcat bug 6907, for details see 
http://issues.apache.org/bugzilla/show_bug.cgi?id=6907 . 
The workaround is to restart the Tomcat web server.
Comment 10 Petr Jiricka 2004-01-15 19:20:34 UTC
Fixed in Tomcat 5 -> fixed.
Comment 11 L Martinek 2004-02-23 13:10:42 UTC
During verification of this issue I run into new issue. I was not able
to debug any JSP in webmodule attached by Vladimir. I got exception in
tomcat log. Tomcat was running, but didn't stop on breakpoint. I also
tried to delete all .nbattrs files, web.ias, web.warContent,
web.webj2eeri and web.webweblogic. Nothing helped. Debugging of other
webmodules works.
Comment 12 L Martinek 2004-02-23 13:16:41 UTC
Created attachment 13570 [details]
Tomcat exception
Comment 13 Martin Grebac 2004-02-23 14:55:47 UTC
Are you able to execute the JSP?
Comment 14 L Martinek 2004-02-23 15:31:28 UTC
Yes, I can execute JSP. Tomcat also runs in debug mode, and debugger
connets to it, but breakpoint isn't reached.
Comment 15 Martin Grebac 2004-02-23 15:34:29 UTC
Right. Thanks. I was able to reproduce in the meantime, and I already
know where's the problem. I'm working on it.
Comment 16 Martin Grebac 2004-02-23 16:36:19 UTC
Fixed in trunk.
Comment 17 L Martinek 2004-02-24 12:27:24 UTC
verified
Comment 18 Patrick Keegan 2004-03-03 22:40:41 UTC
will not relnote for 3.6; leaving keyword for benefit of 3.5-based
releases