Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Remote Deployment to Tomcat5?
Remote Deployment to Tomcat5? [message #151599] Tue, 13 December 2005 11:23 Go to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Hello everyone,

is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server? What
protocol would it use, and what do I have to configure on the remote
side? Is there any tutorial for such a scenario?

Regards,

Andreas
Re: Remote Deployment to Tomcat5? [message #151623 is a reply to message #151599] Tue, 13 December 2005 15:08 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Andreas Schildbach wrote:
> is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server? What
> protocol would it use, and what do I have to configure on the remote
> side? Is there any tutorial for such a scenario?

I don't believe there is right now. You can deploy whole applications
to TOMCAT through its admin / manager web interface, once installed and
setup. But I dont think this is what you meant or want.


I have a major interest in this area, I have been in thinking cap mode
and experimentation mode working towards a "tomcat developer support
package" for the latter part of this year. This package has the
following goals:

* Be additive to the current production system focused tomcat-base package.

* To improve the quality of development/testing cycle with tomcat by
jumping through whatever hoops become necessary.

* To be a place for patches that never made it into the offical
distribution because they would impact production usage. A place for a
developer focused build to exist that maintains TCs package isolation.

* To provide remote development support with tomcat, think of this as
the same user experience you get from a local running copy but remotely,
with delta updates, deployment control, JVM control.

* Allow a transactional publish operation where everything is uploaded
to the remote system before commited and let TC participate in exactly
when and how a merge is made to help maintain its operational stability.

* Allow delta updates via file checksums, timestamps, allow both upload
and download of exploded web-app files.

* To provide container to IDE remote log file transport, with the client
end being able to filter, isolate and display entries.

* Can obviously be used locally (127.0.0.1:12345) or remotly.



The nature of the protocol I intend to use is completely bespoke but
reusable, the wire protocol will try and satistfy:

* Basic challenge/response security
* Run using non-blocking JVM5 sockets (which could be easily adapted for
blocking JVM1.4 or dual thread reader/writer though a compatability layer)
* Be an extensible request/response protocol
* Multiplexed channel based approach
* Async and sync requests per channel
* Allow out-of-band events/requests
* Chunked interleved operations (better multiplexing over ADSL)
* Try to keep things on the generic side (i.e. dont make the whole thing
too tomcat specific)
* Have some view on backward compatibility support
* Be possible to run over SSH/SSL
* Be possible to proxy / aggregate



In addition a custom version of 'jsvc' which would allow for remote JVM
and container restart functions. This gives a remote machine 100%
control over JVM lifecycle (the kill switch).

The container side driver will be installed and operate at container
level, an integrated feature of the container. This is just to confirm
this isn't just a management web-app but something integrated.

The log file management would behave as a appender driver that could be
installed and then publish channels. The web-app would be expected to
paticipate by making as small a configuration change as possible.


I am currently doing some work with Java Memory Profiler along similar
lines.

Its my hope to have something to demonstrate with JMP and Tomcat by
around March time.


If you can think of anything I've missed out or point me somewhere that
I can download such a beast :) otherwise I'll keep tinkering.


Darryl
Re: Remote Deployment to Tomcat5? [message #151651 is a reply to message #151623] Tue, 13 December 2005 16:13 Go to previous messageGo to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Darryl L. Miles wrote:

>> is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server? What
>> protocol would it use, and what do I have to configure on the remote
>> side? Is there any tutorial for such a scenario?
>
> I don't believe there is right now. You can deploy whole applications
> to TOMCAT through its admin / manager web interface, once installed and
> setup. But I dont think this is what you meant or want.

If you can do this out of WTP, this is what I meant.

With WTP 0.7.1, I synchronized the .deployables directory remotely with
webapps/myapp, using rsync. Now that .deployables is gone, I would have
to build the .war on my own if I cannot directly deploy to a remote machine.

When adding a server to the servers view, what exactly is the "Server's
host name" used for? As soon as I change it from the default
"localhost", all server types disappear and I cannot complete the
dialog. What is this host name supposed to mean? The address of the
admin/manager interface?

Regards,

Andreas
Re: Remote Deployment to Tomcat5? [message #151658 is a reply to message #151599] Tue, 13 December 2005 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sppatel.gmail.com

IIRC, I don't think the Tomcat server adapter in wtp supports remote
deployment. However, with the Geronimo Server Adapter you can. Geronimo
will have two distributions, one that embeds Tomcat, and the other that is
configured with Jetty. Using the Geronimo Tomcat version along with the
server adapter out of the box, (i.e without changing ports) should work
without any specific user configuration.

On 12/13/05 3:23 AM, in article dnmaun$qn1$1@news.eclipse.org, "Andreas
Schildbach" <andreas@schildbach.de> wrote:

> Hello everyone,
>
> is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server? What
> protocol would it use, and what do I have to configure on the remote
> side? Is there any tutorial for such a scenario?
>
> Regards,
>
> Andreas
Re: Remote Deployment to Tomcat5? [message #151721 is a reply to message #151651] Tue, 13 December 2005 19:00 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Andreas Schildbach wrote:

> Darryl L. Miles wrote:
>
>>> is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server?
>>> What protocol would it use, and what do I have to configure on the
>>> remote side? Is there any tutorial for such a scenario?
>>
>>
>> I don't believe there is right now. You can deploy whole
>> applications to TOMCAT through its admin / manager web interface,
>> once installed and setup. But I dont think this is what you meant or
>> want.
>
>
> If you can do this out of WTP, this is what I meant.
>
> With WTP 0.7.1, I synchronized the .deployables directory remotely
> with webapps/myapp, using rsync. Now that .deployables is gone, I
> would have to build the .war on my own if I cannot directly deploy to
> a remote machine.

What stops you from deploying locally then and still using rsync from
the webapps directory created.

I think you can even publish sucessfully when stop is not even started.

I too have been using rsync, but I have an ANT script that can build my
WAR (rather than 100% trust in WTP publish during its development, but
the publish operation of RC4 should now be just as good to use).


> When adding a server to the servers view, what exactly is the
> "Server's host name" used for? As soon as I change it from the default
> "localhost", all server types disappear and I cannot complete the
> dialog. What is this host name supposed to mean? The address of the
> admin/manager interface?

I think they disappear because none of those server runtime drivers
support remote deployment (at this time). So the box is adapting to
your requests and giving you a picture of what is possible. In due
course some of those drivers will be able to deploy remotely. In some
cases this may only be on the scale of the whole web-app, that is
POSTing with HTTP a WAR file to a URL with basic authentication.

Darryl
Re: Remote Deployment to Tomcat5? [message #151793 is a reply to message #151721] Tue, 13 December 2005 22:08 Go to previous messageGo to next message
Andreas Schildbach is currently offline Andreas SchildbachFriend
Messages: 70
Registered: July 2009
Member
Darryl L. Miles wrote:

>> With WTP 0.7.1, I synchronized the .deployables directory remotely
>> with webapps/myapp, using rsync. Now that .deployables is gone, I
>> would have to build the .war on my own if I cannot directly deploy to
>> a remote machine.
>
> What stops you from deploying locally then and still using rsync from
> the webapps directory created.

Good question. Now that the .deployables is gone, I don't know where WTP
is putting the webapps. Note that it's not $CATALINA_HOME/webapps,
because I have selected "run modules directly from the workspace" (and
like to keep it this way, if possible) for my projects.

I would still prefer to just have my remote server in the servers view
and deploy via "publish".

> I too have been using rsync, but I have an ANT script that can build my
> WAR (rather than 100% trust in WTP publish during its development, but
> the publish operation of RC4 should now be just as good to use).

I have given up on an own WAR build since WTP 0.7 final, because I made
far more errors in my own WAR build than WTP did, and - far worse - I
did not catch the errors in my local tests.

> In due
> course some of those drivers will be able to deploy remotely. In some
> cases this may only be on the scale of the whole web-app, that is
> POSTing with HTTP a WAR file to a URL with basic authentication.

This would be great for starters.

Regards,

Andreas
Re: Remote Deployment to Tomcat5? [message #151801 is a reply to message #151793] Tue, 13 December 2005 22:15 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Andreas Schildbach wrote:
> Good question. Now that the .deployables is gone, I don't know where WTP
> is putting the webapps. Note that it's not $CATALINA_HOME/webapps,
> because I have selected "run modules directly from the workspace" (and
> like to keep it this way, if possible) for my projects.

$OME/workspace/.metadata/.plugins/org.eclipse.wst.server.cor e/tmp0/webapps/
?


Darryl
Re: Remote Deployment to Tomcat5? [message #151816 is a reply to message #151599] Wed, 14 December 2005 00:50 Go to previous messageGo to next message
Jonathan Barnes is currently offline Jonathan BarnesFriend
Messages: 10
Registered: July 2009
Junior Member
Why not use ants deploy task to do remote deployment straight from eclipse?

<target name="webapp.deploy.net.tomcat"
description="Install application in Tomcat"
depends="webapp.war">

<fail unless="tomcat.manager.url"
message="Please specify property tomcat.manager.url" />
<fail unless="tomcat.manager.username"
message="Please specify property tomcat.manager.username" />
<fail unless="tomcat.manager.password"
message="Please specify property tomcat.manager.password" />
<fail unless="build.dir"
message="Please specify property build.dir" />
<fail unless="tomcat.home.dir"
message="Please specify tomcat.home.dir property" />

<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask">
<classpath>
<path refid="classpath" />
<pathelement
location="${tomcat.home.dir}/server/lib/catalina-ant.jar"/ >
</classpath>
</taskdef>

<deploy url="${tomcat.manager.url}"
username="${tomcat.manager.username}"
password="${tomcat.manager.password}"
path="/${ant.project.name}"
war="file:${build.dir}/${ant.project.name}.war"
update="true"/>

</target>


Andreas Schildbach wrote:
> Hello everyone,
>
> is it possible for WTP 1.0 to deploy to a remote Tomcat 5 server? What
> protocol would it use, and what do I have to configure on the remote
> side? Is there any tutorial for such a scenario?
>
> Regards,
>
> Andreas
Re: Remote Deployment to Tomcat5? [message #151824 is a reply to message #151816] Wed, 14 December 2005 01:37 Go to previous message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Jonathan Barnes wrote:
> Why not use ants deploy task to do remote deployment straight from eclipse?

Some of us don't have ethernet speed to their testing / production
platform and fixing last minute issues via ADSL is painful if you have
to upload ~35Mb WAR files for a 1 character changes. rsync's just cooler.

Thanks for the ANT build file fragment.


Darryl
Previous Topic:crazy error
Next Topic:waht's new
Goto Forum:
  


Current Time: Thu Aug 01 03:15:22 GMT 2024

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

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

Back to the top