Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Deploy Servlet Web App to JBoss
Deploy Servlet Web App to JBoss [message #221717] Mon, 22 September 2008 16:36 Go to next message
John Bailo is currently offline John BailoFriend
Messages: 34
Registered: July 2009
Member
I've developed a jsp page and servlet for JBoss using Eclipse and the
JBoss runtime.

I use many external .jars in my project and I have it working in the
debugger.

Now I want to deploy to a server on another machine.

If I export to a .war file, I notice that it does not carry the .classpath
files that are in my \.workspace copies of the project.

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.
Re: Deploy Servlet Web App to JBoss [message #221726 is a reply to message #221717] Mon, 22 September 2008 21:55 Go to previous messageGo to next message
John Bailo is currently offline John BailoFriend
Messages: 34
Registered: July 2009
Member
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 #221740 is a reply to message #221726] Tue, 23 September 2008 07:48 Go to previous messageGo to next message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi John,

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.

Greetings, Kaloyan

"John Bailo" <John.Bailo@Bowne.com> wrote in message
news:d5c03ed91bbf35d8f81f3d672a963002$1@www.eclipse.org...
>
> 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 Go to previous message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi John,

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
afterwards).

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
JSR88 deployment").
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.

Best regards

Wolfgang

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.
>
Previous Topic:FacesConfig Editor
Next Topic:eclipse 3.4 - ejb - jboss - jndi-name
Goto Forum:
  


Current Time: Wed Apr 24 17:11:07 GMT 2024

Powered by FUDForum. Page generated in 0.02592 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top