Re: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread monesseldeur
Thank you both for the very comprehensible explanation. So I followed the steps awarnier suggested: (0) stopped banging the head and had a good cup of coffee =) 1. Looked at the event logs ==> found nothing 2. Checked the option 'Interact with desktop' with the local system user ==> my batch f

Filter versus Valve

2009-02-11 Thread Jake Vang
I've been looking for a way to modify my request header. I found that implementing javax.servlet.Filter is the way to go. However, I noticed that once after I got my Filter implementation working, my Valve is no longer reached (I created my own Valve subclassing org.apache.catalina.valves.ValveBase

Re: nio connector configuration

2009-02-11 Thread Peter Warren
Thanks for the tips. Very helpful. >> I also get the warning when trying to use keepAliveTimeout. >> Is this property available for the nio connector? > > No; it's only listed under the older connector (the one labeled "Standard > Implementation" that then somewhat ambiguously refers to HTTP).

Re: Trouble with cluster and JMX

2009-02-11 Thread Eric B.
"Filip Hanik - Dev Lists" wrote in message news:49937f4b.9050...@hanik.com... > sure turn on > > org.apache.catalina.ha.level = FINE > org.apache.catalina.tribes.level = FINE > > in logging.properties > > however, regular membership discovery over multicast show up even without > these entries >

RE: nio connector configuration

2009-02-11 Thread Caldarale, Charles R
> From: Peter Warren [mailto:tomcat.subscript...@gmail.com] > Subject: nio connector configuration I can't answer your real questions, but here's a bit for your minor ones. > the acceptorThreadPriority and pollerThreadPriority are > set using ints because I get the following warnings in the > cat

nio connector configuration

2009-02-11 Thread Peter Warren
Looking for nio configuration tips for 6.0.18... I have an ajax app that uses a single socket connection for sending standard http requests and receiving responses, and another socket connection to listen via comet for messages pushed out by the server. A comet timeout is generated every 50 second

Re: comet end vs. client_disconnect

2009-02-11 Thread Peter Warren
> CLIENT_DISCONNECT is only used a subtype of ERROR > and that happens when the socket is closed from the client side When a client disconnects (i.e. socket is closed from the client side), I see an END event on both Windows and Ubuntu. I expected an ERROR event with a subtype of CLIENT_DISCONNEC

Re: comet end vs. client_disconnect

2009-02-11 Thread Filip Hanik - Dev Lists
Peter Warren wrote: How do I distinguish between a comet END event generated due to a client disconnect and an end event generated for some other reason? I'm using tomcat 6.0.18 with the nio connector. On both windows xp sp3 and ubuntu 8.10, I'm seeing END events generated when a client disconn

RE: Tomcat installation for Flyswatter

2009-02-11 Thread Caldarale, Charles R
> From: AdamSives [mailto:a.si...@unsw.edu.au] > Subject: Tomcat installation for Flyswatter > I'm getting stuck with the Tomcat part... Care to tell us what version of Tomcat you're using? While you're at it, tell us what JRE/JDK you're using, and what platform you're running on. Before attem

Re: Trouble with cluster and JMX

2009-02-11 Thread Filip Hanik - Dev Lists
sure turn on org.apache.catalina.ha.level = FINE org.apache.catalina.tribes.level = FINE in logging.properties however, regular membership discovery over multicast show up even without these entries did you mark your webapp Filip Eric B. wrote: "Filip Hanik - Dev Lists" wrote in message

RE: strange problem w/ connection pool and Oracle

2009-02-11 Thread Caldarale, Charles R
> From: john.c.cartwri...@noaa.gov [mailto:john.c.cartwri...@noaa.gov] > Subject: strange problem w/ connection pool and Oracle > > Cause: java.lang.ClassCastException: oracle.sql.STRUCT cannot > be cast to oracle.sql.STRUCT This is a classic symptom of having a class file loaded by two different

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread André Warnier
monesseldeur wrote: [...] Ok, stop banging your head for a moment, get a cup of coffee, relax, and let's do this systematically. The wisdom is in the lotus. I am no great Tomcat expert, but there are some practical things I know about running services under Windows. First, have a look at t

strange problem w/ connection pool and Oracle

2009-02-11 Thread John . C . Cartwright
Hello All, I'm having a rather strange problem using Oracle-specific types obtained from a connection pool defined my my context.xml. I'm reading the ResultSet w/ getObject, but then when I try to cast the Object to the correct type, I see: Cause: java.lang.ClassCastException: oracle.sql.STRUCT

Tomcat installation for Flyswatter

2009-02-11 Thread AdamSives
My company needs to have a good look at this as a way of tracking our project issues and problems etc! I'm trying to install flyswatter as a means of doing so, but I'm getting stuck with the Tomcat part... the instructions say --"Add the following line to the configuration file within the node:"

RE: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread Caldarale, Charles R
> From: monesseldeur [mailto:raymondesseld...@gmail.com] > Subject: Re: Problems with Tomcat as service on Windows Server 2003 > > I use a local admin or even a domain admin. Both have print > priveleges. But they may not have network access privilege. > And they both certainly can run batch-file

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread monesseldeur
I use a local admin or even a domain admin. Both have print priveleges. And they both certainly can run batch-files to start eg. the calculator. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > monesseldeur, > > On 2/11/2009 4:58 PM, monesseldeur wrote: >

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread monesseldeur
I use a local admin or even a domain admin. Both have print priveleges. And they both certainly can run batch-files to start eg. the calculator. Christopher Schultz-2 wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > monesseldeur, > > On 2/11/2009 4:58 PM, monesseldeur wrote: >

Re: Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 monesseldeur, On 2/11/2009 4:58 PM, monesseldeur wrote: > I made a small Java web-application which prints pdf-files - on-demand - on > the server. > > Everything went well on my dev environment, but not when I deployed the > application on the Tomca

Re: [OT] trouble with url rewrite

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carol, On 2/11/2009 12:23 PM, Carol Cheung wrote: > I'm trying to user UrlRewrite for the following task: Note that this is technically off-topic. UrlRewrite is often recommended by users of this list, but nor supported by them. That's what the autho

Problems with Tomcat as service on Windows Server 2003

2009-02-11 Thread monesseldeur
Hi all, I made a small Java web-application which prints pdf-files - on-demand - on the server. Everything went well on my dev environment, but not when I deployed the application on the Tomcat server in production. The Tomcat server is started as a service on a Windows 2003 Server. I was unabl

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 2/11/2009 12:13 PM, Gregor Schneider wrote: > I very well know this, however, SecurityFilter for me (or our specific > situation here) has a showstopper since it does not support Tomcat's > SingleSignOn-feature, if I'm not mistaken. > If I

Re: Deadlock situation detected/avoided with jk_log_lock

2009-02-11 Thread fredk2
Many thanks for your detailed reply. I looked further at the bug numbers you posted... a couple seem significant and happen to be patched on my test server (137111-07). In a couple of my test runs with "AcceptMutex pthread" trailed the tests with sysvsem, but not conclusively. However, contrary t

comet end vs. client_disconnect

2009-02-11 Thread Peter Warren
How do I distinguish between a comet END event generated due to a client disconnect and an end event generated for some other reason? I'm using tomcat 6.0.18 with the nio connector. On both windows xp sp3 and ubuntu 8.10, I'm seeing END events generated when a client disconnects and for other sit

Re: Why is my page repeatedly invoking itself?

2009-02-11 Thread Pid
Using my special powers of internetelepathy, I will guess the code contents of your page and diagnose the problem... Ommm [there will be a short delay while this occurs] p Jonathan Mast wrote: > Here's my setup: > Java 1.4.2 > Tomcat 5.5.17 > Windows XP > I'm developing in NetBeans 6.5 (

trouble with url rewrite

2009-02-11 Thread Carol Cheung
I'm trying to user UrlRewrite for the following task: If the user types http://localhost.whatever.com:8080/first/ I want the url redirected to http://localhost.whatever.com:8080/second/here/user/index.jsp, but the url that the user sees is still http://localhost.whatever.com:8080/first/ When I g

Why is my page repeatedly invoking itself?

2009-02-11 Thread Jonathan Mast
Here's my setup: Java 1.4.2 Tomcat 5.5.17 Windows XP I'm developing in NetBeans 6.5 (which is invoking Tomcat) The page just reads from a database and stuffs the results into a table. I noticed that the page was taking forever to load, so i placed logging statements in it, at the beginning of the

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Gregor Schneider
Chris, On Wed, Feb 11, 2009 at 5:52 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Note that securityfilter implements the feature you describe, though it > is separate from Tomcat's container-managed authentication and > authorization. It is also implemented

Re: Weblogic library and Tomcat

2009-02-11 Thread Mark Thomas
Christopher Schultz wrote: > Mark, > > On 2/11/2009 11:15 AM, Mark Thomas wrote: >> In this case your classes are pinned into memory by the following reference >> chain: > >> DriverManager > JDBC driver > webapp classloader > webapp classes > >> Since you created this by calling DriverManager.r

Tomcat 5.0.30 - Session Storage?

2009-02-11 Thread memblin
I see the PersistenceManager + Filestore/JDBCStore as an option but I see certain places that PersistenceManager is experimental and does not keep sessions completely up to date. I am fairly new to Tomcat, most of my past experience with sessions has been with PHP sessions and normally we would

Re: Weblogic library and Tomcat

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 2/11/2009 11:15 AM, Mark Thomas wrote: > In this case your classes are pinned into memory by the following reference > chain: > > DriverManager > JDBC driver > webapp classloader > webapp classes > > Since you created this by calling Drive

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 2/11/2009 10:17 AM, Gregor Schneider wrote: > I'll be on the Hackation during the ApacheConEurope in March and will > provide a small piece of code there, whis is basically a LoginValve > doing the following: > > - You can customize the ur

Re: certificate problem in firefox 3.05

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marko, On 2/11/2009 10:15 AM, Marko Sacher wrote: > It is working now! > > The problem is solved for me but I think it is still a good idea to make FF3 > accept the certificates I posted before with DSA signature. Please stick with the bugzilla bug;

Cluster doesn't replicate

2009-02-11 Thread Eric B.
>> also, what could mean that it doesn't work, would be that multicast is >> not working for you, and you need to enable multicast. > > I've ensured that multicast is enabled. I've added the multicast route to > the routing tables. I've even checked my multicast route between 2 > machines by p

Re: How to exclude some classes to being serialized in sharing session with clustered tomcats?

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stanimir, On 2/11/2009 10:10 AM, Stanimir Komitov wrote: > when the application is restarted, the session scoped beans are > serialized on stop and restored on requesting the same session after > start, but when the class is deserialized, transient fi

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 2/11/2009 10:40 AM, lynckmeister wrote: > SessionScope.get(String, ObjectFactory) line: 90 > DefaultListableBeanFactory(AbstractBeanFactory).doGetBean(String, Class, > Object[], boolean) line: 298 > DefaultListableBeanFactory(AbstractBeanF

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Gregor Schneider
On Wed, Feb 11, 2009 at 4:43 PM, lynckmeister wrote: > > Hi Gregor, > > I didnt get it. Your writing a peace of code wich lets me custmize the url > or page wich is called if a sessiontimeout occurs? > Nope. What the Valve does, ist the following: If a session times out, usually nothing is happe

Re: Weblogic library and Tomcat

2009-02-11 Thread Pieter Temmerman
Chuck, Mark, Many thanks to both. I'll give it a try. Btw, I'm quite sure the problem is located in the weblogic.jar library, as 2 other developers (working on different projects) already told me some similar problems with their app being reloaded. Anyway, time will tell. Cheers, Pieter On We

Re: Setting Up Tomcat 6 on Ubuntu 8.10

2009-02-11 Thread DSV
You need to run the setup script tomcat6-instance-create to create an instance of Tomcat that you can administer and run. Lex Man wrote: > > I have installed tomcat 6 through the Ubuntu synaptic package manager but > I am having trouble setting it up. > > Using the line: > > sudo /usr/share/

RE: TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Pieter Temmerman
Damn Chuck, good catch. On Wed, 2009-02-11 at 09:52 -0600, Caldarale, Charles R wrote: > > From: Gustaf Cele [mailto:gustaf.c...@webstep.se] > > Subject: TC6 gives ArrayIndexOutOfBoundsException when > > writing large headers > > > > ALLVARLIG: An exception or error occurred in the container > > d

Re: Weblogic library and Tomcat

2009-02-11 Thread Mark Thomas
Pieter Temmerman wrote: > Is there any documentation I can read to understand this process better, > or do I rather have to digg into the source code to get a better picture > of all these Tomcat internals? > I'm very interested in understanding how all this works, because at the > end of the day,

RE: Weblogic library and Tomcat

2009-02-11 Thread Caldarale, Charles R
> From: Pieter Temmerman [mailto:ptemmerman@sadiel.es] > Subject: Re: Weblogic library and Tomcat > > But why aren't my classes unloaded when I undeploy a webapp? Because something at a higher level in the classloader hierarchy is hanging on to a reference to your webapp's classes (or classlo

Re: Weblogic library and Tomcat

2009-02-11 Thread Pieter Temmerman
Hi Mark, > You are on the right track with a profiler. I use (and highly recommend) > YourKit. I get a free copy as an Apache developer for investigating Tomcat > related issues but it is reasonably priced and I have bought several copies > for > different projects over the years. It usually retu

RE: TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Caldarale, Charles R
> From: Gustaf Cele [mailto:gustaf.c...@webstep.se] > Subject: TC6 gives ArrayIndexOutOfBoundsException when > writing large headers > > ALLVARLIG: An exception or error occurred in the container > during the request processing > java.lang.ArrayIndexOutOfBoundsException: 8192 You need to enlarge t

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread lynckmeister
Hi Gregor, I didnt get it. Your writing a peace of code wich lets me custmize the url or page wich is called if a sessiontimeout occurs? that would be interessting, but I cant believe that there is no common way to handle such a problem ... what do i afford to use it? I need to recompile the to

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread lynckmeister
>Can you give me more of the stack trace? Sure, here we go : SNUserSessionUtil.SNUserSingletonInit() line: 53 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39 DelegatingMethodAccessorI

Re: [OT] Weblogic library and Tomcat

2009-02-11 Thread Pieter Temmerman
Thanks André. Let's say I'm a quick learner :-) On Wed, 2009-02-11 at 13:35 +0100, André Warnier wrote: > Pieter Temmerman wrote: > [...] > > Hear, hear. > Nothing to do with the problem at hand, and I cannot help with that, but > I believe this to be sufficiently remarkable as a post, to be si

Re: Trouble with cluster and JMX

2009-02-11 Thread Eric B.
"Filip Hanik - Dev Lists" wrote in message news:499242de.2090...@hanik.com... > log looks good, the warning could be that you are using an old > configuration option > take a look at > > http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html > > also, what could mean that it doesn't work, wo

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 2/11/2009 9:32 AM, lynckmeister wrote: >> Exactly where? > > Im writing this in a Sigelton bean wich is initialized via spring with the > postconstruct > paramenter. it seems that this is to late, what do you suggest ? maybe a > special fi

TC6 gives ArrayIndexOutOfBoundsException when writing large headers

2009-02-11 Thread Gustaf Cele
I've run into an error which may be either a bug or the result of a misconfiguration. When I try to set a large cookie, I get the following error: 2009-feb-11 15:56:00 org.apache.catalina.connector.CoyoteAdapter service ALLVARLIG: An exception or error occurred in the container during the requ

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Gregor Schneider
To the OP: If you can hold it for a while: I'll be on the Hackation during the ApacheConEurope in March and will provide a small piece of code there, whis is basically a LoginValve doing the following: - You can customize the url Tomcat shall call if authentication times out - Since a valve can

Re: certificate problem in firefox 3.05

2009-02-11 Thread Marko Sacher
It is working now! The first problem seems to be that FF3 has a problem with DSA signature: https://bugzilla.mozilla.org/show_bug.cgi?id=452712 The second problem was that my installed Java JRE had a keytool which was not able to combine the option -keyalg RSA and -sigalg SHA1withRSA correctly. I

Re: How to exclude some classes to being serialized in sharing session with clustered tomcats?

2009-02-11 Thread Stanimir Komitov
Ok, I`m using jsf and have managed beans with session scope and properties other managed beans. Most of them have application scoped beans references as properties, which makes connection to DB...and... these fields are defined as transient to prevent serialization. eg. class TestBean implements S

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread lynckmeister
dear christoph, hope that this is not private now , i was sure, that i sent the last one also to the list... anyway ... again thanks for you help ... i copied now all the gode as desired and hope that this will help ;) >ou won't really be able to tell if the user is "coming" from the logi

Re: certificate problem in firefox 3.05

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marko, On 2/11/2009 3:54 AM, Marko Sacher wrote: > I think I have the following problem: > > https://bugzilla.mozilla.org/show_bug.cgi?id=441321 > > I made a report there. Excellent. Please followup with them (there's already a question about your

Re: Fw: Still trying to get Tomcat 6 to work

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michel, On 2/11/2009 7:35 AM, michel wrote: > The only other problem I see is that JK has to look at different ports > before it binds to anything but I assume that it just means it takes a > bit longer to start but that's all. No. JK doesn't look at

Re: Apache/mod_jk serves random files from tomcat

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yuval, On 2/11/2009 1:56 AM, Yuval Perlov wrote: > What leads me to believe this is unrelated to my application code is > that restarting apache makes the problem go away. So, when your site goes crazy, a simple httpd-bounce does the trick? No Tomcat

Re: Tomcats Sessions not getting released

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sudip, On 2/11/2009 12:21 AM, sudip pattanayak wrote: > Actually our design structure is such that we allow just one session > for any user. I understand. > So when if a user is logged in any other system or he has not logged > off the previous inst

Re: Tomcat Realm Auto-Relogin after Session-Timeout Problem

2009-02-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Please keep all discussions on the list. On 2/11/2009 8:08 AM, lync...@gmx.de wrote: > First, I did what you suggested and set a Key value pair in the > session map. in the login phase im trying to read this value to see > if the user is comin

Win32/64 versions of Tomcat

2009-02-11 Thread André Warnier
Hi. This is not a critic/complaint, more of a question/suggestion to whoever is in charge of this. Is there a particular reason why the Tomcat 5/6 Windows version does come in two separate packages (a zip and a service installer) ? Since they are destined both for Windows, could not both be p

Re: Weblogic library and Tomcat

2009-02-11 Thread Mark Thomas
Pieter Temmerman wrote: > First of all, I'm not sure how I can figure out where the references to > the prior instances are being maintained, and secondly, I don't know how > to clean them up (both are closely related if you ask me :-) ) You are on the right track with a profiler. I use (and high

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-11 Thread Filip Hanik - Dev Lists
you'd write it yourself for example, configure CATALINA_HOME, CATALINA_BASE, TOMCAT_USER and CATALINA_PID and to start you would do start() { isrunning if [ $? -eq 0 ]; then echo "Tomcat is already running: PID=$PID" return 1 fi if [ -f $CATALINA_BASE/b

Re: [OT] Weblogic library and Tomcat

2009-02-11 Thread André Warnier
Pieter Temmerman wrote: [...] Hear, hear. Nothing to do with the problem at hand, and I cannot help with that, but I believe this to be sufficiently remarkable as a post, to be singled out : - it is polite - it is to the point - it provides all the necessary information (platform, Tomcat versi

Re: Fw: Still trying to get Tomcat 6 to work

2009-02-11 Thread michel
Chris, I removed "address" and changed back to (and will fix the security problem here) "" The only other problem I see is that JK has to look at different ports before it binds to anything but I assume that it just means it takes a bit longer to start but that's all. I am starting to unde

Re: Transfer all HttpSessions from one cluster node to another

2009-02-11 Thread nlif
Filip, I've got a basic implementation of this. Since I didn't want to change Tomcat code, this is not the most elegant design. Here's what I've done: I created a ManualFailoverManager class, which extends StandardManager. This is a copy of the BackupManager, with these changes: 1) In the req

Weblogic library and Tomcat

2009-02-11 Thread Pieter Temmerman
Hello List, A colleague of mine is having an issue with his application deployed in a Tomcat 5.5.27 (jdk1.5.0_15) on a Debian Linux. The application makes a connection to service running on a WebLogic server. Therefor, he needs to include the weblogic.jar library in his application. When redeplo

Re: certificate problem in firefox 3.05

2009-02-11 Thread Marko Sacher
Thank you Chris for your answer, I think I have the following problem: https://bugzilla.mozilla.org/show_bug.cgi?id=441321 I made a report there. > Marko, > > On 2/10/2009 9:53 AM, Marko Sacher wrote: > > I have a problem with a certificate from a CA. The certificate of the CA > > is included b

Nullpointer in StandardHostValve

2009-02-11 Thread Cybexion
Hello, in my tomcat logs (6.0.18) I can see the exception as shown below. Anyone having an idea? Some background: I have custom 'file_not_found.html' which is stored in WEB-INF dir. At the end of my my web.xml I have somethin like this 404 /file_not_found.html Looks that this is