cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: ClassCastException
Date Thu, 24 May 2001 16:21:36 GMT
Allan,

Here's the patch for the ClassCastException.

Thanks,
dims

Index: org/apache/cocoon/servlet/CocoonServlet.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/servlet/CocoonServlet.java,v
retrieving revision 1.5
diff -u -r1.5 CocoonServlet.java
--- org/apache/cocoon/servlet/CocoonServlet.java	2001/05/23 21:27:35	1.5
+++ org/apache/cocoon/servlet/CocoonServlet.java	2001/05/24 16:18:38
@@ -156,7 +156,7 @@
       * get the classloader to use for Cocoon instantiation
       */
      protected RepositoryClassLoader buildInitClassLoader() {
-         return new RepositoryClassLoader(new URL[] {},
Thread.currentThread().getContextClassLoader());
+         return new RepositoryClassLoader(new URL[] {}, this.getClass().getClassLoader());
      }
 
     /**


--- Allan Erskine <a.erskine@cs.ucl.ac.uk> wrote:
> I get the same error, fresh CVS, rm -rf ../work/* etc
> 
> Allan
> 
> Sven Kuenzler wrote:
> 
> > After solving the build problem and deploying cocoon.war, I get:
> > 
> > DEBUG   438     [cocoon  ] (Thread-10): Trying to load class:
> > org.hsqldb.jdbcDriver
> > DEBUG   477     [cocoon  ] (Thread-10): Using configuration file:
> > /cocoon.xconf
> > INFO    478     [cocoon  ] (Thread-10): Reloading from:
> > file:/home/svenk/src/jakarta-tomcat-3.2.1/webapps/cocoon/cocoon.xconf
> > ERROR   623     [cocoon  ] (Thread-10): Exception reloading
> > java.lang.ClassCastException: org.apache.cocoon.Cocoon
> >         at
> > org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:553)
> >         at
> > org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:152)
> >         at
> > org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)       
> > at org.apache.tomcat.core.Handler.init(Handler.java:215)
> >         at
> > org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
> >         at org.apache.tomcat.core.Handler.service(Handler.java:254)
> >         at
> > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> >         at
> > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
> >         at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> >         at
> >
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
> >         at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> >         at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> >         at
> > java.lang.Thread.run(Thread.java:484)                                
> > 
> > 
> > 	Sven....
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> > 
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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


Mime
View raw message