Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Cannot launch Tomcat
Cannot launch Tomcat [message #182333] Tue, 07 November 2006 22:06 Go to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

I am running eclipse 3.2.1, wtp 1.5.2 on win XP. When I try to launch a
Tomcat 5.5.20 runtime from eclipse it does not run, I have this error:
ATTENTION: Can't load server.xml from
C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1\conf\server.xml
7 nov. 2006 22:56:53 org.apache.catalina.startup.Catalina load
ATTENTION: Can't load server.xml from
C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1\conf\server.xml
7 nov. 2006 22:56:53 org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
etc...

Tomcat can be run normally outside of eclipse.

Previous install with wtp 1.5.1 did it.

Is there a known solution?

Steph
Re: Cannot launch Tomcat [message #182342 is a reply to message #182333] Tue, 07 November 2006 22:55 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
I don't have any problems with Tomcat 5.5.20. Does the server.xml at
the location indicated look valid? Does this same problem occur with no
webapps added to the server?

Cheers,
Larry

Step wrote:
>
>
>
> I am running eclipse 3.2.1, wtp 1.5.2 on win XP. When I try to launch a
> Tomcat 5.5.20 runtime from eclipse it does not run, I have this error:
> ATTENTION: Can't load server.xml from
> C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1\conf\server.xml
>
> 7 nov. 2006 22:56:53 org.apache.catalina.startup.Catalina load
> ATTENTION: Can't load server.xml from
> C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1\conf\server.xml
>
> 7 nov. 2006 22:56:53 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 0 ms
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> etc...
>
> Tomcat can be run normally outside of eclipse.
>
> Previous install with wtp 1.5.1 did it.
> Is there a known solution?
>
> Steph
>
Re: Cannot launch Tomcat [message #182382 is a reply to message #182342] Wed, 08 November 2006 19:40 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

Hi,

There is no webapp project tied to the server
The directory ../tmp1 is empty
I don't know why, eclipse creates a servers project with a server.xml file
in it.

Today I tried to execute the publish command (publishing nothing) on this
server, and after it launch.
If I close the mysterious Servers project, it doesn't.
Neither if I reopen it. I have to publish (nothing) to make it able to
launch.
Strange...

Steph,
Re: Cannot launch Tomcat [message #182389 is a reply to message #182382] Wed, 08 November 2006 20:37 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
The four Tomcat configuration files are imported into the workspace
under the Servers project so that you can have independent copies of
these files that can be modified without impacting nor be impacted by a
running server. It also allows you to have multiple Tomcat servers
defined using a single Tomcat installation. This does mean that the
Servers project must be open to interact with the Tomcat server(s)
successfully.

I don't have an explanation as to why "tmp1" is empty. If WTP could
create "tmp1", it should be able to create "conf" and "server.xml" along
with the others when the server is started. Is there anything in the
Error Log view that relates to unsuccessful publishing?

Cheers,
Larry

Steph wrote:
>
>
> Hi,
>
> There is no webapp project tied to the server
> The directory ../tmp1 is empty
> I don't know why, eclipse creates a servers project with a server.xml
> file in it.
>
> Today I tried to execute the publish command (publishing nothing) on
> this server, and after it launch.
> If I close the mysterious Servers project, it doesn't.
> Neither if I reopen it. I have to publish (nothing) to make it able to
> launch.
> Strange...
>
> Steph,
>
Re: Cannot launch Tomcat [message #182798 is a reply to message #182389] Wed, 15 November 2006 18:37 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

Hi Larry,



How can I define several servers from the files of the Servers project?
Does these files update running Tomcat 's one if I publish?

About the launching problem:
-When I create a new Tomcat 5.5 runtime and server.
-A Servers project is created and opened.
-Then I try to launch it, I get a
Can't load server.xml from
C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp0\conf\server.xml

error
-In error log:
eclipse.buildId=M20060921-0945
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Wed Nov 15 19:24:05 CET 2006
Server Tomcat v5.5 Server @ localhost failed to start.

-To launch the server I have to publish to the server
-After it starts
-But, if I try to connect me: http://localhost:8080/, I get a tomcat 404
error.
-The same server works normally when I start it outside of eclipse.

The console log:
15 nov. 2006 19:33:02 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path: C:\Program
Files\Java\jdk1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\W INDOWS\system32\nls;C:\WINDOWS\system32\nls\FRANCAIS;C:\Prog ram
Files\Novell\ZENworks\;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program
Files\sysinternals\TcpView;C:\Program Files\sysinternals\ProcessExplorer
15 nov. 2006 19:33:02 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
15 nov. 2006 19:33:02 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 718 ms
15 nov. 2006 19:33:02 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
15 nov. 2006 19:33:02 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
15 nov. 2006 19:33:02 org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
15 nov. 2006 19:33:03 org.apache.coyote.http11.Http11BaseProtocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
15 nov. 2006 19:33:03 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
15 nov. 2006 19:33:03 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47 config=null
15 nov. 2006 19:33:03 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
15 nov. 2006 19:33:03 org.apache.catalina.startup.Catalina start
INFO: Server startup in 985 ms

-Nothing in error log.

Does somebody else have same problem?

Regards,
Steph.
Re: Cannot launch Tomcat [message #182811 is a reply to message #182798] Wed, 15 November 2006 20:39 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
I have heard of this problem with respect to Tomcat, but not in the
context of WTP. It is usually a permissions problem, typically on *nix
systems, which doesn't seem likely in your case. I would guess that the
most likely culprit for this behavior is that your installed Tomcat
contains customizations that makes servers created from it in Eclipse
require customization as well before they can run. I would recommend
doing the following to test this theory. It would also be useful even
if you know you haven't customized Tomcat, since it will help remove
some of the variables from the equation.

Create a new Zip install of Tomcat 5.5 on your system. In Eclipse,
create a new runtime from this install and then a new server from the
new runtime. Then see if you can get the new server to run. If it runs
and you are aware of customizations, then you will need to either remove
those customizations from that server.xml or add the customizations to
the ".metadata/.../tmp?" for that server.

Cheers,
Larry

Steph wrote:
>
> Hi Larry,
>
>
>
> How can I define several servers from the files of the Servers project?

You can create multiple servers from the same runtime in the Servers
view and each server will create a new subfolder under the Servers
project for its set of configuration files.

> Does these files update running Tomcat 's one if I publish?

Yes

>
> About the launching problem:
> -When I create a new Tomcat 5.5 runtime and server.
> -A Servers project is created and opened.
> -Then I try to launch it, I get a Can't load server.xml from
> C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp0\conf\server.xml
>
>
> error
> -In error log:
> eclipse.buildId=M20060921-0945
> java.version=1.5.0_09
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
> Command-line arguments: -os win32 -ws win32 -arch x86
>
> Error
> Wed Nov 15 19:24:05 CET 2006
> Server Tomcat v5.5 Server @ localhost failed to start.
>
> -To launch the server I have to publish to the server
> -After it starts
> -But, if I try to connect me: http://localhost:8080/, I get a tomcat 404
> error.
> -The same server works normally when I start it outside of eclipse.
>
> The console log:
> 15 nov. 2006 19:33:02 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
> INFO: The Apache Tomcat Native library which allows optimal performance
> in production environments was not found on the java.library.path:
> C:\Program
> Files\Java\jdk1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\W INDOWS\system32\nls;C:\WINDOWS\system32\nls\FRANCAIS;C:\Prog ram
> Files\Novell\ZENworks\;C:\Program Files\Java\jdk1.5.0_09\bin;C:\Program
> Files\sysinternals\TcpView;C:\Program Files\sysinternals\ProcessExplorer
> 15 nov. 2006 19:33:02 org.apache.coyote.http11.Http11BaseProtocol init
> INFO: Initialisation de Coyote HTTP/1.1 sur http-8080
> 15 nov. 2006 19:33:02 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 718 ms
> 15 nov. 2006 19:33:02 org.apache.catalina.core.StandardService start
> INFO: Démarrage du service Catalina
> 15 nov. 2006 19:33:02 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
> 15 nov. 2006 19:33:02 org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> 15 nov. 2006 19:33:03 org.apache.coyote.http11.Http11BaseProtocol start
> INFO: Démarrage de Coyote HTTP/1.1 sur http-8080
> 15 nov. 2006 19:33:03 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 15 nov. 2006 19:33:03 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/47 config=null
> 15 nov. 2006 19:33:03 org.apache.catalina.storeconfig.StoreLoader load
> INFO: Find registry server-registry.xml at classpath resource
> 15 nov. 2006 19:33:03 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 985 ms
>
> -Nothing in error log.
> Does somebody else have same problem?
>
> Regards,
> Steph.
>
>
>
Re: Cannot launch Tomcat [message #182858 is a reply to message #182811] Thu, 16 November 2006 09:50 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

Hi Larry,

I didn't make customization. It's running on Win XP. The only thing is
maybe that instead of running the Tomcat install wizard, I have just done
a manual install unzipping the Tomcat archive.
Thus i will Investigate your hypothesis.


Thanks for your help.
Re: Cannot launch Tomcat [message #182932 is a reply to message #182858] Sun, 19 November 2006 17:28 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

Hi,

I re-installed wtp 1.5.3, and the former problem mysteriously disapeared.
But now, why I lanch Tomcat I get:

Sun Nov 19 18:10:59 CET 2006
The archive: /CATALINA_HOME/bin/bootstrap.jar which is referenced by the
classpath, does not exist.

Arguments of the launch configuration are:

-Dcatalina.base=" C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1 "
-Dcatalina.home="C:\apache\apache-tomcat-5.5.20"
-Djava.endorsed.dirs="C:\apache\apache-tomcat-5.5.20\common\endorsed "

CATALINA_HOME is right.
Tomcat installation is fine and run normally outside of eclipse.
I am not sure but I am wondering if CATALINA_BASE replace CATALINA_HOME
when specified.
It's impossible to modify launching arguments!

Some help?

Steph,
Reagards.
Re: Cannot launch Tomcat [message #182960 is a reply to message #182932] Mon, 20 November 2006 14:15 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
I'd recommend trying a new workspace and seeing what happens. I have no
idea why "CATALINA_HOME" would appear in the path for bootstrap.jar. It
should never appear relative to the Tomcat support in Web Tools since
that is a batch file variable and Tomcat plug-in doesn't use the Tomcat
batch files in any way.

Cheers,
Larry

Step wrote:
>
> Hi,
>
> I re-installed wtp 1.5.3, and the former problem mysteriously disapeared.
> But now, why I lanch Tomcat I get:
>
> Sun Nov 19 18:10:59 CET 2006
> The archive: /CATALINA_HOME/bin/bootstrap.jar which is referenced by the
> classpath, does not exist.
>
> Arguments of the launch configuration are:
>
> -Dcatalina.base=" C:\callisto\workspaces\default\.metadata\.plugins\org.eclips e.wst.server.core\tmp1 "
> -Dcatalina.home="C:\apache\apache-tomcat-5.5.20"
> -Djava.endorsed.dirs="C:\apache\apache-tomcat-5.5.20\common\endorsed "
>
> CATALINA_HOME is right.
> Tomcat installation is fine and run normally outside of eclipse.
> I am not sure but I am wondering if CATALINA_BASE replace CATALINA_HOME
> when specified.
> It's impossible to modify launching arguments!
>
> Some help?
>
> Steph, Reagards.
>
>
>
>
>
Re: Cannot launch Tomcat [message #183021 is a reply to message #182960] Tue, 21 November 2006 14:16 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

Thaks Larry,

I will try with another workspace.

But why launch configuration arguments cannot be modified?

There is a bootstrap.jar at /CATALINA_HOME/bin/bootstrap.jar on my system.
Why wtp doesn't find it?

Does exist some documentation on these aspects?

Regards,
Re: Cannot launch Tomcat [message #183035 is a reply to message #182960] Tue, 21 November 2006 16:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

You where right Larry. I tried to create and launch a tomcat server in a
new workspace and it works.

In the first workspace, where it doesn't, if I delete tomcat server and
runtimes. When I create a new runtime wtp propose the right tomcat home
directory. It seems the former tomcat runtime has been stored somewhere.

What could I do?

Cheers.
Stephane.
Re: Cannot launch Tomcat [message #183050 is a reply to message #183021] Tue, 21 November 2006 18:00 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
Do you mean there is a directory actually named "CATALINA_HOME" on your
system? The syntax you cite doesn't appear to me to imply any
substitution for CATALINA_HOME. It also isn't clear why you would want
to specify a bootstrap.jar different from the one the Tomcat support
supplies in the launch configuration. What are you looking to
accomplish by changing it?

Cheers,
Larry


Steph wrote:
>
> Thaks Larry,
>
> I will try with another workspace.
>
> But why launch configuration arguments cannot be modified?
>
> There is a bootstrap.jar at /CATALINA_HOME/bin/bootstrap.jar on my system.
> Why wtp doesn't find it?
>
> Does exist some documentation on these aspects?
>
> Regards,
>
Re: Cannot launch Tomcat [message #183058 is a reply to message #183035] Tue, 21 November 2006 18:05 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
I'm sorry, but it's not clear to me when you say "the former tomcat
runtime has been stored somewhere" what you are implying. Are you
saying that the new Tomcat runtimes and servers still do not work in the
first workspace?

Larry

Steph wrote:
>
> You where right Larry. I tried to create and launch a tomcat server in a
> new workspace and it works.
> In the first workspace, where it doesn't, if I delete tomcat server and
> runtimes. When I create a new runtime wtp propose the right tomcat home
> directory. It seems the former tomcat runtime has been stored somewhere.
>
> What could I do?
>
> Cheers.
> Stephane.
>
Re: Cannot launch Tomcat [message #183066 is a reply to message #183058] Tue, 21 November 2006 22:14 Go to previous messageGo to next message
Eclipse User
Originally posted by: stephane_cauvi.yahoo.fr

In the first workspace, tomcat did not run. I deleted the server and the
runtime.

When I created a new runtime, wtp default tomcat home was set to the
directory of the deleted runtime. So it must have been stored somewhere.

In a new workspace, tomcat run. I suppose that something related to the
runtime and stored in the first workspace caused the problem.

Steph.
Re: Cannot launch Tomcat [message #183082 is a reply to message #183066] Tue, 21 November 2006 23:18 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1307
Registered: July 2009
Senior Member
You could try deleting the servers and runtimes. Also delete any Apache
Tomcat launch configurations under Run->Run... and configuration folders
under the Servers project in your workspace. Finally, delete everything
under ".metadata\.plugins\org.eclipse.wst.server.core". That should
clean out any stale internal data and get you pretty close to what you
would get in a fresh workspace. After recreating the runtime(s) and
server(s), double check your projects to make sure they are still
connected to a valid runtime.

Cheers,
Larry


Steph wrote:
>
>
> In the first workspace, tomcat did not run. I deleted the server and the
> runtime.
> When I created a new runtime, wtp default tomcat home was set to the
> directory of the deleted runtime. So it must have been stored somewhere.
>
> In a new workspace, tomcat run. I suppose that something related to the
> runtime and stored in the first workspace caused the problem.
>
> Steph.
>
>
Previous Topic:WTP installation help required
Next Topic:no content assist and F3 or link on classes with EAR library
Goto Forum:
  


Current Time: Tue Sep 30 19:58:50 GMT 2014

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

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