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 189537 - Running WebLogic server fails. ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener
Summary: Running WebLogic server fails. ClassNotFoundException: weblogic.rmi.extension...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 08:35 UTC by Alexandr Scherbatiy
Modified: 2010-08-20 03:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 171966


Attachments
stacktrace (3.08 KB, text/plain)
2010-08-16 08:35 UTC, Alexandr Scherbatiy
Details
Log file after the starting WebLogic server in NetBeans (5.46 KB, text/plain)
2010-08-16 10:26 UTC, Alexandr Scherbatiy
Details
stacktrace (3.08 KB, text/plain)
2010-08-17 10:20 UTC, Alexandr Scherbatiy
Details
IDE log file. (82.78 KB, application/octet-stream)
2010-08-17 10:41 UTC, Alexandr Scherbatiy
Details
stacktrace (3.08 KB, text/plain)
2010-08-18 07:11 UTC, Alexandr Scherbatiy
Details
messages.log file from Build web-main-3690-on-100818 (64.41 KB, application/octet-stream)
2010-08-18 12:11 UTC, Alexandr Scherbatiy
Details
IDE log file. (78.72 KB, application/octet-stream)
2010-08-19 08:18 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-08-16 08:35:36 UTC
Build: NetBeans IDE Dev (Build 201008160001)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Windows XP

Stacktrace: 
java.lang.ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener
   at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
   at java.security.AccessController.doPrivileged(AccessController.java:0)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
Comment 1 Alexandr Scherbatiy 2010-08-16 08:35:39 UTC
Created attachment 101407 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2010-08-16 08:38:38 UTC
  Product Version         = NetBeans IDE Dev (Build 201008160001) (#0e740d79d62b)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01; Sun Microsystems Inc.

Steps to reproduce:

   1. Open the Services window.
   2. Right-click the Servers node and choose Add Server.
   3. Select Oracle WebLogic Server from the list. Click Next.
   4. Click Browse and locate the installation of the server.
   5. Type the username and password for the domain. Click Finish.
   6. Right click the Oracle WebLogic node and choose Start

The exception pops up
Comment 3 Alexandr Scherbatiy 2010-08-16 08:44:05 UTC
It seems that some weblogic libraries are not included into the classpath
Comment 4 Petr Hejl 2010-08-16 08:47:24 UTC
Please specify the exact version of WebLogic. I can't reproduce this myself.
Comment 5 Petr Hejl 2010-08-16 09:29:29 UTC
It really looks like classpath problem in your particular installation.
Comment 6 Alexandr Scherbatiy 2010-08-16 09:37:19 UTC
> Please specify the exact version of WebLogic. I can't reproduce this myself.
WLS_PRODUCT_VERSION=10.3.3.0
Comment 7 Alexandr Scherbatiy 2010-08-16 09:42:46 UTC
> It really looks like classpath problem in your particular installation.

The WebLogic server installation was successful. I do not see error messages in the log file.

Where could I look to see the problems with the classpath installation?
Comment 8 Alexandr Scherbatiy 2010-08-16 10:17:38 UTC
What about JDK? I see 2 in the server installation directory:
- jdk160_18 
- jrockit_160_17_R28.0.0-679 

Does it matter which JDK I choose for the domain?
Comment 9 Alexandr Scherbatiy 2010-08-16 10:26:03 UTC
Created attachment 101409 [details]
Log file after the starting WebLogic server in NetBeans
Comment 10 Petr Hejl 2010-08-16 11:16:31 UTC
I suppose it is 10.3.3 from installer with default domain. Am I right? Anything else configured?
Comment 11 Alexandr Scherbatiy 2010-08-16 11:20:23 UTC
Yes. I just installed the WebLogic server with the default options.
And than I added a domain via the Configuration Wizard using the default options.
Comment 12 Petr Hejl 2010-08-16 14:40:45 UTC
I installed WL 10.3.3 on XP, created the default domain on JDK, but can't reproduce it. I tried even a domain with JRockit and everything seems to run ok with daily build.
Comment 13 Alexandr Scherbatiy 2010-08-16 14:48:45 UTC
It seems that I have 2 installations of the WebLogic server

The first one is from the 
http://www.oracle.com/technetwork/middleware/weblogic/downloads/index.html
D:\Oracle\Server\Middleware\wlserver_10.3\
This installation throws ClassNotFoundException after the server starting.


The second one is from the JDeveloper installation: jdevstudio11112install.exe
D:\Oracle\Middleware\wlserver_10.3\
It starts without exceptions. But it throws Throwable: Locked by.
Comment 14 Alexandr Scherbatiy 2010-08-16 14:49:41 UTC
Which log files should I attach to help to investigate the issue?
Comment 15 Petr Hejl 2010-08-16 15:51:19 UTC
Blind fix/detail log attempt in web-main d45c8864f1ae.

If you want to test soon you can try build #3678 at http://bertram.netbeans.org/hudson/job/web-main/. Please use -J-Dorg.netbeans.modules.j2ee.weblogic9.deploy.WLDeploymentManager.level=0 parameter when running NetBeans and attach the ide log located at .netbeans/dev/var/log/messages.log in your home dir.
Comment 16 Quality Engineering 2010-08-17 03:17:12 UTC
Integrated into 'main-golden', will be available in build *201008170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d45c8864f1ae
User: Petr Hejl <phejl@netbeans.org>
Log: #189537 Running WebLogic server fails. ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener
Comment 17 Alexandr Scherbatiy 2010-08-17 10:20:34 UTC
Created attachment 101440 [details]
stacktrace
Comment 18 Alexandr Scherbatiy 2010-08-17 10:40:12 UTC
I use the Build 201008170001 and still see the exception ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener

See the attached IDE log with the enabled option:
-J-Dorg.netbeans.modules.j2ee.weblogic9.deploy.WLDeploymentManager.level=0
Comment 19 Alexandr Scherbatiy 2010-08-17 10:41:18 UTC
Created attachment 101441 [details]
IDE log file.
Comment 20 Petr Hejl 2010-08-17 12:26:29 UTC
Really strange - weblogic.jar is ok yet is does not contain (or references mentioned in it MANIFEST.MF do not contain) the class....
Comment 21 Alexandr Scherbatiy 2010-08-18 07:11:36 UTC
Created attachment 101474 [details]
stacktrace
Comment 22 Petr Hejl 2010-08-18 10:15:24 UTC
Web-main 8c6ac6052e4d adds more logging. Can you please run NetBeans with -J-Dorg.netbeans.modules.j2ee.weblogic9.deploy.WLDeploymentManager.level=0, start WebLogic from it and click on WL nodes? Please attach the messages.log.

Can you also check whether there is file Middleware/modules/com.bea.core.weblogic.rmi.client_1.7.0.0.jar containing weblogic.rmi.extensions.DisconnectListener? This is the file where it is located for me in WL 10.3.3.

What is the JDK used for running the IDE?

Thanks.
Comment 23 Petr Hejl 2010-08-18 10:17:18 UTC
The change should be incorporated in build done by job #3690 on http://bertram.netbeans.org/hudson/job/web-main/.
Comment 24 Michael Nazarov 2010-08-18 11:19:01 UTC
Did not receive any exceptions during startup.

Product Version: NetBeans IDE Dev (Build 201008170001)
Java: 1.6.0_21; Java HotSpot(TM) Client VM 17.0-b17
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)


<18.08.2010 15:29:39 MSD> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Comment 25 Alexandr Scherbatiy 2010-08-18 12:11:42 UTC
Created attachment 101484 [details]
messages.log file from Build web-main-3690-on-100818

Attached the messages log file from Build web-main-3690-on-100818 with the logging option enabled.
Comment 26 Petr Hejl 2010-08-18 13:37:28 UTC
Can you check whether manifest of wlserver*/server/lib/weblogic.jar contains proper relative path to weblogic.server.modules*.jar?

If it exists can you check whether manifest of weblogic.server.modules*.jar contains proper relative path to com.bea.core.weblogic.rmi.client*.jar?

There is something broken in this cp dependencies, I guess.

What is the JDK used for running the IDE?
Comment 27 Alexandr Scherbatiy 2010-08-18 14:26:49 UTC
>Can you check whether manifest of wlserver*/server/lib/weblogic.jar contains
> proper relative path to weblogic.server.modules*.jar?

Probably no.

The path to the weblogic.jar is 
D:\Sun\Oracle\Server\Middleware\wlserver_10.3\server\lib\weblogic.jar 

The mainfiest file is:
----------------------------------------------------------------------
Class-Path: ../../../modules/features/weblogic.server.modules_10.3.3.0
 .jar schema/weblogic-domain-binding.jar schema/weblogic-domain-bindin
 g-compatibility.jar schema/diagnostics-binding.jar schema/diagnostics
 -image-binding.jar wlcipher.jar webservices.jar xmlx.jar ojdbc6.jar a
 qapi.jar EccpressoAsn1.jar EccpressoCore.jar EccpressoJcae.jar mysql-
 connector-java-commercial-5.0.3-bin.jar  wlsqlserver.jar wldb2.jar wl
 sybase.jar wlinformix.jar wlw-langx.jar jcom.jar weblogic-L10N.jar
----------------------------------------------------------------------

and the weblogic.server.modules_10.3.3.0.jar is in 
D:\Sun\Oracle\Server\modules\features\weblogic.server.modules_10.3.3.0.jar
Comment 28 Alexandr Scherbatiy 2010-08-18 14:28:00 UTC
Probably the problem is that the 'wlserver_10.3' and the 'modules' directories are not in the same folder.
Comment 29 Petr Hejl 2010-08-18 14:39:19 UTC
Any idea how this could happen? Obviously the classpath of weblogic.jar is broken. It expects the weblogic.server.modules to be in Middleware/modules while it is one level up.

Now I'm not sure whether we should fix it. And it is not fixable in fact because we would have to search the correct weblogic.server.modules somehow and fix the broken weblogic.jar on our side.
Comment 30 Quality Engineering 2010-08-19 03:24:20 UTC
Integrated into 'main-golden', will be available in build *201008190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8c6ac6052e4d
User: Petr Hejl <phejl@netbeans.org>
Log: #189537 Running WebLogic server fails. ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener
Comment 31 Alexandr Scherbatiy 2010-08-19 08:18:35 UTC
Created attachment 101515 [details]
IDE log file. 

IDE log file with the -J-Dorg.netbeans.modules.j2ee.weblogic9.level=FINEST option enabled.
Comment 32 Petr Hejl 2010-08-19 09:10:25 UTC
Can you try to install WL again trying to reproduce the current state?
Comment 33 Petr Hejl 2010-08-19 10:36:56 UTC
Now I'm able to reproduce. This can happen when Middleware home and server home are in different relative location than expected. Looks like path in weblogic.jar is hardcoded :( - bug in WL installer perhaps. I'll try to do some magic.
Comment 34 Petr Hejl 2010-08-19 11:33:48 UTC
Magic in web-main 91a19ef3edd8. I'm not sure about WL 9. Is anybody able to file bug on WL - broken classpath of weblogic.jar?

Thanks for your help.
Comment 35 Quality Engineering 2010-08-20 03:10:48 UTC
Integrated into 'main-golden', will be available in build *201008200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/91a19ef3edd8
User: Petr Hejl <phejl@netbeans.org>
Log: #189537 Running WebLogic server fails. ClassNotFoundException: weblogic.rmi.extensions.DisconnectListener