Typo in the release announcement

2023-12-12 Thread Ahmed Ashour
Hi all,
In https://tomcat.apache.org/, 
there are three places of
>occurs during HTTP HTTP request processing

with an extra `HTTP`.
Thanks,Ahmed



The Web application created a ThreadLocal but failed to remove it

2010-12-25 Thread Ahmed Ashour
Dear all,

I think similar case has been recently reported, but restarting an Axis2 with 
Tomcat give the below errors.

Is this an issue in Tomcat or in Axis?


Dec 26, 2010 9:52:01 AM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads
SEVERE: The web application [/axis2] appears to have started a thread named 
[Timer-0] but has failed to stop it. This is very likely to create a memory 
leak.
Dec 26, 2010 9:52:01 AM org.apache.catalina.loader.WebappClassLoader 
clearThreadLocalMap
SEVERE: The web application [/axis2] created a ThreadLocal with key of type 
[java.lang.ThreadLocal] (value [java.lang.threadlo...@d402dd]) and a value of 
type [
org.apache.xerces.parsers.SAXParser] (value 
[org.apache.xerces.parsers.saxpar...@13dd208]) but failed to remove it when the 
web application was stopped. This is very likely to create a memory leak.

Axis2 version: 1.5.4

Tomcat:
Server version: Apache Tomcat/6.0.29
Server built:   July 19 2010 1458
Server number:  6.0.0.29
OS Name:Windows 7
OS Version: 6.1
Architecture:   x86
JVM Version:1.6.0_22-b04
JVM Vendor: Sun Microsystems Inc.

Yours,
Ahmed

Blog: http://asashour.blogspot.com 


  

Web Services in Tomcat 6.0

2007-03-31 Thread Ahmed Ashour
Dear All,

Where can I find a tutorial for Web Services in Tomcat 6.0 (not using Axis or 
other libraries).

Also, shouldn't the examples include WebServices server/client code?

Many thanks.
Ahmed Ashour


 

Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

Re: Web Services in Tomcat 6.0

2007-03-31 Thread Ahmed Ashour
Dear Mark,

Thanks for your quick response.

I am interested to deploy the new Web Services features of Java EE 5 in Tomcat 
6.0, but don't know or where to start (except by downloading Sun Java EE JDK 5, 
and see the examples output webapp).

Many thanks,
Ahmed Ashour

- Original Message 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, March 31, 2007 7:20:39 PM
Subject: Re: Web Services in Tomcat 6.0


Ahmed Ashour wrote:

 Where can I find a tutorial for Web Services in Tomcat 6.0 (not using Axis or 
 other libraries).

You won't.

 Also, shouldn't the examples include WebServices server/client code?

Why?

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear all,
   
  I think something is wrong with parsing parameters for get requests with 
binary encoding, although request.getCharacterEncoding() is null, the output is 
different in red hat linux, consider the following test case:
   
   Servlet code 
   protected void doGet(HttpServletRequest request, HttpServletResponse res) 
throws ServletException, IOException {
  System.out.println( Query String is  + request.getQueryString() );
String text = request.getParameter( text );
  for( byte b : text.getBytes() )
   System.out.print( 0x + Integer.toHexString( b ) + ' ' );
}
   
   client code 
get( http://host:port/app/servletname?text=%24%F6%10%30%00; );

   private static String get(String url) throws IOException {
  try {
   
   URL _url = new URL(url);
   InputStream _is = _url.openStream();
   int length = _is.available();
   byte[] _out = new byte[length];
   _is.read(_out, 0, length);
   _is.close();
   return new String(_out);
  } catch (Exception e) {}
  return null;
 }
   
   end of code 
  Windows Output:
   
  Query String is text=%24%F6%10%30%00
0x24 0xfff6 0x10 0x30 0x0
   
  Linux output:
  Query String is text=%24%F6%10%30%00
0x24 0xffc3 0xffb6 0x10 0x30 0x0

   
  version used is:
  Using CATALINA_BASE:   /usr/tomcat
Using CATALINA_HOME:   /usr/tomcat
Using CATALINA_TMPDIR: /usr/tomcat/temp
Using JRE_HOME:   /usr/java/jdk1.5.0_06
Server version: Apache Tomcat/5.5.16
Server built:   Mar 4 2006 08:22:29
Server number:  5.5.16.0
OS Name:Linux
OS Version: 2.4.21-32.0.1.ELsmp
Architecture:   i386
JVM Version:1.5.0_06-b05
JVM Vendor: Sun Microsystems Inc.

  What do you think the reason for this discripancy?
   
  Many thanks in advance,
   
  Yours,
  Ahmed Ashour


-
Yahoo! Mail
Bring photos to life! New PhotoMail  makes sharing a breeze. 

Re: getParameter().getBytes() behaves differently on Linux

2006-03-17 Thread Ahmed Ashour
Dear Filip,
   
  That solves it, many many thanks.
   
  Just a comment if others went into same problem:
  * request.setCharacterEncoding(ISO-8859-1); does not solve the problem
* getBytes() is not deprecated, it uses the platform's default charset instead.
   
  Thanks again,
  Ahmed Ashour

Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:
  getBytes() is deprecated for the reason that different VMs/OSs have 
different default encoding.
could that be the cause of your problem?

what if you try getBytes(ISO-8859-1) on both platforms, do you still 
get diff results?

Filip


Ahmed Ashour wrote:
 Dear all,
 
 I think something is wrong with parsing parameters for get requests with 
 binary encoding, although request.getCharacterEncoding() is null, the output 
 is different in red hat linux, consider the following test case:
 
  Servlet code 
 protected void doGet(HttpServletRequest request, HttpServletResponse res) 
 throws ServletException, IOException {
 System.out.println( Query String is  + request.getQueryString() );
 String text = request.getParameter( text );
 for( byte b : text.getBytes() )
 System.out.print( 0x + Integer.toHexString( b ) + ' ' );
 }
 
  client code 
 get( http://host:port/app/servletname?text=%24%F6%10%30%00; );

 private static String get(String url) throws IOException {
 try {
 
 URL _url = new URL(url);
 InputStream _is = _url.openStream();
 int length = _is.available();
 byte[] _out = new byte[length];
 _is.read(_out, 0, length);
 _is.close();
 return new String(_out);
 } catch (Exception e) {}
 return null;
 }
 
  end of code 
 Windows Output:
 
 Query String is text=%24%F6%10%30%00
 0x24 0xfff6 0x10 0x30 0x0
 
 Linux output:
 Query String is text=%24%F6%10%30%00
 0x24 0xffc3 0xffb6 0x10 0x30 0x0

 
 version used is:
 Using CATALINA_BASE: /usr/tomcat
 Using CATALINA_HOME: /usr/tomcat
 Using CATALINA_TMPDIR: /usr/tomcat/temp
 Using JRE_HOME: /usr/java/jdk1.5.0_06
 Server version: Apache Tomcat/5.5.16
 Server built: Mar 4 2006 08:22:29
 Server number: 5.5.16.0
 OS Name: Linux
 OS Version: 2.4.21-32.0.1.ELsmp
 Architecture: i386
 JVM Version: 1.5.0_06-b05
 JVM Vendor: Sun Microsystems Inc.

 What do you think the reason for this discripancy?
 
 Many thanks in advance,
 
 Yours,
 Ahmed Ashour

 
 -
 Yahoo! Mail
 Bring photos to life! New PhotoMail makes sharing a breeze. 
 


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




-
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.