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 146955 - Runing, debugging JSP files isn't functional - it appears HTTP Status 500
Summary: Runing, debugging JSP files isn't functional - it appears HTTP Status 500
Status: VERIFIED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-11 14:53 UTC by Martin Fousek
Modified: 2008-09-26 08:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server log (59.48 KB, text/plain)
2008-09-11 14:53 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2008-09-11 14:53:10 UTC
Product Version: NetBeans IDE Dev (Build 200809101401)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Observed:
I create new WebProject, invoke Run or Debug and the Glassfish V2 starts with many NPE and in the browser error 500
appears. There is this text:

type Exception report
message
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.

exception
org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

root cause
java.lang.NullPointerException

note The full stack traces of the exception and its root causes are available in the Sun Java System Application Server
9.1_02 logs.
Comment 1 Martin Fousek 2008-09-11 14:53:44 UTC
Created attachment 69661 [details]
server log
Comment 2 Vince Kraemer 2008-09-11 17:12:25 UTC
I am able to replicate the exception by starting GF with the 1.6.0_06 JRE instead of the JDK.

How did you install the GlassFish server via the NB installer or via some other method?

Comment 3 Martin Fousek 2008-09-12 05:26:43 UTC
Yes, via the NB installer.
Comment 4 Vince Kraemer 2008-09-12 06:26:56 UTC
OK.

Time to dig into it some more.

Could you send me the content of C:/Program Files/glassfish-v2ur2/config/asenv.bat?

Comment 5 Martin Fousek 2008-09-12 06:30:15 UTC
rem
rem Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
rem Use is subject to license terms.
rem

set AS_ANT=C:\Program Files\glassfish-v2ur2\lib\ant
set AS_ANT_LIB=C:\Program Files\glassfish-v2ur2\lib\ant\lib
set AS_WEBSERVICES_LIB=C:\Program Files\glassfish-v2ur2\lib
set AS_PERL=%PERL_HOME%
set AS_NSS=C:\Program Files\glassfish-v2ur2\lib
set AS_NSS_BIN=C:\Program Files\glassfish-v2ur2\lib\admincgi
set AS_IMQ_LIB=C:\Program Files\glassfish-v2ur2\imq\lib
set AS_IMQ_BIN=C:\Program Files\glassfish-v2ur2\imq\bin
set AS_CONFIG=C:\Program Files\glassfish-v2ur2\config
set AS_INSTALL=C:\Program Files\glassfish-v2ur2
set AS_JAVA=C:\Program Files\Java\jre6
set AS_ACC_CONFIG=C:\Program Files\glassfish-v2ur2\domains\domain1\config\sun-acc.xml
set AS_JHELP=C:\Program Files\glassfish-v2ur2\lib
set AS_ICU_LIB=C:\Program Files\glassfish-v2ur2\lib
set AS_DEF_DOMAINS_PATH=C:\Program Files\glassfish-v2ur2\domains
set AS_JDMK_HOME=C:\Program Files\glassfish-v2ur2\lib\SUNWjdmk\5.1
set AS_NATIVE_LAUNCHER=false
set AS_NATIVE_LAUNCHER_LIB_PREFIX=\jre\bin\client
set AS_WEBCONSOLE_LIB=C:\Program Files\glassfish-v2ur2\lib
set AS_JATO_LIB=C:\Program Files\glassfish-v2ur2\lib
set AS_HADB= 
set AS_DERBY_INSTALL=C:\Program Files\glassfish-v2ur2\javadb
set AS_MFWK_HOME=C:\Program Files\glassfish-v2ur2\lib\SUNWmfwk
Comment 6 Vince Kraemer 2008-09-12 06:36:34 UTC
Also... which bundle did you install? Please attach a link to the file....
Comment 8 Vince Kraemer 2008-09-12 06:45:00 UTC
which bundle did you download from the page you just sent me the pointer to... there are 6... two of which are the most
likely... did you install the "Java" IDE or the "All" IDE?
Comment 9 Vince Kraemer 2008-09-12 06:46:49 UTC
the way... did you import settings from NB 6.1?
Comment 11 Martin Fousek 2008-09-12 06:48:49 UTC
no, I'm not import anything from older versions
Comment 12 Vince Kraemer 2008-09-12 15:23:21 UTC
thanks for the clarifications... How old is the JDK 6 update 10 install on this machine?  Is the "RC" available from
java.sun.com currently or is it an older build?
Comment 13 Vince Kraemer 2008-09-12 15:43:25 UTC
As best I can tell, the user was allowed to create the domain with Java 6 update 10 RE (not DK) for the value of AS_JAVA.

The user claims that they used the NB installer to install GF in the IDE, which means that they got the "Which Java"
field on the GF page of the install wizard to point to the JRE OR they altered the value os AS_JAVA after the installation.

I am trying a couple strategies to see if I can force the JRE into the "Which Java" field.... Marfous: do you recall the
sequence of steps/value entry that you used to do the install?
Comment 14 Vince Kraemer 2008-09-12 17:31:32 UTC
I downloaded and installed jdk-6u10-rc2-bin-b31-windows-i586-p-05_sep_2008.exe from
http://java.sun.com/javase/downloads/ea/6u10/6u10rcDownload.jsp#6u10JDKs

I uninstalled GF v2ur2 from my system.

I downloaded and installed NB 6.5 nightly from
http://bits.netbeans.org/download/trunk/nightly/latest/start.html?bundles/netbeans-trunk-nightly-200809120201-java-windows.exe&platform=windows&lang=en&option=java

I attempted to use multiple strategies to force the installer to use the Jre6 instead of Jdk6....
   none of the strategies I tried allowed me to finish the install wizard with the jre selected.

After the installer completed.  I verified that the AS_JAVA value was pointed at the JDK and not the JRE.

I was able to start the IDE, create a web app and run it successfully.

You may have encountered a bug in the installer.... due to the fact that it appears that you are using a fairly old
build of Java 6 Update 10.

Please reopen this issue if you can reproduce it with a recent JRE 6 install and an installation NB and GF.  Please make
sure that you remove your previous GF V2UR2 install before you use the NB installer...
Comment 15 Martin Fousek 2008-09-26 08:27:21 UTC
I cannot reproduce now - after your instructions.

Verified.