totally new to FOP -Please help me

2005-02-07 Thread Manisha Sathe
I am very new to fop - just started learningit. 

1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of itigot error -

[ERROR] No Input file specified

What's missing ? JAVA_HOME is set properly. 

5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors
--
import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger;
import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level;
public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl";
 protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger);
 try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF);
 //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
 // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream();
 //set the driver outputStream driver.setOutputStream(outStream);
 //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource());
 //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content);
 httpServletResponse.getOutputStream().flush();
 } catch (Exception e) { e.printStackTrace(); }
 }
}


I am getting following:

D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport
 org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport
 org.apache.avalon.framework.logger.ConsoleLogger; ^

Please can anybody give me clue about it ? What am i doing wrong ?

regards
Manisha



		Do you Yahoo!? 
Meet the all-new My Yahoo! – Try it today! 

Re: totally new to FOP -Please help me

2005-02-07 Thread Manisha Sathe
hi all,

1) no 5 i could sort it out - some silly mistake in my classpath settings. but no 4 is as it is

regards
Manisha
Manisha Sathe [EMAIL PROTECTED] wrote:

I am very new to fop - just started learningit. 

1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i geto/p as mentioned in the document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of itigot error -

[ERROR] No Input file specified

What's missing ? JAVA_HOME is set properly. 

5)I also tried to compile one servlet (which i got it from web) -iput inside the classpath fop.jar and all other jars those inside fop.bat. But i am getting errors
--
import org.apache.fop.apps.Driver;import org.apache.fop.apps.XSLTInputHandler;import org.apache.fop.render.Renderer;import org.apache.avalon.framework.logger.Logger;import org.apache.avalon.framework.logger.ConsoleLogger;
import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import javax.servlet.ServletException;import javax.servlet.ServletOutputStream;import javax.xml.transform.stream.StreamSource;import javax.xml.transform.Transformer;import javax.xml.transform.TransformerFactory;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.util.logging.Level;
public class FOPServlet extends HttpServlet{ private String xmlFile = "data.xml"; private String xslFile = "pdfGen.xsl";
 protected void doGet(HttpServletRequest httpServletRequest, HttpServletResponsehttpServletResponse) throws ServletException, IOException { // set up a FOP driver Driver driver = new Driver(); // set up the logger for the driver Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO); driver.setLogger(logger);
 try { //set the renderer to be PDF driver.setRenderer(Driver.RENDER_PDF);
 //create the input from the XSLT transform XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
 // now prepare the outputStrean ByteArrayOutputStream outStream = new ByteArrayOutputStream();
 //set the driver outputStream driver.setOutputStream(outStream);
 //do the XSLT driver.render(inputHandler.getParser(), inputHandler.getInputSource());
 //now that the content is written in the output stream, //get ready to send the response back to browser byte[] content = outStream.toByteArray(); httpServletResponse.setContentLength(content.length); // set the MIME-TYPE httpServletResponse.setContentType("application/pdf"); //write the content httpServletResponse.getOutputStream().write(content);
 httpServletResponse.getOutputStream().flush();
 } catch (Exception e) { e.printStackTrace(); }
 }
}


I am getting following:

D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: package org.apache.fop.apps does not existimport org.apache.fop.apps.Driver; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: package org.apache.fop.apps does not existimport org.apache.fop.apps.XSLTInputHandler; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: package org.apache.fop.render does not existimport
 org.apache.fop.render.Renderer; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: package org.apache.avalon.framework.logger does not existimport org.apache.avalon.framework.logger.Logger; ^D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: package org.apache.avalon.framework.logger does not existimport
 org.apache.avalon.framework.logger.ConsoleLogger; ^

Please can anybody give me clue about it ? What am i doing wrong ?

regards
Manisha





Do you Yahoo!?Meet the all-new My Yahoo! – Try it today! 
		Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard.

Re: totally new to FOP -Please help me

2005-02-07 Thread The Web Maestro
On Feb 6, 2005, at 9:38 PM, Manisha Sathe wrote:
I am very new to fop - just started learning it.
  
1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i get o/p as mentioned in the 
document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of it i got error -
 
[ERROR] No Input file specified
 
What's missing ? JAVA_HOME is set properly.
Running D:\fop-0.20.5\fop.bat will give you the the usage, since you're 
not specifying an input file.

The USAGE is:
fop [options] [-fo|-xml] infile [-xsl file] 
[-awt|-pdf|-mif|-pcl|-ps|-txt|-svg|-at|-print] outfile

(the | means OR so [-fo|-xml] means either -fo OR -xml)
In the case of:
  D:\fop-0.20.5\fop.bat -xsl foo.xsl -xml foo.xml -pdf foo.pdf
foo.xsl represents the xslt file
foo.xml represents an input xml file
foo.pdf represents an output pdf file
and so on...
Here're six examples:
  D:\fop-0.20.5\fop.bat foo.fo foo.pdf
  D:\fop-0.20.5\fop.bat -fo foo.fo -pdf foo.pdf (does the same as 
the previous line)
  D:\fop-0.20.5\fop.bat -xsl foo.xsl -xml foo.xml -pdf foo.pdf
  D:\fop-0.20.5\fop.bat foo.fo -mif foo.mif
  D:\fop-0.20.5\fop.bat foo.fo -print or fop -print foo.fo
  D:\fop-0.20.5\fop.bat foo.fo -awt

5)I also tried to compile one servlet (which i got it from web) 
- i put inside the classpath fop.jar and all other jars those inside 
fop.bat. But i am getting errors
I don't know about servlets or embedding, but this might help:
http://xml.apache.org/fop/servlets.html
Please can anybody give me clue about it ? What am i doing wrong ?
 
regards
Manisha
Hope this helps!
Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: totally new to FOP -Please help me

2005-02-07 Thread jeb501
Please refer to documents in your

D:\fop-0.20.5\build\site\running.html

the command line args  are

fop -fo input.fo -pdf output.pdf

here input.fo is your input file and output.pdf is your output file

hope this clarifies you.

Cheers
Eugene



Manisha Sathe [EMAIL PROTECTED] 
07.02.2005 11:50
Please respond to
[EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
Re: totally new to FOP -Please help me






hi all,
 
1) no 5 i could sort it out - some silly mistake in my classpath settings. 
 but no 4 is as it is
 
regards
Manisha

Manisha Sathe [EMAIL PROTECTED] wrote:
I am very new to fop - just started learning it. 
 
1)I downloaded the fop - 0.20.5 - binary version for windows (.zip)
2)Unzipped it (D:\fop-0.20.5)
3)Trying to run D:\fop-0.20.5\fop.bat - i get o/p as mentioned in the 
document
http://apache.oss.eznetsols.org/xml/fop/
4)but at the end of it i got error -
 
[ERROR] No Input file specified
 
What's missing ? JAVA_HOME is set properly. 
 
5)I also tried to compile one servlet (which i got it from web) - i put 
inside the classpath fop.jar and all other jars those inside fop.bat. But 
i am getting errors
--
import org.apache.fop.apps.Driver;
import org.apache.fop.apps.XSLTInputHandler;
import org.apache.fop.render.Renderer;
import org.apache.avalon.framework.logger.Logger;
import org.apache.avalon.framework.logger.ConsoleLogger;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import java.io.IOException;
import java.io.ByteArrayOutputStream;
import java.util.logging.Level;

public class FOPServlet extends HttpServlet
{
private String xmlFile = data.xml;
private String xslFile = pdfGen.xsl;
protected void doGet(HttpServletRequest httpServletRequest, 
HttpServletResponse
httpServletResponse) throws ServletException, IOException
{
// set up a FOP driver
Driver driver = new Driver();
// set up the logger for the driver
Logger logger = new ConsoleLogger(ConsoleLogger.LEVEL_INFO);
driver.setLogger(logger);
try
{
//set the renderer to be PDF
driver.setRenderer(Driver.RENDER_PDF);
//create the input from the XSLT transform
XSLTInputHandler inputHandler = new XSLTInputHandler(xmlFile, 
xslFile);
// now prepare the outputStrean
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
//set the driver outputStream
driver.setOutputStream(outStream);
//do the XSLT
driver.render(inputHandler.getParser(), 
inputHandler.getInputSource());
//now that the content is written in the output stream,
//get ready to send the response back to browser
byte[] content = outStream.toByteArray();
httpServletResponse.setContentLength(content.length);
// set the MIME-TYPE
httpServletResponse.setContentType(application/pdf);
//write the content
httpServletResponse.getOutputStream().write(content);
httpServletResponse.getOutputStream().flush();
} catch (Exception e)
{
e.printStackTrace();
}
}
}

 
I am getting following:
 
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:1: 
package org.apache.fop.apps does not exist
import org.apache.fop.apps.Driver;
   ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:2: 
package org.apache.fop.apps does not exist
import org.apache.fop.apps.XSLTInputHandler;
   ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:3: 
package org.apache.fop.render does not exist
import org.apache.fop.render.Renderer;
 ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:4: 
package org.apache.avalon.framework.logger does not exist
import org.apache.avalon.framework.logger.Logger;
  ^
D:\jakarta-tomcat-5.0.25\webapps\rr_lesson_1\WEB-INF\classes\FOPServlet.java:5: 
package org.apache.avalon.framework.logger does not exist
import org.apache.avalon.framework.logger.ConsoleLogger;
  ^
 
Please can anybody give me clue about it ? What am i doing wrong ?
 
regards
Manisha
 
 
 
Do you Yahoo!?
Meet the all-new My Yahoo!  Try it today! 
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.



FW: Delimiter as Tab, Please help me

2004-09-16 Thread KS.Bhaskar








Hi everybody,



 Please send me the solution if
anybody has. Also give me some hints regarding new line characters, user defined
delimiters. 



Thanks in advance.



Regards,

Bhaskar











From: K S Bhaskar
-ICEXT 
Sent: Wednesday, September 15,
2004 4:32 PM
To: '[EMAIL PROTECTED]'
Subject: Delimiter as Tab, Please
help me





Hi everybody,




How can I implement tab as a delimiter , XSL.


Please help me






Thanks in advance.



Regards,

Bhaskar



DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 




Delimiter as Tab, Please help me

2004-09-15 Thread KS.Bhaskar








Hi everybody,



 How can I implement tab as a delimiter , XSL.

 Please help me





 Thanks in advance.



Regards,

Bhaskar



DISCLAIMER:This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. 




RE: Please help me( Error in Servlet to run fop)

2004-08-20 Thread KS.Bhaskar
Hello Glen,

I am set path for jar files correctly and also I already
replaced my jar files with new ones. Also I am sending the log file
generated by Tomcat.

Please advise me.

And thanks for your suggestions.

Regards,
Bhaskar

-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 19, 2004 10:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Please help me( Error in Servlet to run fop)

Hello Bhaskar, 

Looking at the error stack at the point where FOP was
invoked, it is possible you're having a problem with
the xerces and xalan jars in the servlet container.

Either (1) they're not present in either the shared/
or common/ directories of the servlet container, or
(2) they are, but they're old/buggy versions.  My
guess would be (1)--it just can't find the XML
libraries.  

HTH,
Glen


org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120
)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
at
org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactor
yImpl.java:95)
at
org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)


--- [EMAIL PROTECTED] wrote:

 Hi everybody,
 
  
 
 I am using fop to generate report. I
 have set the path of
 JAR file properly. But when tried to create object
 for Driver() class it
 is throwing an error.
 
 I sending attachment (Error.txt) file containing
 error message and I
 using Tomcat1.4.
 
  
 
 Thanks in advance.
 
  
 
 Regards,
 
 Bhaskar
 


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



2004-08-20 10:51:08 HostConfig[localhost]: Deploying configuration descriptor 
admin.xml
2004-08-20 10:51:09 HostConfig[localhost]: Deploying configuration descriptor 
manager.xml
2004-08-20 10:51:09 WebappLoader[/manager]: Deploying class repositories to 
work directory C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\manager
2004-08-20 10:51:09 ContextConfig[/manager]: Configured an authenticator for 
method BASIC
2004-08-20 10:51:09 StandardManager[/manager]: Seeding random number generator 
class java.security.SecureRandom
2004-08-20 10:51:09 StandardManager[/manager]: Seeding of random number 
generator has been completed
2004-08-20 10:51:09 StandardWrapper[/manager:default]: Loading container 
servlet default
2004-08-20 10:51:09 StandardWrapper[/manager:invoker]: Loading container 
servlet invoker
2004-08-20 10:51:09 HostConfig[localhost]: Deploying web application directory 
bas
2004-08-20 10:51:09 StandardHost[localhost]: Installing web application at 
context path /bas from URL file:C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas
2004-08-20 10:51:09 WebappLoader[/bas]: Deploying class repositories to work 
directory C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\bas
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy class files /WEB-INF/classes to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\classes
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/avalon-framework-cvs-20020806.jar to C:\Program Files\Apache 
Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\avalon-framework-cvs-20020806.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/batik.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\batik.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/iflex_common_1_0_0.jar to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\iflex_common_1_0_0.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/xalan-2.4.1.jar 
to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\xalan-2.4.1.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR 
/WEB-INF/lib/xercesImpl-2.2.1.jar to C:\Program Files\Apache Group\Tomcat 
4.1\webapps\bas\WEB-INF\lib\xercesImpl-2.2.1.jar
2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR /WEB-INF/lib/xml-apis.jar to 
C:\Program Files\Apache Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\xml-apis.jar
2004-08-20 10:51:10 StandardManager[/bas]: Seeding random number generator 
class java.security.SecureRandom
2004-08-20 10:51:10 StandardManager[/bas]: Seeding of random number generator 
has been completed
2004-08-20 10:51:10 StandardWrapper[/bas:default]: Loading container servlet 
default
2004-08-20 10:51:10 StandardWrapper[/bas:invoker]: Loading container servlet 
invoker
2004-08-20 10:51:10 HostConfig[localhost]: Deploying web application directory 
ROOT
2004-08-20 10:51:10 StandardHost[localhost]: Installing web application at 
context path  from URL file:C:\Program Files\Apache Group\Tomcat 
4.1\webapps\ROOT
2004-08-20 10:51:10 WebappLoader[]: Deploying class repositories to work 
directory C:\Program Files\Apache Group

RE: Please help me( Error in Servlet to run fop)

2004-08-20 Thread Glen Mazza
Did you also include the batik.jar and avalon.jar?  I
don't have any more answers at this stage.  You may
wish to send your question to the Tomcat-Users list,
they may be able to understand your exception list
more easily and can point you to the problem.

I would also search the Tomcat-Users and Struts-Users
(even though you're not using Struts) lists for FOP,
hopefully someone has had your problem.  Also, search
this mailing list (URL below will also get you there)
for Servlet--see if you can a simpler example that
works.

Also, what happens if you comment out the FOP portions
of your Servlet--does it work then?  

Glen

[1]
http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=FOPq=b

--- [EMAIL PROTECTED] wrote:

 Hello Glen,
 
   I am set path for jar files correctly and also I
 already
 replaced my jar files with new ones. Also I am
 sending the log file
 generated by Tomcat.
 
 Please advise me.
 
 And thanks for your suggestions.
 
 Regards,
 Bhaskar
 
 -Original Message-
 From: Glen Mazza [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 19, 2004 10:02 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Please help me( Error in Servlet to run
 fop)
 
 Hello Bhaskar, 
 
 Looking at the error stack at the point where FOP
 was
 invoked, it is possible you're having a problem with
 the xerces and xalan jars in the servlet container.
 
 Either (1) they're not present in either the shared/
 or common/ directories of the servlet container, or
 (2) they are, but they're old/buggy versions.  My
 guess would be (1)--it just can't find the XML
 libraries.  
 
 HTH,
 Glen
 
 

org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120
 )
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
   at

org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
   at

org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
   at 

org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactor
 yImpl.java:95)
   at

org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)
 
 
 --- [EMAIL PROTECTED] wrote:
 
  Hi everybody,
  
   
  
  I am using fop to generate report. I
  have set the path of
  JAR file properly. But when tried to create object
  for Driver() class it
  is throwing an error.
  
  I sending attachment (Error.txt) file containing
  error message and I
  using Tomcat1.4.
  
   
  
  Thanks in advance.
  
   
  
  Regards,
  
  Bhaskar
  
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
  2004-08-20 10:51:08 HostConfig[localhost]:
Deploying
 configuration descriptor admin.xml
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 configuration descriptor manager.xml
 2004-08-20 10:51:09 WebappLoader[/manager]:
 Deploying class repositories to work directory
 C:\Program Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\manager
 2004-08-20 10:51:09 ContextConfig[/manager]:
 Configured an authenticator for method BASIC
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding random number generator class
 java.security.SecureRandom
 2004-08-20 10:51:09 StandardManager[/manager]:
 Seeding of random number generator has been
 completed
 2004-08-20 10:51:09
 StandardWrapper[/manager:default]: Loading container
 servlet default
 2004-08-20 10:51:09
 StandardWrapper[/manager:invoker]: Loading container
 servlet invoker
 2004-08-20 10:51:09 HostConfig[localhost]: Deploying
 web application directory bas
 2004-08-20 10:51:09 StandardHost[localhost]:
 Installing web application at context path /bas from
 URL file:C:\Program Files\Apache Group\Tomcat
 4.1\webapps\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploying
 class repositories to work directory C:\Program
 Files\Apache Group\Tomcat
 4.1\work\Standalone\localhost\bas
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy class
 files /WEB-INF/classes to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\classes
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/avalon-framework-cvs-20020806.jar to
 C:\Program Files\Apache Group\Tomcat

4.1\webapps\bas\WEB-INF\lib\avalon-framework-cvs-20020806.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/batik.jar to C:\Program Files\Apache
 Group\Tomcat 4.1\webapps\bas\WEB-INF\lib\batik.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/iflex_common_1_0_0.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\iflex_common_1_0_0.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xalan-2.4.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xalan-2.4.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF/lib/xercesImpl-2.2.1.jar to C:\Program
 Files\Apache Group\Tomcat
 4.1\webapps\bas\WEB-INF\lib\xercesImpl-2.2.1.jar
 2004-08-20 10:51:09 WebappLoader[/bas]: Deploy JAR
 /WEB-INF

Please help me( Error in Servlet to run fop)

2004-08-19 Thread KS.Bhaskar








Hi everybody,



 I
am using fop to generate report. I have set the path of JAR file properly. But
when tried to create object for Driver() class it is throwing an error.

I sending attachment (Error.txt) file containing error
message and I using Tomcat1.4.



Thanks in advance.



Regards,

Bhaskar

















 






javax.servlet.ServletException: Servlet execution threw an exception
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:479)


java.lang.VerifyError: Cannot inherit from final class
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at 
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:621)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:958)
at 
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.createContentDispatcher(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.(XMLDocumentFragmentScannerImpl.java:249)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl.(XMLDocumentScannerImpl.java:245)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.(Unknown Source)
at 
org.apache.xerces.parsers.IntegratedParserConfiguration.createDocumentScanner(Unknown
 Source)
at 
org.apache.xerces.parsers.DTDConfiguration.(DTDConfiguration.java:367)
at 
org.apache.xerces.parsers.StandardParserConfiguration.(StandardParserConfiguration.java:198)
at org.apache.xerces.parsers.IntegratedParserConfiguration.(Unknown 
Source)
at 

Re: Please help me( Error in Servlet to run fop)

2004-08-19 Thread Glen Mazza
Hello Bhaskar, 

Looking at the error stack at the point where FOP was
invoked, it is possible you're having a problem with
the xerces and xalan jars in the servlet container.

Either (1) they're not present in either the shared/
or common/ directories of the servlet container, or
(2) they are, but they're old/buggy versions.  My
guess would be (1)--it just can't find the XML
libraries.  

HTH,
Glen


org.apache.xerces.util.ObjectFactory.createObject(ObjectFactory.java:120)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:140)
at
org.apache.xerces.parsers.SAXParser.(SAXParser.java:125)
at
org.apache.xerces.jaxp.SAXParserImpl.(SAXParserImpl.java:102)
at 
org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(SAXParserFactoryImpl.java:95)
at
org.apache.fop.apps.Driver.getParserClassName(Driver.java:208)


--- [EMAIL PROTECTED] wrote:

 Hi everybody,
 
  
 
 I am using fop to generate report. I
 have set the path of
 JAR file properly. But when tried to create object
 for Driver() class it
 is throwing an error.
 
 I sending attachment (Error.txt) file containing
 error message and I
 using Tomcat1.4.
 
  
 
 Thanks in advance.
 
  
 
 Regards,
 
 Bhaskar
 


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



Please help me in Page border

2004-06-08 Thread KS.Bhaskar








Hi everybody,



Is there any way to have page border for the document ? How
to implement it in multiple pages?

If yes, How to implement it in multiple pages?

please help me.



With regards

Bhaskar 








Re: Please help me in Page border

2004-06-08 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
Hi everybody,
 

Is there any way to have page border for the document ? How to implement 
it in multiple pages?
Can you elaborate a little? Do you mean just some space between paper edge and 
 flowing text or do you mean thin lines around the edge of the page?

If yes, How to implement it in multiple pages?
fo:page-sequence-master and fo:repeatable-page-master-reference will help 
you achieve what you want. If you just have a single simple page master that 
you want used for infinite possible pages then:

fo:layout-master-set
fo:simple-page-master name=a4
...
fo:simple-page-master
fo:page-sequence-master
fo:repeatable-page-master-reference master-reference=a4/
/fo:page-sequence-master
/fo:layout-master-set
If you want different borders/regions on different pages then that too is 
possible, please elaborate your requirements.

Chris

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


Re: Please help me

2004-06-06 Thread Glen Mazza
Yes, take a look at these examples [1] , in particular the 
fo:page-sequence-master elements near the top of three of the more 
complex examples.

[1] http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/fo/pagination/
Glen
[EMAIL PROTECTED] schrieb:
If you want more than One Page, you can use repeatable page master or 
conditional page master

Regards
Jerald S
-Original Message-
*From:* [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]
*Sent:* Friday, June 04, 2004 12:48 PM
*To:* [EMAIL PROTECTED]
*Subject:* Please help me

Hi everybody
When execute the command fop infile xml prac.xml xsl prac.xsl pdf 
prac.pdf  I am getting the pdf file with single page only, though 
there are many data in the xml file.

Earlier it was working fine means I was getting 3 pages in the pdf 
file. But after me using fo:block-container within the body of 
fo:flow flow-name=xsl-region-body I am getting only one page in 
the pdf file and I am using fo:simple-page-master tag

With Regards
Bhaskar
Confidentiality Notice
The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.
   


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


Please help me

2004-06-04 Thread KS.Bhaskar












Hi everybody



When execute the command fop infile xml prac.xml xsl
prac.xsl pdf prac.pdf  I am getting the pdf file with single page only,
though there are many data in the xml file.



Earlier it was working fine means I was getting 3 pages in the pdf
file. But after me using fo:block-container within the body of
fo:flow flow-name=xsl-region-body I am getting only
one page in the pdf file and I am
using fo:simple-page-master tag



With Regards

Bhaskar 










RE: Please help me

2004-06-04 Thread jerald.selvaraj








If you want more than One Page, you can
use repeatable page master or conditional page master

Regards

Jerald S



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, June 04, 2004 12:48
PM
To: [EMAIL PROTECTED]
Subject: Please help me







Hi everybody



When execute the command fop
infile xml prac.xml xsl prac.xsl pdf prac.pdf  I am
getting the pdf file with single page only, though there are many data in
the xml file.



Earlier it was working fine means I was getting 3
pages in the pdf file. But after me using fo:block-container
within the body of fo:flow flow-name=xsl-region-body
I am getting only one page in the pdf file and I am using fo:simple-page-master tag



With Regards

Bhaskar 









Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.


Re: Please help me

2004-06-04 Thread Chris Bowditch
[EMAIL PROTECTED] wrote:
snip/
Earlier it was working fine means I was getting 3 pages in the pdf file. 
But  after me using fo:block-container within the body of fo:flow 
flow-name=xsl-region-body  I am getting only one page in the pdf file 
and I am using fo:simple-page-master tag
The reason that you are only getting one page is that block-container's do not 
flow across pages in FOP. They are classed as out of flow objects, and as 
such cannot generate content that flows across pages. What effect are you 
trying to achieve? Someone on this list maybe able to suggest alternatives.

Chris

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