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.
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)
Created attachment 29532 [details] messages.log
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.
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.
Single compilation doesn't work for 2.4 web applications on JBoss, SJSAS 8, ...
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
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"
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
v. build 200606290200