Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse with WTP and Tomcat on Mac
Eclipse with WTP and Tomcat on Mac [message #173246] Thu, 06 July 2006 04:37 Go to next message
Eclipse User
Originally posted by: andre.matos.sympatico.ca

Hi,

I have installed Tomcat 5.5.17 on my iMac running Mac OS X 10.4.7 and
starting the server when I start the computer.

I downloaded the Eclipse 3.2 with the WTP 1.5 and I followed the tutorial
"WTP Tutorials ­ Building and Running a Web Application" at
http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2E
EWebApp.html.

When I start the server, I got an error saying that the server is already
running. (I have setup the server to startup with the Mac OS X as I
mentioned above). So, I need to manually shutdown the Tomcat to make it
works. Is there another way to make Eclipse to understand this?

Why Eclipse use a temporary folder inside my workspace to upload my
application instead of deploying it into the Tomcat webapps? Is there any
way to make the Eclipse use the webapps from the Tomcat?

Thanks for any help.

Andre
Re: Eclipse with WTP and Tomcat on Mac [message #173345 is a reply to message #173246] Thu, 06 July 2006 13:34 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
Andre Matos wrote:
> Hi,
>
> I have installed Tomcat 5.5.17 on my iMac running Mac OS X 10.4.7 and
> starting the server when I start the computer.
>
> I downloaded the Eclipse 3.2 with the WTP 1.5 and I followed the tutorial
> "WTP Tutorials ­ Building and Running a Web Application" at
> http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2E
> EWebApp.html.
>
> When I start the server, I got an error saying that the server is already
> running. (I have setup the server to startup with the Mac OS X as I
> mentioned above). So, I need to manually shutdown the Tomcat to make it
> works. Is there another way to make Eclipse to understand this?

A better alternative is to change the port numbers being used by the
Eclipse Tomcat so it and your installed server can both run
simultaneously without conflict. Double-click on the Tomcat server in
the Servers view and in the configuration editor that appears, modify
the port numbers in the Ports section of the Server Overview page, and
then save.

>
> Why Eclipse use a temporary folder inside my workspace to upload my
> application instead of deploying it into the Tomcat webapps?

The assumption is that your installed Tomcat may have uses other than
for development. Thus, the default behavior is to create an Eclipse
Tomcat server that doesn't alter or interfere with your installed Tomcat
server. The only restriction is that you what to use them both
simultaneously, you will need to modify port numbers so they do not
conflict.

> Is there any
> way to make the Eclipse use the webapps from the Tomcat?

On the Server Overview page of the configuration editor, uncheck the
"Run modules directly from the workspace (do not modify the Tomcat
installation)" option and then save. That will make the Tomcat server
in Eclipse set "catalina.base" to point to your installation. However,
this has significant side effect. The Tomcat server in Eclipse now
"owns" your Tomcat installation. When you add projects to the server,
the Web Tools Tomcat support modifies the server.xml found under the
Servers project in your workspace. When you start the Tomcat server
within Eclipse, that server.xml will *overwrite* the server.xml in your
installation. Thus, the server.xml in the Servers project is the
"master". The same is true for the other files found under the Servers
project. Changes you make directly to your installation could get
stepped on the next time you start the server from Eclipse.

If this side effect is too undesirable, you can use a tar.gz to install
a second "development" copy of Tomcat and have Eclipse use that one and
leave your original Tomcat installation untouched. This is what having
"Run modules directly..." checked tries to do to a certain degree
without having that second copy of Tomcat. You still need to modify
port numbers to avoid conflicts.

Cheers,
Larry

>
> Thanks for any help.
>
> Andre
>
Re: Eclipse with WTP and Tomcat on Mac [message #173407 is a reply to message #173345] Thu, 06 July 2006 16:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: andre.matos.sympatico.ca

Larry, thanks a lot for your help.

I will do some tests regarding the start/stop tomcat using Eclipse.

Now, regarding the Tomcat webapps folder: Because I am using the tomcat
server only for development and also using only Eclipse to deploy the
application. Plus, I am the only one using this structure, so I don't see a
big problem here. What do you think?

Thanks again.

Andre


On 7/6/06 9:34 AM, in article e8j3hu$vdc$1@utils.eclipse.org, "Larry Isaacs"
<Larry.Isaacs@sas.com> wrote:

> Andre Matos wrote:
>> Hi,
>>
>> I have installed Tomcat 5.5.17 on my iMac running Mac OS X 10.4.7 and
>> starting the server when I start the computer.
>>
>> I downloaded the Eclipse 3.2 with the WTP 1.5 and I followed the tutorial
>> "WTP Tutorials ­ Building and Running a Web Application" at
>> http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2E
>> EWebApp.html.
>>
>> When I start the server, I got an error saying that the server is already
>> running. (I have setup the server to startup with the Mac OS X as I
>> mentioned above). So, I need to manually shutdown the Tomcat to make it
>> works. Is there another way to make Eclipse to understand this?
>
> A better alternative is to change the port numbers being used by the
> Eclipse Tomcat so it and your installed server can both run
> simultaneously without conflict. Double-click on the Tomcat server in
> the Servers view and in the configuration editor that appears, modify
> the port numbers in the Ports section of the Server Overview page, and
> then save.
>
>>
>> Why Eclipse use a temporary folder inside my workspace to upload my
>> application instead of deploying it into the Tomcat webapps?
>
> The assumption is that your installed Tomcat may have uses other than
> for development. Thus, the default behavior is to create an Eclipse
> Tomcat server that doesn't alter or interfere with your installed Tomcat
> server. The only restriction is that you what to use them both
> simultaneously, you will need to modify port numbers so they do not
> conflict.
>
>> Is there any
>> way to make the Eclipse use the webapps from the Tomcat?
>
> On the Server Overview page of the configuration editor, uncheck the
> "Run modules directly from the workspace (do not modify the Tomcat
> installation)" option and then save. That will make the Tomcat server
> in Eclipse set "catalina.base" to point to your installation. However,
> this has significant side effect. The Tomcat server in Eclipse now
> "owns" your Tomcat installation. When you add projects to the server,
> the Web Tools Tomcat support modifies the server.xml found under the
> Servers project in your workspace. When you start the Tomcat server
> within Eclipse, that server.xml will *overwrite* the server.xml in your
> installation. Thus, the server.xml in the Servers project is the
> "master". The same is true for the other files found under the Servers
> project. Changes you make directly to your installation could get
> stepped on the next time you start the server from Eclipse.
>
> If this side effect is too undesirable, you can use a tar.gz to install
> a second "development" copy of Tomcat and have Eclipse use that one and
> leave your original Tomcat installation untouched. This is what having
> "Run modules directly..." checked tries to do to a certain degree
> without having that second copy of Tomcat. You still need to modify
> port numbers to avoid conflicts.
>
> Cheers,
> Larry
>
>>
>> Thanks for any help.
>>
>> Andre
>>

--
Andre Matos
andre.matos@sympatico.ca
Re: Eclipse with WTP and Tomcat on Mac [message #173415 is a reply to message #173407] Thu, 06 July 2006 17:01 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1310
Registered: July 2009
Senior Member
If the side effect doesn't represent a problem, then having "Run modules
directly..." unchecked is fine.

Note that the WTP Tomcat support always publishes to the "webapps"
folder (something I hope to fix in WTP 2.0). The question is which
"webapps" folder, as determined by where the catalina.base System
property points (equivalent to the CATALINA_BASE variable used in the
batch files). With "Run Modules..." checked it points to an "internal"
location under "<workspace>/.metadata/...", allowing multiple server
instances to be created. When "Run Modules..." is unchecked,
catalina.base points to your Tomcat installation.

Cheers,
Larry


Andre Matos wrote:
> Larry, thanks a lot for your help.
>
> I will do some tests regarding the start/stop tomcat using Eclipse.
>
> Now, regarding the Tomcat webapps folder: Because I am using the tomcat
> server only for development and also using only Eclipse to deploy the
> application. Plus, I am the only one using this structure, so I don't see a
> big problem here. What do you think?
>
> Thanks again.
>
> Andre
>
>
> On 7/6/06 9:34 AM, in article e8j3hu$vdc$1@utils.eclipse.org, "Larry Isaacs"
> <Larry.Isaacs@sas.com> wrote:
>
>> Andre Matos wrote:
>>> Hi,
>>>
>>> I have installed Tomcat 5.5.17 on my iMac running Mac OS X 10.4.7 and
>>> starting the server when I start the computer.
>>>
>>> I downloaded the Eclipse 3.2 with the WTP 1.5 and I followed the tutorial
>>> "WTP Tutorials ­ Building and Running a Web Application" at
>>> http://www.eclipse.org/webtools/community/tutorials/BuildJ2E EWebApp/BuildJ2E
>>> EWebApp.html.
>>>
>>> When I start the server, I got an error saying that the server is already
>>> running. (I have setup the server to startup with the Mac OS X as I
>>> mentioned above). So, I need to manually shutdown the Tomcat to make it
>>> works. Is there another way to make Eclipse to understand this?
>> A better alternative is to change the port numbers being used by the
>> Eclipse Tomcat so it and your installed server can both run
>> simultaneously without conflict. Double-click on the Tomcat server in
>> the Servers view and in the configuration editor that appears, modify
>> the port numbers in the Ports section of the Server Overview page, and
>> then save.
>>
>>> Why Eclipse use a temporary folder inside my workspace to upload my
>>> application instead of deploying it into the Tomcat webapps?
>> The assumption is that your installed Tomcat may have uses other than
>> for development. Thus, the default behavior is to create an Eclipse
>> Tomcat server that doesn't alter or interfere with your installed Tomcat
>> server. The only restriction is that you what to use them both
>> simultaneously, you will need to modify port numbers so they do not
>> conflict.
>>
>>> Is there any
>>> way to make the Eclipse use the webapps from the Tomcat?
>> On the Server Overview page of the configuration editor, uncheck the
>> "Run modules directly from the workspace (do not modify the Tomcat
>> installation)" option and then save. That will make the Tomcat server
>> in Eclipse set "catalina.base" to point to your installation. However,
>> this has significant side effect. The Tomcat server in Eclipse now
>> "owns" your Tomcat installation. When you add projects to the server,
>> the Web Tools Tomcat support modifies the server.xml found under the
>> Servers project in your workspace. When you start the Tomcat server
>> within Eclipse, that server.xml will *overwrite* the server.xml in your
>> installation. Thus, the server.xml in the Servers project is the
>> "master". The same is true for the other files found under the Servers
>> project. Changes you make directly to your installation could get
>> stepped on the next time you start the server from Eclipse.
>>
>> If this side effect is too undesirable, you can use a tar.gz to install
>> a second "development" copy of Tomcat and have Eclipse use that one and
>> leave your original Tomcat installation untouched. This is what having
>> "Run modules directly..." checked tries to do to a certain degree
>> without having that second copy of Tomcat. You still need to modify
>> port numbers to avoid conflicts.
>>
>> Cheers,
>> Larry
>>
>>> Thanks for any help.
>>>
>>> Andre
>>>
>
Previous Topic:Tomcat Server oroblem with Eclipse
Next Topic:Unknown Tag (c:out) error in JSP editor
Goto Forum:
  


Current Time: Sat Oct 25 16:56:14 GMT 2014

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

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