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 74250 - Cannot compile/run single .jsp on non-Tomcat Web Project
Summary: Cannot compile/run single .jsp on non-Tomcat Web Project
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks: 75143
  Show dependency tree
 
Reported: 2006-03-31 15:14 UTC by Dan Kolar
Modified: 2006-06-30 10:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (23.88 KB, text/plain)
2006-03-31 15:14 UTC, Dan Kolar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kolar 2006-03-31 15:14:16 UTC
build 200603310200  jdk1.5_0_06   glassfish b41

1) Create/open Web Project with non-Tomcat server (SJSAS 8, SJSAS 9, JBoss..)
2) Choose 'Compile File'/'Run File' on some .jsp in the project

Compile exception is thrown:

Exception in thread "main" java.lang.NoClassDefFoundError: javax/servlet/jsp/
JspApplicationContext
        at org.apache.jasper.compiler.JspRuntimeContext.
<clinit>(JspRuntimeContext.java:84)
        at org.apache.jasper.JspC.initServletContext(JspC.java:1329)
        at org.apache.jasper.JspC.execute(JspC.java:1174)
        at org.netbeans.modules.web.project.ant.JspC.main(JspC.java:39)
        at org.netbeans.modules.web.project.ant.JspCSingle.main(JspCSingle.java:
94)
Comment 1 Dan Kolar 2006-03-31 15:14:55 UTC
Created attachment 29532 [details]
messages.log
Comment 2 Petr Pisl 2006-04-04 15:32:07 UTC
I commited version of the jsp parser which now is able compile the jsp pages on
glassfish as well. Unfrotunately there are still problems with JBoss and other
servers.
Comment 3 Petr Pisl 2006-04-04 17:28:49 UTC
I'm closing this issue, because it works in servlet containers which are 2.5
specification compatible. Unfortunately JBos, SJSAS 8 and WebLogic have servlet
container which is not 2.5 compatible, so the web application 2.5 should be
created for these servers. Compilation works ok for jsp pages in 2.4 web
applications

For SJSAS 9 it works correctly. 
Comment 4 Jiri Skrivanek 2006-04-07 10:58:46 UTC
Single compilation doesn't work for 2.4 web applications on JBoss, SJSAS 8, ...
Comment 5 Petr Pisl 2006-04-18 16:08:13 UTC
Fixed in release55. Could QA engineers test it with all supported servers? It
also influences if user check Test compile all JSP files during builds checkbox
in Project Properties -> Build -> Compiling

 
Checking in WebProjectModule.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectModule.java,v 
<--  WebProjectModule.java
new revision: 1.16.20.1.2.2; previous revision: 1.16.20.1.2.1
done
Comment 6 Dan Kolar 2006-06-26 12:02:28 UTC
reproducible with build 200606220200

Now error is 

java.lang.NoClassDefFoundError: com/sun/org/apache/commons/logging/LogFactory
        at org.apache.jasper.JspC.<clinit>(JspC.java:122)
Exception in thread "main" 
Comment 7 Petr Pisl 2006-06-28 11:02:28 UTC
It's regression caused excluding logging classes from glassfish jspparser. Fixed
on release55 branch.
IDE:-------------------------------------------------
IDE: [6/28/06 12:00 PM] Committing "WebProjectModule.java" started
Checking in WebProjectModule.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProjectModule.java,v 
<--  WebProjectModule.java
new revision: 1.16.20.1.2.4; previous revision: 1.16.20.1.2.3
done
IDE: [6/28/06 12:00 PM] Committing "WebProjectModule.java" finished
Comment 8 Dan Kolar 2006-06-30 10:04:40 UTC
v. build 200606290200