Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Error Configuring Tomcat in Eclipse(System cannot find path for conf/catalina.policy)
Error Configuring Tomcat in Eclipse [message #940307] Thu, 11 October 2012 14:13 Go to next message
Sreedhar Karadibhave is currently offline Sreedhar KaradibhaveFriend
Messages: 3
Registered: September 2012
Junior Member
I am trying to add Tomcat server (7.0.30) to eclipse 3.7.2. I want to run a SpringSource project in Tomcat. When rightclick on the Servers tab, add Tomcat 7 and Finish, I get the error - Could not load the Tomcat Server configuration at conf. The configuration may be corrupt or incomplete conf/catalina.policy The System cannot find the patch specified.

I checked catalina.policy at C:\apache-tomcat-7.0.30\conf\catalina.policy. It looks ok. I am not sure which enviroment variable eclipse looks at. I defined CATALINA_HOME, TOMCAT_ROOT, CATALINA_BASE all pointing to C:\apache-tomcat-7.0.30. Does it matter if they are user variables or system variables?
Thanks,
Sreedhar
Re: Error Configuring Tomcat in Eclipse [message #940388 is a reply to message #940307] Thu, 11 October 2012 15:36 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3265
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/11/2012 8:13 AM, Sreedhar Karadibhave wrote:
> I am trying to add Tomcat server (7.0.30) to eclipse 3.7.2. I want to
> run a SpringSource project in Tomcat. When rightclick on the Servers
> tab, add Tomcat 7 and Finish, I get the error - Could not load the
> Tomcat Server configuration at conf. The configuration may be corrupt or
> incomplete conf/catalina.policy The System cannot find the patch specified.
> I checked catalina.policy at
> C:\apache-tomcat-7.0.30\conf\catalina.policy. It looks ok. I am not sure
> which enviroment variable eclipse looks at. I defined CATALINA_HOME,
> TOMCAT_ROOT, CATALINA_BASE all pointing to C:\apache-tomcat-7.0.30. Does
> it matter if they are user variables or system variables?
> Thanks,
> Sreedhar

This question is more suitably asked in the Eclipse web tools platform
forum. I don't follow that forum any more so I'll answer here. I'm going
to need some help from you.

If you've wired Eclipse up to Tomcat, there shouldn't be any need to
deal with these environment variables. I think you're seeing this
through the eyes of Tomcat looking at Eclipse; instead, it's easier to
see Tomcat through Eclipse's eyes.

I'm not sure what you mean by "rightclick on the Servers tab". In
Eclipse, there's a Servers view. Is that what you mean? Adding Tomcat 7
isn't an option from that interface.

It may take some more information before I can grok what you've done and
where the disconnect is.

Usual steps:

1. Download Tomcat (you've done this).
2. Window -> Preferences -> Server -> Runtime Environments -> Add ...
browse to C:\apache-tomcat-7.0.30 and select.
3. File -> New -> Other... -> Server -> Server -> Apache -> Tomcat v7.0
Server, etc.

Then you can develop your application (File -> New -> Dynamic Web
Project, etc.).

To run your application, open the Servers view (yes, it's a tab in a
pane), you'll see Tomcat v7.0 Server at localhost, right-click it and
choose Add and Remove..., add your project, then right-click again and
choose Debug or Start.

Where in this are you? Where are things not working and what do they do?
Re: Error Configuring Tomcat in Eclipse [message #941634 is a reply to message #940388] Fri, 12 October 2012 18:29 Go to previous messageGo to next message
Sreedhar Karadibhave is currently offline Sreedhar KaradibhaveFriend
Messages: 3
Registered: September 2012
Junior Member
Thanks for your response. I was able to do step 1(already done), step 2. In Step 3, I get the error in my previous post at the final stage. To me it seems eclipse is not able to locate catalina.policy since it does not know the location of the tomcat install directory.
Re: Error Configuring Tomcat in Eclipse [message #941716 is a reply to message #941634] Fri, 12 October 2012 19:49 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3265
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/12/2012 12:29 PM, Sreedhar Karadibhave wrote:
> Thanks for your response. I was able to do step 1(already done), step 2.
> In Step 3, I get the error in my previous post at the final stage. To me
> it seems eclipse is not able to locate catalina.policy since it does not
> know the location of the tomcat install directory.

In this case, you would do better to ask in eclipse.wtp forum. Someone
there will likely understand what's wrong. At least you're pretty sure
to have things set up correctly.
Previous Topic:observing values of variables during debugging
Next Topic:Upgrade from Helios to Juno lost work history
Goto Forum:
  


Current Time: Fri Dec 19 04:54:47 GMT 2014

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

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