Re: Mixing Form-based authentication with Public Resources

2005-09-20 Thread Tim Funk
No solution. You can filter prefix, or suffix, but not both. -Tim Marquez, Omar wrote: Hi, Im using Tomcat Form-based Authentication with a JDBC realm, this is working ok for all my pages that are protected trough web.xml with All System *.do *.jsp

Re: Custom tags and scope

2005-09-20 Thread Rahul Akolkar
> 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 o

Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread NoKideen
On Tuesday 20 September 2005 21:11, Sonja Löhr wrote: > I know this problem very well, since I worked on a very memory-consuming > app where I coulnd't even reload twice. It has nothing to do with ant, > and i think I also had such a case with tomcat 5.5 (now working on > "normal" webapps ;-) wh

Re: Starting options

2005-09-20 Thread Krzysztof Graczyk
Arup Vidyerthy wrote: Sorry for being nosy but can I ask you exactly why do you want these directories in different palces so that I can understand your problem a little more? Yea, I have to change configuration scripts (server.xml and ROOT.xml), from external application, but it must b

Re: Mod_jk setup problems

2005-09-20 Thread Don Boling
Thanks Mark, I this helped a lot ... I'll insert comments as well... ;) Mark Eggers wrote: 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 th

RE: Starting options

2005-09-20 Thread Arup Vidyerthy
: Re: Starting options Tim Funk wrote: > See catalina.sh for options you can set on startup. > > CATALINA_TMPDIR - should allow you to set your temp directory. Thanks for reply, but this doesn't solve the problem. Work directory is still written in $CATALINA_BASE, also log files

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Sonja Löhr
I know this problem very well, since I worked on a very memory-consuming app where I coulnd't even reload twice. It has nothing to do with ant, and i think I also had such a case with tomcat 5.5 (now working on "normal" webapps ;-) Cautiously, I would never reload via manager (or perhaps once) in

Re: Starting options

2005-09-20 Thread Krzysztof Graczyk
Tim Funk wrote: See catalina.sh for options you can set on startup. CATALINA_TMPDIR - should allow you to set your temp directory. Thanks for reply, but this doesn't solve the problem. Work directory is still written in $CATALINA_BASE, also log files are written in /tmp. I would like to cu

Re: Remote Address Valve Lets Everything Through

2005-09-20 Thread midnightjava
>Tim Funk >Tue, 20 Sep 2005 04:59:13 -0700 > >Not: Try: >-Tim I've been making pretty good advances in java development skills, but I'm still working on the alphabet thing. Now I see, some letters are bigger than others, and the computers often attach great significance to the difference. Than

Re: tomcat detecting http header

2005-09-20 Thread Jon Wingfield
Of course, you could just call request.getRemoteAddr(); Tomcat is a Servlet Specification container. You don't get headers with CGI naming conventions. Check out the api documentation: http://java.sun.com/j2ee/1.4/docs/api/index.html It's the packages starting with javax.servlet that will be o

Re: Starting options

2005-09-20 Thread Tim Funk
See catalina.sh for options you can set on startup. CATALINA_TMPDIR - should allow you to set your temp directory. -Tim Krzysztof Graczyk wrote: Hi! I have a question about starting options of Tomcat server. Is there any starting option (from command line - org.apache.catalina.startup.Boots

Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Mark
2 notes. When using Java 1.5, StringBuilder class is supposed to be better according to documentation. Also, what has worked for me, is that if any of the strings can be generated ahead of time, do so in a static block and convert the strings to byte[]. This not only eliminates redundant Strin

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-20 Thread Gregg D Bolinger
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: David Thielen > Cc: Tomcat Users List > Subject: Re: Tomcat 5.5.9 and IIS 5/6 >

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Peter Crowther
> From: NoKideen [mailto:[EMAIL PROTECTED] > usually I use String to collect output first and out.print() > those String > example : > String a=""; > a+="Test 1"; > a+="Test 2"; > // very long , and almost 1 page > > out.println(a); > > can this cause out of memory problem ? It won't help

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
[EMAIL PROTECTED] > Sent: 20 September 2005 15:08 > To: Tomcat Users List > Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 > > > > From: Allistair Crossley [mailto:[EMAIL PROTECTED] > > Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 > &

Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread NoKideen
On Tuesday 20 September 2005 20:56, Allistair Crossley wrote: > You'll almost likely find that the reload via Ant does not free up all > resources and so each time you perform a reload you'll be leaking some > memory resulting in OOME after a week. > > 3 things to do; > > Get a profiler to see wher

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Caldarale, Charles R
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] > Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 > > 3 things to do; > > Get a profiler to see where you may be losing memory. > Ensure no resource/references are held onto, dispose > references

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Phillip Qin
I would recommend you upgrade to 5.5.9 if you use struts. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: September 20, 2005 9:56 AM To: Tomcat Users List Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04 You'll almost likely find tha

Re: Resizing JPEG Images

2005-09-20 Thread Michael Wirz
Hello, This is what I use for the given problem. I found it on the web and it fits my needs, so perhaps you'd like to use it as well Best wishes from near Munich, Germany, Michael Wirz import com.sun.image.codec.jpeg.*; import java.awt.*; import java.awt.image.*; import java.io.*; public clas

RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
You'll almost likely find that the reload via Ant does not free up all resources and so each time you perform a reload you'll be leaking some memory resulting in OOME after a week. 3 things to do; Get a profiler to see where you may be losing memory. Ensure no resource/references are held onto

RE: How can iredirect a request from one apache to other apache.

2005-09-20 Thread Caldarale, Charles R
> From: Rohit Maheshwari [mailto:[EMAIL PROTECTED] > Subject: How can iredirect a request from one apache to other apache. > > I have the configuration like below > User--->Apache ( mod_ssl)--->Apache (mod_ssl)--->Weblogic Server And what does this have to do with Tomcat? - Chuck THIS CO

Re: Resizing JPEG Images

2005-09-20 Thread Derek Conniffe
Hi Justin, I've written beans like that many times (image resizing, cropping, etc). Its a doddle with JAI. If you want some code examples email me. Derek Ben Kim wrote: Wonder if this fits your needs, but ginp uses something similar. http://culnane.navidat.com/dc/ginp/index.jsp Features

RE: Resizing JPEG Images

2005-09-20 Thread Ben Kim
Wonder if this fits your needs, but ginp uses something similar. http://culnane.navidat.com/dc/ginp/index.jsp Features - Thumbnails are created and stored on the file system. - Pictures are sized to the browser window size to reduce bandwidth. Regards, Ben Kim Developer http://benix.tamu.edu

Re: jdbc driver

2005-09-20 Thread Kito Holliday
Thanks for the quick reply... Yes the .jar file is in common/lib. I fear the problem lies in the server.xml since jndi is binding datasource jdbc/TestDB to org.hsql.jdbcDriver On Mon, 19 Sep 2005, andy gordon wrote: > is the MySQL Connector Jar file in the $CATALINA_HOME/common/lib directory?

RE: SOAP on TOMCAT 5.0

2005-09-20 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: SOAP on TOMCAT 5.0 > > java.lang.UnsupportedClassVersion error: org/w3c/dom/Node (unsupported > major.minor version 48.0) This is the version of a class file you're trying to load - 48.0 corresponds to JRE/JDK 1.4, so that would indi

Re: Multiple SSL certificate on tomcat

2005-09-20 Thread Arthur D'Alessandro
You may have multiple certs, but each cert must be contained within it's own keystore file.. You also must have each cert on it's own host IP, as noted below, each cert is bound to 443 on 10.1.1.1 and 10.1.1.2... snipplet from server.xml: http://10.1.1.1>" /> http://10.1.1.2

Re: Error with Error Document defined (really need ideas)

2005-09-20 Thread Yassine ELassad
directBOX Reply --- From: "Yassine ELassad" ([EMAIL PROTECTED]) To: tomcat-user@jakarta.apache.org Date: 19.09.2005 17:57:50 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 followi

Re: Remote Address Valve Lets Everything Through

2005-09-20 Thread Tim Funk
Not: KEREM ERKAN wrote: Hi Mark, Is it possible that you may have mistyped allow="xxx.xxx.xxx.xxx" as allow="xxx.xxx.xxx.xxx in your configuration? If you did not accidentally delete the (") from the right hand side of allow when sending to the list, that may be your problem. Thanks for

Re: Remote Address Valve Lets Everything Through

2005-09-20 Thread Mark Leone
KEREM ERKAN wrote: Hi Mark, Is it possible that you may have mistyped allow="xxx.xxx.xxx.xxx" as allow="xxx.xxx.xxx.xxx in your configuration? If you did not accidentally delete the (") from the right hand side of allow when sending to the list, that may be your problem. Thanks for the sugg

Re: tomcat does not find my web application

2005-09-20 Thread David Delbecq
Le Mardi 20 Septembre 2005 12:55, Mbah Tenjoh-Okwen a écrit : > >World, >When i create a folder my container does not > > recognize my index.html file in the top level > directory > > nor is it able to find my servlet classes. But when i > > duplicate the servlet-examples folder and r

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

2005-09-20 Thread Rohit Maheshwari
sday, September 20, 2005 4:16 PM To: Tomcat Users List Subject: Re: Not able to access the home page of Apache with mod-ssl Could IE be configured so that it is going through a proxy? On 9/19/05, Rohit Maheshwari <[EMAIL PROTECTED]> wrote: > Hi All, > I am setting up Apache 2.0.54 with

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

2005-09-20 Thread Mark
Could IE be configured so that it is going through a proxy? On 9/19/05, Rohit Maheshwari <[EMAIL PROTECTED]> wrote: > 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 >

Re: Cluster and notifications to nodes

2005-09-20 Thread Eino Lilius
Hi Peter and others, Thank you for the instructions, I got it working! :) I have still one question: how will I get the received message passed to my web application (message is received by Catalina)? (is there a way to add that listener to my web application or does it have to be defined in the

RE: tomcat detecting http header

2005-09-20 Thread Jason Bell
Hi, When developing web app code I tend to enumerate on the headers coming in. Have a look at: public java.util.Enumeration getHeaderNames(); So: // get the header names Enumeration ee = request.getHeaderNames(); // then iterate through them for(;ee.hasMoreElements();){ String header = (S

Re: Resizing JPEG Images

2005-09-20 Thread David Delbecq
java.awt classses? :) Le Mardi 20 Septembre 2005 10:40, Arup Vidyerthy a écrit : > Hi, > > You have quite a few options. There are lots third party libs out there that > can do this for you. Last couple of projects I have used JAI and > ImageMagick/JMagick to do this. > > Look them up. > > Hope

RE: Resizing JPEG Images

2005-09-20 Thread Arup Vidyerthy
Hi, You have quite a few options. There are lots third party libs out there that can do this for you. Last couple of projects I have used JAI and ImageMagick/JMagick to do this. Look them up. Hope this helps. Arup -Original Message- From: Justin Jaynes [mailto:[EMAIL PROTECTED] Sent:

Re: war classpath problem

2005-09-20 Thread lio tomcat
forgot to tell about my env : jboss3.2.2/jbossweb-tomcat41.sar On 9/20/05, lio tomcat <[EMAIL PROTECTED]> wrote: > > Hello world, > My war and i have some problem for loading some class that are embedded > in jars in myWar/WEB-INF/lib... > I tried to solve this by writing a proper myWar/META-I

RE: Remote Address Valve Lets Everything Through

2005-09-19 Thread KEREM ERKAN
ssage- > From: Mark Leone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 20, 2005 6:58 AM > To: Tomcat Users List > Subject: Re: Remote Address Valve Lets Everything Through > > The asterisks in the valve below are an artifact of the way I > did my cut and p

Re: SOAP on TOMCAT 5.0

2005-09-19 Thread Hardik Tank
hi, u will get "unsupported major.minor version 48.0" error when ur code has been compiled using higher version of JDK (may be 1.5) and u r running it using lower version of JDK/JRE (may be 1.4) check ur setup and JRE/JDK once again. rgds, Hardik Tank --- [EMAIL PROTECTED] wrote: > > Hi Guys

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 th

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 allow="xxx..xxx.xxx.xxx/> // actual IP address not shown -Mark Mark Leone wrote: I'm trying to implement a simple remote address valve, but it doesn't seem t

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 w

RE: Cannot forward after response has been committed

2005-09-19 Thread Tony
line--- <% at this point the response has been committed by outputting the above \r\n or whatever -Original Message- From: Michael Lai [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 10:34 PM To: Tomcat Users List Subject: Re: Cannot forward after response has been committed

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
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 Messa

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 PROTECT

RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 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 P

RE: Where to place a common jar file?

2005-09-19 Thread David Thielen
2005 4:19 PM To: Tomcat Users List Subject: Re: Where to place a common jar file? >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-IN

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. > >

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 = (DataSource)lookup("jdbc/T

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 do

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 Gre

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 class

Re: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread Gregg D Bolinger
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
on my system. > > Thanks – dave > >-- > > *From:* Gregg D Bolinger [mailto:[EMAIL PROTECTED] > *Sent:* Monday, September 19, 2005 2:45 PM > *To:* David Thielen > *Cc:* Tomcat Users List > *Subject:* Re: Tomcat 5.5.9 and IIS 5/6 >

RE: Tomcat 5.5.9 and IIS 5/6

2005-09-19 Thread David Thielen
_ From: Gregg D Bolinger [mailto:[EMAIL PROTECTED] Sent: Monday, September 19, 2005 2:45 PM To: David Thielen Cc: Tomcat Users List Subject: Re: Tomcat 5.5.9 and IIS 5/6 Ok Dave. I rebooted and the Filter is Green. So that is a start. However, the servlets-examples is still not being loaded

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 pag

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? Th

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 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: G

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

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 i

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: > > > > WEB-INF/web.xml > > > > > Sorry, false alarm. Just remembered XML is case sensitive ;-) James Shaw --

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 to

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/

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)

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

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: 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

Re: Problems with utf-8 encoding

2005-09-19 Thread Yair Zohar
ember 19, 2005 9:43 AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding 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 en

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

RE: Problems with utf-8 encoding

2005-09-19 Thread Guy Katz
AM To: Tomcat Users List Subject: Re: Problems with utf-8 encoding 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 &g

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 setS

Re: Problems with utf-8 encoding

2005-09-18 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: > >

Re: Problems with utf-8 encoding - continue

2005-09-18 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-18 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

2005-09-18 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 t

Re: Newbie question. /manager only gives the directory listing

2005-09-18 Thread tomcat
Ah, it worked like a charm! Thanks a bunch, Peter! :) /Jimi Quoting Peter Johnson <[EMAIL PROTECTED]>: Jimi, try /manager/html [EMAIL PROTECTED] wrote: Hi all, I have been using Tomcat for some time now, but I still feel like a newbie in most regards. At least when it comes to configuri

Re: Newbie question. /manager only gives the directory listing

2005-09-18 Thread Peter Johnson
Jimi, try /manager/html PJ [EMAIL PROTECTED] wrote: Hi all, I have been using Tomcat for some time now, but I still feel like a newbie in most regards. At least when it comes to configuring it. Tomcat has been working great, together with Apache 2, for several months now. But now, I find mys

Re: password authentication causes 403 error

2005-09-18 Thread paul
Thanks Bill - that did it! Bill Barker writes: <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi there, I would like to set up my development tomcat-5.0.28 (on port 8080) so that all webapps that are not password protected, to have password authentification. Since it is my de

Re: different uid per or perhaps something else

2005-09-18 Thread QM
On Sat, Sep 17, 2005 at 03:39:22PM -0700, Alexander Kabanov wrote: : I have a bundle "apache - mod_jk - tomcat" working and virtual hosts : properly configured, : everything is nice, but with a few small issues. In addition to this : configuration - each virtual : host represents different users wh

Re: Cluster and notifications to nodes

2005-09-18 Thread Peter Rossbach
Hey Bradley, a) mark application as priviliged=true b) define and implement your own ClusterMessage c) via MbeansServer you got the Catalina:type=Cluster,host=localhost mbean and send your operation ( send(ClusterMessage)). d) Register a ClusterListener. with 5.5.11 you can con

Re: jconsole & security manager

2005-09-18 Thread Peter Rossbach
You can find detail information here: http://java.sun.com/j2se/1.5.0/docs/api/javax/management/MBeanPermission.html Very simple config example: http://mx4j.sourceforge.net/docs/ch03s10.html Peter Pfingstl Gernot schrieb: I like to monitor my tomcat 5.5 (running on jdk 1.5.0) with jconsole. I

RE: Can't get isapi_redir working on Win 2003/IIS6

2005-09-17 Thread David Thielen
I set logging to debug, deleted the log file, and restarted. No log file was created. But in the ISAPI Filter list it does have a green up arrow. What do I try now? Thanks - dave -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Saturday, September 17, 2005 10:50 P

Re: password authentication causes 403 error

2005-09-17 Thread Bill Barker
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > I would like to set up my development tomcat-5.0.28 (on port 8080) so that > all webapps that are not password protected, to have password > authentification. Since it is my dev box I would like to use the memory > realm

Re: Suppress "Connection reset by peer: socket write error".

2005-09-17 Thread Bill Barker
"Dola Woolfe" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I apologize for asking this question again for I > remembering asking this question in the past, but I > can't find the response. > > What setting (and where) will suppress the > aforementioned exception in the to

Re: Tomcat5.5 stops responding after sevral days

2005-09-17 Thread Arthur D'Alessandro
Try adding the LD_ASSUME_KERNEL from the tomcat readme.. Tomcat on Linux: GLIBC 2.2 / Linux 2.4 users should define an environment variable: export LD_ASSUME_KERNEL=2.2.5 Redhat Linux 9.0 users should use the following setting to avoid stability problems: export

Re: mod_jk performance

2005-09-17 Thread Andrew Miehs
u just push all the traffic straight through anyway, we decided not to put Apache between our users and our Tomcat servers. If I didn't need to use re-writes, and complicated rules on our apaches, I would also use THTTP for performance reasons. Andrew On Sep 16, 2005, at 3:39 PM, Pe

Re: Wher do I get binary of Tomcat

2005-09-17 Thread Pham Tran Quoc Viet
eciate marketing in particular based on solution flaws > introduced to sell a product. RE is a basic that should be support regradless > wheter it is free service or not. > > > >Switch to Netscape Internet Service. > >As low as $9.95 a month -- Sign up today at http://i

RE: Wher do I get binary of Tomcat

2005-09-17 Thread MaciekSKontakt
Do you work for netscape? I have Verizon ISP and I do not believe that Netscape will provide me service at at least 1.5Mb/s for 10 dollars. I do not appreciate marketing in particular based on solution flaws introduced to sell a product. RE is a basic that should be support regradless wheter

Re: Broken links on the Tomcat 5.5 Docs pages

2005-09-17 Thread Mark Thomas
Brian Cook wrote: The following links relating to realm logging on page http://jakarta.apache.org/tomcat/tomcat-5.5-doc/realm-howto.html are broken http://jakarta.apache.org/tomcat/tomcat-5.5-doc/context.html http://jakarta.apache.org/tomcat/tomcat-5.5-doc/host.html http://jakarta.apache.org

Re: tomcat url connections

2005-09-17 Thread Mark Thomas
Navalpotro Herrero, Luis wrote: Hello, I have face recently found a tomcat issue that is driving me nuts. I have a Java application that opens a URL connection against tomcat. The parameteres are URLEncoded to be UTF-8 compatible. One of the values of the params is xml (which is the one that m

Re: Help figuring out Virtual Hosts

2005-09-17 Thread Jilles van Gurp
You can use multiple hosttags in the server.xml, each with their own context. As described here http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/host.html "One or more Host elements are nested inside an Engine element. Inside the Host element, you can nest Context elements for the web app

Re: Why doesn't my context work?

2005-09-16 Thread Mark Eggers
--- Michael Sullivan <[EMAIL PROTECTED]> wrote: > OK. For clarification I am running > tomcat-5.0.27-r6. I want user's > tomcat files to be read from > /home/*/webspace/webapps. My personal > account is michael so my personal tomcat directory > would > be /home/michael/webspace/webapps . Ju

Re: Issue with the "admin" webapp

2005-09-16 Thread Sastry Malladi
Thanks. I've verified that this is fixed in 5.5.11-alpha. Just wanted to know if the same fix will be made available under 5.0.x (5.0.30 ?) as well ? I'd imagine the fix is just to the admin webapp itself, and assuming that it is backward compatible with 5.0.x, then we should be able to use th

Re: Tomcat on UNIX

2005-09-16 Thread Tim Funk
java 1.4 -Tim Wei Zhao wrote: Hi: What's the JDK/JVM requirement for running Tomcat 5.5 on AIX 5.1 and HP-UX11? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Why doesn't my context work?

2005-09-16 Thread Michael Sullivan
> >From the documentation for Tomcat 5.5.9 at > http://localhost:8080/tomcat-docs/config/context.html: > > The Document Base (also known as the Context Root) > directory for this web application, or the pathname > to the web application archive file (if this web > application is being executed di

RE: Help figuring out Virtual Hosts

2005-09-16 Thread Durfee, Bernard
Dola, I believe in order to serve static content you'll need to create a context XML file. I just posted an email outlining how I was able to get virtual hosting working. An additional step in your case would be to create a file [TOMCAT]/conf/Catalina/servera.com/ROOT.xml and include a definition.

Fwd: Re: How to change the SSL port

2005-09-16 Thread CommonGround Softworks/Phil McNamara
>On 9/15/05, Hassan Schroeder <[EMAIL PROTECTED]> wrote: >> CommonGround Softworks/Phil McNamara wrote: >> >> > The tomcat log does show a bind error message after my server.xml edit to >> > port 443. >> > >> > Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init >> > SEVERE: Erro

Re: Why doesn't my context work?

2005-09-16 Thread Hassan Schroeder
Michael Sullivan wrote: what I found. Anyway, I created a file called home.xml in /opt/tomcat5/conf/Catalina/localhost. I made home.xml by copying admin.xml and altering it. Here are the contents of home.xml: Per the Tomcat doc that's been quoted here half-a-dozen times in the last coupl

<    4   5   6   7   8   9   10   11   12   13   >