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.
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.
Created attachment 69661 [details] server log
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?
Yes, via the NB installer.
OK. Time to dig into it some more. Could you send me the content of C:/Program Files/glassfish-v2ur2/config/asenv.bat?
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
Also... which bundle did you install? Please attach a link to the file....
http://bits.netbeans.org/download/trunk/nightly/2008-09-10_14-01-42/
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?
the way... did you import settings from NB 6.1?
(java) http://bits.netbeans.org/download/trunk/nightly/2008-09-10_14-01-42/start.html?bundles/netbeans-trunk-nightly-200809101401-java-windows.exe&platform=windows&lang=en&option=java
no, I'm not import anything from older versions
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?
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?
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...
I cannot reproduce now - after your instructions. Verified.