Re: Cocoon Error

2002-02-25 Thread Baer Peter

It may help to put a space infront of the closing angle bracket, like so:



No logical explanation for this, sorry, but for us it worked occasionally...

-pb-

 >I get the following error :
 >
 >org.xml.sax.SAXParseException: White space is required between the
 >version and the encoding declaration.
 >
 >
 >with all of my xml files even with those successfully converted to >html.
 >
 >Here is the starting point of those files :
 >
 >
 >
 >
 >
 >
 >
 >have an idea ?
 >
 >--
 >Yvon Thoraval


-- 
+---+-+
|  >>>  mailto:[EMAIL PROTECTED]  <<< |
+-+


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Cocoon Error

2002-02-25 Thread Yvon Bricole

>It may help to put a space infront of the closing angle bracket, like so:
>
>

i've tried it, don't work ! 
but perhaps a coincidence, this arroses after i've forgotten two things :

- the xslt declaration :


- the encoding :

i did have wrotten :

instead of :


that's the reason i've thought upon an error catched by Tomcazt or
Cocoon, because, again, files without any change are no more working
"correctly now.

anyway tanxs !


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: cocoon error

2001-08-30 Thread Peter Royal

At 11:56 AM 8/30/2001 -0700, you wrote:
>-
>
>Publishing Engine could not be initialized.
>
>
>java.lang.RuntimeException: Exception when creating "
>org.apache.cocoon.processor.xsp.XSPProcessor" :
>java.lang.NoSuchMethodError: See
>http://xml.apache.org/cocoon/faqs.html#faq-normalize
> at java.lang.Throwable.fillInStackTrace(Native
>Method)
> at java.lang.Throwable.(Compiled Code)
>---

If you bothered to goto the webpage indicated, you would read:

I get a java.lang.NoSuchMethodError when running XSP. What's wrong?

This happens because Cocoon needs a DOM Level 2 implementation and you 
probably have a DOM Level 1 included in your classpath before xerces.jar.

So, place the xerces.jar archive that comes with Cocoon before all the 
other jar packages in your classpath.

Some servlet engines, such as Tomcat, construct a CLASSPATH automatically 
based on all the jar files in a lib directory. In this case, you may need 
to rename the jar file containing the DOM Level 1 (xml.jar or parser.jar) 
to something like zzz.jar to force it to come last, or even move it out of 
the lib directory altogether.

If even that doesn't work, also check that there is no XML parser in your 
JDK's lib/ext or jre/lib/ext directories. If there is, remove it.

  Unfortunately, some servlet engines require DOM Level 1 to be ahead of 
DOM Level 2 in the CLASSPATH - conflicting with Cocoon! There is no known 
workaround for this problem (but see the next question) - please let us 
know at [EMAIL PROTECTED] if you find one.


-pete

-- 
peter royal -> [EMAIL PROTECTED]
managing partners, inc. -> http://www.managingpartners.com


-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: Cocoon Error (oups !)

2002-02-25 Thread Yvon Bricole


>It may help to put a space infront of the closing angle bracket, like so:
>
>

i've tried it, don't work ! 
but perhaps a coincidence, this arroses after i've forgotten two things :

- the xslt declaration :


- the encoding :

i did have wrotten :



instead of :



that's the reason i've thought upon an error catched by Tomcazt or
Cocoon, because, again, files without any change are no more working
"correctly now.

anyway tanxs !




-
Please check that your question has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>