RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Randy Layman


You need to get them info the classpath before the parser.jar file
is added.

You can do this several ways:
1.  Edit Tomcat.bat to add xalan/xerces before the internal
classpath is built
2.  Drop xalan/xerces into TOMCAT_HOME/lib and rename them to
_xalan/_xerces (or anything else that makes their file names before parser
when listed alphabetically).  Note, this only works if the tomcat.bat file
is setting the classpath dynamically, which it does on Unix and NT unless
you edited it.  I don't believe that this happens on Windows 9x/Me.

Randy

 -Original Message-
 From: Stefan Neumann [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 6:18 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat + FOP, missing method in org.w3c.dom.Node
 
 
 Hi,
 
 I try to use FOP 0.17.0 with Tomcat 3.22
 
 It seems that FOP is calling a method from the 
 org.w3c.dom.Node.class that's
 not
 available. Is it possible that Tomcat insists on using the 
 Node.class that
 is
 part of parser.jar in the Tomcat/lib-directory ??
 
 I already tried to put xalan.jar and xerces.jar into this 
 directory and
 added
 two lines to tomcat.bat:
 
 if exist %TOMCAT_HOME%\lib\xerces.jar set
 CP=%CP%;%TOMCAT_HOME%\lib\xerces.jar
 if exist %TOMCAT_HOME%\lib\xalan.jar set
 CP=%CP%;%TOMCAT_HOME%\lib\xalan.jar
 
 but it doesn't help:
 
 javax.servlet.ServletException: org.w3c.dom.Node: method
 getNamespaceURI()Ljava/lang/String; not found
 at org.apache.fop.apps.Driver.buildFOTree(Driver.java, Compiled Code)
 
 Thanks for any hint
 



RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Randy Layman


Strange, it should have worked, oh well...
There will be a place in tomcat.bat file labeled :setClasspath.
You want to replace
:setClasspath
set CP=%TOMCAT_HOME%\classes
with
:setClasspath
set CP=xalan.jar;xerces.jar;%TOMCAT_HOME%\classes

Be sure to make the paths to xalan and xerces are correct.

Randy

 -Original Message-
 From: Stefan Neumann [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 8:06 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node
 
 
 
  rename them to _xalan/_xerces
 Good trick :) but doesn't seem to work on Win2000
 
  add xalan/xerces before the internal classpath is built
 Can anybody give an exapmle how this would look like?
 
 Thanks, Randy!
 
 -Original Message-
 From: Randy Layman [mailto:[EMAIL PROTECTED]]
 Sent: Dienstag, 26. Juni 2001 12:51
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node
 
 
 
   You need to get them info the classpath before the 
 parser.jar file
 is added.
 
   You can do this several ways:
   1.  Edit Tomcat.bat to add xalan/xerces before the internal
 classpath is built
   2.  Drop xalan/xerces into TOMCAT_HOME/lib and rename them to
 _xalan/_xerces (or anything else that makes their file names 
 before parser
 when listed alphabetically).  Note, this only works if the 
 tomcat.bat file
 is setting the classpath dynamically, which it does on Unix 
 and NT unless
 you edited it.  I don't believe that this happens on Windows 9x/Me.
 
   Randy
 
 



RE: Tomcat + FOP, missing method in org.w3c.dom.Node

2001-06-26 Thread Stefan Neumann

NOW IT WORKS :)

For those with similar problems:
xalan.jar and xerces.jar are in the Tomcat-lib-folder and the relevant part
of the tomcat.bat is

rem - Set Up The Runtime
Classpath --

:setClasspath
set
CP=%TOMCAT_HOME%\lib\xalan.jar;%TOMCAT_HOME%\lib\xerces.jar;%TOMCAT_HOME%\cl
asses

Thank a lot to Randy!


-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 26. Juni 2001 13:41
To: [EMAIL PROTECTED]
Subject: RE: Tomcat + FOP, missing method in org.w3c.dom.Node



Strange, it should have worked, oh well...
There will be a place in tomcat.bat file labeled :setClasspath.
You want to replace
:setClasspath
set CP=%TOMCAT_HOME%\classes
with
:setClasspath
set CP=xalan.jar;xerces.jar;%TOMCAT_HOME%\classes

Be sure to make the paths to xalan and xerces are correct.

Randy