• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSLT - problem using Xalan API - Help Required.

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In weblogic I added "c:\weblogic\lib\xalan.jar;c:\weblogic\lib\xerces.jar;c:\weblogic\lib\xalanj1compat.jar" in the Classpath before c:\weblogic\lib\weblogicaux.jar".
THe .class files of XSLTProcessor, XSLTProcessorFactory, XSLTResultTarget etc are in xalanj1compat.jar. That's why added this to classpath.
I get the following error:
java.lang.NoClassDefError at org\apache\xalan\xslt\XSLTProcessorFactory.
Can any one suggest me a solution.
Thanks,
S.Suresh
 
author
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The compatibility jar (xalanj1compat.jar), which provides support for Xalan-Java 1 API, has been deprecated. Can you not use Xalan-Java 2/JAXP 1.1 API instead?
See: http://xml.apache.org/xalan-j/usagepatterns.html#compat
David
 
Suresh Selvaraj
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi David,
Thanks for your reply. I downloaded the new version of xalan java 2. I appended xalan.jar (of xalan j2) to xalanj1compat.jar. Still I got the problem.
I even tried using TransformerFactory etc that take xml/xsl files as input. In this case I used xalan java2 , i.e, I added xalan.jar and xerces.jar to the classpath and I got the Exception
NoClassDefFoundError for javax.xml.transform.Transformer.
When I extracted the xalan.jar, I was surprised to see that there were no ".class" files for any package! But still the xalan.jar shows file size of approx. 8MB.!
Any suggestions.
Thanks,
S.Suresh
 
Get out of my mind! Look! A tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic