| Cannot start Tomcat in Eclipse [message #500738] |
Fri, 27 November 2009 15:35  |
TSS Messages: 2 Registered: November 2009 |
Junior Member |
|
|
Hi,
my problem is that I cannot start Tomcat in Eclipse. I use Tomcat 6 and Eclipse Galileo.
When I try to start Tomcat from Eclipse, Eclipse is showing this in the console:
27.11.2009 18:32:34 org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
Caused by: java.lang.UnsatisfiedLinkError: org.apache.tomcat.jni.Pool.create(J)J
at org.apache.tomcat.jni.Pool.create(Native Method)
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:589)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:107)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
... 6 more
There is no problem to start Tomcat by running the startup.bat file.
I have no idea where is the problem. I tried to find some solution but with no success.
Thank you for help!
TSS
[Updated on: Sat, 28 November 2009 05:53] Report message to a moderator
|
|
|
|
| Re: Cannot start Tomcat in Eclipse [message #501049 is a reply to message #501029] |
Mon, 30 November 2009 14:42  |
TSS Messages: 2 Registered: November 2009 |
Junior Member |
|
|
Thank you Larry! You're right.
Tomcat starting from Eclipse really can't find the APR library.
Solution:
So I added path to the APR library (e.g. .../tomcat/bin) to the system environment PATH and Tomcat is running now without problems.
When you don't need APR just set in the server.xml file in Eclipse instead of "org.apache.coyote.http11.Http11AprProtocol" protocol a "HTTP/1.1" protocol.
Cheers,
TSS
|
|
|
Powered by
FUDForum. Page generated in 0.01559 seconds