The class is located in the rt.jar file. The package name of the class was changed (according to this source: http://java.sun.com/webservices/whatsnew.html)
Why is this property not set automatically with JDK 5.0? Could anybody confirm this, please?
I've got the same problem with jdk 1.5 and tomcat 5.0 and I've found the problem
in tomcat java is called with the following argument:
-Djava.endorsed.dirs="X:\my_app\Portal\tomcat\common\endorsed"
In this directory you find two jar files: xercesImpl.jar and xml-apis.jar needed by tomcat and that must be loaded before all xmsl stuff present in the jdk (1.4 naming problem). And in the file xml-apis.jar the TransformerFactoryImpl is set to "org.apache.xalan.processor.TransformerFactoryImpl".
The solution: remove the file xml-apis.jar from the directory.
For other application, just check this file or dom3-xml-apis.jar in your class path
I was getting the same exception/error when I tried to run my web application in Tomcat 5.0.x with JDK 1.5.
JDK 1.5 doesn't have xalan libraries and hence it throws this exception.
Copy the xalan.jar and serializer.jar, xercesImpl.jar, xml-apis.jar (this are needed as there are dependencies from xalan.jar) into the tomcat_home/common/endorsed folder.
If some of the jars are already present, there is no need to overwrite the files.
You can get the required files from the following website:
http://xml.apache.org/xalan-j/
Hi christoph76,
Thanks, your solution worked fine for me:
System.setProperty("javax.xml.transform.TransformerFactory", "com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
Ciao Carcio
Such a small change fixes lot many things, Thanks alot again!!
I had to download xalan-j_2_7_0-bin-2jars though I already downloaded xalan-j_2_7_0-bin, because it contained serializer.jar file which was also to be copied to CATALINA_HOME\common\endorsed .
Then I execute the index.html that came along with Struts2 blank.war on the server and voila ! I had Struts 2 configured and working in Eclipse 3.2.1 with Apache Tomcat 5.5.
Thanks again !
This topic has
19
replies
on
2
pages.
1
|
2
|
Next »