File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Install the WebLogic Plug-In Within the Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Install the WebLogic Plug-In Within the Eclipse" Watch "Install the WebLogic Plug-In Within the Eclipse" New topic
Author

Install the WebLogic Plug-In Within the Eclipse

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I am following the instructions found at URL https://eclipse-plugin.projects.dev2dev.bea.com/readme.html
to install the WebLogic plug-in within the Eclipse. And, I have a number of questions:

1. In the Eclipse, I clicked on the WebLogic node. I was asked to set some parameters. What is the Hostname (the hostname used by weblogic.Admin) I should provide?

2. In the Eclipse, I selected the 'WebLogic->Classpath' node and I was asked to set the following parameters
a. Classpath before the WebLogic libraries
b. Classpath after the WebLogic libraries

I think that the WebLogic libraries are under the C:\bea\WebLogic81\server\lib directory. I do not understand what are the classpaths "before the WebLogic libraries" and "after the WebLogic libraries"

3. I selected the 'WebLogic->JavaVM Options' node and I was asked to set the following parameters:
a. JavaVM (JDK used to launch WebLogic Server)
b. JavaVM Options (arguments to pass the JavaVM)

I have JAVA_HOME=C:\j2sdk1.4.2_07. What do I provide to set the JavaVM and JavaVM Options?

Thank you for your help.
Santosh Maskar
Ranch Hand

Joined: Jul 02, 2003
Posts: 226
use following setting to see Weblogic running from eclipse

Bea_home :c:\bea
Weblogic_home: c:\bea\weblogic81
Domainname: Example
Domain directory: E:\bea\weblogic81\samples\domains\examples
Servername : cgServer
user : weblogic
password :weblogic
hostname : localhost (or use remote host where ur weblogic installed
port : 7001 (default) see your port

Classpath : \bea (use ur bea home eg. C:\bea)
JVM option : -Dweblogic.ProductionModeEnabled= true

This will help you

Thanks
Santosh
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Thanks for providing the values for those parameters.

I am still unclear about a couple of things:

1. The Eclipse 'WebLogic->Classpath' node asks the following parameters to be set:
a. Classpath "before" the WebLogic libraries
b. Classpath "after" the WebLogic libraries

I think that the WebLogic libraries are under the C:\bea\WebLogic81\server\lib directory. I do not understand what are the classpaths "before the WebLogic libraries" and "after the WebLogic libraries"

2. The 'WebLogic->JavaVM Options' asks to set the "JavaVM (JDK used to launch WebLogic Server)". Do I provide the path of my JAVA_HOME?

Thank you.
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
1. Regarding the before and after classpath, sometimes you need to add to the classpath used to start WLS. Where it gets added in the classpath can be important if the classes are in more than one part of the classpath and you want the correct one to be used.

For example, weblogic comes with some jdbc drivers. If you want to use a different driver version you need to put that jar in front of the weblogic jars.

2. Did you try putting the path to your jdk here? did it work?
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Thanks to all for your help.

I am able to start the WebLogic from within the Eclipse 3.0.1 in two ways:

1. click on the Start WebLogic from the Run menu; and
2. click on the Start WebLogic button in the tool bar.

However, there is no Stop WebLogic in the Eclipse Run menu and there is no Stop WebLogic button in the Eclipse tool bar.

Now, I am stuck. I cannot stop the WebLogic from within the Eclipse. What should I do?
Carol Enderlin
drifter
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Hmmm, that readme says the stop options should be there.

Did you try to stop it from the weblogic admin console?
(http://hostname:port/console)

Right-click on the server node and select start/stop this server

then on right pane select either of these
Graceful shutdown of this server...
Force shutdown of this server...

(force shutdown if you don't want to wait for active sessions)
[ March 14, 2005: Message edited by: Carol Enderlin ]
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Thanks for your reply. I can stop the WebLogic from its Adminitration console; however, it is meant that I should be able to stop the WebLogic from within the Eclipse by using the WebLogic plug-in.

Something must not be quite right. Why I do not have a Stop WebLogic buttion in the Eclipse tool bar. And why the Stop WebLogic does not appear in the Eclipse Run menu?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Install the WebLogic Plug-In Within the Eclipse