Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » improvements to "could not load the tomcat server configuration" message on linux
improvements to "could not load the tomcat server configuration" message on linux [message #555372] Thu, 26 August 2010 08:56 Go to next message
Mike Wilson is currently offline Mike Wilson
Messages: 7
Registered: July 2009
Junior Member
There are a couple of gotchas one needs to solve when using WTP with Tomcat on Linux. One of them is when you are trying to create a new WTP server pointing to an operating system install of Tomcat:

  • Servers View > New > Server
  • Specify /usr/share/tomcat6
  • Error: "Could not load the Tomcat server configuration at /usr/share/tomcat6/conf. The configuration may be corrupt or incomplete."

In this case the error is raised because of a permission problem; tomcat-users.xml is accessible by root only so it cannot be copied to the Servers project. The error message doesn't make this easy to identify though. To avoid people getting stuck on this there could be improvements to how WTP deals with the situation:

Report that the cause is a permission problem with tomcat-users.xml.

-or-

Generate a default tomcat-users.xml instead of copying the original one.

What do you think?
(Or should this rather be raised on wtp-dev or bugzilla?)
Re: improvements to "could not load the tomcat server configuration" message on linux [message #555437 is a reply to message #555372] Thu, 26 August 2010 11:03 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1287
Registered: July 2009
Senior Member
On 8/26/2010 8:56 AM, Mike Wilson wrote:
> There are a couple of gotchas one needs to solve when using WTP with
> Tomcat on Linux. One of them is when you are trying to create a new WTP
> server pointing to an operating system install of Tomcat:
>
> Servers View > New > Server
> Specify /usr/share/tomcat6
> Error: "Could not load the Tomcat server configuration at
> /usr/share/tomcat6/conf. The configuration may be corrupt or incomplete."
>
> In this case the error is raised because of a permission problem;
> tomcat-users.xml is accessible by root only so it cannot be copied to
> the Servers project. The error message doesn't make this easy to
> identify though. To avoid people getting stuck on this there could be
> improvements to how WTP deals with the situation:
>
> Report that the cause is a permission problem with tomcat-users.xml.
>
> -or-
>
> Generate a default tomcat-users.xml instead of copying the original one.
>
> What do you think?
> (Or should this rather be raised on wtp-dev or bugzilla?)

Recent versions of WTP should have given you a clue about this after
clicking the Details button. Unfortunately, you would not get this
opportunity when creating a default server when defining the Tomcat runtime.

Feel free to review Bug 107386[1] and add yourself to the CC.
Unfortunately, I don't believe implementing a true fix has gotten any
easier with current versions of WTP. Given that using a packaged Tomcat
for the development Tomcat server in Eclipse isn't recommended due to
these kind of issues, and the difficulty of the fix, fixing this isn't
very high on the priority list.

Cheers,
Larry


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=107386
Previous Topic:How to set the default values of Web service preference page using codes
Next Topic:API class changed by WS Client code generation
Goto Forum:
  


Current Time: Sat Apr 19 13:25:32 EDT 2014

Powered by FUDForum. Page generated in 0.06762 seconds