You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by James Cummings <Ja...@uea.ac.uk> on 2003/07/24 17:06:52 UTC

cocoon2.1m3-dev -> cocoon2.1rc1-dev problem

Hi there.

I had previous checked out a copy of cocoon2.1 from cvs and it was
working all fine and everything (cocoon2.1m3-dev) and as it had
been a couple weeks I thought I would update it.  So, following the
installation advice I did cvs -z3 update -d -P, which promptly
got me the latest update (cocoon2.1rc1-dev).

I did a ./build.sh webapp to update that, but now when I try
to run ./cocoon.sh servlet it starts up and then runs into a
problem. (error appended)

Any suggestions for the easiest way to get it working again?

Many Thanks,
-James

----------
Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
Using getRealPath: /home/james/cocoon-2.1/build/webapp/WEB-INF
Thu Jul 24 15:18:04 BST 2003 Listening for connections ...
Exception in thread "main" java.lang.reflect.InvocationTargetException
        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:324)
        at Loader.invokeMain(Unknown Source)
        at Loader.run(Unknown Source)
        at Loader.main(Unknown Source)
Caused by: java.lang.NoSuchMethodError:
org.apache.cocoon.components.LifecycleHelper.<init>(Lorg/ap ache/avalon/framework/logger/Logger;Lorg/apache/avalon/framework/context/Context;Lorg/apache/avalon /framework/service/ServiceManager;Lorg/apache/avalon/excalibur/component/RoleManager;Lorg/apache/av alon/excalibur/logger/LogKitManager;Lorg/apache/avalon/framework/configuration/Configuration;)V
        at org.apache.cocoon.woody.util.SimpleServiceSelector.configure(SimpleServiceSelector.java: 107)
        at org.apache.cocoon.woody.datatype.DefaultDatatypeManager.initialize(DefaultDatatypeManage
r.java:96)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultCompone
ntFactory.java:323)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeCo
mponentHandler.java:141)
        at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComp
onentManager.java:554)
        at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.ja
va:487)
        at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:321)
        at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1320)
        at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
       at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
       at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
        at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler
.java:150)
        at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
        at org.mortbay.http.HttpServer.start(HttpServer.java:647)
        at org.mortbay.jetty.Server.main(Server.java:429)
        ... 7 more
-----------


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


Re: cocoon2.1m3-dev -> cocoon2.1rc1-dev problem

Posted by Marc Portier <mp...@outerthought.org>.
James,

there were some recent changes to this LifecycleHelper
but none that got removed the constructor that is reported as not 
found in your stack trace... (at first sight that is, since the 
constructor shows up fine over here: 
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/cocoon/components/LifecycleHelper.java?rev=1.3&content-type=text/vnd.viewcvs-markup)

     public LifecycleHelper( final Logger logger,
             final Context context,
             final ServiceManager serviceManager,
             final RoleManager roles,
             final LogKitManager logkit,
             final Configuration configuration )


could you do a ./build.sh clean webapp?
(and check your local
cvs -z3 status 
src/java/org/apache/cocoon/components/LifecycleHelper.java

to show the same 1.3 revision)


if the clean build doesn't solve it then at least the error 
should show up as a compiler error.


HTH,
-marc=



James Cummings wrote:
> Hi there.
> 
> I had previous checked out a copy of cocoon2.1 from cvs and it was
> working all fine and everything (cocoon2.1m3-dev) and as it had
> been a couple weeks I thought I would update it.  So, following the
> installation advice I did cvs -z3 update -d -P, which promptly
> got me the latest update (cocoon2.1rc1-dev).
> 
> I did a ./build.sh webapp to update that, but now when I try
> to run ./cocoon.sh servlet it starts up and then runs into a
> problem. (error appended)
> 
> Any suggestions for the easiest way to get it working again?
> 
> Many Thanks,
> -James
> 
> ----------
> Use SHUTDOWN to close normally. Use [Ctrl]+[C] to abort abruptly
> Using getRealPath: /home/james/cocoon-2.1/build/webapp/WEB-INF
> Thu Jul 24 15:18:04 BST 2003 Listening for connections ...
> Exception in thread "main" java.lang.reflect.InvocationTargetException
>         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:324)
>         at Loader.invokeMain(Unknown Source)
>         at Loader.run(Unknown Source)
>         at Loader.main(Unknown Source)
> Caused by: java.lang.NoSuchMethodError:
> org.apache.cocoon.components.LifecycleHelper.<init>(Lorg/ap ache/avalon/framework/logger/Logger;Lorg/apache/avalon/framework/context/Context;Lorg/apache/avalon /framework/service/ServiceManager;Lorg/apache/avalon/excalibur/component/RoleManager;Lorg/apache/av alon/excalibur/logger/LogKitManager;Lorg/apache/avalon/framework/configuration/Configuration;)V
>         at org.apache.cocoon.woody.util.SimpleServiceSelector.configure(SimpleServiceSelector.java: 107)
>         at org.apache.cocoon.woody.datatype.DefaultDatatypeManager.initialize(DefaultDatatypeManage
> r.java:96)
>         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
>         at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultCompone
> ntFactory.java:323)
>         at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeCo
> mponentHandler.java:141)
>         at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComp
> onentManager.java:554)
>         at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.ja
> va:487)
>         at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282)
>         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:321)
>         at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1320)
>         at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:500)
>        at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:219)
>        at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHandler.java:436)
>         at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler
> .java:150)
>         at org.mortbay.jetty.servlet.WebApplicationContext.start(WebApplicationContext.java:442)
>         at org.mortbay.http.HttpServer.start(HttpServer.java:647)
>         at org.mortbay.jetty.Server.main(Server.java:429)
>         ... 7 more
> -----------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0116284/
mpo@outerthought.org                              mpo@apache.org


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