Re: Environment entries question

2004-10-29 Thread Igor
Hello! Thank you for reply! How developers pass parameters to their web applications? There are several ways of doing it. One of them is: put parameters to web.xml as Environment entry. It is very convinient. But it appears that I can change this value in admin application. And this change is no

Default App

2004-10-29 Thread e-Denton Subscriber
Hi, I changed the default app to my app as follows:

Deployment Fails

2004-10-29 Thread Vaishali Bhirud
Hello I am trying to deploy a web application. Deployment fails and it gives me an error. "FAIL - Encountered exception java.io.IOException: org.xml.sax.SAXParseException: Content is not allowed in prolog." What does this mean? What is wrong with my application or deployment descriptor? Thanks

Return Custom Error Page from Realm

2004-10-29 Thread Anderson, M. Paul
I've created a derived realm that performs a custom authentication scheme. I'd like to be return a custom error page when the user has attempted to login to the system > 3 times and failed. The user will be locked out until a sys admin allows them back in. Since I'm obviously doing the authen

webapp exceptions redirect them to webapps log

2004-10-29 Thread Mufaddal Khumri
Hi, I am using Tomcat 5.0.27. I am using a FileLogger as the appender (log4j) to write my logs to under WEB-INF/log. How do I configure tomcat to send output resulting from exceptions in my webapp to this log file? Do I have to configure server.xml to do so? Mufaddal Khumri

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread David Rees
Andrew Miehs wrote: > A connection pool of 750 threads seems unusable... How can 1 thread per > connection scale? or have I misunderstood how tomcat uses its > connection pool? And should all of these threads ever have something to > do at the same time, the box would just fall over with a load of

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread David Rees
Mladen Turk wrote: > > Yes, but the keepalive is used mainly for making the 'state' out of > 'stateless' protocol, and it's main advantage is that you don't need > to acquire a new connection all the time. Take a look at RFC2068. > Even apache keeps the thread open on keepalive connections (Of cour

Log4j with Tomcat webapp

2004-10-29 Thread Mufaddal Khumri
Hi, I am trying to use this under Tomcat 5.0.27. I have the following log4j.properties file under WEB-INF/conf/ # initialise root logger with level DEBUG and call it A1 log4j.rootLogger=DEBUG, A1 # set the appender to be FileAppender log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1

Re: how to deny .jsp execution within an upload directory

2004-10-29 Thread Justin Ruthenbeck
For robust installations, this problem is a non-issue due to JSP precompilation. Everyone's situation is different, of course, but it is generally much more secure to precompile your JSPs and disable the dynamic compilation of new ones. justin At 03:25 PM 10/29/2004, you wrote: The easiest way

setting JPDA with Tomcat Monitor

2004-10-29 Thread Carlos Fernandez
I am running Windows XP with Tomcat 5.0.28 JDK 1.4.2_03. I can tomcat using the JVM debug options just fine when I execute catalina.bat on the command line (call Catalina.bat jpda start). I have set the following environmental variables: JPDA_ADDRESS=8000 JPDA_TRANSPORT=dt_socket However, I can

problem with security manager, plesk and mysql (catalina.policy ignored?)

2004-10-29 Thread Alfonso Alba García
Hi everybody, I have problems when connecting to mysql. I'm getting the following exception when trying to connect to a mysql database: (SQLException): java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermi

Re: how to deny .jsp execution within an upload directory

2004-10-29 Thread Tim Funk
The easiest way to do this would be to create a filter on that directory. The filter would either deny access - of it would get the default servlet via the ServletContext.getNamedDispatcher() and then perform a forwards(). -Tim Chris Lawder wrote: Hello, Can somebody please point me to documenta

Re: how to deny .jsp execution within an upload directory

2004-10-29 Thread Ben Souther
I do this by not allowing the upload tool to write files with ".jsp" or ".jspx" extensions in the first place. I also disallow ".." in any part of the filename. You could also write a filter that scans any requests going to that directory and checks for those extensions. On Fri, 2004-10-29 at

how to deny .jsp execution within an upload directory

2004-10-29 Thread Chris Lawder
Hello, Can somebody please point me to documentaion and examples that describe how to disallow the execution of .jsp or any other scripts/binaries within a single directory of a webapplication? Part of the web app, is being allowed to upload reports which can then be read and downloaded by anot

RE: File upload

2004-10-29 Thread Derrick Koes
For anyone who is interested, I found this interesting bug report on bugzilla describing the problem. Does anyone know a workaround for IIS adding 35 bytes? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26890 -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: T

RE: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Shilpa Nalgonda
how can i do that any examples... -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 4:59 PM To: Tomcat Users List Subject: RE: Internationalization of characters --UTF8 encoding UTF-7. Or any other ACE. -Original Message- From:

RE: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Benson Margulies
UTF-7. Or any other ACE. -Original Message- From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 3:38 PM To: Tomcat Users List Subject: RE: Internationalization of characters --UTF8 encoding Our java Application takes UTF-8 encoded unicode data and sores in a

RE: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Shilpa Nalgonda
Our java Application takes UTF-8 encoded unicode data and sores in a Java String , and should insert that into Oracle8.1.7 database. Oracle database has US7ASCII encoding. So when i insert data some of the characters are being lost, and i see '?' being inserted into database. How can i convert this

Re: Apache-Tomcat: File Not Found instead of Tomcat

2004-10-29 Thread Alain Gaeremynck
as far as i understand JKMount actually is essentially pretty much the same as an alias in apache... I have to check thought if mod_jk and mod_jk2 behave the same on this because i am still using mod_jk on my server Hope this helps! Allen Williams wrote: Alain, Thanks for the tip. I will try i

Character encoding within form based autentication

2004-10-29 Thread Mark Doppelfeld
Hi out there, I'm still facing problems with the character encoding in TV 5.0.28. I'm not sure if it's wise to open another thread, but my further investigation have brought me to a new point, so I think it will be ok and I'll add the a link to this thread in my previous thread... Debugging TC I

RE: Upload MS DOC or Image file errors.

2004-10-29 Thread Benson Margulies
Of course, 'it seems to me that convert a byte array of the contents of a MS DOC file to a string cause error'. The contents of an MS doc file are not a set of bytes in a single character encoding. They can't be 'converted to a string'. -Original Message- From: Daxin Zuo [mailto:[EMAIL

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Peter Lin
sounds like your goal is to maximize the number of connections to tomcat while reducing the threads. Would that be an accurate assesment? if that is the case, then I would recommend not using servlets at all. about the only way to do that would be to use a server which multiplexes n connections t

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Mladen Turk
Andrew Miehs wrote: 3. putting the images on a dedicated image server Already being done. 2x Servers running apache - which also have this keep-alive problem. Running 1000 threads per server is NOT my idea of a good time. I will be having a look at a couple of other alternatives to apache over t

RE: Failed to install Tomcat5 service

2004-10-29 Thread Jeffrey Steele
We just had the very same problem when trying to install the service for Tomcat 5.0.28 using service.bat on a Win2000 server... We found that there was an old refrence to a Tomcat 4 service in the Registry... after clearing it out, the Tomcat5 service installed and started fine... Good luck... >

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
On 29.10.2004, at 19:08, Peter Lin wrote: if you're looking for better client performance I would explore other areas first. 1. use gzip compression - this can reduce the html to 1/10th the size. your mileage will vary. This is being looked at - loadbalancer vrs tomcat 2. caching results on the we

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Peter Lin
if you're looking for better client performance I would explore other areas first. 1. use gzip compression - this can reduce the html to 1/10th the size. your mileage will vary. 2. caching results on the web-tier 3. putting the images on a dedicated image server 4. distributing your servers acr

RE: Log4j question

2004-10-29 Thread Shapira, Yoav
Hi, Use PropertyConfigurator#configure(URL), where the URL comes from the Class#getResource or ServletContext#getResource call. You don't need to get the input stream and read it yourself. I don't recommend configureAndWatch that much, because it spawns a thread. Instead, use (from the log4j sa

Re: Log4j question

2004-10-29 Thread Mufaddal Khumri
Hi, If I use getResourceAsStream() and then make a call to PropertyConfigurator.configure(properties). Is there a way to watch for changes in this property file? How do I use getResourceAsStream and have the ability to configure the log4j.properties file at run time? On Oct 29, 2004, at 9:40 AM

RE: Log4j question

2004-10-29 Thread Shapira, Yoav
Hi, Don't use getRealPath, it won't work when running from a packed WAR. Use Class#getResource(AsStream) or the equivalent methods in ServletContext. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Mufaddal Khumri [mailto:[EMAIL PROTECTED] >Sent: Friday, October 29, 2

Re: Log4j question

2004-10-29 Thread Mufaddal Khumri
Sorry, mistake on my part. The Log4j.properties is under /classes . Works fine now. On Oct 29, 2004, at 9:29 AM, Mufaddal Khumri wrote: Hi, I am new to Log4j and am trying to read the configuration settings from WEB-INF/classes/log4j.properties I am using Tomcat 5.0.27. I have been trying to do

Log4j question

2004-10-29 Thread Mufaddal Khumri
Hi, I am new to Log4j and am trying to read the configuration settings from WEB-INF/classes/log4j.properties I am using Tomcat 5.0.27. I have been trying to do this in my contextListener: public void contextInitialized(ServletContextEvent sce) { String fil

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Remy Maucherat
On Fri, 29 Oct 2004 17:45:15 +0200, Andrew Miehs <[EMAIL PROTECTED]> wrote: > Hi Yoav, > > I have not read the Servlet Spec, so please pardon my ignorance. > (Definitely do not mean to offend). What I still haven't had clearly > answered is: > > User A sends request (with keepalive) to tomcat. To

RE: Failed to install Tomcat5 service

2004-10-29 Thread Steve Kirk
from your original post: > >"Failed to install Tomcat5 service. Check your settings and > > permissions. suggests to me that you are not logged in as Administrator? that's probably why the install fails. the DIR of your \bin directory looks like installation failed halfway through. as Yoav sa

RE: Upload MS DOC or Image file errors.

2004-10-29 Thread Daxin Zuo
I changed to store the file into a byte array to instead a string. it seems to me that convert a byte array of the contents of a MS DOC file to a string cause error. The byte array is passed to another server via socket. the file is stored at the destination correctly. I use FileOutputStream to se

RE: How to Display a byte array (contents of a MS DOC fie, Excel, ..) in web browser

2004-10-29 Thread Daxin Zuo
Thank for you reply. My problem is solved. One of the reasons is that the server who sends the file with damaged format. thank you again. -Original Message- From: Benson Margulies [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 6:16 PM To: Tomcat Users List Subject: RE: How t

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
Hi Peter, I am not using keep-alives to keep session persistence, but was rather hoping for better client performance. Using keep-alives saves creating a tcp connection for each request - and thereby saving 3 tcp packets (and roundtrip times) per request. Andrew On 29.10.2004, at 17:53, Peter L

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
Hi Filip, Is this how you disable keep-alive on tomcat? maxKeepAliveRequests="1" or is there another switch that I am missing.. On 29.10.2004, at 17:49, Filip Hanik - Dev wrote: turn off keep alive - To unsubscribe, e-mail

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Mladen Turk
Peter Lin wrote: mladen makes a good point. the sites I've worked on, we left the keepalive up to the browser and didn't explicitly disable keepalive. the sites I've worked on we simply used hardware load balancer to make sure the session goes to the right server. Correct. The keepalive is usuall

RE: Tomcat5.5.3 serious problems!

2004-10-29 Thread David Lee
I will take a look at this one, BTW, I just uploaded my test war file in response to Remy's comments. Thanks David -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 5:06 PM To: Tomcat Users List Subject: Re: Tomcat5.5.3 serious problems! C

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Peter Lin
mladen makes a good point. the sites I've worked on, we left the keepalive up to the browser and didn't explicitly disable keepalive. the sites I've worked on we simply used hardware load balancer to make sure the session goes to the right server. that is usually enough from my experience. my bia

RE: extraordinarily stupid question

2004-10-29 Thread Shapira, Yoav
Hi, As to the latter part of your question, you can declare any context to have path="" (the empty string) and it will be served at the root address. You would need to remove the ROOT webapp that ships with tomcat first. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Filip Hanik - Dev
turn off keep alive - Original Message - From: "Andrew Miehs" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Friday, October 29, 2004 10:45 AM Subject: Re: Tomcat in a High Traffic Environment Hi Yoav, I have not read the Servlet Spec, so please pardon my ignoranc

Re: extraordinarily stupid question

2004-10-29 Thread Andrew Miehs
mv $TOMCAT_HOME/server/webapps/manager $TOMCAT_HOME/server/webapps/newmanager On 29.10.2004, at 17:45, joon yoo wrote: After I install tomcat 5.0, the tomcat management page is on http://tomcat:8080 How can this management page be obscured/moved to a different url and then, how can a redirector

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
The loadbalancer forwards the packet to tomcat, and as such, tomcat sees the keep-alive request. If tomcat has keep-alive enabled, it will set up keep alive on its end. Andrew On 29.10.2004, at 17:31, Peter Lin wrote: you don't need to use keepalive. generally, in a load balanced setup, keepali

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
Hi Yoav, I have not read the Servlet Spec, so please pardon my ignorance. (Definitely do not mean to offend). What I still haven't had clearly answered is: User A sends request (with keepalive) to tomcat. Tomcat assigns request to thread (T1). Tomcat sends result back. Is thread T1 now kept res

extraordinarily stupid question

2004-10-29 Thread joon yoo
After I install tomcat 5.0, the tomcat management page is on http://tomcat:8080 How can this management page be obscured/moved to a different url and then, how can a redirector to http://tomcat:8080/application be put in for that root address? Thanks for any help, joon -

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Mladen Turk
Peter Lin wrote: you don't need to use keepalive. generally, in a load balanced setup, keepalive is disabled because the load balancer is already making sure the user goes to the same webserver for the life time of the session. keepalive is usually set in the HTTP header by the client, so I don't

Problem running Embedded Tomcat

2004-10-29 Thread Kang, Kamaljeet K.
Hi, Can somebody help me with the following null pointer which is happening when I am trying to run tomcat as embedded application. java.lang.NullPointerException at org.apache.catalina.startup.DigesterFactory.register(DigesterFactory.jav a:174) at org.apache.catalina.startup.D

Re: Signals sent by Tomcat to web applications during shutdown.

2004-10-29 Thread erh
On Fri, Oct 29, 2004 at 10:20:49AM -0400, Shapira, Yoav wrote: > >Should have remembered that, I've used it before ::blush:: . I didn't > >consider it as the thread I'm looking at is deep within the business > >logic and doesn't have access to the Context. > > That it gets trickier. You can use

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Peter Lin
you don't need to use keepalive. generally, in a load balanced setup, keepalive is disabled because the load balancer is already making sure the user goes to the same webserver for the life time of the session. keepalive is usually set in the HTTP header by the client, so I don't think you need t

RE: Tomcat in a High Traffic Environment

2004-10-29 Thread Shapira, Yoav
Hi, >these keep-alive connections? Does it really keep 1 thread open for >each keep-alive? this seems VERY unnecessary Remember that the Servlet Spec mandates the Servlet Container service a request with one thread, independent of the HTTP details. So before you think we're clueless when it

Fail on stop, start e reload

2004-10-29 Thread Willian Corrêa
I try stop aplication by my domain end ex: domain.com/manager/stop?path=/ and this error return; FAIL - Encountered exception java.lang.IllegalStateException: standardHost.stop : LifecycleException: Container StandardContext[] has not been started Thanks -- Willian Corrêa C.O.I. - Centro de O

RE: Problem with logging in Eclipse

2004-10-29 Thread Januski, Ken
Donie, I just noticed this from your log: - Root Cause - java.lang.NoClassDefFoundError: org/apache/log4j/Layout I'm at work right now so can't check my logs at home but if they also point to Layout as the missing class rather than just Log4j that may tell us a little more about what's ca

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
Hi Peter, The load balancer is an F5 and we are doing can do the balancing based on JSESSIONID. At the moment we are doing persistence based on our own cookie (Long story). How did you disable keep-alives? maxKeepAliveRequests="1" ? Doesn't it make more sense to use keep-alives? And what does t

Re: Tomcat in a High Traffic Environment

2004-10-29 Thread Peter Lin
if you're using hardware load balancer like cisco localdirector, I would setup the load balancer to direct the traffic based on sessionid. this way, you don't need to use keep alive. when you say 8K simultaneous users, what does that translate to in terms of concurrent requests per second? An easy

Re: problems with LD_LIBRARY_PATH !

2004-10-29 Thread phil campaigne
Her, Andre wrote: All, I have ported a web application normally running on NT4 / ISS /Jrun to a tomcat 3.3.2. The results are mixed. servlets seems top work OK but some of them do a call to a perl script. The perl script is well called but the environment LD_LIBRARY_PATH is not set, so loading of m

Tomcat in a High Traffic Environment

2004-10-29 Thread Andrew Miehs
Dear List, I am new to the list and have a few questions about Tomcat 5.0. We are attempting to use tomcat in a High Traffic, many simultaneous Internet user environment. I have about 8000 simultaneous users, and plan on using 14 web servers. These servers connect via CORBA to a group of backend

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
> > As a follow-up to my original post - further testing shows > that this problem only appears when I access Tomcat via IIS. > If I connect to Tomcat directly via port 8080 then everything > works as expected. > Now I'm even more confused. If I go back to accessing Tomcat via IIS, it will f

RE: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Evgeny Gesin
It's specific for driver you use. I don't have a url for Oracle drivers, I use JConnector for MySQL http://dev.mysql.com/doc/connector/j/en/ Here is sample of driver line in server.xml: jdbc:mysql://127.0.0.1:3306/db?autoReconnect=true&useUnicode=true&characterEncoding=utf8& Take attention of th

RE: Signals sent by Tomcat to web applications during shutdown.

2004-10-29 Thread Shapira, Yoav
Hi, >Should have remembered that, I've used it before ::blush:: . I didn't >consider it as the thread I'm looking at is deep within the business >logic and doesn't have access to the Context. That it gets trickier. You can use the Runtime#addShutdownHook approach, but that only applies when th

RE: Signals sent by Tomcat to web applications during shutdown.

2004-10-29 Thread Simon Kelly
Thanks Yoav, Should have remembered that, I've used it before ::blush:: . I didn't consider it as the thread I'm looking at is deep within the business logic and doesn't have access to the Context. Cheers Slim -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 29 Oc

Re: Tomcat just STOPS

2004-10-29 Thread agidden
There are numerous issues with past versions of Sun's Java that can cause hangs. Some of the 1.3.1, and 1.4.1 releases and one of the 1.4.2 releases had issues that can cause hangs. We've seen complete lockups in Tomcat and JBoss with 1.3.1_06, for example. - Original Message - From: Der

RE: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Shilpa Nalgonda
can u point me to a resource how i can do it. -Original Message- From: Evgeny Gesin [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 9:42 AM To: Tomcat Users List Subject: Re: Internationalization of characters --UTF8 encoding > .. is supposed to take japanese characters an inse

RE: Failed to install Tomcat5 service

2004-10-29 Thread Shapira, Yoav
Hi, Try the .zip distribution, just unzip and run. It won't run as a service at first, but it'll get you started. The 5.5.3 exe installer works fine out of the box for me on Win XP pro using Sun JDK 1.5. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: [EMAIL PROTECT

FW: Failed to install Tomcat5 service

2004-10-29 Thread Sharma_Ashutosh
No one is providing answer to my very basic question-which is a show stopper for me. Please help me -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 3:01 PM To: [EMAIL PROTECTED] Subject: Failed to install Tomcat5 service Hi, I'm install

Re: Internationalization of characters --UTF8 encoding

2004-10-29 Thread Evgeny Gesin
> .. is supposed to take japanese characters an insert > them into database. Is there any setting in Tomcat4 > where i should be giving the encoding option. You can specify parameters for SQL driver when you define DataSource in Tomcat's server.xml. I think most of Oracle drivers can process UTF-8

mod_rewrite mod_proxy issues with apache and tomcat

2004-10-29 Thread Pablo
To anyone who can help, I currently am looking into alternative to mod_jk2 for apache and tomcat . Simply because of latency issues. One of the avenues that I am attempting is using mod_proxy and mod_rewrite. I have followed the directions from this url http://jakarta.apache.org/tomcat/to

Internationalization of characters --UTF8 encoding

2004-10-29 Thread Shilpa Nalgonda
Hi, I am using Tomcat4.1, Oracle 8i , and XmlRpc to write an application which is supposed to take japanese characters an insert them into database. Is there any setting in Tomcat4 where i should be giving the encoding option. And aslo i get the request from the client in the form of xml and pass

RE: Signals sent by Tomcat to web applications during shutdown.

2004-10-29 Thread Shapira, Yoav
Hi, ServletContextListener#contextDestroyed is a good one. Yoav Shapira http://www.yoavshapira.com >-Original Message- >From: Simon Kelly [mailto:[EMAIL PROTECTED] >Sent: Friday, October 29, 2004 9:21 AM >To: [EMAIL PROTECTED] >Subject: Signals sent by Tomcat to web applications during

Signals sent by Tomcat to web applications during shutdown.

2004-10-29 Thread Simon Kelly
Hi All, I've been having a good shufty through the Tomcat documentation, but I can't find a reference to what signals Tomcat sends to the web applications to shut them down during the shutdown operation. Does anyone know what signals i would need to trap in my code to allow all of my threads to d

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Shapira, Yoav
Hi, >Thanks for your response. Any idea where I should be looking. I've found >the AJP13 config entry in server.xml but there is nothing that looks like a >buffersize parameter. I've looked on the AJP13 page at >http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html and that >doesn't see

Re: channelUnix.file is missing

2004-10-29 Thread Nikola Milutinovic
FM wrote: Thanks, I modified my jk2.properties but now in catalina.out I have : INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final How can I load AP

RE: Active connections in db pool

2004-10-29 Thread Shapira, Yoav
Hi, This is simple. Code below is for DBCP, the spirit is the same for other providers: // Get initial context, naming context DataSource ds = (DataSource) ctx.lookup("jdbc/mydb"); BasicDataSource bds = (BasicDataSource) ds; System.out.println("Active connections = " + bds.getNumActive()); Yoav

Re: channelUnix.file is missing

2004-10-29 Thread FM
Thanks, I modified my jk2.properties but now in catalina.out I have : INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final How can I load APR ? Thanks

Re: Problem Authenticating Users in LDAP

2004-10-29 Thread Mark Doppelfeld
So did you try debugging the JNDIRealm That's what I wonna do with my umlaut problem... Mark Sandeep N wrote: I did try out these things long back, but it did not yield any success. Hence mailed the list. On Fri, 29 Oct 2004 14:14:57 +0200, Mark Doppelfeld <[EMAIL PROTECTED]> wrote: Hi, took

RE: problems with LD_LIBRARY_PATH !

2004-10-29 Thread Her, Andre
for the moment I am starting tomcat with $TOMCAT_HOME/bin/startup. I have included # Shell script to startup the server LD_LIBRARY_PATH="/usr/lib:/usr/local/lib/:/usr/local/perl5/lib:/usr/java/lib " ;export LD_LIBRARY_PATH TOMCAT_HOME="/usr/tomcat/tomcat" ;export TOMCAT_HOME BASEDIR=`

RE: auto reload?

2004-10-29 Thread Didier McGillis
>Anyway this was my last resort after Google had jack ... how about those >Red >Sox Go Sox ;) I probably shouldn't be committing stuff to CVS today given the amount of drinking and partying over the past 24 hours... We had the same worries about the hosting company we have and some of the tech t

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
> > Hi, > Ahh, it's great that you tried this: I was just going to ask if the > connector is to blame ;) > > The range of data sizes you mentioned immediately starts the "buffer > size alarm horn" in my head ;) 8192 = 8k is the default > buffer size for > many connector versions, including prob

Re: Active connections in db pool

2004-10-29 Thread Hollerman Geralyn M
"Trond G. Ziarkowski" <[EMAIL PROTECTED]> wrote: Is there a way of finding out how many commections which are currently active when using a db connection pool? I got this error message in my logs: "Cannot get a connection, pool exhausted". When I increased the number of mxActive the error messag

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Shapira, Yoav
Hi, Ahh, it's great that you tried this: I was just going to ask if the connector is to blame ;) The range of data sizes you mentioned immediately starts the "buffer size alarm horn" in my head ;) 8192 = 8k is the default buffer size for many connector versions, including probably the one you're

Re: problems with LD_LIBRARY_PATH !

2004-10-29 Thread dmu2201
I have tried every thing I could think of, even including a $ENV{'LD_LIBRARY_PATH'} = "/usr/lib:/usr/local/lib:/usr/local/perl/lib"; in the perl script, but still fails loading libraries *.so !! Any idea someone !? Many thanks in advances Regards Andre How do you start your Tomcat?! Trough a

Re: Problem Authenticating Users in LDAP

2004-10-29 Thread Sandeep N
I did try out these things long back, but it did not yield any success. Hence mailed the list. On Fri, 29 Oct 2004 14:14:57 +0200, Mark Doppelfeld <[EMAIL PROTECTED]> wrote: > Hi, > > took this from the documentation > >For each of the standard |Realm| implementations, the user's >passw

RE: OutOfMemoryError: unable to create new native thread

2004-10-29 Thread Shapira, Yoav
Hi, >Question: Having multiple tomcat instances on the same server - would this >not increase the memory usage - due to multiple JVMs? If configured correctly, the total should be just about the same. It might be a bit higher or lower depending on the semantics of your webapp (% in old generat

problems with LD_LIBRARY_PATH !

2004-10-29 Thread Her, Andre
> All, > > I have ported a web application normally running on NT4 / ISS /Jrun to a > tomcat 3.3.2. > The results are mixed. > servlets seems top work OK but some of them do a call to a perl script. > The perl script is well called but > the environment LD_LIBRARY_PATH is not set, so loading of mo

RE: Active connections in db pool

2004-10-29 Thread Shapira, Yoav
Hi, You have to cast the DataSource to its implementation type, since javax.sql.DataSource doesn't provide for pool statistics. The implementation class, e.g. org.apache.dbcp.BasicDataSource, provides various statistics methods including the number of active connections. Yoav Shapira http://www.

Re: Problem Authenticating Users in LDAP

2004-10-29 Thread Mark Doppelfeld
Hi, took this from the documentation For each of the standard |Realm| implementations, the user's password (by default) is stored in clear text. In many environments, this is undesireable because casual observers of the authentication data can collect enough information to log on succes

RE: Tomcat 5 and returning PDF in response outputstream

2004-10-29 Thread Jerome Jacobsen
I've been able to generate PDF in the response output stream in Tomcat 5. I used the example from this O'Reilly OnJava article: http://www.onjava.com/pub/a/onjava/2003/06/18/dynamic_files.html The code of interest is shown below: resp.setHeader("Cache-Control", "max-age=30"); resp.setContentTyp

Re: Problem Authenticating Users in LDAP

2004-10-29 Thread Sandeep N
I guess in the LDAP directory, the password is not stored as a clear text but in an encrypted manner using SHA (Simple Hashing Algorithm). Can that be the reason for not authenticating this user? And I don't have any special characters embedded in my username/ password. Also, I can trace my LDAP d

Re: Problem Authenticating Users in LDAP

2004-10-29 Thread Mark Doppelfeld
So your user hasn't been authenticated by the JNDIRealm. Is there any security role specific stuff?? You have to distinguish between authentication and authorization (roles etc.) Can you trace your ldap engine??? We are facing problems with german umlauts in passwords (JDBCRealm). Do you have a

Re: Resticting Access via a Request Filter

2004-10-29 Thread Tim Funk
Inside the declaration you may also declare Valves. -Tim Acácio Furtado Costa wrote: HI all, I have only one TomCat Application Server and I need to offer some Applications to the Internet and deny to others. I look for some Valves and found a "RemoteAddrValve", but looking in the

Resticting Access via a Request Filter

2004-10-29 Thread Acácio Furtado Costa
HI all, I have only one TomCat Application Server and I need to offer some Applications to the Internet and deny to others. I look for some Valves and found a "RemoteAddrValve", but looking in the documentation, it is Setup in the SERVER.XML and it is valid for all host and all a

Re: Tomcat just STOPS

2004-10-29 Thread QM
On Fri, Oct 29, 2004 at 02:21:16PM +1000, Derek Clarkson wrote: : Tricky bug. We've been all over our system and cannot figure out : what is going on. The tomcats (we have 2 tomcat 4.1.24's behind an apache : server, just stop reponding after a couple of days. Restart them and : everything is

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Subbarao Anaparthi
thanks Regards -Original Message- From: Varley, Roger [mailto:[EMAIL PROTECTED] Sent: Friday, October 29, 2004 4:56 PM To: Tomcat Users List Subject: RE: Tomcat fails - Can't read body, waited #0 Seems size related As a follow-up to my original post - further testing shows that this

RE: OutOfMemoryError: unable to create new native thread

2004-10-29 Thread Carl Olivier
Hi. No problem! :) Reduced Maintenance is definitely one reason. Another reason is that I generally share a connector on the same port/protocol - and place all of these in a The other connectors are all for HTTPS sites - each running on the same port but bound to different Ips. I also have a m

RE: Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
As a follow-up to my original post - further testing shows that this problem only appears when I access Tomcat via IIS. If I connect to Tomcat directly via port 8080 then everything works as expected. Regards Roger __ Thi

Active connections in db pool

2004-10-29 Thread Trond G. Ziarkowski
Is there a way of finding out how many commections which are currently active when using a db connection pool? I got this error message in my logs: "Cannot get a connection, pool exhausted". When I increased the number of mxActive the error message of course disappeared. I tripled the number of

Tomcat fails - Can't read body, waited #0 Seems size related

2004-10-29 Thread Varley, Roger
I have a servlet that recieves data from a client. All the servlet is doing is reading from the InputStream of the HttpServletResponse (BufferedReader br = new BufferedReader( new InputStreamReader(request.getInputStream()));) and writing the data to a disk file. Periodically Tomcat refuses to

Failed to install Tomcat5 service

2004-10-29 Thread Sharma_Ashutosh
Hi, I'm installing Tomcat 5.5 on Windows XP Professional Box. Jdk version is 1.5. When I issue java -version on cmd prompt I get this output: java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64) Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing) I

RE: Problem with logging in Eclipse

2004-10-29 Thread Donie Kelly
Anybody else have this problem??? Thanks Donie -Original Message- From: Donie Kelly [mailto:[EMAIL PROTECTED] Sent: 28 October 2004 11:12 To: Tomcat Users List Subject: RE: Problem with logging in Eclipse Hi guys I have the same problem and it's driving me nuts. I have a run configura

Re: Tomcat5.5.3 serious problems!

2004-10-29 Thread Remy Maucherat
On Thu, 28 Oct 2004 16:39:12 -0700, David Lee <[EMAIL PROTECTED]> wrote: > HI! > > I tried to use GUI manager to upload war file (war file to deploy, the > message says OK, but nothing happened. no context files deployed. > nothing. > > then I tried to upload the same war file using "deploy direc

  1   2   >