Cannot launch Tomcat [message #182333] |
Tue, 07 November 2006 22:06 |
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 #182382 is a reply to message #182342] |
Wed, 08 November 2006 19:40 |
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 #182798 is a reply to message #182389] |
Wed, 15 November 2006 18:37 |
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 |
Larry Isaacs Messages: 1354 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 |
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 |
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 #183021 is a reply to message #182960] |
Tue, 21 November 2006 14:16 |
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 |
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 #183066 is a reply to message #183058] |
Tue, 21 November 2006 22:14 |
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03993 seconds