On 09/07/2012 11:31 AM, thors...@apache.org wrote:
Author: thorsten
Date: Fri Sep  7 09:30:59 2012
New Revision: 1381952

URL: http://svn.apache.org/viewvc?rev=1381952&view=rev
Log:
COCOON-2233
Fixing and upgrading versions of artifact versions
BlockDeploymentServletContextListener to web.xml in the webapp archetype as 
required in trunk.
due to the fact the patch from Mark Lundquist is 4 years old in our issue 
tracker I did not apply it but rather re-did it.

Anyway thanks Mark Lundquist and sorry that we did not apply your patch earlier.

Modified:
...
     
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
...

Modified: 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml?rev=1381952&r1=1381951&r2=1381952&view=diff
==============================================================================
--- 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
 (original)
+++ 
cocoon/trunk/tools/archetypes/cocoon-22-archetype-block/src/main/resources/archetype-resources/pom.xml
 Fri Sep  7 09:30:59 2012
@@ -32,22 +32,22 @@
      <dependency>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-core</artifactId>
-      <version>2.2.0</version>
+      <version>2.2.1-SNAPSHOT</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-servlet-service-components</artifactId>
-      <version>1.0.0</version>
+      <version>1.1.0-SNAPSHOT</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-template-impl</artifactId>
-      <version>1.1.0</version>
+      <version>1.2.0-SNAPSHOT</version>
      </dependency>
      <dependency>
        <groupId>org.apache.cocoon</groupId>
        <artifactId>cocoon-flowscript-impl</artifactId>
-      <version>1.0.0</version>
+      <version>1.1.0-SNAPSHOT</version>
      </dependency>
      <dependency>
        <groupId>javax.servlet</groupId>
@@ -62,7 +62,7 @@
        <plugin>
          <groupId>org.apache.cocoon</groupId>
          <artifactId>cocoon-maven-plugin</artifactId>
-        <version>1.0.0-M2</version>
+        <version>1.0.2</version>
          <executions>
            <execution>
              <id>prepare</id>
@@ -76,7 +76,7 @@
        <plugin>
          <groupId>org.mortbay.jetty</groupId>
          <artifactId>maven-jetty-plugin</artifactId>
-        <version>6.1.7</version>
+        <version>6.1.25</version>
          <configuration>
            <connectors>
              <connector 
implementation="org.mortbay.jetty.nio.SelectChannelConnector">
@@ -96,7 +96,7 @@
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
-        <version>2.1</version>
+        <version>2.4</version>
          <configuration>
            <archive>
              <manifestEntries>
@@ -107,7 +107,7 @@
        </plugin>
        <plugin>
          <artifactId>maven-eclipse-plugin</artifactId>
-        <version>2.5</version>
+        <version>2.9</version>
        </plugin>
      </plugins>
    </build>

This breaks jetty:run and I am ATM not sure why. It fails like:

20:11:38.723 [main] ERROR o.s.web.context.ContextLoader - Context initialization failed
java.lang.NoClassDefFoundError: org/springframework/core/env/Environment
at java.lang.Class.getDeclaredConstructors0(Native Method) ~[na:1.7.0_02-ea] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404) ~[na:1.7.0_02-ea]
    at java.lang.Class.getConstructor0(Class.java:2714) ~[na:1.7.0_02-ea]
at java.lang.Class.getDeclaredConstructor(Class.java:2002) ~[na:1.7.0_02-ea] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:61) ~[spring-beans-2.5.1.jar:2.5.1] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:249) ~[spring-web-2.5.1.jar:2.5.1] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) ~[spring-web-2.5.1.jar:2.5.1] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web-2.5.1.jar:2.5.1] at org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.invoke(ReloadingListener.java:265) [cocoon-rcl-webapp-wrapper-1.0.2.jar:1.0.2] at org.apache.cocoon.tools.rcl.wrapper.servlet.ReloadingListener.contextInitialized(ReloadingListener.java:150) [cocoon-rcl-webapp-wrapper-1.0.2.jar:1.0.2] at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:548) [jetty-6.1.25.jar:6.1.25

You can reproduce it as follows.

cd src/apache/cocoon2.2/
svn up
mvn clean install
mkdir tmp
mvn archetype:generate -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-block -DarchetypeVersion=1.1.0-SNAPSHOT -DgroupId=my.groupid -DartifactId=2233 -DarchetypeRepository=local
cd 2233
# make sure that the pom has
 <dependency>
      <groupId>org.apache.cocoon</groupId>
       <artifactId>cocoon-core</artifactId>
       <version>2.2.1-SNAPSHOT</version>
    </dependency>
mvn clean install jetty:run

then you will get above error in the console. :(

any idea why there is requested a class which is in spring 3.1 (which is not declared as dep) but cannot be found in the 2.5.x what we are using in 2.2.

Further I tested before I committed and there it was working (at least I think it did).

Anyway I tested now on another box to make sure and it is failing as described above.

Any ideas very welcome!

salu2

Reply via email to