Re: [nbusers] Intermittent errors when validating JSPs.
Tor Norbye <[email protected]> Tue, 04 May 2004 11:22:28 -0700
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <00420914-9DF8-11D8-A933-000A9590903C__44188.3422587582$1083694795@sun.com> |
We should probably disable JTidy for JSP's; JTidy chokes if it sees tags it doesn't recognize - and that includes all jsp tags. There's a way to pass in a list of ignore-tags to jtidy before a scan but we're not using it. It would be better if jtidy was enhanced to handle jsp files properly (this has been requested on the jtidy list a few times). The reason you get a blank preview is that when jtidy encounters an unknown tag it exits out without producing a marked up version of the source, so we're diffing the old version and the new empty/blank version. -- Tor On May 4, 2004, at 11:16 AM, Michael Bishop wrote: > OK, the IDE log is attached. This log is a clean startup of NetBeans, > loading the JSP and trying to validate it. Same error. > > Here are the JARs in WEB-INF/lib: > > commons-beanutils.jar > commons-collections.jar > commons-digester.jar > commons-fileupload.jar > commons-lang.jar > commons-logging.jar > commons-validator.jar > junit.jar > log4j-1.2.8.jar > struts.jar > strutstest-2.0.0.jar > > Also, I might as well note a couple other symptoms I have that may > be related. Sometimes, when I preview "JTidy Clean-Up and Format" in > the Tools menu, the preview contains a blank page and if I go ahead and > use it, the resulting JSP is also blank. This works sometimes as well. > I also installed the Jalopy plug-in. Sometimes when I try to format > code, I get a similar NoClassDefFound error. I had to reinstall Jalopy > to fix this problem. It seems when one thing breaks, everything > breaks. > I still haven't been able to successfully validate pages since > Saturday. > > Michael Bishop > -----Original Message----- > From: Martin Schovanek [mailto:[email protected]] > Sent: Tuesday, May 04, 2004 12:18 PM > To: [email protected] > Subject: Re: [nbusers] Intermittent errors when validating JSPs. > > > > Maybe a problem with JSP Compiler classpath. > Could you please attach your $userdir/system/ide.log file and list of > JARs from WEB-INF/lib folder? > > -msk > > Michael Bishop wrote: >> Hello, >> I get the following error sometimes when I validate JSPs. This >> error occurs in the same project, even though I don't change the >> project structure or add/remove files. Does anyone know how to >> troubleshoot this? >> >> struts/joinWebCast.jsp [-1:-1] java.lang.NoClassDefFoundError >> at >> > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458) >> at >> org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) >> at >> org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) >> at org.apache.jasper.compiler.Parser.parse(Parser.java:171) >> at >> org.apache.jasper.compiler.ParserController.doParse(ParserController.j >> av >> a:258) >> at >> > org.apache.jasper.compiler.ParserController.parse(ParserController.java > : >> 139) >> at >> org.apache.jasper.compiler.GetParseData.parse(GetParseData.java:130) >> at >> > org.netbeans.modules.web.jspparser_ext.WebAppParseSupport$2.run(WebAppP > a >> rseSupport.java:413) >> >> >> Project Structure: >> >> CVS C:\projects\webcasting <--- Root node of project. >> C:\projects\WEB-INF <--- WEB-INF folder with web.xml, etc. >> C:\projects\WEB-INF\lib <--- JAR files for project. >> C:\projects\WEB-INF\tlds <--- TLD files. >> C:\projects\struts <--- JSP files. >> >> As I said before, this works sometimes and fails sometimes and I don't > >> know what triggers it. Restarting the IDE doesn't help, switching >> projects doesn't help, reopening the file doesn't help. Seems I have >> the best chance of success if I reboot. >> >> Michael Bishop > > >