RE: Flexible way of defining application variables in text format?

2005-09-27 Thread Caldarale, Charles R
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Re: Flexible way of defining application variables in text format? is there any example, I'd still confuse how to read dot properties file I think may API was to odds :-D, yeah that was trouble but there is one thing I like is

How to configure a single JDBC connection via Tomcat's JDBC JNDI configurations for Oracle

2005-09-27 Thread Edmon Begoli
Anyone, I want to configure Tomcat 5.5.x to access each database in the Oracle cluster, and not using the pool. This configuration is for database diagnostic puproses, so I need to create a single connection everytime. What is the most appropriate way to this using Oracle driver? Currently I am

RE: https from client to web server, http from web server proxy to tomcat,

2005-09-27 Thread Wick, Daniel
LB, We currently use SSL at the Sun One Web Server front end, then standard http from the proxy connection to tomcat. I believe you should have this type of setup: Client -https-Sun WS -http-Tomcat (proxy) Client -https-Sun WS -http-Tomcat (reverse proxy) The application has 5

Re: (WAS) Generic Types support in Tomcat?

2005-09-27 Thread Nikola Milutinovic
Santosh Asbe wrote: Hi all, Hi. First of all, it is very advisable to use a separate thread when opening a new topic. I am not reprimanding you, I'm merely advising. I do not consider it rude to jump into someone elses thread of discussion - I do not consider this thread mine, in the

save form-data in xml-file

2005-09-27 Thread Anne Milbert
Hi, I got a problem in saving the data submitted by a form in a xml-file. I wrote a servlet which uses a method createXML() to put the form-data into a xml-file. The problem is: I can't run this method in the servlet. But if I put it in a normal class and call it in the main-method everything

RE: save form-data in xml-file

2005-09-27 Thread Robyne Vaughn
not necessarily a tomcat question, but once-upon-a-time I had a similar situation accessing JDBC data. As long as I ran my app directly, I could do so, but once embedded in servlet it would not. It turned out that it was an authorization problem. While running the app directly, I was logged in

Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread NoKideen
is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 I'd try as tomcat , but there is error even if I do # chown -R tomcat:root /usr/tomcat/* - To unsubscribe, e-mail: [EMAIL

Re: (WAS) Generic Types support in Tomcat?

2005-09-27 Thread Leon Rosenberg
C] Sometime when the tomcat is started it spwans more than one processes. And then during shudown it creates problems. Also sometimes the list of open files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot respond. Linux kernel 2.4 emulates threads through lightweight

RE: Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
I ask because I have come across way too many situations where something works not by design, but by luck. And then it turns out that while it did work - under certain circumstances it doesn't and I am left trying to find the correct solution in the middle of an emergency. Also, if this is the

RE: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Peter Crowther
From: NoKideen [mailto:[EMAIL PROTECTED] Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Use the port redirection facilities in Linux (the details vary depending on your kernel, but ipchains or iptables is a good place to start if I

AW: save form-data in xml-file

2005-09-27 Thread Anne Milbert
Hi Robyne, Thanks for your reply. This seems to be the problem. But can you tell me if I have to put password and userid in the source code of the servlet or in the web.xml? Regards, Anne -Ursprungliche Nachricht- Von: Robyne Vaughn [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 27.

RE: save form-data in xml-file

2005-09-27 Thread Robyne Vaughn
I was afraid you'd want to know that - ha! I'll have to go back and try to find it. If I remember correctly, there was a choice of either way. I could put it in the server.xml or in the code as a parameter to the jdbc driver spec. Robyne Robyne K. Vaughn _ -Original

Re: Generic Types support in Tomcat?

2005-09-27 Thread Bjørn T Johansen
Nope, I am using it in the java server code, not jsp... Hence my question :) BTJ Christoph Kutzinski wrote: To be clear: You are using Java 5 features (generics, for-each loop etc.) in JSPs? Bjørn T Johansen wrote: Nope, I am just using the default installation and configurations...

Re: How to configure a single JDBC connection via Tomcat's JDBC JNDI configurations for Oracle

2005-09-27 Thread andy gordon
The attribute maxactive controls how big the pool is. if maxactive is set to 1 then there can be only 1 per time. There are also non-dbcp solutions which have oracle examples described under JDBC datasources link in tomcat 5.5 doc at

RE: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Peter Crowther
From: Peter Crowther That way, Linux can run as a non-root user but still see requests arriving on port 80. Sorry. Brain fade. Replace 'Linux' with 'Tomcat' in the above. - Peter - To unsubscribe, e-mail:

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Andrés Glez .
Use jsvc. - Original Message - From: NoKideen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as Non-Root under Linux listen for port 80 is there anybody know how to do this ? Running Tomcat as Non-Root under

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Joost de Heer
NoKideen said: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 80 is a privileged port ( 1024) and you need root-rights to bind to a privileged port. If the problem is that you don't have access to root, ask the admin to implement sudo. Joost

RE: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Phillip Qin
Create a normal user $TOMCAT_USER /bin/su $TOMCAT_USER -- $CATALINA_HOME/bin/startup.sh Owner is root, group is $TOMCAT_USER. -Original Message- From: NoKideen [mailto:[EMAIL PROTECTED] Sent: September 27, 2005 12:14 PM To: tomcat-user@jakarta.apache.org Subject: Running Tomcat as

re: https to web server, http from proxy to tomcat

2005-09-27 Thread nawar
We are currently using an nsapi plugin module for our proxy component. As far as I know, it does not support reverse-proxy setup. Since we are using the standard Sun One Web Server, I am not familiar with reverse proxy. If you could shed some lite on this, or point me in the right direction, I

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread David Smith
a.k.a. Commons-Daemon (http://jakarta.apache.org/commons/daemon/) Works beautifully. --David Andrés Glez. wrote: Use jsvc. - Original Message - From: NoKideen [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Tuesday, September 27, 2005 6:13 PM Subject: Running Tomcat as

ManagerX for 5.5.9

2005-09-27 Thread Paul Singleton
Which version of ManagerX should I use with Tomcat 5.5.9? 5.5-1.6 or 5.5-1.7.1? I have tried installing each, following their instructions (copy the jar and web.xml as appropriate) but am stuck on the third instruction (Have fun!) and am not having any. Should I start the Manager in the usual

saving files in webapp folder from deletion?

2005-09-27 Thread Thomas Corte
Hi there, I have a setup in which certain trusted users of a web application X may upload new content files which are then put into webapps/X/content to be served from there. The problem is that everything unter /webapps/X is *deleted* by Tomcat upon undeploy, including the uploaded stuff.

Re: Running Tomcat as Non-Root under Linux listen for port 80

2005-09-27 Thread Pete Stevens
On Tue, 27 Sep 2005, Joost de Heer wrote: NoKideen said: is there anybody know how to do this ? Running Tomcat as Non-Root under Linux listen for port 80 80 is a privileged port ( 1024) and you need root-rights to bind to a privileged port. If the problem is that you don't have access

JMX Method to check JDBC connection acivity?

2005-09-27 Thread Edmon Begoli
Is there a handy MBean in Tomcat that would allow me to do on demand check if the connection to the database is up? I've looked at DataSource but that one does not expose getConnection, and the one that requires username and password throws RMI permission exception. I would really like to have

Re: Question about tomcat startup ConcurrentModificationException

2005-09-27 Thread Jilles van Gurp
The fix is to replace the mx4j jar file in the release (bin/jmx.jar) with the fixed version (latest 2.1.x) which has been available for a long time now from the mx4j project site. You might also search this mailinglist. This must be one of the more frequently raised topics. I know I found the

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Leon Rosenberg
setup X as context/webapp (incl. an empty WEB-INF) and probably a web.xml. this should be sufficent, unless you have something else badly broken :-) lg leon On 9/27/05, Thomas Corte [EMAIL PROTECTED] wrote: Hi there, I have a setup in which certain trusted users of a web application X may

Re: Embedded Tomcat and shared objects...

2005-09-27 Thread Leon Rosenberg
Aehm, without looking deeper into context initialization, just a short guess: what about making your configuration objects a singleton with public static CLASSNAME getInstance() or provide a factory for them? regards leon On 9/27/05, Darryl L. Pierce [EMAIL PROTECTED] wrote: I have embedded

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Thomas Corte
Hi, Leon Rosenberg wrote: setup X as context/webapp (incl. an empty WEB-INF) and probably a web.xml. this should be sufficent, unless you have something else badly broken :-) So you mean I should create a second web app/context Y and put the uploaded files there? If this is the suggestion,

RE: Problem defining JNDI data source.

2005-09-27 Thread Sastry Malladi
In tomcat 5.5.9, defining the resources under the Context element seems to have this kind of an issue. One way to resolve this is to define your datasource (i.e, Resource) under Server/GlobalNamingResources element and then define a ResourceLink in context.xml (in the same location as

Re: Problem defining JNDI data source.

2005-09-27 Thread David C. Hicks
Thanks, I'll give it a try. I think that's the one combination I have *not* tried yet. :-) Sastry Malladi wrote: In tomcat 5.5.9, defining the resources under the Context element seems to have this kind of an issue. One way to resolve this is to define your datasource (i.e, Resource) under

Re: Flexible way of defining application variables in text format?

2005-09-27 Thread matador
Seak, Teng-Fong [EMAIL PROTECTED] wrote in news:4339048E.30608 @yahoo.com: My webapp needs some application string variables for configuration. For the moment, I hard-code them as class static properties and compiled. But I'd like to know if there's any method to define such

Re: saving files in webapp folder from deletion?

2005-09-27 Thread Pham Tran Quoc Viet
Create x outside of webapps and create a soft link within webapps that points to x. Then, within server.xml add the following lines: Context docBase=absolute path to x soft link path=link name allowLinking=true/ That's it. Everytime the soft link is hit, tomcat will follow the symbolic link get

Re: Why doesn't my context work?

2005-09-26 Thread Mark Eggers
--- Michael Sullivan [EMAIL PROTECTED] wrote: Right now I use symlinks to my individual users' website directories, but now that I've discovered Alias I'll probably switch completely to using Aliases. Good. I created a test Alias point to the ~/webspace/webapps directory in my

Re: Synchronize wrapper for session obj attrib get/set

2005-09-26 Thread Maurice Yarrow
Leon, Chuck: Thankyou very much for (1) pointing out that tomcat has internal session obj accesses, so go with something that accomplishes a global fix and (2) just as important: what the current patches are for 5.0.19+. Leon, I went with your pre-compiled StandardSession.class and replaced the

Re: Generic Types support in Tomcat?

2005-09-26 Thread Christoph Kutzinski
What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story?

Re: tomcat exception handling

2005-09-26 Thread James Cowan
thanks. that is what I am looking for. James - Original Message - From: Alon Belman [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org; James Cowan [EMAIL PROTECTED] Sent: Friday, September 23, 2005 10:41 PM Subject: Re: tomcat exception handling you want to

RE: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Jan Fredrik Fallsen
your java home is C:\jsdk1\Àppserver\jdk -Original Message- From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED] Sent: 26. september 2005 00:16 To: Tomcat Users List Subject: Re: What to put into JAVA_HOME on Windows xp Move it up one level, in your case: C:\JDK1.4\AppServer\jdk On

Need to contact mailing list admin regarding delivery issues

2005-09-26 Thread David Delbecq
Hello, I need to contact the admin of this mailing list regarding delivery issues with it. Please cc: your reply to david.delbecq at myrealbox.com to ensure delivery. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone, I am using cewolf to draw chart in Tomcat 4.0. And The program has been run successfully, but when I moved the same program file and used JAR file to the web server, whose OS is Solorias, there has been appearing the error message as below: javax.servlet.ServletException

change path of the session cookie

2005-09-26 Thread cristi
Hello all Is there any possibility of changing the path of the session cookie ? Thx. Cristi Z. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: change path of the session cookie

2005-09-26 Thread Raghupathy,Gurumoorthy
Why do you want it ? -Original Message- From: cristi [mailto:[EMAIL PROTECTED] Sent: 26 September 2005 14:12 To: Tomcat Users List Subject: change path of the session cookie Hello all Is there any possibility of changing the path of the session cookie ? Thx. Cristi Z.

Re: change path of the session cookie

2005-09-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html emptySessionPath=true -Tim cristi wrote: Hello all Is there any possibility of changing the path of the session cookie ? - To unsubscribe, e-mail: [EMAIL

Re: change path of the session cookie

2005-09-26 Thread cristi
Many thanks Tim Cristi http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html emptySessionPath=true -Tim cristi wrote: Hello all Is there any possibility of changing the path of the session cookie ? - To

HTTP trace

2005-09-26 Thread Wilding, Gregory
Does anybody know how to disable HTTP trace within Tomcat Thanks Gregory Wilding EDS Business Exchange Services Abney Park Manchester Road Cheadle Cheshire SK8 2PD Tel +44 (0) 161 495 3488 Fax +44(0) 161 428 5009 mailto:[EMAIL PROTECTED]

Re: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Seak, Teng-Fong
I remember when I was using Tomcat 5.0.x. It was giving me headaches! After changing JAVA_HOME, it was still necessary to do a service remove and then service install, or else Tomcat won't take that into account. Try Tomcat 5.5. You don't need to declare JAVA_HOME anymore, and you could

Re: HTTP trace

2005-09-26 Thread Tim Funk
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html See the allowTrace option -Tim Wilding, Gregory wrote: Does anybody know how to disable HTTP trace within Tomcat Thanks - To unsubscribe, e-mail: [EMAIL

Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
I am trying to set up a webdav application on a machine running Tomcat 5.5. The effect I want to create is that anyone can use http://machine/app/folder to read files, but only those who have logged on should be able to use webdav to create, update or delete files from the folder. I tried to do

connecting httpd with Tomcat

2005-09-26 Thread Peter Menzel
Hello tomcat users, I am trying to connect my Apache httpd 2.0.50 on SuSE 9.2 with a Tomcat 5.5.9. Actually I cannot figure out which Connector to use. I read about mod_jk, mod_jk2 and came to the Tomcat Connectors project, which provides JK 1.2.13 and JK 2.0.4. I tried JK 2.0.4. Is this

RE: connecting httpd with Tomcat

2005-09-26 Thread Dale, Matt
JK 1.2.13 is the latest mod_jk and the one you should use. Development on mod_jk has been abandoned due to lack of developer interest and most of the features backported to JK. -Original Message- From: Peter Menzel [mailto:[EMAIL PROTECTED] Sent: 26 September 2005 16:53 To: Tomcat

isapi_redirector and danish chars

2005-09-26 Thread Michael Salmon
Hi everybody I have a problem with Isapi_redirector and danish chars. I have a webapp downloading files with special Danish chars in the filename. Everything woks fine when Tomcat is doing the hole show, but when I do the same thing through IIS and isapi_redirector I get and error. Any

Re: tomcat start exception

2005-09-26 Thread Jun Zhu
Thanks very much for your big help. After adding the attribute, catalina.out has no exception when server startup. But the same exception now is appearing when server shutdown. In addition, if I try to access server's manager page, catalina.out records exception as: An exception or

Re: connecting httpd with Tomcat

2005-09-26 Thread Tim Funk
development on mod_jk2 has been abandoned, not mod_jk -Tim Dale, Matt wrote: JK 1.2.13 is the latest mod_jk and the one you should use. Development on mod_jk has been abandoned due to lack of developer interest and most of the features backported to JK.

Question about tomcat startup ConcurrentModificationException

2005-09-26 Thread Maurice Yarrow
Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception. (tomcat 5.0.28, on Fedora Core 1) What is the significance of this? Thanks Maurice INFO: Starting Coyote HTTP/1.1 on http-8080 Sep 26, 2005 9:29:19 AM

Multiple realms in Tomcat

2005-09-26 Thread Surya Mishra
My Tomcat server doesn't start if the JNDI realm fails to load (due to unavailability of the directory server). I want the server to start properly and serve the unprotected applications at least. Is there a way to specify multiple realms so that different applications can use different realms for

Re: Question about tomcat startup ConcurrentModificationException

2005-09-26 Thread Tim Funk
Search bugzilla. There is a bug report about ConcurrentModificationException - it has to do with mx4j having a race condition. The bug describes a fix. -Tim Maurice Yarrow wrote: Hello Tomcat people When tomcat is restarted, it occasionally (1 in 25 times) gets the below exception.

RE: What to put into JAVA_HOME on Windows xp

2005-09-26 Thread Ramnish Kalsi
Remove bin from the JAVA_HOME. JAVA_HOME=C:\JDK1.4\AppServer\jdk -ramnish. -Original Message- From: Markus Hapke [mailto:[EMAIL PROTECTED] Sent: 25 September 2005 21:27 To: tomcat-user@jakarta.apache.org Subject: What to put into JAVA_HOME on Windows xp Hello, I just installed tomcat

Re: Why doesn't my context work?

2005-09-26 Thread Michael Sullivan
On Sun, 2005-09-25 at 23:21 -0700, Mark Eggers wrote: --- Michael Sullivan [EMAIL PROTECTED] wrote: Right now I use symlinks to my individual users' website directories, but now that I've discovered Alias I'll probably switch completely to using Aliases. Good. I created a

Options to prevent web app from being available if DB not available?

2005-09-26 Thread Mike Miller
Hi, I am looking for options to prevent my web application from being available if our database is not available. I've used context listeners in the past, but since you can return a bad return code they don't like the cleanest approach. I have tried registering a context listener and then

Re: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Tim Funk
Servlet filter. The filter can check the database status on init. Then the filter could be made smart enough to let all traffic through if the database comes back to life. (or conversely also goes away) -Tim Mike Miller wrote: Hi, I am looking for options to prevent my web application

RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Arup Vidyerthy
Haven't really thought it through as I just woke up :-) However, I don't see why couldn't write a filter that filters all request. It checks the DB connection and if it isn't there it just simply forwards the user to an appropriate page. As to making the whole web app unavailable - I am not

Re: Problems setting up Webdav folder on Tomcat 5.5

2005-09-26 Thread David Goodenough
On Monday 26 September 2005 16:51, David Goodenough wrote: I am trying to set up a webdav application on a machine running Tomcat 5.5. The effect I want to create is that anyone can use http://machine/app/folder to read files, but only those who have logged on should be able to use webdav to

RE: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Mike Miller
Thanks for the replies - several suggested filters. I guess I have two concerns with that approach: 1) Since this doesn't happen very often, I'm not sure I want to add additional processing to EVERY request processed by the system. I may be wrong and it may not be much extra? 2) we have

AW: jconsole security manager

2005-09-26 Thread Pfingstl Gernot
Thanks for the reply, I got it running, but I don't understand it, maybe you can help me: Giving following permission to my tomcat (5.5.9) grant { permission javax.management.MBeanPermission *, *; permission java.lang.management.ManagementPermission monitor;

Re: Options to prevent web app from being available if DB not available?

2005-09-26 Thread Steve Dodge
Mike, Doing this with pure J2EE Servlet code, I would use three components. First, use the Context Listener to check the Database on start up, if no DB connectivity set a ApplicationContext attribute to that effect. The second part would be a javax.servlet.Filter which checks the status of

Re: Protecting applications in Tomcat using Directory Server

2005-09-26 Thread Mark Thomas
Surya Mishra wrote: Thank You Mark, My Tomcat server won't even start if the directory server is unreachable. That means other applications that have not protected are also failing. Second question: There is no attribute in the Realm definition to give a name to realm (as per the how-to

Re: Need to contact mailing list admin regarding delivery issues

2005-09-26 Thread Mark Thomas
As per the welcome e-mail you received when you subscribed: [EMAIL PROTECTED] David Delbecq wrote: Hello, I need to contact the admin of this mailing list regarding delivery issues with it. Please cc: your reply to david.delbecq at myrealbox.com to ensure delivery. Thanks.

Re: isapi_redirector and danish chars

2005-09-26 Thread Mark Thomas
Michael Salmon wrote: Hi everybody I have a problem with Isapi_redirector and danish chars. I have a webapp downloading files with special Danish chars in the filename. Everything woks fine when Tomcat is doing the hole show, but when I do the same thing through IIS and isapi_redirector I

RE: Tomcat working directory

2005-09-26 Thread Samit Paul
Bill, Thanks for the insight. But it still didn't work. Also the gui interface comes with Startup/Working Path disabled. I could change the path through command line //US//Tomcat5 --StartPath working_dir. Once I do this the GUI interface shows me the Working Path set to the new one, but the edit

CGIservlet strips socket permissions from CGI on windows

2005-09-26 Thread Randy Kunkee
It's a long story about why I'm running a CGI under Tomcat (okay, it's an older app, but it plugs nicely into Tomcat authentication). My Tcl CGI script opens a socket. On Unix, this all works fine. On windows server 2003, the Tcl script returns invalid argument when the socket command is

NullPointerException during error page forward

2005-09-26 Thread Scott Goldstein
I'm running Tomcat 5.0.28 and running into a problem during forward to the error page. Specifically, I'm seeing a NullPointerException and I'm losing the original exception which I'd like to track. When looking into the source code, in JspServlet.service(), I see the following:

'touch'ing jsp files to force recompilation

2005-09-26 Thread steven
I was using the 'touch' command to force a recompile of some jsp files. After a while, I checked lsof and noticed some files being left open: java 25139 fdblahh 21r REG3,3 1214916783806

error in the servlet spec v2.4?, not the Session issue!

2005-09-26 Thread Trond Hersløv
Hi, How precise is the servlet spec v2.4? I guess the spec has been worked over many, many times before it is released so probably it is me that has got it wrong. The introduction of srv.5 The Response: .this information is transmitted from the server to the client either by HTTP headers

An error about Tomcat 4.0

2005-09-26 Thread Greece
Hi,Everyone, I am using cewolf to draw chart in Tomcat 4.0. And The program has been run successfully, but when I moved the same program file and used JAR file to the web server, whose OS is Solorias, there has been appearing the error message as below: javax.servlet.ServletException at

TC v5.5.12 Broke My Configuration

2005-09-26 Thread Bob Bronson
Hi all, I've just tried to upgrade from TC v5.5.9 to v5.5.12 and it seems my (very simple) configuration is now broken. The following configuration works beautifully under 5.5.9 -- no exceptions, no warnings, just utter perfection. Here's a description of my configuration (BTW,

Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Christoph Kutzinski wrote: What's

Re: Generic Types support in Tomcat?

2005-09-26 Thread Seak, Teng-Fong
Stephan van Loendersloot wrote: Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. I always like to think that the modularity that

Problem defining JNDI data source.

2005-09-26 Thread David C. Hicks
I'm having difficulty defining a JNDI data source using C3P0 pooling in Tomcat 5.5.9. Here is the context descriptor for my app: Context path=/ems reloadable=true Logger className=org.apache.catalina.logger.SystemOutLogger verbosity=4 timestamp=true/ Loader

Re: 'touch'ing jsp files to force recompilation

2005-09-26 Thread Anto Paul
On 9/27/05, steven [EMAIL PROTECTED] wrote: I was using the 'touch' command to force a recompile of some jsp files. After a while, I checked lsof and noticed some files being left open: java 25139 fdblahh 21r REG3,3 1214916783806

log files not rolling over.

2005-09-26 Thread David Thielen
Hi; Some of my log files (the ones specified in log4j.xml) are not rolling over. Specifically, after 3 days my logs directory is: 09/23/2005 12:18 PM 0 admin.2005-09-23.log 09/25/2005 10:08 PM 0 admin.2005-09-25.log 09/23/2005 12:18 PM 0

Re: Generic Types support in Tomcat?

2005-09-26 Thread Nikola Milutinovic
Seak, Teng-Fong wrote: When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Tomcat 5

Re: Protecting applications in Tomcat using Directory Server

2005-09-25 Thread Mark Thomas
Surya Mishra wrote: I have successfully used JNDI realm to protect my applications on Tomcat. But if Tomcat is unable to connect to the the directory server, it refuses access. I want it to use the tomcat-users list as a backup if it fails to connect to the directory. It seems if the JNDI realm

RE: Re: heap size in tomcat 5.0

2005-09-25 Thread Caldarale, Charles R
From: news [mailto:[EMAIL PROTECTED] On Behalf Of matador Subject: Re: heap size in tomcat 5.0 i assume that if you run it as a windows service then the JAVA_OPTS are still picked up from there? No, they're in the registry. Use the tomcat5w.exe program in the bin directory to set

Synchronize wrapper for session obj attrib get/set

2005-09-25 Thread Maurice Yarrow
Hello Tomcat people For those not wishing to migrate at this time to 5.5.12 (in our case, from 5.0.28 and jdk 1.4) would the following be sufficient for preventing deadlock access of the session objects ? In a given servlet, say, ServletA, for example, might have: HttpSession session =

Re: Can't change servlet path

2005-09-25 Thread Paul Singleton
Caldarale, Charles R wrote: In addition to nesting Context elements inside a Host element, you can also store them: ... * in individual files (with a .xml extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory ... The value of this field ...t will be infered [sic] from

RE: Can't change servlet path

2005-09-25 Thread Caldarale, Charles R
From: Paul Singleton [mailto:[EMAIL PROTECTED] Subject: Re: Can't change servlet path From which I infer that the Context element for the default web application of a virtual host should be held in a file named .xml As with every rule, there are exceptions. As I understand it, the

virtual host apps in a common appBase

2005-09-25 Thread Paul Singleton
I set up several virtual hosts with 5.5.9, each with deployOnStartup=true (by default) and with Tomcat's webapps folder (containing all the apps) as their appBase. Each Context specified a docBase path relative to this common appBase. From inspecting the work folder I saw that *all* apps were

RE: Synchronize wrapper for session obj attrib get/set

2005-09-25 Thread Caldarale, Charles R
From: Maurice Yarrow [mailto:[EMAIL PROTECTED] Subject: Synchronize wrapper for session obj attrib get/set For those not wishing to migrate at this time to 5.5.12 (in our case, from 5.0.28 and jdk 1.4) would the following be sufficient for preventing deadlock access of the session objects

Re: Why doesn't my context work?

2005-09-25 Thread Michael Sullivan
On Fri, 2005-09-16 at 19:31 -0700, Mark Eggers wrote: --- 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

What to put into JAVA_HOME on Windows xp

2005-09-25 Thread Markus Hapke
Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP

What to put into JAVA_HOME on Windows XP

2005-09-25 Thread Markus Hapke
Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP

Re: Synchronize wrapper for session obj attrib get/set

2005-09-25 Thread Leon Rosenberg
Possibly the easiest thing to do is edit the StandardSession.java file and change the type of the attributes field to HashTable rather than HashMap, then rebuild the associated jar. The places that already synchronize on attributes can be left alone, since redundant synchs are allowed and

Re: What to put into JAVA_HOME on Windows XP

2005-09-25 Thread Leon Rosenberg
can you compile classes? I mean just normal java classes out of the command prompt. Do you start tomcat as service or with bin\catalina.bat run / bin\startup.bat? On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in

Re: What to put into JAVA_HOME on Windows xp

2005-09-25 Thread Arthur D'Alessandro
Move it up one level, in your case: C:\JDK1.4\AppServer\jdk On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting

Re: Generic Types support in Tomcat?

2005-09-25 Thread Stephan van Loendersloot
Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. I always like to think that the modularity that comes with Java is one of it's

Re: Protecting applications in Tomcat using Directory Server

2005-09-25 Thread Surya Mishra
Thank You Mark, My Tomcat server won't even start if the directory server is unreachable. That means other applications that have not protected are also failing. Second question: There is no attribute in the Realm definition to give a name to realm (as per the how-to document. How do I configure

Re: heap size in tomcat 5.0

2005-09-24 Thread Leon Rosenberg
bin\catalina.bat actually in all versions of tomcat :-) regards Leon On 9/24/05, matador [EMAIL PROTECTED] wrote: win2k server tomcat 5.0.x how to set heap size (min max)? i know how to do it in tomcat 5.5, but wasnt sure which script controlled the JAVA_OPTS in 5.0 thx

Re: force reload of individual class files

2005-09-24 Thread Leon Rosenberg
I think this is best solution. Imagine you have class A and class B. B holds an instance of A. Now you force B to be reloaded. Should A be reloaded too? What happens with the instance of A in B? Is it duplicated? C is holding an instance of B, so must C be reloaded (and all existing objects which

Re: Registering my own protocol in Tomcat

2005-09-24 Thread Leon Rosenberg
What you need is a connector. I never looked how tomcat finds the proper connector, but it's surely configurable or, if not, easy patchable. Look at the server.xml connector configuration part and take a look at the source code :-) regards Leon On 9/22/05, Martin Peter [EMAIL PROTECTED] wrote:

Re: force reload of individual class files

2005-09-24 Thread matador
Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: You don't need to restart the server to get your changes live, you can force it to reload the whole application, which, in case of tomcat, your users wouldn't even notice (as long as ALL your beans in session are

Re: force reload of individual class files

2005-09-24 Thread Mark Thomas
matador wrote: Leon Rosenberg [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: You don't need to restart the server to get your changes live, you can force it to reload the whole application, which, in case of tomcat, your users wouldn't even notice (as long as ALL your beans in session

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