Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Publish/Deploy with Web Tools?
Publish/Deploy with Web Tools? [message #174913] Wed, 19 July 2006 09:32 Go to next message
Eclipse User
Originally posted by: sgrimshaw.ebuyer.com

Hi,

Up until now I've been using a hand crafted Ant build file to construct
and deploy .war files to my local Tomcat installation, but now I'm trying
to use the Dynamic Web Project feature of the WTP to try and acheive the
same thing.

I removed the old .project file from my source directory and created a new
Dynamic Web Project following the instructions here:

http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. wst.webtools.doc.user/topics/twcreprj.html

I've created the server too, and assigned the project created above to it.
If I use my own ant build file to deploy the application locally, I can
stop, start & debug the app using Eclipse, great so far ...

However, if I remove the directories & files created by my ant script, how
do I then use WTP to publish my project to the local Tomcat install?

When I choose the "Publish" option from the menu, nothing seems to happen,
no errors, no folders created in my webapps directory or anything.

Any ideas?

Cheers,

Stu.
Re: Publish/Deploy with Web Tools? [message #174927 is a reply to message #174913] Wed, 19 July 2006 10:59 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
To see what is going on, double-click on the Tomcat server in the
Servers view, then click on the "Open launch configuration" link in the
configuration editor that appears, and switch to the Arguments tab.
Note the value specified for catalina.base in the VM Arguments field.
The default is to run with separate catalina.base and catalina.home so
that your Tomcat installation isn't modified. The publish destination
is the "webapps" folder under this catalina.base.

Cheers,
Larry

Stuart Grimshaw wrote:
> Hi,
>
> Up until now I've been using a hand crafted Ant build file to construct
> and deploy .war files to my local Tomcat installation, but now I'm
> trying to use the Dynamic Web Project feature of the WTP to try and
> acheive the same thing.
>
> I removed the old .project file from my source directory and created a
> new Dynamic Web Project following the instructions here:
>
> http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse. wst.webtools.doc.user/topics/twcreprj.html
>
>
> I've created the server too, and assigned the project created above to
> it. If I use my own ant build file to deploy the application locally, I
> can stop, start & debug the app using Eclipse, great so far ...
>
> However, if I remove the directories & files created by my ant script,
> how do I then use WTP to publish my project to the local Tomcat install?
>
> When I choose the "Publish" option from the menu, nothing seems to
> happen, no errors, no folders created in my webapps directory or anything.
>
> Any ideas?
>
> Cheers,
>
> Stu.
>
Re: Publish/Deploy with Web Tools? [message #174943 is a reply to message #174927] Wed, 19 July 2006 11:45 Go to previous messageGo to next message
Eclipse User
Originally posted by: sgrimshaw.ebuyer.com

Hi Larry,

I've tried changing the cataline.base to point at the correct location,
but every time I apply then close the dialog, then re-open it, the
parameter has been reset to it's previous value, even if I delete it
altogether it gets re-instated.

I should point out at this point to avoid confusion, our webapps
directory is outside of the catalina.home directory, so I still need to
keep the seperate catalina.base

Larry Isaacs wrote:

> To see what is going on, double-click on the Tomcat server in the
> Servers view, then click on the "Open launch configuration" link in the
> configuration editor that appears, and switch to the Arguments tab.
> Note the value specified for catalina.base in the VM Arguments field.
> The default is to run with separate catalina.base and catalina.home so
> that your Tomcat installation isn't modified. The publish destination
> is the "webapps" folder under this catalina.base.

> Cheers,
> Larry
Re: Publish/Deploy with Web Tools? [message #174961 is a reply to message #174943] Wed, 19 July 2006 12:25 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
This is enhancement request:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722

I'm am planning to address this in WTP 2.0. Feel feel to add your use
case to this bug or add least add yourself as a CC.

At the moment, catalina.base (along with catalina.home and
java.endorsed.dirs) are "owned" and managed by the Tomcat support. The
only alternative at the moment is to uncheck the "Run modules directly
from the workspace..." option, which will cause both catalina.base to
point to the Tomcat installation along with catalina.home.

Cheers,
Larry

Stuart Grimshaw wrote:
> Hi Larry,
>
> I've tried changing the cataline.base to point at the correct location,
> but every time I apply then close the dialog, then re-open it, the
> parameter has been reset to it's previous value, even if I delete it
> altogether it gets re-instated.
>
> I should point out at this point to avoid confusion, our webapps
> directory is outside of the catalina.home directory, so I still need to
> keep the seperate catalina.base
>
> Larry Isaacs wrote:
>
>> To see what is going on, double-click on the Tomcat server in the
>> Servers view, then click on the "Open launch configuration" link in
>> the configuration editor that appears, and switch to the Arguments
>> tab. Note the value specified for catalina.base in the VM Arguments
>> field.
>> The default is to run with separate catalina.base and catalina.home so
>> that your Tomcat installation isn't modified. The publish destination
>> is the "webapps" folder under this catalina.base.
>
>> Cheers,
>> Larry
>
>
Re: Publish/Deploy with Web Tools? [message #174969 is a reply to message #174961] Wed, 19 July 2006 12:29 Go to previous messageGo to next message
Eclipse User
Originally posted by: sgrimshaw.ebuyer.com

For now I have simply symlinked the directory required.

Still though the project is not being published. The directory [you
mentioned] is empty except for a single subdirectory (ROOT/) and does not
contain my webapp.

Is there a way to force a complete re-publishing of the app? I've tried
right clicking on the server then choosing "Publish", the cursor changes
to "busy" for a split second, but other than that nothing else appears to
happen.

Larry Isaacs wrote:

> This is enhancement request:

> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722

> I'm am planning to address this in WTP 2.0. Feel feel to add your use
> case to this bug or add least add yourself as a CC.

> At the moment, catalina.base (along with catalina.home and
> java.endorsed.dirs) are "owned" and managed by the Tomcat support. The
> only alternative at the moment is to uncheck the "Run modules directly
> from the workspace..." option, which will cause both catalina.base to
> point to the Tomcat installation along with catalina.home.

> Cheers,
> Larry
Re: Publish/Deploy with Web Tools? [message #174977 is a reply to message #174969] Wed, 19 July 2006 13:30 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
The standard way is to remove the project from the server, publish,
re-add the project, and publish. The non-standard way is to delete the
publish?.xml file under
<workspace>/.metadata/.plugins/org.eclipse.wst.server.core/publish. I
haven't tried the later, but I think it should work since it deletes the
cached information about what has been previously published to the server.

Larry

Stuart Grimshaw wrote:
> For now I have simply symlinked the directory required.
>
> Still though the project is not being published. The directory [you
> mentioned] is empty except for a single subdirectory (ROOT/) and does
> not contain my webapp.
>
> Is there a way to force a complete re-publishing of the app? I've tried
> right clicking on the server then choosing "Publish", the cursor changes
> to "busy" for a split second, but other than that nothing else appears
> to happen.
>
> Larry Isaacs wrote:
>
>> This is enhancement request:
>
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=107722
>
>> I'm am planning to address this in WTP 2.0. Feel feel to add your use
>> case to this bug or add least add yourself as a CC.
>
>> At the moment, catalina.base (along with catalina.home and
>> java.endorsed.dirs) are "owned" and managed by the Tomcat support.
>> The only alternative at the moment is to uncheck the "Run modules
>> directly from the workspace..." option, which will cause both
>> catalina.base to point to the Tomcat installation along with
>> catalina.home.
>
>> Cheers,
>> Larry
>
Re: Publish/Deploy with Web Tools? [message #175082 is a reply to message #174977] Thu, 20 July 2006 03:39 Go to previous message
Eclipse User
Originally posted by: sgrimshaw.ebuyer.com

Thanks Larry, I did manage to re-publish the "whole" project, but I
started getting run time errors with missing classes. The project deadline
is approaching, so for now I've gone back to using my old build script.

Once the deadline has passed however I will re-visit this as I can see how
using the integrated tools in Eclipse like this is an improvement over my
existing workflow ... I'll let you know how I get on ...

Larry Isaacs wrote:

> The standard way is to remove the project from the server, publish,
> re-add the project, and publish. The non-standard way is to delete the
> publish?.xml file under
> <workspace>/.metadata/.plugins/org.eclipse.wst.server.core/publish. I
> haven't tried the later, but I think it should work since it deletes the
> cached information about what has been previously published to the server.

> Larry
Previous Topic:Forced to stop eclipse abnormally ...
Next Topic:WTP 1.5 and EJB 3.0
Goto Forum:
  


Current Time: Sat Apr 19 18:40:45 EDT 2014

Powered by FUDForum. Page generated in 0.02937 seconds