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 82048 - error when deploying to app server 8.2 and corrupting server
Summary: error when deploying to app server 8.2 and corrupting server
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 5.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
: 83404 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-08-07 11:25 UTC by Kenneth Ganfield
Modified: 2006-09-19 18:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
server log (117.39 KB, text/plain)
2006-08-07 11:26 UTC, Kenneth Ganfield
Details
Diff of fix (1.59 KB, text/plain)
2006-09-14 19:57 UTC, Nitya Doraisamy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2006-08-07 11:25:57 UTC
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
Comment 1 Kenneth Ganfield 2006-08-07 11:26:57 UTC
Created attachment 32595 [details]
server log
Comment 2 _ ludo 2006-08-08 21:56:57 UTC
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

Comment 3 _ ludo 2006-08-08 22:04:48 UTC
workaround so far for the jvm.dll error: edit asenv.bat file in config dir at set:

set AS_NATIVE_LAUNCHER=false

Comment 4 _ ludo 2006-08-15 19:03:54 UTC
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).



Comment 5 _ ludo 2006-08-15 19:04:35 UTC
for now, your workaround is set AS_NATIVE_LAUNCHER=false
in  asenv.bat file in config dir 
Comment 6 _ ludo 2006-08-15 19:08:16 UTC
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.
Comment 7 Nitya Doraisamy 2006-08-16 00:53:59 UTC
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.
Comment 8 Nitya Doraisamy 2006-08-17 17:43:12 UTC
Filed CR6461186 against Appserver for this issue
Comment 9 _ ludo 2006-08-24 21:59:03 UTC
*** Issue 83404 has been marked as a duplicate of this issue. ***
Comment 10 _ ludo 2006-08-24 22:01:45 UTC
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?

Comment 11 Nitya Doraisamy 2006-09-01 22:42:09 UTC
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
Comment 12 Nitya Doraisamy 2006-09-14 19:57:18 UTC
Created attachment 33963 [details]
Diff of fix
Comment 13 Vince Kraemer 2006-09-14 20:22:17 UTC
diff approved
Comment 14 Nitya Doraisamy 2006-09-14 20:25:27 UTC
Fixed in release55_dev
Comment 15 Jaroslav Pospisil 2006-09-19 15:08:35 UTC
VERIFIED in 200609190300 
Comment 16 Nitya Doraisamy 2006-09-19 18:28:20 UTC
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