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 185801 - java.io.IOException: Cannot initialize JSP parser, following JAR files couldn't be localted: ant/lib/ant.jar,ant/lib/ant-launcher.jar.
Summary: java.io.IOException: Cannot initialize JSP parser, following JAR files couldn...
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-09 17:41 UTC by Exceptions Reporter
Modified: 2010-05-12 12:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168816


Attachments
stacktrace (864 bytes, text/plain)
2010-05-09 17:41 UTC, Exceptions Reporter
Details
stacktrace (864 bytes, text/plain)
2010-05-09 17:43 UTC, oslinux
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2010-05-09 17:41:02 UTC
This issue was reported manually by oslinux.
It already has 5 duplicates 


Build: NetBeans IDE 6.9 Beta (Build 100509-unknown-revn)
VM: Java HotSpot(TM) 64-Bit Server VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

User Comments:
GUEST: I just started Netbeans 6.9 Beta. Error appeared after the IDE finished loading

GUEST: I opened a jsp file in the editor

GUEST: opening a project

GUEST: Starting up NetBeans

GUEST: Opened the JSP page source




Stacktrace: 
java.io.IOException: Cannot initialize JSP parser, following JAR files couldn't be localted: ant/lib/ant.jar,ant/lib/ant-launcher.jar.
   at org.netbeans.modules.web.jspparser.JspParserImpl.initURLs(JspParserImpl.java:126)
   at org.netbeans.modules.web.jspparser.JspParserImpl.initReflection(JspParserImpl.java:148)
   at org.netbeans.modules.web.jspparser.JspParserImpl.createParseProxy(JspParserImpl.java:233)
   at org.netbeans.modules.web.jspparser.JspParserImpl.getParseProxy(JspParserImpl.java:224)
   at org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.java:195)
   at org.netbeans.modules.web.core.jsploader.TagLibParseSupport$ParsingRunnable.run(TagLibParseSupport.java:361)
Comment 1 Exceptions Reporter 2010-05-09 17:41:07 UTC
Created attachment 98687 [details]
stacktrace
Comment 2 oslinux 2010-05-09 17:43:20 UTC
Created attachment 98688 [details]
stacktrace

Opening any jsp
Comment 3 oslinux 2010-05-09 19:29:46 UTC
As a temporary workaround you cound symlink your ant/lib directory in <user-home>/.netbeans/6.9beta/ant/lib
Comment 4 Tomasz Slota 2010-05-10 12:55:49 UTC
This looks highly unusual. Could you try reproduce it on a fresh user dir and fresh NB installation? 

See http://wiki.netbeans.org/FaqWhatIsUserdir

Did you customize your NB installation in any way?
Comment 5 oslinux 2010-05-10 14:43:10 UTC
I installed netbeans using the official gentoo ebuild, i guess that this could be also an ebuild bug.

running netbeans with another user returns the same exception.
Comment 6 Tomasz Slota 2010-05-10 16:09:46 UTC
Can you please try it with the official NetBeans 6.9 beta build downloaded from our our website? 

http://download.netbeans.org/netbeans/6.9/beta/

Ideally on a new user account.. thanks a lot!
Comment 7 oslinux 2010-05-10 16:46:21 UTC
Using the official builds on a new account works and no exception are thrown.

I will report this issue to the gentoo bugzilla.

Luca
Comment 8 Tomasz Slota 2010-05-12 12:21:17 UTC
Thank you very much!