You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Geoff Howard <co...@leverageweb.com> on 2003/01/22 22:02:50 UTC

class cast exception org.apache.excalibur.xml.impl.JaxpParser

I'm getting a class cast exception trying to start up a recent cvs version
of cocoon:

tail: access.log: file truncated
ERROR   (2003-01-22) 15:29.57:132   [access] (Unknown-URI)
Unknown-thread/Cocoon
Servlet: Exception reloading
org.apache.avalon.framework.configuration.ConfigurationException: Error
trying t
o load configurations
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:349)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:285)
<snip/>
Caused by: java.lang.ClassCastException:
org.apache.excalibur.xml.impl.JaxpParse
r
        at org.apache.cocoon.Cocoon.configure(Cocoon.java:341)
        ... 49 more

Could it be related to this change?
http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=104321277632058&w=2

Geoff Howard


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


RE: class cast exception org.apache.excalibur.xml.impl.JaxpParser

Posted by Geoff Howard <co...@leverageweb.com>.
You put me on the right cure.  I had some left over files in the build
directory from some incomplete builds (from the insufficient memory problem)
that happened to span the time those updates were made.  There were multiple
copies of excalibur-xmlutil**.jar, so the older one must have been causing
the problem.  Normally I'm careful to do a build clean after a cvs update,
but I must have snuck in another update while trying to get the memory
problem licked and forgotten about it.

Thanks,
Geoff

> -----Original Message-----
> From: Jeff Turner [mailto:jefft@apache.org]
> Sent: Wednesday, January 22, 2003 10:08 PM
> To: cocoon-dev@xml.apache.org
> Subject: Re: class cast exception
> org.apache.excalibur.xml.impl.JaxpParser
>
>
> On Wed, Jan 22, 2003 at 04:02:50PM -0500, Geoff Howard wrote:
> > I'm getting a class cast exception trying to start up a recent
> cvs version
> > of cocoon:
> >
> > tail: access.log: file truncated
> > ERROR   (2003-01-22) 15:29.57:132   [access] (Unknown-URI)
> > Unknown-thread/Cocoon
> > Servlet: Exception reloading
> > org.apache.avalon.framework.configuration.ConfigurationException: Error
> > trying t
> > o load configurations
> >         at org.apache.cocoon.Cocoon.configure(Cocoon.java:349)
> >         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:285)
> > <snip/>
> > Caused by: java.lang.ClassCastException:
> > org.apache.excalibur.xml.impl.JaxpParse
> > r
> >         at org.apache.cocoon.Cocoon.configure(Cocoon.java:341)
> >         ... 49 more
>
> Hmm.. and you've got a shiny clean CVS, classpath, tomcat lib/*/*.jar
> etc?  In particular, Cocoon should have a file
> xml-cocoon2/lib/core/excalibur-xmlutil-20030122.jar
>
> Do the samples fail in the same way?
>
> Cocoon.java:341 is:
>
>       p = (SAXParser)startupManager.lookup(SAXParser.ROLE);
>
> In cocoon.roles:
>
>   <role default-class="org.apache.excalibur.xml.impl.JaxpParser"
>   name="org.apache.excalibur.xml.sax.SAXParser" shorthand="xml-parser"/>
>
> In cocoon.xconf:
>
>   <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser"
>   logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">
>
>
> The JaxpParser class looks okay:
>
> jeff@expresso:~/apache/xml/xml-cocoon2$ javap -classpath \
> `echo lib/core/*.jar | tr ' ' ':'`\
>  org.apache.excalibur.xml.impl.JaxpParser
>
> Compiled from JaxpParser.java
> public final class org.apache.excalibur.xml.impl.JaxpParser
> extends org.apache.avalon.framework.logger.AbstractLogEnabled
> implements org.apache.excalibur.xml.sax.SAXParser,
> org.apache.excalibur.xml.dom.DOMParser,
> org.apache.avalon.excalibur.pool.Poolable,
> org.apache.avalon.framework.component.Component,
> org.apache.avalon.framework.parameters.Parameterizable,
> org.apache.avalon.framework.service.Serviceable,
> org.xml.sax.ErrorHandler {
> ...
>
>
> --Jeff
>
> > Could it be related to this change?
> > http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=104321277632058&w=2
> >
> > Geoff Howard
>
> ---------------------------------------------------------------------
> 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


Re: class cast exception org.apache.excalibur.xml.impl.JaxpParser

Posted by Jeff Turner <je...@apache.org>.
On Wed, Jan 22, 2003 at 04:02:50PM -0500, Geoff Howard wrote:
> I'm getting a class cast exception trying to start up a recent cvs version
> of cocoon:
> 
> tail: access.log: file truncated
> ERROR   (2003-01-22) 15:29.57:132   [access] (Unknown-URI)
> Unknown-thread/Cocoon
> Servlet: Exception reloading
> org.apache.avalon.framework.configuration.ConfigurationException: Error
> trying t
> o load configurations
>         at org.apache.cocoon.Cocoon.configure(Cocoon.java:349)
>         at org.apache.cocoon.Cocoon.initialize(Cocoon.java:285)
> <snip/>
> Caused by: java.lang.ClassCastException:
> org.apache.excalibur.xml.impl.JaxpParse
> r
>         at org.apache.cocoon.Cocoon.configure(Cocoon.java:341)
>         ... 49 more

Hmm.. and you've got a shiny clean CVS, classpath, tomcat lib/*/*.jar
etc?  In particular, Cocoon should have a file
xml-cocoon2/lib/core/excalibur-xmlutil-20030122.jar

Do the samples fail in the same way?

Cocoon.java:341 is:

      p = (SAXParser)startupManager.lookup(SAXParser.ROLE);

In cocoon.roles:

  <role default-class="org.apache.excalibur.xml.impl.JaxpParser"
  name="org.apache.excalibur.xml.sax.SAXParser" shorthand="xml-parser"/>

In cocoon.xconf:

  <xml-parser class="org.apache.excalibur.xml.impl.JaxpParser"
  logger="core.xml-parser" pool-grow="4" pool-max="32" pool-min="8">


The JaxpParser class looks okay:

jeff@expresso:~/apache/xml/xml-cocoon2$ javap -classpath \
`echo lib/core/*.jar | tr ' ' ':'`\
 org.apache.excalibur.xml.impl.JaxpParser

Compiled from JaxpParser.java
public final class org.apache.excalibur.xml.impl.JaxpParser extends org.apache.avalon.framework.logger.AbstractLogEnabled implements org.apache.excalibur.xml.sax.SAXParser, org.apache.excalibur.xml.dom.DOMParser, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.parameters.Parameterizable, org.apache.avalon.framework.service.Serviceable, org.xml.sax.ErrorHandler {
...


--Jeff

> Could it be related to this change?
> http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=104321277632058&w=2
> 
> Geoff Howard

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