Results 1 to 2 of 2
  1. #1
    chitochez is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Question HelloWorld Servlet not working using Eclipse3.4- WebLogic9.1

    I am new to java. I want to do simple helloworld servlet using eclipse3.4 and weblogic 9.1

    i got following message on the console

    The JRE was not found in directory C:\DOCUME~1\Owner\MYDOCU~1\JROCKI~1. (JAVA_HOME)
    Please edit your environment and set the JAVA_HOME
    variable to point to the root directory of your Java installation.
    Press any key to continue . . .

    my java-home is not this but C:\Program Files\Java\jre1.5.0_04.
    i don't know if this is the problem


    after pressing any key following happened

    JAVA Memory arguments: -Xms256m -Xmx512m
    .
    WLS Start Mode=Development
    .
    CLASSPATH=.;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;
    .
    PATH=C:\DOCUME~1\Owner\MYDOCU~1\patch_weblogic910\ profiles\default\native;C:\DOCUME~1\Owner\MYDOCU~1 \WEBLOG~1\server\native\win\32;C:\DOCUME~1\Owner\M YDOCU~1\WEBLOG~1\server\bin;C:\DOCUME~1\Owner\MYDO CU~1\JROCKI~1\jre\bin;C:\DOCUME~1\Owner\MYDOCU~1\J ROCKI~1\bin;C:/Program Files/Java/jre1.6.0_07/bin/client;C:/Program Files/Java/jre1.6.0_07/bin;c:\program files\rockwell software\rscommon;C:\WINDOWS\system32;C:\WINDOWS;C :\WINDOWS\system32\wbem;c:\program files\common files\adaptec shared\system;c:\ptc\ptchelpwildfire 2.0\bin;c:\program files\common files\autodesk shared\;c:\program files\ulead systems\ulead dvd moviefactory 3.5 suite;c:\program files\common files\ulead systems\mpeg;c:\program files\microsoft sql server\90\tools\binn\;C:\Program Files\QuickTime\QTSystem\;C:\DOCUME~1\Owner\MYDOCU ~1\WEBLOG~1\server\native\win\32\oci920_8
    .
    ************************************************** *
    * 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 *
    ************************************************** *
    java version "1.5.0_04"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
    BEA JRockit(R) (build R26.0.0-189-53463-1.5.0_04-20051122-2041-win-ia32, )
    starting weblogic with Java version:
    Starting WLS with line:
    C:\DOCUME~1\Owner\MYDOCU~1\JROCKI~1\bin\java -jrockit -Xms256m -Xmx512m -Dweblogic.ListenPort=7001 -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dweblogic.Name=examplesServer -Djava.security.policy=C:\DOCUME~1\Owner\MYDOCU~1\W EBLOG~1\server\lib\weblogic.policy
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)

    where options include:
    -jrockit to select the "jrockit" VM
    -client to select the "client" VM
    -server to select the "server" VM [synonym for the "jrockit" VM]
    The default VM is jrockit.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
    enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
    disable assertions
    -esa | -enablesystemassertions
    enable system assertions
    -dsa | -disablesystemassertions
    disable system assertions
    -agentlib:<libname>[=<options>]
    load native agent library <libname>, e.g. -agentlib:hprof
    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
    load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
    load Java programming language agent, see java.lang.instrument
    Stopping PointBase server...
    PointBase server stopped.

    and message

    "starting weblogic 9.1 at local host encountered a problem
    server weblogic at localhost failed to start.


    if anybody can help me, that will be great
    thanks

  2. #2
    roots's Avatar
    roots is offline Moderator
    Join Date
    Jan 2008
    Location
    Dallas
    Posts
    293
    Rep Power
    7

    Default

    Java Code:
    C:\DOCUME~1\Owner\MYDOCU~1\JROCKI~1\bin\java -jrockit -Xms256m -Xmx512m -Dweblogic.ListenPort=7001 -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dweblogic.Name=examplesServer -Djava.security.policy=C:\DOCUME~1\Owner\MYDOCU~1\W EBLOG~1\server\lib\weblogic.policy
    As jorecket, i dont see class name there. Is the Path length too long ??

    Try setting JAVA_HOME to real JAVA base directory and put the executable of that java in the path.
    You can as well install java and weblogic in lower folder such as C:/ .. to trim the length.
    dont worry newbie, we got you covered.

Similar Threads

  1. Replies: 1
    Last Post: 12-02-2008, 01:23 AM
  2. Installing j2s in eclipse3.4
    By ravjot28 in forum Eclipse
    Replies: 0
    Last Post: 07-07-2008, 07:51 PM
  3. Replies: 8
    Last Post: 05-28-2008, 08:00 AM
  4. Run a helloWorld in NetBeans
    By mathias in forum NetBeans
    Replies: 1
    Last Post: 08-07-2007, 02:16 AM
  5. Problem with my program HelloWorld
    By trill in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 06:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •