Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP & copying project assets without redeploy
WTP & copying project assets without redeploy [message #217825] Fri, 18 July 2008 12:27 Go to next message
Toomas Römer is currently offline Toomas RömerFriend
Messages: 2
Registered: July 2009
Junior Member
Hi

I have WTP (3.0.0) installed. I have a project that is deployed to
Tomcat 6.0. I have build automatically enabled.

I would like WTP to copy my project assets to the deployed folder
without triggering a redeploy. The reason for this is that JavaRebel is
doing the class reloading and there is no point for a redeploy after the
changes.

How to achieve this? If I have "Automatically publish when resources
change" enabled in WTP it will write $CATALINA_BASE/conf/server.xml with
the flag relodable=true to the context of the project. This will make
Tomcat reload app context when seeing new class file timestamps.

If I use "Never publish automatically" I need to publish after the
slightest change (as stated here[1] the Spring metadata files won't get
published this way).

If I use "Automatically publish when resources change" and manually edit
the server.xml to have reloadable=false for my app context it will be
overwritte by reloadable=true after the next publish.

I would like to have my files copied to the deployment directory without
the relodable=true required in the server.xml. What are my options?

[1] http://www.jroller.com/robwilliams/entry/javarebel_not_so_fa st

Toomas
Re: WTP & copying project assets without redeploy [message #217838 is a reply to message #217825] Fri, 18 July 2008 13:12 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Toomas Romer wrote:
> Hi
>
> I have WTP (3.0.0) installed. I have a project that is deployed to
> Tomcat 6.0. I have build automatically enabled.
>
> I would like WTP to copy my project assets to the deployed folder
> without triggering a redeploy. The reason for this is that JavaRebel is
> doing the class reloading and there is no point for a redeploy after the
> changes.
>
> How to achieve this? If I have "Automatically publish when resources
> change" enabled in WTP it will write $CATALINA_BASE/conf/server.xml with
> the flag relodable=true to the context of the project. This will make
> Tomcat reload app context when seeing new class file timestamps.

The server.xml you want to change is the one under the Servers project
in your workspace. For some related information, see:

http://wiki.eclipse.org/WTP_Tomcat_FAQ#What_does_Publish_do_ for_Tomcat_servers_in_the_Servers_view.3F

When a project is added to the server, the reloadable attribute will
default to true in the associated Context. You can change it's value to
false after that. You can change it by directly modifying server.xml
(under the Servers project) or via the Modules tab of the Tomcat server
editor (double-click the Tomcat server in the Servers view to open this
editor). If running, you will need to restart Tomcat to have these
changes take effect.

Cheers,
Larry

>
> If I use "Never publish automatically" I need to publish after the
> slightest change (as stated here[1] the Spring metadata files won't get
> published this way).
>
> If I use "Automatically publish when resources change" and manually edit
> the server.xml to have reloadable=false for my app context it will be
> overwritte by reloadable=true after the next publish.
>
> I would like to have my files copied to the deployment directory without
> the relodable=true required in the server.xml. What are my options?
>
> [1] http://www.jroller.com/robwilliams/entry/javarebel_not_so_fa st
>
> Toomas
Previous Topic:Publishing to WS02
Next Topic:org.apache.tools.ant.taskdefs.optional.net.FTP Not Found
Goto Forum:
  


Current Time: Sat Apr 20 03:54:55 GMT 2024

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

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

Back to the top