Re: retrive Arabic data

2009-05-28 Thread Youssef Mohammed
, Youssef Mohammed youssef.moham...@gmail.com wrote: From: Youssef Mohammed youssef.moham...@gmail.com Subject: Re: retrive Arabic data To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, May 27, 2009, 4:53 PM u just need to set your content encoding to UTF-8 in your jspes %@ page

Re: retrive Arabic data

2009-05-27 Thread Youssef Mohammed
u just need to set your content encoding to UTF-8 in your jspes %@ page pageEncoding=UTF-8 % I think also there might be a way to set the default encoding to utf8 ! Regards, Youssef On Wed, May 27, 2009 at 2:16 PM, abdul razack sh_abd...@yahoo.com wrote: Hi,  I have Java web application

Re: classloaders ?

2009-02-27 Thread Youssef Mohammed
http://en.wikipedia.org/wiki/Java_Classloadercheck the references over there ... Regards, Youssef On Fri, Feb 27, 2009 at 7:56 PM, André Warnier a...@ice-sa.com wrote: Hi. I am a superficial browser on this list and tend not to delve to deep into Java intricacies. But when a term

Re: MS Windowas Vista can't open WAR files

2009-02-21 Thread Youssef Mohammed
a WAR file is a normal zip. Yours is probably corrupted. Regards, Youssef On Sat, Feb 21, 2009 at 1:15 PM, Isaac Oren isaaco...@yahoo.com wrote: I have downloaded a WAR file into a Vista machine, but the OS can't open the file as it does with normal ZIPed files, also placing the WAR file as

Re: Record and simulate a web app

2009-02-20 Thread Youssef Mohammed
- Hash: SHA1 Youssef, On 2/20/2009 2:46 AM, Youssef Mohammed wrote: Chris, Wow ! This is really cool. I can't wait seeing this. But wasn't it supposed to be request/response recorder not just request recorder ? Yes, it was. It already took almost 600 lines of code to get request

Re: Record and simulate a web app

2009-02-20 Thread Youssef Mohammed
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Youssef, On 2/20/2009 9:27 AM, Youssef Mohammed wrote: I wanted actually to try this in the weekend, so lemme know if you need some hand on that. I'm having some trouble with the response capture. It appears that Tomcat itself fills-in some

Re: Record and simulate a web app

2009-02-19 Thread Youssef Mohammed
Chris, Wow ! This is really cool. I can't wait seeing this. But wasn't it supposed to be request/response recorder not just request recorder ? Regards, Youssef On Thu, Feb 19, 2009 at 8:26 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE-

Record and simulate a web app

2009-02-18 Thread Youssef Mohammed
Sorry if this not directly related to tomcat itself. I have a swing app that communicate with backend thru a web app deployed on tomcat. For testing purposes, we want to be able to record some http responses and later on be able to simulate the same response when it gets the same request ( aka

Re: Oracle database calling the web app?

2009-01-06 Thread Youssef Mohammed
you can also have your trigger call a java package where you can simply call a web service (SOAP or RESTful). Regards, Youssef On Wed, Jan 7, 2009 at 12:26 AM, Edward Dowgiallo eddowgia...@gmail.comwrote: Support for what you want to do is actually a feature in Oracle 11g. For Oracle 10g,

Re: Oracle database calling the web app?

2009-01-06 Thread Youssef Mohammed
are taking on all the additional overhead of a web service call for no reason. Ed On Tue, Jan 6, 2009 at 5:31 PM, Youssef Mohammed youssef.moham...@gmail.com wrote: you can also have your trigger call a java package where you can simply call a web service (SOAP or RESTful). Regards

Re: failure notice

2008-11-24 Thread Youssef Mohammed
It is highly advisable to use the native OCI drivers .. that simply provide a native connection pooling ... and can work perfectly with RAC setting .. and because it native, you have superior performance. http://www.rakeshv.org/docs/oracle/jdbc3.0/oracle/jdbc/pool/OracleOCIConnectionPool.html

Re: failure notice

2008-11-24 Thread Youssef Mohammed
connections are no longer valid and you will have to restart the server or figure out away to get rid of all connections in the pool. Regards, Youssef On Mon, Nov 24, 2008 at 6:30 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: failure

Re: Debian Etch, Eclipse 3.2, Tomcat5 can't work together?

2008-11-23 Thread Youssef Mohammed
just download it from eclipse site and run it .. you can do the same for latest versions of tomcat too. th Regards, Youssef On Sun, Nov 23, 2008 at 10:51 PM, Csanyi Pal [EMAIL PROTECTED] wrote: Mark Thomas [EMAIL PROTECTED] writes: Csanyi Pal wrote: I have on Debian GNU/Linux Etch system

Re: How do i specify the filename for a binary file generated by a JSP?

2008-11-18 Thread Youssef Mohammed
doesn't seem like a tomcat issue. you'd better ask in java/jsp groups. As a quick hint might use servlet in front of the jsp and whatever name you wana. Regards, Youssef On Wed, Nov 19, 2008 at 3:25 AM, Jonathan Mast [EMAIL PROTECTED]wrote: I am writing a report generator that has the

Re: Deployment Web App on Debian

2008-11-06 Thread Youssef Mohammed
There shouldn't be any difference if you have same same version of tomcat (recall java in platform independent). You should look at your logs and see why it fails. If could be for example that you don't have your database setup or jdbc drivers is done added the classpath. You should also deploy a

Re: @PersistenceUnit injection not working

2008-11-04 Thread Youssef Mohammed
This has nothing to do with tomcat, you will need to figure out how to configure Persistence Manager in your web application. Regards, Youssef On Tue, Nov 4, 2008 at 10:27 PM, Pablo Caballero [EMAIL PROTECTED]wrote: Hi everyone. I have an @PersistenceUnit(unitName=blah) injection but the

Re: Max connections

2008-10-12 Thread Youssef Mohammed
I would look at tomcat mbeans names http://tomcat.apache.org/tomcat-5.5-doc/catalina/funcspecs/mbean-names.html Note sure if tomcat currently exposes these in some admin web app but there are some project out there that can expose you jmx to a web app. On Mon, Oct 13, 2008 at 2:38 AM, Martin

Re: Send Request from One Server to Another Server

2008-09-12 Thread Youssef Mohammed
make sure you are handing the session id at the very beginning the session id is sent back in a cookie , you need to either send it back at any request (as cookie) or use URL rewriting to embed it in the request URL. On Fri, Sep 12, 2008 at 7:48 AM, ANITA.2310 [EMAIL PROTECTED] wrote: I have 2

Re: Send Request from One Server to Another Server

2008-09-12 Thread Youssef Mohammed
the library is providing an easy way to do that (that's to read the cookies that is sent at the very beginning request) On Fri, Sep 12, 2008 at 8:36 AM, ANITA.2310 [EMAIL PROTECTED] wrote: How can i achieve this? Youssef Mohammed wrote: make sure you are handing the session id at the very

Re: how to create domain.Order class

2008-08-25 Thread Youssef Mohammed
I am wondering where to create a domain.Order class/java file. Do I have to create a directory domain under src/ directory and then create Order.java file inside theh domain folder? yes. Best of luck in your homework :P Thanks Sam -- Regards, Youssef

Re: Post form with x-www-form-urlencoded content type and Coyote Connector

2008-08-18 Thread Youssef Mohammed
It could be because TC reads and parses the the input stream for you, so you can get them though request.getParameter (and other methods). If the request content type is something different (e.g. xml/text ), you would have the input stream then and read it the way you want. This is just my

Re: Reading environment variable from Tomcat

2008-08-13 Thread Youssef Mohammed
+1 exactly! you can even login with two different users (if you are using windows server) none of them would be running the service unless you change the logged on option. On Wed, Aug 13, 2008 at 9:27 PM, David kerber [EMAIL PROTECTED] wrote: Sureka, Sushil wrote: Hi, I have run into an

Re: javax.servlet.ServletException: Could not connect to SMTP host: localhost, port: 25

2008-07-17 Thread Youssef Mohammed
try this .. props.put(mail.smtp.host,smtp.correo.yahoo.es); props.put(mail.smtp.port,25); props.put(mail.smtp.auth, true); On Thu, Jul 17, 2008 at 12:41 PM, Carlos Morales Diego [EMAIL PROTECTED] wrote: Hello Jonas, I still have the same mistake, so I don't know,

Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Youssef Mohammed
if you can't access 192.87.106.226 from firefox, then it has nothing to do with DNS. On Thu, Jul 17, 2008 at 9:36 PM, Len Popp [EMAIL PROTECTED] wrote: www.apache.org is not currently working here. ping www.apache.org gets a response from 192.87.106.226, but Firefox doesn't get a response

Re: UTF-8 handling differs between two servlets within the same application

2008-06-23 Thread Youssef Mohammed
Christoph; We used to have the same issue two years ago with older version of tomcat 4.x . And yes it was working just nice with Websphere. We resolved that but just adding a filter that would always set the encoding to utf8. namely ... in web.xml filter

Re: UTF-8 handling differs between two servlets within the same application

2008-06-23 Thread Youssef Mohammed
On Mon, Jun 23, 2008 at 4:29 PM, Christoph Pirkl [EMAIL PROTECTED] wrote: Hi Youssef, thank you for your tip, but we are already using a filter that does exactly the same thing. We also set the character encoding in the reset and validation methods of all action forms. I don't think you

Re: Tomcat Connection Pooling - wait_timeout

2008-06-21 Thread Youssef Mohammed
know how I get on. Thanks Tom On 21/06/2008, at 1:50 PM, Youssef Mohammed wrote: people were suffering from this exception in hibernate forums, it was suggested to switch from DBCP to c3po. Note also that the config you provided is not using any pooling at all. Datasources

Re: Spring or Tomcat forgets the classpath?

2008-06-20 Thread Youssef Mohammed
you have to add this instead /WEB-INF/classes/common.xml On Fri, Jun 20, 2008 at 1:38 PM, DCVer [EMAIL PROTECTED] wrote: Hi all, I have strange problem. I am building standard web application (with Maven). The structure of the output WAR is as follows: WAR | - - META-INF |

Re: Spring or Tomcat forgets the classpath?

2008-06-20 Thread Youssef Mohammed
/ import resource=context-beans.${TARGET_ENV}.xml / import resource=classpath:spring/mail.xml / import resource=classpath:spring/services.xml / import resource=classpath:spring/paypal.xml / import resource=classpath:spring/trackTableEditor.xml / On Fri, Jun 20, 2008 at 2:24 PM, Youssef

Re: Keep getting this error

2008-06-20 Thread Youssef Mohammed
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) It is in a spring classes filter , make sure your web app is configured correctly to use spring/jsf/jpa. you can also just comment that filter out from your web.xml. but you

Re: very large catalina logfile...

2008-06-20 Thread Youssef Mohammed
Zaher pasha .. try this http://www.unicon.net/node/604 On Fri, Jun 20, 2008 at 3:48 PM, Zaher Srour [EMAIL PROTECTED] wrote: Hi all, Am new to Tomcat, have the following problem: The size of the *catalina.-mm-dd.log* file became so large that the server free space (23 GB) was filled

Re: Mapping a file to a URL pattern on Tomcat?

2008-06-20 Thread Youssef Mohammed
any static file in your WAR can be accessed thru a URL eg. the file.png in the root directory in you site.war can be accessed thru http://localhost:8080/site/file.png On Fri, Jun 20, 2008 at 7:49 PM, Vinay Chilakamarri [EMAIL PROTECTED] wrote: Hi, I want to send a response(which is

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
if you are running behind apache .. you can turn that off using the mod_headers ... you can unset any headers then. On Fri, Jun 20, 2008 at 8:37 PM, Dave Girardin [EMAIL PROTECTED] wrote: Group, I'm a Unix admin working on a Solaris 8 server running Tomcat 6.0.16. No other apps run on the

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
On Sat, Jun 21, 2008 at 1:12 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? if you are running behind apache .. Did you read the original message? Sorry I missed that. So doing that thought

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
On Sat, Jun 21, 2008 at 1:29 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? Although I don't really see a point on not having apache in a real deployment. Because adding httpd makes things

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
corrected On Sat, Jun 21, 2008 at 1:44 AM, Youssef Mohammed [EMAIL PROTECTED] wrote: On Sat, Jun 21, 2008 at 1:29 AM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Youssef Mohammed [mailto:[EMAIL PROTECTED] Subject: Re: How to turn off Etag headers? Although I don't really see

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
no way ! well at least in our apps a major bank in the region. we have done extensive tests and we got 10% - 20% performance gain. Since you're dealing with banking information, I suspect much of your traffic is via SSL. Turn on the APR connector in Tomcat with OpenSSL and try the

Re: How to turn off Etag headers?

2008-06-20 Thread Youssef Mohammed
correction gain ! WAS not WSAD. On Sat, Jun 21, 2008 at 1:58 AM, Youssef Mohammed [EMAIL PROTECTED] wrote: no way ! well at least in our apps a major bank in the region. we have done extensive tests and we got 10% - 20% performance gain. Since you're dealing with banking information

Re: Tomcat Connection Pooling - wait_timeout

2008-06-20 Thread Youssef Mohammed
people were suffering from this exception in hibernate forums, it was suggested to switch from DBCP to c3po. Note also that the config you provided is not using any pooling at all. Datasources are not pooled by default. On Sat, Jun 21, 2008 at 8:18 AM, Thomas Haines [EMAIL PROTECTED] wrote:

Re: Invalidate sessions

2008-06-17 Thread Youssef Mohammed
call invalidate method on javax.servlet.http.HttpSession On 6/17/08, JLucas ZB [EMAIL PROTECTED] wrote: Hello, i would like to invalidate the sessions. Is there any way to do that ? J Lucas -- Regards, Youssef

Re: Tomcat started but is not available!

2008-06-14 Thread Youssef Mohammed
it is just because under eclipse you don't have the the ROOT application . just deploy your web app and it will work fine. On Sat, Jun 14, 2008 at 10:14 PM, henry human [EMAIL PROTECTED] wrote: Hello I have Tomcat 6.0.4, JRE 1.6 on my PC. I embed tomcat in eclipse IDE. When i run tomcat

Re: tomcat connection pooling problem

2008-06-10 Thread Youssef Mohammed
this class what i was talking about http://download-uk.oracle.com/docs/cd/B10501_01/java.920/a96654/oci_func.htm#1014118 On Mon, Jun 9, 2008 at 8:53 PM, Youssef Mohammed [EMAIL PROTECTED] wrote: for oracle database, you can just use their native driver (oci driver), they have a Pooled

Re: tomcat connection pooling problem

2008-06-09 Thread Youssef Mohammed
for oracle database, you can just use their native driver (oci driver), they have a Pooled DataSource that will manage the pooling natively ... you don't need dbcp then. On Mon, Jun 9, 2008 at 5:26 PM, Htin Kyaw Nyo [EMAIL PROTECTED] wrote: Hi I am using tomcat55 and ojdbc14_g and tomcat

Re: cannot resolve symbol in included jsp page.

2008-06-02 Thread Youssef Mohammed
posting a stacktrace would be helpful. On Mon, Jun 2, 2008 at 9:24 AM, sur_1805 [EMAIL PROTECTED] wrote: This whole application works fine with tomcat 4.x version but didnot work with tomcat 5.x and above. i got an error, when i run the jsp given below , cannot resolve some symbol in jsp

Re: Portlet deployment - which JAR files to include?

2008-05-18 Thread Youssef Mohammed
mind to post the stack trace ? On Sun, May 18, 2008 at 1:32 PM, Ran Harpaz [EMAIL PROTECTED] wrote: Hello, all, I am working with Jetspeed 1.6-Tomcat 5.5.9 fusion and am trying to deploy a portlet project I created in JDeveloper. The WAR file I make is well-formed and is, in fact,

Preventing tomcat from creating sessions

2008-05-14 Thread Youssef Mohammed
Hi; I am writing a set of RESTful services. client do not send cookies and we don't want to user URL rewriting for most of the services (they are just stateless). The issue is when the client calls http://localhost/services/resource say n times, the application server/servlet container creates