You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Cedric Dumoulin <ce...@lifl.fr> on 2002/03/22 12:06:57 UTC
Problems with 1.1b1
I have downloaded and try the 1.1b1 binaries, and can't get it running
!
I use tomcat 3.2.3 and jdk1.3.
Does someone have successfully tested the binaries distribution ?
When trying the struts-examples, I've got :
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.util.MessageResourcesFactory.(MessageResourcesFactory.java:135)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:557)
at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:94)
Cedric
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problems with 1.1b1
Posted by Martin Cooper <ma...@tumbleweed.com>.
Unfortunately, you're not the only one seeing these problems. I really
thought I'd tested the struts-example app with four different containers
(Tomcat 3.3a, Tomcat 4.0.3, Resin 1.2.10, Resin 2.0.5) before I released the
beta, but it seems I must not have tested under Tomcat 3.3a. ;-( The other
three work just fine.
Here's what I know so far:
1) The problem is related to class loaders, and possibly to the
LogFactory.findClassLoader() method. The fact that LogFactory.getLog() is
called at (ActionServlet) class initialisation time may also be significant.
2) It is related to the <load-on-startup> element. If the web app is not
loaded on startup, this error does not occur. (Others do, of course, but we
get past this problem.)
3) The problem can be worked around by copying commons-logging.jar to:
%TOMCAT_HOME%\lib\common
Unfortunately, I'm by no means a class loader expert, so I'm not sure where
to go from here. Hopefully someone who has more class loader knowledge than
I do can chip in now...
--
Martin Cooper
----- Original Message -----
From: "Cedric Dumoulin" <ce...@lifl.fr>
To: "Struts Developers List" <st...@jakarta.apache.org>
Sent: Friday, March 22, 2002 9:50 AM
Subject: Re: Problems with 1.1b1
>
> After playing with different configurations, here are my conclusions :
>
> * 1.1b1 struts-example work fine with tomcat4.0.3 and jdk1.4
> * 1.1b1 struts-example doesn't work with tomcat3.3a and jdk1.4 (can't
find
> LogFactory.java)
> * 1.1b1 struts-example doesn't work with tomcat3.3a and jdk1.3 (can't
find
> LogFactory.java)
>
> Am I the only one having these problems ? Does someone else have tried
and got 1.1b1
> running with tomcat3.3.
> Of course, the commons logging package is in WEB-INF/lib/..
>
> Cedric
>
> Cedric Dumoulin wrote:
>
> > I have downloaded and try the 1.1b1 binaries, and can't get it running
> > !
> > I use tomcat 3.2.3 and jdk1.3.
> >
> > Does someone have successfully tested the binaries distribution ?
> >
> > When trying the struts-examples, I've got :
> >
> > java.lang.ExceptionInInitializerError:
> > org.apache.commons.logging.LogConfigurationException:
> > java.lang.ClassNotFoundException:
> > org.apache.commons.logging.impl.LogFactoryImpl
> > at
> > org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> > at
> > org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> > at
> > org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> > at
> >
org.apache.struts.util.MessageResourcesFactory.(MessageResourcesFactory.java
:135)
> >
> > at
> >
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:557)
> >
> > at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:94)
> >
> > Cedric
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problems with 1.1b1
Posted by Cedric Dumoulin <ce...@lifl.fr>.
After playing with different configurations, here are my conclusions :
* 1.1b1 struts-example work fine with tomcat4.0.3 and jdk1.4
* 1.1b1 struts-example doesn't work with tomcat3.3a and jdk1.4 (can't find
LogFactory.java)
* 1.1b1 struts-example doesn't work with tomcat3.3a and jdk1.3 (can't find
LogFactory.java)
Am I the only one having these problems ? Does someone else have tried and got 1.1b1
running with tomcat3.3.
Of course, the commons logging package is in WEB-INF/lib/..
Cedric
Cedric Dumoulin wrote:
> I have downloaded and try the 1.1b1 binaries, and can't get it running
> !
> I use tomcat 3.2.3 and jdk1.3.
>
> Does someone have successfully tested the binaries distribution ?
>
> When trying the struts-examples, I've got :
>
> java.lang.ExceptionInInitializerError:
> org.apache.commons.logging.LogConfigurationException:
> java.lang.ClassNotFoundException:
> org.apache.commons.logging.impl.LogFactoryImpl
> at
> org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
> at
> org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
> at
> org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
> at
> org.apache.struts.util.MessageResourcesFactory.(MessageResourcesFactory.java:135)
>
> at
> org.apache.struts.util.MessageResources.getMessageResources(MessageResources.java:557)
>
> at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:94)
>
> Cedric
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: Problems with 1.1b1
Posted by "Gar?ar ?. Gu?geirsson" <ga...@raqoon.is>.
I got the same error. The solution was to put commons-logging.jar somewhere
that tomcat could find it.
After this initial problem, the 1.1b1 binaries work fine for me.
Regards,
Gardar
Gardar Gudgeirsson
gardarg@raqoon.com
-----Original Message-----
From: Cedric Dumoulin [mailto:cedric.dumoulin@lifl.fr]
Sent: 22. mars 2002 11:07
To: struts-dev@jakarta.apache.org
Subject: Problems with 1.1b1
I have downloaded and try the 1.1b1 binaries, and can't get it running
!
I use tomcat 3.2.3 and jdk1.3.
Does someone have successfully tested the binaries distribution ?
When trying the struts-examples, I've got :
java.lang.ExceptionInInitializerError:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.LogFactoryImpl
at
org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:497)
at
org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:350)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:381)
at
org.apache.struts.util.MessageResourcesFactory.(MessageResourcesFactory.java
:135)
at
org.apache.struts.util.MessageResources.getMessageResources(MessageResources
.java:557)
at org.apache.struts.taglib.html.HtmlTag.(HtmlTag.java:94)
Cedric
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>