Re: Tomcat 7 Cluster Issue

2012-03-15 Thread Pid
On 12/03/2012 22:14, Bruce Pease wrote: I am using a windows 2003 server 32 bit standard edition SP2 with IIS 6. I have an isapi_redirect.dll v.1.2.31 communicating to tomcat via ajp1.3. JDK version was 7.03, and tomcat version is 7.0.26. Tomcat is installed as a service using the

Re: Java 7 + Tomcat 6.0.35 + Win2k3 Problem

2012-03-15 Thread Pid
On 15/03/2012 01:08, pricyber wrote: I did nothing in the xml files, but in the embedded tomcat I did this instead. connector = embedded.createConnector((String)null, port, Http11NioProtocol.class.getName()); OK. 1. Can you set the address field manually, rather than letting the defaults

Re: Info on PermSize and MaxPermSize

2012-03-15 Thread André Warnier
Geet Chandra wrote: Version of Tomcat is 6.0.035 As http://6.0.035.As Tomcat is being shipped with product developed, we are providing command line utility,using the same utility users are of product allow to change the configurable parameters as per application type deployed in tomcat.We are

Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
I have a Spring/JPA application running on Tomcat 6.0.29 accessing two schemas of a single Oracle database. Each schema is configured as a seperate datasource. If we config the datasources as spring beans of com.mchange.v2.c3p0.ComboPooledDataSource type, the app works correctly. However if we

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Stevo Slavić
Hello Steven, Just a wild guess, you're probably using same credentials/account in context.xml for both data sources, while you're using different credentials/account in each Spring datasource bean. Kind regards, Stevo. On Thu, Mar 15, 2012 at 2:12 PM, Steven Xiong xcste...@yahoo.com wrote: I

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Konstantin Kolinko
2012/3/15 Steven Xiong xcste...@yahoo.com: I have a Spring/JPA application running on Tomcat 6.0.29 accessing two schemas of a single Oracle database. Each schema is configured as a seperate datasource. If we config the datasources as spring beans of

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Stevo, I checked many times, the users are different in context.xml Thanks From: Stevo Slavić ssla...@gmail.com To: Tomcat Users List users@tomcat.apache.org; Steven Xiong xcste...@yahoo.com Sent: Thursday, March 15, 2012 9:21:58 AM Subject: Re:

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Thanks Konstantin, Option 1) has been checked carefully, it is always clean/deploy. I will try option 2). From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 15, 2012 9:27:51 AM Subject: Re:

Re: Datasources in Spring-JPA-Tomcat 6.0.29

2012-03-15 Thread Steven Xiong
Hi Konstandin, It is due to incomplete cleanup: a stale copy with same user causes the issue. Thanks a lot Steven From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, March 15, 2012 9:27:51 AM Subject:

Re: Help with ROOT.xml and vhosting please? (fwd)

2012-03-15 Thread Dave Shevett
On 3/14/12 6:35 PM, Pid wrote: If it didn't start, that would explain why you can't get it to respond. What is the stacktrace? So, just to finish this up, I got everything working Just Peachy. The failed deployment was why the app was not showing up in the end, but getting the Host entries

Re: crash with mod_jk 1.2.33

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thad, On 3/15/12 9:39 AM, Thad Humphries wrote: Thanks. I hope I did this right. (Google is my friend, correct?) If not, please tell me what I should have done. Looks great. I'm not the best resource for debugging mod_jk crashes, but it definitely

Document base/ Document root

2012-03-15 Thread Michael Gesundheit
Hi, I have a problem which assume has to do with my document base.My environmet is Jboss.I keep getting the 404 page always saying the the page:AppName/whatever is not found.AppName is my servlet context. I'm unable to determine my document base.Question: Is the a way in which I can find what

RE: Tomcat, JSP and LDAP

2012-03-15 Thread Nick Williams
Just a thought ... Spring Security (http://static.springsource.org/spring-security/site/) is a fabulous framework for LDAP authentication AND authorization (we're using it currently with our Windows domain), doesn't require any changes to the app server or web server, and is relatively easy to get

Re: Document base/ Document root

2012-03-15 Thread Pid *
On 15 Mar 2012, at 15:40, Michael Gesundheit mi...@rocketmail.com wrote: Hi, I have a problem which assume has to do with my document base.My environmet is Jboss.I keep getting the 404 page always saying the the page:AppName/whatever is not found.AppName is my servlet context. I'm unable

Re: Tomcat, JSP and LDAP

2012-03-15 Thread Daniel Mikusa
Neil, I think the instructions here are a pretty good start. I've used them a few times to setup LDAP authentication and they have been helpful. https://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html#JNDIRealm In my opinion, the hardest part is to figure out the correct LDAP options and

Re: Tomcat, JSP and LDAP

2012-03-15 Thread Pid *
On 15 Mar 2012, at 16:23, Neil Munro neilmu...@gmail.com wrote: Hi all, I am trying to implement a means to authenticate a user on a web app via ldap, I have been trying for some time and am now intimately familiar with the files I need to edit, but not exactly how. I know that

Re: Help with ROOT.xml and vhosting please? (fwd)

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, On 3/15/12 11:05 AM, Dave Shevett wrote: On 3/14/12 6:35 PM, Pid wrote: If it didn't start, that would explain why you can't get it to respond. What is the stacktrace? So, just to finish this up, I got everything working Just Peachy. The

Re: Help with ROOT.xml and vhosting please? (fwd)

2012-03-15 Thread Pid *
On 15 Mar 2012, at 15:05, Dave Shevett shev...@homeport.org wrote: On 3/14/12 6:35 PM, Pid wrote: If it didn't start, that would explain why you can't get it to respond. What is the stacktrace? So, just to finish this up, I got everything working Just Peachy. The failed deployment was why

Re: Tomcat, JSP and LDAP

2012-03-15 Thread Neil Munro
On 15 March 2012 17:01, Pid * p...@pidster.com wrote: On 15 Mar 2012, at 16:23, Neil Munro neilmu...@gmail.com wrote: Hi all,         I am trying to implement a means to authenticate a user on a web app via ldap, I have been trying for some time and am now intimately familiar with the files

RE: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Nick Williams
Hmm... do you have complete control over the version of Tomcat that your clients use? Unfortunately, we do not have complete control over this. The JSP compiler uses Tomcat-specific classes and they are not part of any public API... Yea, I just looked at the sources for the compiled JSPs

RE: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Nick Williams
Terence, In addition to my previous reply to Chris, most of our JSPs are not SUPPOSED to be accessed as web pages, although some are meant to be. Also, unfortunately, all of them ARE accessible as web pages due to bad design (something I intend to change). Nick -Original Message- From:

Re: Document base/ Document root

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 3/15/12 11:40 AM, Michael Gesundheit wrote: I have a problem which assume has to do with my document base.My environmet is Jboss.I keep getting the 404 page always saying the the page:AppName/whatever is not found.AppName is my

Re: crash with mod_jk 1.2.33

2012-03-15 Thread Thad Humphries
On Thu, Mar 15, 2012 at 11:12 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thad, On 3/15/12 9:39 AM, Thad Humphries wrote: Thanks. I hope I did this right. (Google is my friend, correct?) If not, please tell me what I should

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick, On 3/15/12 1:21 PM, Nick Williams wrote: Hmm... do you have complete control over the version of Tomcat that your clients use? Unfortunately, we do not have complete control over this. This doesn't look good for you :( The JSP compiler

Re: Tomcat, JSP and LDAP

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Neil, On 3/15/12 1:05 PM, Neil Munro wrote: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://my.ldap.server.com; alternateURL=ldap://my.ldap.server.com; userPattern=uid={0},ou=my company

RE: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Nick Williams
It seems reasonable that Jasper could be separated from the core of Tomcat. We may consider attempting integrating Jasper into our product at a later date to see if that works. Not in this version of the product, however. Are you simply trying to reduce the first-access time of each JSP? The

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nick, On 3/15/12 2:29 PM, Nick Williams wrote: It seems reasonable that Jasper could be separated from the core of Tomcat. We may consider attempting integrating Jasper into our product at a later date to see if that works. Not in this version

Re: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tim, On 3/15/12 3:41 PM, Christopher Schultz wrote: Gotcha. Please tell me you are using the Tomcat precompiler and not just deploying the webapp and trying to hit all of the URLs. Tomcat has a precompiler for (I believe) all currently-supported

RE: Precompile JSPs, avoid thousands of servlets?

2012-03-15 Thread Nick Williams
Please tell me you are using the Tomcat precompiler We didn't used to be doing ANY JSP precompilation, but now we are precompiling during our continuous integration build using JspC and ANT. We're still shipping uncompiled JSPs, but at least we're verifying everything at build time now. We

Re: Tomcat, JSP and LDAP

2012-03-15 Thread Pid *
On 15 Mar 2012, at 17:06, Neil Munro neilmu...@gmail.com wrote: On 15 March 2012 17:01, Pid * p...@pidster.com wrote: On 15 Mar 2012, at 16:23, Neil Munro neilmu...@gmail.com wrote: Hi all, I am trying to implement a means to authenticate a user on a web app via ldap, I have been

Re: Socket Error in tomcat, white screen in browser

2012-03-15 Thread morciuch
I had similar problem on Windows Server 2008. After some research, I added the following JVM option to make it work: -Djava.net.preferIPv4Stack=true -- View this message in context: http://tomcat.10.n6.nabble.com/Socket-Error-in-tomcat-white-screen-in-browser-tp2053737p4622960.html Sent from

Writing a custom resource factory

2012-03-15 Thread Michael-O
Hi folks, I'd like to write a custom ldap resource factory as same as a data source factory. The getObjectInstance method shall return InitialDirContext object. I have written a mock factory and noticed that the output is cached by Tomcat. So the object is created only once (same id in

How to specify not using a keystoreFile in server.xml when using a custom keystore?

2012-03-15 Thread Newel, David
Hi, I'm experiencing a problem with creating an SSL Connector in Tomcat 7.0.26. We intend to use a database-based keystore, which means that we are using a custom-made Provider which does not use the 'keystoreFile' tag. To try to prevent Tomcat from trying to open a file we specify the

Re: Socket Error in tomcat, white screen in browser

2012-03-15 Thread Pid *
On 15 Mar 2012, at 20:23, morciuch mark_orci...@ngsltd.com wrote: I had similar problem on Windows Server 2008. After some research, I added the following JVM option to make it work: -Djava.net.preferIPv4Stack=true A thread that's been dormant for 2 whole years lurches back into life... p

Re: How to specify not using a keystoreFile in server.xml when using a custom keystore?

2012-03-15 Thread Konstantin Kolinko
2012/3/16 Newel, David david.ne...@pearson.com: Hi, I'm experiencing a problem with creating an SSL Connector in Tomcat 7.0.26. We intend to use a database-based keystore, which means that we are using a custom-made Provider which does not use the 'keystoreFile' tag. To try to prevent

Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
I've implemented my own org.apache.catalina.loader.WebappLoader. It consults a bunch of JARs held in the file system outside of the WAR. One of those outside JARs contains a custom JSP tag. When attempting to compile the JSP, Jasper fails to find it. I'm getting this:

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Konstantin Kolinko
2012/3/16 Johannes Ernst jer...@netmesh.us: I've implemented my own org.apache.catalina.loader.WebappLoader. It consults a bunch of JARs held in the file system outside of the WAR. One of those outside JARs contains a custom JSP tag. When attempting to compile the JSP, Jasper fails to find

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
On Mar 15, 2012, at 16:50, Konstantin Kolinko wrote: 2012/3/16 Johannes Ernst jer...@netmesh.us: I've implemented my own org.apache.catalina.loader.WebappLoader. It consults a bunch of JARs held in the file system outside of the WAR. One of those outside JARs contains a custom JSP tag.

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Konstantin Kolinko
2012/3/16 Johannes Ernst jer...@netmesh.us: On Mar 15, 2012, at 16:50, Konstantin Kolinko wrote: 2012/3/16 Johannes Ernst jer...@netmesh.us: I've implemented my own org.apache.catalina.loader.WebappLoader. It consults a bunch of JARs held in the file system outside of the WAR. One of

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
On Mar 15, 2012, at 17:38, Konstantin Kolinko wrote: Moreover Jasper has to pass a classpath to an external Java compiler (ecj or javac). The classpath is constructed and passed to Jasper as String. Could you point me to where in the code it does this? I was looking for invocations of

Re: Info on PermSize and MaxPermSize

2012-03-15 Thread Geet Chandra
On Thu, Mar 15, 2012 at 6:05 PM, André Warnier a...@ice-sa.com wrote: Geet Chandra wrote: Version of Tomcat is 6.0.035 As http://6.0.035.As Tomcat is being shipped with product developed, we are providing command line utility,using the same utility users are of product allow to change the

info regarding automatic restart of webapps when modifying $CATALINA_HOME/conf/web.xml

2012-03-15 Thread Mark DeSpain
Greetings! Just trying to do some research regarding a behavior my team observed today. We're using some revision of Tomcat 7.0... I don't recall the specific version, but I can look it up if it is relevant. Apparently when someone modifies $CATALINA_HOME/conf/web.xml, Tomcat will reload all