Actually, I'm not sure that removing
commons-logging makes the exception go away at this point. It still
seems to be there although in the dbforms2.4 release I believe the
exception went away when I removed commons-logging.
Paul B. Anderson wrote:
Running the bookstore example "out of the
box", I'm getting a java.lang.reflect.InvocationTargetException with a
root cause of the following (incomplete) fragment.
I've had problems from the beginning with the commons-logging JAR file
and when I've moved that out of the lib directory in favor of the one
Tomcat has called commons-logging-api.jar, the exception goes away but
then nothing else works.
Prior to this exception, there is a lot of output in catalina.out
regarding the contents of dbforms-config.xml in the bookstore example.
Does this help pinpoint the problem?
Thanks!
Paul Anderson
(Extract from catalina.out follows)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.com\
mons.logging.LogConfigurationException:
java.lang.ClassNotFoundException: org.a\
pache.commons.logging.impl.Log4JCategoryLog
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactor\
yImpl.java:532)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactor\
yImpl.java:272)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactor\
yImpl.java:246)
at
org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
at
org.apache.catalina.session.ManagerBase.<init>(ManagerBase.java:107)
at
org.apache.catalina.session.StandardManager.<init>(StandardManager.j\
ava:111)
at
org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfi\
g.java:350)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:6\
55)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConf\
ig.java:254)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc\
leSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:\
4212)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125\
)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125\
)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:51\
8)
at
org.apache.catalina.core.StandardService.start(StandardService.java:\
519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:23\
43)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:581)
... 6
more
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.Clas\
sNotFoundException:
org.apache.commons.logging.impl.Log4JCategoryLog
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(Log\
FactoryImpl.java:416)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactor\
yImpl.java:525)
... 23
more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Lo\
g4JCategoryLog
at
java.net.URLClassLoader$1.run(URLClassLoader.java:199)
Henner Kollmann wrote:
This examples seems to be a little bit outdated. We have an example which
should be run out of the box and that has everything you need in it's lib
directory. Please try to download the the bookstore example war file and let
it run in your tomcat enviroment. This should be work.
The bookstore example is a good starting point for your own application. Try
to change the connect strings to use your own database.
There are a lot of needed jar files in the dependend directory - some are
only needed to compile the test classes. So the real needed list is in the
bookstore example.
I have no problems to let dbforms run with tomcat 5. Please try the actual
builds - we changed the logging system to use org.apache.commons everythere.
You can found the current builds here:
http://jdbforms.sourceforge.net/weekly/
Please start to test the bookstore example!
Regards,
Henner
.
|