I think I have run into a conflict with the commons-logging.jar library
used by both Spring Web Flow and Orbeon. Does anyone know what I'm
doing to cause this and know how to fix it?
I am trying to build a Spring MVC application that uses Orbeon to return xforms. Orbeon is deployed as a separate WAR file as described here http://www.orbeon.com/ops/doc/reference-xforms-java. After running into some problems I decided to start simple, so I created the basic tutorial application for Spring MVC. When I deployed it by itself in Tomcat it worked fine. However, after I deployed ops.war the logging in the Spring application stopped working. Note that the filter setup has not been done at this point so the two applications should not be unaware of each other. This is the first situation I have seen where deploying one application changes the running of another so I'm stumped as to what's going on. This ops.war is a nightly build from last week. I tried this with both Tomcat 5.5.25 and 6.0.14 and got the same behavior. Any ideas? Here's the output when only the spring application is deployed. The last 3 lines are the output I'd expect when accessing the hello.htm test page: Oct 29, 2007 9:45:27 PM org.apache.catalina.core.AprLifecycleListener lifecycleEventHere's the output after Ops is deployed. Note the log4j error messages and the missing logger line in the output. Oct 29, 2007 9:41:55 PM org.apache.catalina.core.AprLifecycleListener lifecycleEventMy Spring application is attached. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws spring_test.war (3M) Download Attachment |
Administrator
|
Dustin,
On 10/29/07, Dustin Henson <[hidden email]> wrote: > > I think I have run into a conflict with the commons-logging.jar library > used by both Spring Web Flow and Orbeon. Does anyone know what I'm doing to > cause this and know how to fix it? > > I am trying to build a Spring MVC application that uses Orbeon to return > xforms. Orbeon is deployed as a separate WAR file as described here > http://www.orbeon.com/ops/doc/reference-xforms-java. After > running into some problems I decided to start simple, so I created the basic > tutorial application for Spring MVC. When I deployed it by itself in Tomcat > it worked fine. However, after I deployed ops.war the logging in the Spring > application stopped working. Note that the filter setup has not been done at > this point so the two applications should not be unaware of each other. This > is the first situation I have seen where deploying one application changes > the running of another so I'm stumped as to what's going on. This ops.war is > a nightly build from last week. I tried this with both Tomcat 5.5.25 and > 6.0.14 and got the same behavior. Any ideas? saying that Spring's logging through commons-logging.jar isn't working anymore when you have Orbeon Forms deployed as well? I am not sure if this will help here, but you might want to try to change your web.xml to tell Orbeon Forms not to initialize log4j (which can help if Log4j has already been initialized). To do this, set the oxf.initialize-logging context parameter to false. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Incidently, we now use version 1.2.15 of log4j, instead of the
(abandonned) 1.3 beta we had for a long time. Not sure if that helps. -Erik Alessandro Vernet wrote: > Dustin, > > On 10/29/07, Dustin Henson <[hidden email]> wrote: >> I think I have run into a conflict with the commons-logging.jar library >> used by both Spring Web Flow and Orbeon. Does anyone know what I'm doing to >> cause this and know how to fix it? >> >> I am trying to build a Spring MVC application that uses Orbeon to return >> xforms. Orbeon is deployed as a separate WAR file as described here >> http://www.orbeon.com/ops/doc/reference-xforms-java. After >> running into some problems I decided to start simple, so I created the basic >> tutorial application for Spring MVC. When I deployed it by itself in Tomcat >> it worked fine. However, after I deployed ops.war the logging in the Spring >> application stopped working. Note that the filter setup has not been done at >> this point so the two applications should not be unaware of each other. This >> is the first situation I have seen where deploying one application changes >> the running of another so I'm stumped as to what's going on. This ops.war is >> a nightly build from last week. I tried this with both Tomcat 5.5.25 and >> 6.0.14 and got the same behavior. Any ideas? > > Besides the error message, what is the effect of this issue? Are you > saying that Spring's logging through commons-logging.jar isn't working > anymore when you have Orbeon Forms deployed as well? > > I am not sure if this will help here, but you might want to try to > change your web.xml to tell Orbeon Forms not to initialize log4j > (which can help if Log4j has already been initialized). To do this, > set the oxf.initialize-logging context parameter to false. > > Alex > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |