You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2006/05/18 13:33:00 UTC
svn commit: r407533 - in /cocoon/trunk/core/cocoon-webapp: pom.xml
src/main/webapp/WEB-INF/web.xml
Author: reinhard
Date: Thu May 18 04:32:59 2006
New Revision: 407533
URL: http://svn.apache.org/viewvc?rev=407533&view=rev
Log:
alter server version number to '2.2'; uncomment ParanoidCocoonServlet as it's not working ATM
Modified:
cocoon/trunk/core/cocoon-webapp/pom.xml
cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml
Modified: cocoon/trunk/core/cocoon-webapp/pom.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-webapp/pom.xml?rev=407533&r1=407532&r2=407533&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-webapp/pom.xml (original)
+++ cocoon/trunk/core/cocoon-webapp/pom.xml Thu May 18 04:32:59 2006
@@ -40,17 +40,9 @@
<artifactId>cocoon-deployer-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
<configuration>
- <serverVersion>2.3</serverVersion>
+ <serverVersion>2.2</serverVersion>
</configuration>
- </plugin>
- <!--
- <plugin>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <warSourceDirectory>../src/webapp</warSourceDirectory>
- </configuration>
- </plugin>
- -->
+ </plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty6-plugin</artifactId>
@@ -76,14 +68,9 @@
<artifactId>cocoon-core</artifactId>
<version>2.2.0-SNAPSHOT</version>
</dependency>
- <dependency>
+ <!--dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-paranoid-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- </dependency>
- <!--dependency> cocoon-session-fw-sample doesn't work because of old-style xconf/roles-files
- <groupId>org.apache.cocoon</groupId>
- <artifactId>cocoon-session-fw-sample</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency-->
<dependency>
Modified: cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml?rev=407533&r1=407532&r2=407533&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml (original)
+++ cocoon/trunk/core/cocoon-webapp/src/main/webapp/WEB-INF/web.xml Thu May 18 04:32:59 2006
@@ -51,7 +51,7 @@
having conflicts between libraries used by Cocoon and the servlet
container.
-->
- <servlet-class>org.apache.cocoon.servlet.ParanoidCocoonServlet</servlet-class>
+ <servlet-class>org.apache.cocoon.servlet.CocoonServlet</servlet-class>
<init-param>
<param-name>classloader-class</param-name>
<param-value>org.apache.cocoon.servlet.ParanoidClassLoader</param-value>
Re: ParnoidCocoonServlet (was Re: svn commit: r407533 - in /cocoon/trunk/core/cocoon-webapp:
pom.xml src/main/webapp/WEB-INF/web.xml)
Posted by Reinhard Poetz <re...@apache.org>.
Carsten Ziegeler wrote:
> Reinhard Poetz schrieb:
>
>>reinhard@apache.org wrote:
>>
>>>Author: reinhard
>>>Date: Thu May 18 04:32:59 2006
>>>New Revision: 407533
>>>
>>>URL: http://svn.apache.org/viewvc?rev=407533&view=rev
>>>Log:
>>>alter server version number to '2.2'; uncomment ParanoidCocoonServlet as it's not working ATM
>>
>>no offense but the ParanoidCocoonServlet causes exceptions for me because of
>>problems with changed method signatures. Carsten, did you check in all changes?
>>
>
> Yes and it did work for me; are you sure that you are using the version
> build locally?
> If you look here:
> http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-paranoid/cocoon-paranoid-impl/src/main/java/org/apache/cocoon/servlet/ParanoidCocoonServlet.java
>
> you see that I changed the createClassLoader() method to be able to
> instantiate a "normal" ParanoidClassLoader again.
>
> I had similar problems with m2 and now I'm always doing a "clean
> install" and most times remove my local repo as well.
ok, will check again what's going on here.
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Re: ParanoidCocoonServlet
Posted by Reinhard Poetz <re...@apache.org>.
Carsten Ziegeler wrote:
> Reinhard Poetz schrieb:
>
>>reinhard@apache.org wrote:
>>
>>>Author: reinhard
>>>Date: Thu May 18 04:32:59 2006
>>>New Revision: 407533
>>>
>>>URL: http://svn.apache.org/viewvc?rev=407533&view=rev
>>>Log:
>>>alter server version number to '2.2'; uncomment ParanoidCocoonServlet as it's not working ATM
>>
>>no offense but the ParanoidCocoonServlet causes exceptions for me because of
>>problems with changed method signatures. Carsten, did you check in all changes?
>>
>
> Yes and it did work for me; are you sure that you are using the version
> build locally?
> If you look here:
> http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-paranoid/cocoon-paranoid-impl/src/main/java/org/apache/cocoon/servlet/ParanoidCocoonServlet.java
>
> you see that I changed the createClassLoader() method to be able to
> instantiate a "normal" ParanoidClassLoader again.
>
> I had similar problems with m2 and now I'm always doing a "clean
> install" and most times remove my local repo as well.
Now I get a different error - see below. I guess this is some subtle difference
between how "your" Maven is working compared to mine. It's so crazy. If two
computers have installed Maven in the same version, this doesn't mean that our
two installations are the same because of the always chainging Maven artifacts.
My latest problem: Maven didn't accept my locally installed artifacts when the
artifact graph was constructed. After deleting half a dozen Maven artifacts and
downloading them again, it seems to work.
I don't want to say that I regret the move to M2 but I'm not convinced anymore
that some design desicions of the Maven project are right :-/
Here the error:
Caused by: org.apache.maven.plugin.MojoExecutionException: Failure
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
jo.java:296)
at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.
java:242)
at org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRu
nMojo.java:122)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:160
)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
... 16 more
Caused by: javax.servlet.ServletException: Cannot load servlet org.apache.cocoon
.servlet.CocoonServlet
at org.apache.cocoon.servlet.ParanoidCocoonServlet.init(ParanoidCocoonSe
rvlet.java:112)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.jav
a:377)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:23
4)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
37)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.ja
va:565)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.jav
a:961)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
341)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:367
)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
37)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection
.java:101)
at org.mortbay.jetty.Server.doStart(Server.java:235)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
37)
at org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.
java:114)
at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMo
jo.java:285)
... 21 more
Caused by: java.lang.ClassCastException
at org.apache.cocoon.servlet.ParanoidCocoonServlet.init(ParanoidCocoonSe
rvlet.java:109)
... 34 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu May 18 17:16:34 GMT+01:00 2006
[INFO] Final Memory: 7M/14M
[INFO] ------------------------------------------------------------------------
1092 [Shutdown] INFO org.mortbay.log - Shutdown hook executing
1092 [Shutdown] INFO org.mortbay.log - Shutdown hook complete
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
Re: ParnoidCocoonServlet (was Re: svn commit: r407533 - in /cocoon/trunk/core/cocoon-webapp:
pom.xml src/main/webapp/WEB-INF/web.xml)
Posted by Carsten Ziegeler <cz...@apache.org>.
Reinhard Poetz schrieb:
> reinhard@apache.org wrote:
>> Author: reinhard
>> Date: Thu May 18 04:32:59 2006
>> New Revision: 407533
>>
>> URL: http://svn.apache.org/viewvc?rev=407533&view=rev
>> Log:
>> alter server version number to '2.2'; uncomment ParanoidCocoonServlet as it's not working ATM
>
> no offense but the ParanoidCocoonServlet causes exceptions for me because of
> problems with changed method signatures. Carsten, did you check in all changes?
>
Yes and it did work for me; are you sure that you are using the version
build locally?
If you look here:
http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-paranoid/cocoon-paranoid-impl/src/main/java/org/apache/cocoon/servlet/ParanoidCocoonServlet.java
you see that I changed the createClassLoader() method to be able to
instantiate a "normal" ParanoidClassLoader again.
I had similar problems with m2 and now I'm always doing a "clean
install" and most times remove my local repo as well.
Carsten
--
Carsten Ziegeler - Open Source Group, S&N AG
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
ParnoidCocoonServlet (was Re: svn commit: r407533 - in /cocoon/trunk/core/cocoon-webapp:
pom.xml src/main/webapp/WEB-INF/web.xml)
Posted by Reinhard Poetz <re...@apache.org>.
reinhard@apache.org wrote:
> Author: reinhard
> Date: Thu May 18 04:32:59 2006
> New Revision: 407533
>
> URL: http://svn.apache.org/viewvc?rev=407533&view=rev
> Log:
> alter server version number to '2.2'; uncomment ParanoidCocoonServlet as it's not working ATM
no offense but the ParanoidCocoonServlet causes exceptions for me because of
problems with changed method signatures. Carsten, did you check in all changes?
--
Reinhard Pötz Independent Consultant, Trainer & (IT)-Coach
{Software Engineering, Open Source, Web Applications, Apache Cocoon}
web(log): http://www.poetz.cc
--------------------------------------------------------------------
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de