Ticket #620 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

cas error in r3575

Reported by: russ Assigned to:
Priority: low Milestone:
Component: build-system Version: 0.8
Keywords: maven commons-collections Cc:
Blocking: Blocked By:

Description

it seems like this has to be a configuration error on my part, but i can't figure it out and i'm using the same cas.xml that i used in r3549.

on startup, cas is happy but plos-registration gives a tomcat 404.

i see the following in cas.log:

2007-08-28 14:14:00,397 ERROR [/plos-registration]> Exception sending context initialized event to listener instance of class org.plos.configuration.WebAppL\
istener [main org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/plos-registration]]
java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LinkedMap
        at org.apache.commons.configuration.BaseConfiguration.<init>(BaseConfiguration.java:54)
        at org.apache.commons.configuration.CompositeConfiguration.clear(CompositeConfiguration.java:158)
        at org.apache.commons.configuration.CompositeConfiguration.<init>(CompositeConfiguration.java:55)
        at org.plos.configuration.ConfigurationStore.loadConfiguration(ConfigurationStore.java:129)
        at org.plos.configuration.WebAppListener.contextInitialized(WebAppListener.java:80)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

and in cas.out:

INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
Aug 28, 2007 2:13:49 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
log4j:WARN Continuable parsing error 33 and column 23
log4j:WARN The content of element type "log4j:configuration" must match "(renderer*,appender*,(category|logger)*,root?,categoryFactory?)".
Aug 28, 2007 2:14:08 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Aug 28, 2007 2:14:08 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/plos-registration] startup failed due to previous errors

Dependency Graph

Change History

08/28/07 14:26:46 changed by amit

  • owner changed from pradeep to ebrown.
  • milestone set to 0.8.

Eric, I think this might be the jar problem I have talked to you about.

08/28/07 14:41:17 changed by ebrown

  • status changed from new to assigned.

Found in 0.8 - r3575.

This is a maven problem that shows up randomly (because maven uses HashSets? where it should use ordered lists in some places). It may be fixed in the latest version of maven... but the last version tested (2.0.7) has other issues.

The problem is:

/usr/local/topaz/cas-0.8-SNAPSHOT-tomcat/webapps/plos-registration/WEB-INF/lib/commons-collections-2.1.jar

Remove it. And copy the following file in its place:

/usr/local/topaz/cas-0.8-SNAPSHOT-tomcat/webapps/cas/WEB-INF/lib/commons-collections-3.2.jar

We'll figure out someway to fool maven into doing the build properly every time. The problem not always being reproducible, however, a fix may be hit or miss for a few builds. If you see the problem again, please reopen the ticket and note the svn revision the problem was spotted in.

08/28/07 15:01:49 changed by amit

  • owner changed from ebrown to russ.
  • status changed from assigned to new.

Russ, will this workaround do for the time being? We will add checks for the new RPMs.

08/28/07 15:13:16 changed by russ

  • status changed from new to closed.
  • resolution set to fixed.

sure!

08/28/07 22:28:42 changed by ebrown

(In [3605]) fixes #620 force plos-registartion webapp to use common-collections 3.2

This *may* be happening for other webapps on occasion too. I'd prefer to hack one at a time, however.

08/28/07 22:34:44 changed by amit

  • status changed from closed to reopened.
  • component changed from signon-server to build-system.
  • priority changed from critical to medium.
  • milestone deleted.
  • keywords set to maven commons-collections.
  • resolution deleted.

Thanks Eric. I am going to keep this open though till we know precisely why maven is messing up. Moving it out of 0.8 though.

08/28/07 22:35:03 changed by amit

  • owner deleted.
  • status changed from reopened to new.

10/01/07 14:26:03 changed by amit

  • priority changed from medium to low.

10/29/07 20:42:01 changed by amit

  • status changed from new to closed.
  • resolution set to fixed.