You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Willy Reinhardt <wr...@novell.com> on 2004/05/26 14:29:13 UTC

Different behavior when Cocoon is deployed as WAR archive

Hi,

I am using: 
- Cocoon 2.1.4
- JBoss 3.2.3
- JDK 1.4.2_40
- Linux Suse

I also test with
- Cocoon 2.1.4
- WebLogic 8.1
- JDK 1.4.2_40
- Windows 2000

I work during development with cocoon as exploded directory under my application server. Now for testing environnement I create a war archive deployed on same server but as war archive.
I have some XSL with following declaration:
xmlns:xf="http://apache.org/cocoon/jxforms/1.0" exclude-result-prefixes="xalan">

With exploded version it work fine but from WAR archive I got exception {Unable to get transformer handler for:...} with cause:
cause: org.xml.sax.SAXException: Impossible de résoudre le préfixe de l'espace de noms : xalan (Impossible to solve the namespace xalan)

If I remove from XSL declaration exclude-result-prefixes="xalan" it work again (but this isn't a good solution)

Anyone has an idea why and how can I solve this ?

Thanks

Willy

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


Re: Different behavior when Cocoon is deployed as WAR archive

Posted by Joerg Heinicke <jo...@gmx.de>.
On 26.05.2004 14:29, Willy Reinhardt wrote:

> Hi,
> 
> I am using: 
> - Cocoon 2.1.4
> - JBoss 3.2.3
> - JDK 1.4.2_40
> - Linux Suse
> 
> I also test with
> - Cocoon 2.1.4
> - WebLogic 8.1
> - JDK 1.4.2_40
> - Windows 2000
> 
> I work during development with cocoon as exploded directory under my application server. Now for testing environnement I create a war archive deployed on same server but as war archive.
> I have some XSL with following declaration:
> xmlns:xf="http://apache.org/cocoon/jxforms/1.0" exclude-result-prefixes="xalan">
> 
> With exploded version it work fine but from WAR archive I got exception {Unable to get transformer handler for:...} with cause:
> cause: org.xml.sax.SAXException: Impossible de résoudre le préfixe de l'espace de noms : xalan (Impossible to solve the namespace xalan)
> 
> If I remove from XSL declaration exclude-result-prefixes="xalan" it work again (but this isn't a good solution)
> 
> Anyone has an idea why and how can I solve this ?

The different behaviour points on different trax processor in use.

You should be able to solve it by declaring the xalan namespace in that 
stylesheet.

Joerg

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