RE: Custom Realm - How to get the authenticated principal?

2009-03-03 Thread Ambarish Mitra
On 3/3/2009 7:57 AM, Ambarish Mitra wrote: > Goal: I have a web-app which I have protected with an external > authentication engine. To achieve this, I have written a custom valve which > sets a principal. I'm not sure you need a Valve. Why not just write a custom Realm (as you have done) and use

RE: How to set Java Memory heap size on Linux?

2009-03-03 Thread Caldarale, Charles R
> From: dOE [mailto:doep...@gmail.com] > Subject: How to set Java Memory heap size on Linux? > > I know in Windows this is done through the Registry > adding -Xms256m -Xmx768m. You should not be editing the registry in Windows; use the tomcat6w.exe program to manipulate the various JVM parameters

RE: URL Rewriting for implementing virtual hosts

2009-03-03 Thread Martin Gainty
you can let Apache handle those details http://httpd.apache.org/docs/2.0/vhosts/examples.html //supply your own IP and Port Listen 80 # This is the "main" server running on 172.20.30.40 ServerName server.domain.com DocumentRoot /www/mainserver

Security issues sending broadcast traffic.

2009-03-03 Thread dOE
Does anyone know of any security issues when sending broadcast traffic from a high security zone (firewall DMZ's) to a tomcat server located in a lower security zone? It is the higher security "writing" \ "accessing" the lower security so initial guesses are that this should be fine, but I like to

Re: How to set Java Memory heap size on Linux?

2009-03-03 Thread zhaoxueqing
in tomcat/bin/catalina.sh add a parameter into this file export JAVA_OPTS=-Xmx512m - Original Message - From: "dOE" To: "Tomcat User-List" Sent: Wednesday, March 04, 2009 10:11 AM Subject: How to set Java Memory heap size on Linux? > Tomct 6.0 > Red Hat EL 4 > > How can I set the J

How to set Java Memory heap size on Linux?

2009-03-03 Thread dOE
Tomct 6.0 Red Hat EL 4 How can I set the Java Memory heap for Tomcat? I know in Windows this is done through the Registry adding -Xms256m -Xmx768m. >From what I have read on the internet to do the same on a Linux system I need to add the following line to my ../tomcat/bin/catalina.sh fle? JAVA_O

URL Rewriting for implementing virtual hosts

2009-03-03 Thread uma_rk
We have a bunch of web applications packed into a single VM tomcat (6.0.14). I am looking to segrgating the contexts in distinct VMs based on IP address based virtual hosts. I assume that to keep this segregation transparent to the applications themselves, URL rewriting has to be incorporated (if

Re: Websphere / Apache similarities

2009-03-03 Thread Jess Holle
Just to be clear, there are a lot of "should" statements below and other cases that should use this key word. JSPs, servlets and filters /should /be portable between servlet engines supporting the same spec level. In most cases they are. There are, however, bugs and forgiving behaviors speci

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread David Smith
Stanley Wong wrote: > I took away the postgres jar file from the application/WEB-INF/lib > folder. > > Unfortunately, I still encounter the error. > > I look into the log files. The deployment seems successful. > > I tracked the errors for days, and still could not get a clue. > > Please help me

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/3/2009 2:07 PM, Taylan Develioglu wrote: > I can reproduce it on demand with our application, but I wouldn't know > how to create a post request that would stall, the servlet can stall the > response, but isn't processing of the request (

Re: Websphere / Apache similarities

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/3/2009 11:54 AM, André Warnier wrote: > - Websphere itself is a Java servlet server, unrelated to Tomcat despite > my mistaken impressions to the contrary, but implementing the same > servlet specification as Tomcat. I think this is impor

Re: [OT] Using jsp/serlvets to track clicking

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 3/3/2009 5:46 PM, Jonathan Mast wrote: > Also, I tried the response.sendRedirect("tel:5"); approach > recommended by Christopher and that resulted in a MalFormed URL error on the > phone. Hmm... are you sure that the "tel:" prefi

Re: Jk disable worker on status

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matteo, On 3/3/2009 12:32 PM, mturra wrote: > But the LB worker doesn't know and continue to send request to this tomcat. > I could use the session method for LB worker, but I have M apache httpd > server connected to N tomcat (full-meshed) and I thin

Re: [OT] Using jsp/serlvets to track clicking

2009-03-03 Thread Jonathan Mast
Will doing such make the user-agent behave like it has just clicked a link? Also, I tried the response.sendRedirect("tel:5"); approach recommended by Christopher and that resulted in a MalFormed URL error on the phone. thanks On Tue, Mar 3, 2009 at 1:56 PM, Juha Laiho wrote: > Jonathan

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Joe Wallace
Thanks, I tried this and so far it looks like it does what I need it to do. Tomcat runs as a windows service and I can manipulate multiple web apps with the Tomcat Manager without the file locking problem. It is interesting that Tomcat created a temp folder and deployed the webapp there, which

Re: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Gregor Schneider
Chuck, glad you're still my heroe ;) However, I see clearly now what went wrong: In Tomcat 4.1 there's a description about datasources: http://tomcat.apache.org/tomcat-4.1-doc/config/globalresources.html In there, there's a link to a JNDI-how-to: http://tomcat.apache.org/tomcat-4.1-doc/jndi-re

Re: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Len Popp
On Tue, Mar 3, 2009 at 16:53, Gregor Schneider wrote: > I just looked it up in our old server (vanilla download from > tomcat.apache.org, more info: > > Using CATALINA_BASE:   /home/tomcat/local/tomcat55/ > Using CATALINA_HOME:   /home/tomcat/local/tomcat55/ > Using CATALINA_TMPDIR: /home/tomcat/l

RE: tomcat + SSL

2009-03-03 Thread Caldarale, Charles R
> From: Rick Chisholm [mailto:rchish...@southlandonline.com] > Subject: tomcat + SSL > > I have a tomcat5.5 install on debian5 Real Tomcat, or a repackaged one? > Tomcat's lack of logging is killing me! There's no lack of logging in a real Tomcat... but if you're using a 3rd-party version, the

RE: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: ClassNotFoundException > org.apache.commons.dbcp.BasicDataSourceFactory > > In both directories ${CATALINA_HOME}/server/lib and > ${CATALINA_HOME}/common/lib I do not find a file tomcat-dbcp.jar. To protect the guilty (I suppos

Re: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Gregor Schneider
Hi Chuck, On Tue, Mar 3, 2009 at 10:08 PM, Caldarale, Charles R wrote: > > The commons-dbcp jar has been renamed and distributed as part of Tomcat as > far back as I can remember, at least since early 5.0 levels.  There was > certainly no change between 5.5 and 6.0 for this. Chuck, you're one

tomcat + SSL

2009-03-03 Thread Rick Chisholm
This has got to be a popular one... I have a tomcat5.5 install on debian5 - I used the keytool to generate a .keystore file in /etc/tomcat5.5 I've followed the SSL how-to, but when I restart tomcat port 8443 is nowhere to be found.  So now I've started with a barebones connector built from the

Re: non standard port question (resolved)

2009-03-03 Thread Steve
figured it out, am posting hopefully somebody can learn from this all my configs were in order, each tomcat was running good, tomcat1 8080 ajp 8009 tomcat2 8081 ajp 8010 tomcat3 8082 ajp 8011 however i was creating a template in tomcat1 (that also had a virt host of tomcat3) my cookies showed m

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Caldarale, Charles R
> From: Joe Wallace [mailto:j...@andar360.com] > Subject: RE: Run multiple web applications in Tomcat each as > an independent windows service question > > It says the web app is stopped but windows still holds on to > the files. Isn't Windows wonderful? (That's a rhetorical question.) You need

RE: non standard port question

2009-03-03 Thread Martin Gainty
all your HTTP connectors redirectPort to "8543" does http://localhost:8543 resolve? you have 2 HTTP connectors configured for the same port Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the o

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Caldarale, Charles R
> From: Joe Wallace [mailto:j...@andar360.com] > Subject: Re: Run multiple web applications in Tomcat each as > an independent windows service question > I have two applications in Tomcat and I want to run > each as its own windows service. Then you would have to run each webapp in its own instan

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
I took away the postgres jar file from the application/WEB-INF/lib folder. Unfortunately, I still encounter the error. I look into the log files. The deployment seems successful. I tracked the errors for days, and still could not get a clue. Please help me to give me some insights. Thank yo

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Joe Wallace
Thanks for the suggestion. I tried Tomcat's Manager-App with the apache-tomcat-6.0.18.exe running as a windows service. It says the web app is stopped but windows still holds on to the files. I tried stopping App1 with App2 still running and replacing a file in App1 but windows wouldn't let m

RE: ClassNotFoundException org.apache.commons.dbcp.BasicDataSourceFactory

2009-03-03 Thread Caldarale, Charles R
> From: Gregor Schneider [mailto:rc4...@googlemail.com] > Subject: Re: ClassNotFoundException > org.apache.commons.dbcp.BasicDataSourceFactory > > I've ported the Servlet from Tomcat 5.5 to Tomcat 6, and if I'm not > mistaken, there had been some re-naming and re-packaging of > commons-dbcp within

RE: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Peter Crowther
> From: Joe Wallace [mailto:j...@andar360.com] > I have two applications in Tomcat and I want to run each as > its own windows service. Do you want to run two Tomcat instances, each with its own set of ports? So one app might be running on a Tomcat on port 8080, another on port 8081? Or do you

Re: ClassNotFoundException org.apache.commons.dbcp.Ba sicDataSourceFactory

2009-03-03 Thread Gregor Schneider
Hi guys, I found the solution - my fault: If anyone's interested: within the context.xml of the servlet I had the following realm-specification. http://pgpkeys.pca.dfn.de:11371 - To unsubscribe, e-mail: users-unsubscr...@tom

Re: Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Gregor Schneider
I suggest you have a look at Tomcat's Manager-App. It doesn'tuse Windows-services but offers the possibility to start / stop a web-app, and I guess that's what you want: http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html rgds Gregor -- just because your paranoid, doesn't mean they're no

Run multiple web applications in Tomcat each as an independent windows service question

2009-03-03 Thread Joe Wallace
I have two applications in Tomcat and I want to run each as its own windows service. I have installed apache-tomcat-6.0.18.exe and it runs as a windows service. Stopping and starting the Tomcat windows service will also stop and start both App1 and App2. I want to be able to stop App1 without

Re: non standard port question

2009-03-03 Thread Steve
roger that i narrowed it down to the single instance of tomcat, having a redirect someplace this instance of tomcat is running on port 8180 (nothing else on that port) yet whenever i attempt to bring it up i get the redirect loop error message perhaps theres something in my server conf fil

ClassNotFoundException org.apache.commons.dbcp.Ba sicDataSourceFactory

2009-03-03 Thread Gregor Schneider
Hi guys, now I do have a question: Preface: Using CATALINA_BASE: /usr/local/tomcat-6.0.18 Using CATALINA_HOME: /usr/local/tomcat-6.0.18 Using CATALINA_TMPDIR: /usr/local/tomcat-6.0.18/temp Using JRE_HOME: /usr Server version: Apache Tomcat/6.0.18 Server built: Jul 22 2008 02:00:36 Se

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread David Smith
Stanley Wong wrote: > I have other application installed that do the direct JDBC connection. > > To simplify it, I have two applications in the Tomcat. > App1: Use the direct JDBC connection. > App2: Use the JNDI. > > Therefore App1 has the postgreSQL in its lib folder. > > Is it t

Re: Cannot create JDBC driver of class '' for connect URL 'null'Causedby: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Pid
Christopher Schultz wrote: > Paul, > > On 3/3/2009 11:49 AM, Paul Maxted wrote: >> Good call P! I tried connecting to the database from the command line >> and was not able to. > > I'm surprised that this was the error. Usually, you'll get a message > like "SQLException: Cannot connect to databas

Re: non standard port question

2009-03-03 Thread Rainer Jung
On 03.03.2009 20:18, Steve wrote: am running multiple tomcat instances on the same server first two are fine, third one has errors here are the configs server.xml Define a non-SSL HTTP/1.1 Connector on port 8083 port="8083" protocol="HTTP/1.1" redirectPort="8446" /> So that's only for on

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Pid
Stanley Wong wrote: > I have other application installed that do the direct JDBC connection. > > To simplify it, I have two applications in the Tomcat. > App1: Use the direct JDBC connection. > App2: Use the JNDI. > > Therefore App1 has the postgreSQL in its lib folder. > > Is i

Re: Is there a known Header limit in mod_jk (or bug)?

2009-03-03 Thread Rainer Jung
On 03.03.2009 20:12, fredk2 wrote: When I send a request to Tomcat via mod_jk I get the following error (code 413): Request Entity Too Large The requested resource /myapp/jsp/cookieshowvalue.jsp does not allow request data with GET requests, or the amount of data provided in the request exceeds

non standard port question

2009-03-03 Thread Steve
am running multiple tomcat instances on the same server first two are fine, third one has errors here are the configs server.xml Define a non-SSL HTTP/1.1 Connector on port 8083 port="8083" protocol="HTTP/1.1" redirectPort="8446" /> URIEncod

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
I have other application installed that do the direct JDBC connection. To simplify it, I have two applications in the Tomcat. App1: Use the direct JDBC connection. App2: Use the JNDI. Therefore App1 has the postgreSQL in its lib folder. Is it the issue that App2 fails to get

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Gregor Schneider
Taylan, just a thought: I do know that there is an issue when *downloading* data such as pdf etc. via IE over SSL. Therefore, and since otherb browsers don't seem to be affected, maybe it's another side-effekt of IE's SSL-*sic*-implementation? Rgds Gregor -- just because your paranoid, doesn't

Is there a known Header limit in mod_jk (or bug)?

2009-03-03 Thread fredk2
Hi, When I send a request to Tomcat via mod_jk I get the following error (code 413): Request Entity Too Large The requested resource /myapp/jsp/cookieshowvalue.jsp does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit. I to

RE: tomcat w/apr data lost in http post request?

2009-03-03 Thread Taylan Develioglu
The op suggested the payload was getting lost because the connection closed prematurely, but the post request continued to be processed without the request parameters. He also mentions a connection timeout being set too low in his connector settings. I figured this could be the case for us, but wi

Re: [OT] Using jsp/serlvets to track clicking

2009-03-03 Thread Juha Laiho
Jonathan Mast wrote: > I would like to know how to imitate the click of link in JSP or serlvet, in > order to track clicks. > > I have pages with links containing tel protocol URIs like this: > Click here to listen! > > I want to replace the above with something like this: > Click here to listen!

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread David Smith
Stanley Wong wrote: > My typo. The layout should look like this: > > |[tomcat home] > |- conf > |- server.xml > |- webapps > |- someApp (case IS important!) > |- META-INF > |- context.xml > |- (various jsps/static files) > |

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Caldarale, Charles R
> From: Stanley Wong [mailto:w...@pcigeomatics.com] > Subject: RE: FW: Cannot create JDBC driver of class '' for > connect URL 'null' > > My typo. The layout should look like this: Same comment still applies - there is no [tomcat_home]/common directory, and you shouldn't create one. - Chuck T

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
My typo. The layout should look like this: |[tomcat home] |- conf |- server.xml |- webapps |- someApp (case IS important!) |- META-INF |- context.xml |- (various jsps/static files) |- WEB-INF |- web.xml |

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Caldarale, Charles R
> From: Stanley Wong [mailto:w...@pcigeomatics.com] > Subject: RE: FW: Cannot create JDBC driver of class '' for > connect URL 'null' > > The layout looked like this, except I did place the > postgres driver in the lib directory. In additions, > I place the postgre driver in both [tomcat home]/lib

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
Yes. The layout looked like this, except I did place the postgres driver in the lib directory. In additions, I place the postgre driver in both [tomcat home]/lib and [tomcat home]/lib/common The full picture looks like below: |[tomcat home] |- conf |- server.xml |- webapps |

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread David Smith
Stanley Wong wrote: > Thank you. > > I can tell this is an error related to Tomcat/JNDI set-up, as I can make > a JDBC connection, as the codes state below. > > Class.forName("org.postgresql.Driver"); > String url = "jdbc:postgresql:testdb"; >

jvm benchmarks?

2009-03-03 Thread Anthony J. Biacco
Before I go reinventing some data, anybody have or know of any recent comparative performance data for running tomcat under sun jvm vs. oracle/bea jrockit jvm vs. ibm jvm? Thanx, -Tony --- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.

RE: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
Thank you. I can tell this is an error related to Tomcat/JNDI set-up, as I can make a JDBC connection, as the codes state below. Class.forName("org.postgresql.Driver"); String url = "jdbc:postgresql:testdb"; Properties props

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/3/2009 12:11 PM, Taylan Develioglu wrote: > Thanks for the thoughts Chris, but I found the cause. > > I had lowered the the keepalivetimeout setting to 10s because our > application polls in 2.5s intervals, pretty unexpected result (I fi

RE: Websphere / Apache similarities

2009-03-03 Thread Martin Gainty
Andre- let me know your thoughts on re-architecting to EJB JBoss is an all or nothing ..meaning JBoss needs god access to the ports or it wont startup Sun's App Server called GlassFish is alot more user-friendly with a very intuitive graphical admin interface for installing and configuring comp

How to reload tomcat project when using virtual host?

2009-03-03 Thread Yves Yu
Hi, all, I'm developing two projects, one of them need reload daily, it has been reloaded successfully. But when I deploy two project into a tomcat using virtual host, it cannot be reloaded properly. I have to restart tomcat day by day now. I think the problem is introduced by virtual host, anybod

Re: Cannot create JDBC driver of class '' for connect URL 'null'Causedby: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 3/3/2009 11:49 AM, Paul Maxted wrote: > Good call P! I tried connecting to the database from the command line > and was not able to. I'm surprised that this was the error. Usually, you'll get a message like "SQLException: Cannot connect to d

Re: FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread David Smith
Stanley Wong wrote: > Hi, > > I encounter a problem regarding setting up a JNDI Datasource at Tomcat > 6.0 with PostgreSQL 8.1 under Linux Suse 10.3 environment. This is the > exception: > > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC > driver of class '' for connect URL 'nul

Re: Jk disable worker on status

2009-03-03 Thread mturra
Christopher Schultz-2 wrote: > > Rainer, > > On 3/2/2009 11:07 AM, Rainer Jung wrote: >> I think a robust implementation would be something like: >> >> - a new state for temporarily disabling a node, except for sticky >> requests >> >> - a configurable probe request, that the watchdog thread

Re: Jk disable worker on status

2009-03-03 Thread Rainer Jung
Hi Chris, On 03.03.2009 17:22, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 3/2/2009 11:07 AM, Rainer Jung wrote: I think a robust implementation would be something like: - a new state for temporarily disabling a node, except for sticky requests - a co

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Taylan Develioglu
Thanks for the thoughts Chris, but I found the cause. I had lowered the the keepalivetimeout setting to 10s because our application polls in 2.5s intervals, pretty unexpected result (I figured 10s should be enough). I think the connection gets closed somewhere in the middle of the post request b

FW: Cannot create JDBC driver of class '' for connect URL 'null'

2009-03-03 Thread Stanley Wong
Hi, I encounter a problem regarding setting up a JNDI Datasource at Tomcat 6.0 with PostgreSQL 8.1 under Linux Suse 10.3 environment. This is the exception: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' I wonder if there are some ad

Re: Websphere / Apache similarities

2009-03-03 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/3/2009 10:57 AM, André Warnier wrote: Does anyone on this list have any knowledge of these, in particular their "compatibility/similarity" with respectively Tomcat v ? and Apache httpd v ? Tomcat's only real

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anand, On 3/3/2009 6:59 AM, Anand HS wrote: > However, I understand that the URL rewrite mechanism ends up losing any > parameters when a HTTP POST request is sent to my domain resource. If you're issuing a /redirect/, you'll need to use the 307 resp

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Taylan, On 3/3/2009 8:32 AM, Taylan Develioglu wrote: > That's a very interesting point there you make regarding the > content-type. I am not sure why we are using it that way because it's a > normal post that's being done. Could it be that this is ca

RE: Cannot create JDBC driver of class '' for connect URL 'null'Causedby: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Paul Maxted
Good call P! I tried connecting to the database from the command line and was not able to. Another difference between Windows and Linux it seems as the user was defined the same in both cases. Now I have copied the user to use host 'localhost' as well as '@' and it works. I have to say that the

Re: Websphere / Apache similarities

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 3/3/2009 10:57 AM, André Warnier wrote: > Does anyone on this list have any knowledge of these, in particular > their "compatibility/similarity" with respectively Tomcat v ? and Apache > httpd v ? Tomcat's only real "compatibility" question

Re: Cannot create JDBC driver of class '' for connect URL 'null'Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Pid
Paul Maxted wrote: > Hello again, > > Thanks for your swift responses - apologies for the length of the original, > but I see so many posts where people immediately ask for more details! > > David, I have tried dropping the validation query and I also tried rolling > back the version of mysql

Re: Jk disable worker on status

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 3/2/2009 11:07 AM, Rainer Jung wrote: > I think a robust implementation would be something like: > > - a new state for temporarily disabling a node, except for sticky requests > > - a configurable probe request, that the watchdog thread s

Re: Cannot create JDBC driver of class '' for connect URL 'null'Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread David Smith
Paul Maxted wrote: > Hello again, > > Thanks for your swift responses - apologies for the length of the original, > but I see so many posts where people immediately ask for more details! > > David, I have tried dropping the validation query and I also tried rolling > back the version of mysql-c

RE: Websphere / Apache similarities

2009-03-03 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Websphere / Apache similarities > > Does anyone on this list have any knowledge of these, > in particular their "compatibility/similarity" with > respectively Tomcat v ? WebSphere is a full Java EE container, whereas Tomcat is not; the clos

Re: Cannot create JDBC driver of class '' for connect URL 'null'Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, On 3/3/2009 11:00 AM, Paul Maxted wrote: > David, I have tried dropping the validation query and I also tried > rolling back the version of mysql-connector-java to 5.0.8 in case > the mismatch between that and the MySQL version was relevant. Ne

Re: Custom Realm - How to get the authenticated principal?

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ambarish, On 3/3/2009 7:57 AM, Ambarish Mitra wrote: > Goal: I have a web-app which I have protected with an external > authentication engine. To achieve this, I have written a custom valve which > sets a principal. I'm not sure you need a Valve. Why

Websphere / Apache similarities

2009-03-03 Thread André Warnier
Hi. This is posted both to the Apache httpd and Tomcat user lists. I am taking on a project for which, on the customer side, the installed HTTP-related software consists of (in the customer's words) "IBM Websphere 6.1 and the corresponding IBM webserver". Does anyone on this list have any kn

RE: Cannot create JDBC driver of class '' for connect URL 'null'Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Paul Maxted
Hello again, Thanks for your swift responses - apologies for the length of the original, but I see so many posts where people immediately ask for more details! David, I have tried dropping the validation query and I also tried rolling back the version of mysql-connector-java to 5.0.8 in case

Re: What happened to the Tomact 6 Monitor?

2009-03-03 Thread David Fisher
Hi, You'll still get the annoying UAC box, but that can't be avoided unless the program is digitally signed. A suggestion here - the Apache Tomcat project should start signing windows binaries. That way once the user trusts the source the UAC crap ought to disappear (or not be as ugly.)

Re: serializing session in DB

2009-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amit, On 3/2/2009 9:58 PM, Amit Chandel wrote: > I would love to see an example of such a filter. All you need to do is wrap the HttpSession object with one that does your database access. Something like the filter below. There are a few things missi

RE: What happened to the Tomact 6 Monitor?

2009-03-03 Thread Caldarale, Charles R
> From: Gary Marshall [mailto:gwj...@gmail.com] > Subject: Re: What happened to the Tomact 6 Monitor? > > So it appears that Vista and its security > measures may be the culprit here. Yes, I already explained that; did you read it? http://marc.info/?l=tomcat-user&m=123601722728285&w=2 > Anyway, a

Re: Cannot create JDBC driver of class '' for connect URL 'null' Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Pid
David Smith wrote: > Pid wrote: >> Paul Maxted wrote: >> >>> Hello, I need some help with my database access application. >>> >>> I am running Tomcat 6.0.16-6.4 installed from the OpenSUSE repositories. I >>> am trying to connect to MySQL 5.0.51a-27.2. >>> I have mysql-connector-java-5.1.7-bin.

Re: Cannot create JDBC driver of class '' for connect URL 'null' Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread David Smith
Pid wrote: > Paul Maxted wrote: > >> Hello, I need some help with my database access application. >> >> I am running Tomcat 6.0.16-6.4 installed from the OpenSUSE repositories. I >> am trying to connect to MySQL 5.0.51a-27.2. >> I have mysql-connector-java-5.1.7-bin.jar in the tomcat6/lib direc

Re: Cannot create JDBC driver of class '' for connect URL 'null' Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Pid
Paul Maxted wrote: > Hello, I need some help with my database access application. > > I am running Tomcat 6.0.16-6.4 installed from the OpenSUSE repositories. I am > trying to connect to MySQL 5.0.51a-27.2. > I have mysql-connector-java-5.1.7-bin.jar in the tomcat6/lib directory. > > I have not

Re: Cannot create JDBC driver of class '' for connect URL 'null' Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread David Smith
Paul Maxted wrote: > Hello, I need some help with my database access application. > > I am running Tomcat 6.0.16-6.4 installed from the OpenSUSE repositories. I am > trying to connect to MySQL 5.0.51a-27.2. > I have mysql-connector-java-5.1.7-bin.jar in the tomcat6/lib directory. > > I have not mo

Cannot create JDBC driver of class '' for connect URL 'null' Caused by: java.lang.NullPointerException at sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)

2009-03-03 Thread Paul Maxted
Hello, I need some help with my database access application. I am running Tomcat 6.0.16-6.4 installed from the OpenSUSE repositories. I am trying to connect to MySQL 5.0.51a-27.2. I have mysql-connector-java-5.1.7-bin.jar in the tomcat6/lib directory. I have not modified server.xml or context.xm

Re: Apache -> Tomcat connection problem

2009-03-03 Thread Daryl Stultz
On Thu, Feb 26, 2009 at 6:45 PM, Rainer Jung wrote: > All problems described starting with comment #9 have been fixed by Rüdiger > latest in revision 396050. Version 2.2.2 is revision 396066 so should > include those fixes. > > This is starting to look more like an Apache issue, maybe I should mo

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Taylan Develioglu
I would like to correct this, it seems to only happen with IE6/7.. maybe old firefox 2.0 > It happens with different clients indeed. > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-

Re: mod_jk and Named URLs

2009-03-03 Thread Rainer Jung
On 03.03.2009 13:39, Alexander Diedler wrote: Hello, There are a functionalliity, that I don´t understand. We have a Tomcat 6.0.18 installed with mod_jk connected to a IIS 5.0. The CMS uses namedURLs like http://[blabla]/company/menuitem1/ . In the Tomcat everything works fine but the IIS and mo

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Taylan Develioglu
Hi Andre, We are sure because we wrote the ajax application that sends the requests. Or in other words, they should be . (/dispatch does not get called any other way by the app). That's a very interesting point there you make regarding the content-type. I am not sure why we are using it that way

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Taylan Develioglu
Hi Gregor, It happens with different clients indeed. We have redirectport="443" to a another connector yes, but how could this be of influence on regular http requests? Is disableUploadTimeout a supported option for the apr connector? The documentation only mentions it under the HTTP connector.

Custom Realm - How to get the authenticated principal?

2009-03-03 Thread Ambarish Mitra
I on Tomcat 5.0.28 on Redhat Linux AS4. I have some doubts on creating (programming) a custom realm, and I could not find my answers after a google search. Goal: I have a web-app which I have protected with an external authentication engine. To achieve this, I have written a custom valve which s

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Pid
Tim Funk wrote: > I have not used it before. > > I can't imagine why it would not preserve POST requests. OP's probably confusing redirect with forward. Gotcha to look out for: you'll need to set the Host you're using to be the default Host in the Engine, or *.domain.com requests will go to the

Re: What happened to the Tomact 6 Monitor?

2009-03-03 Thread Gary Marshall
To all: Thank you for your time in assisting me here. I should mention that while I am having this issue with Tomcat 6 on my personal Vista machine at home I also installed Tomcat 6 on the XP box I use as a developer at work (don't tell them, ok? :) ). I do not have this issue with Tomcat 6 insta

mod_jk and Named URLs

2009-03-03 Thread Alexander Diedler
Hello, There are a functionalliity, that I don´t understand. We have a Tomcat 6.0.18 installed with mod_jk connected to a IIS 5.0. The CMS uses namedURLs like http://[blabla]/company/menuitem1/ . In the Tomcat everything works fine but the IIS and mod_jk don´t serve the following URLS : The men

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Tim Funk
I have not used it before. I can't imagine why it would not preserve POST requests. -Tim Anand HS wrote: Thanks Andre and Tim for the quick response. I do not have an apache server right now. So URL Rewrite tool seems like a good solution. However, I understand that the URL rewrite mechanism e

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread André Warnier
Hi. Why are you sure that both the examples you are providing are POST requests ? (I am not saying they are not, but the "request method" does not appear in the logs below, nor does the full URL). Also, referring to this http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.

Re: What happened to the Tomact 6 Monitor?

2009-03-03 Thread Serge Fonville
> > Wouldn't Windows or Tomcat complain if I did this and it was already > started? To make sure if tomcat is in fact running you can either check taskmanager or look inside services.msc. > To enable the Tomcat monitor, find the tomcat6w.exe program (not > tomcat6.exe) in Tomcat's bin director

RE: What happened to the Tomact 6 Monitor?

2009-03-03 Thread Peter Crowther
> From: Caldarale, Charles R [chuck.caldar...@unisys.com] > However, you will still get an annoying UAC dialog box at boot time > asking you to ok what you did; I don't know how to get rid of that > without turning off UAC completely. "Install a real operating system" seems to be the preferred ans

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Anand HS
Thanks Andre and Tim for the quick response. I do not have an apache server right now. So URL Rewrite tool seems like a good solution. However, I understand that the URL rewrite mechanism ends up losing any parameters when a HTTP POST request is sent to my domain resource. While I am right now down

Re: tomcat w/apr data lost in http post request?

2009-03-03 Thread Gregor Schneider
Just a shot from the hip: Have you tried disableUploadTimeout="true" within your connector? Since you're using SSL: Does it happen with different clients (Firefox, IE6,7,8) or just one specific client? Rgds Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp:

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread André Warnier
Tim Funk wrote: Doable : Yes Out of the Box: No You can write a Servlet filter to examine the incoming hostname and forward the request with the username prefix. In fact - you might need to write it : UrlRewriteFilter - http://tuckey.org/urlrewrite/ might do it for you. +1 In Tomcat and

Re: A question about redirecton from users.mydomain.com to mydomain.com/users

2009-03-03 Thread Tim Funk
Doable : Yes Out of the Box: No You can write a Servlet filter to examine the incoming hostname and forward the request with the username prefix. In fact - you might need to write it : UrlRewriteFilter - http://tuckey.org/urlrewrite/ might do it for you. -Tim Anand HS wrote: Hi, I have a

  1   2   >