- This topic has 37 replies, 4 voices, and was last updated 19 years, 10 months ago by
dndelisle.
-
AuthorPosts
-
dndelisleMemberI 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?
Riyad KallaMemberYou 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.
dndelisleMember@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- EnableBEA 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 checkedLAUNCH PAGE:
Standalone
Run Mode
PATHS PAGE:
<currently blank- no selections>
Scott AndersonParticipantActually, 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.
dndelisleMemberI 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?
Riyad KallaMemberShoulld 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.
dndelisleMember@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.
Riyad KallaMemberDid you change your execution domain to “mydomain” when trying the vanilla install?
dndelisleMemberAn 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?
dndelisleMemberI 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.
Riyad KallaMemberExecution Domain Root- C:\bea\user_projects\domains\
Execution Domain Name- TestProjectsDoes 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.
dndelisleMemberWhen 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?
Riyad KallaMemberThe 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.
dndelisleMemberIs there away to send you screen prints?
Riyad KallaMemberYes please email any screenshots to support@genuitec.com ATTN Riyad.
-
AuthorPosts