Howto add/use a New Server Runtime for JBoss 4.0.2 ??? [message #120157] |
Tue, 12 July 2005 16:30  |
Eclipse User |
|
|
|
Originally posted by: harry.raceeend.demon.nl
Hi,
In ./eclipse/plugins/org.eclipse.jst.server.generic.serverdefin itions_0.7.0/
I added JBoss402EclipseWTP.zip, changed the encoding to ANSI in the XML
files. This should supply a server definition for JBoss 4.0.2
However in Windows > Preferences > Server > Installed Runtimes I cannot
see this newly added server definition. Is this normal ?
How can I define/add/use a new server definition in Eclipse ?
My environment is FC4 + separately installed eclipse 3.1 +
wtp-sdk-1.0M5 + the prerequisites. My JVM is SUN 5.0 or 1.4.2
Till now I cannot start/stop a JBoss server (yes, from the commandline
it works flawlessly). I tried JBoss 3.2.3 (because the server def is in
eclipse present), but this gave a load of Exceptions.
Now I want JBos 4.0.2 start/stop from Eclipse. How ???
Harry
|
|
|
Re: Howto add/use a New Server Runtime for JBoss 4.0.2 ??? [message #120215 is a reply to message #120157] |
Tue, 12 July 2005 17:44  |
Eclipse User |
|
|
|
Originally posted by: harry.raceeend.demon.nl
This is really weird !
I reinstalled wtp-sdk-1.0M5.zip over my eclipse 3.1
Now it works ! I can start/stop JBoss 4.0.2
Maybe others can use this info:
My configuration is :
-------------------------------------------
Fedora Core 4
-------------------------------------------
Separately installed in /opt/eclipse
eclipse-SDK-3.1-linux-gtk.tar.gz
-------------------------------------------
plugins installed
emf-sdo-xsd-SDK-2.1.0.zip (emf-sdo-xsd-SDK-I200506230200.zip is
recommended however)
GEF-ALL-3.1.zip (GEF-SDK-3.1RC4.zip is recommended)
JEM-SDK-1.1M2.zip (JEM-SDK-I20050623.zip is recommended)
wtp-sdk-1.0M5.zip
uml2-SDK-1.1.0.zip ***
VE-SDK-1.1M2.zip ***
tomcatPluginV3.zip ***
com.bea.eclipse.weblogic-1.1.1.zip ***
*** these are not required for WTP.
-------------------------------------------
Server definition for JBoss 4.02 from
JBoss402EclipseWTP.zip
-------------------------------------------
Then I first run eclipse with the -clean option from the commandline as:
/opt/eclipse/eclipse -vm /opt/SUNWappserver/jdk/bin/java -clean
Then I closed (exit) eclipse
I started eclipse from (linux) Applications > RunApplications and
selected /opt/eclipse/start.sh
start.sh is a small shell script with the following contents:
export JAVA_HOME=/opt/SUNWappserver/jdk
/opt/eclipse/eclipse -vm $JAVA_HOME/bin/java
Now in Windows > Preferences > Java > Installed JREs, I added an entry
SUN JDK 5.0, pointing to /opt/SUNWappserver/jdk
In Windows > Preferences > Java > Build Path, I checked the JDK_TOOLS
entry, this should point to /opt/SUNWappserver/jdk/lib/tools.jar
In Windows > Preferences > Server > Installed Runtimes, I clicked
'Add...', and to my surprise I saw 'Generic JBoss 4.0.2' listed.
I closed the Preferences window.
I added the View for Server with:
Windows > Show View > Other > Server > Servers
In the 'Servers' View window I Right Clicked and selected New > Server
and selected 'Generic JBoss 4.0.2'.
Now an entry in the Servers View appearers for the JBoss Server with
status 'stopped'
I Right Clicked on the JBoss Server and select 'Start'
Within 28 seconds the server was in the air without any Execptions or
problems.
I still didn't believe that the JBoss server was really up and running,
so I tested the working of the server by pointing in Mozilla to
http://localhost:9200/ (Yes I put my JBoss on port 9200, I changed the
occurences of the default 8080 value by hand. I searched the files with
$ grep -R 8080 * from /opt/jboss-4.0.2 down. If there is a more
convenient way to realize this, I like to hear it).
Anyhow, the JBoss screen appeared. So this step is done. Now the rest:
Developing EAR's and deploying them om JBoss.
When I look back at what might have been the reason that it 'suddenly'
seemed to be able to start/stop JBoss 4.0.2 within eclipse, and that
the server definition for JBoss 4.0.2 appeared in the dfinitions list, I
think the '-clean' option is important here, and maybe the different zip
files might have been updated by the maintainers in the meantime, while
holding the same name/version. Ok, let it be what it is, it works now.
bye
Harry
|
|
|
Powered by
FUDForum. Page generated in 0.05057 seconds