Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HTMLEntities.res not found

 
Massimo Giusti
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
i'm using Tomcat 4.0 as service on Windows 2000 Professional, JDK 1.4.0 and xalan, and I have this piece of code:
org.apache.xalan.serialize.Serializer serializer = org.apache.xalan.serialize.SerializerFactory.getSerializer
(org.apache.xalan.templates.OutputProperties.getDefaultMethodProperties("html"));

I have not problem for compilation, but when i run my application I have this error:
java.io.FileNotFoundException: C:\WINNT\SYSTEM32\HTMLEntities.res (The system cannot find the file specified)
Why my application search HTMLEntities.res under
C:\WINNT\SYSTEM32??? In my rt.jar, where i have classes
org.apache.xalan.serialize, there is HTMLEntities.res file!!!
Why this is not used and java serach this file under
C:\WINNT\SYSTEM32???
When I used Tomcat not as service, but I restart him with
TOMCAT_HOME/bin/startup command, Java search HTMLEntities.res file under TOMCAT_HOME/bin .... somebody have any idea?
My version of xalan.jar doesn't contain org.apache.xalan.serialize classes. I must use this version of xalan.jar because i must use org.apache.xalan.xslt, that in "normal" xalan.jar there aren't.
Thanks in advance,
MaX
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic