Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » can't access tomcat manager application when starting tomcat internally
can't access tomcat manager application when starting tomcat internally [message #186322] Tue, 16 January 2007 19:10 Go to next message
Chuck Irvine is currently offline Chuck IrvineFriend
Messages: 13
Registered: July 2009
Junior Member
versions
eclipse: 3.2
tomcat: 5.5.20
wtp: 1.5

If I start tomcat from within eclipse via the servers windows, I get 404
errors if I try to access any of the urls:
http://localhost:8080/
http://localhost:8080/manager/html
http://localhost:8080/admin

If I start tomcat from the command line with startup.bat, the same urls
give me the expected results, namely the welcome, manager, and admin
pages, respectively.

Is there a way to get access to these pages if tomcat is started from
within eclipse?

Thanks,
Chuck
Re: can't access tomcat manager application when starting tomcat internally [message #186374 is a reply to message #186322] Wed, 17 January 2007 13:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wknauf_NO_._INSIDE_hg-online.de

Hi Chuck,

WTP is using it's custom config files for starting and stopping tomcat, and the
webapp is run from ".metadata\.plugins\org.eclipse.wst.server.core\tmp0". So the
eclipse tomcat uses all the tomcat binaries, but the webapps from your tomcat
installation are ignored.
Even the config is not used, WTP brings it's own tomcat configuration in a
directory "Servers" in your workspace.

Take a look at the server settings (in the "servers view", select your Tomcat,
rightlick, "Open"). There is an option "Run modules directly from the
workspace". If you switch it off it should use your full tomcat installation (I
hope, never used it).

Best regards

Wolfgang

Chuck wrote:
> versions
> eclipse: 3.2
> tomcat: 5.5.20
> wtp: 1.5
>
> If I start tomcat from within eclipse via the servers windows, I get 404
> errors if I try to access any of the urls:
> http://localhost:8080/
> http://localhost:8080/manager/html
> http://localhost:8080/admin
>
> If I start tomcat from the command line with startup.bat, the same urls
> give me the expected results, namely the welcome, manager, and admin
> pages, respectively.
> Is there a way to get access to these pages if tomcat is started from
> within eclipse?
> Thanks,
> Chuck
>
Re: can't access tomcat manager application when starting tomcat internally [message #186381 is a reply to message #186374] Wed, 17 January 2007 13:50 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
To expand a little on what Wolfgang said, the default is to create a
Tomcat server instance separate from your installation. You can also
double-click the server in the Servers view to open the server editor
where you find the "Run modules directly..." option. To see where this
separate instance lives, click on the "Open launch configuration" link
in the server editor. In the launch configuration Properties dialog that
appears, switch to the Arguments tab and view the location by examining
the setting for catalina.base in the "VM arguments" field.

This separate instance gets an "empty" default/ROOT webapp. Since
directory listings are disabled by default in Tomcat 5.5.20, your first
URL results in a 404 error. The others give 404 errors because the
associated webapp isn't present by default in the new instance.

One important thing to note about unchecking the "Run modules
directly..." option is that the configuration files found under the
Servers project in your workspace become the "masters" for these files.
With the option unchecked, they will overwrite those in your Tomcat
installation each time the Tomcat server is started within Eclipse. Any
changes saved using the manager or admin webapps will be lost the next
time the Tomcat server is started in Eclipse.

Cheers,
Larry

Wolfgang Knauf wrote:
> Hi Chuck,
>
> WTP is using it's custom config files for starting and stopping tomcat,
> and the webapp is run from
> ".metadata\.plugins\org.eclipse.wst.server.core\tmp0". So the eclipse
> tomcat uses all the tomcat binaries, but the webapps from your tomcat
> installation are ignored.
> Even the config is not used, WTP brings it's own tomcat configuration in
> a directory "Servers" in your workspace.
>
> Take a look at the server settings (in the "servers view", select your
> Tomcat, rightlick, "Open"). There is an option "Run modules directly
> from the workspace". If you switch it off it should use your full tomcat
> installation (I hope, never used it).
>
> Best regards
>
> Wolfgang
>
> Chuck wrote:
>> versions
>> eclipse: 3.2
>> tomcat: 5.5.20
>> wtp: 1.5
>>
>> If I start tomcat from within eclipse via the servers windows, I get
>> 404 errors if I try to access any of the urls:
>> http://localhost:8080/
>> http://localhost:8080/manager/html
>> http://localhost:8080/admin
>>
>> If I start tomcat from the command line with startup.bat, the same
>> urls give me the expected results, namely the welcome, manager, and
>> admin pages, respectively.
>> Is there a way to get access to these pages if tomcat is started from
>> within eclipse?
>> Thanks,
>> Chuck
>>
Re: can't access tomcat manager application when starting tomcat internally [message #186416 is a reply to message #186381] Wed, 17 January 2007 18:22 Go to previous message
Chuck Irvine is currently offline Chuck IrvineFriend
Messages: 13
Registered: July 2009
Junior Member
Wolfgang, Larry,

Thanks for your help. I think I have it sorted out now.

Chuck

Larry Isaacs wrote:

> To expand a little on what Wolfgang said, the default is to create a
> Tomcat server instance separate from your installation. You can also
> double-click the server in the Servers view to open the server editor
> where you find the "Run modules directly..." option. To see where this
> separate instance lives, click on the "Open launch configuration" link
> in the server editor. In the launch configuration Properties dialog that
> appears, switch to the Arguments tab and view the location by examining
> the setting for catalina.base in the "VM arguments" field.

> This separate instance gets an "empty" default/ROOT webapp. Since
> directory listings are disabled by default in Tomcat 5.5.20, your first
> URL results in a 404 error. The others give 404 errors because the
> associated webapp isn't present by default in the new instance.

> One important thing to note about unchecking the "Run modules
> directly..." option is that the configuration files found under the
> Servers project in your workspace become the "masters" for these files.
> With the option unchecked, they will overwrite those in your Tomcat
> installation each time the Tomcat server is started within Eclipse. Any
> changes saved using the manager or admin webapps will be lost the next
> time the Tomcat server is started in Eclipse.

> Cheers,
> Larry

> Wolfgang Knauf wrote:
>> Hi Chuck,
>>
>> WTP is using it's custom config files for starting and stopping tomcat,
>> and the webapp is run from
>> ".metadata.pluginsorg.eclipse.wst.server.coretmp0". So the eclipse
>> tomcat uses all the tomcat binaries, but the webapps from your tomcat
>> installation are ignored.
>> Even the config is not used, WTP brings it's own tomcat configuration in
>> a directory "Servers" in your workspace.
>>
>> Take a look at the server settings (in the "servers view", select your
>> Tomcat, rightlick, "Open"). There is an option "Run modules directly
>> from the workspace". If you switch it off it should use your full tomcat
>> installation (I hope, never used it).
>>
>> Best regards
>>
>> Wolfgang
>>
>> Chuck wrote:
>>> versions
>>> eclipse: 3.2
>>> tomcat: 5.5.20
>>> wtp: 1.5
>>>
>>> If I start tomcat from within eclipse via the servers windows, I get
>>> 404 errors if I try to access any of the urls:
>>> http://localhost:8080/
>>> http://localhost:8080/manager/html
>>> http://localhost:8080/admin
>>>
>>> If I start tomcat from the command line with startup.bat, the same
>>> urls give me the expected results, namely the welcome, manager, and
>>> admin pages, respectively.
>>> Is there a way to get access to these pages if tomcat is started from
>>> within eclipse?
>>> Thanks,
>>> Chuck
>>>
Previous Topic:can't run a jsp page
Next Topic:API-only way to create dynamic web project using facets
Goto Forum:
  


Current Time: Fri Mar 29 06:15:23 GMT 2024

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

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

Back to the top