RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
At the same time, install a newer JRE from Sun - there's no reason not to use a 1.5 level, which is a noticeable improvement over 1.4. - Chuck Instaled both Sun's JDK, and the official distribution of Tomcat over the weekend... All is working well now. (No more class def found exceptions, no more Gtk-WARNING's). It seems that both the repackaged 3rd party Tomcat, the GNU JDK, and the Sun JDK that was preloaded on my server were all broken. Thanks for the advice on this. - Mon --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora I have Tomcat 5.0 installed. Oops, sorry. I'd really recommend throwing away that 3rd-party repackaged version and downloading a real one from: http://tomcat.apache.org/download-55.cgi At the same time, install a newer JRE from Sun - there's no reason not to use a 1.5 level, which is a noticeable improvement over 1.4. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
It seemed that there was a jdk installation on the server under /usr/java/j2sdk1.4.2 I ran ./java - version from the bin dir and got: java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) I ran grep to find where JAVA_HOME was being configured and got: /etc/tomcat5/tomcat5.conf:# you could also override JAVA_HOME here /etc/tomcat5/tomcat5.conf:JAVA_HOME=/usr/lib/jvm/java so i changed /etc/tomcat5/tomcat5.conf to JAVA_HOME=/usr/java/j2sdk1.4.2 Then, when I started Tomcat, even the Tomcat home page would not display. In the catalina.out log the following message was displayed: Due to new licensing guidelines mandated by the Apache Software Foundation Board of Directors, a JMX implementation can no longer be distributed with the Apache Tomcat binaries. As a result, you must download a JMX 1.2 implementation (such as the Sun Reference Implementation) and copy the JAR containing the API and implementation of the JMX specification to: ${catalina.home}/bin/jmx.jar It might be worth noting that this version of Tomcat was installed as part ot a Plesk add on pack (the OS is Fedora). Does anyone know what is going on here? I dont know how to verify whether this real Tomcat, or something else. --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora I have been advised to uninstall gnu java and replace it with Sun SDK, which I am in the process of trying to figure out how to do. Until you have a real JRE installed, I think it's probably pointless to try to do much of anything. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org 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 start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
My dev environment is Tomcat 5.0 on java 1.4.2. I'd rather stick with this setup as closely as possible, and get the production version working before I change anything. In the meantime, is it still relavent for me to get the jmx.jar, and if so would renaming jmxri.jar to jmx.jar do the job? Also, do I still need XML parser APIs and Xerces implementation in the common/endorsed, and if so, where do I get them from? If you have a link, that would be amazing. My eyes are going square from staring at the command prompt. --- Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora I have Tomcat 5.0 installed. Oops, sorry. I'd really recommend throwing away that 3rd-party repackaged version and downloading a real one from: http://tomcat.apache.org/download-55.cgi At the same time, install a newer JRE from Sun - there's no reason not to use a 1.5 level, which is a noticeable improvement over 1.4. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora My dev environment is Tomcat 5.0 on java 1.4.2. I'd strongly recommend moving both up, on development and production systems. The newer Tomcat and the newer JRE are both faster and more stable than their predecessors. In the meantime, is it still relavent for me to get the jmx.jar, and if so would renaming jmxri.jar to jmx.jar do the job? Not sure about that. Haven't developed on 1.4 in quite a while, so I'm a bit spoiled by everything being included in the current levels. Also, do I still need XML parser APIs and Xerces implementation in the common/endorsed, and if so, where do I get them from? You probably need them, but I haven't used Tomcat 5.0 in quite a while either. Sun's JMX download is here: http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/do wnload.jsp However, since the Tomcat compatibility package appears to have everything you need, you might want to give that a shot: http://apache.mirror99.com/tomcat/tomcat-5/v5.5.20/bin/apache-tomcat-5.5 .20-compat.zip - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
Mon Cab wrote: I am running Tomcat, on Fedora 4. Using java version 1.4.2 gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Copyright (C) 2005 Free Software Foundation, Inc. Install real JRE first... My application works fine until the following line of code is reached. ImageIcon ii = new javax.swing.ImageIcon(myFile.getCanonicalPath()); Try to run Tomcat with -Djava.awt.headless=true option set. i.e.: $ export CATALINA_OPTS=-Djava.awt.headless=true $ ${CATALINA_HOME}/bin/startup.sh -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Re: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
Mikolaj Rydzewski wrote: My application works fine until the following line of code is reached. ImageIcon ii = new javax.swing.ImageIcon(myFile.getCanonicalPath()); Try to run Tomcat with -Djava.awt.headless=true option set. i.e.: $ export CATALINA_OPTS=-Djava.awt.headless=true $ ${CATALINA_HOME}/bin/startup.sh And for the safety before running tomcat: $ unset DISPLAY -- Mikolaj Rydzewski [EMAIL PROTECTED] smime.p7s Description: S/MIME Cryptographic Signature
Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
I am running Tomcat, on Fedora 4. Using java version 1.4.2 gij (GNU libgcj) version 4.0.2 20051125 (Red Hat 4.0.2-8) Copyright (C) 2005 Free Software Foundation, Inc. My application works fine until the following line of code is reached. ImageIcon ii = new javax.swing.ImageIcon(myFile.getCanonicalPath()); When this line is reached the tomcat service promptly stops. No exceptions in tomcat log or localhost log. Only the following line in Catalina out. (.:8048): Gtk-WARNING **: cannot open display: I have been advised to uninstall gnu java and replace it with Sun SDK, which I am in the process of trying to figure out how to do. (I am new to UNIX.) My question is this: What is going on with the Gtk-WARNING **, and does anyone know a fix? This seems not to be a class not found exception, since it happens even when I add java.awt, and javax.swing packages into the usr/share/java folder. I am figuring that the server could be configured as headless, and that this may be the cause of the problem, and am in the process of finding out where the script that configures this is on Fedora. Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora
From: Mon Cab [mailto:[EMAIL PROTECTED] Subject: Tomcat shutting down when instantiating javax.swing.ImageIcon on Fedora I have been advised to uninstall gnu java and replace it with Sun SDK, which I am in the process of trying to figure out how to do. Until you have a real JRE installed, I think it's probably pointless to try to do much of anything. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]