Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » How does eclipse WTP map directories?
How does eclipse WTP map directories? [message #172478] Tue, 27 June 2006 09:34 Go to next message
Eclipse UserFriend
Originally posted by: thangdang.hotmail.co.uk

Hi,

Normally, if I want to deploy a web app / web service, I have to put it
under $CATALINA_HOME/webapps. However, if I use eclipse WTP to develop a
web app / web service, the project folder can be placed anywhere. I
believe that Eclipse maps that folder into a folder under tomcat
environment. How could I do something similar to that? For example, a
directory c:\myproj which after deploying can be accessed via
localhost:8080/myproj (tomcat located at c:\tomcat)

Many thanks in advance.
Re: How does eclipse WTP map directories? [message #172491 is a reply to message #172478] Tue, 27 June 2006 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Minh,

see my reply to your other post: WTP deploys webapps by default to a folder in
your workspace:
" .metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ YourWebApp "

You can modify the server settings to run it from the server installation (in
the "Servers" view open your tomcat server and uncheck the option "Run modules
directly from the workspace"), but I do not have experience with this feature.

Hope this helps

Wolfgang

Minh Thang Dang wrote:
> Hi,
>
> Normally, if I want to deploy a web app / web service, I have to put it
> under $CATALINA_HOME/webapps. However, if I use eclipse WTP to develop a
> web app / web service, the project folder can be placed anywhere. I
> believe that Eclipse maps that folder into a folder under tomcat
> environment. How could I do something similar to that? For example, a
> directory c:\myproj which after deploying can be accessed via
> localhost:8080/myproj (tomcat located at c:\tomcat)
>
> Many thanks in advance.
Re: How does eclipse WTP map directories? [message #172580 is a reply to message #172491] Tue, 27 June 2006 21:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thangdang.hotmail.co.uk

Hi,

Thanks. It's interesting to know that setting. However, you've
misunderstood me. My question meant "what mechanism does eclipse use so
that it doesn't have to modify the server setting?" As I know, to map a
hard-disk directory into a directory under server environment (e.g. c:\dir
--> localhost/dir), we have to add a context path to
$CATALINA_HOME/conf/server.xml. But eclipse does not do so.

I think eclipse makes use of tomcat runtime environment (or the like) to
create its own web container within its workspace. Am I right?

Cheers.

On Tue, 27 Jun 2006 12:02:12 +0200, Wolfgang Knauf wrote:

> Hi Minh,
>
> see my reply to your other post: WTP deploys webapps by default to a
> folder in your workspace:
> " .metadata\.plugins\org.eclipse.wst.server.core\tmp0\webapps\ YourWebApp "
>
> You can modify the server settings to run it from the server
> installation (in the "Servers" view open your tomcat server and uncheck
> the option "Run modules directly from the workspace"), but I do not have
> experience with this feature.
>
> Hope this helps
>
> Wolfgang
>
> Minh Thang Dang wrote:
>> Hi,
>>
>> Normally, if I want to deploy a web app / web service, I have to put it
>> under $CATALINA_HOME/webapps. However, if I use eclipse WTP to develop
>> a web app / web service, the project folder can be placed anywhere. I
>> believe that Eclipse maps that folder into a folder under tomcat
>> environment. How could I do something similar to that? For example, a
>> directory c:\myproj which after deploying can be accessed via
>> localhost:8080/myproj (tomcat located at c:\tomcat)
>>
>> Many thanks in advance.
Re: How does eclipse WTP map directories? [message #172595 is a reply to message #172580] Wed, 28 June 2006 14:07 Go to previous message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Minh,

I'm not the WTP guru, so in some parts I can just guess or cannot help at all,
but I will try.
Normally eclipse creates it's own tomcat configuration and starts the tomcat
installed on your hard disc using this configuration. If you add a server to the
server view it will create a pseudo project in a section "Servers" in the
Project Exlorer. This server contains all required tomcat configuration files
(server.xml and others), and the project can be found in your workplace.

Hope this helps

Best regards

Wolfgang

Minh Thang Dang wrote:
> Hi,
>
> Thanks. It's interesting to know that setting. However, you've
> misunderstood me. My question meant "what mechanism does eclipse use so
> that it doesn't have to modify the server setting?" As I know, to map a
> hard-disk directory into a directory under server environment (e.g. c:\dir
> --> localhost/dir), we have to add a context path to
> $CATALINA_HOME/conf/server.xml. But eclipse does not do so.
>
> I think eclipse makes use of tomcat runtime environment (or the like) to
> create its own web container within its workspace. Am I right?
>
> Cheers.
>
>
Previous Topic:Validating .jspf files
Next Topic:Deploy web services ???
Goto Forum:
  


Current Time: Fri Dec 19 12:24:50 GMT 2014

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

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