Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The jsp page that displays the data, prints two chars instead of one. I

Problems with utf-8 encoding - continue

2005-09-19 Thread Yair Zohar
sorry for the double mail, I forgot to add my server.xml encoding definitions: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 URIEncoding=UTF-8 useBodyEncodingForURI=true minProcessors=5 maxProcessors=75 enableLookups=true

Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The jsp page that

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Anto Paul wrote: On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Hello, I'm using Tomcat 4.1.18 I'm trying to read hebrew data in utf-8 encoding from the database. As a check I entered a utf-8 encoded 'alef' letter to the database field. (I see it in the database as one letter 'alef'). The

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Jilles van Gurp
Why aren't you using setContentType(text/html, utf-8) on the response? What content-type is the server actually returning (use the live http headers extension for firefox or something similar to find out). What database and jdbc driver are you using? What method are you using to store the

Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
Does your browser supports hebrew ?. If you are just getting the data from database and displaying, it should work fine. What database and JDBC driver you are using ?. On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Anto Paul wrote: On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote: Hello,

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Christoph Kutzinski
Jilles van Gurp wrote: Oracle on the other hand cannot insert strings larger than 4KB with setString so you need to use setCharacterStream. FYI: This is common knowledge that used to be right, but isn't anymore. With the Oracle 10g JDBC driver you can set arbitrary length strings with

RE: Problems with utf-8 encoding

2005-09-19 Thread Guy Katz
put an encoding filter in front of your servlet/jsp's that sets a UTF-8 encoding for incoming requests and outgoing responses. its your safest bet for tomcat 4 as far as i remember. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 9:43 AM

Re: Problems with utf-8 encoding - continue

2005-09-19 Thread Yair Zohar
Jilles van Gurp wrote: Why aren't you using setContentType(text/html, utf-8) on the response? As I use jsp, I don't know how can I control the response that way. What content-type is the server actually returning (use the live http headers extension for firefox or something similar to

Body-ContentImplBodyContentImpl uses all memory

2005-09-19 Thread Anders Skar
Hi! I'm experiencing a problem with my web application as it seems to run out of memory after about a week in production. I used JRockIT console to inspect what was using memory, and I found that a have quite a few instances of org.apache.jasper.runtime.BodyContentImplBodyContentImpl that

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Guy Katz wrote: put an encoding filter in front of your servlet/jsp's that sets a UTF-8 encoding for incoming requests and outgoing responses. its your safest bet for tomcat 4 as far as i remember. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September

RE: Problems with utf-8 encoding

2005-09-19 Thread Guy Katz
google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front of your servlet/jsp's that sets a UTF-8

Jk connector fails to connect... after some time working

2005-09-19 Thread Borja Bravo Alférez
Dear Tomcat list, I have a problem with our Tomcat server that is becoming really criticall for us. I need some help or at least a clue. There are quite a lot of people with a similar problem but I haven't found the solution. Let's go to the problem: After some time of working fine all

Re: Jk connector fails to connect... after some time working

2005-09-19 Thread Yassine ELassad
hi, i think its just apache trying to connect to tomcat using JK while the tomcat not confiigured to answer this request ? since you execute your jsp on (8080) i hope i understands your matter if not please try to be clearer about it if you need help with connnecting apache -mod_jk-tomcat i

Re: Jk connector fails to connect... after some time working

2005-09-19 Thread Borja Bravo Alférez
On Mon, 19 Sep 2005, Yassine ELassad wrote: hi, i think its just apache trying to connect to tomcat using JK while the tomcat not confiigured to answer this request ? since you execute your jsp on (8080) i hope i understands your matter if not please try to be clearer about it if you need

Custom tags and scope

2005-09-19 Thread Trond Hersløv
Hi, I do not have a lot of experience in programming custom tags. Now, having programmed a couple of tags, I think it is kind of strage that I cannot narrow the scope of variables defined in the taghandler down to the body of the custom tag. It would for me clearly gain the purpose of code

Re: Re: Jk connector fails to connect... after some time working

2005-09-19 Thread Yassine ELassad
here it is my one and how i configured it on 5.0.28: what should be done: -- on your Webserver (Apache): there should be some Namensbasd Virtual Host Websites, which should runs some Java Servlets Apache have to foreward these request where they belon to (TC)

File Upload problem with cgi perl script

2005-09-19 Thread Ron Cozad
I am only getting the first 3k of an upload file. If the file is less than 3k, the multipart boundaries are structured properly, otherwise, I never get the end of the file or the ending boundary. I did binmode(STDIN); but still not getting the whole file. Running Tomcat 4.1.31 and IE

AW: JSP 2.1 in Tomcat 6?

2005-09-19 Thread Bernhard Slominski
Hi Ron, I don't know about the JSP 2.1 Support in Tomcat, but if you want to try it out just use Glassfish: https://glassfish.dev.java.net/ Cheers Bernhard -Ursprüngliche Nachricht- Von: Ron Kiat [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 18. September 2005 18:16 An: Tomcat

How to get process URL in different context?

2005-09-19 Thread Kyle
Hi, I need to get hold of and process an http-encoded URL (effectively an operational servlet) within a different context on the same machine and read back the response it provides. e.g. from the root Context within a doPost, I need to execute /abc/api/action.do?param1=123param2=abc and

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Guy Katz wrote: google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front of your servlet/jsp's

Using a custom Manager class

2005-09-19 Thread James Shaw
I want to persuade tomcat to use a custom manager. My $CATALINA_HOME/conf/context.xml looks like this: Context WatchedResourceWEB-INF/web.xml/WatchedResource Manager classname=com.foo.HackyManager / /Context I've tried putting the HackyManager in /server/classes but tomcat still

Re: help with embedded tomcat's webapp classloader

2005-09-19 Thread Donald Ball
Donald Ball wrote: everything works okay but my webapp fails on initialization, with a NoClassDefFoundError on net.sf.hibernate.HibernateException. this is somewhat surprising given that hibernate.jar lives in the webapp's WEB-INF/lib directory. is there some additional configuration i need

Re: Using a custom Manager class

2005-09-19 Thread James Shaw
On 19/09/05, James Shaw [EMAIL PROTECTED] wrote: I want to persuade tomcat to use a custom manager. My $CATALINA_HOME/conf/context.xml looks like this: Context WatchedResourceWEB-INF/web.xml/WatchedResource Manager classname=com.foo.HackyManager / /Context Sorry, false

Error Document defined and Served but still not visible any idea ??

2005-09-19 Thread Yassine ELassad
hello every one i have a strange issue again with tomcat :) here is the problem: i defined an error 404 document unnder the web.xml lie the following : = welcome-file-list welcome-fileindex.html/welcome-file

Asking again: Need multiple virtual directories for isapi_redirector

2005-09-19 Thread David Thielen
Hi; I want to make sure this is correct: If you want to run Tomcat against multiple websites, not just the default website, this is what I have had to do. This is on Windows 2003/IIS 6.0. I removed isapi_redirector.dll from the default web site ISAPI Filters and put it in the parent Web Sites

index.jsp and virtual directories

2005-09-19 Thread David Thielen
Hi; I am running on Windows 2003/IIS 6.0 tomcat. I have a single IP address for all of my websites (I have several) and then use the request header to determine which website to return. IIS does this very nicely. I want to have index.jsp in each of these websites. How can I set it up so that

What is correct for workers.properties.minimal

2005-09-19 Thread David Thielen
Hi; I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect The isapi_redirect.exe installer creates a worker.properties.minimal of: worker.list=wlb,jkstatus worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009

Re: Re: Jk connector fails to connect... after some time working ( seems solved )

2005-09-19 Thread Borja Bravo Alférez
Hi, After changing the timeout to 10 seconds it _seems_ to work. It was at cero so it could have run out of connections. It has been 6 hours of uptime. Much better. thank you for everything, Borja On Mon, 19 Sep 2005, Yassine ELassad wrote: here it

relaying SSL request to a non-SSL server

2005-09-19 Thread Paul Singleton
Our app, sometimes accessed with SSL, returns pages with references to images from a non-SSL-enabled server. Our customer complains that this can trigger IE to pop up a dialog with This page contains both secure and nonsecure items. Do you want to display the nonsecure items? and wants us

Not able to access the home page of Apache with mod-ssl

2005-09-19 Thread Rohit Maheshwari
Hi All, I am setting up Apache 2.0.54 with mod_ssl. I have configured virtual host as rohit.com. When I tried to access the home page of Apache with firefox I am able to retrieve it. However I am unable to retrieve it on Internet Explorer . Request I am sending on browser : https://rohit.com/ (

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
Yair Zohar wrote: Guy Katz wrote: google it. there's a lot. -Original Message- From: Yair Zohar [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 11:08 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding Guy Katz wrote: put an encoding filter in front

About environment entries

2005-09-19 Thread luc_boudreau
Question number one : I've noticed that Tomcat 5.5.X includes environment entries definition possibility in the admin webapp. Are those of any use in a Struts framework webapp ? I would like to access their value to configure my webapps built on Struts so I could deploy them on various

Where to place a common jar file?

2005-09-19 Thread David Thielen
Hi; If I have a jar file used by multiple servlets, should I put it in ${catalina}/common/lib or in ${catalina}/webapps/${each_app}/WEB-INF/lib? I ask because I have seen various warnings that most jar files need to be placed in each webapp and not in common (like struts). ??? - thanks

Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
I am having to get Tomcat setup with IIS on Windows 2003. I started testing on my XP box to make sure I could get things rolling before I started screwing with the server. So first I download isapi_redirect.dll from

RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
Hello; I can feel your pain - I just went through this. A couple of things: 1) reboot. It shouldn't be necessary but was in my case. 2) If IIS6, you have to go to the web extensions(?) in IIS and add isapi_redirect.dll as an allowed extension. Good luck - dave -Original Message- From:

Re: Where to place a common jar file?

2005-09-19 Thread David Smith
Shared jars can be placed in common/lib, but keep in mind that all your webapps will be locked to the same version of the jar. It's better to have a copy in the webapp instead where you'll have more version independence between wepapps. --David David Thielen wrote: Hi; If I have a jar

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page cannot be displayed. There is nothing in the log file. I made sure, per your discovery, that the uriworkermap.properties file is fixed. Any other suggestions?

Tomcat Manager

2005-09-19 Thread Trung Nguyen
Hello All, I'm trying to setup/configure the tomcat manager, but i got this error below when access to http://localhost/manager/html, the login screen popup though... any ideas? 1995-09-19 17:57:02,878 [TP-Processor24] ERROR org.apache.catalina.realm.JAASRealm - Unexpected error

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
Ok, not it is asking for a username and password, so, a step in the right directions maybe. :) Gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded. Says page

RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
All I can suggest is make sure the uriworkers. and workers. files are correct, that the registry is pointing at the ones you think it is pointing at AND that you have the servlets spelled correctly - - its servlets-examples, not servlet-examples on my system. Thanks - dave _

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
Ok Dave. Checking..Here is the information I have. Maybe I have a typo and can't see it because I have been staring at it too long. workers.properties.minimal --- worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
Ohm another thing...I actually got an error in my tomcat log fle. HttpExtensionProc::jk_isapi_plugin.c (1029): could not get a worker for name ajp13w Does that help? gregg On 9/19/05, Gregg D Bolinger [EMAIL PROTECTED] wrote: Ok Dave. Checking..Here is the information I have. Maybe I have

new File never found

2005-09-19 Thread Markus Kühn
My problem is that tomcat does not find a new File if a request for the new File is made immediately after the File was created. All subsequent request will fail, though the File is there (also minutes after [didnt tried longer]). But if I wait about 15 seconds after the File was created theres

Tomcat Alone or tomcat+IIS/Apache

2005-09-19 Thread Gregg D Bolinger
I am just curious. I know that delivering static content with Apache/IIS is preferred. But does that matter if every single request has to go to Tomcat because the data is dynamic? Is there some caching that gets involved here? What is the benefit of Tomcat + Apache/IIS on major J2EE apps?

Re: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
From the Tomcat documetation: http://localhost:8080/tomcat-docs/class-loader-howto.html * For classes and resources specific to a particular web application, place unpacked classes and resources under /WEB-INF/classes of your web application archive, or place JAR files containing those

jdbc driver

2005-09-19 Thread Kito Holliday
Attempting to use connector-java-3.3.10 with tomcat 4.0 and mysql and servlets. The Java code: InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)lookup(jdbc/TestDB); throws the exception: Exception creating DataSource: org.hsql.jdbcDriver The problem is that my .xml files

Re: Tomcat Alone or tomcat+IIS/Apache

2005-09-19 Thread halcyon
Well I'm sure you can imagine that if all of your content is dynamic then layering tomcat behind Apache/IIS will only add latency/resources to your requests... nothing significant.. but maybe if your serving up a ton of requests it might be worthwhile to run tomcat standalone. -David Quoting

RE: Tomcat Alone or tomcat+IIS/Apache

2005-09-19 Thread Caldarale, Charles R
From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Subject: Tomcat Alone or tomcat+IIS/Apache I know that delivering static content with Apache/IIS is preferred. Urban myth, based primarily on older Tomcat versions that did not perform anywhere near as well as the current one. But does

Mod_jk setup problems

2005-09-19 Thread Don Boling
Hi, I am running Tomcat5.5.9 and JDK1.5.0_04 with a Apache 1.3 webserver on FreeBSD 5.3. I can't seem to get anything to successfully pass though the mod_jk connector to the webapp. My mod_jk.conf , workers.properties are as follows. $ less mod_jk.conf # JkWorkersFile

Re: jdbc driver

2005-09-19 Thread andy gordon
is the MySQL Connector Jar file in the $CATALINA_HOME/common/lib directory? Kito Holliday [EMAIL PROTECTED] wrote:Attempting to use connector-java-3.3.10 with tomcat 4.0 and mysql and servlets. The Java code: InitialContext ctx = new InitialContext(); DataSource ds =

Re: Mod_jk setup problems

2005-09-19 Thread Mark Eggers
A couple of things here. I'll try to insert comment where appropriate. --- Don Boling [EMAIL PROTECTED] wrote: I can't seem to get anything to successfully pass though the mod_jk connector to the webapp. What version of mod_jk? My mod_jk.conf , workers.properties are as follows. $ less

RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
Sorry - you're right on the shared vs common. I put the jdbc drivers in common/lib as I access them via Tomcat's jndi - so Tomcat uses them. Is that correct for them Thanks - dave -Original Message- From: Mark Eggers [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 4:19

RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
For worker.properties.minimal you need (you're missing the first line): worker.list=ajp13w worker.ajp13w.type=ajp13 worker.ajp13w.host=localhost worker.ajp13w.port=8009 -Original Message- From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 3:20 PM To:

RE: Where to place a common jar file?

2005-09-19 Thread Mark Eggers
I think so. If you use global naming resources and a resource link (accessing your jdbc database via jndi), then you might only need to place the jdbc drivers in server/lib. Reading some other online documentation, this appears to be the preferred method. /mde/ --- David Thielen [EMAIL

Cannot forward after response has been committed

2005-09-19 Thread Michael Lai
I have a jsp page that processes a login. The (simplified) code is something like this: %@ page language=java% % String userid = request.getParameter(userid); String pw = request.getParameter(pw); /* code to check user id and password */ if (user not found) pageContext.forward(login.jsp);

RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
Actually, the line end after the first line is sent back to the client, with apropriate html headers invented. %@ page language=java%%// now the line end is in java not in html Yep, looks ugly. What is even worse is code that sends a redirect and does NOT do a return. -Original

Resizing JPEG Images

2005-09-19 Thread Justin Jaynes
I am accepting JPEG uploads on a website I developed in JSP and Java Beans. It all runs on Tomcat. I once knew of a Java Bean that would accept a JPEG and scale and resize the image and save it. I need my web-app to resize the images as it accpets them. That was years ago. I can't find it

Re: Cannot forward after response has been committed

2005-09-19 Thread Michael Lai
I have an index.jsp page that checks a user's access level: %@ page language=java errorPage= % % String userid = (String)session.getAttribute(UserId); if (userid == null) { pageContext.forward(login.jsp); } else { String access = (String)session.getAttribute(Access); switch

RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
You want the line breaks, either line-feed or carriage-return, line-feed to occur within the java or jsp code, not within the html code. Sometimes the html is buffered and ignored when something else puts out headers or such. Within HTML, line breaks do not matter much Before HTML, any line break

Remote Address Valve Lets Everything Through

2005-09-19 Thread Mark Leone
I'm trying to implement a simple remote address valve, but it doesn't seem to work. I put the following element inside the Host element in %CATALINA_HOME%\conf\server.xml valve className=*org.apache.catalina.valves.RemoteAddrValve* allow=*xxx**.xxx.xxx.xxx*/ // actual IP address not shown

Re: Cannot forward after response has been committed

2005-09-19 Thread Michael Lai
I put a 'return' statement after every 'forward' statement in all my jsp pages and now it seems to be working. Thanks for your feedback. Actually, my linebreak occurs in the % % tags. I think my email client might have reformatted my output before sending. [EMAIL PROTECTED] wrote: You

Re: Remote Address Valve Lets Everything Through

2005-09-19 Thread Mark Leone
The asterisks in the valve below are an artifact of the way I did my cut and paste. The actual valve appears as follows in server.xml valve className=org.apache.catalina.valves.RemoteAddrValve allow=xxx..xxx.xxx.xxx/ // actual IP address not shown -Mark Mark Leone wrote: I'm trying to

Re: Resizing JPEG Images

2005-09-19 Thread Wendy Smoak
From: Justin Jaynes [EMAIL PROTECTED] I am accepting JPEG uploads on a website I developed in JSP and Java Beans. It all runs on Tomcat. I once knew of a Java Bean that would accept a JPEG and scale and resize the image and save it. I need my web-app to resize the images as it accpets them.

SOAP on TOMCAT 5.0

2005-09-19 Thread niladri.gupta
Hi Guys, Some help required on using SOAP on Tomcat 5.0. I need to configure SOAP 2.3.1 with Tomcat 5.0 locally on my machine. Following are the things I did: 1) Copied the soap.war file under the webapps directory. 2)Set the class paths in my system 3) copied the latest version of

Multiple SSL certificate on tomcat

2005-09-19 Thread Arvind Saxena
Hi, I would like to know more about how the multiple Verisign certificate will work with Tomcat 5.0.25. I'v taken 2 diffrent Verisign SSL certificate for tomcat. Example: [1] a.mysite.com [2] b.secondsite.com After that i'd imported above certificate to keystore. When I'm calling