Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » How to get Eclipse to publish somewhere else?
How to get Eclipse to publish somewhere else? [message #176401] Tue, 08 August 2006 00:56 Go to next message
Eclipse UserFriend
Originally posted by: ssl.radium.jvb.tudelft.nl

Hi,
I'm just starting out with WTP, and I have a question. When Eclipse
publishes my web project, it puts it in the
eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server. core\tmp0
folder, which is also what it tells tomcat to use as CATALINA_BASE.
I'd like to know how I can change that directory to something else, say,
TOMCAT_HOME, where I've got my manager app installed etc.

Regards,
Maarten
Re: How to get Eclipse to publish somewhere else? [message #176409 is a reply to message #176401] Tue, 08 August 2006 10:55 Go to previous messageGo to next message
Darryl Miles is currently offline Darryl MilesFriend
Messages: 123
Registered: July 2009
Senior Member
Maarten wrote:
> I'm just starting out with WTP, and I have a question. When Eclipse
> publishes my web project, it puts it in the
> eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server. core\tmp0
> folder, which is also what it tells tomcat to use as CATALINA_BASE.
> I'd like to know how I can change that directory to something else, say,
> TOMCAT_HOME, where I've got my manager app installed etc.

Does Unticking "Run modules directly from workspace" do this ?


Right click the Server runtime (from servers tab), select "Open".

You might need to make sure the tomcat installation is writable by your
eclipse userid.


Darryl
Re: How to get Eclipse to publish somewhere else? [message #176423 is a reply to message #176409] Tue, 08 August 2006 13:38 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Maarten,

Darryl is correct that unchecking "Run modules directly from the
workspace" will make catalina.base == catalina.home. However, be aware
that in this configuration, the Tomcat files found under the Servers
project in your workspace will overwrite those in your Tomcat
installation each time the Tomcat server is started in Eclipse. They
effectively become the "master" files. This means that your Tomcat
installation may no longer be "manageable" in the way you expect.

Cheers,
Larry

Darryl L. Miles wrote:
> Maarten wrote:
>> I'm just starting out with WTP, and I have a question. When Eclipse
>> publishes my web project, it puts it in the
>> eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server. core\tmp0
>> folder, which is also what it tells tomcat to use as CATALINA_BASE.
>> I'd like to know how I can change that directory to something else,
>> say, TOMCAT_HOME, where I've got my manager app installed etc.
>
> Does Unticking "Run modules directly from workspace" do this ?
>
>
> Right click the Server runtime (from servers tab), select "Open".
>
> You might need to make sure the tomcat installation is writable by your
> eclipse userid.
>
>
> Darryl
Re: How to get Eclipse to publish somewhere else? [message #176665 is a reply to message #176423] Wed, 09 August 2006 09:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ssl.radium.jvb.tudelft.nl

Thanks for the anwers, Larry and Darryl.
I guess my next question is, how do I get eclipse to simply publish my
webapp to a directory in CATALINA_BASE, and leave my config files alone?
Or would that hamper the Server=plugin functionality?
Regards,
Maarten
Re: How to get Eclipse to publish somewhere else? [message #176673 is a reply to message #176665] Wed, 09 August 2006 13:04 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
This is not currently configurable. Projects are published to the
"webapps" directory under the catalina.base determined by the "Run
modules directly from the workspace" setting. I'm working on improving
the this for WTP 2.0, which will include allowing a user specified
catalina.base.

Larry

Maarten wrote:
> Thanks for the anwers, Larry and Darryl.
> I guess my next question is, how do I get eclipse to simply publish my
> webapp to a directory in CATALINA_BASE, and leave my config files alone?
> Or would that hamper the Server=plugin functionality?
> Regards,
> Maarten
>
Re: How to get Eclipse to publish somewhere else? [message #176695 is a reply to message #176665] Wed, 09 August 2006 14:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: avinh.verizon.net

Maarten,

The tmp0/webapps/myApp is your application. I copied the whole "myApp"
directory to the TOMCAT_HOME/webapps directory, then I restarted Tomcat
and the "myApp" Web Service application is recognized by Tomcat and can be
monitored by the manager/html page. To see the WSDL services page, you can
use a URL similar to the following:

http://localhost:8080/myApp/services

If you copy the whole test client application that was automatically
created by the Web Services Tool over to your Tomcat platform using the
same steps as described above (make sure all needed jar files are placed
in the myApp/WEB-INF/lib directory), you can then use the test client
application/JSP to test the "myApp" interface just like how it works
within Eclipse - this is how I've been testing my services.

I hope this works for you and others too - Alan

Maarten wrote:

> Thanks for the anwers, Larry and Darryl.
> I guess my next question is, how do I get eclipse to simply publish my
> webapp to a directory in CATALINA_BASE, and leave my config files alone?
> Or would that hamper the Server=plugin functionality?
> Regards,
> Maarten
Re: How to get Eclipse to publish somewhere else? [message #176743 is a reply to message #176695] Wed, 09 August 2006 21:48 Go to previous message
Eclipse UserFriend
Originally posted by: ssl.radium.jvb.tudelft.nl

Alright guys, thanks for the advice!
Maarten
Previous Topic:Tomcat 5.5 won't start (workspace corruption?)
Next Topic:Leveraging WST Server Tools for non web servers
Goto Forum:
  


Current Time: Thu Apr 25 20:09:34 GMT 2024

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

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

Back to the top