RE: Users

2006-03-15 Thread Jeyabalan, Prakash
I am using tomcat 5.0.27 this is the part of the content in web.xml (/manager). I could move further when the * in http://localhost:8080/manager/html if i specify the particular name an manager in the same URL i am getting the error as HTTP Status 403. what i have to do to proceed further by

Upgrade problem to Tomcat 5.5.16, login with Realm fails

2006-03-15 Thread Joacim Turesson
Hi! I'm currently running my webapplication using Tomcat 5.5.12 and it works great. When I upgrade to Tomcat 5.5.16 I'm no longer able to login in to the webapplication using Form based (or Basic) login with Memory Realm (in my development area). The webapplication is written in struts and a

RE: How to configure in Tomcat?

2006-03-15 Thread Caldarale, Charles R
> From: Xi Chen [mailto:[EMAIL PROTECTED] > Subject: How to configure in Tomcat? > > I set up the environment variable (MY_CONFIG_FILE_PATH) correctly on > the machine, and the class function all right if I test it via a > command line. > > However, if I test the class under Tomcat (after deploy

Re: Users

2006-03-15 Thread vineesh kumar
Simply edit TOMCAT_INSTALLDIR/conf/tomcat-users.xml and add the username and passowrd and role role can be admin, manager,user etc u can specify more than one role also. There are options to use a database realm of users.for that check the apache documentation On 3/16/06, Jeyabal

Users

2006-03-15 Thread Jeyabalan, Prakash
How to create the custom users in Tomcat 5.0.X Prakash - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to configure in Tomcat?

2006-03-15 Thread foo shyn
It shouldn't be a problem for application to get system propertiestried that before and it worked fine for me... Is ur path a full path ? i mean is it something like "C:\.." or is it just started with a slash like "\.."? If it's started with a "\..." u need to put the specific file an

How to configure in Tomcat?

2006-03-15 Thread Xi Chen
Hi, there. I have a question in my deployment under Tomcat 5.5. In one of the java classes I wrote, I have a line of code like the following: String propertiesFilePath = System.getEnv("MY_CONFIG_FILE_PATH"); // Then I start load the contents of the file into java Properties. I s

Re: HTTPS setup

2006-03-15 Thread Stephan van Loendersloot
Hi Julie, Hi, I have a ca signed p12 file from which I can extract both a certificate and key in pem format - I found some info (http://www.junlu.com/msg/85393.html) which states that you can use a p12 file as a keystore in tomcat by adding the following into the conf/server.xml file: W

Re: High availabiltiy improvement suggestions

2006-03-15 Thread David Rees
On 3/15/06, Dhaval Patel <[EMAIL PROTECTED]> wrote: > 1) Do you know of any hardware/software configuration to increase high > availability? One way is to load-balance Tomcat instances behind Apache using mod_jk and sticky-sessions. You can also use a hardware load balancer as well. There are a n

Re: How to reduce bandwidth (meaning message size) with Axis

2006-03-15 Thread David Rees
On 3/15/06, David Kerber <[EMAIL PROTECTED]> wrote: > Are there any adjustments I can do to my Axis settings to reduce the > bandwidth usage on my SOAP requests? XML compresses very well, typically I have seen compression ratios over 10x! The key is to get your clients and servers configured to

Re: Programmatic access to error 500 stack trace

2006-03-15 Thread Len Popp
Yes, you can do that. 1. Make sure your web.xml has an error-page declaration for exception-type java.lang.Throwable. (Throwable catches things like OutOfMemoryError, as well as Exception and its subclasses.) 2. In your error handling page the exception is available as a request attribute, either

Re: How to reduce bandwidth (meaning message size) with Axis

2006-03-15 Thread Mark Eggers
XML-RPC and SOAP serve two different areas, but you might be able to cajole XML-RPC to accomplish what you want. . . . just some random thoughts while reading other documentation. /mde/ --- David Kerber <[EMAIL PROTECTED]> wrote: > Are there any adjustments I can do to my Axis > settings to re

Re: Deadlock -> Out of Threads -> Strange Exception -> OutOfMemory -> Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-15 Thread Leon Rosenberg
On 3/15/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > > Subject: Deadlock -> Out of Threads -> Strange Exception -> > > OutOfMemory -> Server Death. > > > > I can't find a locked <0x61655498> entry nowhere. > > But I should be able to see i

RE: Deadlock -> Out of Threads -> Strange Exception -> OutOfMemory -> Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-15 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Deadlock -> Out of Threads -> Strange Exception -> > OutOfMemory -> Server Death. > > I can't find a locked <0x61655498> entry nowhere. > But I should be able to see it to recognize the thread causing the > deadlock, shouldn't I? I wou

[OT] Re: How to reduce bandwidth (meaning message size) with Axis

2006-03-15 Thread Leon Rosenberg
To answer your subject: > How to reduce bandwidth (meaning message size) with Axis don't use SOAP, use reliable, stable, high-performance protocols like CORBA :-) Btw, never understood it, why should someone use SOAP? regards Leon On 3/15/06, David Kerber <[EMAIL PROTECTED]> wrote: > Are ther

How to reduce bandwidth (meaning message size) with Axis

2006-03-15 Thread David Kerber
Are there any adjustments I can do to my Axis settings to reduce the bandwidth usage on my SOAP requests? In particular, I would like to know how I can get rid of the "xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/""; items in the argument elements. I'm using the minimum call setti

Re: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread Leon Rosenberg
I thought Chuck already has a business supporting tomcat ... :-) or, at least, a lifetime task :-) leon On 3/15/06, Tim Lucia <[EMAIL PROTECTED]> wrote: > I think Chuck could start a business supporting Tomcat myself ;-) > > -Original Message- > From: Biernesser, Beth [mailto:[EMAIL PROTEC

RE: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread Tim Lucia
I think Chuck could start a business supporting Tomcat myself ;-) -Original Message- From: Biernesser, Beth [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 11:54 AM To: Biernesser, Beth; Tomcat Users List Subject: RE: Tomcat taking too long to cycle through and come back up Hi

Re: Programmatic access to error 500 stack trace

2006-03-15 Thread Andrew Stepanenko
Hello Eduard, thank you for your answer. But I actually asked about run-time exceptions, like OutOfMemoryError. Do you think this approach will go for them too? Andrew. Eduard Wirch wrote: Use this: } catch (Exception e) { java.io.StringWriter stackTrace = new java.io.StringWriter();

[VOTE][RESULT] Tomcat v5.5.16 Stability

2006-03-15 Thread Yoav Shapira
The Apache Tomcat Team has voted to certify v5.5.16 as stable. Binding +1 votes were cast by Mladen Turk, Peter Rossbach, Remy Maucherat, Henri Gomez, Jeanfrancois Arcand, and myself. The web site will be updated shortly to reflect the result of this vote. You can also inspect the: Release Note

Re: Problems with the ReplicationValve

2006-03-15 Thread Peter Rossbach
OK, I have also test it, and commit Many thanks for reporting the bug. Peter Am 15.03.2006 um 19:13 schrieb Michael: Hi Peter! Peter Rossbach wrote: yes that is true here my fix: [...] Can you please test this, then I can commit the change. Yes, it works! Many thanks! :) Tipp: T

Re: Ant/Jasper problems

2006-03-15 Thread Dola Woolfe
--- Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > does the directory > "C:/Dola/tomcat/webbapps/projecta" exist? ie, is the > > war already exploded? > Hi, I'm a weird JSP programmer. I've been at it for 4 years but I've never used war's. I simply store my .jsp's in the afore mensioned

Deadlock -> Out of Threads -> Strange Exception -> OutOfMemory -> Server Death. Bug in org.apache.naming.resources.ProxyDirContext.cacheLoad?

2006-03-15 Thread Leon Rosenberg
Hi, I analyzed my thread dump and log files from yesterdays's crash a bit. Here the flow of events: First probably the deadlock occured. The following entry in logfiles is an indication for it: Mar 14, 2006 8:53:03 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (750) ar

RE: Error : Servlet is currently unavailable

2006-03-15 Thread Caldarale, Charles R
> From: Anandi Vyagrapuri [mailto:[EMAIL PROTECTED] > Subject: Re: Error : Servlet is currently unavailable > > There is no unexpected stmts in the catalina-xxx.log > But this is what i see in the localhost.log > I see that the classloader is looking for this servlet > in WEB-INF/classes. The

Re: Problems with the ReplicationValve

2006-03-15 Thread Michael
Hi Peter! Peter Rossbach wrote: yes that is true here my fix: [...] Can you please test this, then I can commit the change. Yes, it works! Many thanks! :) Tipp: That your client/browser also know that B is forever the primary use JvmRouteBinderValve. That helps very much for longer shut

RE: How to forward requests from one application to another?

2006-03-15 Thread Caldarale, Charles R
> From: Toni Geci [mailto:[EMAIL PROTECTED] > Subject: How to forward requests from one application to another? > > application1 is listening on port 8083 and > application2 is listening on port 8080. Within Tomcat, applications don't listen on ports, connectors do. Do you have multiple virtu

RE: Pound sign £ in passwords

2006-03-15 Thread Caldarale, Charles R
> From: Duncan Brannen [mailto:[EMAIL PROTECTED] > Subject: Pound sign £ in passwords > > We've just installed tomcat 5.5.15 and found that admin users > cannot authenticate to the application manager if they have a > £ in their password (The password in question started with a £) Might be a pro

How to forward requests from one application to another?

2006-03-15 Thread Toni Geci
Hi everyone, I have two applications running on Tomcat lets say application1 and application2. I'd like to forward certain requests from application1 to application2. Both applications are running on the same Tomcat on different ports. application1 is listening on port 8083 and application2 is

Re: Problem with starting Tomcat

2006-03-15 Thread Nenad Bosanac
Thanks for help! I try it soon, and i think it will work. I find it in NetBeans so i will answer you thanks again --- Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Nenad Bosanac ha scritto: > > Hello! > > I have a problem when i want to start my project > in NetBeans > I don't know if it's usef

RE: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread Caldarale, Charles R
> From: Biernesser, Beth [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat taking too long to cycle through and come back up > > I see a lot of questions being asked in this forum, but not > many answers. My questions rarely get answered There are a variety of reasons questions don't get answere

Re: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread Mark Eggers
More detail is definitely needed. In particular, you might look at what has changed in the application (not just the context file). Also, what else has changed in the environment? Typically, questions such as 1) "this used to work, but now it doesn't" and 2) "there must be a bug in Tomcat" don't

RE: Pound sign £ in passwords

2006-03-15 Thread e-Denton Subscriber
I think it's in the parser--it ignores dollar signs and pound signs. C# Online.NET! http://wiki.csharp-online.net/ -Original Message- From: Duncan Brannen [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 10:57 AM To: users@tomcat.apache.org Subject: Pound sign £ in passwords

Re: Error : Servlet is currently unavailable

2006-03-15 Thread Anandi Vyagrapuri
To try all your sugesstions, I replaced the web.xml with one of a working instance of the application. Removed my applications dir under tomcat/work/catalina/localhost Restarted tomcat There is no unexpected stmts in the catalina-xxx.log But this is what i see in the localhost.log I see that

Re: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread David Smith
Please provide more detail. Specific to this question is what does the webapp do on deployment, and what is in the context file. No answer means no one has ever seen your issue or there isn't enough information to provide suggestions. --David Biernesser, Beth wrote: >Hi ... I'm wondering if th

Pound sign £ in passwords

2006-03-15 Thread Duncan Brannen
Hi, We've just installed tomcat 5.5.15 and found that admin users cannot authenticate to the application manager if they have a £ in their password (The password in question started with a £ ) We're using openldap for authentication and can see the error=49 wrong password errors in the logs.

RE: Tomcat taking too long to cycle through and come back up

2006-03-15 Thread Biernesser, Beth
Hi ... I'm wondering if there are any other tomcat user forums that anyone has had success with? I see a lot of questions being asked in this forum, but not many answers. My questions rarely get answered, and I'm just wondering if anyone knows of another avenue to present a question. If anyone h

Re: Problems with the ReplicationValve

2006-03-15 Thread Peter Rossbach
Hey Michael, yes that is true here my fix: ReplicationValve: protected void resetReplicationRequest(Request request, boolean isCrossContext) { Session contextSession = request.getSessionInternal(false); if(contextSession != null & contextSession instanceof DeltaSession

High availabiltiy improvement suggestions

2006-03-15 Thread Dhaval Patel
Hello all, One of my friend is looking a way to improve availability of his web-app which is deployed on tomcat 5.0.28. He has following configuration: Hardware: Dual Xeon 3.0 GHz, 73 GB 10K SCSI HDD, 2 GB RAM, Gigabit NIC Software: SuSE Linux 10, JDK 1.5, Tomcat 5.0.28 (Default install)

Problems with the ReplicationValve

2006-03-15 Thread Michael
Hi all, we tried to switch with a clusterable webapp from Tomcat 5.0 to Tomcat 5.5 and ran into problems with the primary session indication by the ReplicationValve. We have a cluster with two nodes (let's call them 'A' and 'B'). A sticky session is created at node A and is reported there as prim

RE: manager-remove/undeploy without losing sessions

2006-03-15 Thread Tim Lucia
True. But if you don't implement java.io.Serializable, you are surely not serializable, so it is a start. When I recently clustered an application, this filter found all those session objects which were not serializable. My first task at a new company was to cluster their app, which I knew nothi

RE: HTTP 500 error JasperException: Unable to compile class for J SP

2006-03-15 Thread Serlet Jean-Claude
Don't forget : CATALINA_HOME : the directory where you have installed Tomcat CATALINA_BASE : the directory where you install your web applications They could be the same but, that is my point of vue, it is better to have two distinct repertories Jean-Claude -Message d'origine- De : Anto

Re: manager-remove/undeploy without losing sessions

2006-03-15 Thread Peter Rossbach
Your filter show only that the class implements java.io.Serializable and not that the object is really serializable ;-( A good live session analyze shows the probe tomcat manager. http://tomcatprobe.org regards Peter Am 15.03.2006 um 14:59 schrieb Tim Lucia: You may also find the following fi

Re: Fairwell to JB, but having Jasper problems

2006-03-15 Thread Joe Riopel
Dola, Did you ever get this fixed ? If not, how about pasting some of your build file? Especially around line 21. On 3/13/06, Dola Woolfe <[EMAIL PROTECTED]> wrote: > Hi, > > After 3 years of using JBuilder, I have conclued that > it is unusable. It was almost unusable in version 9, > but became

RE: manager-remove/undeploy without losing sessions

2006-03-15 Thread Tim Lucia
You may also find the following filter helpful. I wrote it to find those session members who were not serializable. Tim package tim.lucia; import java.io.IOException; import java.io.Serializable; import java.text.MessageFormat; import java.util.Collection; import java.util.Date; import java.uti

Trouble parsing SOAP return value

2006-03-15 Thread David Kerber
I have an Apache SOAP server set up in tomcat, the server side works fine, and I can see through the Eclipse TCP/IP monitor that it is returning the correct data. What I can't figure out is how to parse out the simple Integer[] array when it gets back to the client. I've been googling and rea

Re: Is this lock normal or an indication for a deadlock?

2006-03-15 Thread Leon Rosenberg
Update 200 of previously mentioned threads are waiting on this lock: There are 8 further threads waiting to lock the same lock. Does it help? Leon "http-8580-Processor17294" daemon prio=1 tid=0xc4a3f068 nid=0x259b waiting for monitor entry [0xae87e000..0xae87f640] at org.apache.naming.

Re: HTTPS setup

2006-03-15 Thread Julie McCabe
Hi, I have a ca signed p12 file from which I can extract both a certificate and key in pem format - I found some info (http://www.junlu.com/msg/85393.html) which states that you can use a p12 file as a keystore in tomcat by adding the following into the conf/server.xml file: When I tried t

Re: manager-remove/undeploy without losing sessions

2006-03-15 Thread Reinhard Moosauer
Peter, you saved me. Thanks a lot! I also upgraded to using the deploy-task with update="true" and got even better behavior than before. Application-update works with a sub-second downtime now. BTW I use in META-INF/context.xml: as the path. This it is working out of the box without creati

AW: Programmatic access to error 500 stack trace

2006-03-15 Thread Eduard Wirch
Use this: } catch (Exception e) { java.io.StringWriter stackTrace = new java.io.StringWriter(); e.printStackTrace(new java.io.PrintWriter(stackTrace)); request.setAttribute("error", stackTrace.toString()); } -Ursprüngliche Nachricht- Von: Andrew Stepanenko [mailto:[EMAIL PROT

Re: manager-remove/undeploy without losing sessions

2006-03-15 Thread Reinhard Moosauer
i filed an enhancement request for this issue here: http://issues.apache.org/bugzilla/show_bug.cgi?id=38975 Rodrigo, The mentioned session serialization is always activated and works fully automatic. But only if all requirements to your applicatin are met: All objects, which are ever bound to

Re: Error : Servlet is currently unavailable

2006-03-15 Thread Michael Jouravlev
On 3/15/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: > Anandi Vyagrapuri ha scritto: > > Hi , > > I have a servlet that i have placed in > > webapps/myapplication/WEB-INF/lib > > It is a .jar file. > > > > When i try to invoke the servlet, the jsp hangs. > > This is what i found in > > tomcat/lo

Re: Error : Servlet is currently unavailable

2006-03-15 Thread Antonio Petrelli
Anandi Vyagrapuri ha scritto: Hi , I have a servlet that i have placed in webapps/myapplication/WEB-INF/lib It is a .jar file. When i try to invoke the servlet, the jsp hangs. This is what i found in tomcat/logs/localhostmmddyy.txt -> Mar 14, 2006 5:43:48 P

Re: HTTP 500 error JasperException: Unable to compile class for JSP

2006-03-15 Thread Antonio Petrelli
Stuart Lowes ha scritto: Catalina logfile: - Using CATALINA_BASE: /var/lib/tomcat4 Using CATALINA_HOME: /usr/share/tomcat4 Using CATALINA_TMPDIR: /var/lib/tomcat4/temp I saw it just now. CATALINA_BASE and CATALINA_HOME shouldn't point to the same directory? I think that Tomca