1 Reply Latest reply: Dec 1, 2012 10:30 AM by Daniel Atwood RSS

    Can't start weblogic admin server - "could not find main class" error

    975059
      Hello

      I want to run business process composer, and cannot start the weblogic WLS1035 generic on a Windows 7 64-bit machine. I am using JDK version 6.1.0_37. I was able to start the admin server and the managed server right after I completed the installation, but haven't been able to them start since. I ran JDeveloper 11g 1.1.1.5, and reinstalled it several times without uninstalling and reinstalling Weblogic. Could that be the problem?

      When I try to start weblogic, I am getting the error message that suggests I have a classpath problem, but none of the solutions I've found on OTC have worked for me.

      I am trying to start from the command line as follows:

      C:\Oracle\Middleware\user_projects\domains\soa_domain\bin>set CLASSPATH=

      C:\Oracle\Middleware\user_projects\domains\soa_domain\bin>startweblogic.cmd

      Here is the error message:

      *********************************************************
      ** Setting up SOA specific environment for win...
      *********************************************************
      PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_ocp360\profil
      es\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSER
      V~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGA
      PA~1.1\bin;C:\JavaHome\Java\JDK16~1.0_3\jre\bin;C:\JavaHome\Java\JDK16~1.0_3\bin;C:\oraclexe\app\ora
      cle\product\11.2.0\server\bin;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
      Client\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common F
      iles\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Window
      s\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)
      \Intel\OpenCL SDK\1.5\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\1.5\bin\x64;C:\Program Files\I
      ntel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Com
      ponents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
      (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\QuickTime\QTSystem\;C:\
      JavaHome\Java\jdk1.6.0_37\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;C:\Oracle
      \Middleware\Oracle_SOA1\soa\thirdparty\edifecs\XEngine\bin
      .
      USER_MEM_ARGS=-Xms768m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize=512m
      .
      JAVA_OPTIONS= -Xverify:none
      .
      *****************************************************
      ** End SOA Specific environment setup for win.
      *****************************************************
      .
      .
      JAVA Memory arguments: -Xms768m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize=512m
      .
      WLS Start Mode=Development
      .
      CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\Middleware\
      Oracle_SOA1\soa\modules\user-patch.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\soa-startup.jar;
      ;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Orac
      le\MIDDLE~1\patch_ocp360\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE
      ~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\JavaHome\Java\JDK16~
      1.0_3\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSE
      RV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.
      jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/l
      ib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar;C:\Ora
      cle\MIDDLE~1\ORACLE~1\soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\soa\modules\oracle
      .soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.common.a
      dapters_11.1.1\oracle.soa.common.adapters.jar;C:\Oracle\Middleware\Oracle_SOA1\communications\module
      s\usermessaging-config_11.1.1.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.xdk_11.1.0\xsu12.jar;C:
      \Oracle\MIDDLE~1\modules\features\weblogic.server.modules.xquery_10.3.1.0.jar;C:\Oracle\Middleware\O
      racle_SOA1\soa\modules\db2jcc4.jar;C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\soa-infra;C:\
      Oracle\Middleware\Oracle_SOA1\soa\modules\fabric-url-handler_11.1.1.jar;C:\Oracle\Middleware\Oracle_
      SOA1\soa\modules\quartz-all-1.6.5.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.fabric
      _11.1.1\oracle.soa.fabric.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.fabric_11.1.1\
      fabric-runtime-ext-wls.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.adapter_11.1.1\or
      acle.soa.adapter.jar;C:\Oracle\Middleware\Oracle_SOA1\soa\modules\oracle.soa.b2b_11.1.1\oracle.soa.b
      2b.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\c
      ommon\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar
      .
      PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_ocp360\profil
      es\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSER
      V~1.3\server\native\win\x64;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGA
      PA~1.1\bin;C:\JavaHome\Java\JDK16~1.0_3\jre\bin;C:\JavaHome\Java\JDK16~1.0_3\bin;C:\oraclexe\app\ora
      cle\product\11.2.0\server\bin;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS
      Client\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common F
      iles\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Window
      s\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)
      \Intel\OpenCL SDK\1.5\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\1.5\bin\x64;C:\Program Files\I
      ntel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Com
      ponents\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
      (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\QuickTime\QTSystem\;C:\
      JavaHome\Java\jdk1.6.0_37\bin;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\x64\oci920_8;C:\Oracle
      \Middleware\Oracle_SOA1\soa\thirdparty\edifecs\XEngine\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:
      java version "1.6.0_37"
      Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
      Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
      Starting WLS with line:
      C:\JavaHome\Java\JDK16~1.0_3\bin\java -client -Xms768m -Xmx1536m -XX:PermSize=256m -XX:MaxPermSize
      =512m -Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\we
      blogic.policy -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle
      \MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dcommon.component
      s.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.
      commons.logging.impl.Jdk14Logger -Ddomain.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1 -Djrocki
      t.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.
      config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\FMWCON~1\servers\AdminServer -Doracle
      .domain.config.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\FMWCON~1 -Digf.arisidbeans.c
      armlloc=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\FMWCON~1\carml -Digf.arisidstack.home=C
      :\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.con
      fig=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\config\fmwconfig\jps-config.xml -Doracle.deployed.a
      pp.dir=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1\servers\AdminServer\tmp\_WL_user -Doracle.deploy
      ed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_
      11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=or
      acle.mds.net.protocol"|"oracle.fabric.common.classloaderurl.handler"|"oracle.fabric.common.uddiurl.h
      andler"|"oracle.bpm.io.fs.protocol -Dweblogic.jdbc.remoteEnabled=false -da:org.apache.xmlbeans...
      -Dbpm.enabled=true -Dsoa.archives.dir=C:\Oracle\Middleware\Oracle_SOA1\soa -Dsoa.oracle.home=C:\Orac
      le\Middleware\Oracle_SOA1 -Dsoa.instance.home=C:\Oracle\MIDDLE~1\USER_P~1\domains\SOA_DO~1 -Dtangoso
      l.coherence.clusteraddress=227.7.7.9 -Dtangosol.coherence.clusterport=9778 -Dtangosol.coherence.log=
      jdk -Djavax.xml.soap.MessageFactory=oracle.j2ee.ws.saaj.soap.MessageFactoryImpl -Dweblogic.transacti
      on.blocking.commit=true -Dweblogic.transaction.blocking.rollback=true -Djavax.net.ssl.trustStore=C:\
      Oracle\MIDDLE~1\WLSERV~1.3\server\lib\DemoTrust.jks -Dem.oracle.home=C:\Oracle\Middleware\oracle_com
      mon -Djava.awt.headless=true -Dums.oracle.home=C:\Oracle\Middleware\Oracle_SOA1 -Dweblogic.managemen
      t.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dir
      s=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\pat
      ch_ocp360\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\defa
      ult\sysext_manifest_classpath weblogic.Server
      Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/Server
      Caused by: java.lang.ClassNotFoundException: weblogic.Server
      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.Server. Program will exit.
        • 1. Re: Can't start weblogic admin server - "could not find main class" error
          Daniel Atwood
          Not sure if this is the source of your problem, but you might want to start over because it looks like you're on a Windows 64 bit operating system and you're not using the 64 bit JRockit JDK.

          Download and install JRockit 6 Update 29 R28.2.0+ 64 bit for Windows.
          Download the Generic WebLogic Server 11g (10.3.5).

          I think the installation instructions in "Quick Start Guide for Oracle® SOA Suite 11gR1" document are the clearest and easiest to follow. You might want to download this if you haven't already. The instructions are pretty good but you'd also want to:

          1. Run the installer via the command java -jar wls1035_generic.jar.
          2. Change the default and install WLS in the the Oracle home directory C:\Oracle\Middleware\home_11gR1.
          3. Do not install the JVMs that come with WLS but instead use the JRockit 64-bit, e.g. C:\Java\jrockit-jdk1.6.0_29-R28.
          4. Use the default directories for WLS and Coherence.
          5. Ensure the 64-bit JDK is coming up in the JVM dialog.

          When you install JDeveloper, make sure that you install it to a different Middleware home directory.

          Dan