This discussion is archived
1 Reply Latest reply: Apr 9, 2013 2:00 AM by 1001595 RSS

java.lang.NoClassDefFoundError when starting a server under a domain.

1001595 Newbie
Currently Being Moderated
I configrued the weblogic domain with below steps:
1. install java to c:\Java, and configured
Path=C:\Java\bin;
JAVA_HOME=C:\Java
CLASSPATH=.;C:\Java\lib\dt.jar;C:\Java\lib\tools.jar;
2. install weblogic 10.3.5 with command "java -D64 -jar wls1035_generic.jar –mode=console"
3. create a domain and create a server and machine, configured the server under the machine.
4. start domain by command startWebLogic.cmd
5. login the weblogic domain and try to start the server under Environment -> servers -> Control.
but got below error in log file (C:\Oracle\Middleware\user_projects\domains\base_domain\servers\new_ManagedServer_1\logs\new_ManagedServer_1.out)
can some one please help me on this?

<Apr 8, 2013 2:35:35 PM> <INFO> <NodeManager> <Server output log file is 'C:\Oracle\Middleware\user_projects\domains\base_domain\servers\new_ManagedServer_1\logs\new_ManagedServer_1.out'>
java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Files. Program will exit.
Exception in thread "main" <Apr 8, 2013 2:35:35 PM> <FINEST> <NodeManager> <Waiting for the process to die: 6988>
<Apr 8, 2013 2:35:35 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Apr 8, 2013 2:35:35 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points