Cannot launch Tomcat [message #182333] |
Tue, 07 November 2006 17: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 #182811 is a reply to message #182798] |
Wed, 15 November 2006 15:39   |
Eclipse User |
|
|
|
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 #183082 is a reply to message #183066] |
Tue, 21 November 2006 18:18  |
Eclipse User |
|
|
|
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.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.09937 seconds