[英]Weblogic Start Failed java.lang.NoClassDefFoundError: weblogic/Server
When I try to start weblogic using startWebLogic.sh I'm getting the following error. 当我尝试使用startWebLogic.sh启动weblogic时,出现以下错误。
starting weblogic with Java version:
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
Starting WLS with line:
C:/Oracle/Middleware/jdk160_18/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=128m -Dweblogic.Name=AdminServer -Djava.security.policy=C:/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Xverify:none -da -Dplatform.home=C:/Oracle/Middleware/wlserver_10.3 -Dwls.home=C:/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=C:/Oracle/Middleware/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:/Oracle/Middleware/patch_wls1033/profiles/default/sysext_manifest_classpath:C:/Oracle/Middleware/patch_oepe1033/profiles/default/sysext_manifest_classpath:C:/Oracle/Middleware/patch_ocp353/profiles/default/sysext_manifest_classpath weblogic.Server
java.lang.NoClassDefFoundError: weblogic/Server
Caused by: java.lang.ClassNotFoundException: weblogic.Server
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:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: weblogic.Server. Program will exit.
Exception in thread "main"
Also have the following in the console output in the begining. 开头的控制台输出中还具有以下内容。
setDomainEnv.sh: Don't know how to set the shared library path for MINGW64_NT-6.1.
weblogic.jar
is the file which contains the weblogic.server
class . weblogic.jar
是包含weblogic.server
类的文件。 usually the classpath for this is autmatically set by commEnv.sh
which is called internally by setDomainEnv.sh
which is called when you run startWeblogic.sh
. 通常,为此的类路径由commEnv.sh
自动设置,而该setDomainEnv.sh
在运行startWeblogic.sh
时由setDomainEnv.sh
在内部调用。 there is a variable called WEBLOGIC_CLASSPATH(PROFILE_CLASSPATH) which sets the value for weblogic.jar
this value references a variable called WL_HOME. 有一个名为WEBLOGIC_CLASSPATH(PROFILE_CLASSPATH)的变量,它设置了weblogic.jar
的值,该值引用了一个名为WL_HOME的变量。
you may want to check the values of these variables, You also might set these values explicitly if there is some discrepancy in the embedded scripts. 您可能要检查这些变量的值。如果嵌入式脚本中存在某些差异,也可以显式设置这些值。
Let me know if any other help is required. 让我知道是否需要其他帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.