Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)
Instead of rebuilding FOP, I wrote a simple test class that attempts to instantiate 'Rectangle'. It runs successfully on one system and fails on the other (the one with the NoClassDefFoundError): $ java -Djava.awt.headless=true TestRectangle Exception in thread main java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.2_08/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory Sure enough, /usr/X11R6/lib/libXp.so.6 exists on one box, but not the other. Hopefully, it won't be too much of an ordeal to get the missing piece(s) installed. - Bob --- Bob Hall [EMAIL PROTECTED] wrote: No joy with -Djava.awt.headless=true; looks a rebuild of FOP on the target system... though that *really* does not make sense. - Bob --- Bob Hall [EMAIL PROTECTED] wrote: Thanks, David. I'll try that. If that doesn't do the trick I plan to build fop.jar from source on the target machine. - Bob --- David Delbecq [EMAIL PROTECTED] wrote: if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you should wonsider using headless java see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless Bob Hall a écrit : I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03) and the same version of Tomcat 5.0.28). The versions of RedHat *are* different. I even compiled the code on the target Linux system. Any ideas? - Bob __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting NoClassDefFound error for Rectangle.class (rt.jar)
I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03) and the same version of Tomcat 5.0.28). The versions of RedHat *are* different. I even compiled the code on the target Linux system. Any ideas? - Bob __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)
if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you should wonsider using headless java see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless Bob Hall a écrit : I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03) and the same version of Tomcat 5.0.28). The versions of RedHat *are* different. I even compiled the code on the target Linux system. Any ideas? - Bob __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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]
Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)
Thanks, David. I'll try that. If that doesn't do the trick I plan to build fop.jar from source on the target machine. - Bob --- David Delbecq [EMAIL PROTECTED] wrote: if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you should wonsider using headless java see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless Bob Hall a écrit : I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03) and the same version of Tomcat 5.0.28). The versions of RedHat *are* different. I even compiled the code on the target Linux system. Any ideas? - Bob __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting NoClassDefFound error for Rectangle.class (rt.jar)
No joy with -Djava.awt.headless=true; looks a rebuild of FOP on the target system... though that *really* does not make sense. - Bob --- Bob Hall [EMAIL PROTECTED] wrote: Thanks, David. I'll try that. If that doesn't do the trick I plan to build fop.jar from source on the target machine. - Bob --- David Delbecq [EMAIL PROTECTED] wrote: if it's *java.awt.Rectangle* and the computer you are trying to run fop on does not have graphical environment, maybe you should wonsider using headless java see http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless Bob Hall a écrit : I'm getting a NoClassDefFoundError in a FOP class, PageViewport. At line 89, the code is attempting to do 'new Rectangle()'. The same code works fine on 3 other systems (2 Windows, and one Linux). It does not work on a Linux box. The two linux boxes have the same version of Java (1.4.2_08-b03) and the same version of Tomcat 5.0.28). The versions of RedHat *are* different. I even compiled the code on the target Linux system. Any ideas? - Bob __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - 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] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using JasperReports with Tomcat's Xerces : NoClassDefFound exception
Hello to all, I am facing a strange problem while using JasperReports Xerces with Tomcat v4.1.12. I found that xercesImpl.jar and xmlParserAPIs.jar were present in the common\endorsed folder and assumed that they would be loaded for use with my application. The application that I am developing, starts Tomcat before loading itself. Since the JSP pages compiled properly, I thought that the required classes were present in the classpath. However when I execute a JasperReport function that reads from an xml file, a NoClassDefFound exception is thrown specifying that the class org.xml.sax.ErrorHandler is not found. Thinking that the version of Xerces that came with Tomcat is older than what JasperReports comes with, I replaced the jar files. Only to see my application not starting!! I also tried adding the new jar files in the shared\lib folder - while having/removing the older jars in the common\endorsed folder, but it was of no use. Can anybody tell me where I am going wrong. I tried looking through the archives but could not come up with anything similar (perhaps my search criteria was wrong!) Regards, Arun Jayaprakash.
NoClassDefFound
Hi all, Do you know what I am missing to get java.lang.NoClassDefFoundError? I am using jaxp. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018
Re: NoClassDefFound
Have you setup your CLASSPATH environment variable to point your lib and include directories under your JDK root folder? Check it out. You can do something like this CLASSPATH=c:\j2sdk1.4.0\lib;c:\j2sdk1.4.0\include;. Don't miss the dot at the end. Irfan - Original Message - From: [EMAIL PROTECTED] Date: Wed, 22 May 2002 10:01:27 -0500 To: [EMAIL PROTECTED] Subject: NoClassDefFound Re: Hi all, Re: Re: Do you know what I am missing to get java.lang.NoClassDefFoundError? I am Re: using jaxp. Re: Re: Bao-Ha Dam Bui Re: [EMAIL PROTECTED] Re: S. Jude Medical, Inc Re: 651.765.1018 Re: Re: -- === Another FREE service from Jayde Online http://www.jayde.com Private, Web-based email accounts at http://www.jaydemail.com Powered by Outblaze -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound
There are already other classes running on this site, including some that use dom. Bao-Ha Dam Bui [EMAIL PROTECTED] S. Jude Medical, Inc 651.765.1018 -Original Message- From: irfan ali [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 11:58 AM To: Tomcat Users List Subject: Re: NoClassDefFound Have you setup your CLASSPATH environment variable to point your lib and include directories under your JDK root folder? Check it out. You can do something like this CLASSPATH=c:\j2sdk1.4.0\lib;c:\j2sdk1.4.0\include;. Don't miss the dot at the end. Irfan - Original Message - From: [EMAIL PROTECTED] Date: Wed, 22 May 2002 10:01:27 -0500 To: [EMAIL PROTECTED] Subject: NoClassDefFound Re: Hi all, Re: Re: Do you know what I am missing to get java.lang.NoClassDefFoundError? I am Re: using jaxp. Re: Re: Bao-Ha Dam Bui Re: [EMAIL PROTECTED] Re: S. Jude Medical, Inc Re: 651.765.1018 Re: Re: -- === Another FREE service from Jayde Online http://www.jayde.com Private, Web-based email accounts at http://www.jaydemail.com Powered by Outblaze -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
NoClassDefFound in execute JSP with tomcat 4.0.1
When I try to execute a JSP I receive ever de same error : java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271) ... ... I start tomcat with ./bin/startup.bat. would I need start tomcat in other way? Thanks in advance Rodolfo -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: NoClassDefFound
Hi, have you set your CLASSPATH env variable or are you providing a classpath (-classpath directory:directory:directory/file.jar.) with your command line? Additionally you have to provide the fully qualified Classname (package.package.package.ClassName, for example org.apache.catalina.startup.Catalina) And the class you want to execute must have a public static void main(String args[]) method. Mika - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 8:08 PM Subject: NoClassDefFound Hi all, I am trying to run a stand alone class using the java + classname.class command and I got the NoClassDefFoundError exception. Could someone tell me what I should do? Thanks very much. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
NoClassDefFound
Hi all, I am trying to run a stand alone class using the java + classname.class command and I got the NoClassDefFoundError exception. Could someone tell me what I should do? Thanks very much. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: NoClassDefFound
I am trying to run a stand alone class using the java + classname.class command and I got the NoClassDefFoundError exception. Could someone tell me what I should do? Thanks very much. don't include .class. For example if my class file is MyClass.class java MyClass Also, btw, make sure your class is in the classpath. This is really not a Tomcat specific question. There are plenty of general java forums out there(http://www.javaranch.com for example). Please use these venues for these types of questions. I would also suggest picking up a good java book and taking the time to work through it. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: NoClassDefFound
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 09, 2002 2:08 PM Subject: NoClassDefFound Hi all, I am trying to run a stand alone class using the java + classname.class command and I got the NoClassDefFoundError exception. Could someone tell me what I should do? Thanks very much. [...] did you use java MyClass.class? if so, you need to use java MyClass, and don't forget to put . in your CLASSPATH Bo Jan.09, 2002 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Fwd: NoClassDefFound
On Friday 13 July 2001 23:30 pm, you wrote: Sorry, you're right about that! stop(), suspend(), resume() and countStackFrames() are deprecated. Well now we've cleared that one up, let's get back to topic. Why is this happening? It looks like a pretty serious bug. --- John Baker [EMAIL PROTECTED] wrote: On Friday 13 July 2001 12:23 pm, you wrote: --- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? Err, stop is, but if start was deprecated then threads would be a little difficult to run! = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Fwd: NoClassDefFound
On Thursday 12 July 2001 23:04 pm, you wrote: Hi, Weird!!! You can always use the Class class' getInstance(String className) method to get a copy of your class. You mean Class.newInstance(className) ? :-) Well I'd rather know why Tomcat does this. It's silly. Also, I get problems when Tomcat shuts down, ie another NoClassDefFoundException when the Class is clearly there. There must be some bug that needs solving here :-) And it's only /some/ Classes it can't find, others it can. I've tried changing compilers, trying the code outside of Tomcat (works fine), chainging VM's. Nothing makes a difference. It was only when I noticed that: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails but t.run(); // works that I became very suspucious and decided this wasn't my fault. When I say I have problems when shutting down, well I use the contextDestroyed method in ServletContextListener to shut database connections when the 'web application' is killed as tomcat shuts down - and this also fails to find classes. It might be worth pointing out that I'm using 4.0beta5, but have seen this problem on other 4.0 builds (I dont think it happened on beta1, now I think about it). John Baker Adam. On Thursday 12 July 2001 11:19, you wrote: [Argh! I cant get a single mail to go to the mailing list, I wonder if this one does!:) ] Hello. Anyone ever experiences a problem where by if you try to run a Thread from an object implementing ServletContextListener (ie it's used to perform 'startup' stuff), the Thread is unable to find classes (complains of NoClassDefFound). Yet if the Thread is just run using the current Thread (ie call run, not start), the classes are magically found. John Baker
Re: Fwd: NoClassDefFound
--- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: Hi, Weird!!! You can always use the Class class' getInstance(String className) method to get a copy of your class. You mean Class.newInstance(className) ? :-) Well I'd rather know why Tomcat does this. It's silly. Also, I get problems when Tomcat shuts down, ie another NoClassDefFoundException when the Class is clearly there. There must be some bug that needs solving here :-) And it's only /some/ Classes it can't find, others it can. I've tried changing compilers, trying the code outside of Tomcat (works fine), chainging VM's. Nothing makes a difference. It was only when I noticed that: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? but t.run(); // works that I became very suspucious and decided this wasn't my fault. SNIP = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Fwd: NoClassDefFound
On Friday 13 July 2001 12:23 pm, you wrote: --- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? Err, stop is, but if start was deprecated then threads would be a little difficult to run!
Fwd: NoClassDefFound
I'll send my stuff to the right email address one day. -- Forwarded Message -- Subject: Fwd: NoClassDefFound Date: Thu, 12 Jul 2001 11:52:19 +0100 From: John Baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Hello. Anyone ever experiences a problem where by if you try to run a Thread from an object implementing ServletContextListener (ie it's used to perform 'startup' stuff), the Thread is unable to find classes (complains of NoClassDefFound). Yet if the Thread is just run using the current Thread (ie call run, not start), the classes are magically found. John Baker ---
Re: Fwd: NoClassDefFound
Sorry, you're right about that! stop(), suspend(), resume() and countStackFrames() are deprecated. --- John Baker [EMAIL PROTECTED] wrote: On Friday 13 July 2001 12:23 pm, you wrote: --- John Baker [EMAIL PROTECTED] wrote: On Thursday 12 July 2001 23:04 pm, you wrote: MyThread t = new MyThread(); // MyThread extends Thread t.start(); // fails Aren't t.start() and t.stop() deprecated? Err, stop is, but if start was deprecated then threads would be a little difficult to run! = - [EMAIL PROTECTED] Hacking is a Good Thing! See http://www.tuxedo.org/~esr/faqs/hacker-howto.html __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Fwd: NoClassDefFound
[Argh! I cant get a single mail to go to the mailing list, I wonder if this one does!:) ] Hello. Anyone ever experiences a problem where by if you try to run a Thread from an object implementing ServletContextListener (ie it's used to perform 'startup' stuff), the Thread is unable to find classes (complains of NoClassDefFound). Yet if the Thread is just run using the current Thread (ie call run, not start), the classes are magically found. John Baker
Re: Fwd: NoClassDefFound
Hi, Weird!!! You can always use the Class class' getInstance(String className) method to get a copy of your class. Adam. On Thursday 12 July 2001 11:19, you wrote: [Argh! I cant get a single mail to go to the mailing list, I wonder if this one does!:) ] Hello. Anyone ever experiences a problem where by if you try to run a Thread from an object implementing ServletContextListener (ie it's used to perform 'startup' stuff), the Thread is unable to find classes (complains of NoClassDefFound). Yet if the Thread is just run using the current Thread (ie call run, not start), the classes are magically found. John Baker