Re: fop in tomcat-4.1.18 and struts-1.1-b2

2002-12-29 Thread Darrel Riekhof
Just in case anyone is interested:
Getting xslt to work was frustrating, but the final solution was simple. 
If I had replaced the xml lib jars in tomcat/common/endorsed with the 
newer versions from FOP, I wouldn't have had any problems.  Tomcat, 
Struts, and FOP are all happy, except for this hopefully harmless 
exception as tomcat starts up:

--
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Parse Fatal Error at line 551 column 44: The string -- is not 
permitted within comments.
org.xml.sax.SAXParseException: The string -- is not permitted within 
comments.
   at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
   at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown 
Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown 
Source)
snip
--

Anyone know what file tomcat is complaining about?
I also added the updated fop xml jars to my JAVA_HOME/jre/lib/endorsed 
dir in an earlier (futile) attempt to get things working, but I don't 
think that is necessary.  Apparently older versions of xerces or xalan 
or something is included in the java 1.4 rt.jar, and the xalan faq 
explains that this is one way to over-ride them.

Darrel
Darrel Riekhof wrote:
The conversion from .fo to .pdf seems to work using the tomcat xml 
libs. Don't think tomcat comes with xalan, so hopefully I can just 
throw fop's xalan.jar in my WEB-INF/lib, will find out soon.

Looks like struts-1.1-b2 depends on some xml parsing functionality 
that is specific to the version of xerces that comes with with tomcat, 
but thats just a guess on my part.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: fop in tomcat-4.1.18 and struts-1.1-b2

2002-12-29 Thread Joerg Pietschmann
On Sunday 29 December 2002 04:57, you wrote:
 Struts, and FOP are all happy, except for this hopefully harmless
 exception as tomcat starts up:
...
 Parse Fatal Error at line 551 column 44: The string -- is not
 permitted within comments.
...
 Anyone know what file tomcat is complaining about?
It's complaining about a double dash inside an XML comment, which is not
allowed. Track down which file is parsed, and check the comment spanning
the line mentioned in the error message. The problem may be harmless, or
indicate something has been uncorrectly commented out, so that the
parsed content does not mathc the user's expectations. It's better to check.

 Apparently older versions of xerces or xalan
 or something is included in the java 1.4 rt.jar, and the xalan faq
 explains that this is one way to over-ride them.
Correct. Unfortunately, the Xalan coming with jdk 1.4 has a handful
of annoying bugs causing a lot of frustration. I hope the JDK bugfix
distribution will include Xalan 2.4.1.

J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]