Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Cannot start Tomcat in Eclipse
Cannot start Tomcat in Eclipse [message #500738] Fri, 27 November 2009 20:35 Go to next message
TSS is currently offline 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 10:53]

Report message to a moderator

Re: Cannot start Tomcat in Eclipse [message #501029 is a reply to message #500738] Mon, 30 November 2009 18:13 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1309
Registered: July 2009
Senior Member
The "INFO: The APR based Apache Tomcat Native library..." at the top of
the log implies that the dll needed to use APR is not available, so
Tomcat didn't automatically use APR. However, the error seems to imply
that you have manually configured Tomcat within Eclipse to use APR. Is
this correct? I believe the error is what happens if you try to us APR
without making the required dll available (or perhaps the appropriate
version).

It's not clear if Tomcat is starting outside of Eclipse because the dll
is available or Tomcat isn't manually configured to use APR. Is it your
intention to use APR in your configuration?

Cheers,
Larry

tarik@salem.cz wrote:
> 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\sys tem32;C:\Windows;C:/Program
> Files (x86)/Java/jre6/bin/client;C:/Program Files
> (x86)/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Window s\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:26 0)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:41 2)
> 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(Http11AprPro tocol.java:107)
> at
> org.apache.catalina.connector.Connector.initialize(Connector .java:1058)
> at
> org.apache.catalina.core.StandardService.initialize(Standard Service.java:677)
>
> at
> org.apache.catalina.core.StandardServer.initialize(StandardS erver.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!
>
> TS
>
Re: Cannot start Tomcat in Eclipse [message #501049 is a reply to message #501029] Mon, 30 November 2009 19:42 Go to previous message
TSS is currently offline 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
Previous Topic:Null Pointer Exception occurs when Web Service Wizard is launched with a resource from Java Project
Next Topic:eclipse jsdt questions
Goto Forum:
  


Current Time: Wed Oct 22 13:53:19 GMT 2014

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

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