cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamal <kbh...@tt.com.au>
Subject [2.2] Missing org/apache/commons/collections/map/MultiValueMap
Date Thu, 17 Apr 2008 01:16:30 GMT
Hi,
I plugged in some new dependencies, and I got an error, which I would 
normally chalk up to the postgres drivers or OJB, but then I saw it was 
in C:/maven-repo/org/apache/cocoon/cocoon-pipeline-impl/. I fixed it by 
including the commons-collection classes, but I was wondering why this 
would be an issue. I was surprised that common-collection was not 
downloaded automagically by Cocoon. So I thought I would flag it, just 
in case I am missing something. I included my POM file below this very 
long error dump (sorry).

javax.servlet.ServletException: org.apache.cocoon.ProcessingException: 
Sitemap:
error invoking matcher
        at <map:match> - 
file:///D:/java-workspaces/cocoon-ccm/./src/main/resour
ces/COB-INF/sitemap.xmap:104:36
        at 
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.j
ava:232)
        at 
org.apache.cocoon.sitemap.SitemapServlet.service(SitemapServlet.java:
64)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher
.forward(ServletServiceContext.java:567)
        at 
org.apache.cocoon.servletservice.ServletServiceContext$PathDispatcher
.forward(ServletServiceContext.java:544)
        at 
org.apache.cocoon.servletservice.spring.ServletFactoryBean$ServiceInt
erceptor.invoke(ServletFactoryBean.java:230)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:166)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy5.service(Unknown Source)
        at 
org.apache.cocoon.servletservice.DispatcherServlet.service(Dispatcher
Servlet.java:102)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServlet.service(
ReloadingServlet.java:89)
        at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487
)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1093)
        at 
org.apache.cocoon.servlet.multipart.MultipartFilter.doFilter(Multipar
tFilter.java:119)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.do
Filter(ReloadingServletFilter.java:50)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at 
org.apache.cocoon.servlet.DebugFilter.doFilter(DebugFilter.java:169)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.do
Filter(ReloadingServletFilter.java:50)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingSpringFilter.doF
ilter(ReloadingSpringFilter.java:69)
        at 
org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingServletFilter.do
Filter(ReloadingServletFilter.java:50)
        at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet
Handler.java:1084)
        at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
60)
        at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav
a:216)
        at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1
81)
        at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7
12)
        at 
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)

        at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand
lerCollection.java:211)
        at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.
java:114)
        at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1
39)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50
6)
        at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
nnection.java:830)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at 
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.ja
va:396)
        at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool
.java:442)
Caused by: org.apache.cocoon.ProcessingException: Sitemap: error 
invoking matche
r
        at <map:match> - 
file:///D:/java-workspaces/cocoon-ccm/./src/main/resour
ces/COB-INF/sitemap.xmap:104:36
        at 
org.apache.cocoon.ProcessingException.throwLocated(ProcessingExceptio
n.java:111)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(M
atchNode.java:90)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invok
e(PipelineNode.java:151)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:77)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invo
ke(PipelinesNode.java:93)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.proc
ess(ConcreteTreeProcessor.java:240)
        at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.proc
ess(ConcreteTreeProcessor.java:171)
        at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Tree
Processor.java:251)
        at 
org.apache.cocoon.servlet.RequestProcessor.process(RequestProcessor.j
ava:357)
        at 
org.apache.cocoon.servlet.RequestProcessor.service(RequestProcessor.j
ava:171)
        ... 38 more
Caused by: org.springframework.beans.factory.BeanCreationException: 
Error creati
ng bean with name 
'scopedTarget.org.apache.cocoon.el.objectmodel.ObjectModel' de
fined in URL 
[jar:file:/C:/maven-repo/org/apache/cocoon/cocoon-pipeline-impl/1.0
.0-RC2/cocoon-pipeline-impl-1.0.0-RC2.jar!/META-INF/cocoon/spring/ObjectModel.xm
l]: Instantiation of bean failed; nested exception is 
org.springframework.beans.
BeanInstantiationException: Could not instantiate bean class 
[org.apache.cocoon.
el.impl.objectmodel.ObjectModelImpl]: Constructor threw exception; 
nested except
ion is java.lang.NoClassDefFoundError: 
org/apache/commons/collections/map/MultiV
alueMap
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:448)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory$2.getOb
ject(AbstractBeanFactory.java:289)
        at 
org.springframework.web.context.request.AbstractRequestAttributesScop
e.get(AbstractRequestAttributesScope.java:43)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:285)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at 
org.springframework.aop.target.SimpleBeanTargetSource.getTarget(Simpl
eBeanTargetSource.java:33)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:184)
        at $Proxy1.markLocalContext(Unknown Source)
        at 
org.apache.cocoon.components.treeprocessor.InvokeContext.pushMap(Invo
keContext.java:238)
        at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNo
de.invokeNodes(AbstractParentProcessingNode.java:51)
        at 
org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(M
atchNode.java:87)
        ... 47 more
Caused by: org.springframework.beans.BeanInstantiationException: Could 
not insta
ntiate bean class 
[org.apache.cocoon.el.impl.objectmodel.ObjectModelImpl]: Const
ructor threw exception; nested exception is 
java.lang.NoClassDefFoundError: org/
apache/commons/collections/map/MultiValueMap
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:1
00)
        at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy
.instantiate(SimpleInstantiationStrategy.java:61)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.instantiateBean(AbstractAutowireCapableBeanFactory.java:756)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:721)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:384)
        ... 57 more
Caused by: java.lang.NoClassDefFoundError: 
org/apache/commons/collections/map/Mu
ltiValueMap
        at 
org.apache.cocoon.el.impl.objectmodel.ObjectModelImpl.<init>(ObjectMo
delImpl.java:64)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)

        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:8
5)
        ... 61 more


<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <packaging>jar</packaging>

  <name>cocoon-ccm</name>
  <groupId>au.com.tt.ccm</groupId>
  <artifactId>cocoon-ccm</artifactId>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-core</artifactId>
      <version>2.2.0-RC2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-servlet-service-components</artifactId>
      <version>1.0.0-RC1</version>
    </dependency>
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-template-impl</artifactId>
      <version>1.0.0-RC2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-flowscript-impl</artifactId>
      <version>1.0.0-RC2</version>
    </dependency>
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-forms-impl</artifactId>
      <version>1.0.0-RC1</version>
    </dependency>    
    <!-- OJB is used to map java beans to databases. -->
    <dependency>
      <groupId>ojb</groupId>
      <artifactId>db-ojb</artifactId>
      <version>1.0.4</version>
    </dependency>
    <!-- The Following dependencies are only specified because OBJ does 
not find them automatically -->
    <dependency>
      <groupId>hsqldb</groupId>
      <artifactId>hsqldb</artifactId>
      <version>1.8.0.1</version>
    </dependency>    
    
    <dependency>
      <groupId>xalan</groupId>
      <artifactId>xalan</artifactId>
      <version>2.4.0</version>
    </dependency>   
    <dependency>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-databases-impl</artifactId>
      <version>1.0.0</version>
    </dependency>     
    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2</version>
    </dependency>       
    <dependency>
        <groupId>postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <version>8.1-407.jdbc3</version>
    </dependency>        
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-maven-plugin</artifactId>
        <version>1.0.0-M1</version>
        <executions>
          <execution>
            <id>rcl</id>
            <phase>compile</phase>
            <goals>
              <goal>rcl</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.mortbay.jetty</groupId>
        <artifactId>maven-jetty-plugin</artifactId>
        <version>6.1.5</version>
        <configuration>
          <connectors>
            <connector 
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
              <port>8888</port>
              <maxIdleTime>30000</maxIdleTime>
            </connector>
          </connectors>
          
<webAppSourceDirectory>${project.build.directory}/rcl/webapp</webAppSourceDirectory>
          <contextPath>/</contextPath>
          <systemProperties>
            <systemProperty>
              <name>org.apache.cocoon.mode</name>
              <value>dev</value>
            </systemProperty>
          </systemProperties>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <archive>
            <manifestEntries>
              <Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.4</version>
      </plugin>
    </plugins>
  </build>

</project>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message