[jboss-user] [Beginners Corner] - JBoss + Xerces + Xalan ... lots of problems
viniciuscarvalho
do-not-reply at jboss.com
Thu Dec 20 09:02:32 EST 2007
Hello there! I'm living a nightmare with xml-apis....
I have a transformation that works fine in my eclipse test cases:
| <message>
| <header>
| <id>1234</id>
| </header>
| <payload>
| <customer>
| <id/>
| </customer>
| </payload>
| </message>
|
| What I need is to copy the id from header to customer. Well hereÅ the xsl:
|
| <?xml version="1.0" encoding="ISO-8859-1"?>
| <xsl:stylesheet version="1.0"
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
| <xsl:template match="//customer/id">
| <xsl:variable name="idc" select="//payload/customer/id"/>
| <id><xsl:value-of select="$idc"/><id>
| </xsl:template>
|
| <xsl:template match="*">
| <xsl:copy>
| <xsl:apply-templates select="@*"/>
| <xsl:apply-templates select="node()"/>
| </xsl:copy>
| </xsl:template>
| </xsl:stylesheet>
|
|
Well, when deployed on jboss it does not work .
So I've ran my tests using the endorsed libs from jboss, well it really does not work with those xerces/xalan versions:(
Trying to start without the endorsed overriding mechanism from jboss, throws exceptions about xerces classes (hum, aren't they loaded by the bootstrap classloader from the JVM???).
It's really hard to figure which version o xalan do I need to get it working. I've already ask this at their list, and I'm stuck with this for over 2 days now. I've tried JDK 6.0, which really works, but since I'm using jbossws, I'm having issues with jaxb :(
anyone could point me a solution?
Best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114651#4114651
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114651
More information about the jboss-user
mailing list