Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: AprLifecycleListener not initializing in Tomcat Startup
Re: AprLifecycleListener not initializing in Tomcat Startup [message #228767] Wed, 11 March 2009 01:31 Go to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26223
Registered: July 2009
Senior Member
Matt,

Maybe it's better to ask on the WTP newsgroup, which I've added to the
"to" list of this reply.


Matt wrote:
> I am currently getting a feel for writing Servlets and JSP in Eclipse
> and WTP, something I've previously always used NetBeans for in the past.
>
> One issue I'm having [at least it looks like an issue] is that when I
> start Tomcat either by itself or via running a JSP or Servlet 'on the
> server', the console shows this message:
>
> Mar 10, 2009 7:57:19 PM org.apache.catalina.core.AprLifecycleListener
> init
> INFO: The Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: [it then lists the folders/files in my classpath ].
> In java.library.path it lists is the folder that contains
> catalina.jar [ C:\apache-tomcat-6.0.14\lib ].
>
> In addition, I have copied catalina.jar to the web directory in Tomcat
> it is using:
> C:\apache-tomcat-6.0.14\wtpwebapps\web1\WEB-INF\lib
> but that actually caused an error, so I removed it.
>
>
> I am not sure if this is the issue or not, but in my project's Properties
>>> Java Build Path, the Libraries tab has a library, "Apache Tomcat v6.0
> [Apache Tomcat v6.0]", and under that there is "catalina.jar", which
> points to the correct place. However, for the three attributes of the
> jar file [Source Attachment, Javadoc Location, Native Library
> Location] are listed as (None), and the Access Rules are (No
> restrictions).
> I don't know if there is supposed to be something else there.
>
>
>
> I don't know if this is actually a problem, because things are
> working, but it does seem that there is an issue. Any help fixing
> this would be greatly appreciated.
>
> Matt
>
>
> Eclipse 3.4.1
> WTP Windows XP Pro, SP3
>
Re: AprLifecycleListener not initializing in Tomcat Startup [message #228787 is a reply to message #228767] Wed, 11 March 2009 13:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Matt:

Check out the WTP Tomcat FAQ, it may have your answer:

http://wiki.eclipse.org/WTP_Tomcat_FAQ

Depending on how you installed your Tomcat instance you can get some
strange errors with WTP's server adaptor.

Dave

> Matt wrote:
>> I am currently getting a feel for writing Servlets and JSP in Eclipse
>> and WTP, something I've previously always used NetBeans for in the past.
>>
>> One issue I'm having [at least it looks like an issue] is that when I
>> start Tomcat either by itself or via running a JSP or Servlet 'on the
>> server', the console shows this message:
>>
>> Mar 10, 2009 7:57:19 PM org.apache.catalina.core.AprLifecycleListener
>> init
>> INFO: The Apache Tomcat Native library which allows optimal
>> performance in production environments was not found on the
>> java.library.path: [it then lists the folders/files in my classpath ].
>> In java.library.path it lists is the folder that contains
>> catalina.jar [ C:\apache-tomcat-6.0.14\lib ].
>>
>> In addition, I have copied catalina.jar to the web directory in Tomcat
>> it is using:
>> C:\apache-tomcat-6.0.14\wtpwebapps\web1\WEB-INF\lib
>> but that actually caused an error, so I removed it.
>>
>>
>> I am not sure if this is the issue or not, but in my project's Properties
>>>> Java Build Path, the Libraries tab has a library, "Apache Tomcat v6.0
>> [Apache Tomcat v6.0]", and under that there is "catalina.jar", which
>> points to the correct place. However, for the three attributes of the
>> jar file [Source Attachment, Javadoc Location, Native Library
>> Location] are listed as (None), and the Access Rules are (No
>> restrictions).
>> I don't know if there is supposed to be something else there.
>>
>>
>>
>> I don't know if this is actually a problem, because things are
>> working, but it does seem that there is an issue. Any help fixing
>> this would be greatly appreciated.
>>
>> Matt
>>
>>
>> Eclipse 3.4.1
>> WTP Windows XP Pro, SP3
>>
Re: AprLifecycleListener not initializing in Tomcat Startup [message #228795 is a reply to message #228787] Wed, 11 March 2009 14:43 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
I'm not sure this one covered by the FAQ because it is normal Tomcat
behavior. It occurs outside of Eclipse as well.

The message can be ignored if you aren't trying to use APR (Apache
Portable Runtime). Use of APR is enabled by default in server.xml by
the inclusion of the AprLifecycleListener. If this listener finds the
APR library, plus a couple of other things, use of APR occurs, i.e.
connectors use APR instead of Java equivalents to do the work. If the
APR library isn't found, this fact is logged to inform you that APR
isn't being used. Note that the message is just information, i.e. INFO.
It doesn't qualify as an error or warning.

For APR info, see: http://tomcat.apache.org/tomcat-6.0-doc/apr.html

Cheers,
Larry

David Carver wrote:
> Matt:
>
> Check out the WTP Tomcat FAQ, it may have your answer:
>
> http://wiki.eclipse.org/WTP_Tomcat_FAQ
>
> Depending on how you installed your Tomcat instance you can get some
> strange errors with WTP's server adaptor.
>
> Dave
>
>> Matt wrote:
>>> I am currently getting a feel for writing Servlets and JSP in Eclipse
>>> and WTP, something I've previously always used NetBeans for in the past.
>>>
>>> One issue I'm having [at least it looks like an issue] is that when I
>>> start Tomcat either by itself or via running a JSP or Servlet 'on the
>>> server', the console shows this message:
>>>
>>> Mar 10, 2009 7:57:19 PM org.apache.catalina.core.AprLifecycleListener
>>> init
>>> INFO: The Apache Tomcat Native library which allows optimal
>>> performance in production environments was not found on the
>>> java.library.path: [it then lists the folders/files in my classpath ].
>>> In java.library.path it lists is the folder that contains
>>> catalina.jar [ C:\apache-tomcat-6.0.14\lib ].
>>>
>>> In addition, I have copied catalina.jar to the web directory in
>>> Tomcat it is using:
>>> C:\apache-tomcat-6.0.14\wtpwebapps\web1\WEB-INF\lib
>>> but that actually caused an error, so I removed it.
>>>
>>>
>>> I am not sure if this is the issue or not, but in my project's
>>> Properties
>>>>> Java Build Path, the Libraries tab has a library, "Apache Tomcat v6.0
>>> [Apache Tomcat v6.0]", and under that there is "catalina.jar", which
>>> points to the correct place. However, for the three attributes of
>>> the jar file [Source Attachment, Javadoc Location, Native Library
>>> Location] are listed as (None), and the Access Rules are (No
>>> restrictions).
>>> I don't know if there is supposed to be something else there.
>>>
>>>
>>>
>>> I don't know if this is actually a problem, because things are
>>> working, but it does seem that there is an issue. Any help fixing
>>> this would be greatly appreciated.
>>>
>>> Matt
>>>
>>>
>>> Eclipse 3.4.1
>>> WTP Windows XP Pro, SP3
>>>
Re: AprLifecycleListener not initializing in Tomcat Startup [message #228810 is a reply to message #228795] Wed, 11 March 2009 16:40 Go to previous message
Matt is currently offline MattFriend
Messages: 5
Registered: July 2009
Junior Member
Larry --

Thank you very much.

... not knowing the answer ahead of time, I wasn't sure whether this was a
Java Build Path configuration issue [Newcomer], or a Tomcat setup issue
[WTP].

I am very much grateful for the help.

Matt
Previous Topic:ComponentProjectMigrator
Next Topic:Removal of deprecated classes, methods, and statics
Goto Forum:
  


Current Time: Wed Nov 26 07:02:46 GMT 2014

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

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