This discussion is archived
1 Reply Latest reply: Feb 12, 2013 3:02 PM by user594125 RSS

WLST startServer fails with newer Java7 versions

user594125 Newbie
Currently Being Moderated
Ever since the major security upgrade of Java 7 (u11 and u13) I am getting the following. This works fine on u9.

C:\Users\>"%JAVA_HOME%\bin\java" -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

C:\Users\>set CLASSPATH=C:\bea\wls12\wlserver_12.1\server\lib\weblogic.jar

C:\Users\>"%JAVA_HOME%\bin\java" weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> startServer()
Starting weblogic server ...
WLST-WLS-1360631098358: Error occurred during initialization of VM
WLST-WLS-1360631098358: java.lang.ExceptionInInitializerError
WLST-WLS-1360631098358: at java.lang.Runtime.loadLibrary0(Runtime.java:841)
WLST-WLS-1360631098358: at java.lang.System.loadLibrary(System.java:1084)
WLST-WLS-1360631098358: at java.lang.System.initializeSystemClass(System.java:1145)
WLST-WLS-1360631098358: Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
WLST-WLS-1360631098358: at java.lang.String.charAt(String.java:658)
WLST-WLS-1360631098358: at java.io.Win32FileSystem.<init>(Win32FileSystem.java:40)
WLST-WLS-1360631098358: at java.io.WinNTFileSystem.<init>(WinNTFileSystem.java:37)
WLST-WLS-1360631098358: at java.io.FileSystem.getFileSystem(Native Method)
WLST-WLS-1360631098358: at java.io.File.<clinit>(File.java:156)
WLST-WLS-1360631098358: at java.lang.Runtime.loadLibrary0(Runtime.java:841)
WLST-WLS-1360631098358: at java.lang.System.loadLibrary(System.java:1084)
WLST-WLS-1360631098358: at java.lang.System.initializeSystemClass(System.java:1145)
WLST-WLS-1360631098358:
WLST-WLS-1360631098358: Stopped draining WLST-WLS-1360631098358
WLST-WLS-1360631098358: Stopped draining WLST-WLS-1360631098358
Traceback (innermost last):
File "<console>", line 1, in ?
File "<iostream>", line 462, in startServer
File "<iostream>", line 648, in raiseWLSTException
WLSTException: Error occured while performing startServer : Error starting the s
erver. WLST could not start a new JVM for the server process, this might happen
if you have provided illegal jvmArgs or the JVM picked up any illegal JVM_OPTION
S from your path.Please look for the correct error in your logs and try again.
wls:/offline> exit()


Exiting WebLogic Scripting Tool.


C:\Users\>

============
And now the working version
==========
C:\Users\>set JAVA_HOME=C:\bea\java7_v09 64bit

C:\Users\>"%JAVA_HOME%\bin\java" -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)

C:\Users\>set CLASSPATH=C:\bea\wls12\wlserver_12.1\server\lib\weblogic.jar

C:\Users\>"%JAVA_HOME%\bin\java" weblogic.WLST

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> startServer()
Starting weblogic server ...
WLST-WLS-1360633993401: <Feb 11, 2013 8:53:14 PM EST> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup per
formance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
WLST-WLS-1360633993401: <Feb 11, 2013 8:53:14 PM EST> <Info> <Security> <BEA-090
906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to
FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDe
faultPRNG=true>
WLST-WLS-1360633993401: <Feb 11, 2013 8:53:15 PM EST> <Info> <WebLogicServer> <B
EA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Vers
ion 23.5-b02 from Oracle Corporation.>
WLST-WLS-1360633993401: <Feb 11, 2013 8:53:26 PM EST> <Info> <Management> <BEA-1
41288> <Unable to obtain file lock but will retry.>

C:\Users\>

Edited by: ksunil on Feb 11, 2013 5:55 PM

Legend

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