Leave a Comment:
17 comments
Hi Atul,
so where is the jar file which contains class weblogic.WLST ?
@ Andrew,
Good question, welogic.WLST class is in jar file $WL_HOME/server/lib/weblogic.jar
Hi
For this exception we just need to set the classpath : C:\bea\wlserver_10.3\server\lib\weblogic.jar;
and path : C:\bea\wlserver_10.3\server\bin\setWLSEnv.cmd;
Thanks
Purna Chandra
@ test,
To set classpath on unix
export CLASSPATH=:$CLASSPATH
for windows
set CLASSPATH=:$CLASSPATH
Where to set classpath?
It depends on what and how you run application which uses this classpath.
ReplyHi,
I have set path as said above but why always need to run (. ./setWLSEnv.sh) before use it or ot should be set in setDomainEnv.sh.
Thanks
@Tech
Hi,
For this exception we need to add the weblogic.jar to classpath
you can see the same by executing the command ENV on unix machine.
Once it is added to CLASSPATH then execute the java weblogic.WLST then your WLST will be initiate.
Weblogic_Home u will find one .profile there u can maintain all the env&CLASSPATH details.
ReplyHi,
I set the environment using ./setWLSEnv.sh. I also checked the CLASSPATH variable,it’s having the needed JAR file:
“/opt/grd/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:”.
But still i’m unable to resolve the issue.Error message:
[grd@cvgrhegrdt003 bin]$ java weblogic.WLST
Exception in thread “main” java.lang.NoClassDefFoundError: weblogic/WLST
Caused by: java.lang.ClassNotFoundException: weblogic.WLST
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: weblogic.WLST. Program will exit.
@ Thirunavukkarasu,
1. Which version of Java you are using ?
which java
java -version
2. What is WebLogic Version and & Operating System version ?
Reply1.java version “1.6.0_26”
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
2. weblogic 10.3,GNU/Linux
ReplyHi Atul,
I need to change the mode from Interactive mode(java WLST) to Scripting Mode(java
-Dweblogic.security.SSL.ignoreHostnameVerification=true
-Dweblogic.security.TrustKeyStore=DemoTrust ]
weblogic.WLST)?
When startin Managed server, am getting this error message
[oracle@hostname bin]$
Kindly Help me
Reply@ Anwar Hussain,
Paste the error message (remove < > from logs )
Hi Atulkumar,
I am trying to invoke WLST script to create the domain using CYGWIN which in turn connects to the windows machine however it is failing with the below exception
Exception in thread “main” java. lang. NoClassDefFoundError : weblogic/WLST
I have set the classpath to weblogic.jar but it fails. Please let me know how we can set the classpath in CYGWIN in order to invoke WLST Script.
I was trying to do as below using cygwin.
java weblogic.WLST createdomain.py
Looking forward for your response.
Thanks
ankumar
Que tal, estoy haciendo un aplicación en java, pero necesito entrar a wlst solo que aunque he agregado las .jar correspondientes me manda el error,
Exception in thread “main” java.lang.RuntimeException: Could not find the OffLine WLST class
at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPathInternal(WLSTUtil.java:88)
at weblogic.management.scripting.utils.WLSTUtil.setupOfflineInternal(WLSTUtil.java:255)
at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:234)
at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
at weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)
at project1.EnbeddedWLST.(EnbeddedWLST.java:17)
at project1.EnbeddedWLST.main(EnbeddedWLST.java:51)
Caused by: java.lang.ClassNotFoundException: com.oracle.cie.domain.script.jython.WLST_offline
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:305)
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at weblogic.management.scripting.utils.WLSTUtil.getOfflineWLSTScriptPathInternal(WLSTUtil.java:81)
… 6 more
He estado investigando pero no encuentro resultado.
agradecería su ayuda.