|Re: Deploy Servlet Web App to JBoss [message #221740 is a reply to message #221726]
||Tue, 23 September 2008 07:48
| Kaloyan Raev
Registered: July 2009
Location: Sofia, Bulgaria
The .classpath file is a system file for Eclipse project. It is not part of
the Java EE specification and even if you have it in the exported .war file
the application server will not process it.
If you need to refer to external JARs, you should use the Java EE
Dependencies property page rather than adding them directly in the Java
Build Path of the project.
I haven't tried configuring a remote JBoss server in WTP, but the following
may work. First, you need to configure a JBoss server runtime. You have to
point to the JBoss runtime libraries in the wizard. You need to somehow made
accessible the folder with JBoss installation on your remote system. Then
you can create a JBoss server instance. There in the wizard you have Host
field where you can specify the host of you remote system.
"John Bailo" <John.Bailo@Bowne.com> wrote in message
> Well, this is weird. I exported my war to a jar. I copyied my external
> directory of jars to the \deploy folder of JBoss.
> And somehow my application works and can call the external jars.
> However, if I look in my .war file, there is no .classpath file, and there
> is no classpath defined in the Manifest.
> How can JBoss possibly know where to find the external jars??
|Re: Deploy Servlet Web App to JBoss [message #221747 is a reply to message #221717]
||Tue, 23 September 2008 10:05
Originally posted by: wknauf_NO_._INSIDE_hg-online.de|
the easiest way to deploy external jars to the server is to copy them to
WEB-INF/lib in your project (important: call "Refresh" in the project explorer
For the remote deployment: some time ago I modified the default WTP JBoss plugin
to perform a JSR88 deployment. This should also work for remote servers by just
specifying the remote IP in the server properties (as Kaloyan suggests, but his
suggestion will not work with the default plugin).
You can find the plugin and a short installation instruction here:
http://www.informatik.fh-wiesbaden.de/~knauf/public/ (section "WTP 3.0: JBoss
Could you give me some feedback whether it works or not?
Unfortunately, JSR deployment is not persistent in JBoss, so you will have to do
deploy on each server restart.
John Bailo wrote:
> How should I use Eclipse so I can:
> 1. Automatically deploy to a remote JBoss server?
> 2. Have it carry all the project references with
> deployment...preferrably all in the .war file so it's a complete package.
Powered by FUDForum
. Page generated in 0.02722 seconds