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 62486 - JSTL/JSP Compilation Problems
Summary: JSTL/JSP Compilation Problems
Status: RESOLVED WORKSFORME
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 13:01 UTC by asleson
Modified: 2005-08-17 15:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description asleson 2005-08-17 13:01:58 UTC
I created a Web project deployed to Sun Java System Application Server.  All was
working fine until I went the project's properties and attempted to add JSTL 1.1
as a library for the project.  Now, none of the JSPs will compile, regardless of
whether they use any JSTL tags.

The error says something about an invalid parameter for javac: C:\Program 

Now, here is some relevant information.  I'm using NetBeans 4.1 final on Windows
XP with JDK 5 Update 3.  I think the real key is that NetBeans is installed
under C:\Program Files\.... and the JDK is installed under C:\Program
Files\Java\.... The app server is bundled in the NetBeans install directory.

I think what's happening during the JSP compile is that the path to either the
JDK or to SJSAS gets screwed up due to the space between the "program" and
"files" words in a path somewhere.

My questions: 

1.  Why does this seem to only happen when I add JSTL library to the project?  I
also created my own library for JSTL, using Jars in a path with no spaces, and I
got the same problem, so it seems to be something about JSTL.

2.  What can I do to fix it?  There are a bunch config files that have "Program
Files" as a path, and I suppose the offending one needs to have quotation marks
around the path so the space doesn't cause problems.  Do you have any idea which
config file/path needs to be fixed?

3.  Any other suggestions? 

Thank you!!
Comment 1 zikmund 2005-08-17 15:49:35 UTC
I have used NetBeans 4.1 + AppServer 8.1_02 bundle installed into C:\Program
Files with JDK 1.5.0_04 in C:\Program Files as well. All on Windows XP SP2.
My steps:
1) Create new WebApp
2) Add JSTL
3) Uncomment JSTL code in index.jsp
4) Run
5) Compile JSP (F9)
6) ALL works fine.

Could you please try new installation, delete userdir and reproduce previous
steps? If it fails, please reopen this issue. Thanks!