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 85454 - Unable to deploy project to WebLogic 9/10 with JDK 1.6
Summary: Unable to deploy project to WebLogic 9/10 with JDK 1.6
Status: VERIFIED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@serverplugins
URL:
Keywords: RELNOTE
: 85735 85840 89203 93480 109919 111254 112486 124413 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-21 16:04 UTC by Jiri Skrivanek
Modified: 2011-12-12 13:19 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Entire stack trace. (1.44 KB, text/plain)
2006-09-21 16:05 UTC, Jiri Skrivanek
Details
message.log (17.71 KB, text/plain)
2006-09-25 10:20 UTC, Jiri Skrivanek
Details
message log with more detailed exception (37.99 KB, text/plain)
2006-09-25 12:38 UTC, Sherold Dev
Details
Deploying web application on Weblogic 10 Server (7.33 KB, text/plain)
2007-07-11 14:00 UTC, mastergvs
Details
Weblogic10 output (5.25 KB, text/plain)
2007-07-19 08:33 UTC, mastergvs
Details
Deploy output (8.67 KB, text/plain)
2007-07-19 08:34 UTC, mastergvs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2006-09-21 16:04:21 UTC
When you try to start weblogic server from IDE it throws
DeploymentManagerCreationException and you cannot deploy any web application to
weblogic server. To reproduce:

- add weblogic 9.1 server instance to Runtime view
- start server using context menu and after it starts the following exception is
thrown:

javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException:
Cannot create weblogic DeploymentManager instance.

Build 200609210000, JDK1.6.0-b99, WindowsXP, WebLogic 9.1 started on
E:\bea\JDK150~1\bin\java.
Comment 1 Jiri Skrivanek 2006-09-21 16:05:02 UTC
Created attachment 34313 [details]
Entire stack trace.
Comment 2 Petr Jiricka 2006-09-21 18:05:05 UTC
Stepan, can you please look at this? Thanks.
Comment 3 Sherold Dev 2006-09-21 18:17:32 UTC
Can you check your firewall settings, just to be sure?
Comment 4 Jiri Skrivanek 2006-09-22 08:44:18 UTC
Firewall is disabled.
Comment 5 Sherold Dev 2006-09-22 17:01:41 UTC
Can you please attach the IDE message log? It might be more info there.
Comment 6 Jiri Skrivanek 2006-09-25 10:20:57 UTC
Created attachment 34447 [details]
message.log
Comment 7 Sherold Dev 2006-09-25 12:38:47 UTC
Created attachment 34449 [details]
message log with more detailed exception
Comment 8 Sherold Dev 2006-09-25 12:51:02 UTC
When the IDE is running on JDK 1.6 and the server on JDK 1.5 an UnmarshalException
is thrown during creation of the WebLogic DeploymentManager, see the message log
for more details.

Unfortunately, this issue cannot be fixed in the NB code at this point.
Comment 9 Petr Blaha 2006-09-25 13:22:18 UTC
We should mention the bug in release note. 
Comment 10 Jiri Skrivanek 2006-09-25 13:31:30 UTC
Or catch the exception and inform the user about possible reason of failure.
Comment 11 Sherold Dev 2006-09-27 11:57:24 UTC
*** Issue 85840 has been marked as a duplicate of this issue. ***
Comment 12 Libor Kotouc 2007-01-10 15:49:43 UTC
*** Issue 89203 has been marked as a duplicate of this issue. ***
Comment 13 mastergvs 2007-07-11 14:00:08 UTC
Created attachment 44940 [details]
Deploying web application on Weblogic 10 Server
Comment 14 mastergvs 2007-07-11 14:01:11 UTC
Similar problem while trying to deploy web application on NB6M10 on Weblogic Server 10.

javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException

Before it, succesful deploy this application on Tomcat 6.0 and SJSAS 9.1
Nothig useful in Weblogic 10 Server log.
stacktrace1.txt attached.
Comment 15 Sherold Dev 2007-07-17 09:50:47 UTC
*** Issue 109919 has been marked as a duplicate of this issue. ***
Comment 16 Petr Jiricka 2007-07-17 14:05:13 UTC
Does WebLogic 10 support JDK 1.6? If it does, then workaround for WL 10 should be to use JDK 1.6 for both the IDE and
the server, correct?
Comment 17 mastergvs 2007-07-18 13:39:31 UTC
I try to set in project both JDK 1.6 and JRocket JDK 1.5, supplied with Weblogic 10.
But I have similar errors:
D:\distrib\Java\javaeetutorial5\examples\web\bookstore1\nbproject\build-impl.xml:517: Deployment error:
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: Cannot create weblogic DeploymentManager 
instance.

build-impl.xml:517:
<target if="netbeans.home" name="-run-deploy-nb">
        <nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
Comment 18 Sherold Dev 2007-07-18 14:19:15 UTC
Try to start NetBeans with a "--jdkhome" switch pointing to JDK 1.5.
Comment 19 mastergvs 2007-07-19 08:32:49 UTC
So, I try to start Netbeans:
C:\Program Files\NetBeans 6.0M10\bin>netbeans --jdkhome "C:\Program Files\Java\jdk1.5.0_02"
C:\Program Files\NetBeans 6.0M10\bin>netbeans.exe --jdkhome "C:\bea\jdk150_06"
C:\Program Files\NetBeans 6.0M10\bin>netbeans.exe --jdkhome "C:\bea\jrockit90_150_06"
Same errors.
Weblogic10 and deployment output attached.
Comment 20 mastergvs 2007-07-19 08:33:53 UTC
Created attachment 45368 [details]
Weblogic10 output
Comment 21 mastergvs 2007-07-19 08:34:58 UTC
Created attachment 45369 [details]
Deploy output
Comment 22 mastergvs 2007-07-19 11:39:02 UTC
Problem solved then I started Weblogic 10 server with JDK 1.5. Before it it's starts with JDK 1.6.
Comment 23 Sherold Dev 2007-07-23 14:35:32 UTC
*** Issue 85735 has been marked as a duplicate of this issue. ***
Comment 24 Sherold Dev 2007-07-23 15:23:43 UTC
I tested running both the IDE and the server on JDK 1.6 but I got a similar deserialization exception.

The recommended work-around is to run the IDE and the server on JDK 1.5. I tested it and it seems to work without
problems, lowering the priority to P3.
Comment 25 Sherold Dev 2007-07-30 10:11:26 UTC
*** Issue 111254 has been marked as a duplicate of this issue. ***
Comment 26 Sherold Dev 2007-08-10 08:55:41 UTC
*** Issue 112486 has been marked as a duplicate of this issue. ***
Comment 27 Sherold Dev 2007-08-10 08:58:19 UTC
We should probably display a warning in the add server dialog and let the user know that WebLogic is not supported when
the IDE is running on JDK 1.6.
Comment 28 Petr Hejl 2007-08-24 11:40:38 UTC
Warning appears when the IDE runs on JDK 6. Commit fixes wizard message wrapping too.

Checking in src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentFactory.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/WLDeploymentFactory.java,v  <-- 
WLDeploymentFactory.java
new revision: 1.13; previous revision: 1.12
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/WLPluginProperties.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/WLPluginProperties.java,v  <--  WLPluginProperties.java
new revision: 1.13; previous revision: 1.12
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/Bundle.properties;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/Bundle.properties,v  <--  Bundle.properties
new revision: 1.16; previous revision: 1.15
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerLocationPanel.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerLocationPanel.java,v  <-- 
ServerLocationPanel.java
new revision: 1.15; previous revision: 1.14
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerPropertiesPanel.form;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerPropertiesPanel.form,v  <-- 
ServerPropertiesPanel.form
new revision: 1.3; previous revision: 1.2
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerPropertiesPanel.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/ServerPropertiesPanel.java,v  <-- 
ServerPropertiesPanel.java
new revision: 1.19; previous revision: 1.18
done
Checking in src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/WLInstantiatingIterator.java;
/cvs/serverplugins/weblogic9/src/org/netbeans/modules/j2ee/weblogic9/ui/wizard/WLInstantiatingIterator.java,v  <-- 
WLInstantiatingIterator.java
new revision: 1.11; previous revision: 1.10
done
Comment 29 Petr Hejl 2007-08-27 09:11:49 UTC
Will investigate the issue later. Warning appears for now.
Comment 30 Petr Hejl 2007-08-30 10:57:17 UTC
It is a jdk 6 bug (will test if the proposed workaround will help):
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149 
Weblogic specific comment here:
http://forum.java.sun.com/thread.jspa?threadID=5195504&tstart=15
Comment 31 Petr Hejl 2007-09-04 12:51:09 UTC
*** Issue 93480 has been marked as a duplicate of this issue. ***
Comment 32 Petr Hejl 2007-09-04 17:56:42 UTC
Specifying -J-Dsun.lang.ClassLoader.allowArraySyntax=true as the startup parameter works fine and can be used as
workaround to run IDE with JDK6 while using the Weblogic.

It is not clear whether the sun bug will be ever fixed, or it is a feature.
Comment 33 Petr Hejl 2007-09-17 15:39:50 UTC
After some more investigation it seems that weblogic is using its own (de)serialization which has been broken by the
classloader change in jdk6.
Comment 34 Vince Kraemer 2007-12-07 16:22:47 UTC
please close this issue if you forgot to earlier.  If this issue is still open,
please change the target milestone to reflect the current commitment.
Comment 35 Petr Hejl 2008-01-02 14:01:01 UTC
*** Issue 124413 has been marked as a duplicate of this issue. ***
Comment 36 Vince Kraemer 2008-01-30 17:19:21 UTC
resetting target milestone
Comment 37 Jayashri Visvanathan 2008-12-17 01:42:22 UTC
Petr H,
   Looks like there is not much we can do from our side to fix. Can this issue be closed now ?
thanks
Comment 38 Thuy.d Nguyen 2009-01-07 23:33:33 UTC
Found threads posted similar issues as this one.
http://forums.sun.com/thread.jspa?threadID=5195901

I've tested the suggested workaround (i.e. adding the VM argument -Dsun.lang.ClassLoader.allowArraySyntax=true) and been
able to start and deploy a sample web app to Weblogic 10 without the exception.

Not much things we can do and there's a workaround; hence closing this issue as WONTFIX.