4 Replies Latest reply: Oct 11, 2010 9:23 PM by 784400 RSS

    Error while starting WebLogic at background

    784400
      Hi, All!

      I try to start WebLogic at background mode:

      nohup ./startWebLogic.sh 2&>1 &

      but got this error:


      JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=192m
      .
      WLS Start Mode=Development
      .
      CLASSPATH=/home/user1/Oracle/Middleware2/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/user1/Oracle/Middleware2/patch_wlp1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/user1/Oracle/Middleware2/patch_oepe1111/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/user1/Oracle/Middleware2/jdk160_14_R27.6.5-32/lib/tools.jar:/home/user1/Oracle/Middleware2/utils/config/10.3/config-launch.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/weblogic_sp.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/weblogic.jar:/home/user1/Oracle/Middleware2/modules/features/weblogic.server.modules_10.3.2.0.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/webservices.jar:/home/user1/Oracle/Middleware2/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/home/user1/Oracle/Middleware2/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/xqrl.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/xquery.jar:/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/binxml.jar
      .
      PATH=/home/user1/Oracle/Middleware2/wlserver_10.3/server/bin:/home/user1/Oracle/Middleware2/modules/org.apache.ant_1.7.0/bin:/home/user1/Oracle/Middleware2/jdk160_14_R27.6.5-32/jre/bin:/home/user1/Oracle/Middleware2/jdk160_14_R27.6.5-32/bin:/mnt/weblogic/Java/jdk1.6.0_21/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/user1/bin
      .
      ***************************************************
      * To start WebLogic Server, use a username and *
      * password assigned to an admin-level user. For *
      * server administration, use the WebLogic Server *
      * console at http://hostname:port/console *
      ***************************************************
      starting weblogic with Java version:
      Listening for transport dt_socket at address: 8453
      java version "1.6.0_14"
      Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
      Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode)
      Starting WLS with line:
      /home/user1/Oracle/Middleware2/jdk160_14_R27.6.5-32/bin/java -client -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=48m -XX:MaxPermSize=192m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/user1/Oracle/Middleware2/wlserver_10.3/server/lib/weblogic.policy -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=/home/user1/Oracle/Middleware2/wlserver_10.3 -Dwls.home=/home/user1/Oracle/Middleware2/wlserver_10.3/server -Dweblogic.home=/home/user1/Oracle/Middleware2/wlserver_10.3/server -Dweblogic.wsee.bind.suppressDeployErrorMessage=true -Dweblogic.wsee.skip.async.response=true -Dweblogic.management.discover=true -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -Dweblogic.ext.dirs=/home/user1/Oracle/Middleware2/patch_wls1032/profiles/default/sysext_manifest_classpath:/home/user1/Oracle/Middleware2/patch_wlp1032/profiles/default/sysext_manifest_classpath:/home/user1/Oracle/Middleware2/patch_oepe1111/profiles/default/sysext_manifest_classpath:/home/user1/Oracle/Middleware2/wlportal_10.3/p13n/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/light-portal/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/portal/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/info-mgmt/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/analytics/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/apps/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/info-mgmt/deprecated/lib/system:/home/user1/Oracle/Middleware2/wlportal_10.3/content-mgmt/lib/system -Dweblogic.alternateTypesDirectory=/home/user1/Oracle/Middleware2/wlportal_10.3/portal/lib/security 2 weblogic.Server
      Listening for transport dt_socket at address: 8453
      Exception in thread "main" java.lang.NoClassDefFoundError: 2
      Caused by: java.lang.ClassNotFoundException: 2
           at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      Could not find the main class: 2. Program will exit.


      When I start WebLogic as usualy (./startWebLogic.sh) - it starts normally

      I think problem may be with Classpath, but I don't know

      Thank in advice :)

      Edited by: Grey Goose on 24.09.2010 1:11