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.
NB 200608040000 JDK 1.5 App Server 8.2 I am trying to create a project that uses persistence and deploy the app to app server 8.2. I am following the web app tutorial for persistence in 1.4 app. I follow the tutorial, using appserver8.2 instead of tomcat I have added the toplink essentials library to the project When i try to run the application on app server 8.2, the application deploys and appears in browser, but i get the following server error: javax.servlet.ServletException: javax.faces.FacesException: Can't instantiate class: 'entity.PavilionController'.. class entity.PavilionController : javax.persistence.PersistenceException: No Persistence provider for EntityManager named ZooAppPU when i try to restart the server from IDE, i get error message about problem when i try to start server from command line, i get this error: This application has failed to start because jvm.dll was not found. Re-installing the application may fix the problem
Created attachment 32595 [details] server log
re: jvm.dll error, as it can be seen outside Nb, it has nothing to do with Nb but your JDK environment. I see now the same behavior on my laptop regarding jvm.dll message via asadmin CLI command (I did unintall jdk 1.6 to make sure), and I am trying to understand which software installation introduced this ugly state... So this bug is more about the first item: javax.servlet.ServletException: javax.faces.FacesException
workaround so far for the jvm.dll error: edit asenv.bat file in config dir at set: set AS_NATIVE_LAUNCHER=false
I found the root cause and it is in the native laucnher. Recently, Nb added a jvm option for <jvm-options>-Dhttp.nonProxyHosts=localhost|127.0.0.1|trinite-129.145.133.246</jvm-options> But the "|" char (delimiter in the list of machine name) is badly interpreted with the native launcher of *.2 (PE or EE). Mark Basler helped me for trouble shooting... Not sure what to do in this case. Nitya, do you remember more? We could avoid doing this setup for 8.2. I think the 9.0 native launcher should work, but we need to verify. (9.0 does not use it by default anyway).
for now, your workaround is set AS_NATIVE_LAUNCHER=false in asenv.bat file in config dir
Nitya, file P2 bug on 8.2 EE so it can be fixed at least there. Maybe recommend a 8.2 patch. Now, we could avoid to set this jvmoption in case of 8.2. I remember it was added for JaxWS needs, correct? if yes, 8.2 might not need this flag.
Yes. This was added during javaone because of NB demos. I can check the server version and not add this jvm option for 8.2, but not sure if this is an acceptable alternative. I will dig around to find the issue# for this jvm option and update this issue again.
Filed CR6461186 against Appserver for this issue
*** Issue 83404 has been marked as a duplicate of this issue. ***
Nitya: Could we not set this option in case of 8.2 PE? (EE: they fixed the bug) What is the side effect on the bug you fixed fo J1/GlassFish? Do we care about this scenario for 8.2?
Will update the proxy setting functionality in plugin to set the nonProxyHosts option only for Glassfish and not for 8.2 User can edit the jvmoptions via IDE if they wish to set this value on 8.2 Appserver
Created attachment 33963 [details] Diff of fix
diff approved
Fixed in release55_dev
VERIFIED in 200609190300
I assume the above verify was done on release55_dev, since fix was present only in that branch. Comments from Li Wang: I've verified in today's (20060918) release55_dev build that jvm-option nonProxyHosts is not added into domain.xml for 8.2 EE server. Thanks, Li Fixed in release55 IDE: [9/19/06 10:31 AM] Committing "HttpProxyUpdater.java" started Checking in HttpProxyUpdater.java; /cvs/serverplugins/sun/appsrv81/src/org/netbeans/modules/j2ee/sun/ide/j2ee/Attic/HttpProxyUpdater.java,v <-- HttpProxyUpdater.java new revision: 1.1.2.7; previous revision: 1.1.2.6 done