jQuery in Action, 2nd edition*
The moose likes BEA/Weblogic and the fly likes Problem with classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Problem with classpath" Watch "Problem with classpath" New topic
Author

Problem with classpath

Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Hi I am running the batch file at


It sets my all classpath and varaible required
Now when I am going to open Tool->WLST its showing like this:


CLASSPATH=C:\bea10g\patch_wls1000\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea10g\patch_wlw100
0\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea10g\JROCKI~1\lib\tools.jar;C:\bea10g\WLSERV~1.0\
server\lib\weblogic_sp.jar;C:\bea10g\WLSERV~1.0\server\lib\weblogic.jar;C:\bea10g\modules\features\weblogic.server.
modules_10.0.0.0.jar;C:\bea10g\modules\features\com.bea.cie.common-plugin.launch_2.1.0.0.jar;C:\bea10g\WLSERV~1.0\s
erver\lib\webservices.jar;C:\bea10g\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea10g\modules\NETSFA~1.0/lib/ant-contrib
.jar;

PATH=C:\bea10g\patch_wls1000\profiles\default\native;C:\bea10g\patch_wlw1000\profiles\default\native;C:\bea10g\WLSE
RV~1.0\server\native\win\32;C:\bea10g\WLSERV~1.0\server\bin;C:\bea10g\modules\ORGAPA~1.5\bin;C:\bea10g\JROCKI~1\jre
\bin;C:\bea10g\JROCKI~1\bin;C:\ProgramFiles\Java\jdk1.5.0_11\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32
\Wbem;C:\Program Files\Windows Imaging;C:\bea10g\wlserver_10.0\server\bin;C:\bea10g\WLSERV~1.0\server\native\win\32
\oci920_8

Your environment has been set.

CLASSPATH=C:\bea10g\patch_wls1000\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea10g\patch_wlw100
0\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\bea10g\JROCKI~1\lib\tools.jar;C:\bea10g\WLSERV~1.0\
server\lib\weblogic_sp.jar;C:\bea10g\WLSERV~1.0\server\lib\weblogic.jar;C:\bea10g\modules\features\weblogic.server.
modules_10.0.0.0.jar;C:\bea10g\modules\features\com.bea.cie.common-plugin.launch_2.1.0.0.jar;C:\bea10g\WLSERV~1.0\s
erver\lib\webservices.jar;C:\bea10g\modules\ORGAPA~1.5/lib/ant-all.jar;C:\bea10g\modules\NETSFA~1.0/lib/ant-contrib
.jar;;C:\bea10g\WLSERV~1.0\common\eval\pointbase\lib\pbembedded51.jar;C:\bea10g\WLSERV~1.0\common\eval\pointbase\li
b\pbtools51.jar;C:\bea10g\WLSERV~1.0\common\eval\pointbase\lib\pbclient51.jar

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> c:\>java weblogic.WLST
Traceback (innermost last):
(no code object) at line 0
File "<console>", line 1
c:\>java weblogic.WLST
^
SyntaxError: invalid syntax
wls:/offline>

Any idea why it is not recognizing "java weblogic.WLST"?
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
my guess... WLST is already started. so you need to start using WLST commands. Try to run the script again and type help().

HTH
Shikhar


He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever - Chinese proverb
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Shikahr now I removed java weblogic.WLST command,and tried to run the script file directly as shown below,but still getting the same error/Any idea?

Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
My guess is, it is picking up your script, but there are errors in your script. Have not done any WLST scripting myself and right now do not have an env to do the RND.
Will leave it for someone with WLST experience to help you out.

Shikhar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with classpath