Same thread for calls to Native methods

2007-03-20 Thread kz
Hi, Is it possible to configure Tomcat so that it spawns just one thread for calling all the methods of native code (the native methods are called from servlets)? Actually I am having a problem that I call a native method (C++ is the native language) and from the native code I initialiize some p

Re: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-20 Thread Eugene Wong
Nevermind, in server.xml -- View this message in context: http://www.nabble.com/-Deployment--Tomcat-5.5%2C-Single-war-into-multiple-apps-tf3431207.html#a9588211 Sent from the Tomcat - User mailing list archive at Nabble.com. -

Re: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-20 Thread Eugene Wong
> > > >> Take out the path attributes - they're not allowed when a >> element is in the conf/Catalina/localhost directory. Where should I put if not in seperate xml under conf/Catalina/localhost? I ended up replacement foo with request.getContextPath() and working fine. Thanks. -- Vi

Who do I have to pay (and how much) to...

2007-03-20 Thread Matthew
...get an answer to the following: For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml file in the META-INF directory (of each domain's .war file) as opposed to having to do the following in server.xml Thanks, Matthew --

Re: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-20 Thread Mladen Turk
Brandon Knitter wrote: I tried this, but still there was no chunked encoding in version 1.2.22. You we speaking about Keep-Alive, not TE chunked. We have patched 1.2.21 to allow for enabling of chunked encoding in the ISAPI filter if you configure it to do so (registry entry). Would this be

RE: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-20 Thread Brandon Knitter
I tried this, but still there was no chunked encoding in version 1.2.22. We are using the ISAPI filter again a very very old version of JBoss (2.x). Perhaps there is some confusion here. I think in more modern versions Jboss/Tomcat the AJP listener implements chunked encoding, but it doesn't app

high CPU usage with codenomicon TLS test case #91

2007-03-20 Thread Gurdeep Kaur \(gurdeep\)
We are using tomcat 5.5 with JSSE. When we execute codenomicon test case #91 from the TLS suit, tomcat CPU usage goes up to 90%. The platform is Redhat Linux. Was wondering if someone has seen something like this before. Thanks Gurdeep -

RE: mod_jk load balancing with SSL?

2007-03-20 Thread Tim Lucia
I do -- here are some snippets from the configuration files: conf.d/ssl.conf: LoadModule ssl_module modules/mod_ssl.so Listen 443 ServerName www.mycompanyname.com:443 SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key DocumentRoot /usr/local/esped/www.mycompanyname.com ServerA

Re: Tomcat Persistent Session Issues

2007-03-20 Thread ddigmann
Well I have messed with the Engine, Host, Context, and Manager and cannot get this exception to completely go away. The context I am currently working with is: I originally thought that I needed a Persistent Manager in order to have the sessions reload after a Tomcat restart, but I a

Re: Tomcat (on AS400)

2007-03-20 Thread Martin Gainty
I'll look into it Thanks Chuck, M-- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprie

RE: Tomcat (on AS400)

2007-03-20 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat (on AS400) > > Im looking at IBM's PASE (actually QP2SHELL2 ) which states > "is not threadsafe" I think that just means you don't want to run two instances of QP2SHELL2 simultaneously, since they're part of the same process.

Re: Tomcat (on AS400)

2007-03-20 Thread Martin Gainty
Thanks Chuck, Im looking at IBM's PASE (actually QP2SHELL2 ) which states "is not threadsafe" websphere seeme like the better option.. Thanks, M- --- This e-mail message (including attachments, if any) is intended for the u

RE: Tomcat (on AS400)

2007-03-20 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Tomcat (on AS400) > > Anyone know how to install/configure and deploy any version > Tomcat on an AS400? It's been done - search the archives for "aix" as well as "as400" ("AS 400" and "AS/400" don't work). Seem to be several potential

apache-tomcat on an ia64 rhel4?

2007-03-20 Thread Jeff Sadowski
I would like to run apache-tomcat on an dual Itanium server I have at work. I cannot find JDK for it nor can I find anything besides gcj Is it possable to build tomcat with gcj? has anyone gotten tomcat to run on a ia64 linux machine? or ia64 windows even(I think MS stoped support for the ia64 e

Tomcat (on AS400)

2007-03-20 Thread Martin Gainty
no joke (or pun intended) Anyone know how to install/configure and deploy any version Tomcat on an AS400? Thanks, --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to

Re: Custom error page on Tomcat 6

2007-03-20 Thread Filip Hanik - Dev Lists
http://people.apache.org/~fhanik/ check out GlobalErrorReportValve Filip Peter Kennard wrote: At 16:58 3/20/2007, you wrote: > From: Peter Kennard [mailto:[EMAIL PROTECTED] > Subject: Re: Custom error page on Tomcat 6 > > Can one make a class that spits out the error page that recieves the >

RE: Custom error page on Tomcat 6

2007-03-20 Thread Peter Kennard
At 16:58 3/20/2007, you wrote: > From: Peter Kennard [mailto:[EMAIL PROTECTED] > Subject: Re: Custom error page on Tomcat 6 > > Can one make a class that spits out the error page that recieves the > "code number" as input, (and/or maybe an Exception handle if the > servelet threw an exception whi

RE: mod_jk load balancing with SSL?

2007-03-20 Thread Sean Neeley
No one has ever done this? Help?! -Original Message- From: Sean Neeley [mailto:[EMAIL PROTECTED] Sent: Monday, March 19, 2007 12:16 PM To: users@tomcat.apache.org Subject: mod_jk load balancing with SSL? I'm using Apache Tomcat/5.5.15 and trying to get load balancing working with SSL.

RE: Custom error page on Tomcat 6

2007-03-20 Thread Caldarale, Charles R
> From: Peter Kennard [mailto:[EMAIL PROTECTED] > Subject: Re: Custom error page on Tomcat 6 > > Can one make a class that spits out the error page that recieves the > "code number" as input, (and/or maybe an Exception handle if the > servelet threw an exception which caused the error) and an

Re: OutOfMemoryError

2007-03-20 Thread Filip Hanik - Dev Lists
addendum to my previous post, Unable to create new native thread errors can also depend on heap fragmentation, since thread stacks are in the process heap, there might not be enough continuous space there. Filip Rahul Tandon wrote: Hi All, If I don't give -Xmx option in CATALINA_OPTS,

Re: OutOfMemoryError

2007-03-20 Thread Filip Hanik - Dev Lists
java.lang.OutOfMemoryError: unable to create new native thread There is not enough space to create a new thread. Threads(stacks). if -Xmx solves your problem, then set it and be happy :) another tip is to decrease the value of your thread stack size using the -Xss parameter, for example -Xss32

Re: Custom error page on Tomcat 6

2007-03-20 Thread Peter Kennard
A refinement on this question I am interested in, that isn't so googleable :) Can one make a class that spits out the error page that recieves the "code number" as input, (and/or maybe an Exception handle if the servelet threw an exception which caused the error) and an OutputStream to write b

Re: java.lang.OutOfMemoryError: Java heap space

2007-03-20 Thread Filip Hanik - Dev Lists
Add -XX:+HeapDumpOnOutOfMemoryError to your command line options, this will create a .hprof file when you get an OOM error, then simply analyze this file with a little tool called YourKit (www.yourkit.com) excellent profiler Filip Jean-Sebastien Pilon wrote: Hello, I have been experiencing

RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
yeah, Chris, at one point I did update the Oracle driver, and looking back, I believe that was the difference. In most cases I'm running stored procedures anyway, but occasionally I may be running a small prepared statement. -Original Message- From: Christopher Schultz [mailto:[EMAIL PR

RE: deploying problem

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
usually in the root of the tomcat directory in a folder called logs. At least older versions are. -Original Message- From: Deano!! [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 3:11 PM To: users@tomcat.apache.org Subject: Re: deploying problem well im a tomcat beginner so whe

Re: 4.x series difference

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L [GCG-NAOT] wrote: > One thing that previously worked in both environments and now seems > to not work ok is the structure of a Prepared Statement. > > I'll create one like I always have, and now Oracle seems to see the > semi

Re: deploying problem

2007-03-20 Thread Deano!!
this is it, http://deansserver.serveftp.com:8080/InterfacesHCI Rob Kirkbride-2 wrote: > > Deano, > > What does the log file have to say? > > Rob > > Deano!! wrote: >> to tell the truth i really dont truly know, when in the tomcat manager it >> says that it is running, but when i go into it i

Re: deploying problem

2007-03-20 Thread Deano!!
well im a tomcat beginner so where would i find the logs? i realise that sounds like a stupid question but i have only recently starting "trying" to use tomcat Rob Kirkbride-2 wrote: > > Deano, > > What does the log file have to say? > > Rob > > Deano!! wrote: >> to tell the truth i really do

SSL set expiration date

2007-03-20 Thread Hoa Doan
I have generated my own .keystore file just fine and SSL is work fine too, but i want to know if it is possible to set the expiration date of the certificate to me none/never expire or if that is not possible, to set it with the newest date possible. Thanks in advance, Hoa --

RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
ok, strangely now after removing that semicolon it works as it did/should. Might have been an old driver I was using before that allowed that I suppose. -Original Message- From: Edmund Urbani [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 1:53 PM To: Tomcat Users List Subject: Re

Re: common JSTL tagging pattern is a problem for Tomcat

2007-03-20 Thread Rashmi Rubdi
It appears that the JSP file is written with JSP XML syntax. < and > are reserved characters in XML , if you must use them then you would use < and > But there is no need to use either of the less than, greater than characters since you can simply write c:out as ${someVariable} , instead of

Re: common JSTL tagging pattern is a problem for Tomcat

2007-03-20 Thread Hassan Schroeder
On 3/20/07, Pat Willard <[EMAIL PROTECTED]> wrote: My JSP begins as follows: All attempts using a typical JSTL tagging sounded by Uh, that's the way XML works -- you can't nest tags like that. But First Name:

RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Ok, that might be the problem, but I wonder why now. -Original Message- From: Edmund Urbani [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 1:53 PM To: Tomcat Users List Subject: Re: 4.x series difference Propes, Barry L [GCG-NAOT] wrote: > Hello users, > > A while back I had

common JSTL tagging pattern is a problem for Tomcat

2007-03-20 Thread Pat Willard
I am using Tomcat 5.5.2 My JSP begins as follows: http://java.sun.com/JSP/Page"; xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"; xmlns:c="http://java.sun.com/jsp/jstl/core"; xmlns:spring="http://www.springframework.org/tags";> The body is as follows: Student Registration First Nam

Cryptographic provider list

2007-03-20 Thread Mark Liu
Sorry if this does not sound relevant to this list. But I think that web developers using Tomcat who played with client authencation might know this. I am working on a certification authority (CA) web application on Tomcat 6, using Java. The web users of this application can apply for x.509 digi

Re: 4.x series difference

2007-03-20 Thread Edmund Urbani
Propes, Barry L [GCG-NAOT] wrote: Hello users, A while back I had posted about running different versions on a desktop to see if it caused conflicts, created problems and so on. The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 4.0.1 in my dev. environment and 4.1.3

OutOfMemoryError

2007-03-20 Thread Rahul Tandon
Hi All, If I don't give -Xmx option in CATALINA_OPTS, then it hangs and Catalina.out has following error message: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Na

JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-20 Thread Brandon Knitter
I was looking over the 1.2.21 code and I'm finding hints that a "chunked" Transfer-Encoding is being attempted: \native\common\jk_service.h(138): unsigned is_chunked;/* 1 if content length is unknown (chunked rq) */ Is there a trick to getting keep-alive and chunked encoding turned on

4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Hello users, A while back I had posted about running different versions on a desktop to see if it caused conflicts, created problems and so on. The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 4.0.1 in my dev. environment and 4.1.3 on our production server, both of

Re: Problems with request encodings

2007-03-20 Thread Rashmi Rubdi
Please read this: http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html Ensure that you are using an uniform encoding accross all layers (front-end, middle, database, JSP pages, include pages etc) of your app. -Rashmi - Original Message From: "[EMAIL PROTECTED]"

Re: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-20 Thread Mladen Turk
Brandon Knitter wrote: In 1.2.21 I'm seeing absolutely no Keep-Alive is performed, even when the content-length is known and the browser is sending a Connection: Keep-Alive request. Thoughts? It's broken for IIS (wrong API usage). 1.2.22 is scheduled for a release next week. You can find 1.

Re: Possible JSTL/EL bug in 6.0.10

2007-03-20 Thread Rashmi Rubdi
You didn't mention which JSTL version you're using (at least I don't see it in the subject). I've configured JSTL 1.2 , JSF 1.2 on Tomcat 6.0.x which is built to JSP 2.1 (which has Unified EL - supposed to work with both JSTL and JSF) and Servlet 2.5 spec. And EL evaluates fine so far (no

RE: java.lang.OutOfMemoryError: Java heap space

2007-03-20 Thread Caldarale, Charles R
> From: Jean-Sebastien Pilon [mailto:[EMAIL PROTECTED] > Subject: java.lang.OutOfMemoryError: Java heap space > > What could be my problem Your application has a memory leak (or you might be running out of PermGen space). > where should I look next ? http://tomcat.apache.org/faq/memory.html

Re: Logging

2007-03-20 Thread reno
> > If I place a logging.properties in my context/WEB-INF/classes I > > seem to get the correct logging information in my log file. > > However, the output also seems to get the catalina.out. I really > > only want it in the context specific. Is there something else to > > configure to p

java.lang.OutOfMemoryError: Java heap space

2007-03-20 Thread Jean-Sebastien Pilon
Hello, I have been experiencing issues with a Tomcat server. Everyday we get the following error: java.lang.OutOfMemoryError: Java heap space This machine runs tomcat with 2 webapps and some java based cronjobs. I start tomcat with the following java options: -Xms128m -Xmx512m Tomcat Version

RE: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Mirou, Antoine
> How do I know for certain that I didn't import into the Java > installation's system-wide > Keystore? I used the keytool command below to import the cert. I don't > believe I imported my cert into the system-wide keystore but I am not 100% > certain. > > keytool -import -alias tomcat -trust

RE: Memory (leak) continues to increase (Tomcat5.exe)

2007-03-20 Thread Caldarale, Charles R
> From: Jayson Enriquez [mailto:[EMAIL PROTECTED] > Subject: RE: Memory (leak) continues to increase (Tomcat5.exe) > > The issue continues. I have updated to JDK 1.4.2_13 and > installed fixes from Documentum. The problem is almost 100% guaranteed to be in the application, not in Tomcat or the

Re: can a web app discover its Service?

2007-03-20 Thread Paul Singleton
Mikolaj Rydzewski wrote: Paul Singleton wrote: I want to deploy the same war into different (5.5) Services (e.g. "test" and "live"), and want it to discover where it is and behave differently. Is there a Tomcat-specific way to do this? JMX and MBeans come to mind. Is there a container-indepen

RE: Unable to compile class for JSP

2007-03-20 Thread Abdelmonaam Kallali
Hi I'm not that professional But what I did and it worked is: Let's say we have jsp file called myJsp.jsp in ROOT and a java program myProgram.java 1-Compile myProgram.java in a package named myPackage In WEB-INF/classes. 2-import that package in myJsp.jsp like this <%@ page import="myPackage.*"%

Re: Unable to compile class for JSP

2007-03-20 Thread David Smith
The error report implies that it's trying to compile a jsp it can't read (line -1 and jsp file: null). Can you check for a root cause in the logs relating to the stack trace below? Also check the usual suspects -- file permissions, security manager, etc. --David [EMAIL PROTECTED] wrote: H

Re: Unable to compile class for JSP

2007-03-20 Thread Martin Gainty
Peter jasper errors means your (index.)jsp is incorrectly compiled or your jspcompiler is incorrect or does not have permissions to compile If you look at $TOMCAT_HOME/conf/catalina.properties you should see these grants to the jasper compiler package package.access=sun.,org.apache.catalina.,

Re: Logging

2007-03-20 Thread Darren
If I place a logging.properties in my context/WEB-INF/classes I seem to get the correct logging information in my log file. However, the output also seems to get the catalina.out. I really only want it in the context specific. Is there something else to configure to prevent it going to the

Re: Custom error page on Tomcat 6

2007-03-20 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/03/2007, at 5:28 PM, Hoa Doan wrote: How do I set up a custom error page in Tomcat 6? Hoa, Stupid question... Have you tried entering "Custom error page on Tomcat" into Google? Grrr Andrew -BEGIN PGP SIGNATURE- Version: GnuPG v1.

Re: Unable to compile class for JSP

2007-03-20 Thread rmarra
> > Trying the JSP examples coming with it, I get the following message: > > > > type Exception report > > message > > description The server encountered an internal error () that prevented > it from fulfilling this request. Hi Peter, did you check that the JAVA_HOME enviroment variable is properl

Re: Custom error page on Tomcat 6

2007-03-20 Thread Tim Funk
http://tomcat.apache.org/faq/misc.html#error Hoa Doan wrote: How do I set up a custom error page in Tomcat 6? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

RE: Unable to compile class for JSP

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
doesn't seem like much to go onwhich example did you use and did you look in the work folder to see what the compiled servlets were referring to? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 11:21 AM To: users@tomcat.apache.org Sub

Custom error page on Tomcat 6

2007-03-20 Thread Hoa Doan
How do I set up a custom error page in Tomcat 6? - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Re: Memory (leak) continues to increase (Tomcat5.exe)

2007-03-20 Thread Tim Funk
Does this use lots of LARGE jsps where the JSP's use tags which use many BodyContent objects instead of flushing directly to stream? In this case, tomcat will allocate a buffer and keep it, in anticipation that the same buffer size will be used in the future. [Some call this a leak, others an o

Unable to compile class for JSP

2007-03-20 Thread Peter.Matthias
Hi, This might be a silly question, but it seems to be quite a common problem (lots or links in google). But none of the offered solutions so far worked. So I am asking the people who probably know! I installed tomcat 4.1.29 with JDK 1.4.2 Trying the JSP examples coming with it, I get the

Problems with request encodings

2007-03-20 Thread [EMAIL PROTECTED]
Hi I'm using Tomcat 5.5, Struts and Tiles, now working on a smaller web application that deals with forms and validation. To describe the problem I'll give a short scenario: FormPage1.jsp (having pageEncoding = ISO-8859-1 and charSet=ISO-8859- 1) contains a form using the POST method. When submi

Re: Logging

2007-03-20 Thread reno
> I had planned on using commons logging.. Would you recommend log4j over > commons logging. YES !! but you can also define which logger commons logging will use if you want... check this http://jakarta.apache.org/commons/logging/guide.html#Quick_Start Regards F > > reno wrote: > > if yuo

RE: Memory (leak) continues to increase (Tomcat5.exe)

2007-03-20 Thread Jayson Enriquez
The issue continues. I have updated to JDK 1.4.2_13 and installed fixes from Documentum. Has anybody come across this issue? Any ideas? Thank you Jayson -Original Message- From: Jayson Enriquez [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 9:52 AM To: users@tomcat.apache.org Su

SEVERE: Error unregistering mbean

2007-03-20 Thread Nathan Aaron
I am running Apache 2.0.52, jk2 2.0.4, and Tomcat 5.0.28. Recently I changed the version of Java that Tomcat is using from IBM jdk 1.4.1 to Sun jdk 1.6. Since then I get the following messages in the catalina.out file every 5 minutes or so: Mar 20, 2007 11:59:46 AM org.apache.commons.modeler

email and jboss

2007-03-20 Thread [EMAIL PROTECTED]
Does anyone have some sample code I might be able to look at and get email working on my site? I'm trying to do a simple feedback form, but I just don't see any examples using JBoss and tomcat & apache. Thanks in advance. B _

Re: can a web app discover its Service?

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > in fact you can even specify the system type as parameter to the build > script, without need to edit it in the properties file: [snip] > ant test war - builds the war file for the testsystem, prod war - the > productio

Re: can a web app discover its Service?

2007-03-20 Thread Leon Rosenberg
On 3/20/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ... I have ant scripts that build everything for me including WAR files for deployment. In my source repo, I have different configuration directories for each of dev, demo, and prod. In fact,

Re: can a web app discover its Service?

2007-03-20 Thread Mikolaj Rydzewski
Paul Singleton wrote: I want to deploy the same war into different (5.5) Services (e.g. "test" and "live"), and want it to discover where it is and behave differently. Is there a Tomcat-specific way to do this? JMX and MBeans come to mind. Is there a container-independent way of discovering co

Re: can a web app discover its Service?

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Paul Singleton wrote: > I want to deploy the same war into different (5.5) > Services (e.g. "test" and "live"), and want it to > discover where it is and behave differently. > > Is there a Tomcat-specific way to do this? > > Is there a contain

RE: can a web app discover its Service?

2007-03-20 Thread Raghupathy, Gurumoorthy
How about Setting up jndi variables ? Regards Guru --- Gurumoorthy Raghupathy Email : [EMAIL PROTECTED] Internal Extn : 2337 External Phone : 01483712337 Nielsen Book 3rd Floor Midas House 62 Goldsworth Road W

Re: Installing Tomcat as a Windows Service - JvmOptions & semicolons

2007-03-20 Thread Peter Lombardo
I tried using single quotes with no success unfortunately. If this could help anyone else, I was able to set the multiple path java.library.path for the tomcat service by manually setting the registry key with the windows reg utility: reg add "HKLM\SOFTWARE\Apache Software Foundation\Procrun 2.0

Re: Tomcat Admin and File Locks

2007-03-20 Thread NilsonParra
TECTED] > > > > __ Información de NOD32, revisión 2129 (20070320) __ > > Este mensaje ha sido analizado con NOD32 antivirus system > http://www.nod32.com > > > - To start a new top

can a web app discover its Service?

2007-03-20 Thread Paul Singleton
I want to deploy the same war into different (5.5) Services (e.g. "test" and "live"), and want it to discover where it is and behave differently. Is there a Tomcat-specific way to do this? Is there a container-independent way of discovering container-specific info like this? Paul Singleton --

Tomcat Admin and File Locks

2007-03-20 Thread Zach Calvert
I'm using Tomcat 5.5.23 and the Tomcat Admin 5.5.23 for managing my war files. For some reason, I can install a new war file with no problem. If I undeploy, and redeploy the same war file, the web becomes unavailable. I have discovered it is due to the fact that Tomcat Admin is not completel

Re: Logging

2007-03-20 Thread Kevin Gutch
I had planned on using commons logging.. Would you recommend log4j over commons logging. reno wrote: if yuo are using log4j, put a log4j.properties in your /WEB-INF/classes/ folder then, follow this nice tutorial http://www.vipan.com/htdocs/log4jhelp.html regards S. Hello, If I place a

Re: Tomcat + Cisco CSS Load-balancer configuration

2007-03-20 Thread Andrew Miehs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Why not just use source IP address based persistence? The CSS11501 is not very fast, and it will have a lot of work ripping apart the layer 7 parts of the http requests. If you do not have a lot of traffic, source based persistence should be adequat

Re: Logging

2007-03-20 Thread reno
if yuo are using log4j, put a log4j.properties in your /WEB-INF/classes/ folder then, follow this nice tutorial http://www.vipan.com/htdocs/log4jhelp.html regards S. > Hello, > > If I place a logging.properties in my context/WEB-INF/classes I seem to > get the correct logging information in my

RE: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Will Holmes
Chris, How do I know for certain that I didn't import into the Java installation's system-wide Keystore? I used the keytool command below to import the cert. I don't believe I imported my cert into the system-wide keystore but I am not 100% certain. keytool -import -alias tomcat -trustcacert

Tomcat + Cisco CSS Load-balancer configuration

2007-03-20 Thread Rigo, Jeff
I am working with a customer to setup load-balancing in a tomcat environment by way of Cisco CSS11501 load-balancing hardware. We are attempting to use the 'advance-balance cookieurl' method of Cisco load-balancing. This will check for a cookie in order to manage session stickiness, but if a user

Logging

2007-03-20 Thread Kevin Gutch
Hello, If I place a logging.properties in my context/WEB-INF/classes I seem to get the correct logging information in my log file. However, the output also seems to get the catalina.out. I really only want it in the context specific. Is there something else to configure to prevent it going to

Re: deploying problem

2007-03-20 Thread Rob Kirkbride
Deano, What does the log file have to say? Rob Deano!! wrote: to tell the truth i really dont truly know, when in the tomcat manager it says that it is running, but when i go into it i get that error message, i then went into full server status and when i go to my apps part its added a count t

Re: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Will, Will Holmes wrote: > I would be going from JDK version 1.4 to 1.5 or later. So it sounds like > I will have to generate a CSR for the new JDK version and I will have to > involve my CA by reissueing the cert. I am thinking correctly? So there

RE: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Will Holmes
Martin, I would be going from JDK version 1.4 to 1.5 or later. So it sounds like I will have to generate a CSR for the new JDK version and I will have to involve my CA by reissueing the cert. I am thinking correctly? So there is no way to reuse the keystore with the new JDK version? Thanks

Re: deploying problem

2007-03-20 Thread Deano!!
to tell the truth i really dont truly know, when in the tomcat manager it says that it is running, but when i go into it i get that error message, i then went into full server status and when i go to my apps part its added a count to the error count in the /faces/ part so i wondered if maybe there

Re: Session expiry

2007-03-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, Mike Quilleash wrote: > Does anyone know if there's a method for determining if the Session for > a user has expired since the last request? When a request comes in from a user who /did/ have a session, it should include a session identifier. I

Re: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Martin Gainty
Hi Will- Generate private key $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore /path/to/domainname.kdb then Generate the CSR $JAVA_HOME/bin/keytool -certreq -alias tomcat -keystore /path/to/keystore.kdb -file filename.csr so if you change $JAVA_HOME say from JDK 1.3 to JDK

Re: deploying problem

2007-03-20 Thread Rob Kirkbride
Deano, What is the specific error? Rob Deano!! wrote: Hi, yeah im creating a project named InterfacesHCI using netbeans 5.5 with visual web pack, now when running it locally on the machine with netbeans and using bundled tomcat it works fine, but when deploying the .war file to tomcat on my se

RE: Importing an existing SSL cert into a newer JDK version

2007-03-20 Thread Will Holmes
Does the JDK version that created the keystore file have a tie on it? If not all I would need to do is install the new JDK and change my Tomcat environment variables to point to the new JDK. Am I correct? Thanks again!! Will -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED]

deploying problem

2007-03-20 Thread Deano!!
Hi, yeah im creating a project named InterfacesHCI using netbeans 5.5 with visual web pack, now when running it locally on the machine with netbeans and using bundled tomcat it works fine, but when deploying the .war file to tomcat on my server it says its deployed it fine, but when trying to run

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread Mikolaj Rydzewski
David Kerber wrote: Mikolaj Rydzewski wrote: I'd deploy this library as a separate application (even on the same Tomcat) and access its interface by RMI, WS, or something like that. Wouldn't I need to rewrite my command-line and jni apps to do this? Probably ;-) I don't know what your lib

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread David Kerber
Mikolaj Rydzewski wrote: David Kerber wrote: I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app. What is the best way (place) to deploy this j

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread David Smith
Put it in the proper place for each app. IMHO a few copies is better than attempting to put it in only one place and then dealing with compatibility issues as the library is updated. --David David Kerber wrote: > No one has a suggestion about this? > > > David Kerber wrote: > >> This is on Windo

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread Mikolaj Rydzewski
David Kerber wrote: I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app. What is the best way (place) to deploy this jar? It appears that puttin

Re: Deploying libs for use both with Tomcat, and standalone apps

2007-03-20 Thread David Kerber
No one has a suggestion about this? David Kerber wrote: This is on Windows server 2003. I have a library (.jar file) that is used with 3 different apps: with my tomcat webapp, with a standalone command-line app, and with a jni package that provides a .dll for use with a windows gui app.

Re: Http to https and viceversa without session losing

2007-03-20 Thread Gregor Schneider
I don't see why you shouldn't be able to use the class java.net.URL with HTTPS, actually, it should work: Url url = new URL("https//www.yourweb.com"); HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); However, never have tried it myself since personally I believe that A

Re: Session expiry

2007-03-20 Thread Mikolaj Rydzewski
Mike Quilleash wrote: I can tell from this when the session expires but then I want to notify the user that was using that session next time they make a request. Maybe HttpSession.isNew()? -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature

RE: Session expiry

2007-03-20 Thread Mike Quilleash
Thanks for the reply. I can tell from this when the session expires but then I want to notify the user that was using that session next time they make a request. Rough sequence of events. 1. User browses to secure page. Filter intercepts, sees the Session does not contain the "login" object and

Re: Session expiry

2007-03-20 Thread Mikolaj Rydzewski
Mike Quilleash wrote: Does anyone know if there's a method for determining if the Session for a user has expired since the last request? Basically I have a Filter that does an "is logged in" check and redirects to a login page if the user is not logged in. This works fine but in the case of Ses

mod_jk "increase the backend idle connection timeout or the connection_pool_minsize"

2007-03-20 Thread Rob Kirkbride
Hi, I've recently taken over support of a system using mod_jk. This is a big website utilising 2 sites, 2 web & 3 app servers per site. each web server talking to 3 app servers The site takes millions of hits per day. I'm getting the above info message regularly (twice a minute) even in the nigh

Re: Possible JSTL/EL bug in 6.0.10

2007-03-20 Thread Gerald Holl
Ali Kian wrote: Hi Gerald, I wrote the example [1] please verify your web.xml and faces-config.xml with example [1] And make sure to remove all tld file from WEB-INF folder and also mare sure you delete old jstl.jar Ali, faces-config and web.xml are definitely valid. Old jstl jars are not pr