Re: Request dispatching oddity

2012-12-11 Thread Juha Laiho
Chirs, first, thanks for your answers, and also for the nits, they did hit some good points. Then on with some answers to the further questions you placed; On Tue, Dec 11, 2012 at 12:58 AM, Christopher Schultz ch...@christopherschultz.net wrote: On 12/10/12 5:40 PM, Christopher Schultz wrote:

Request dispatching oddity

2012-12-10 Thread Juha Laiho
Hello, I encountered an odd situation with request dispatching. Environment: Java platform: Oracle 1.7 (7u9) Tomcat platform: 7.0.32, 7.0.33 Operating systems: Linux, Windows (likely irrelevant) Browser: Firefox 17 In short, if the same request is first redirected using servlet API

Re: Tomcat hardware requirments

2011-04-05 Thread Juha Laiho
On 04/05/2011 07:46 PM, bfackrell wrote: What are the hardware requirements for Tomcat 7? I looked (Google and on the Apache website) I’m just finishing a college course that taught Java technologies that interact with Tomcat but I want to know more so I’ve decided to try to build my own

Re: Need to create a new thread for async operations

2011-01-09 Thread Juha Laiho
On 01/09/2011 09:30 PM, Captain Cid wrote: I have moved the thread creation to constructor of a class which is instantiated by spring. Can you elaborate how to spawn thread in it using javax.servlet.ServletContextListener ? As for ServlerContextListener, please have a look:

Re: what ist $CATALINA_HOME/server ? (debian)

2010-12-07 Thread Juha Laiho
On 7.12.2010 18:45, Christoph Kukulies wrote: Can be found any instructions to build your own /etc/init.d/tomcat_startup script. catalina.sh seems to have provisions for it but I don't see a hook where to put in the user (e.g. tomcat55 or tomcat6) catalina runs under. No need to have a hook

Re: Java out of memory error

2010-10-14 Thread Juha Laiho
On 10/14/2010 02:19 PM, rujin raj wrote: I have Installed tomcat 5.5.20 on my windows 2008 server with 32 GB physical memory and the Java version is jre1.6.0. Is the OS installation 64-bit or 32-bit? If the application is 64-bit, is the Java installation 64-bit or 32-bit? (I suppose your Java

Re: How ot monitor hung tomcat/apache processes?

2010-09-23 Thread Juha Laiho
On 09/22/2010 03:42 PM, Darryl Lewis wrote: Are you trying to monitor from the same computer that tomcat is running on? That's not a good idea. What happens if the entire system crashes...you won't get any data/alerts. End to end uses another machine to monitor the first. You could monitor

Re: Class unloading in tomcat - PermGen Space

2010-09-14 Thread Juha Laiho
On 09/14/2010 07:21 PM, shivanic wrote: We have already increased the max perm gen size - but that is not a permanent solution. As in, if the count of jsp's in the application which is already in a few thousands - increases twicefold - again the same problem would arise. JSPs do not appear

Re: Prioritizing incoming requests

2010-08-05 Thread Juha Laiho
On 5.8.2010 15:50, Caldarale, Charles R wrote: From: B. Balakrishna Rao [mailto:balakrishna_...@persistent.co.in] Subject: Prioritizing incoming requests I would like to know if we can prioritizing the incoming requests in Tomcat. Not via configuration. You're free to adjust the thread

Re: Setting the Right Amount of Memory

2010-06-20 Thread Juha Laiho
On 20.6.2010 14:06, Mark Thomas wrote: On 20/06/2010 00:30, André Warnier wrote: Just a note here : 160 X 512 MB = 81 GB. If each Tomcat's JVM is allowed to use up to 512 MB of Heap, there might be moments where a lot of JVM's will be using close to that amount. Unless your system can really

Re: Tomcat 6.0.20 is running out of memory

2010-05-23 Thread Juha Laiho
On 05/21/2010 01:57 PM, kent.anders...@tieto.com wrote: Hi, The Tomcat webserver 6.0.20 we are using has run out of memory. Got the following message in the Catalina.out file: less /opt/jakarta/tomcat/logs/catalina.out ... java.lang.OutOfMemoryError: Java heap space ... at

Re: Appserver Queues Filling Up

2010-05-10 Thread Juha Laiho
On 05/10/2010 11:35 PM, Ben Knight wrote: Apache version:2.2.3 JBoss version: 5 JBoss Web: 2.1.3.GAhttp://2.1.3.ga/ mod_jk: 1.2.30 We are inconsistently seeing an issue in our production environment where our AJP queues between Apache and Jboss as shown in the JMX

Re: Tomcat Connector to Apache 2.2

2010-05-02 Thread Juha Laiho
Please clarify does not work: - after running the servers with the described configuration, what did you attempt to access? - what was the response on the browser? -- if using IE, do disable the Show friendly HTTP error messages in Internet Options/Advanced to see real server error messages

Re: Why cant I access a folder at root level which contains Java Script

2010-04-06 Thread Juha Laiho
On 04/03/2010 11:57 PM, nzindian wrote: Im trying to use a javascript WYSIWYG editor in a JSP page. The JSP is in the following directory: apache-tomcat-5.5.28/webapps/SimpleBlog The Java script is in this directory: apache-tomcat-5.5.28/webapps/SimpleBlog/js The JSP contains the following

Re: Why is tomcat taking so long to start?

2010-03-26 Thread Juha Laiho
On 26.3.2010 2:30, Mon Cab wrote: Tomcat is taking 3 mins to start up, while it used to start up in a matter of seconds. We have 2 containers set up with 7-9 hosts configured, each with its own docbase directory. Looking at the working directory, it seems that there is a directory for each

Re: Tomcat not seeing servlet

2010-02-14 Thread Juha Laiho
On 02/14/2010 06:21 PM, David Short wrote: ./AuthLogin and AuthLogin still don't work. It works with the fully qualified path http://yourserver:port/yourwebapp/AuthLogin; or ../../AuthLogin Ah, yes, that completes the picture. And below I'll somewhat repeat what Konstantin already explained,

Re: More than 20 users not able to access the application...

2010-02-07 Thread Juha Laiho
On 02/06/2010 01:03 PM, Munirathinavel wrote: How to configure tomcat to use more users concurrently? I'm using Apache2.2 as front end server Tomcat 6 as Back end server. My application is not supporting more 20 users. I'm not able to figure

Re: Every couple hours, Tomcat stops

2009-12-19 Thread Juha Laiho
Bruce wrote: I have an installation where Tomcat stops every couple hours. * Tomcat 6.0.18 * Windows XP pro 2.3GHz, 2G memory * The application is in a .war file. * This app reads and writes to a MySQL database on the same machine. What happens is that the application will run for

Re: Security Query.

2009-12-06 Thread Juha Laiho
R. S. Patil wrote: Thanks Chuk, In some discussion i heard that the WEB-INF contents can not be accessed from Internet at all. The servlet spec requires that the servlet container (Tomcat) prevent direct access to WEB-INF. How far this is true ? Completely, as far as Tomcat is concerned.

Re: Char Encoding text streams on Tomcat 5.5 and Linux

2009-11-28 Thread Juha Laiho
Dan Bagley wrote: In the failing environment I have the following env settings LANG=en_GB.UTF-8 the successful env is set to LANG=en_UK I'm pretty certain that is the reason for the differences you're seeing. Try starting the Tomcat in the failing environment with LANG set equal to that in

Re: Char Encoding text streams on Tomcat 5.5 and Linux

2009-11-27 Thread Juha Laiho
Dan Bagley wrote: The file is identical and static, I post the same file from my windows desktop into a locally running tomcat instance and it works and then post the same file into a tomcat 5.5 instance on Linux and it doesn't work. But then I post again onto Tomcat 6 instance on Linux and

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-21 Thread Juha Laiho
Karthik Nanjangude wrote: From: Ronald Klop [mailto:ronald-mailingl...@base.nl] On Thu, 19 Nov 2009 14:59:16 +0100, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: Can some body provide me a sample code for Socket (TCP / IP ) reading from a war application on Tomcat See

Re: Dedicated Thread Pool

2009-11-14 Thread Juha Laiho
Mohsen Saboorian wrote: I have a web application in Tomcat 6 which goes out of thread (thread starvation) after working some hours. Now I want to install a monitoring tool which is a webapp itself installed inside tomcat webapp folder. Is this possible to devote a special threadpool to one web

Re: servlet mappings

2009-10-30 Thread Juha Laiho
Caldarale, Charles R wrote: From: Chris Blackwell [mailto:ch...@team193.com] Subject: servlet mappings Coldfusion 9's web.xml ships with the following servlet-mapping, but it doesn't seem to work on Tomcat servlet-mapping id=coldfusion_mapping_6 servlet-nameCfmServlet/servlet-name

Re: Re : Connection Closed Issue

2009-09-17 Thread Juha Laiho
Could there be a firewall dropping inactive connections between the production app.server and database? (and, naturally, no such firewall between test env. app.server and database) -- ..Juha Sharath Babu S S S wrote: Yes i have validation query specified. In developement we are having the same

Re: 100% CPU by java process in Tomcat

2009-08-20 Thread Juha Laiho
On Thu, 20 Aug 2009, Phani Raj Kumar wrote: Here is the info: *JDK version* : j2sdk1.4.2_11 *Tomcat Version*: jakarta-tomcat-5.0.28 *OS*: SunOS burton 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V440 *CATALINA_OPTS*=-Xms64m -Xmx256m I didn't get any error messages in the log, but even

Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15

2009-08-12 Thread Juha Laiho
Dan Denton wrote: Hello all. I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I attempt to shutdown any tomcat instance, the entire server (VM) hangs and has to be rebooted. Even out of the box tomcat installations cause this. When I use JDK 5.0,

Re: virtual hosts for chrooted Tomcat

2009-08-03 Thread Juha Laiho
Ron Van den Branden wrote: Hi all, I'm preparing for deploying Tomcat based web applications on a dedicated server (finally!). I have experience with Tomcat webapps on my local Windows machine, but am making myself familiar with a real-life situation on a Ubuntu Linux server. From what

Re: Access to home page

2009-07-29 Thread Juha Laiho
Mohit Anchlia wrote: How can I limit access to the home page so that people are not able to access the home page? By not creating the home page (/index.html, /index.jsp, ...) at all, and making sure that directory indexing is disabled? Or is there a use case in your application where the home

Re: Tomcat High CPU consommation

2009-07-29 Thread Juha Laiho
b.henr...@pepperone.be wrote: We have sometimes Tomcat (5.x) who consume all the CPU (or 50 %) of the CPU constantly in our productions servers (Linux or Windows). Adding to the thread dump mentioned by Leon, on Linux you can run ps -fLp tomcat_pid to see CPU time usage per thread. Running this

Re: On my Webserver: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

2009-07-26 Thread Juha Laiho
Caldarale, Charles R wrote: From: Paul van Hoven [mailto:paul.van.ho...@googlemail.com] Subject: Re: On my Webserver: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet gwt-servlet.jar I have some recollection that the above jar is the trouble maker; take a look inside it.

Re: SSL mode configurations

2009-07-25 Thread Juha Laiho
Anisha Parveen -X (anparvee - Infosys at Cisco) wrote: I want to configure SSL mode in my tomcat. I have cross checked my configurations with the default ss.conf. Everything seems fine. But https://localhost does not work. I use mod_jk for apache-tomcat connection. I am a beginner here and

Re: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit)

2009-07-24 Thread Juha Laiho
Li,Henry wrote: My Tomcat is running on 32-bit Red Hat 4 (2.6.9-78.0.1.ELsmp), host server has 8G physical memory and 4 processors. java version 1.4.2 gcj (GCC) 3.4.6 20060404 (Red Hat 3.4.6-10) I got java.lang.OutOfMemoryError Current configuration: -Xms1024M -Xmx2304M The host server

Re: what is the upper limit of maximum heap memory for Tomcat with 32-bit JVM running on Red Hat Linux 4 (32-bit)

2009-07-24 Thread Juha Laiho
Li,Henry wrote: Yes, there is memory leak from application. We contact the application vendor and they do not have patches to fix it for the version which we are using. So what we need is a partial/dirty fix to mimimize the recycle times. Upgrading the application will be a project which

Re: Please help

2009-05-26 Thread Juha Laiho
Sibusiso khoza wrote: Mark Your efforts to assist are greatly appreciated. Please don't take my next question as a sign of laziness or stupidity. I'm a biginner when it comes to programming and have been struggling with this one issue for ages. I did everything in your suggested

Re: Problem Reading Property files

2009-05-26 Thread Juha Laiho
john S wrote: I am planning to migrate my web application from iplanet 4.1 to tomcat 6. In this process I need to read the properties files initially. for eg: i got the property files in a *iPlanet*: *Config

Re: Problem Reading Property files

2009-05-26 Thread Juha Laiho
john S wrote: Actually, I am not sure where to place and configure the property files (*SERVLET ARGS*) in tomcat. If it's ok for you to have the files deployed along with your application, then I'd like to propose the following: Place the files within /WEB-INF/ directory in your web

Re: How to refer to file?

2009-05-18 Thread Juha Laiho
Hello, by that logic, when you edit a file with Word, the default save location should be the directory where the Word binary is located. The current directory with servlet applications is rather weakly defined - and for very strict adherence to servlet specification you shouldn't even expect

Re: Trouble building tcnative

2009-05-18 Thread Juha Laiho
Christopher Schultz wrote: I've never built tcnative before, but I'm no stranger to the standard UNIX source package build process. I'm having a bit of difficulty building this. ... ...and this is where things fall apart for me. Here's the output of configure (apologies for any bad line

Re: GC Problem

2009-04-29 Thread Juha Laiho
S Arvind wrote: Yeah daily atleast once Out-of-memory will raise and we will restart the tomcat. As others have already said, this has all the symptoms of a memory leak. It could be Tomcat, but more likely is your application. The continuous GC is a sign of the Java VM running out of memory

Re: Does this look correct to everybody?

2009-03-24 Thread Juha Laiho
Alston, Brian (US SSA) wrote: This is too weird, I am hoping somebody can explain it to me. If I change my configuration to the following: [...] Everything appears to work exactly as expected. My sessions are acting like they are supposed and everything seems to be playing nice. So why does

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-24 Thread Juha Laiho
So, looks like I'm late to the party, but will crash in nonetheless. Sam Hokin wrote: Christopher Schultz wrote: On 2/19/2009 6:23 PM, Sam Hokin wrote: The problem, which spontaneously appeared a few days before Christmas on this one server, is that the initial request of a JSP or servlet

Re: Apache2.2 pages won't render in FireFox

2009-02-16 Thread Juha Laiho
Martin Gainty wrote: All- Im discovering Firefox wont render Apache2.2 served pages from Apache2.2/htdoc folder If I rollback to Apache2 ..Apache2/htdoc Pages the same pages are rendered with no error Advice? Could be an issue with file extension - MIME-type mapping . If you

Re: Tomcat unexpectedly shuts down

2009-02-13 Thread Juha Laiho
Adlane ACHAB wrote: hi, below is my tomcat config Tomcat VersionJVM VersionJVM VendorOS NameOS VersionOS ArchitectureApache Tomcat/6.0.181.6.0-b105Sun Microsystems Inc.Linux2.6.23.12i386 Essentially what happens is this: The server is running along fine, and then all of a sudden, for

Re: Java/Tomcat 5 CPU utilization very high under low load

2009-01-28 Thread Juha Laiho
David Wall wrote: We are running Tomcat 5.5.27 on Linux 2.6.18-53.1.4.el5xen (Red Hat 4.1.2-14) with Java 1.6.0_05 (32 bit) in a Xen virtualization environment (not my server, so unsure what version that is). It has 3 webapps running, two of ours and Tomcat's manager. Normally, when we run

Re: Is it possible for error page from one webapp to direct to another?

2009-01-26 Thread Juha Laiho
removeps-gro...@yahoo.com wrote: Is it possible for error page from one webapp to direct to another? What I'm thinking is: In mywebservice/WEB-INF/web.xml error-page error-code404/error-code location/errors/404.html/location /error-page But I want the error page to be

Re: Oracle database calling the web app?

2009-01-07 Thread Juha Laiho
Bill Davidson wrote: Is it possible to set up a callback like situation so that a trigger in an Oracle 10g database can call a method in a currently running webapp that's running in Tomcat 6? Yes, there's UTL_HTTP PL/SQL package available in Oracle, which provides HTTP client functionality. AQ

Re: [us...@httpd] Problem with mod_headers ?

2008-12-31 Thread Juha Laiho
André Warnier wrote: As a separate question : how does Apache (or mod_jk) exactly arrange to do that (not allow mod_headers to change the response headers set by Tomcat) ? The answer may help me decide whether I can/want to try writing my own mod_perl response header modification handler (or

Re: tomcat 6.0 problem with weblogic.jar

2008-12-03 Thread Juha Laiho
Mark Thomas wrote: pharish2 wrote: java.lang.NoClassDefFoundError: weblogic/wsee/jaxrpc/ServiceImpl java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)

Re: load-on-startup

2008-11-25 Thread Juha Laiho
André Warnier wrote: Hi. About the load-on-startup item in web.xml, the Servlet Spec 2.5 has this to say (p 128) : [...] My questions are : 1) In the case of Tomcat 5.5 and higher, is there a way to *prevent* a deployed application to be loaded and/or started at Tomcat startup ?

Re: Tomcat threads, II

2008-11-12 Thread Juha Laiho
André Warnier wrote: Now that I have (with your help) established some basic facts, I have a practical case for analysis. We have an old clunker PC (Pentium II, 512 Mb Ram, average ATA disks), which we use to test some applications (not only Java/Tomcat). ... Now, if I stop and restart

Re: Deadlocks with Oracle

2008-11-07 Thread Juha Laiho
Mikolaj Rydzewski wrote: I have following setup: Tomcat 5.5.23 with Oracle database 10.2.0.1.0 ... There are several webapps deployed. After some time, depending on usage, applications get stucked - I mean every request that needs database connection hangs. Thread dump looks ALWAYS the same:

Re: All threads (200) are currently busy

2008-11-02 Thread Juha Laiho
AD wrote: On Sat, Nov 1, 2008 at 5:25 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: AD [mailto:[EMAIL PROTECTED] Subject: Re: All threads (200) are currently busy ah sorry, proxied through apache with mod_proxy_balancer on ajp port Can you try your load test directly into

Re: Problem to install APR Tomcat Native Library

2008-10-31 Thread Juha Laiho
[EMAIL PROTECTED] wrote: However I get the following warnings when starting up Tomcat: WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'minSpareThreads' to '25' did not find a matching property. Oct 31, 2008 1:04:09 PM

Re: Convenient web application configuration.

2008-10-30 Thread Juha Laiho
Jason Cipriani wrote: I have a web application with a lot of configuration options, all currently stored as servlet initialization parameters in WEB-INF/web.xml. The parameters are site specific and are different for my development machine, the machines of the two other developers working on

Re: read context.xml Resource attributes

2008-10-25 Thread Juha Laiho
Harry Levinson wrote: What is the proper way to read attributes of a Resource in context.xml, for example the url attribute? I am building a test web page that shows whether or not we are successfully connected to the database. Only techies inide the company will be able to view that web

Re: Hardware requirements for Tomcat

2008-10-12 Thread Juha Laiho
Arun M wrote: I need to know the hardware requirements in CentOS for hosting a website which have 1000 concurrent users. I am using Tomcat 5.5, Mysql 5.1 and Java1.5. That depends a lot more on your application and usage patterns than on the OS/application server/database server. We are

Re: Cannot load JDBC driver class in WebApp-specific lib

2008-10-06 Thread Juha Laiho
McEahern, Mark S wrote: I have a JNDI resource defined in my application's context.xml like so: ?xml version=1.0 encoding=UTF-8? Context reloadable=true debug=true allowLinking=true Resource name=jdbc/v5/myjndi type=javax.sql.DataSource

Re: Jasper compiler version, how to configure

2008-10-05 Thread Juha Laiho
Dave wrote: In my development environment using JDK 1.5, the jsp compilation is fine. But after deploy to JBoss 4.0.5(w/ tomcat 5.5), the JSP compiler complains templates such as List I started JBoss using jdk 1.5, configured in run.sh (JAVA_HOME). It seems that the JSP compiler is

Re: CPU utilization and Tomcat 5.5.20

2008-10-03 Thread Juha Laiho
Reis, Tom wrote: We are running Tomcat 5.5.20 with jvm 1.5.0_14. Tomcat utilization goes to 100 percent being used by Tomcat. Any ideas why the utilization would go so high. Thanks. Please let us have more infromation. Upon startup, it is typical of Tomcat to be very CPU-intensive for a

Re: Disable java code execution %blabla% in jsp, but permits tags

2008-09-10 Thread Juha Laiho
kazukin6 wrote: Is it possible to disable all java code execution within jsp page (by security manager or something) but allow custom tags to be executed? The problem is that the users can change jsp files, and due to security reasons we can allow them to use only tags Unfortunately I

Re: file upload

2008-09-08 Thread Juha Laiho
Silvio Rainoldi wrote: When I try to write a file in a folder in the server I get this error: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. /home/www/virtual/test/images/htdocs/

Re: secure parts of a web application with https

2008-08-29 Thread Juha Laiho
wmueller wrote: I have a small web application. Some pages are free to visit for everyone but some other are only available after login (username/password). I try to make the login page and all other pages after the login to use https. you can think of a application structure like this:

Re: Servlet Memory Leak

2008-08-28 Thread Juha Laiho
Nathan Thatcher wrote: I have a fairly small memory leak in a servlet (Tomcat 6.0) running on a Windows 2003 server. I have been looking into memory profiling to help me find the leak but nothing seems to be or do what I need. Simply put I want a list of all of the objects/primitives (and if

Re: Receiving duplicate requests when code that processes the initial request blocks for a long time ...

2008-08-20 Thread Juha Laiho
Mashama McFarlane wrote: I am not sure if this is a bug, feature, or whatever but I definitely need some answers here. I ran into some issues when sending a request to a servlet that executes native code that takes a long time to terminate (I am talking 10s of seconds here). I am

Re: Individual servlet statistics

2008-06-26 Thread Juha Laiho
Tyler DeWitt wrote: I was curious if anybody knew of some software that tracked the memory and cpu usage of each servlet that was running on a Tomcat instance. I am looking to be able to say Servlet A is using 2%CPU and 10 mb of heap and Servlet B is using 2% CPU and 200 mb of heap. I need

Re: Tomcat-5.5 run error on red hat

2008-06-10 Thread Juha Laiho
kohanm wrote: here they are: [EMAIL PROTECTED] usr]# cd java [EMAIL PROTECTED] java]# cd jdk* [EMAIL PROTECTED] jdk1.6.0_02]# cd bin [EMAIL PROTECTED] bin]# ls -l ... -rwxr-xr-x 1 root root 135168 Jun 14 2007 java.exe ... I have no way to find out how you have managed that, but whatever

Re: Tomcate 5.5.23 JAVAOPTS

2008-06-04 Thread Juha Laiho
karthikn wrote: Will this config work ? O/s = UNIX 11 PA Risc SDK : J2SDK16 TOMCAT 5.5.23 RAM = 2 GB The Web application is simple and uses JNI to connect to UNIX LOCAL Application JAVA_OPTS=-server -Xms200m -Xmx2548m -XX:+UseParallelGC -verbose:gc As was mentioned in another response,

Re: STEPS TO RUN SERVLETS IN TOMCAT 6.0

2008-06-01 Thread Juha Laiho
Kiran, chapter three of Apache Tomcat 6.0 documentation is named First Webapp. It does walk you through to creating and your first webapp. Please read it, and if you get stuck with something regarding that document, then come back and desctibe the part of the document with which you're having

Re: Best practice? configuration of a web application

2008-05-28 Thread Juha Laiho
Mikolaj Rydzewski wrote: Ingo Siebert wrote: I have to find a good solution for the configuration of my web application. Right now, i have a configuration file in my WAR. But I think it's not the best solution, because - I can't the change the config before deployment - a redeployment of a

Re: wrapperClass usage

2008-05-16 Thread Juha Laiho
goober_nut wrote: Is it possible to package up your own wrapper inside a war file which you can deploy to other Tomcat servers without putting it in Tomcat 5.5 - shared/lib or server/lib or Tomcat 6 lib/? Not for deployment as a war file; I'm pretty certain that the class is not being

Re: R: Tomcat CPU 100%

2008-05-07 Thread Juha Laiho
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrea, Andrea Di Muro wrote: | Tomcat is running on a Linux Server, what is the exact command to take the | thread dump? | kill -s QUIT tomcat_pid is right? Yes. The thread dump will be printed on stdout, and probably

Re: Question on concurrent request to the same servlet

2008-04-22 Thread Juha Laiho
Dikan Xing wrote: When two (almost) concurrent requests to the SAME servlet occurs (for example,I type the same url in two individual browser window), I find that Tomcat seems not to work on the second request until the first is done. Are the two browser windows truly individual, or could

Re: Initializing classes in shared/lib

2008-04-12 Thread Juha Laiho
Tushar Madhukar wrote: I have some utility classes in $tomcat/shared/lib directory, which are used by several webapps. These need to be initialized before any of my webapps are called by the client. One of these shared classes gets a reference to its class loader, by calling

Re: Database connections grow after redeploy

2008-03-13 Thread Juha Laiho
Scott McClanahan wrote: On Thu, 2008-03-13 at 12:02 -0400, Christopher Schultz wrote: Caldarale, Charles R wrote: | From: Scott McClanahan [mailto:[EMAIL PROTECTED] | Subject: Re: Database connections grow after redeploy | As far as the continuing data base connections, I can only speculate

Re: How to make Tomcat do not use /dev/random?

2008-02-17 Thread Juha Laiho
Mohamed Mohamedin wrote: I am facing a problem with tomcat which make it start very slowly. I found while searching that Tomcat reading from /dev/random to get random numbers may be the cause. So I am asking How to prevent that? Or if there is another cause please tell me. Is this just Tomcat,

Re: Tomcat Cluster

2008-02-14 Thread Juha Laiho
Andrew Hole wrote: I have both tomcat instances on the same machine, and tcpListenPort are different on both server.xml: instance 1 setuped with 9016 and instance 2 with 9017. When I stop one of tomcats, the other is notified properly with the following message: 12-Feb-2008 11:19:57

Re: Servlet Openning as file download

2008-02-06 Thread Juha Laiho
Natasha Wright wrote: From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Date: Wed, 6 Feb 2008 10:00:53 + HiI am running tomcat 5.5 on windows XP; I am attempting to run a servletas a html form action:form method=POST action=BeerSelectinput type=SUBMIT/formWhen I click on the submit button a

Re: Xmx and Xms size

2008-01-31 Thread Juha Laiho
Julio Cesar Leiva wrote: We have an app on a m linux box dual processor dual core , 16GB RAM We are wondering what could be the ideal size for Xmx and Xms (Java Heap Size) We have a load test that hits our server with 800 clients sending request every sec. Thanks for your tips. Adding to

Re: JDBC connection through JNDI

2008-01-21 Thread Juha Laiho
Hehl, Thomas wrote: I wish to create a JDBC connection and store it in a JNDI tree for use by a spring configuration file that usually runs my tomcat webapp. I'm trying to figure out how tomcat creates the connection pool from my config file and stores it in JNDI, but it is absolutely beyond me.

Re: Datasource Property Parameters (Oracle) JNDI

2008-01-11 Thread Juha Laiho
Berglas, Anthony wrote: I am trying to set up 0racle connection pooling. Some of the parameters are reflected normally, but some are specified via a property lists. How do I set the property list properties using Tomcat/JNDI? I can set up the basic DataSource, but I cannot set the maxLimit

Re: War File Deployment - Permissions for ftp account

2007-12-28 Thread Juha Laiho
Carsten Schmitz wrote: But I need a safe concept for a ftp user which should upload, delete and manage the War file/Application. Tomcat 5.5 is running with tomcat:tomcat Ftpuser is ftpuser:tomcat ... In some circumstances it will be important for the ftp user to do some changes to the

Re: How to specify windows user in runtime in tomcat?

2007-12-10 Thread Juha Laiho
nitin403 wrote: I have create a servlet which needs to read a file on a share folder. When I run tomcat service as anonymous it is not able to access read this file. But when I run tomcat service as a user who as access to this file, then it runs fine. My Question is, is it possible to

Re: Enable/Disable servlet via context param

2007-11-21 Thread Juha Laiho
Matteo Turra wrote: I would like enable/disable a servlet depending on a context init parameter. Have a look at the Servlet specification, and therein the chapter about Servlet Life Cycle. I wrote this code in my servlet. But I'm not sure I the best way to do it. public void init() {

Re: Monitoring Apache Tomcat

2007-10-19 Thread Juha Laiho
Tony Fountain wrote: Apache Tomcat/5.5.23 (runs as windows service using C:\Apache\Tomcat\bin\tomcat5.exe //RS//Tomcat5) JVM 1.5.0_12-b04 Windows 2003 Standard (x86) We are experiencing an issue where every night our Apache Tomcat crashes. I've reviewed all the logs and can not find

Re: newby user: processing when the server launches

2007-10-14 Thread Juha Laiho
. For the details, please see the Java Servlet Specification (pick a version that matches what is implemented by your application server). -- Wolf a.k.a. Juha Laiho Espoo, Finland (GC 3.0) GIT d- s+: a C++ ULSH$ P++@ L+++ E- W+$@ N++ !K w !O !M V PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e

Re: Native Library Not found

2007-10-11 Thread Juha Laiho
Arun wrote: That worked finally with the increase in PermGen space. I am a bit concerned about my server memory. See my top (not mine ofcourse) top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 9770

Re: Authorization on Apache Tomcat the J2ee Way.

2007-10-07 Thread Juha Laiho
Arun wrote: On 10/5/07, Pid [EMAIL PROTECTED] wrote: Arun wrote: I have a tomcat 6 installed. I have a running webapplication . I need to implement a role based access control. How can I combine servers capabilities so that I can use the request.getPrincipal() method ... I also have a list

Re: HTTP status error 500 in tomcat 4.1.36

2007-09-17 Thread Juha Laiho
On Mon, 17 Sep 2007, bharatp80 wrote: Hello Everyone, I am getting this error while loading the first test.jsp file after a fresh windows 2000 server installation and new tomcat 4.1.36 and iis 5.0 configuration. after installing and configuring tomcat 4.1.36 i tried my sample application

Re: HTTP status error 500 in tomcat 4.1.36

2007-09-17 Thread Juha Laiho
On Mon, 17 Sep 2007, bharatp80 wrote: Thanks for your quick reply. but i am surprised the same code is working on another server. Such things do happen. so i guess to doubt on test.jsp is not appropriate. But still, the error message shows that is where the error happens. So, that is the

Re: an easier way to deploy war file?

2007-09-04 Thread Juha Laiho
Angelo Chen wrote: I use Tomcat 5.5, I installed it in an ubuntu, I have to start it as root with startup.sh. to deplay a war file during development I have to do following: 1. ftp to my home directory 2. ssh to the host as root, shutdown.sh 3. delete the program directory under webapps

Re: Threads in tomcat application.

2007-09-02 Thread Juha Laiho
Manivannan Palanichamy wrote: I need to design a web application that may use threads. Thats, the web application might have to read some 200 files from network. In order to speed up the process, I've decided to use threads/thread pooling. But, however I know it is not a good practice to use

Re: Tomcat consuming entire CPU.

2007-07-25 Thread Juha Laiho
Mark Stevens wrote: I don't think we are using sendfile, to be honest, I've had no involvement in development of the code, I'm just requested to look after the server. I'm going to try and work out how to read thread dumps, hopefully this will help, I'm finding my X11 connection too slow

Re: Tomcat thread management like Apache mpm-worker

2007-07-21 Thread Juha Laiho
Miguel Angel Tormo wrote: I have a few questions regarding the process and thread management with Tomcat: Is there a way to achieve some sort of process-threads handling such as that of the mpm-worker of Apache http server? I ask that question because I am using Tomcat 5.5 with JDK 1.4 in

Re: Cannot send mail from servlet

2007-07-21 Thread Juha Laiho
Fabio Rossi wrote: Here's sendMail method: Properties props = new ConfigLoader().loadConfigFile(); String prop; prop=(String)props.get(summary_header); if(prop!=null) summary=prop+\n+summary;

Re: Log4j errors on Tomcat6 startup

2007-07-16 Thread Juha Laiho
Mark Faircloth wrote: We are in the process of migrating from 5.5 to 6 under Win32/64 and need to alter the locations of some of our jars files because of the changes to the directory structure and the class loading. Under 5.5 we have commons-logging.jar and log4j.jar in WEB-INF\lib and

Re: Context.xml error

2007-07-07 Thread Juha Laiho
Artur Rataj wrote: Hello. I added a second context to Context.xml: Context reloadable=true privileged=true WatchedResourceWEB-INF/web.xml/WatchedResource /Context Context path=/informacja_ekspresowa docBase=/home/library/islib/Informacja_Ekspresowa/ reloadable=true /Context

Re: jk or jk2

2007-07-07 Thread Juha Laiho
Rasmus - Next Stay A/S wrote: Can anyone tell me which type of connector I should use? What exactly is the difference between jk and jk2? I am running IIS 6.0 and tomcat 4.12 In short, you should use JK. JK2 was intended to replace JK, but became too complex to use, and lost developer

How to inject a webapp listener?

2007-07-01 Thread Juha Laiho
Hello, I would like to have the Tomcat container to inject a specific ServletContextListener to each loaded webapp on my server - without touching the individual web.xml files, and am looking for advise on how to achieve this. In other words, I'd like to have the container act as if there was

Re: How to inject a webapp listener?

2007-07-01 Thread Juha Laiho
. Juha Laiho a écrit : Hello, I would like to have the Tomcat container to inject a specific ServletContextListener to each loaded webapp on my server - without touching the individual web.xml files, and am looking for advise on how to achieve this. In other words, I'd like to have the container

  1   2   >