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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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
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
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
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
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
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
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
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
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
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
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/ (
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
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
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
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
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:
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
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?
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
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
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
_
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
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
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
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?
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
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
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
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
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
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 =
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
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
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:
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
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);
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
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
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
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
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
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
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
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.
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
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
66 matches
Mail list logo