Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with classpath

 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Anand Bhatt
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic