You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2000/08/12 17:51:39 UTC

Re: ClassNotFoundException

Ricardo Rocha <ri...@apache.org> wrote:
>The ClassNotFoundException is thrown after compilation fails
>for the generated Java source file. This may be caused by
>the generated source file being empty. An empty file can
>result from failed code generation.

This seems like a bug. Better error messages should be provided.

I suggest checking for an empty source file before compilation, and throwing 
an exception with a message a bit like this:

>Verify your XSP page has a root <xsp:page> element and that
>the XSP namespace uri (http://www.apache.org/1999/XSP/Core)
>is correctly declared in this root element. Also, make sure
>there's only one "root element" inside <xsp:page>.


--
Robin Green
i-tao Ltd.
4 Skyline Village
Limeharbour
London E14 9TS
United Kingdom
Phone +44 20 7537 2233  Fax +44 70 8081 5118
http://www.i-tao.com


________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com