Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.NoClassDefFoundError: weblogic/Server

722382Sep 14 2009 — edited Apr 13 2010
Hi!

I encounter the following error messages when I try to run the "RIA Web Applications" tutorial on creating "HRSystem":


*** Using port 7101 ***
"C:\Documents and Settings\User1\Application Data\JDeveloper\system11.1.1.1.33.54.07\DefaultDomain\bin\startWebLogic.cmd"
[waiting for the server to complete its initialization...]
The system cannot find the path specified.
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
.
WLS Start Mode=Development
.
CLASSPATH=C:\Oracle\jdev11\jdeveloper\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\jdev11\wlserver_10.3\server\lib\xqrl.jar
.
PATH=C:\Program Files\PC Connectivity Solution\;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
***************************************************
starting weblogic with Java version:
Starting WLS with line:
C:\PROGRA~1\Java\JDK16~1.0_1\bin\java -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\jdev11\wlserver_10.3\server\lib\weblogic.policy -da -Dplatform.home=C:\Oracle\jdev11\wlserver_10.3 -Dwls.home=C:\Oracle\jdev11\wlserver_10.3\server -Dweblogic.home=C:\Oracle\jdev11\wlserver_10.3\server -Djps.app.credential.overwrite.allowed=true -Ddomain.home=C:\DOCUME~1\User1\APPLIC~1\JDEVEL~1\SYSTEM~1.07\DEFAUL~1 -Doracle.home=C:\Oracle\jdev11\jdeveloper -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=C:\Oracle\jdev11\jdeveloper\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.security.jps.config=C:\DOCUME~1\User1\APPLIC~1\JDEVEL~1\SYSTEM~1.07\DEFAUL~1\config\fmwconfig\jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.alternateTypesDirectory=C:\Oracle\jdev11\jdeveloper\modules\oracle.ossoiap_11.1.1,C:\Oracle\jdev11\jdeveloper\modules\oracle.oamprovider_11.1.1 -Dsso.filter.enable=true -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= weblogic.Server
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)
java.lang.NoClassDefFoundError: weblogic/Server
Caused by: java.lang.ClassNotFoundException: weblogic.Server
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: weblogic.Server. Program will exit.
Exception in thread "main" Process exited.


Obviously it looks like JDeveloper 11.1.1.1.1.1 cannot find where the Weblogic server was installed. This may be because I did not use the default subdirectory names during the installation procedure of Jdeveloper. The mother path where I installed Jdev is at:

C:\Oracle

Thus the weblogic server was installed at:

C:\Oracle\wlserver_10.3\

How do I setup Jdeveloper so that it would look for the Weblogic server in this subdirectory?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 11 2010
Added on Sep 14 2009
5 comments
8,238 views