Hi,
        I answer because nobody did, my answer isn't accurate. Sorry.

        I configured Tomcat as a service and without JBoss to work with Xalan &
Xerces but I don't know if it would work when you add JBoss.
        If the CLASSPATH ( for JBoss and Tomcat ) is the same, what I did won't
work because JBoss has code like "import com.sun.--". I removed jaxp.jar and
parser.jar and added xalan.jar and xerces.jar through the workers.properties
if you don't want to install Tomcat as a service you should change the
.bat/.sh file.
        Maybe if you remove only jaxp.jar ( don't remove parser.jar, it contains
com.sun.--- ) and add xerces.jar & xalan.jar ( they already contain jaxp
classes ) it will work.

        Two points that will make it more probable to work:
                - try to put xalan.jar and xerces.jar before parser.jar in the 
CLASSPATH
                - try setting within your code ( there is an example in the Xalan docs 
or
examples but I don't remember where now ) the system properties:

javax.xml.transform.TransformerFactory=org.apache.xalan.processor.Transforme
rFactoryImpl
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuil
derFactoryImpl
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryIm
pl

        If you do it, tell me how, I will have to do it when I have the time, after
exams. ;)
        Good luck.

//Juan



-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]En nombre de
[EMAIL PROTECTED]
Enviado el: miercoles, 24 de enero de 2001 19:31
Para: jBoss
Asunto: [jBoss-User] JBoss/Embedded Tomcat/Xalan-Xerces


Here's the facts:

Got a jsp that calls a bean that returns an XML document.   That
document specifies the .dtd file to be used in parsing it.  I'm using
the Xalan/Xerces classes from Apache and the class wants to go
looking for the .dtd file in the /bin directory of JBoss (in other words,
where it was launched from).

Is there some way I can configure JBoss, Tomcat or somehow in my
.ear/.war files where to go looking for this information?

I currently have all the .xsl and the .dtd files packaged as part of my
.war file and would like to reference them somehow.

Any ideas?

Robert


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to