facebook

Cannot Start WebLogic 8.1, sp4 through MyEclipse [Closed]

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 15 posts - 1 through 15 (of 38 total)
  • Author
    Posts
  • #229178 Reply

    dndelisle
    Member

    I first dowloaded and installed Eclipse (v3.0.2), then myEclpse (v3.8.4+QF2).
    My setup appears to conform to the posted screen shot. I am getting a “cannot find the main class” error, then the following:
    java.lang.NoClassDefFoundError: C:\bea\jdk142_05\bin;C:\bea\weblogic81\bin;C:\bea\weblogic81\server\bin -Dweblogic/RootDirectory=C:\bea\user_projects\domains\\myProjects -Dweblogic/Domain=myProjects -Dweblogic/Name=myserver -Djava/security/policy=C:\bea\weblogic81\server\lib\weblogic/policy -Dweblogic/management/discover=false -Dweblogic/management/username=weblogic -Dweblogic/management/password=weblogic
    Exception in thread “main”

    What am I missing? I have also tried using “C:\sdks\j2sdk1.4.2_06” as the jdk. Do I need to set up something on the paths screen or set optional jvm parameters? If so, what are they?

    #229184 Reply

    Riyad Kalla
    Member

    You are correct to use the JDK under the BEA directory, please list all of your settings for the WebLogic 8 connector as well as any specific Paths entries so we can try and reproduce this.

    #229198 Reply

    dndelisle
    Member

    @support-rkalla wrote:

    You are correct to use the JDK under the BEA directory, please list all of your settings for the WebLogic 8 connector as well as any specific Paths entries so we can try and reproduce this.

    Below are my current weblogic settings in myEclipse…
    MAIN PAGE:
    Weblogic Server- Enable

    BEA home directory- C:\bea\
    WebLogic installation directory- C:\bea\weblogic81
    Admin username- weblogic
    Admin password- weblogic
    Execution Domain root- C:\bea\user_projects\domains\
    Execution domain name- myProjects
    Execution server Name- myserver
    Hostname:portnumber- localhost:7001
    Security Policy File- C:\bea\weblogic81\server\lib\weblogic.policy
    JAAS login configuration file- <blank>

    JDK PAGE:
    WLS JDK name: JDK142_05 (points to the root directory of the JDK in BEA, C:\bea\jdk142_05
    No Optional jvm arguments
    ADD settings: Standard JVM/JRE home directory- C:\bea\jdk142_05 /no default arguments/use default system libraries checked

    LAUNCH PAGE:
    Standalone
    Run Mode
    PATHS PAGE:
    <currently blank- no selections>

    #229205 Reply

    Scott Anderson
    Participant

    Actually, the issue might be the WebLogic JDK since MyEclipse tries to use javaw to launch the server and BEA has customized the JDK’s that it ships. I’d suggest using the latest 1.4.2 Sun JDK to launch WebLogic, since I’ve seen issues with the BEA JDK’s in the past.

    #229244 Reply

    dndelisle
    Member

    I downloaded and installed j2sdk1.4.2_08, using that directory as the JDK with the same result. I might point out that the WebLogic instance, which has one deployed application, starts fine when launched as a standalone from the program menu or with the startWebLogic.cmd file. Shoulld I create a fresh instance and try the myEclipse launcher with that?

    #229248 Reply

    Riyad Kalla
    Member

    Shoulld I create a fresh instance and try the myEclipse launcher with that?

    That’s not a bad idea, see if a vanilla install will spin up.

    #229252 Reply

    dndelisle
    Member

    @support-rkalla wrote:

    Shoulld I create a fresh instance and try the myEclipse launcher with that?

    That’s not a bad idea, see if a vanilla install will spin up.

    The result is the same. I continue to think something simple is missing.

    #229258 Reply

    Riyad Kalla
    Member

    Did you change your execution domain to “mydomain” when trying the vanilla install?

    #229259 Reply

    dndelisle
    Member

    An associate suggested that it may be necessary to add a .jar file to the classpath (tools.jar?). It seemed he had seen this or a similar error in the past. Any thoughts?

    #229263 Reply

    dndelisle
    Member

    I used a different domain name(TestProjects) and changed it in the preferences window, so that the settings are:
    Execution Domain Root- C:\bea\user_projects\domains\
    Execution Domain Name- TestProjects
    Execution Server name- myserver
    I am still getting the same error.

    #229270 Reply

    Riyad Kalla
    Member

    Execution Domain Root- C:\bea\user_projects\domains\
    Execution Domain Name- TestProjects

    Does this mean that you actually have a dir: C:\bea\user_projects\domains\TestProjects?

    I thought when you setup the domain name you actually have to have a domain by that name for WL to launch.

    An associate suggested that it may be necessary to add a .jar file to the classpath (tools.jar?). It seemed he had seen this or a similar error in the past. Any thoughts?

    This is required by the connector which is why you have to configure the launcher to use a JDK and not a JRE. But if you configured it with a JDK, then tools is added automagically for you.

    #229274 Reply

    dndelisle
    Member

    When you set up a Domain in WebLogic with the wizard, it creates a directory with the domain name for you. So, I do have a directory: C:\bea\user_projects\domains\TestProjects and a domain “TestProjects”. I have been trying some differnt things (adding rudundant jvm parmeters, adding jar files to the classpath, etc) and still cannot get WebLogic to start. The error remains the same, see above. The console indicates the error is in …/bin/javaw.exe in whatever JDK I am using. This is getting frustrating as I must get on with development and I was hoping that myEclipse would meet my needs. Have you been able to duplicate this in your environment?

    #229278 Reply

    Riyad Kalla
    Member

    The error remains the same, see above. The console indicates the error is in …/bin/javaw.exe in whatever JDK I am using.

    Where did this come from? I have not see the mention of “javaw.exe” in any of the messages you have posted thus far. Is there more to the startup messages that we are not seeing? Can you post all of it?

    Have you been able to duplicate this in your environment?

    Unfortunately not.

    Let us do a quick sanity check and make sure there is not some stray wrong value screwing this all up, so do the following.

    1) Reinstall a fresh copy of WebLogic to C:\temp\<whatever dir weblogic wants>
    2) While MyEclipse is loaded, do File > Switch Workspace > C:\temp\deletethisworkspace, hit OK let it restart
    ** You now have a fresh install of Eclipse/MyEclipse since almost everything is stored in the workspace.
    3) Go to your WebLogic 8 connector settings: Window > Prefs > MyEclipse > App Servers > WebLogic 8
    4) Leave all the default values and select the home dir, make sure it looks as close to this as possible: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.html#13
    5) Go to your JDK settings for the connctor and hit Add then point to the JDK under the BEA directory.
    5) Hit OK and use the toolbar to try and luanch it. Please paste the entire contents of the Console view. Additionally open up your C:\temp\deletethisworkspace\.metadata\.log file, and paste all of it here as well.

    #229281 Reply

    dndelisle
    Member

    Is there away to send you screen prints?

    #229282 Reply

    Riyad Kalla
    Member

    Yes please email any screenshots to support@genuitec.com ATTN Riyad.

Viewing 15 posts - 1 through 15 (of 38 total)
Reply To: Cannot Start WebLogic 8.1, sp4 through MyEclipse [Closed]

You must be logged in to post in the forum log in