Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Could not load the Tomcat server configuration
Could not load the Tomcat server configuration [message #216564] Tue, 01 July 2008 22:13 Go to next message
Eclipse UserFriend
Originally posted by: cuco2772.gmail.com

at /usr/share/apache-tomcat-5.5.26/conf. The configuration may be corrupt
or
incomplete. Ugh, not this one again. This is from tomcat running in
eclipse.
I did have a tutorial working the other day. But yesterday I got a 404
error
doing something else. There was an option when starting the server to add
some
kind of debugging of the server. I checked that box, and from that point on
I started some kind of error "- debug ...no such argument" every time I
started
tomcat, even after I unchecked it and reconfigured that. It looked to be a
bug
within eclipse, as there was no problem starting tomcat outside of eclipse.
So I thought the best thing to do was delete the server and add it again.

But now when I right click on the server view and try to add a new server
it just
gives me this message, so now it can't add a new server.

This is a tough one, I'm willing to try anything at this point but I'm
starting to lose my patience with eclipse. Thanks
Re: Could not load the Tomcat server configuration [message #216627 is a reply to message #216564] Wed, 02 July 2008 16:11 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Adam Posner wrote:
> at /usr/share/apache-tomcat-5.5.26/conf. The configuration may be
> corrupt or
> incomplete. Ugh, not this one again. This is from tomcat running in
> eclipse.
> I did have a tutorial working the other day. But yesterday I got a 404
> error
> doing something else. There was an option when starting the server to
> add some
> kind of debugging of the server. I checked that box, and from that point on
> I started some kind of error "- debug ...no such argument" every time I
> started
> tomcat, even after I unchecked it and reconfigured that. It looked to be
> a bug
> within eclipse, as there was no problem starting tomcat outside of eclipse.

This sounds like a known issue in WTP 1.0.x (works with Eclipse 3.1.x)
and 1.5.x (works with Eclipse 3.2.x), which was fixed in WTP 2.0.x and
later. You posted about Eclipse 3.2.2 and Eclipse 3.4. Which
installation is this? I assume you are not using the same workspace
with both.

> So I thought the best thing to do was delete the server and add it again.
>
> But now when I right click on the server view and try to add a new
> server it just
> gives me this message, so now it can't add a new server.
>
> This is a tough one, I'm willing to try anything at this point but I'm
> starting to lose my patience with eclipse. Thanks
>

I would recommend for Tomcat use that you create a "development" Tomcat
server by exploding a Tomcat tar.gz under a "bin" or "opt" (or other
suitable name) folder under your home folder. That is the simplest way
create a Tomcat server known *not* to be configured for purposes other
than development. Packaged installations of Tomcat for Linux are often
not packaged with development as the primary purpose for the installation.

Cheers,
Larry
Re: Could not load the Tomcat server configuration [message #216643 is a reply to message #216627] Wed, 02 July 2008 18:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cuco2772.gmail.com

This was with eclipse 3.2.2 which I installed via apt-get with ubuntu,
then I used the feature within eclipse to install the WTP.
The tomcat is not the ubuntu packaged version, though.

Because I was having problems with this I decided to install a fresh
version
of eclipse 3.4 into my /home/cuco directory, the samew directory where I
have
apache-tomcat-6.0.16. I proceeded to configure that, and I discovered that
other problem I posted about not finding javax.servlet.

You mentioned the workspace. One worrisome thing is that both versions seem
to be using the workspace /home/cuco/workspace. Is this a problem ?
If so, how do I make the newer version of eclipse use a different
workspace ?
(in the older version - 3.2.2 - I tried to create a different workspace
once by
choosing another folder, but it didn't work) THanks
Re: Could not load the Tomcat server configuration [message #216651 is a reply to message #216643] Wed, 02 July 2008 20:38 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Adam Posner wrote:
> This was with eclipse 3.2.2 which I installed via apt-get with ubuntu,
> then I used the feature within eclipse to install the WTP.

I have to keep up with a number of different versions of Eclipse and
WTP, so I haven't bothered to do this in quite a while. It's hard to
know what decisions got made in the packaging and what side effects get
included as a result.

The tomcat is
> not the ubuntu packaged version, though.
>
> Because I was having problems with this I decided to install a fresh
> version
> of eclipse 3.4 into my /home/cuco directory, the samew directory where I
> have
> apache-tomcat-6.0.16. I proceeded to configure that, and I discovered that
> other problem I posted about not finding javax.servlet.

Answered separately. Let me know if it's still an issue.

>
> You mentioned the workspace. One worrisome thing is that both versions seem
> to be using the workspace /home/cuco/workspace. Is this a problem ?

Between "major" versions of Eclipse and WTP (By major, I mean 3.2 -> 3.3
-> 3.4, not 3.2.0 -> 3.2.1.), I don't believe there are guarantees of
backward compatibility of the metadata found under the ".metadata"
folder of your workspace. I think in theory you should be able to
migrate a workspace forward, i.e. 3.2.x -> 3.3, but it's hard to say
there won't be issues in certain situations. It's also hard to know if
there will be issues skipping over version in between, i.e. 3.2.x -> 3.4
skipping 3.3.x, in certain situations.

However, once the workspace has been "touched" by a newer version of
Eclipse and WTP, I would not assume that workspace can be used by the
earlier Eclipse and WTP. For example, there are new features in the
Tomcat support for WTP 2.0.x and 3.0. Use of those features results in
new values in metadata for the Tomcat support to which WTP 1.0.x and
1.5.x would likely not react well.

In general, I would recommend when upgrading to a new "major" version of
Eclipse to create a new workspace and import projects (including copying
the contents) that you want to continue to work on. That way the old
workspace remains intact in case there are issues.

> If so, how do I make the newer version of eclipse use a different
> workspace ?

In the distributions from eclipse.org (I don't know about packaged
Eclipses), a startup dialog appears by default and asks for which
workspace. You just point to a new location. You can create additional
workspaces by restarting Eclipse or executing File -> Switch Workspace.

> (in the older version - 3.2.2 - I tried to create a different workspace
> once by
> choosing another folder, but it didn't work) THanks
>

I would expect that putting the workspace(s) somewhere under your home
folder would always work.

Cheers,
Larry
Re: Could not load the Tomcat server configuration [message #216769 is a reply to message #216651] Thu, 03 July 2008 23:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cuco2772.gmail.com

I was thinking of just uninstalling the ubuntu packeged eclipse entirely,
now that I seem to have Ganymede working. Since they both appear to be
using the home/cuco/workspace workspace, would that possible cause problems
for Ganymede if continue to use that workspace in Ganymede ?

Just to be clear on the workspace thing, can I just create a folder in my
home directory, and then when I start eclipse, then choose that directory
as the workspace ? I wasn't able to create another folder for a different
workspace before in eclipse 3.2.2. (when I did that it wouldn't create it,
it
would just use the same workspace)
Re: Could not load the Tomcat server configuration [message #216921 is a reply to message #216769] Mon, 07 July 2008 12:59 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Adam Posner wrote:
> I was thinking of just uninstalling the ubuntu packeged eclipse entirely,
> now that I seem to have Ganymede working. Since they both appear to be
> using the home/cuco/workspace workspace, would that possible cause problems
> for Ganymede if continue to use that workspace in Ganymede ?

As long as you use the workspace with Ganymede, you may be okay.

>
> Just to be clear on the workspace thing, can I just create a folder in my
> home directory, and then when I start eclipse, then choose that directory
> as the workspace ?

I believe you can just type a path to a new workspace in the dialog.
Eclipse should create it, if it doesn't already exist.

> I wasn't able to create another folder for a different
> workspace before in eclipse 3.2.2. (when I did that it wouldn't create
> it, it
> would just use the same workspace)
>

I don't have an explanation for that behavior. Maybe it's something to
do with how Eclipse was packaged.

Cheers,
Larry
Previous Topic:running 2 projects without stopping tomcat
Next Topic:Using Tomcat plugin standalone
Goto Forum:
  


Current Time: Fri Apr 19 16:17:28 GMT 2024

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

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

Back to the top