Scott,
I am getting this error again with the latest Resin Pro 4.0.13. I removed the
slf4j jar from the lib folder but error continues. I thought your fix worked so
I can only assume I had verified it on the open source version of 13 and pro is
somehow different. Any ideas?
matt
On Dec 2, 2010, at 9:37 AM, Matthew Serrano wrote:
> That seemed to fix it. Thanks Scott.
>
> I have also noticed placing log4j in the global classpath (e.g. ext-lib)
> causes some strange behavior like only one instance of logger is configured
> and all my apps end up logging with the same config. This is why I placed
> log4j in the web-app-default in the first place which works great.
>
> matt
>
> On Dec 2, 2010, at 9:29 AM, Scott Ferguson wrote:
>
>> Matthew Serrano wrote:
>>> Below are some snippets from my resin.xml. Inside the ord.weblib
>>> directory we have log4j-1.2.14.jar. For every Resin 4 version up
>>> through 4.0.12 this seems to load the log4j library into the classpath
>>> for all of my web applications. However, in 4.0.13 I get
>>>
>>> WEB-INF/web.xml:14:
>>> com.caucho.server.dispatch.ServletConfigImpl.setServletClass():
>>> java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;
>>>
>>
>> Can you try deleting the ${resin.home}/lib/slf4j*.jar file?
>>
>> We mistakenly added that jar in 4.0.13, thinking it was an eclipselink
>> dependency, but slf4j doesn't behave well when placed in the global
>> classloader.
>>
>> -- Scott
>>> Should this work in 4.0.13? Is it a bug or a new restriction? How can
>>> I load common jars into each web application without actually
>>> including them in the web application (e.g. WEB-INF/lib)?
>>>
>>> <resin xmlns="http://caucho.com/ns/resin"
>>> xmlns:resin="urn:java:com.caucho.resin">
>>>
>>> <resin:set var="ord.root" value="/usr/ordinate/www" />
>>> <resin:set var="ord.weblib" value="${ord.root}/lib" />
>>>
>>> ...
>>>
>>> <host-default>
>>>
>>> <web-app-default>
>>> <multipart-form enable="true" />
>>>
>>> <class-loader>
>>> <!-- adds all .jar files under the lib directory -->
>>> <library-loader path="${ord.weblib}" />
>>> </class-loader>
>>>
>>>
>>> _______________________________________________________
>>> *Matthew Serrano - Director of Engineering*
>>> Pearson Knowledge Technologies - Ordinate Corporation
>>> 299 S. California Ave Suite 300
>>> Palo Alto, CA 94306
>>> 650 470 3600
>>> 650 470 3533 (direct)
>>> [email protected] <mailto:[email protected]>
>>> www.ordinate.com <http://www.ordinate.com>
>>> www.pearson.com <http://www.pearson.com>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> resin-interest mailing list
>>> [email protected]
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>>
>>
>>
>>
>> _______________________________________________
>> resin-interest mailing list
>> [email protected]
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
>
> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest