Great... when I code XSP and when I make some error in the logic I get (of course) an error. An error contains a line number. Now I have to go to the work directory and look at the generated java file to find the error. Isn't it possible to display the line number of the error in the XSP?
-----Oorspronkelijk bericht----- Van: cyril vidal [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 25 april 2002 23:34 Aan: [EMAIL PROTECTED] Onderwerp: Re: Problems with XSP Thanks Vadim! It's now OK... ----- Original Message ----- From: "Vadim Gritsenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 25, 2002 11:14 PM Subject: RE: Problems with XSP > From: cyril vidal [mailto:[EMAIL PROTECTED]] > > I've put away the language attribute on the namespace. > So I have: > <?xml version="1.0" encoding="iso-8859-1"?> > <xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"> You still have wrong namespace. >From hello.xsp: <xsp:page language="java" xmlns:xsp="http://apache.org/xsp"> <page> ... </page> </xsp:page> Vadim > <xsp:logic> > static private int counter = 0; > > private synchronized int count(){ > return counter++; > } > </xsp:logic> > > <page> > <p> J'ai été visitée <xsp:expr>count()</xsp:expr> fois. </p> > </page> > </xsp:page> > > but it still doesn't work... > > ----- Original Message ----- > From: "Vadim Gritsenko" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, April 25, 2002 9:52 PM > Subject: RE: Problems with XSP > > > 1. Check XSP namespace. It is not correct. > 2. Is this valid UTF-8? Or ISO-8859-1? Specify encoding in <?xml?> > instruction. > > > Vadim > > -----Original Message----- > From: cyril vidal [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 2:41 PM > To: [EMAIL PROTECTED] > Subject: Re: Problems with XSP > > I've checked the Tomcat work directory, and there's just > compteur_xsp.java. > So compteur.xsp must not be correct. The code is the following: > <?xml version="1.0"?> > <xsp:page language="java" > xmlns:xsp="http://www.apache.org/1999/XSP/Core"> > <xsp:logic> > static private int counter = 0; > > private synchronized int count(){ > return counter++; > } > </xsp:logic> > > <page> > <p> J'ai été visitée <xsp:expr>count()</xsp:expr> fois. </p> > </page> > </xsp:page> > > Someone could tell me where's the error, please? > Best, > Cyril. > ----- Original Message ----- > From: Graaf, Edgar de (fin) > To: '[EMAIL PROTECTED]' > Sent: Wednesday, April 24, 2002 11:22 AM > Subject: RE: Problems with XSP > > Your XSP was not compiled because it contains some error. Then you don't > have a class and get a ClassNotFoundException. > > Search in the Tomcat work directory for compteur. Do you only find > compteur_xsp.java? Or also compteur_xsp.class? > > Regards > > Edgar > -----Oorspronkelijk bericht----- > Van: cyril vidal [mailto:[EMAIL PROTECTED]] > Verzonden: dinsdag 23 april 2002 21:55 > Aan: [EMAIL PROTECTED] > Onderwerp: Problems with XSP > HY! > > I would like to execute a very simple XSP sample. Here is my sitemap: > > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> > <map:components> > <map:generators default="file"> > <map:generator name="file" > src="org.apache.cocoon.generation.FileGenerator"/> > <map:generator name="serverpages" > src="org.apache.cocoon.generation.ServerPagesGenerator"/> > </map:generators> > > <map:transformers default="xslt"> > <map:transformer name="xslt" > src="org.apache.cocoon.transformation.TraxTransformer"/> > </map:transformers> > > <map:readers default="resource"> > <map:reader name="resource" > src="org.apache.cocoon.reading.ResourceReader"/> > </map:readers> > > <map:serializers default="html"> > <map:serializer name="xml" mime-type="text/xml" > src="org.apache.cocoon.serialization.XMLSerializer"/> > <map:serializer name="html" mime-type="text/html" > src="org.apache.cocoon.serialization.HTMLSerializer"/> > <map:serializer name="svg2png" > src="org.apache.cocoon.serialization.SVGSerializer" > mime-type="image/png"/> > <map:serializer name="fo2pdf" > src="org.apache.cocoon.serialization.FOPSerializer" > mime-type="application/pdf"/> > </map:serializers> > > <map:matchers default="wildcard"> > <map:matcher name="wildcard" > src="org.apache.cocoon.matching.WildcardURIMatcher"/> > </map:matchers> > > </map:components> > > <map:pipelines> > <map:pipeline> > <map:match pattern="index.html"> > <map:read src="static/index.html" mime-type="text/html"/> > </map:match> > </map:pipeline> > > <map:pipeline> > <map:match pattern="CinemaFO.pdf"> > <map:generate src="static/CinemaFO.xml"/> > <map:transform src="transforms/CinemaFO.xsl"/> > <map:serialize type="fo2pdf"/> > </map:match> > </map:pipeline> > > <map:pipeline> > <map:match pattern="compteur.xsp"> > <map:generate type="serverpages" src="transforms/compteur.xsp"/> > <map:transform src="transforms/page-html.xsl"/> > <map:serialize/> > </map:match> > </map:pipeline> > > </map:pipelines> > > </map:sitemap> > > Unfortunately, when I execute the file compteur.xsp, I get the following > error message: > type fatal > message Language Exception > description org.apache.cocoon.ProcessingException: Language Exception: > org.apache.cocoon.components.language.LanguageException: Could not load > class for program 'org\apache\cocoon\www\transforms\compteur_xsp' due to > a java.lang.ClassNotFoundException: > org.apache.cocoon.www.transforms.compteur_xsp > sender org.apache.cocoon.servlet.CocoonServlet > source Cocoon servlet > request-uri > /essai/compteur.xsp > path-info > compteur.xsp > Someone could help me, please? > Thanks, > Cyril. > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> > > > > --------------------------------------------------------------------- > 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: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>