All these Spams

2005-05-17 Thread farhad
Where is the moderator?  Why don't they unsubscribe 
[EMAIL PROTECTED] from this group (or filter their domain 
completely)?
The first pass of spam was annoying enough now peoples complains are 
doubling volume of junk mails.


I have tried to unsubscribe to this list becuase of these emails, but I cannot 
get free  What can be done ???
-- Rhino [EMAIL PROTECTED] wrote:
Nope; I think everyone's getting this spam - again and again and again! I
wonder if this idiot  automated his subscription request; otherwise I'm at a
loss to explain why the same emails come up time and time again.
Rhino
- Original Message - 
From: Guy Katz [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, May 17, 2005 1:46 AM
Subject: RE: No such list! s (AM I THE ONLY ONE GETTING THIS SPAM)?

am i the only one getting this annoying spam from the tomcat lisy?
-Original Message-
From: s [mailto:[EMAIL PROTECTED]
Sent: Monday, May 16, 2005 10:32 PM
To: tomcat-user@jakarta.apache.org
Subject: No such list! s
Valid Lists
New Atlanta List Server
---
There is no list by that name on this server. Available lists are:
  bluedragon-interest
  servletexec-interest
  jturbo-interest


-
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: trouble with Font objects in Tomcat

2005-05-07 Thread farhad
Look at this link:
http://java.sun.com/j2se/1.4.2/docs/guide/awt/AWTChanges.html#headless
This option is being used when you are operating on a machine without 
graphics support (usually in a server configuration).  You will use the 
option for example when you want to do some AWT/Swing operation on the 
server side (image manipulation).  You want to check and see if you have 
graphics support on your server (on unix/linux run something like xcalc 
on the server).
Based on your information, it is your class that has problem and has 
nothing to do with graphics.

Daniel Watrous wrote:
Is there at least someone that could tell me where to find more
information about the option JAVA_OPTS=-Djava.awt.headless=true? 
What exactly is its purpose?  Thanks in advance.

Daniel
On 5/6/05, Daniel Watrous [EMAIL PROTECTED] wrote:
 

Hello,
I have a web application that uses java.awt.Font objects to render
images.  The application will run in tomcat and that is where I have
done development.  When I first tried to run the application on a
Linux box with Tomcat 5.0.25 I got the following error:
java.lang.NoClassDefFoundError
   at com.words2walls.customquote.CustomQuote.getQuoteFontName(Unknown 
Source)
   at com.words2walls.webapp.filters.SessionQuoteFilter.doFilter(Unknown 
Source)
Here is the code call that throws the error:
   public String getQuoteFontName() {
   return QuoteFontType.getInstance(this.quoteFontCode).toString();
   }
And the class that is being called:
/*
 * QuoteFontType.java
*
* Created on April 15, 2005, 9:41 AM
*/
package com.words2walls.customquote;
import java.awt.Font;
import java.awt.FontFormatException;
import java.util.*;
import java.io.*;
import com.words2walls.customquote.exceptions.FontNotFoundException;
/**
* Type safe enumeration of available fonts
*
 * @author Daniel Watrous
*/
public class QuoteFontType {
   private static final String pathToWebapp = C:\\Program
Files\\Apache Software Foundation\\Tomcat 5.0\\webapps\\words2walls;
   private static final String pathToPackage =
\\WEB-INF\\classes\\com\\words2walls\\fonts\\;
   private String fontName;
   private int fontCode;
   private Font font;
   private static org.apache.log4j.Category cat =
   org.apache.log4j.Category.getInstance(QuoteFontType.class.getName());
   public static final QuoteFontType ADORABLE = new
QuoteFontType(1,Adorable,adorable.ttf);
   private static final Map INSTANCES = new HashMap();
   static {
   cat.debug(Enter Static block to place fonts in INSTANCES Map);
   INSTANCES.put (ADORABLE.toInteger(), ADORABLE);
   cat.debug(Exit Static block with INSTANCES.size() =  +
INSTANCES.size());
   }
   /** Creates a new instance of QuoteFontType */
   private QuoteFontType(int code, String fontName, String filename) {
   // create a font from the font file
   try {
   File fontFile = new File (pathToWebapp+pathToPackage+filename);
   FileInputStream fis = new FileInputStream(fontFile);
   font = Font.createFont(Font.TRUETYPE_FONT, fis);
   } catch (Exception e) {
   throw new FontNotFoundException(e);
   }
   // set member variables
   this.font = font;
   this.fontCode = code;
   this.fontName = fontName;
   }
   public String toString() {
   return fontName;
   }
   public Integer toInteger() {
   return new Integer(fontCode);
   }
   public static QuoteFontType getInstance(int code) {
   return (QuoteFontType) INSTANCES.get(new Integer(code));
   }
   public Font getFont() {
   return font;
   }
}
After some googling I found that if I set an environment variable
JAVA_OPTS=-Djava.awt.headless=true that this error would go away.
I'm not sure why this is the case, but it worked.
I am now trying to test the application on a windows machine with
Tomcat 5.0.30 and I get the same error.  I have set a Windows XP
environment variable the same as mentioned above.  I have also added
the option to the Java tab of the Tomcat monitor under Java Options:.
What is the cause of this error?  Is there some way that I can make it
work on both Windows and Linux?  Thanks in advance.
Daniel
   

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




Re: All threads (250) are currently busy

2005-04-20 Thread farhad
I don't know what kind of application you are running, but most likely
you have a resource leak; Do a thread dump and see what your threads
are waiting for. Most likely they are just in wait state and no CPU
usage. It could be cause by lots of things. One problem could be
using jdbc and not closing your connection or returning it to your pool.
For testing reduce your resource limit, don't increase it (reduce Max
thread, and connection pool). This would cause system hangs faster.
Send a SIGQUIT signal to VM and look at state of your threads and its
location (don't post your thread dump!)
Paul Grimwood wrote:
Tomcat hangs intermittently (1 to 10 days) with the following message in 
catalina.out

20/04/2005 13:48:09 org.apache.tomcat.util.threads.ThreadPool logFull
SEVERE: All threads (250) are currently busy, waiting. Increase maxThreads 
(250) or check the servlet status

We are running tomcat 5.5.7 on jdk1.5.0_02 under Redhat Linux Fedora Core 
2 against an Oracle9 DB.

I have seen various posts to this with suggestions including setting Linux 
threads with LD_ASSUME_KERNEL (tried but problem still exists) and setting 
connection timeout in server.xml from 0 to 6 (but ours is set at 2 
already). And we have already upgraded to latest Tomcat and JRE to no 
avail. Despite reviewing the mailing list over the past 18 to 24 months, i 
am none the wiser. 

The problem started around the time we deployed the code onto a new server 
running a later Linux version but this could be a red herring and I 
suspect it is a database connection issue. Has anyone got any ideas?

-
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: All threads (250) are currently busy

2005-04-20 Thread farhad
It doesn't matter what platform your running on.  On linux you can use 
kill -s SIGQUIT pid  on window box if you have cygwin you can do the 
same and if you do not just do a google search and there are lots of C 
code that does that, you can look at signal.h or sites like
http://www.csl.mtu.edu/cs4411.ck/www/NOTES/signal/kill.html
has actual code for you.  I haven't tried their code, but I used to have 
one myself.


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


Re: Tomcat memory alert (UNCLASSIFIED)

2005-04-13 Thread farhad
You can add these two options to your VM and monitor /tmp/gcOutput log 
file  -verbose:gc -Xloggc:/tmp/gcOutput , or you can add a timer MBean 
to your server to  ping your VM.


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