cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bari, Naeem" <nae...@Meridinet.com>
Subject RE: newbie question about <?cocoon-process type="xsp"?>
Date Mon, 19 Mar 2001 15:58:11 GMT

Hi,

Thanks for the response, here is the stack trace I get:

java.lang.ClassCastException:
_D_._Program_Files._Sybase._Jaguar_CTS_3_5._Repository._WebApplication._Coco
on._person
        at
org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.load(XSPJavaP
rocessor.java:168)
        at
org.apache.cocoon.processor.xsp.XSPProcessor.loadPage(XSPProcessor.java:542)
        at
org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:390)
        at org.apache.cocoon.Engine.handle(Engine.java:384)
        at org.apache.cocoon.Cocoon.service(Cocoon.java:183)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at com.sybase.jaguar.servlet.JagServlet.service(JagServlet.java:164)
        at
com.sybase.jaguar.servlet.JagRequestDispatcher.service(JagRequestDispatcher.
java:743)
        at
com.sybase.jaguar.servlet.ServletEngine.service(ServletEngine.java:524)
        at
com.sybase.jaguar.servlet.ServletServiceImpl.doService(ServletServiceImpl.ja
va:52)
        at
com.sybase.jaguar.servlet._sk_JaguarServlet_ServletService.invoke(_sk_Jaguar
Servlet_ServletService.java:140)

Any ideas? I can't figure it our from the generated file because I don't
think the error is in that file itself. You don't see anything wrong with
the XML file itself, right?

TVMIA (thanks VERY MUCH in advance ;),
naeem

> -----Original Message-----
> From: Tagunov Anthony [mailto:atagunov@nnt.ru]
> Sent: Sunday, March 18, 2001 10:11 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: newbie question about <?cocoon-process type="xsp"?>
> 
> 
> On Fri, 16 Mar 2001 17:26:07 -0600, Bari, Naeem wrote:
> 
> >
> >Hi,
> >
> >I have installed cocoon 1.8.2 on sybase's EAS 3.6.1,
> >and it runs ok.
> >
> >Here is an XML file that I have:
> >
> >------------------------------------
> ><?xml version="1.0" encoding="UTF-8"?>
> ><!--?cocoon-process type="xsp"?-->
> ><?cocoon-process type="xslt"?>
> ><?xml-stylesheet href="xsl/person.xsl" type="text/xsl"?>
> ><xsp:page
> >  language="java"
> >  xmlns:xsp="http://www.apache.org/1999/XSP/Core">
> >
> >        <person>
> >                <first_name>MIKE</first_name>
> >                <last_name>FORRESTER</last_name>
> >                <street1>133 CREEK RD</street1>
> >                <street2/>
> >                <city>MIAMI</city>
> >                <state_cd>FL</state_cd>
> >                <postal_cd>32166</postal_cd>
> >                <postal_cd_ext/>
> >                <country_cd>USA</country_cd>
> >                <area_cd>911</area_cd>
> >                <phone_nbr>1112222</phone_nbr>
> >                <phone_nbr_ext/>
> >                <email_address>N/A</email_address>
> >        </person>
> ></xsp:page>
> >------------------------------------
> >
> >Now, with my minimal XLS file (which I have not shown here),
> err.. XSL! (not xls, xls is M$ excel file ;-)

oops, I meant XSL :)

> >the above example works fine.
> >But note that <?cocoon-process type="xsp"?> is commented
> >out. If I include it, I get a ClassCastException at 
> XSPJavaProcessor.load.
> 
> Could you give a stack trace? Not enough info to track the problem
> 
> >I have checked my repository, and I do have a generated java 
> and class file
> >present.
> 
> Can you see from this file why the exception?
> 
> >
> >What am I doing wrong? any help will be gratefully accepted :)
> >
> >TIA,
> >naeem
> 
> 
> Best regards, 
>    Tagunov Anthony
> 
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message