JspWriter output disappearing

2004-05-26 Thread Keith Hankin
I have a custom taglib class that extends BodyTagSupport. The doStartTag() method returns EVAL_BODY_BUFFERED. I then have another custom taglib class that is a child of this tag, which extends TagSupport. In doStartTag(), this method gets the JspWriter and writes to it, however the output does n

standalone production?

2004-05-26 Thread Justin Jaynes
Is it considered safe to run tomcat as a stand-alone production server on ports 80 and 443? This requires tomcat to run as root (or so I have read) and it is therefore "not recommended". Using apache forks child processes that run as nobody. But I don' want to use apache. Again, is it safe to r

Verifying signatures

2004-05-26 Thread Justin Jaynes
I recently downloaded TOMCAT 5 and I read that I am responsible to verify the integrity of the download from the mirror using some key or signature. How do I do that? I am running SuSE linux 9.1. Please be specific. What key's or signatures or checksums do I download? Where do I place them? W

RE: RE: Tomcat 4.1.30 Hung!!! With High Traffic

2004-05-26 Thread Pavle
Try to make kill -QUIT on the tomcat process. This will make a thread dump. Most probaly the Thread dum will appear in the catalina.out Check there to see if some of your threads are halting in some point in your code. Pavle -Original Message- From: Antonio Fiol Bonnэn [mailto:[EMAIL

Re: Session Timeout and "Direct Reference to login page"

2004-05-26 Thread Veniamin Fichin
Jonathan Eric Miller wrote: The strange thing is that this page seems to only intermittently be displayed. i.e. it is catching the case where the session expires, but, in some cases since I'm using container based security, it is going back to the login page. Sometimes it goes to this page first, a

Re: A newbie here. Looking for information

2004-05-26 Thread jerome greene
Thanks Parsons Technical Services <[EMAIL PROTECTED]> wrote:Jerome, The Apache referred to here is actually HTTPD and is a different product than Tomcat. They are both from the Apache Organization but serve different roles. So for question 1. the answer is NO. For question 2, IF you do not have

Re: A newbie here. Looking for information

2004-05-26 Thread Parsons Technical Services
Jerome, The Apache referred to here is actually HTTPD and is a different product than Tomcat. They are both from the Apache Organization but serve different roles. So for question 1. the answer is NO. For question 2, IF you do not have Apache HTTPD running you can run Apache Tomcat. IF you have

A newbie here. Looking for information

2004-05-26 Thread jerome greene
I am running on a windows xp home addition machine. I also have Oracle 8I database on the machine. Under Oracle HTTP server I have Apache 1.3 My questions are: 1) Is Apache the same as Tomcat? 2) If you have Apache(not running it) can you use Tomcat? The reason I am asking the above questions

Re: where to put "request.registerRequests=false" when using mod_jk (not jk2)

2004-05-26 Thread Bill Barker
"Emerson Cargnin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm running out of memory with the msg: > > ... > WARNING: Error registering request > May 25, 2004 5:36:44 PM > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run > SEVERE: Caught exception (java.lang.OutOf

Tomcat starts poorly on Windows XP

2004-05-26 Thread Joel Shprentz
A search of the tomcat-user archives suggests that this is a new way for Tomcat to start poorly on Windows XP. Below is stdout.log after a clean install of j2sdk-1_4_2_04-windows-i586-p.exe and jakarta-tomcat-5.0.24.exe on a Windows XP Pro desktop system. I started Tomcat from the Configure Tomca

Re: Client-certificate issues

2004-05-26 Thread Bill Barker
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I want to use client-certificate authentication in our webapplication. > There are two things that I really don't understand: > > First: > > Why is it necessary to set clientAuth = true in the Factory-tag when > configuring a C

Re: question/problem

2004-05-26 Thread Bill Barker
"Jonathan Eric Miller" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to configure my application so that everything has to be > encrypted. I was able to do that by using the security constraint at the > bottom of this message. I've had this working for awhile without a

Re: PrintWriter performance

2004-05-26 Thread Jacob Kjome
At 09:15 PM 5/26/2004 +0200, you wrote: 4/ depends on the JDK; newer compilers /may/ see a repeat string concat ("+" op) and replace w/ StringBuffer under the covers... This is a common psuedo-misconception. Compilers can't do anything with strings that have a paramter of which the value can on

Re: Certificates and SSL Authentication

2004-05-26 Thread Dennis Dai
On 5/26/2004 4:35 PM, Sander Smith wrote: Thanks for your help but my question wasn't answered. I understand certificate chains - I even created some long ones. My question is about SSL specifically. The way I understand the SSL handshake, the server only sends a certificate to the client - ther

RE:Mail Delivery (failure rackerman@glrslaw.com)

2004-05-26 Thread tomcat-user
A virus was found in an email you sent. Our email server has quarantined your message and stopped it from reaching its destination. Please update your virus scanner and/or contact your IT support personnel. You may have a virus on your system. -

RE: Using JMS in Tomcat Valve

2004-05-26 Thread Filip Hanik \(lists\)
what initial context are you trying to connect to you can do this: Properties props = new Properties(); props.setProperty(...); Context cxt = new InitialContext(props); where you set the machine and port of the machine hosting your initial context. (should be the URL to the server where your JMS

RE: A cluster question

2004-05-26 Thread Filip Hanik \(lists\)
Ok, the SimpleTcpReplicationManager is a little behind, ie I haven't spent as much time on that one. Do you have an IM id, send it to fhanik at apache dot org, and we can work this out Filip -Original Message- From: Ilyschenko, Vlad [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 200

Revisted: 302 Response When Request URI == Context Path

2004-05-26 Thread Blair Cooper
In November of last year, Mark Palandri asked about the behavior in Tomcat5 where a request for the URI http://bar/foo resulted in a redirect to http://bar/foo/ (note trailing slash). Bill Barker answered with 'The reason that Tomcat does this is that HTML tags

Re: Certificates and SSL Authentication

2004-05-26 Thread Jim Hopp
SSL v2 could only send 1 certificate. SSL v3 and TLS can send arbitrarily-length certificate chains (the client doesn't ask for it, the server sends the entire chain as part of the handshake; if you're using client authentication then the server sends a certificate request to the client and th

Using JMS in Tomcat Valve

2004-05-26 Thread Rui Zhang
Hi all, How can I configure tomcat to use JMS in its valve? I failed at the very beginning, when I tried to obtain the JNDI context, after moving the J2EE jms.jar to under server/lib. --- The Exception I got was: [main] ERROR digester.Digester - Begin ev

Re: Certificates and SSL Authentication

2004-05-26 Thread Sander Smith
Thanks for your help but my question wasn't answered. I understand certificate chains - I even created some long ones. My question is about SSL specifically. The way I understand the SSL handshake, the server only sends a certificate to the client - there is no provision to send a certificate c

RE: A cluster question

2004-05-26 Thread Ilyschenko, Vlad
hi Filip, sorry to say but i've encountered another problem. Although SimpleTcpReplicationManager does replicate my bean ok it doesnt seem to maintain the session correctly. To test the cluster im using round-robin DNS record. Whenever the client browser is forced to switch from one tomcat

Re: Hot deploy

2004-05-26 Thread Emerson Cargnin
dai cara!! :P you have to undeploy before deploying again an already existing application... Claudio Carvalho wrote: Cláudio CarvalhoHi, Does anybody know how to make a deploy on a running tomcat (hot deploy)? When I try do it using the Tomcat Web Application Manager, I got the following message

Re: where to put "request.registerRequests=false" when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
Does anyone could comment on that?? For what I saw the changelog of 5.0.25, there ins't any change in this field... At this moment I have 5492 times the line "WARNING: Error registering request" at my catalina log maybe this could be the cause of the memory leak? In mod_jk, how do I solve thi

RE: video/x-ms-wmv mime-type added for wmv files, but doesn't seem to work

2004-05-26 Thread Patrick Willart
Thanks for your response Jeanfrancois, It appeared just to be my now version of Internet Explorer acting up. My manager actually changed his mind a few minutes later and wanted that our users always download the file before viewing it. It makes some sense because the videos are over an hour long.

Re: Certificates and SSL Authentication

2004-05-26 Thread Jim Hopp
See "Certificate Chains" in http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html#Certificates. Sander Smith wrote: I'm a bit confused concerning SSL certificates, and hope someone can shed some light. In reading through the SSL spec concerning the SSL handshake, it appears to me th

Certificates and SSL Authentication

2004-05-26 Thread Sander Smith
I'm a bit confused concerning SSL certificates, and hope someone can shed some light. In reading through the SSL spec concerning the SSL handshake, it appears to me that the certificate that authenticates my server must be signed by a certificate that is known to the client's browser. This would

RE: File Upload with JSPs

2004-05-26 Thread None None
As someone who wrote their own multipart parser, then used the famous O'Reilly parser, and finally discovered the commons fileupload package, let me just say this... using anything but that last one is NUTS! :) Seriously though, the various commons projects have been a Godsend ever since I foun

RE: Load balancing

2004-05-26 Thread Mike Curwen
the docs for jk2 suggest : "tomcatId" is "Automatically set to the localname ( host:port )" and that it "Must match the JVM route on tomcat the server.xml Engine element, for load balancing" So maybe: [channel.socket:172.16.10.39:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3

RE: File Upload with JSPs

2004-05-26 Thread Deepak Vishwanathan
Hi, I would like to thank Trung Nguyen and Simone for their timely response. Thank you Deepak Vishwanathan Trung Nguyen <[EMAIL PROTECTED]> wrote: Deepak, It works great with my apps... http://jakarta.apache.org/commons/fileupload/ -Original Message- From: Deepak Vishwanathan [mail

Re: Re: tomcat 5.0.25 - Problem in running jsp

2004-05-26 Thread Rajesh_Narayanan
I tried both... but the result is same... Raj >5.0.25 >could it be 5.0.24? >Emerson Rajesh_Narayanan wrote: > When i try to run any .jsp file (even hello world).. its throwing following > error: > > - > ERROR [http-808

Re: tomcat 5.0.25 - Problem in running jsp

2004-05-26 Thread Emerson Cargnin
5.0.25 could it be 5.0.24? Emerson Rajesh_Narayanan wrote: When i try to run any .jsp file (even hello world).. its throwing following error: - ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling file: /C:/workspace

RE: Load balancing

2004-05-26 Thread Charles P. Killmer
Can I do something like this? [shm:] info=Shared memory file. Required for multiprocess servers file=C:\Tomcat\work\jk2.shm size=100 [channel.socket:172.16.10.39:8009] info=Ajp13 worker, connects to tomcat instance using AJP 1.3 protocol tomcatId=172.16.10.39:8009 [channel.socket:172.16.10.3

RE: File Upload with JSPs

2004-05-26 Thread Trung Nguyen
Deepak, It works great with my apps... http://jakarta.apache.org/commons/fileupload/ -Original Message- From: Deepak Vishwanathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 5:17 PM To: [EMAIL PROTECTED] Subject: File Upload with JSPs Hi, I am working with Jsps on Tomcat

R: File Upload with JSPs

2004-05-26 Thread Simone - Dev
Sure, there is Jakarta Common FileUpload http://jakarta.apache.org/commons/fileupload/ Simone - Simone Chiaretta www.piyosailing.com/S Any sufficiently advanced technology is indistinguishable from magic "Life is short, play hard" > -Messaggio originale- > Da: De

tomcat 5.0.25 - Problem in running jsp

2004-05-26 Thread Rajesh_Narayanan
When i try to run any .jsp file (even hello world).. its throwing following error: - ERROR [http-8080-Processor24] (Compiler.java:405) - Error compiling file: /C:/workspace/VCE2/work/org/apache/jsp//org/apache/jsp\hw_jsp.java [javac]

File Upload with JSPs

2004-05-26 Thread Deepak Vishwanathan
Hi, I am working with Jsps on Tomcat Container. I searched through the net and found a class called MimeParser which seems to provide the file upload capability. Is there some open source Java API thats available that can be freely redistributed and that would provide me with the file uploadin

RE: A cluster question

2004-05-26 Thread Filip Hanik \(lists\)
anytime, glad I could help! Filip -Original Message- From: Ilyschenko, Vlad [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 26, 2004 2:56 PM To: Tomcat Users List Subject: RE: A cluster question Thanks a lot Filip, SimpleTcpReplicationManager does indeed work the way i need it! Vlad -

Tomcat SSL Question.

2004-05-26 Thread Bret Kumler
Hi all, New to SSL, not tomcat. :-) ENV. Tomcat 5.0 JDK 1.4.2_04-b05 Win XP I followed everything on http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html I did the following. 1. keytool -genkey -keyalg "RSA" -keystore chap8.keystore -storepass changeit 2. keytool -certreq -keyalg "RSA

Re: running Tomcat from jsvc daemon under Linux as user tomcat

2004-05-26 Thread Bob White
I have still not succeeded in getting jsvc daemon to run under Linux as user tomcat. All files under CATALINA_HOME are owned by the user tomcat. All files have been tried with 750 and 777 permissions. This does not solve the problem. I have noticed that jsvc looks up a JRE JVM rather than the d

Re: where to put "request.registerRequests=false" when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
At this moment I have 5492 times the line "WARNING: Error registering request" at my catalina log maybe this could be the cause of the memory leak? In mod_jk, how do I solve this? in jk2 the solution is to add the request.registerRequests=false in jk2.properties I have an upgraded produ

RE: Load balancing

2004-05-26 Thread Charles P. Killmer
Well heres my problem then. I have two sites. Site1.com and Site2.com. I need to use jsp. And I want to be able to have the default file jsp. www.site1.com/index.jsp and www.site2.com/index.jsp. I believe this requires the two sites to have the same context format. Context=/ Is there a way to

RE: Load balancing

2004-05-26 Thread HIRODE,KARTHEEK (HP-Boise,ex1)
Charles Since you have the same context being used for both sites, the traffic gets load-balanced across both sites. [uri:/*] info=JSP examples, map requests for all JSP pages to Tomcat. context=/ If you need certain kinds of traffic to go to one site and certain others to go to the other site,

RE: ResourceLink to JNDI DataSource in GlobalResources not working

2004-05-26 Thread Toby Tittles
Thanks for the help with getting me on the list. Actually, I've got 2 separate web applications that need to get connections from the same DataSource pointing to the same database, so I would like it to be global so that both wars can see it, as opposed to having to configure 2 separate conn

Re: External jars (how to make them visible for Tomcat)

2004-05-26 Thread Derek Eide
You can just modify the build.xml so that ant will include them - ie. ...extract of tomcat 5 build.xml.txt doc taken from $CATALINA_HOME/webapps/tomcat-docs/appdev hih Derek Eide On Wednesday

Load balancing

2004-05-26 Thread Charles P. Killmer
I have two sites set up and currently they are acting like they are load balanced. That's the problem. They shouldn't be. This is my workers2.properties file. Does anyone have an idea of why it would be alternating between the two sites? [shm:] info=Shared memory file. Required for multiprocess

Tomcat logging and the referer

2004-05-26 Thread RJ
Hello all: After my wonderful experience getting standalone tomcat with SSL running non-root today, there's only one hitch: I'm using the combined log format, and it seems to be OK, except that on the first hit on my site (to the static index.html page) the referer field is always "-". Subsequent h

RE: tomcat 5.x and jsp 2.0

2004-05-26 Thread Shapira, Yoav
Hi, Most files should work as-is. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 26, 2004 4:15 PM >To: '[EMAIL PROTECTED]' >Subject: tomcat 5.x and jsp 2.0 > >I recently switched from an old versi

RE: ResourceLink to JNDI DataSource in GlobalResources not working

2004-05-26 Thread Shapira, Yoav
Hi, Welcome to the list, finally ;) Why do you need to move it to the GlobalNamingResources? Yoav Shapira Millennium Research Informatics >-Original Message- >From: Toby Tittles [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 26, 2004 4:14 PM >To: [EMAIL PROTECTED] >Subject: ResourceLi

tomcat 5.x and jsp 2.0

2004-05-26 Thread Barnett, Brian W.
I recently switched from an old version of Resin to Tomcat 5.x. My jsp files are written to the jsp 1.2 spec. Do I have to convert them to jsp 2.0 spec? Should they work "as is"? What are my options? Thanks, Brian Barnett

ResourceLink to JNDI DataSource in GlobalResources not working

2004-05-26 Thread Toby Tittles
Hi There, I'm running Tomcat 4.1.30. When I put the Resource and ResourceParams elements in the Context element of my webapp, it seems to work fine, but when I move it to the GlobalNamingResources element and point to it using a ResourceLink, it doesn't seem to work giving me an exception sayi

RE: A cluster question

2004-05-26 Thread Ilyschenko, Vlad
Thanks a lot Filip, SimpleTcpReplicationManager does indeed work the way i need it! Vlad -Original Message- From: Filip Hanik (lists) [mailto:[EMAIL PROTECTED] Sent: Wed 5/26/2004 6:43 PM To: Tomcat Users List Cc: Subject:RE: A cluster question >Is there any other wa

Hot deploy

2004-05-26 Thread Claudio Carvalho
Cláudio CarvalhoHi, Does anybody know how to make a deploy on a running tomcat (hot deploy)? When I try do it using the Tomcat Web Application Manager, I got the following message FAIL - Application already exists at path /myapplicationThanks.

Importing chain certificate with keytool causes "keytool error: java.lang.Exception: Input not an X.509 certificate"

2004-05-26 Thread Ben Monnahan
I'm new to all of this, so I may be making an obvious mistake, but I've looked all over and can't seem to find a solution. I'm following the instructions for installing a certificate from a CA found here: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html Everything went fine until th

Re: Socket Create not supported

2004-05-26 Thread Jeanfrancois Arcand
Nikhil Sidhaye wrote: Hello Friends, Recently I got strange error on tomcat startup. I tried tomcat 4.0 as well as tomcat 5.0. But it shut down by giving strange error. Socket "create" is not supported. while in tomcat 5.0 it gives the same error indicating port no 8005 which is f

Re: video/x-ms-wmv mime-type added for wmv files, but doesn't seem to work

2004-05-26 Thread Jeanfrancois Arcand
Patrick Willart wrote: Hello, I've added the following to my conf/web.xml but it looks like Tomcat (5.0.18) isn't picking this up. It's serving the file as a plain text file. I've tried adding the mime-mapping to my applications web.xml but also without result. wmv video/x-ms-wmv

Re: PrintWriter performance

2004-05-26 Thread Antonio Fiol Bonnín
4/ depends on the JDK; newer compilers /may/ see a repeat string concat ("+" op) and replace w/ StringBuffer under the covers... This is a common psuedo-misconception. Compilers can't do anything with strings that have a paramter of which the value can only be realized at runtime. public s

Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Peter Rossbach
Thist is my working example a) I used JVM autodetection b) configured the jni channel c) add tools.jar for compiling jsp's [channel.jni:jni] info=The jni channel, used if tomcat is started inprocess [vm:] info=Parameters used to load a JVM in the server process #OPT=-Xdebug -Xnoagent -Xrunjdwp:t

RE: External jars (how to make them visible for Tomcat)

2004-05-26 Thread Shapira, Yoav
Hi, Copy them to WEB-INF/lib, not common/lib. But DO copy and don't symlink, that only leads to headaches in the long run, and disk space is cheap. Yoav Shapira Millennium Research Informatics >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May

External jars (how to make them visible for Tomcat)

2004-05-26 Thread hicnar
Hi all, I've got a simple question (hope it's simple) about enabling Tomcat to "see" external jars. Is coping them to ../tomcat/common/lib the only way to do this?? I'm trying to initialize Torque for servlets at Tomcat startup, and of course it can't find all the jars required by Torque. I know

Re: where to put "request.registerRequests=false" when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
Just to add, even when not getting out of memory, my catalina.log shows: ay 26, 2004 3:44:35 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 26, 2004 3:44:36 PM org.apache.jk.common.HandlerRequest invoke INFO: Unknown message 0 May 26, 2004 3:44:37 PM org.apache.jk.common.

Re: Thread stuck at get database connection!

2004-05-26 Thread Antonio Fiol Bonnín
Try setting testWhileIdle=true. Maybe also reduce maxWait. HTH, but I'm not sure at all. Antonio Innovest Ken wrote: hello, I found from my thread dump that 80% of my thread are at the following stage, waiting to lock PoolableConnectionFactory. This is the cause of my Tomcat hanging! Do I need to r

where to put "request.registerRequests=false" when using mod_jk (not jk2)

2004-05-26 Thread Emerson Cargnin
I'm running out of memory with the msg: ... WARNING: Error registering request May 25, 2004 5:36:44 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError) executing [EMAIL PROTECTED], terminating thread May 25, 2004 5:37:05 PM org.ap

video/x-ms-wmv mime-type added for wmv files, but doesn't seem to work

2004-05-26 Thread Patrick Willart
Hello, I've added the following to my conf/web.xml but it looks like Tomcat (5.0.18) isn't picking this up. It's serving the file as a plain text file. I've tried adding the mime-mapping to my applications web.xml but also without result. wmv video/x-ms-wmv I have added

Tomcat 5.0.19 runs out of memory through Apache 1.3 proxy

2004-05-26 Thread Richard Cunningham
Our Tomcat 5.0.19 runs out of memory when load testing through an Apache 1.3.26 proxy, but does not when the the same load test accesses Tomcat's HTTP port directly. We initially saw the problem with mod_jk, but once we saw that Tomcat didn't run out of memory with direct HTTP access , we went f

RE: Host Directive - I am half way there

2004-05-26 Thread Charles P. Killmer
I tried that a while ago and still the same round robin effects. Almost like it uses this file to get a list of servers that can process the request. Somehow I need to tell it to only use one of them. Thanks for all your help. You definitely gave me a jump on my progress. Charles Killmer ---

RE: Configuring mod_jk2/jk2 Via The JMX Console

2004-05-26 Thread Wilson Jimmy - jiwils
>>You have made a copy from mx4j.tools.jar to $catalina.hom/bin and >>changed your setclasspath Skript ? >>Please, send your log file output for more analyze steps. While I was waiting on your response, I found out more information. My catalina.out file contains information that indicates that

Re: All threads (150) are currently busy....

2004-05-26 Thread Antonio Fiol Bonnín
Hi Pavle, Do you use a database? Is there a firewall between Tomcat and the database? If both answers are "yes", try using testWhileIdle, validationQuery, time between eviction runs (can't remember property name) and other DBCP properties. Other than that, my typical advice, which I learnt from

RE: Tomcat as 'root' insecure? (again)

2004-05-26 Thread SH Solutions
Hi > Okay, I suppose you all are right saying that it's better not to run as root. But does the same apply to Windows? No, on Windows usual users are allowed to bind ports below 1024, which is the only problem for tomcat. Create any user account you want, give it sufficient access rights to tomca

RE: Host Directive

2004-05-26 Thread Mike Curwen
This is where you loose me. I'm really not certain how this all interacts with jk2. While the IP alone should be sufficient, you might try altering the port? Then of course, alter the ajp13 Connector in server.xml to listen on 8010 for your site1/2 service (whichever you alter). [channel.socke

RE: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Dale, Matt
I've spent a lot of time on this and still not managed to get it working. I can actually get the tomcat started inprocess and access it through port 8080 but I get the same errors as you have here and cant access it through the JNI channel. The only thing I can think that it could be is to do w

RE: Host Directive

2004-05-26 Thread Charles P. Killmer
Now I am definitely getting files from both sites. Though something weird is happening. I have a file in the root of each named test.jsp. In the file it is simply do out.print("site1.com"); and the other file is doing out.print("site2.com"); When I point a broewser to the site, it alternates bet

RE: ErrorPage.jsp - how to get the address of the offending page?

2004-05-26 Thread Mike Curwen
Does the request attribute javax.servlet.error.request_uri suit your needs ? (from the servlet spec, SRV.9.9.1) > -Original Message- > From: Dola Woolfe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 26, 2004 12:32 PM > To: [EMAIL PROTECTED] > Subject: ErrorPage.jsp - how to get the a

RE: Can I change Tomcat's default character encoding?

2004-05-26 Thread Yansheng Lin
Hi, quick response, you can use your own customized OutputStreamWriter. You need to extend the abstract class ServletOutputStream. And you integrate your customized writer with tomcat by implementing a filter. For more info on how to use filters, you can do a search on google. This will only

RE: Host Directive

2004-05-26 Thread Mike Curwen
Upon further reading of the docs, it appears you do need more than one service. From the docs: "A Service element represents the combination of one or more Connector components that share a single Engine component for processing incoming requests" and: "Exactly one Engine element MUST be nested in

RE: A cluster question

2004-05-26 Thread Filip Hanik \(lists\)
>Is there any other way to force replication apart from calling session.setAttribute(name, bean) yes, there is, but not using the DeltaManager, instead use SimpleTcpReplicationMananger and set useDirtyFlag="false" the useDirtyFlag is ignored on the delta manager, since the delta manager only repl

question/problem

2004-05-26 Thread Jonathan Eric Miller
I am trying to configure my application so that everything has to be encrypted. I was able to do that by using the security constraint at the bottom of this message. I've had this working for awhile without a problem. However, now, I want to add an additional restriction. I want to make it so that

Embedded Tomcat 5.0: servlet mappings added to context after start do not work

2004-05-26 Thread DJohnson
I have an application which embeds tomcat 4.1.12. It dynamically creates contexts, adding wrappers for servlets, etc. Due to the dynamic nature of this application, it can add and remove servlet mappings after the context has been started (added into a host in the started engine). This works

ErrorPage.jsp - how to get the address of the offending page?

2004-05-26 Thread Dola Woolfe
Hi, The subject pretty much contains the question. I would like the error page to send me an email with the URL of page that caused the exception. However, I can't figure out how to do it othe than by parsing the stack trace and somehow backing out the webpage.jsp that caused the error. Thanks!

Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh
I am now using Tomcat5.0.25 as you suggested but still getting same error. I don't think Apache is even getting to the part where it starts calling Tomcat (TomcatStarter) because the same error is generated when I completely remove Tomcat5.0.25 binary distribution from my machine. I am thinking

Fw: JDBC Realm Problem

2004-05-26 Thread Ignacio J. Tissera
Hi , I 've installed tomcat 5.0.24 and i try to implement security by JDBC Realm and the context is Loaded in the web.xml i wrote that: BACK OFFICE /carpetaUno/* AdministadorST FORM Tomcat Manager Application /logi

Re: Horrible memory leak in tomcat 5.0.19

2004-05-26 Thread Emerson Cargnin
I'm running out of memory with the msg: ... WARNING: Error registering request May 25, 2004 5:36:44 PM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError) executing [EMAIL PROTECTED], terminating thread May 25, 2004 5:37:05 PM org.ap

RE: Host Directive

2004-05-26 Thread Charles P. Killmer
Additional factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml

Re: Configuring mod_jk2/jk2 Via The JMX Console

2004-05-26 Thread Peter Rossbach
Hello Jimmy, I have more then one Tomcat controlled with HTTP JMX Adaptor on my system. Sorry, for the Typo. You must changed the mx.httpPort=9000 . This is the default MX4J HTTP Adpator Port. You have made a copy from mx4j.tools.jar to $catalina.hom/bin and changed your setclasspath Skript ? Ple

Socket Create not supported

2004-05-26 Thread Nikhil Sidhaye
Hello Friends, Recently I got strange error on tomcat startup. I tried tomcat 4.0 as well as tomcat 5.0. But it shut down by giving strange error. Socket "create" is not supported. while in tomcat 5.0 it gives the same error indicating port no 8005 which is for tomcat shutdown por

RE: Tomcat as 'root' insecure? (again)

2004-05-26 Thread Shapira, Yoav
Hi, To get access logs (in the Common Log File format, same as Apache and nearly all HTTP servers), comment in the AccessLogValve. It's commented out by default in server.xml. Read up on its configuration if you want some special logging pattern, as it's quite flexible. For SSL, just start a se

Need tomcat consulting - Sorry if this kind of message is not allowed.

2004-05-26 Thread Dola Woolfe
I hope that the moderator will delete this email if this sort of thing is against the list's charter - I've read the guidelines and it seems ok. Is anyone interested in a little bit of consulting on the recent version of tomcat and integration with apache (mostly on windows) as well as other tomca

RE: Configuring mod_jk2/jk2 Via The JMX Console

2004-05-26 Thread Wilson Jimmy - jiwils
>> the Remote JMX jk2 config is possible with this jk2.properties file >> >> With this configuration all JK2 Beans are reflect to the JMX MBeans >> (Domain "apache"). >> Access the MBeans with http://localhost:9000. (Ignore the xsl mx4j error >> at console) Tomcat is definitely doing more with

Re: apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Peter Rossbach
Hello Timothy, the JNI integration works only with Tomcat Release greater 5.0.20 and the commands changed to (startd and stopd) used the coming Tomcat 5.0.25 it is very stable. (Must add jmx.jar to your classpath) Regards Peter Timothy Suh schrieb: Subject: apache2+tomcat5.0.19+mod_jk2 in-process D

RE: Can webapps 'share' a security-constraint?

2004-05-26 Thread Knight, Digby
Look at the SingleSignOn valve. -Original Message- From: Barnet Wagman [mailto:[EMAIL PROTECTED] Sent: 26 May 2004 16:53 To: Tomcat Users List Subject: Can webapps 'share' a security-constraint? I'd like users to be able to login once and get access to several web apps. Is it possible

RE: Tomcat as 'root' insecure? (again)

2004-05-26 Thread RJ
Yoav et al: Thanks a million! When editing up the tomcat5.sh script, I also needed to fix the DAEMON_HOME and the reference to it in the 'start' method to go to the right path (it unpacked to something other than the expected /src/native/unix/jsvc ). And chown all the files to my tomcat user. Now

RE: why my servlet does not work?

2004-05-26 Thread Shapira, Yoav
Hi, Your url-pattern is illegal. Yoav Shapira Millennium Research Informatics >-Original Message- >From: zhicheng wang [mailto:[EMAIL PROTECTED] >Sent: Wednesday, May 26, 2004 11:31 AM >To: [EMAIL PROTECTED] >Subject: why my servlet does not work? > >Dear all, please help to see any thi

RE: Can webapps 'share' a security-constraint?

2004-05-26 Thread Shapira, Yoav
Hi, You might be able to use the SingleSignOn Valve (see tomcat configuration reference documentation) for this. It's OK but not recommended to put the security constraints in conf/web.xml, although that's another way to share a constraint among webapps. As for a pure, portable way to share cons

Re: JSP Compiling - painted in a corner?

2004-05-26 Thread Jason Palmatier
Hello Illya, Thank you VERY much for your reply. The fact that Tomcat 5.x includes the directory structure in package statements and 4.x does not makes everything I've been doing much clearer. I need to go back and start from the beginning using Tomcat 5.x and Ant and see if I can get it working

apache2+tomcat5.0.19+mod_jk in-process

2004-05-26 Thread Timothy Suh
Subject: apache2+tomcat5.0.19+mod_jk2 in-process Date: 5/26/2004, 11:19 AM From: Timothy Suh <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Organization: AOL Can someone help me with setting up apache2 to start tomcat5 in-process using mod_jk2? out-of-process was straight forward but I am having toug

Can webapps 'share' a security-constraint?

2004-05-26 Thread Barnet Wagman
I'd like users to be able to login once and get access to several web apps. Is it possible for web apps to 'share' a security-contraint? I've tried putting the constraint into conf/web.xml That applies the constraints to all the specified web apps managed by the server, but users still need to

Re: Réf. : mod_jk error with Apache 2.0.49

2004-05-26 Thread Barry Roberts
What do you mean the "right" one? I built jk2 from the jakarta-tomcat-connectors-jk2-src-current.tar.gz tarball. Is that "right"? The problem I'm having with jk2 is a known issue (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=28790). I would love to see that one figured out, but right now I

Re: Tomcat as 'root' insecure? (again)

2004-05-26 Thread David Smith
Windows is an animal of an entirely different species. The closest analogy to 'root' for Windows is 'administrator', but services in Windows (as far as I understand) usually run as SYSTEM. I could be sooo wrong on that and I'm really a Linux person. Hopefully someone who has experience securi

Re: Tomcat as 'root' insecure? (again)

2004-05-26 Thread Barnet Wagman
Roger wrote: Okay, I suppose you all are right saying that it's better not to run as root. But does the same apply to Windows? We're using Tomcat 4.1.24 on Windows 2000 Server, and up till now we've always run Tomcat as root. I don't see a jvsc-script or directory. Do I need to upgrade to TC5 to

Re: Error using taglibs - unable to find setter

2004-05-26 Thread Ravi Mutyala
Thanx Larry. It helped!! / Ravi Larry Isaacs wrote: The following comes from the Tomcat 3.3.x faq file, which I assume would apply in your situation: Q. I have a bean with a property whose second letter is capitalized. Why won't my JSP page that uses this bean compile? A. This may not happen ofte

  1   2   >