I got an error on import org.apache.xpath recompiling with Tomcat5 and JDK5
Dear Group, Which jars am I missing, and were can I find them when I got an error on import org.apache.xpath? I am trying to move from jdk1.4 and Tomcat4, to jdk5 and Tomcat5 I have installed Tomcat Core version: apache-tomcat-5.5.15.zip I have changed my CLASSPATH to: C:\Program Files\apache-tomcat-5.5.15\common\lib\servlet-api.jar; My common lib contains: C:\Program Files\apache-tomcat-5.5.15\common\libls commons-el.jar jasper-runtime.jar naming-factory.jar jasper-compiler-jdt.jar jsp-api.jar naming-resources.jar jasper-compiler.jar naming-factory-dbcp.jar servlet-api.jar Recompiling my java source containing a servlet gives me the following error: [javac] E:\cvs\projecten\java\pdfgen\src\net\antonius\pdfgen\Rule.java:3: package org.apache.xpath does not exist [javac] import org.apache.xpath.*; I did not have the error with Tomcat4, JDK1.4 and a classpath including servlet.jar from Tomcat4. Should I have installed another distribution of Tomcat5.5 ? One containing the jars I am missing? Kind Regards, and my appriciation in advance, Marc Wentink - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: I got an error on import org.apache.xpath recompiling with Tomcat5 and JDK5
Oops... Just read some more documentation and it seems the whole java xml xpath libs changed from jdk 1.4 to jdk5, right? So a servlet doing something with XML would have to be rewritten totally and could better just stay on Tomcat4 and JDK1.4? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program
Dear Sirs, I have got a servlet that generates a pdf file from a xml file, the servlet runs in Tomcat, and it runs fine as long as in the xml file does not contain references to images. At the moment the xml contains an image I got this error: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) at net.antonius.pdfgen.TypeImageMap.parse(Unknown Source) The strange thing is that if I ran the old program as an independent java program, I did not got the error. Hence the java environment provided by Tomcat misses some classes? Thanks in advance for any suggestions. Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program
Hey thanks! That's it -Oorspronkelijk bericht- Van: Paul Hamer [mailto:[EMAIL PROTECTED] Verzonden: woensdag 22 februari 2006 17:19 Aan: 'Tomcat Users List' Onderwerp: RE: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program Hi Marc, Are you running Tomcat on a headless machine, in other words, on a machine that does not have any graphics drivers installed? This is the case for many SSH-only Linux servers, like mine. If so, then specify -Djava.awt.headless=true as a parameter to Tomcat. Regards, Paul Hamer management development [EMAIL PROTECTED] toHAVE websolutions www.tohave.nl [EMAIL PROTECTED] -Original Message- From: Wentink, Marc [mailto:[EMAIL PROTECTED] Sent: Wednesday, 22 February, 2006 16:42 To: tomcat-user@jakarta.apache.org Subject: Image files accesable for a servlet in Tomcat, but they were accesible in Java standalone program Dear Sirs, I have got a servlet that generates a pdf file from a xml file, the servlet runs in Tomcat, and it runs fine as long as in the xml file does not contain references to images. At the moment the xml contains an image I got this error: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Graph icsEnvironment.java:62) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041) at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031) at net.antonius.pdfgen.TypeImageMap.parse(Unknown Source) The strange thing is that if I ran the old program as an independent java program, I did not got the error. Hence the java environment provided by Tomcat misses some classes? Thanks in advance for any suggestions. Marc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]