RE: 5.5.4 SEVERE: Error unregistering mbean in stdout every 5-10 mins.

2004-11-23 Thread Allistair Crossley
Yoav, Has this one been noted by your good self for invesigation or propogation to the appropriate place? It's still all over our logs. Allistair -Original Message- From: Allistair Crossley Sent: 19 November 2004 14:47 To: Tomcat Users List Subject: RE: 5.5.4 SEVERE: Error

RE: How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-23 Thread Allistair Crossley
INR, I now count 4 posts from you on this same subject. I have replied to you already and so have others. Answer (again): you *cannot* configure logging per web-app in Tomcat 5.5. The Logger element has been *removed* as a valid child of Context. For better or worse, all your runtime

Re: How to set Error Log for Unpacked Web Application in Tomcat 5.5

2004-11-23 Thread Eric VERGNAUD
le 20/02/02 17:17, inr à [EMAIL PROTECTED] a écrit : Hai all, I need the Configuration for setting the error Log file for my WebApplication running on Tomcat 5.5. How to set the Error log file in the Server.xml file. [ In Tomcat 5.5 ] Thanks for ever, inr

RE: Tomcat 4.1.30 not restoring JDBC connections

2004-11-23 Thread Shapira, Yoav
Hi, You need to configure the connection pool as to how it handles connection. For example, you would want a validation query if the pool supports it (assuming you're using DBCP, it does), and a recycle policy. By default these aren't done because they cost time, and a situation like yours with

Access is denied while open file from NT server

2004-11-23 Thread Tomer Avitzur
Hi, I try to read a file in my jsp which locate in an NT server. I as a NT user have an access to this NT server , but while running the jsp it throw an exception of Exception java.io.FileNotFoundException: //bdsrv02/bac/environment/1.txt (Access is denied) Any idea ? Have a nice day

RE: Access is denied while open file from NT server

2004-11-23 Thread Peter Crowther
From: Tomer Avitzur [mailto:[EMAIL PROTECTED] I try to read a file in my jsp which locate in an NT server. I as a NT user have an access to this NT server , but while running the jsp it throw an exception of Exception java.io.FileNotFoundException: //bdsrv02/bac/environment/1.txt

RE: Access is denied while open file from NT server

2004-11-23 Thread Tomer Avitzur
Can you say more about how to define my tomcat server as a user ? Have a nice day Tomer A -Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 12:26 PM To: Tomcat Users List Subject: RE: Access is denied while open file from NT server

tomcat working space permisions and javamail - linux

2004-11-23 Thread Kantartzis Vasilis
Hello all, I am dealing with a problem combining java mail and tomcat that might have to do with read permitions 1.I am trying to add a file in a multipart mesage to construct a mail attachment. 2. The file is placed in one of the tomcat webapps applications (file is uploaded there through a

RE: Access is denied while open file from NT server

2004-11-23 Thread Peter Crowther
From: Tomer Avitzur [mailto:[EMAIL PROTECTED] Can you say more about how to define my tomcat server as a user ? Yes, but I'll need a little more information from you - sorry! Are you running your Tomcat server as a service (i.e. from Control Panel, Services or Admnistrative Tools, Services) or

Re: Tomcat 5.5.4 - classes in classpath not being released

2004-11-23 Thread Remy Maucherat
On Mon, 22 Nov 2004 16:37:39 +0200, Carl Olivier [EMAIL PROTECTED] wrote: Ooppps. Sorry -meant 300 seconds! I think this could be improved, but the penalty will stay significant. antiJARLocking prevents locking through usage of getResource on the classloader (where you get a URL to an entry

problem with simultaneous query submissionS

2004-11-23 Thread Satish Plakote
here is my dopost method // Code starts here public void doPost(HttpServletRequest req,HttpServletResponse res) throws IOException, ServletException { System.out.println(Inside doPost); String strQueryFlag =req.getParameter(new);

Re: Mysterious (I think caching) Problem with IE 6 and Form Authentication under SSL (Tomcat 5.0.x)

2004-11-23 Thread Angel Cervera Claudio
I have same problem and i don't find any answer to resolved. :( SOS!! :( Did you resolved this problem? How? El mar, 19-10-2004 a las 12:15 +0200, Martin Grüneberg escribió: Hello, I have a real strange Problem with Tomcat and IE When I get forwarded to the login page of my application and

RE: Tomcat 5.5.4 - classes in classpath not being released

2004-11-23 Thread Carl Olivier
Hi. Thanks - yes I realise. Wonderin why tihs has been done? Was the old classloader mechanisms in 5.0.x that broken? Not criticising, just trying to understand the reasoning here. Also I tried with the antiARLocking=true, but had some very strange behaviours - I could not delete a jar - in

Re: tomcat working space permisions and javamail - linux

2004-11-23 Thread Ben Souther
You'd have to give us a little more information. Are you squashing exception output with try/catch blocks? You would see an exception if your app was trying to read a file and couldn't. Are you able to mail from your app without attachments? Are you sure the file is there? If so, have you

Tomcat 5 and Mail...

2004-11-23 Thread Quinton Delpeche
Hey Everybody, I picked up a funny. Code that was working perfectly on Tomcat 4 now doesn't run on Tomcat 5 anymore, specifically the sending of the mail. I have narrowed it down to this little piece of code: CODE //Send the message. Transport.send(mesMailer); /CODE I checked

Changing the default session key

2004-11-23 Thread Lasse Koskela
Hello, I recently encountered a requirement to use a session key other than JSESSIONID for the cookie of a web application deployed on Tomcat 4 (I'm not yet sure about the exact version). Now, I found a post from 2002 where Craig said it couldn't be done (roughly because JSESSIONID is defined in

RE: tomcat working space permisions and javamail - linux

2004-11-23 Thread Kantartzis Vasilis
-Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 1:58 PM To: Tomcat Users List Subject: Re: tomcat working space permisions and javamail - linux You'd have to give us a little more information. Are you squashing exception output with

RE: Bug using nbsp;?

2004-11-23 Thread Shapira, Yoav
Hi, Under JSP 2.0 in strict XHTML mode (not just JSP 2.0 in general), yup, you got it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Gili [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 11:13 PM To: [EMAIL PROTECTED] Subject: Re: Bug using nbsp;?

RE: help with context.xml

2004-11-23 Thread Shapira, Yoav
Hi, The context path is already in used. Stop (and if needed, remove) the application already deployed at /IMS. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Scott Pippin [mailto:[EMAIL PROTECTED] Sent: Monday, November 22, 2004 6:58 PM To: [EMAIL PROTECTED]

Re: Changing the default session key

2004-11-23 Thread Tim Funk
Yes this is the case. You'd need to change the source and recompile. -Tim Lasse Koskela wrote: Hello, I recently encountered a requirement to use a session key other than JSESSIONID for the cookie of a web application deployed on Tomcat 4 (I'm not yet sure about the exact version). Now, I found a

Re: Tomcat 5 and Mail...

2004-11-23 Thread Quinton Delpeche
On Tuesday 23 November 2004 14:50, you wrote: Hi, Well, let's try an even simpler scenario: test it without a SecurityManager. I have now checked that I have all the correct parameter in both the server.xml and the web.xml file for ther server and each individual application respectively.

RE: FAIL - No context exists for path /blog

2004-11-23 Thread Shapira, Yoav
Hi, Yeah, I'd classify that as odd and beyond. A 500-class error, specifically a 503, is an UnavailableException. Tomcat always logs those and their root cause, precisely because they're a dead-end as you've noticed. The Roller installation instructions call for Tomcat and work for me:

Re: Tomcat 5 and Mail...

2004-11-23 Thread Quinton Delpeche
On Tuesday 23 November 2004 15:10, Shapira, Yoav wrote: Hi, Hi, Let's try again: which specific Tomcat 5 version, e.g. 5.0.28? ;) Sorry. 5.0.27-9 The reason I ask is that I broke the MailSession factory in 5.0.25, so if you're using that build AND a JNDI MailSession factory, that would

RE: Tomcat 5 and Mail...

2004-11-23 Thread Shapira, Yoav
Hi, Sending mail works just fine for me (without a SecurityManager at the moment) on 5.0.28 both through a JNDI factory and a normal JavaMail tutorial-type usage. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Quinton Delpeche [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Bug using nbsp;?

2004-11-23 Thread Benson Margulies
JSP 2.0 is an XML file. There's no such entity as nbsp; in XML by default. The result of running the JSP process is an HTML file. There is an nbsp; entity in HTML. To get the HTML entity, you have to escape the XML entity process. -Original Message- From: Gili [mailto:[EMAIL PROTECTED]

Problem with Admin Application...

2004-11-23 Thread Quinton Delpeche
Hi everybody... ...again. :p In my forays to fix my Mail problem and I have found another strange one. For some unknown reason the changes I make manually in the server.xml file are never reflected in the Admin Application and visa versa. I have also noted that when I click commit changes I

RE: Problem with Admin Application...

2004-11-23 Thread Shapira, Yoav
Hi, If you post the complete stack trace from the log that accompanies this 500 error, we might be able to help more. Without it, it's fairly hopeless. The admin webapp works out of the box for me ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Quinton Delpeche

OutOfMemory exceptions

2004-11-23 Thread Ryan Daly
All: I've seen a few threads regarding the OutOfMemory problems. Has it been decided that reloading webapps is one of the causes of this? And, if so, would an undeploy and a new deploy fix that issue? Thanks. -- - To

RE: OutOfMemory exceptions

2004-11-23 Thread Shapira, Yoav
Hi, I've seen a few threads regarding the OutOfMemory problems. Has it been decided that reloading webapps is one of the causes of this? No, and such a decision could never be made. And, if so, would an undeploy and a new deploy fix that issue? No. Yoav This e-mail, including any

RE: OutOfMemory exceptions

2004-11-23 Thread Allistair Crossley
In our case we can certainly say that continued reloading of webapps caused by class reloading in the development environment does cause out of memory - however we use statics a fair amount that are not always reclaimed although we try to release those using a context listener as much as

RE: OutOfMemory exceptions

2004-11-23 Thread Ryan Daly
On Tue, 2004-11-23 at 09:05, Shapira, Yoav wrote: No, and such a decision could never be made. OK. So, reloading webapps should clean up items in memory consumed by that particular webapp, then? Do you know of a good memory profiler that can be run while webapps are up and return to me what

RE: Changing the default session key

2004-11-23 Thread Shapira, Yoav
Hi, That's still the case in the Spec, yes. So everything Craig said then is applicable, and your requirement is as bad now as it was years ago. However, like all other components in Tomcat, you can plug in your own session manager implementation: you would most likely extend

RE: Tomcat 5.5.4 - classes in classpath not being released

2004-11-23 Thread Shapira, Yoav
Hi, Thanks - yes I realise. Wonderin why tihs has been done? Was the old classloader mechanisms in 5.0.x that broken? Not criticising, just trying to understand the reasoning here. No, it was fine: the problems arose due to OS behavior mostly, specifically Windoze, and how virtual file

RE: OutOfMemory exceptions

2004-11-23 Thread Allistair Crossley
using a profiler with live systems is not good because of the amount of info it dumps from the jvm. use something like Quest JProfiler or others to test your consumption in the development environment. -Original Message- From: Ryan Daly [mailto:[EMAIL PROTECTED] Sent: 23 November

RE: OutOfMemory exceptions

2004-11-23 Thread Shapira, Yoav
Hi, OK. So, reloading webapps should clean up items in memory consumed by that particular webapp, then? Yes and no. You are vastly oversimplifying the real world here. It's extremely difficult to come up with a webapp that can truly be reloaded without a memory loss. Do you know of a good

Re: Virtual Hosting Questions

2004-11-23 Thread Bill Winspur
Yoav, Thanks for your feedback. My findings are interleaved below. Bill. Question 1: Is this hosts-file approach feasible? Does tomcat care HOW domain names are mapped to IP addresses? It's more of a Java networking question that Tomcat question. I'm not sure how java's InetAddress class

installing tomcat 5.5.4 with compat patch for jsdk 1.4.1

2004-11-23 Thread Timo . Roessner
hi, i am having problem installing tomcat 5.5.4, i am forced to use jsdk 1.4.2 so i tried to install the jakarta-tomcat-5.5.4-compat patch, but this wont work. What i did: - i installed tomcat 5.5.4 - i followed the guidelines which were the depicted in the Release-Notes, but: in the

RE: Tomcat 5 and Mail...

2004-11-23 Thread Phillip Qin
In 4.1.30, I set these policies grant codeBase file:${catalina.home}/webapps/- { // email permission java.io.FilePermission ${catalina.home}/common/lib/activation.jar,read; permission java.io.FilePermission ${catalina.home}/common/lib/mail.jar,read; permission java.io.FilePermission

Re: Changing the default session key

2004-11-23 Thread Lasse Koskela
Any plans on externalizing the session key into an optional configuration element in server.xml? Please forgive me if I appear overly persistent but I honestly have no idea whether Tomcat is strictly required to follow the spec by the letter and not introduce anything that can be considered

RE: problem with simultaneous query submissions

2004-11-23 Thread Phillip Qin
Your problem shouldn't occur unless you use instance variables in your servlet. A quick fix would be put synchronized (session) { } Block outside your code. -Original Message- From: Satish Plakote [mailto:[EMAIL PROTECTED] Sent: November 22, 2004 10:10 PM To: Tomcat Users List

Re: Changing the default session key

2004-11-23 Thread Tim Funk
No. You can supply a patch - but no one will commit it. If it is committed, the other committers will -1 it. -Tim Lasse Koskela wrote: Any plans on externalizing the session key into an optional configuration element in server.xml? Please forgive me if I appear overly persistent but I honestly

Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
We've recently upgraded from 4.1, which we've been using for 2+ years, to 5.0.28. While doing this, I've been looking into our logging in order to try and do things better. And I'm curious what other people do - if there are any best practices that I could follow. What we do today: We use

Data sorting problem Tomcat-Oracle

2004-11-23 Thread Harald Henkel
Hello all. I have a strange problem with data sorting using an Oracle 8.1.7 database. I set the database to use binary sorting (NLS_SORT=BINARY), independent from GERMAN language setting. When I'm doing a select on a table with values like A1, A2, ... AA, AB, ... I get the correct result

Re: Virtual Hosting Questions

2004-11-23 Thread karjera
Laba diena. Dkojame, kad mums parate. Js atsista inut isaugota ms duomen bazje. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

LogOut from JDBC Realm

2004-11-23 Thread Chris Chappell
Hi there Can anyone give me a pointer how to logout a JDBC Realm authenticated user without closing the browser. E.g. I need a log out button which forwards to a goodbye page and does something like this (fictitious) userSession.expire(); I've had a trawl thriough the docs etc and nothing

RE: installing tomcat 5.5.4 with compat patch for jsdk 1.4.1

2004-11-23 Thread Shapira, Yoav
Hi, --- quote -- Tomcat 5.5 is designed to run on J2SE 5.0 and later, and requires configuration to run on J2SE 1.4. Make sure to read the RUNNING.txt file in this directory if you are using J2SE 1.4. -- end quote

RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav
Hi, a) Convert my log4j.properties file to use a RollingFileAppender. I This is good. AppDirectory inside Parameters using the Registry Editor), I couldn't figure out how to change the home directory for Tomcat running as a Relying on the home directory is bad. logging; I'd rather use a

RE: LogOut from JDBC Realm

2004-11-23 Thread Shapira, Yoav
Hi, You mean like session.invalidate()? ;) Yoav Shapira http://www.yoavshapira.com -Original Message- From: Chris Chappell [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 10:10 AM To: [EMAIL PROTECTED] Subject: LogOut from JDBC Realm Hi there Can anyone give me a pointer

Re: LogOut from JDBC Realm

2004-11-23 Thread Chris Chappell
Yoav Well I tried this, but it didn't seem to make any difference so I thought maybe it was just resetting the session vars. But I'll have another play with it. Ceeres Chris Chappell Subject: RE: LogOut from JDBC Realm Hi, You mean like session.invalidate()? ;) Yoav Shapira

changing DBCP version to Tomcat 4.1.x

2004-11-23 Thread Gabriel Belingueres
Hi, I need to connect to through a DataSource to an Informix database using Tomcat 4.1. As seen in the DBCP docs, DBCP 1.1, which came with Tomcat 4.1 is NOT compatible with IBM-Informix's JDBC driver. This problem is solved in DBCP 1.2, so what I did is replacing the DBCP and POOL jar files in

RE: Logging and Deployment best practices

2004-11-23 Thread Phillip Qin
Hi, I don't think the log will go to system32 directory. Try something like this log4j.rootLogger=INFO, fatalconsole, file | | log4j.appender.file=org.apache.log4j.DailyRollingFileAppender

Re: Embedded Tomcat error (tomcat 5.5.4)

2004-11-23 Thread Vy Ho
Yes, I see this error before myself, and did the same tracing. Instead of patching the code, I just created the connector externally (instead of calling createConnector). That may not be the right thing to do though. Strangely that so many things that works with the version 5.028 is broken

Re: Data sorting problem Tomcat-Oracle

2004-11-23 Thread Tim Funk
Tomcat knows nothing about NLS_SORT. Odds are NLS_SORT is probably not set when running on XP. -Tim Harald Henkel wrote: Hello all. I have a strange problem with data sorting using an Oracle 8.1.7 database. I set the database to use binary sorting (NLS_SORT=BINARY), independent from GERMAN

RE: Virtual Hosting Questions

2004-11-23 Thread Shapira, Yoav
Hi, The mapping of domain names to ip's is done (as usual) in the IP stack. Thus, using the /hosts /files on tomcat client and server boxes works fine for development scenarios where you do not want to expose you production domain names to the Internet via DNS. I originally asked the question

RE: changing DBCP version to Tomcat 4.1.x

2004-11-23 Thread Shapira, Yoav
Hi, What you're doing is fine- - DBCP 1.2 / Tomcat 4.1 is a fine combination. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Gabriel Belingueres [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 10:19 AM To: [EMAIL PROTECTED] Subject: changing DBCP version to

RE: Embedded Tomcat error (tomcat 5.5.4)

2004-11-23 Thread Shapira, Yoav
Hi, I think the problem with developers is lack of concrete documentation on this area. As always, your (and anyone else's) help is welcome. Feel free to submit documentation and code patches to your heart's content. Or alternatively, feel free to pay people to write documentation for you ;)

RE: Logging and Deployment best practices

2004-11-23 Thread Allistair Crossley
But I finally decided as I was upgrading Tomcat that I'd address that problem by moving to a rolling file appender. Seems to me that I have two choices for doing this: we find the rolling file appenders useful as you can specify periodcity and they rename themselves to dated filenames. you

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
On Tue, 23 Nov 2004 10:14:24 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: a) Convert my log4j.properties file to use a RollingFileAppender. I This is good. I'd rather use a relative path (something like ./logs) and have the logs all end up in %TOMCAT_HOME%/logs. Log4j configuration files

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Shapira, Yoav writes: Loggers are gone in Tomcat 5.5. One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was just getting interested in them before reading a

LogOut from JDBC Realm

2004-11-23 Thread Chris Chappell
Hi there Can anyone give me a pointer how to logout a JDBC Realm authenticated user without closing the browser). E.g. I need a log out button with forwards to a goodbye page and does something like this (fictitious) userSession.expire(); I've had a trawl thriough the docs etc and nothing

RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav
Hi, One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was just getting interested in them before reading a post on the topic this morning. If we were to start

Re: Embedded Tomcat error (tomcat 5.5.4)

2004-11-23 Thread Remy Maucherat
On Tue, 23 Nov 2004 10:31:07 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: Hi, I think the problem with developers is lack of concrete documentation on this area. As always, your (and anyone else's) help is welcome. Feel free to submit documentation and code patches to your heart's

jstl.jar and standard.jar causes Digester, taglib error on startup

2004-11-23 Thread Morten Andersen
Well Ive seen this error many times: -- org.apache.commons.digester.Digester error SEVERE: Parse Error at line 6 column 19: Document root element taglib , must match DOCTYPE root null . org.xml.sax.SAXParseException: Document root element taglib , must match DOCTYPE

RE: Logging and Deployment best practices

2004-11-23 Thread Allistair Crossley
speaking of which yoav, it's been a little while since i first submitted a doc patch for 5.5's logging page and it's not been made live yet .. is this a painful procedure ;) :) Allistair -Original Message- From: Paul Christmann [mailto:[EMAIL PROTECTED] Sent: 23 November 2004 15:51

RE: OutOfMemory exceptions

2004-11-23 Thread Ryan Daly
On Tue, 2004-11-23 at 09:17, Shapira, Yoav wrote: Yes and no. You are vastly oversimplifying the real world here. It's extremely difficult to come up with a webapp that can truly be reloaded without a memory loss. Would undeploying the webapp follow the same route (meaning some memory loss)?

OFF TOPIC: Merging data into a PDF form

2004-11-23 Thread David Wall
I have an existing PDF form (actually lots of them) and my webapp is querying a user for the missing data on the HTML form. I'd like to merge the POST data into the PDF document and end up with a new filled out PDF document. Has anybody done this or can point to tools that will help? Thanks,

HTTP Compression

2004-11-23 Thread andrew
Hi all, I am looking at enabling compression on Tomcat 5.0.25. Is everyone using compress=on or should I use an integer (?number of bytes?) Thanks Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: jstl.jar and standard.jar causes Digester, taglib error on st artup

2004-11-23 Thread Phillip Qin
Where did you use digester and jstl? I mix jstl and struts tags on my pages and they worked fine. -Original Message- From: Morten Andersen [mailto:[EMAIL PROTECTED] Sent: November 23, 2004 10:38 AM To: [EMAIL PROTECTED] Subject: jstl.jar and standard.jar causes Digester, taglib error on

Unnable to redeploy an axis web app

2004-11-23 Thread Vy Ho
I am sorry that this is a cross post from Axis list. However, I think I this maybe more appropriate place to ask, since people here may know more about application redeployment and frequent problems associated with it. What I have is an Axis web application, I want to undeploy it, then

Filter Problem

2004-11-23 Thread Jack Lauman
I have an access control filter that is supposed to grant all access to users wirh the role of 'admin' and limited access to those with the role of 'user. Specifically a 'user' can only manipulate the data that belongs to them. It uses 'contextPath.startsWith' and the users 'id' (int) from

Re: Filter Problem

2004-11-23 Thread Tim Funk
getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my contextPath is /more. If I request /more/cowbell.jsp. The contextPath is /more and the servletPath is /cowbell.jsp. -Tim Jack Lauman wrote: I have an access control filter that is supposed

Re: HTTP Compression

2004-11-23 Thread deepak shripat mane
 For client purpose u have to specify port value so must be specify integer value that value between 1024 to 65536 Deepak On Tue, 23 Nov 2004 andrew wrote : Hi all, I am looking at enabling compression on Tomcat 5.0.25. Is everyone using compress=on or should I use an integer (?number of

Re: Filter Problem

2004-11-23 Thread Jack Lauman
Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my contextPath is /more. If I request /more/cowbell.jsp. The contextPath is /more and the servletPath is

Re: Filter Problem

2004-11-23 Thread Tim Funk
You probably want to ignore context path. Its servletPath you really care about. -Tim Jack Lauman wrote: Can you append the two together to get the desired result? Jack Tim Funk wrote: getContextPath is the path name of the webapp. For example, if my webapp is registered at /more. Then my

Re: LogOut from JDBC Realm

2004-11-23 Thread deepak shripat mane
  Helloo u can do in following way map:match pattern=logout map:act type=session-invalidate/ map:act type=request map:parameter name=parameters value=true/ map:redirect-to uri=login/ /map:act /map:match Regards Deepak On Tue, 23 Nov 2004 Chris Chappell wrote :

tomcat not shutting down

2004-11-23 Thread Cumbers
Hey I am running Tomcat 5.0.29 on Suse 9.1 When I call startup.sh it works fine. Tomcat can serve me all that it should. When the time comes to shut it down (using shutdown.sh). We hit a problem. The script executes without any errors, and so I assume that is has shutdown. However a ps -ef |

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Phillip Qin writes: Hi, I don't think the log will go to system32 directory. Try something like this log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt It will when I just do this, though: log4j.appender.file.File=lciponline_debug.txt Using the environment variable was

New Install of Tomcat 4 on HP-UX Can't Start

2004-11-23 Thread Gibson, Danny
Howdy All, I am trying my very first attempt of loading Tomcat on an HP-UX 11.11 system. Unfortunately I am encountering troubles getting it started. Any suggestions would be greatly appreciated. Here is the error it is generating, it appears to be complaining about rsajca which does not

Tomcat, Apache connected in interesting way

2004-11-23 Thread Joshua Szmajda
Hi all, I run a pretty high traffic site using Tomcat. We've gone through a number of configurations in the past, and I wanted to share with you the newest setup that we're using. It's a bit unorthodox perhaps, and I was wondering if anyone could think of possible problems? It does seem to be

Re: Tomcat, Apache connected in interesting way

2004-11-23 Thread Tim Funk
Nope. That is my prefered way to go. Let apache do what it does best. Let tomcat do what it does best. You'll notice that it'll also take longer before you need to add more tomcats in your cluster by doing this. What you need to be wary of are any security issues where some static assets need

Deployment of a JSP app

2004-11-23 Thread Peter O'Reilly
To all, Currently, the only way I can get to my application, which starts with a index.jsp is by appending on the directory. Like so.. http://www.xxx.com/app Anyone know how I can set up my app so that if i visit, http://www.xxx.com I will be able to see it? I tried making the

RE: Changing the default session key

2004-11-23 Thread Shapira, Yoav
Hi, Any plans on externalizing the session key into an optional configuration element in server.xml? No. Please forgive me if I appear overly persistent but I honestly have no idea whether Tomcat is strictly required to follow the spec by the letter and not introduce anything that can be

Re: Unnable to redeploy an axis web app

2004-11-23 Thread deepak shripat mane
 Hello Friends have u configured tomcat with log4j concept Could you include the contents of your log4j.properties file. 2) Are you 100% sure that the trio - LogManager.shutdown(); - java.beans.Introspector.flushCaches(); - LogFactory.releaseAll();java.beans.Introspector.flushCaches()

Re: Tomcat, Apache connected in interesting way

2004-11-23 Thread Matt Bathje
Joshua Szmajda wrote: Hi all, I run a pretty high traffic site using Tomcat. We've gone through a number of configurations in the past, and I wanted to share with you the newest setup that we're using. It's a bit unorthodox perhaps, and I was wondering if anyone could think of possible

Re: Tomcat, Apache connected in interesting way

2004-11-23 Thread Joshua Szmajda
Both are on the same server, yes. They are however listening on different IP addresses. If needed, you could set the tomcat http connector to listen on a different port and adjust the rewrite rule accordingly. As far as SSL goes, the SSL encryption will be in place from the client to apache,

Re: Deployment of a JSP app

2004-11-23 Thread deepak shripat mane
  Hello Can u send ur code of index.jsp can u check ur configuration setting of structs . Please check setting of file. u send me index.jsp file Deepak On Tue, 23 Nov 2004 Peter O'Reilly wrote : To all, Currently, the only way I can get to my application, which starts with a

Re: OFF TOPIC: Merging data into a PDF form

2004-11-23 Thread Parsons Technical Services
http://www.lowagie.com/iText/faq.html#template Doug, www.parsonstechnical.com - Original Message - From: David Wall [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 11:29 AM Subject: OFF TOPIC: Merging data into a PDF form I have an existing PDF

RE: jstl.jar and standard.jar causes Digester, taglib error on st artup

2004-11-23 Thread sven morales
You may want to check you web.xml to make sure the taglib definition is matching what you have on your jsp pages. I am suggesting such because there were at one time a change in the jstl uri namespaces and it was causing a some problems for me. --- Phillip Qin [EMAIL PROTECTED] wrote: Where

RE: Deployment of a JSP app

2004-11-23 Thread Shapira, Yoav
Hi, You need to tell Tomcat you want app to be served from context path= (the empty string. Not null and not /). To do so, you need to: - Declare a Context element for your app, either in server.xml, or in $CATALINA_HOME/conf/[engine]/[host]/app.xml, or in META-INF/context.xml inside your

Accessing MIME-TYPES

2004-11-23 Thread Mark Claassen
I am writing a JSF application that needs to be able to view archived documents. When a request hits my bean I do the work to extract the desired document, but I need to return the correct MIME-TYPE in the response. I know what type (PDF, TEXT) of document it is when I access it, but I don't

Problem with Manager application

2004-11-23 Thread Dave Robbins
Hello All, I've recently gotten a new machine and installed linux Fedora Core 1 j2sdk1.4.2_03 jakarta-tomcat-5.0.19 netbeans3.6 I've played around with netbeans and tomcat in the past and have some web apps that I've created and that run fine on an older machine. On the new machine, when I try

Servlets and debugging

2004-11-23 Thread Richard Lewis
After a few years of trying on and off I've finally managed to make a servlet work in Tomcat (4.1). I had to add: servlet servlet-nameStudioSearch/servlet-name servlet-classStudioSearch/servlet-class /servlet servlet-mapping servlet-nameinvoker/servlet-name

AW: installing tomcat 5.5.4 with compat patch for jsdk 1.4.1

2004-11-23 Thread Timo . Roessner
thx yoav, it works now, and i think it would be a good idea to add the running.txt to the .exe again greetz -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 23. November 2004 16:10 An: Tomcat Users List Betreff: RE: installing tomcat 5.5.4

Re: Servlets and debugging

2004-11-23 Thread Dave Robbins
Richard, I'm certainly no expert but I've been playing with this stuff a while and I find the free netbeans IDE to be an excellent environment for learning this stuff. It come with a copy of tomcat built into it so you can debug your servlet from within the IDE. With the click of a buton it will

Re: Servlets and debugging

2004-11-23 Thread Ben Souther
servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping (No one had ever said before about the servlet-mapping directive.) There are good reasons why the invoker servlet has been removed (commented out) of the default web.xml in Tomcat.

Re: Unnable to redeploy an axis web app

2004-11-23 Thread sven morales
Hi, I am using axis too and am able to deploy it to a Tomcat5.0.29 with minimal issue. I noticed you have a META-INF/services/org.apache.axis.EngineConfigurationFactory which does not exist on the axis 1.1 I am using. Isnt it this META-INF/services something to do with EJB? I dont think

Re: Unnable to redeploy an axis web app

2004-11-23 Thread Vy Ho
Thank you for the reply. I tried your method with a little twist. I cannot call LogManager.shutdown() because shutdown() was not there. So I called LogManager.getInstance().reset() instead. However, doing all the steps you listed without the shutdown did not help. Please note that I

Re: Unnable to redeploy an axis web app

2004-11-23 Thread Vy Ho
Hi, I am using Axis 1.2. I am not sure how that thing get there. It's probably something to do with the log4j thing. I use Tomcat 5.5.4. Please look at my reply to deepak shripat mane's message for more information. Thanks, vh. sven morales wrote: Hi, I am using axis too and am able to

Re: Servlets and debugging

2004-11-23 Thread sven morales
The IDE suggested by others may already have this features, but Apache Axis tcpmon is a neat tool to have if you do not use IDE's. It allows you to see what is being sent to a servlet running on Tomcat and vice versa, the response coming out. Easy to use, as it is an applet and run like so:

RE: New Install of Tomcat 4 on HP-UX Can't Start

2004-11-23 Thread Shapira, Yoav
Hi, Is there a root cause in your log following this InvocationTargetException? If you're just starting out with Tomcat, there's no reason to use 4.x. Go with 5.0.28 or 5.5.4. And whether using 5.x or 4.x, first just install it from the distribution and start it up without changing

  1   2   >