Looking For Tomcat5 JK Doc
tomcat user, I've been looking for the document to configure AJP connecting Tomcat 5.0.7 with Apache 2.0.47. The on-line JK Documentation link keep referring me to the binary distribution page of mod_jk 1.2.5 without the configuration document. I've also read tons of helpful pages for the previous versions of Tomcat from the google search and still unable to get the AJP right. If someone has configured the Tomcat 5.0.7 + Apache 2.0.47 + mod_jk 1.2.5 successfully, please point me the direction for obtaining the right configuration documentation. Thanks, SC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Fwd: Struts - Parsing error processing resource path]
Original Message Subject: Struts - Parsing error processing resource path Date: Tue, 04 Nov 2003 10:13:20 +0530 From: Vijaykumar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Hi all, I am a newbie in struts. I am using Tomcat 4.0.1, I get the following error message while starting the Tomcat D:\jakarta-tomcat-4.0.1\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;d:\jdk1.3.1\lib\tools.jar Using JAVA_HOME: d:\jdk1.3.1 Starting service Tomcat-Standalone Apache Tomcat/4.0.1 [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true [INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.action.ActionResources', returnNull=true [ERROR] ActionServlet - -Parsing error processing resource path java.lang.NullPointerExc eption at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:941) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:465) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3384) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.start(StandardHost.java:612) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) Starting service Tomcat-Apache Apache Tomcat/4.0.1 can anyone help me plz. Thanks, -Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with [EMAIL PROTECTED] http://shopnow.netscape.com/
Re: xhtml and Internet Explorer
Well, not necessarily unreadable, just different ;-) I usually play with the tag delimiters to allow some readability. For example, my JSPs usually begin with something like: [EMAIL PROTECTED] contentType=... import=... import=... errorPage=... %%! // class code %% // service code %!DOCTYPE ... ... And if I need to place two directives with no spaces in between, I write jsp:useBean id=data scope=request class=my.Data /jsp:getProperty name=data property=aField / It is not as clean as a directive per line, but at least it doesn't hurt too much :-P Regards, Rodrigo Marius Scurtescu wrote: Hi, Yes, I totally agree that this issue should be brought up with the JSP specification. I will look into that. Even if the suggestion is accepted it will be quite a while until a specification will deal with this issue and then even longer until there is going to be a Tomcat implementation supporting it. We are talking years I guess :-( For what I know the specification is not saying anything about this issue and if Tomcat is implementing it right now it will not go against the spec. Keeping strictly with the JSP directives (the issue can be extended to the JSP tags as well, but it gets more complicated) common sense is enough, I hope, to realize that whenever you add a directive you really don't want an empty line in your output. These empty lines are annoying at best (every time you check the source of a page generated by JSP you first see an empty page - quite stupid), and breaking your app at worst (like in the case of IE). The absolute best proof that there is a problem here that needs fixing is the fact that developers make their code unreadable just as a work around. Cheers, Marius Rodrigo Ruiz wrote: Marius, I think such a feature request should not be addressed to Tomcat, but to the JSP specification itself. Remember that Tomcat is being used as the reference implementation of servlet/JSP technologies, and so it should stick to the specification. Basically, as I see it, your request means a special treatment for a subset of directives in a few specific cases. I think it would imply that tags could be marked as not generating any output, so when in a single JSP line there were only such marked tags and leading / trailing spaces among them, the line itself could be omited from the output. Such a change should be made from the specification. Regards, Rodrigo Marius Scurtescu wrote: JSP is a templating language which is using a meta language: the JSP constructs. The new line is in the JSP indeed, but is it part of the meta language or part of the literal output? I would argue that these new lines are part of the meta language and that they should not be output. You put them there so the meta language you use is readable. See how FreeMarker, another templating language, is dealing with this issue: http://freemarker.sourceforge.net/docs/dgui_misc_whitespace.html#dgui_misc_whitespace_stripping You are not asking the directive to scan anything, the page compiler could consider white space and newlines after a directive as part of that directive. Marius Adam Hardy wrote: On 10/30/2003 10:08 PM Marius Scurtescu wrote: I will consider implementing a filter to remove the empty lines before the html tag. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Encrypted password in DataSource configuration
How about creating an algorithm based upon a master file that has a password only you have access to? A lot of security companies are doing this nowadays. I personally think it's a temporary solution until biometrics comes knocking at our doors. On Mon, 3 Nov 2003 18:15:27 -0300, Luiz Ricardo [EMAIL PROTECTED] wrote: Hi, I would like to know if there is any way to encrypt the password when I configure a javax.sql.DataSource by Tomcat. Luiz Ricardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- How do I set my laser printer to stun??? Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Content Type
Cheers guys - Duncan :-) Shapira, Yoav wrote: Howdy, Add the content-disposition:attachment header. Yoav Shapira Millennium ChemInformatics -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 9:48 AM To: [EMAIL PROTECTED] Subject: Content Type I have a file running as a jsp but with a differant extension (.pms). When a user requests this file in IE/Netscape. I want it to download as a file rather than being opened as text by the browser. I have tried adding: response.setContentType(application/octet-stream); but this only seems to work some of the time. Anyone any ideas? Duncan Smith Decker Telecom Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering and servletContext.
AFAIK, only sessions are replicated. Attributes in the Servlet Context are not replicated. -Tim Antony Paul wrote: Hi, I asked this question yesterday no one replied. Suppose Tomcat is running in a cluster with load balancer. If I put a JavaBean in ServletContext is it possible to access this bean in all machines ?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Looking For Tomcat5 JK Doc
The JK docs for 5 are the same as 4.1 http://jakarta.apache.org/tomcat/faq/connectors.html -Tim Simon Chou wrote: tomcat user, I've been looking for the document to configure AJP connecting Tomcat 5.0.7 with Apache 2.0.47. The on-line JK Documentation link keep referring me to the binary distribution page of mod_jk 1.2.5 without the configuration document. I've also read tons of helpful pages for the previous versions of Tomcat from the google search and still unable to get the AJP right. If someone has configured the Tomcat 5.0.7 + Apache 2.0.47 + mod_jk 1.2.5 successfully, please point me the direction for obtaining the right configuration documentation. Thanks, SC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Applets and SSL
Maybe your problem is a relative URL in the codebase, try to use something like this: codebase=https://www.blah.com/applets; code=my-applet.class I´m thinking that if you don´t specify the protocol your web-browser will try to use the default HTTP port like 80. -- De: Gregor Kovac([SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 3 de novembro de 2003 19:31 Para: Tomcat Users List Assunto: Re: Applets and SSL Hi! The whole application WORKS under HTTP. But when I turn on SSL Connector on port 8443 I get ClassNotFound exception. Codebase is set like: codebase=applet. I'm using JDK 1.4.2 on client side and I'+m using plain applet tag not jsp:plugin. Best regards, Kovi Edson Alves Pereira wrote: How are you setting codebase property? Is it full url address? Like: codebase=http://www.blah.com.de/applets/; -- De: Gregor Kovac([SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:segunda-feira, 3 de novembro de 2003 16:53 Para: [EMAIL PROTECTED] Assunto:Applets and SSL Hi! I have a working webapp that uses one applet to send some data back to server. It does wor as expected only on plain HTTP 8080 or 80 port. But if I turn on the 8443 (SSL) and try to load a JSP page that has an applet embedded inside I get a ClassNotFoundException on the client side's plugin Console. Anyone getting this one too? How to solve it? Best regards, Kovi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Linux Distribution
Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks
Re: Tomcat clustering and servletContext.
Thanks - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 5:45 PM Subject: Re: Tomcat clustering and servletContext. AFAIK, only sessions are replicated. Attributes in the Servlet Context are not replicated. -Tim Antony Paul wrote: Hi, I asked this question yesterday no one replied. Suppose Tomcat is running in a cluster with load balancer. If I put a JavaBean in ServletContext is it possible to access this bean in all machines ?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux Distribution
Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. Wade -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Linux Distribution Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Do tag files get pooled
I have noticed in the generated java files that tags that are java classes seem to get pooled ok, but tag file (jsp tags) do not seem to get pooled at all.. Has anyone else seen this and if so is it by design. Thanks, John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Opinions
Howdy, Personally, I think it would be really cool to port procrunw's GUI to Motif/Gnome/KDE for a jsvcw. However, since I'm not a commons committer, I can't say how much attention this would get if somebody actually tried to I think that's a great idea, and I'm a commons committer, but I have no spare bandwidth at the moment ;( Perhaps someone else will contribute patches/enhancements etc. If that's done, I'll get them into the CVS tree and take care of those logistics ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL error -12229
James Rome wrote: I have installed Tomcat5 on Solaris in the Sun jwdsp-1.3. I created the certificates as per the instructions in the server.xml file, and uncommented the ssl server section. But when I try to connect to it, after the server presents me with its certificate, I get error -12229 What is wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] do you get this error from the browser? What browser are you using? Anything like this that I have seen had to do with the browser not having the proper cert, or trusted CA cert. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie - Tomcat on read only folder
Hi all, I recently started to use Tomcat and I wanted to know if it's possible to run Tomcat from within a read only folder. My intention is to install Tomcat into a hard drive, deploy the Gridsphere web portal into it and then burn them onto a CD in order to have an instant web portal. Is this possible? What should I do? Thanks in advance Ricardo
RE: Tomcat clustering and servletContext.
Howdy, And I did reply yesterday saying the same thing... Yoav Shapira Millennium ChemInformatics -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 11:23 PM To: Tomcat Users List Subject: Tomcat clustering and servletContext. Hi, I asked this question yesterday no one replied. Suppose Tomcat is running in a cluster with load balancer. If I put a JavaBean in ServletContext is it possible to access this bean in all machines ?. Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Linux Distribution
On 11/04/2003 01:43 PM Wade Chandler wrote: Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. That's the first time I've seen anyone say anything good about RedHat for a while. I've heard some horror stories about RedHat from people working for RedHat so hearing the other side of the coin is interesting. What about this: http://archive.infoworld.com/articles/op/xml/01/02/19/010219oppetreley.xml He says SuSE and all the others need to consolidate a linux standard, and he also doesn't say anything good about RedHat, he makes them sound like Microsoft. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Trust Store and Credentials
Hello Tomcat Users, Is there Tomcat 4 documentation on: (1) How to configure Tomcat's trust store; (2) How to map trusted certificate Subject onto tomcat-users credentials (or how does HTTP auth proceed when using CLIENT-CERT)? Many thanks, Walden Mathews - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Linux Distribution
Well I didn't see where he made them sound like MS, they have given too much to the open source community for anyone to label them that way. I guess either you agree with a standard or you don't. There is United Linux for enterprise with SuSE, Turbo Linux, another distro (I can't remember their name), and go figure (SCO...??? They need to go away). I think RH, SuSE, and the others need to come together and support LSB and keep extending that, but hey they are Linux regardless, but they aren't doing themselves any favors by not standardizing. The one thing they should not want is the Unix wars all over again. Losing battle. I would use Debian more if I could get more binary packages precompiled for it. Takes too much time to compile everything (but anyways). I think RH is a good company. They have devoted plenty of man power to Linux, and no one can argue with that. They have a completely free version, then they have the version that keeps them alive. SuSE and others have done the same. They have all fixed bugs in different projects and contributed. As for the article, it's almost 2 years old if you can go by the dates in the url. That would be about right per the comment about SuSE laying off employees in the US. They are Germany based, so that would make sense to me. Reign in their efforts to provide a better product. They seem to be soaring away now days (doing well). RH seems to be doing the same if you look at their revenues. Anyways, this is the Tomcat list, so I wouldn't want to get into a large debate on the list. Those are just some observations. The distros have their own lists for these types of discussions. I think they all have their place, but like everything you are always going to have a few out shine the others. It's one thing you can rely on, for right or wrong. Wade -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 8:54 AM To: Tomcat Users List Subject: Re: [OT] Linux Distribution On 11/04/2003 01:43 PM Wade Chandler wrote: Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. That's the first time I've seen anyone say anything good about RedHat for a while. I've heard some horror stories about RedHat from people working for RedHat so hearing the other side of the coin is interesting. What about this: http://archive.infoworld.com/articles/op/xml/01/02/19/010219oppetreley.x ml He says SuSE and all the others need to consolidate a linux standard, and he also doesn't say anything good about RedHat, he makes them sound like Microsoft. Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Installing jakarta on linux RH9
Thank's for all!!! Gracias por todo -Mensaje original- De: LEONARDO MARTINEZ Enviado el: Lunes, 03 de Noviembre de 2003 18:00 Para: Tomcat Users List Asunto: Installing jakarta on linux RH9 Hi! I need install a web server on RH9 that support jsp, it's web server is a jakarta Tomcat but I don't know da version to install, maybe v 4.1.29 ?? PLZ send a answer (sorry, I'm not a native english, im spanish) LOL BR SONNIC - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL error -12229
Mark W. Webb wrote: James Rome wrote: I have installed Tomcat5 on Solaris in the Sun jwdsp-1.3. I created the certificates as per the instructions in the server.xml file, and uncommented the ssl server section. But when I try to connect to it, after the server presents me with its certificate, I get error -12229 What is wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] do you get this error from the browser? What browser are you using? Anything like this that I have seen had to do with the browser not having the proper cert, or trusted CA cert. There is a bug in the current JWSDP 1.3 and SSL if you use Mozilla. Update to the latest Tomcat nightly and it should work. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24363 for more info. -- Jeanfrancois - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat oracle 9 question
Hi, We have windows 2000 server running oracle 9.2.0.1. I've installed a freebsd machine running tomcat 4.1.27 which has the following config in server.xml: start snip-- Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=1 displayName=Apache-Axis docBase=our_application mapperClass=org.apache.catalina.core.StandardContextMapper path=/our_application privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value /parameter parameter nameusername/name valuexyz/value /parameter parameter namepassword/name valuexyz/value /parameter parameter namemaxActive/name value80/value /parameter parameter namemaxIdle/name value40/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context --end snip - I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the webapplication WEB-INF/lib directory 1) ojdbc14.jar 2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are present) The web.xml of the webapplication has the following lines: -start snip- resource-ref descriptionmysql connection/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref -stop snip Here is stdout.log start snip Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourdatabase/WEB-INF/lib /servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context -stop snip Unfortunately it doesn't work :-( there are no database connections. Do I also need to install an oracle 9i client (I don't hope because freebsd doesn't have an available client) Thanks for any kind of help Didier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm...more
I just got it working... A million thank yous! I didn't really understand LDAP until learning (some) about it yesterday, and once I started learning it, your example made perfect sense, and now I can authenticate my users! This rules very much! Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: RE: JNDIRealm...more Here's what I have..this works for mehope this helps Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://[domain controller]:389 userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com userSearch=(sAMAccountName={0}) userRoleName=member roleBase=OU=Users,OU=[my OU],DC=[Domain],DC=com roleName=memberOf roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) connectionName=CN=Administrator,CN=Users,DC=[Domain],DC=com connectionPassword=[password] roleSubtree=true userSubtree=true/ -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:57 PM To: Tomcat Users List Subject: JNDIRealm...more My server.xml now looks like this : Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=A good active directory server userBase=dc=MY DOMAIN NAME,dc=com userRoleName=member roleName=cn roleSearch=(userPrincipalName={0}) roleSubtree=false userSubtree=false referrals=follow / Reading through the log shows no errors, just that the realm is openning and closing connections with my LDAP server, after 3 tries, it tells me that I need to use http authentication. What's going wrong here? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [inbox] Newbie - Tomcat on read only folder
Hello, Ricardo! You wrote to [EMAIL PROTECTED] on Tue, 4 Nov 2003 13:38:20 -: RFd I recently started to use Tomcat and I wanted to know if it's RFd possible to run Tomcat from within a read only folder. My intention RFd is to install Tomcat into a hard drive, deploy the Gridsphere web RFd portal into it and then burn them onto a CD in order to have an RFd instant web portal. Is this possible? RFd What should I do? Why not, it is a good idea to do so, but running from CD going to be slow. What you have to do: 1) configure tomcat to use a different drive for logs and for temporary files. For example on Win env. your logs should be saved to c:\ It make shure that tomcat will have access to your drive regardless of CD ROM letter. 2) burn CD (or create a folder with read only permissions on the hard drive) and test it. It is not a problem, usually on production servers (unix env) /bin mounted as read only, to minimaze risk of hacking. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [inbox] Newbie - Tomcat on read only folder
Howdy, RFd I recently started to use Tomcat and I wanted to know if it's RFd possible to run Tomcat from within a read only folder. My intention RFd is to install Tomcat into a hard drive, deploy the Gridsphere web RFd portal into it and then burn them onto a CD in order to have an RFd instant web portal. Is this possible? RFd What should I do? Why not, it is a good idea to do so, but running from CD going to be slow. What you have to do: 1) configure tomcat to use a different drive for logs and for temporary files. For example on Win env. your logs should be saved to c:\ It make shure that tomcat will have access to your drive regardless of CD ROM letter. 2) burn CD (or create a folder with read only permissions on the hard drive) and test it. Don't forget the work and temp directories in addition to the logs. These are configurable in server.xml. In addition, it is your responsibility to ensure your app never writes to disk accept in a specification-compliant manner. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat oracle 9 question
You must put your Oracle driver in common/lib also, where tomcat will try to find for its only use. Do that and tell us if went everything ok. -- De: Didier Wiroth[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: terça-feira, 4 de novembro de 2003 12:11 Para: [EMAIL PROTECTED] Assunto: Tomcat oracle 9 question Hi, We have windows 2000 server running oracle 9.2.0.1. I've installed a freebsd machine running tomcat 4.1.27 which has the following config in server.xml: start snip-- Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=1 displayName=Apache-Axis docBase=our_application mapperClass=org.apache.catalina.core.StandardContextMapper path=/our_application privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value /parameter parameter nameusername/name valuexyz/value /parameter parameter namepassword/name valuexyz/value /parameter parameter namemaxActive/name value80/value /parameter parameter namemaxIdle/name value40/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context --end snip - I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the webapplication WEB-INF/lib directory 1) ojdbc14.jar 2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are present) The web.xml of the webapplication has the following lines: -start snip- resource-ref descriptionmysql connection/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref -stop snip Here is stdout.log start snip Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourdatabase/WEB-INF/l ib /servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context -stop snip Unfortunately it doesn't work :-( there are no database connections. Do I also need to install an oracle 9i client (I don't hope because freebsd doesn't have an available client) Thanks for any kind of help Didier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat oracle 9 question
Hi, I've copied the drivers also to common/lib, this didn't help. I would like to specify this: I have a working config on a windows 2000 server which uses: Oracle 9.2.0.1 Tomcat 4.1.24 Java j2sdk1.4.1_03 + our webapplication It works here no problem What I did is installed a test freebsd box with: Tomcat 4.1.27 Java jdk-1.4.1p4_1 I have copied from the windows box the webapplication to the freebsd box. I have copied the context stuff from server.xml (windows) to the freebsd server.xml (see my previous post) I have adapted all path related stuff. I've redeploied the webservices with ant, no error messages When I launch a webpage (on the freebsd tomcat server) from our webapplication that needs to query the database, I get the following error code in the browser: AxisFault : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context Thanks Didier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat oracle 9 question
Some more info The webapplication log file is claiming about this: Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/ lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey Stopping service Tomcat-Standalone Starting service Tomcat-Standalone Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/ lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 04 November 2003 18:40 To: 'Tomcat Users List' Subject: RE: Tomcat oracle 9 question You must put your Oracle driver in common/lib also, where tomcat will try to find for its only use. Do that and tell us if went everything ok. -- De: Didier Wiroth[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada:terça-feira, 4 de novembro de 2003 12:11 Para: [EMAIL PROTECTED] Assunto:Tomcat oracle 9 question Hi, We have windows 2000 server running oracle 9.2.0.1. I've installed a freebsd machine running tomcat 4.1.27 which has the following config in server.xml: start snip-- Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=1 displayName=Apache-Axis docBase=our_application mapperClass=org.apache.catalina.core.StandardContextMapper path=/our_application privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value /parameter parameter nameusername/name valuexyz/value /parameter parameter namepassword/name valuexyz/value /parameter parameter namemaxActive/name value80/value /parameter parameter namemaxIdle/name value40/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /Context --end snip - I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the webapplication WEB-INF/lib directory 1) ojdbc14.jar 2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are present) The web.xml of the webapplication has the following lines: -start snip- resource-ref descriptionmysql connection/description res-ref-namejdbc/myoracle/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref -stop snip Here is stdout.log start snip Apache Tomcat/4.1.27
RE: JNDIRealm...more
Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is: roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) 1.specifically, what is CN=tomcat ?Is that a role which has been set up in AD? What is:userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com 2.specifically, what is OU=[My OU] ? 3. What did you put in your web-app web.xml? My AD administrators have not been able to explain our tree structure to me. Either I'm asking the wrong questions, or they don't understand it either. They have given me a copy of the script they used to load it. I'm trying to look thru the script to discover the tree structure. Also, they printed a screen print from their AD administrative tool. It has this sort of structure: Active Directory Users and Computers lubbock.isd Builtin CO Computers Disabled Accounts Elem ForeignSecurityPrincipals HS JH LostAndFound Microsoft Exchange System Object OG System Users Should that tell me what to plug into the OU? I know if I hit the AD with an Administrative name, password and its OU, then I authenticate. For instance CN=Administratorname,OU=CO,dc=lubbock,dc=isd);. CO stands for central office (in this case.) I know that this administrative name is in the OU=CO. What do I do if my user is not in OU=CO? How do I authenticate when I'm not given the person's specific OU? I don't understand why you're specifying 2 different values for OU? Any help would be appreciated. Thanks, rob -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:13 AM To: Tomcat Users List Subject: RE: JNDIRealm...more I just got it working... A million thank yous! I didn't really understand LDAP until learning (some) about it yesterday, and once I started learning it, your example made perfect sense, and now I can authenticate my users! This rules very much! Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 4:16 PM To: [EMAIL PROTECTED] Subject: RE: JNDIRealm...more Here's what I have..this works for mehope this helps Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://[domain controller]:389 userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com userSearch=(sAMAccountName={0}) userRoleName=member roleBase=OU=Users,OU=[my OU],DC=[Domain],DC=com roleName=memberOf roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) connectionName=CN=Administrator,CN=Users,DC=[Domain],DC=com connectionPassword=[password] roleSubtree=true userSubtree=true/ -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 12:57 PM To: Tomcat Users List Subject: JNDIRealm...more My server.xml now looks like this : Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=A good active directory server userBase=dc=MY DOMAIN NAME,dc=com userRoleName=member roleName=cn roleSearch=(userPrincipalName={0}) roleSubtree=false userSubtree=false referrals=follow / Reading through the log shows no errors, just that the realm is openning and closing connections with my LDAP server, after 3 tries, it tells me that I need to use http authentication. What's going wrong here? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to collect IP addresses
Thanks Tim, I'll look into it! Do you happen to know where a HOW-TO is that explains how to do this, or a good book? -Brian -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:57 PM To: Tomcat Users List Subject: Re: How to collect IP addresses AccessLogValve and use a custom pattern. -Tim Brian Menke wrote: Hi Everyone, I know that there are existing log files that collect information, but I need one that contains only ip addresses. I'm just wondering if there is some existing tomcat way to do this instead of embedding it in my servlet code? I thought maybe log4j, but that looks like it is for debugging purposes only. Are there any existing articles that talk about this? I did a google search, but no luck so far. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to collect IP addresses
Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:09 PM To: 'Tomcat Users List' Subject: RE: How to collect IP addresses Thanks Tim, I'll look into it! Do you happen to know where a HOW-TO is that explains how to do this, or a good book? -Brian -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:57 PM To: Tomcat Users List Subject: Re: How to collect IP addresses AccessLogValve and use a custom pattern. -Tim Brian Menke wrote: Hi Everyone, I know that there are existing log files that collect information, but I need one that contains only ip addresses. I'm just wondering if there is some existing tomcat way to do this instead of embedding it in my servlet code? I thought maybe log4j, but that looks like it is for debugging purposes only. Are there any existing articles that talk about this? I did a google search, but no luck so far. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to collect IP addresses
That's why I love this group. Thanks Tim and Yoav! -Brian Menke -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:12 AM To: Tomcat Users List Subject: RE: How to collect IP addresses Howdy, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html Yoav Shapira Millennium ChemInformatics -Original Message- From: Brian Menke [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:09 PM To: 'Tomcat Users List' Subject: RE: How to collect IP addresses Thanks Tim, I'll look into it! Do you happen to know where a HOW-TO is that explains how to do this, or a good book? -Brian -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2003 5:57 PM To: Tomcat Users List Subject: Re: How to collect IP addresses AccessLogValve and use a custom pattern. -Tim Brian Menke wrote: Hi Everyone, I know that there are existing log files that collect information, but I need one that contains only ip addresses. I'm just wondering if there is some existing tomcat way to do this instead of embedding it in my servlet code? I thought maybe log4j, but that looks like it is for debugging purposes only. Are there any existing articles that talk about this? I did a google search, but no luck so far. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
detect WML or HTML
Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks. Stefan Moghadam
RE: JNDIRealm...more
Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is: roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) 1.specifically, what is CN=tomcat ?Is that a role which has been set up in AD? What is:userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com 2.specifically, what is OU=[My OU] ? 3. What did you put in your web-app web.xml? My AD administrators have not been able to explain our tree structure to me. Either I'm asking the wrong questions, or they don't understand it either. They have given me a copy of the script they used to load it. I'm trying to look thru the script to discover the tree structure. Also, they printed a screen print from their AD administrative tool. It has this sort of structure: Active Directory Users and Computers lubbock.isd Builtin CO Computers Disabled Accounts Elem ForeignSecurityPrincipals HS JH LostAndFound Microsoft Exchange System Object OG System Users Should that tell me what to plug into the OU? I know if I hit the AD with an Administrative name, password and its OU, then I authenticate. For instance CN=Administratorname,OU=CO,dc=lubbock,dc=isd);. CO stands for central office (in this case.) I know that this administrative name is in the OU=CO. What do I do if my user is not in OU=CO? How do I authenticate when I'm not given the person's specific OU? I don't understand why you're specifying 2 different values for OU? Any help would be appreciated. Thanks, rob -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:13 AM To: Tomcat Users List Subject: RE: JNDIRealm...more I just got it working... A million thank yous! I didn't really understand LDAP until learning
RE: JNDIRealm...more
I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is: roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) 1.specifically, what is CN=tomcat ?Is that a role which has been set up in AD? What is:userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com 2.specifically, what is OU=[My OU] ? 3. What did you put in your web-app web.xml? My AD administrators have not been able to explain our tree structure to me. Either I'm asking the wrong questions, or they don't understand it either. They have given me a copy of the script they used to load it. I'm trying to look thru the script to discover the tree structure. Also, they printed a screen print from their AD administrative tool. It has this sort of structure: Active Directory Users and Computers lubbock.isd Builtin CO Computers Disabled Accounts Elem ForeignSecurityPrincipals HS JH LostAndFound Microsoft Exchange System Object OG System Users Should that tell me what to plug into the OU? I know if I hit the AD with an Administrative name, password and its OU, then I authenticate. For instance CN=Administratorname,OU=CO,dc=lubbock,dc=isd);. CO stands for central office (in this case.) I know that this administrative name is in the OU=CO. What do I do if my user is not in OU=CO? How do I authenticate when I'm not given the person's specific OU? I don't understand why you're specifying 2 different values for OU? Any help would be appreciated. Thanks, rob -Original Message- From: Hart, Justin [mailto:[EMAIL
RE: JNDIRealm...more
Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is: roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) 1.specifically, what is CN=tomcat ?Is that a role which has been set up in AD? What is:userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com 2.specifically, what is OU=[My OU] ? 3. What did you put in your web-app web.xml? My AD administrators have not been able to explain our tree structure to me. Either I'm asking the wrong questions, or they don't understand it either. They have given me a copy of the script they used to load it. I'm trying to look thru the script to discover the tree structure. Also, they printed a screen print from their AD administrative tool. It has this sort of structure: Active Directory Users and Computers lubbock.isd Builtin CO Computers Disabled Accounts Elem ForeignSecurityPrincipals HS JH LostAndFound Microsoft Exchange System Object OG System Users Should that tell me what to plug into the OU? I know if I hit the AD with an Administrative name, password and its OU, then I authenticate. For instance CN=Administratorname,OU=CO,dc=lubbock,dc=isd);. CO stands for central office (in this case.) I know that this administrative
Re: detect WML or HTML
Use HTTP Accept or User-Agent headers to determine whether to redirect. Here's an example of the Accept headers from a Nokia 3510i wap phone: Header accept, value=application/vnd.wap.wtls-ca-certifi cate, application/x-wap-prov.browser-settings, application/x-nokia.settings, application/vnd.wap.wmlc, application/vnd.wap.wmlscriptc, text/x-vCard, t ext/x-vCalendar, application/vnd.wap.wtls-ca-certificate, application/vnd.wap.sic, application/x-wap-prov.browser-bookmarks, text/x-co-desc, image/gif , image/jpeg, image/jpg, image/bmp, image/png, image/vnd.wap.wbmp, image/vnd-nok-camera-snap, image/vnd-nok-camera-snsp, image/vnd.nok-wallpaper, text /vnd.sun.j2me.app-descriptor, application/vnd.nokia.ringing-tone, audio/midi, audio/mid, audio/x-midi, audio/x-mid, audio/sp-midi, application/java, a pplication/java-archive, application/x-java-archive, application/vnd.wap.mms-message, image/vnd.nok-oplogo-color, image/bmp,image/vnd.wap.wbmp,applica tion/x-nokia.settings-xml,text/x-wap.wml,text/vnd.wap.wml,text/x-hdml,text/vnd.wap.wmlscript,text/vnd.wap.si, */* So it can support text/vnd.wap.wml but not html (even though it's got a cheeky */* at the end). Phones like the Ericsson P800 (and others) can support html (3.2). HTH, Jon PS sorry about the line wrap in the headers Stefan Moghadam wrote: Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks. Stefan Moghadam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: detect WML or HTML
On Tue, 4 Nov 2003, Stefan Moghadam wrote: Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks. Is what you want to know how to distinguish between HTML and WML requests? Looking at a working .htaccess file of one of our ancient WAP sites ... RewriteCond %{HTTP_ACCEPT} text\/vnd\.wap\.wml RewriteRule (.*)/$ $1/index.wml [T=text/vnc.wap.wml,L] ... something like ... if (request-getHeader(Accept).matches(.*text\\/vnd\\.wap\\.wml.*)) { do_wml(); } else { do_html(); } ... should work. kr Christoph Lechleitner IBCL - IT Bureau Dipl.-Ing. C. Lechleitner Defreggerstr. 24, A-6020 Innsbruck, Austria, Europe http://www.ibcl.net/ Tel.: +43 512 390717, Fax: +43 512 390787, Mobile: +43 699 12353479 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: typo on Valve component page
Howdy, I just fixed it, thanks. You'll see the fix when the site is updated at the next point release. Yoav Shapira Millennium ChemInformatics -Original Message- From: Roland Glenn McIntosh [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:34 PM To: Tomcat Users List Subject: OT: typo on Valve component page on this page: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html The Introduction's first line reads: A Valve element represents a comonent -- Not sure where else to report this. -rgm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat oracle 9 question
The servlet.jar and classes12.jar should be under $CATALINA_HOME/common/lib I configured my server.xml to Oracle 9 using the jndi through the GlobalNamingResources and it works GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource auth=Container description=Oracle 9i database name=jdbc/myoracle type=javax.sql.DataSource/ ResourceParams name=jdbc/myoracle parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value /parameter parameter nameusername/name valuexyz/value /parameter parameter namepassword/name valuexyz/value /parameter parameter namemaxActive/name value80/value /parameter parameter namemaxIdle/name value40/value /parameter parameter namemaxWait/name value1/value /parameter /ResourceParams /GlobalNamingResources Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=1 displayName=Apache-Axis docBase=our_application mapperClass=org.apache.catalina.core.StandardContextMapper path=/our_application privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ ResourceLink global=jdbc/myoracle name=database/ /Context In your Context you have to put ResourceLink global tag. The global attribute of the tag refers to the ResourceParam defined up in the GlobalNamingResources The name attribute of the tag refers to the lookup name used to get the Datasource for your Connections javax.naming.InitialContext initContext = new javax.naming.InitialContext(); javax.sql.DataSource dataSource = (javax.sql.DataSource) initContext.lookup( java:comp/env/database); Connection con = dataSource.getConnection(); Didier Wiroth [EMAIL PROTECTED] 04/11/2003 06:06 PM Please respond to Tomcat Users List To: 'Tomcat Users List' [EMAIL PROTECTED] cc: bcc: Subject: RE: Tomcat oracle 9 question Some more info The webapplication log file is claiming about this: Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/ lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey Stopping service Tomcat-Standalone Starting service Tomcat-Standalone Apache Tomcat/4.1.27 WebappClassLoader: validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/ lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, NoKey getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in this Context NoKey - (null) : javax.naming.NameNotFoundException: Name NoKey is not bound in this Context -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: 04 November 2003 18:40 To: 'Tomcat Users List' Subject: RE: Tomcat oracle 9 question You must put your Oracle driver in common/lib also, where tomcat will try to find for its only use. Do that and tell us if went everything ok. -- De: Didier Wiroth[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: terça-feira, 4 de novembro de 2003 12:11 Para: [EMAIL PROTECTED] Assunto: Tomcat oracle 9 question Hi, We have windows 2000 server running oracle 9.2.0.1. I've installed a freebsd machine running tomcat 4.1.27 which has the following config in server.xml: start snip-- Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=1 displayName=Apache-Axis docBase=our_application mapperClass=org.apache.catalina.core.StandardContextMapper path=/our_application privileged=false reloadable=false swallowOutput=false useNaming=true
RE: JNDIRealm...more
Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is: roleSearch=(memberOf=CN=tomcat,CN=Users,DC=[Domain],DC=com) 1.specifically, what is CN=tomcat ?Is that a role which has been set up in AD? What is:userBase=OU=Users,OU=[My OU],DC=[Domain],DC=com 2.specifically,
RE: JNDIRealm...more
Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common names, but I can't use basic or form authentication and get them authenticated with just a user-id and password. What is:
RE: JNDIRealm...more
Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU, but I do see it as a CN.) How are you browsing around in AD's LDAP? I have a jndi jsp that I've tried finding things with. One bit of info: The AD I am trying to authenticate to is on a different box than the one I work on. I do know to hit AD with a connection name and password, then I've tried to use the sAMAccountname but have been unsuccessful. I can't quite get my path worked out. I will look thru the DN, to see if I can find where all the users are a member. In my web.xml, I have tried form based and basic authentication. Which are you using and don't you have to specify this stuff?: security-constraint web-resource-collection web-resource-name/web-resource-name url-pattern/url-pattern /web-resource-collection auth-constraint role-name/role-name /auth-constraint /security-constraint login-config auth-method/auth-method !-- realm-name/realm-name -- /login-config security-role role-name/role-name /security-role Would the role-name be the entry in the tomcat users or would it be an entry in the AD? This is a new web-app I'm trying to get up and it will be the first one in our group to authenticate against the AD. Our previous authentication is being eliminated. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:14 AM To: Tomcat Users List Subject: RE: JNDIRealm...more 1) In terms of active directory, the roleSearch, in this case, would be a group that the person logging in needs to be a member of. In terms of mine, it would be the ALL mailing list for my company. What you need to do, is browse around in active directory's LDAP (I assume that you're doing this against active directory) and find the entry that describes the NT group that you want all of your members to be a member of. CN=tomcat is just part of the DN that identifies that group for the other guy in this thread. 2) K, you need to get to your base directory that contrains users. That could be multiple OU's deep, in terms of active directory, it probably is, you'll probably have 1 layer for say, job sites, and another for Users (hence Users). You'll see if it you browse down your active directory tree... just enter the DN describing the level containing your users. 3) web.xml contains the stuff specific to logging in, so essentially, whatever you use for authentication now, can still be used, as long as the data jibes with what's in your active directory. Is that User's there a CN or a OU? Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:08 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hi, I've been watching your emails andI'm still trying to understand. I have a couple of ldap books and I'm trying to figure some things out. I can authenticate to AD with known OU's and known common
Session managing in Tomcat problem
Hi I am not sure how to do this: My setup: -implemented javax.servlet.http.HttpSessionListener -in app's web.xml: listener listener-classmySessionListener/listener-class /listener -tomcat handles the creation of sessions and each of them expires after idling for an hour. I want to prevent tomcat creating new session for a particular request(i.e., from a certain IP address or url). How do I go about doing it? (When a new session was created, it contains nothing that tells me about the request). Thanks! -Yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trust Store and Credentials
A little bit later... I guess the answer is 'no' to documentation. In that case, is there anyone out there who knows? The Tomcat docs on SSL are great for setting up without client-auth; works great. But when I point my client (browser or HttpsURLConnection) at the CLIENT-CERT protected site, the best I can manage is a 401. What's the secret? Walden - Original Message - From: Walden Mathews [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:26 AM Subject: Trust Store and Credentials | Hello Tomcat Users, | | Is there Tomcat 4 documentation on: | | (1) How to configure Tomcat's trust store; | | (2) How to map trusted certificate Subject onto | tomcat-users credentials (or how does HTTP | auth proceed when using CLIENT-CERT)? | | Many thanks, | | Walden Mathews | | | - | To unsubscribe, e-mail: [EMAIL PROTECTED] | For additional commands, e-mail: [EMAIL PROTECTED] | | - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 1.3.28/mod_jk-1.2.5/Solaris - fd leak?
Hi all. I have a tomcat setup that works through mod_jk-1.2.5 and Apache 1.3.28, running on Solaris 7 and Solaris 8 boxes. I've found what appears to be a file descriptor leak. I haven't been able to find mention of this on http://marc.theaimsgroup.com/?l=tomcat-user, or in apache's bug reporting database. I was hoping to see whether anyone else had seen similar behavior, or if anyone else could reproduce it. After a cold start, this is what the list of open fd's looks like. one_mod_jk_log and two_mod_jk_log are files named by JkLogFile directives (there are two JkLogfile directives, each in a different VirtualHost container in srm.conf). $ lsof -p `cat /etc/httpd.pid ` | grep _jk httpd 21307 root txt VREG 136,0 834728 958215 /l/apache/libexec/mod_jk.so httpd 21307 root4u VREG 136,0 3023 848146 /l/apache/logs/localhost/two_mod_jk_log httpd 21307 root5u VREG 136,0 3023 848147 /l/apache/logs/localhost/one_mod_jk_log httpd 21307 root6u VREG 136,0 3023 848146 /l/apache/logs/localhost/two_mod_jk_log httpd 21307 root7u VREG 136,0 3023 848147 /l/apache/logs/localhost/one_mod_jk_log After signaling the server to restart, the number of open descriptors increases. (/etc/httpd.pid is Apache's PidFile). $ kill -HUP `cat /etc/httpd.pid ` $ lsof -p `cat /etc/httpd.pid ` | grep _jk httpd 21307 root txt VREG 136,0 834728 958215 /l/apache/libexec/mod_jk.so httpd 21307 root4u VREG 136,0 5028 848146 /l/apache/logs/localhost/two_mod_jk_log httpd 21307 root5u VREG 136,0 5029 848147 /l/apache/logs/localhost/one_mod_jk_log httpd 21307 root6u VREG 136,0 5028 848146 /l/apache/logs/localhost/two_mod_jk_log httpd 21307 root7u VREG 136,0 5029 848147 /l/apache/logs/localhost/one_mod_jk_log httpd 21307 root8u VREG 136,0 5028 848146 /l/apache/logs/localhost/two_mod_jk_log httpd 21307 root9u VREG 136,0 5029 848147 /l/apache/logs/localhost/one_mod_jk_log After the HUP, there are two additional file descriptors open. Another HUP will open up two more, and so forth. USR1 (aka apachectl graceful) seems to produce similar results. The problem really shows itself with log rotations; you need to restart the server in order to have it close and reopen its logfiles. But in this case, the parent httpd process eventually runs out of file descriptors and dies. :( mod_jk-1.2.3 shows the same behavior. If any of the other mod_jk/apache users wouldn't mind trying to reproduce this, I'd very much appreciate knowing what you found. Likewise, if anyone could offer a pointer to a workaround. Thanks in advance. -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing jakarta on linux RH9
All, The newest version (4.1.29) should be fine. If I recall, however, there was a problem with Sun's Java Virtual Machine, and RH9, which used an incompatible threading library. No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env variable (look in the archives for the details on the problems and the workaround). Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 without any LD_ASSUME_KERNEL setting (that I know of). Is this for a specific kernel version or architecture? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
Howdy, I want to prevent tomcat creating new session for a particular request(i.e., You can't do that without hacking tomcat internals to the point where it is no longer a Servlet Specification-compliant server. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat clustering and servletContext.
Antony, I asked this question yesterday no one replied. Suppose Tomcat is running in a cluster with load balancer. If I put a JavaBean in ServletContext is it possible to access this bean in all machines ?. No, the ServletContext does not get propagated to other machines. Consider using a shared JNDI scope to share this information. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing jakarta on linux RH9
Christopher Schultz wrote: All, The newest version (4.1.29) should be fine. If I recall, however, there was a problem with Sun's Java Virtual Machine, and RH9, which used an incompatible threading library. No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env variable (look in the archives for the details on the problems and the workaround). Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 without any LD_ASSUME_KERNEL setting (that I know of). Is this for a specific kernel version or architecture? The problems are with the HTTP/1.1 connector (it dies after about one day, regardless of the load). Also, there has been a GLIBC update which could have fixed the issue, so if you keep your system fully patched, you could be ok. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Formerly: Tomcat clustering and servletContext.
Ahh, you seem to know a bit about this. Given that I've authenticated someone, using JNDIRealm, can I then operate with their permissions on the server? IE, if they authenticate to Tomcat in JNDIRealm, do I get access to files that carry their NT permissions? Justin -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:52 PM To: Tomcat Users List Subject: Re: Tomcat clustering and servletContext. Antony, I asked this question yesterday no one replied. Suppose Tomcat is running in a cluster with load balancer. If I put a JavaBean in ServletContext is it possible to access this bean in all machines ?. No, the ServletContext does not get propagated to other machines. Consider using a shared JNDI scope to share this information. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24
ContextInterceptor belonged to the old Tomcat 3.x You would use Valves, although, I doubt Valves will let you load additional stuff to the classloader Filip - Original Message - From: Julie christiana [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 03, 2003 8:28 PM Subject: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24 Hi, Can anyone lend me pointers on how to use LoaderInterceptor11 with tomcat 4.1.24 ? We want to use this to load classsed from jar, zip files during runtime ? In the server.xml we have the following configuration : ContextInterceptor className=org.apache.tomcat.context.LoaderInterceptor useApplicationLoader=true additionalJars=xxx.jar/ Now, if we need to access a particular class from this jar, we would implement a classloader which would be accessed by the JSPs . Is my understanding correct ? Any other configuration required for the same ? Please lend me any pointers on how to implement a classLoader to access a class file. I was unable to find the same in tomcat documentation. Any help on this is appreciated. TIA, Julie Chritiana - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: detect WML or HTML
Stefan, Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks. What you want to do is look at the accept header. Here's the accept header that my browser sends: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 The accept header contains the acceptable (and preferred) MIME types for the browser. I don't have a WAP browser handy, but I'm sure that it would have something like text/wml in there. Some of the entries have ;q=some.number after them. This is a weighting mechanism. This means that if you can serve both text/xml and text/html, then my accept header says that my browser prefers text/xml 10% more than text/html (no q= means q=1.0). A WAP browser should probably send text/wml=1.0 or list it first on the accept header. I wrote some code a while back that can parse the accept header and give you the mimetypes in preferred order, do matches, etc. Let me know if this might be useful, and I'll go look for it. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do tag files get pooled
John, I have noticed in the generated java files that tags that are java classes seem to get pooled ok, but tag file (jsp tags) do not seem to get pooled at all.. Has anyone else seen this and if so is it by design. I assume you mean instances of JSP tag libraries being used in JSP files. The specification contains methods to setup and re-set tag objects so that they can be pooled and/or reused. It occurs to me that I've looked at the generated Java source code from a JSP for Tomcat 4.1.x, and the instances are not pooled. I was actually a little disappointed because the Tomcat guys are generally pretty clever, and I'd think that someone would get a huge hard-on after get this working (I know I would). Does anyone know about Tomcat 5? I'd love to actually contribute to the project, but I haven't looked at line 1 of code from any of the releases (okay, so I hacked DataSourceRealm to add some logging when I was pissed off, but I don't know anything about how the JSP engine works). -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24
Howdy, You can't use the interceptors from tomcat 3.x in tomcat 4.x. You'd have to write your own Valve as Filip said. However, I don't think you want to do that. Tomcat will automatically load classes from jars placed in WEB-INF/lib and classes placed in WEB-INF/classes under webapp's root directory. Tomcat will load these classes once, on startup. Tomcat will reload these classes if you restart the webapp via tomcat's Manager webapp. The risks associated with dynamic reloading of selected classes at runtime outside the above two mechanisms are very significant: why would you want to do this? Yoav Shapira Millennium ChemInformatics -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:54 PM To: Tomcat Users List Subject: Re: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24 ContextInterceptor belonged to the old Tomcat 3.x You would use Valves, although, I doubt Valves will let you load additional stuff to the classloader Filip - Original Message - From: Julie christiana [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 03, 2003 8:28 PM Subject: [NEWBIE] Using LoaderInterceptor11 with tomcat 4.1.24 Hi, Can anyone lend me pointers on how to use LoaderInterceptor11 with tomcat 4.1.24 ? We want to use this to load classsed from jar, zip files during runtime ? In the server.xml we have the following configuration : ContextInterceptor className=org.apache.tomcat.context.LoaderInterceptor useApplicationLoader=true additionalJars=xxx.jar/ Now, if we need to access a particular class from this jar, we would implement a classloader which would be accessed by the JSPs . Is my understanding correct ? Any other configuration required for the same ? Please lend me any pointers on how to implement a classLoader to access a class file. I was unable to find the same in tomcat documentation. Any help on this is appreciated. TIA, Julie Chritiana - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache 1.3.28/mod_jk-1.2.5/Solaris - fd leak?
After the HUP, there are two additional file descriptors open. Another HUP will open up two more, and so forth. USR1 (aka apachectl graceful) seems to produce similar results. It sounds like mod_jk doesn't handle the restart notification from Apache very well. It's also possible that mod_jk doesn't attempt to close any open streams when the log file name is changed (which is likely to happen when Apache reloads its config). The name will be the same, but there's still a message sent to the module that some configuration changed. I suppose this is the same thing as not handling restart notification properly. Have you tried jk2? Everyone on this list seems to indicate that moving to jk2 is a good idea in general. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing jakarta on linux RH9
Remy, No, on RH 9, all VMs will actually need the LD_ASSUME_KERNEL env variable (look in the archives for the details on the problems and the workaround). Is this accurate? I use RH9 with kernel 2.4.20/i686, JDK 1.4.2-b28 without any LD_ASSUME_KERNEL setting (that I know of). The problems are with the HTTP/1.1 connector (it dies after about one day, regardless of the load). Also, there has been a GLIBC update which could have fixed the issue, so if you keep your system fully patched, you could be ok. I've never had anything die on me, and I have glibc-2.3.2-11.9, which should be the version that comes on the RH9 installation media. I'm using: Apache/2.0.46 (Unix) mod_jk/1.2.4 and Tomcat 4.1.27 with the context reloading hotfix. ?? Not that I'm unhappy not having problems, but I'm curious as to why some people have this problem and I don't. Oh! Duh, I see it, now. I'm only using the CoyoteConector to allow Apache to connect to Tomcat. I'm not using Tomcat as a standalone web server. (I decided to post this message anyway in case some people were not clear what the problem is) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Formerly: Tomcat clustering and servletContext.
Justin, Given that I've authenticated someone, using JNDIRealm, can I then operate with their permissions on the server? IE, if they authenticate to Tomcat in JNDIRealm, do I get access to files that carry their NT permissions? Uhh, I'm not entirely sure, but I'd eat my proverbial hat if a user logged-in to your web application (using J2EE-style j_security_check, right?) and then could access any of their files on the server. Tomcat should run with a particular user's privs. If you run it as Administrator, then you'll open your whole system up to file theft (is that your concern?). You should run Tomcat as a user with very little access. On UNIX systems, it's common to either use the nobody user or create a user under which Tomcat will run. Tomcat doesn't assume the privs of a user that has successfully logged-in to your application. So, you can't use Tomcat as a file-server unless it actually is running as Administrator or the user whose files you want to read. There may be a way to authenticate directly with NT and then request files through some other mechanism, but you can't just open up a FileInputStream to anything you want :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Formerly: Tomcat clustering and servletContext.
Works for me. Thanks. Justin -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 2:23 PM To: Tomcat Users List Subject: Re: Formerly: Tomcat clustering and servletContext. Justin, Given that I've authenticated someone, using JNDIRealm, can I then operate with their permissions on the server? IE, if they authenticate to Tomcat in JNDIRealm, do I get access to files that carry their NT permissions? Uhh, I'm not entirely sure, but I'd eat my proverbial hat if a user logged-in to your web application (using J2EE-style j_security_check, right?) and then could access any of their files on the server. Tomcat should run with a particular user's privs. If you run it as Administrator, then you'll open your whole system up to file theft (is that your concern?). You should run Tomcat as a user with very little access. On UNIX systems, it's common to either use the nobody user or create a user under which Tomcat will run. Tomcat doesn't assume the privs of a user that has successfully logged-in to your application. So, you can't use Tomcat as a file-server unless it actually is running as Administrator or the user whose files you want to read. There may be a way to authenticate directly with NT and then request files through some other mechanism, but you can't just open up a FileInputStream to anything you want :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do tag files get pooled
I think tag pooling was dropped for 5. (I can't remember) Benchmarks never showed a measureable performance increase. See the archives for tomcat-dev possible disscusions. -Tim Christopher Schultz wrote: John, I have noticed in the generated java files that tags that are java classes seem to get pooled ok, but tag file (jsp tags) do not seem to get pooled at all.. Has anyone else seen this and if so is it by design. I assume you mean instances of JSP tag libraries being used in JSP files. The specification contains methods to setup and re-set tag objects so that they can be pooled and/or reused. It occurs to me that I've looked at the generated Java source code from a JSP for Tomcat 4.1.x, and the instances are not pooled. I was actually a little disappointed because the Tomcat guys are generally pretty clever, and I'd think that someone would get a huge hard-on after get this working (I know I would). Does anyone know about Tomcat 5? I'd love to actually contribute to the project, but I haven't looked at line 1 of code from any of the releases (okay, so I hacked DataSourceRealm to add some logging when I was pissed off, but I don't know anything about how the JSP engine works). -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Formerly: Tomcat clustering and servletContext.
Neither. All permissions are of the OS user running the process. -Tim Hart, Justin wrote: Ahh, you seem to know a bit about this. Given that I've authenticated someone, using JNDIRealm, can I then operate with their permissions on the server? IE, if they authenticate to Tomcat in JNDIRealm, do I get access to files that carry their NT permissions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Do tag files get pooled
Tim, I think tag pooling was dropped for 5. (I can't remember) Benchmarks never showed a measureable performance increase. Really? I suppose that's a good vote of confidence for the VM in general. I would think that saving a bunch of object instantiations and, later, garbage-collections would be measurable. Oh, well. So, did they just decide that the added complexity of taglib instance pooling wasn't worth the (apparently miniscule) performance benefit they got? I'll take a look at the archives. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Preloaded servlet runs init twice
Tomcat 4.1.27 Windows XP JDK 1.3 In a secondary instance of Tomcat (CATALINA_BASE=c:\myapp) I have a servlet defined to preload load-on-startup1/load-on-startup The problem is that the init() method is run twice. If I remove the context definition for the web application, the preloaded servlet only runs init() once (but then I can access it because there is no path mapping.) What am I missing? Mitch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
V Host
Hi I want to know if it's possible to configure a virtual host placed outside webapps... and how could I make it... (a simple sample will be helpfull) Thanks in advance jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux Distribution
Will they still give out patches promptly for fedora? I doubt it though How's freeBSD or openBSD? -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 5:44 AM To: 'Tomcat Users List' Subject: RE: Linux Distribution Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. Wade -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Linux Distribution Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Preloaded servlet runs init twice
Hello, [EMAIL PROTECTED] You wrote to [EMAIL PROTECTED] on Tue, 4 Nov 2003 13:47:04 -0600: mtc Tomcat 4.1.27 mtc Windows XP mtc JDK 1.3 mtc In a secondary instance of Tomcat (CATALINA_BASE=c:\myapp) I have a mtc servlet defined to preload load-on-startup1/load-on-startup mtc The problem is that the init() method is run twice. If I remove mtc the context definition for the web application, the preloaded mtc servlet only runs init() once (but then I can access it because mtc there is no path mapping.) This is known issue. You can create an empty folder, for example webapps_empty and point your Host to this folder Host name=yahoo.com debug=0 appBase=webapps_empty unpackWARs=false autoDeploy=false It will prevent Tomcat from deploying founded applications in the appBase folder. and now in Context you put path to your context Context path= docBase=/myapp ... now your init should run only once. --- Regards Ivan[a]yourmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: detect WML or HTML
You may be able to discern this using the User-Agent header in the HTTP request. From there it is just a matter of serving the appropriate content, or redirecting. Nathan McMinn Application Developer NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com -Original Message- From: Stefan Moghadam [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 4:30 AM To: [EMAIL PROTECTED] Subject: detect WML or HTML Does anyone have ideas on how to detect WML or HTML browsers from the same site and redirect the user to the same directory using JSP ? I would greatly appreciate the help. Thanks. Stefan Moghadam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what I'm I missing
Hi, I've created a custom minimum server.xml. I don't understand why I can't use the admin manager webapps anymore. What do I have to add to my server.xml to be able to use both applications? Both applications are still in tomcat/webapps/admin.xml tomcat/webapps/manager.xml tomcat/server/webapps/admin/ tomcat/server/webapps/manager/ These are the default location, I did not change any of these files! Here is my server.xml file: Server port=8005 shutdown=SHUTDOWN debug=0 GlobalNamingResources Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved/Resource ResourceParams name=UserDatabase parameter namefactory/name valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value /parameter parameter namepathname/name valueconf/tomcat-users.xml/value /parameter /ResourceParams /GlobalNamingResources Service name=Tomcat Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true/Connector Engine name=Standalone defaultHost=localhost debug=0 Host name=localhost debug=0 appBase=webapps unpackWARs=true autodeploy=true !--Context path= docBase=ROOT debug=0/Context-- /Host /Engine /Service /Server Many thanks Didier - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
Then why does a session gets created again in the response stage? Does tomcat need that for anything? That's annoying! I invalidate the session at the end of execute() method in my Struts Action class since I don't need it anymore, then I trace the code back to RequestDispatcher.java in javax.servlet, only to realize that the session was created again. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 11:45 AM To: Tomcat Users List Subject: RE: Session managing in Tomcat problem Howdy, I want to prevent tomcat creating new session for a particular request(i.e., You can't do that without hacking tomcat internals to the point where it is no longer a Servlet Specification-compliant server. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session managing in Tomcat problem
Yansheng, Then why does a session gets created again in the response stage? Does tomcat need that for anything? That's annoying! I invalidate the session at the end of execute() method in my Struts Action class since I don't need it anymore, then I trace the code back to RequestDispatcher.java in javax.servlet, only to realize that the session was created again. If you don't have: %@ page session=false @ ... at the top of your page, then the JSP might create your session for you. This is because (I think) that session=true is the default. If you want a session (or accept the default), then the resulting Java code has no choice but to include code to get the session. It it annoying that you can't specify session=isAlredyExists or something like that... -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: what I'm I missing
ok, sorry, problem solved! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Severe notification ...
I have my webapp up and running and am stress testing it. After a while I get this: Nov 4, 2003 1:50:12 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 I have no idea why all threads would be busy and waiting. I could raise the value of maxThreads, but that would just delay the error from being reported. I need to get a dump of my tomcat threads and see where the bottleneck is. How do I do this ? Is there a facility in tomcat that would allow me to dump its threads and allow me to see where the threads are waiting and not moving on ? Is there a good utility i can use ? Thanks.
Re: Severe notification ...
Hi, I have had this problem exactly, and have been told that it is a bug in 4.1.24 to 4.1.27 that has been fixed in 4.1.29. Essentially, when working at or near the maximum connections (as defined in the Connector config in server.xml) some threads get permanently deadlocked or something. I didn't investigate much more than that. I created my own workaround which is really a hack not worth sharing here. Perhaps when I have time I will upgrade to 4.1.29 and see if that fixes the problem. If you do upgrade, please post your results to the list! Erik Mufaddal Khumri wrote: I have my webapp up and running and am stress testing it. After a while I get this: Nov 4, 2003 1:50:12 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads are busy, waiting. Please increase maxThreads or check the servlet status75 75 I have no idea why all threads would be busy and waiting. I could raise the value of maxThreads, but that would just delay the error from being reported. I need to get a dump of my tomcat threads and see where the bottleneck is. How do I do this ? Is there a facility in tomcat that would allow me to dump its threads and allow me to see where the threads are waiting and not moving on ? Is there a good utility i can use ? Thanks. -- http://www.spectacle.ca/ The New Online Source for Live Music in Montreal .::514.286.1699::. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux Distribution
There is always Debian. One of the reasons I switched to Debian was how easy it is to stay current with patches. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:00 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Linux Distribution Will they still give out patches promptly for fedora? I doubt it though How's freeBSD or openBSD? -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 5:44 AM To: 'Tomcat Users List' Subject: RE: Linux Distribution Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. Wade -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Linux Distribution Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
wierd error.....
When i have the code below in my web.xml file... error-page error-code404/error-code location/file_not_found.jsp/location /error-page I get this error 2003-11-04 16:31:46 ErrorDispatcherValve[localhost]: Exception Processing ErrorPage[errorCode=404, location=/file_not_found.jsp] java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) ... ... I know the error-page tag is causing the error because the error is no longer present after the tag has been removed..does anyone have any ideas. Russ- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session mixup problem in Tomcat with Coyote Connector
Hi, We are seeing a session mixup problem in a deployed tomcat instance running with coyote connector. A user is seeing another user's data and request parameters. We took a look at the Coyote code and found out that parameters are not reset till the next request. If a thread switch were to occur during this time (due to an exception), is it possible for session data to get mixed up? Please let us know how we can further investigate the problem or if you have a solution for this. Someone please help ASAP because this is a production issue we are facing. Thanks, Krishna. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
Hi Chris, I just tried your suggestion, but I am getting a 500: org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java :684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.j ava:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav a:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058) . . . And it's kind of strange since in my struts-config, I set the action to be request scope. So I tried to trace back and finally got lost in the jungle of forwards's. Oh btw, the ending tag(@) is a typo from you suggestion right? I use '%'. Thanks! -Yan -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 2:09 PM To: Tomcat Users List Subject: Re: Session managing in Tomcat problem Yansheng, Then why does a session gets created again in the response stage? Does tomcat need that for anything? That's annoying! I invalidate the session at the end of execute() method in my Struts Action class since I don't need it anymore, then I trace the code back to RequestDispatcher.java in javax.servlet, only to realize that the session was created again. If you don't have: %@ page session=false @ ... at the top of your page, then the JSP might create your session for you. This is because (I think) that session=true is the default. If you want a session (or accept the default), then the resulting Java code has no choice but to include code to get the session. It it annoying that you can't specify session=isAlredyExists or something like that... -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session managing in Tomcat problem
Yansheng, Hi Chris, I just tried your suggestion, but I am getting a 500: org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession And it's kind of strange since in my struts-config, I set the action to be request scope. Well, if you need something to be in the session, then why are you asking why the session keep getting re-created? Isn't it doing exactly what you want it to do? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
What do you mean I need something to be in the session? Tomcat needs? I was forwarding user back to the request page after finish my execute() method. I don't use session at all. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 3:10 PM To: Tomcat Users List Subject: Re: Session managing in Tomcat problem Yansheng, Hi Chris, I just tried your suggestion, but I am getting a 500: org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession And it's kind of strange since in my struts-config, I set the action to be request scope. Well, if you need something to be in the session, then why are you asking why the session keep getting re-created? Isn't it doing exactly what you want it to do? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session managing in Tomcat problem
Yansheng, What do you mean I need something to be in the session? Tomcat needs? I was forwarding user back to the request page after finish my execute() method. I don't use session at all. You are using a struts bean tag to pull a value out of the session in one of your JSPs. That's the one that needs the session. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
This is my entire jsp page (status.jsp): %@ page language=java % %@ page session=false % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:write name=manageStatusForm property=statusMessage scope=request/ I don't understand it now. And I thought I got scope thing figured out in Struts. Can you explain? Thanks! -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 3:18 PM To: Tomcat Users List Subject: Re: Session managing in Tomcat problem Yansheng, What do you mean I need something to be in the session? Tomcat needs? I was forwarding user back to the request page after finish my execute() method. I don't use session at all. You are using a struts bean tag to pull a value out of the session in one of your JSPs. That's the one that needs the session. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux Distribution
So some how since they are more open source means that Fedora will suck..? Hmmm. Does tomcat suck? Nope. Does Apache suck? nope. What about Castor from Exolab? Nope. That's been my point and I'm sticking to it. What about many other open source projects? What about Netbeans? I can't see the argument for how the Fedora project vs. RH8 or 9 methodology equates to lack of patches, poor work, and an overall bad experience. How about Debian? It is in the same type of arena as Fedora. FreeBSD and OpenBSD are the same type of projects. Check out http://fedora.redhat.com. They have release cycles like most good projects. They have nice sub projects. Leads for the different areas. Seems like a good layout. Am I missing something here? I don't know. But, lets go to the red hat list for this one. We've been having this debate for the past couple of months on that list. Anyways, that's my point. I think I've rambled on long enough. I like RH, SuSE, Slackware, Debian, and a few others. I think RH rocks. Looking forward to Fedora. :-) Wade -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 4:49 PM To: Tomcat Users List Subject: RE: Linux Distribution There is always Debian. One of the reasons I switched to Debian was how easy it is to stay current with patches. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:00 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Linux Distribution Will they still give out patches promptly for fedora? I doubt it though How's freeBSD or openBSD? -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 5:44 AM To: 'Tomcat Users List' Subject: RE: Linux Distribution Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. Wade -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Linux Distribution Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Session managing in Tomcat problem
Yansheng, This is my entire jsp page (status.jsp): %@ page language=java % %@ page session=false % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % bean:write name=manageStatusForm property=statusMessage scope=request/ That's odd: you are definately setting the scope to request. You should inquire on the struts list about this. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000
I am attempting to get this combination to work correctly using an in process Tomcat *without* using AJP, as the 8k hard limit on total request size imposed by AJP is not viable in my situation. Now, I can get the setup to work using AJP, based on the many how-to's contributed by various people (btw thanks for taking the time to make these available) but I cannot find a way to disable AJP and have it work. Is what I am trying to do even possible or does the in-process setup still require AJP? If it is possible, I would love to hear from someone that has made it work. If not, is there an alternative way to hook the 2 together (other than mod_proxy/mod_rewrite as those solutions won't work with the servlets I want to incorporate)? Robert --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000
Robert, I am attempting to get this combination to work correctly using an in process Tomcat *without* using AJP, as the 8k hard limit on total request size imposed by AJP is not viable in my situation. There's an 8k maximum request size with the AJP protocol? Really? I've been uploading files of several MB without a problem for some years now. Am I just misunderstanding you? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Tomcat oracle 9 question ( cant load jdbc class 'null' )
Hi, My Error - Cannot Load JDBC class 'null' . Any suggestions would be great ! 1. I downloaded Tomcat 5.0.12, 2. Read 2 articles about this problem ( King Daniel Alessandra Nanni ) 3. JARS ( classes12 commons-*, in common/lib 4. In server.xml put lines !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource auth=Container description=Oracle 9i database name=myDataSource scope=Shareable type=javax.sql.DataSource / ResourceParams name=myDataSource parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:mydb/value /parameter E.t.c. /ResourceParams /GlobalNamingResources And Context lines Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Apache-Axis docBase=\Mywebapp mapperClass=org.apache.catalina.core.StandardContextMapper path=$CATALINA_HOME/webapps/Mywebapp privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ ResourceLink global=myDataSource name=jdbc/myoracle/ /Context And it does not WORKS . :( Thank you very very much!!! Andrey ! ANei The servlet.jar and classes12.jar should be under $CATALINA_HOME/common/lib ANei I configured my server.xml to Oracle 9 using the jndi through the ANei GlobalNamingResources and it works ANei GlobalNamingResources ANei !-- Test entry for demonstration purposes -- ANei Environment name=simpleValue type=java.lang.Integer value=30/ ANei !-- Editable user database that can also be used by ANei UserDatabaseRealm to authenticate users -- ANei Resource auth=Container description=Oracle 9i database ANei name=jdbc/myoracle type=javax.sql.DataSource/ ANei ResourceParams name=jdbc/myoracle ANei parameter ANei namefactory/name ANei valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ANei /parameter ANei parameter ANei namedriverClassName/name ANei valueoracle.jdbc.driver.OracleDriver/value ANei /parameter ANei parameter ANei nameurl/name ANei valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value ANei /parameter ANei parameter ANei nameusername/name ANei valuexyz/value ANei /parameter ANei parameter ANei namepassword/name ANei valuexyz/value ANei /parameter ANei parameter ANei namemaxActive/name ANei value80/value ANei /parameter ANei parameter ANei namemaxIdle/name ANei value40/value ANei /parameter ANei parameter ANei namemaxWait/name ANei value1/value ANei /parameter ANei /ResourceParams ANei /GlobalNamingResources ANei Context className=org.apache.catalina.core.StandardContext ANei cachingAllowed=true ANei charsetMapperClass=org.apache.catalina.util.CharsetMapper ANei cookies=true crossContext=false debug=1 displayName=Apache-Axis ANei docBase=our_application ANei mapperClass=org.apache.catalina.core.StandardContextMapper ANei path=/our_application privileged=false ANei reloadable=false swallowOutput=false useNaming=true ANei wrapperClass=org.apache.catalina.core.StandardWrapper ANei Logger className=org.apache.catalina.logger.FileLogger ANei prefix=localhost_our_application_log. suffix=.txt ANei timestamp=true/ ANei ResourceLink global=jdbc/myoracle name=database/ ANei /Context ANei In your Context you have to put ResourceLink global tag. ANei The global attribute of the tag refers to the ResourceParam defined up in the ANei GlobalNamingResources ANei The name attribute of the tag refers to the
RE: Session managing in Tomcat problem
Ok, but in case anyone wants to know more about the error, here is its entirety. it does seem it's more of struts-related from the ROOT cause. Thanks! HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java :684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.j ava:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.jav a:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1058) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor. java:451) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor. java:401) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1420) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:502) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt erChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain. java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2 56) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1 91) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java :171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio n(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:61 9) at java.lang.Thread.run(Thread.java:536) root cause java.lang.IllegalArgumentException: can't access SESSION_SCOPE without an HttpSession at org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextImpl.java:220) at
security-constraint question
Hi everybody, Im using the security-constraint feature of Tomcat. Everything works well, but I dont know how to retrieve the login entered during authentication to use it throughout my application... Have you guys done this before ? thx My login page is specified in my web.xml: login-config auth-methodFORM/auth-method realm-nameAutenticacao/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/errorpage.html/form-error-page /form-login-config /login-config
Re: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000
At 09:37 AM 5/11/2003, Christopher Schultz wrote: Robert, I am attempting to get this combination to work correctly using an in process Tomcat *without* using AJP, as the 8k hard limit on total request size imposed by AJP is not viable in my situation. There's an 8k maximum request size with the AJP protocol? Really? I've been uploading files of several MB without a problem for some years now. Am I just misunderstanding you? From http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/common/AJPv13.html#Questions%20I%20Have What happens if the request headers max packet size? There is no provision to send a second packet of request headers in case there are more than 8K So more correctly if the http request has more than 8k in the headers it will fail (e.g. posting a lot of form information) and one of the servlets I'm trying to hook into Apache is the Chiba XForms implementation which can (relatively) easily exceed this limit. Robert --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.532 / Virus Database: 326 - Release Date: 27/10/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: security-constraint question
First of all, I am not sure that you need realm-name in teh web.xml if you user form-based authentication. You may use getRemoteUser() to get the name of the user. --- Giselle Dazzi [EMAIL PROTECTED] wrote: Hi everybody, Im using the security-constraint feature of Tomcat. Everything works well, but I dont know how to retrieve the login entered during authentication to use it throughout my application... Have you guys done this before ? thx My login page is specified in my web.xml: login-config auth-methodFORM/auth-method realm-nameAutenticacao/realm-name form-login-config form-login-page/login.jsp/form-login-page form-error-page/errorpage.html/form-error-page /form-login-config /login-config __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED, THANKS A LOT King Daniel Alessandra !!!
Hello Andrey, Wednesday, November 5, 2003, 12:39:17 AM, you wrote: Hi, My Error - Cannot Load JDBC class 'null' . ARun Any suggestions would be great ! ARun 1. I downloaded Tomcat 5.0.12, ARun 2. Read 2 articles about this problem ARun ( King Daniel Alessandra Nanni ) ARun 3. JARS ( classes12 commons-*, in common/lib ARun 4. In server.xml put lines ARun !-- Global JNDI resources -- ARun GlobalNamingResources ARun !-- Test entry for demonstration purposes -- ARun Environment name=simpleValue type=java.lang.Integer value=30/ ARun !-- Editable user database that can also be used by ARun UserDatabaseRealm to authenticate users -- ARun Resource auth=Container ARundescription=Oracle 9i database ARunname=myDataSource ARunscope=Shareable ARuntype=javax.sql.DataSource / ARun ResourceParams name=myDataSource ARun parameter ARun namefactory/name ARun valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ARun /parameter ARun parameter ARun namedriverClassName/name ARun valueoracle.jdbc.driver.OracleDriver/value ARun /parameter ARun parameter ARun nameurl/name ARun valuejdbc:oracle:thin:@localhost:1521:mydb/value ARun /parameter ARun E.t.c. ARun /ResourceParams ARun /GlobalNamingResources ARun And Context lines ARun Context className=org.apache.catalina.core.StandardContext ARun cachingAllowed=true ARun charsetMapperClass=org.apache.catalina.util.CharsetMapper ARun cookies=true ARun crossContext=false ARun debug=0 ARun displayName=Apache-Axis ARun docBase=\Mywebapp ARun mapperClass=org.apache.catalina.core.StandardContextMapper ARun path=$CATALINA_HOME/webapps/Mywebapp ARun privileged=false ARun reloadable=false ARun swallowOutput=false ARun useNaming=true ARun wrapperClass=org.apache.catalina.core.StandardWrapper ARun Logger className=org.apache.catalina.logger.FileLogger ARun prefix=localhost_our_application_log. ARun suffix=.txt ARun timestamp=true/ ARun ResourceLink global=myDataSource name=jdbc/myoracle/ ARun /Context ARun And it does not WORKS . :( ARun Thank you very very much!!! ARun Andrey ! ANei The servlet.jar and classes12.jar should be under $CATALINA_HOME/common/lib ANei I configured my server.xml to Oracle 9 using the jndi through the ANei GlobalNamingResources and it works ANei GlobalNamingResources ANei !-- Test entry for demonstration purposes -- ANei Environment name=simpleValue type=java.lang.Integer value=30/ ANei !-- Editable user database that can also be used by ANei UserDatabaseRealm to authenticate users -- ANei Resource auth=Container description=Oracle 9i database ANei name=jdbc/myoracle type=javax.sql.DataSource/ ANei ResourceParams name=jdbc/myoracle ANei parameter ANei namefactory/name ANei valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ANei /parameter ANei parameter ANei namedriverClassName/name ANei valueoracle.jdbc.driver.OracleDriver/value ANei /parameter ANei parameter ANei nameurl/name ANei valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value ANei /parameter ANei parameter ANei nameusername/name ANei valuexyz/value ANei /parameter ANei parameter ANei namepassword/name ANei valuexyz/value ANei /parameter ANei parameter ANei namemaxActive/name ANei value80/value ANei /parameter ANei parameter ANei namemaxIdle/name ANei value40/value ANei /parameter ANei parameter ANei namemaxWait/name ANei value1/value ANei /parameter ANei /ResourceParams ANei /GlobalNamingResources ANei Context className=org.apache.catalina.core.StandardContext ANei cachingAllowed=true ANei charsetMapperClass=org.apache.catalina.util.CharsetMapper ANei cookies=true crossContext=false debug=1 displayName=Apache-Axis ANei docBase=our_application ANei mapperClass=org.apache.catalina.core.StandardContextMapper ANei path=/our_application privileged=false ANei reloadable=false swallowOutput=false useNaming=true ANei wrapperClass=org.apache.catalina.core.StandardWrapper ANei Logger className=org.apache.catalina.logger.FileLogger ANei
RE: wierd error.....
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 10:54 AM To: [EMAIL PROTECTED] Subject: wierd error. When i have the code below in my web.xml file... error-page error-code404/error-code location/file_not_found.jsp/location /error-page I get this error 2003-11-04 16:31:46 ErrorDispatcherValve[localhost]: Exception Processing ErrorPage[errorCode=404, location=/file_not_found.jsp] java.net.SocketException: Connection reset by peer: socket write error at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) ... ... I know the error-page tag is causing the error because the error is no longer present after the tag has been removed..does anyone have any ideas. Russ- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session mixup problem in Tomcat with Coyote Connector
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: Krishna Ganti [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 10:58 AM To: [EMAIL PROTECTED] Subject: Session mixup problem in Tomcat with Coyote Connector Hi, We are seeing a session mixup problem in a deployed tomcat instance running with coyote connector. A user is seeing another user's data and request parameters. We took a look at the Coyote code and found out that parameters are not reset till the next request. If a thread switch were to occur during this time (due to an exception), is it possible for session data to get mixed up? Please let us know how we can further investigate the problem or if you have a solution for this. Someone please help ASAP because this is a production issue we are facing. Thanks, Krishna. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:03 AM To: 'Tomcat Users List' Subject: RE: Session managing in Tomcat problem Hi Chris, I just tried your suggestion, but I am getting a 500: org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java :684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.j ava:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .jav a:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 58) . . . And it's kind of strange since in my struts-config, I set the action to be request scope. So I tried to trace back and finally got lost in the jungle of forwards's. Oh btw, the ending tag(@) is a typo from you suggestion right? I use '%'. Thanks! -Yan -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 2:09 PM To: Tomcat Users List Subject: Re: Session managing in Tomcat problem Yansheng, Then why does a session gets created again in the response stage? Does tomcat need that for anything? That's annoying! I invalidate the session at the end of execute() method in my Struts Action class since I don't need it anymore, then I trace the code back to RequestDispatcher.java in javax.servlet, only to realize that the session was created again. If you don't have: %@ page session=false @ ... at the top of your page, then the JSP might create your session for you. This is because (I think) that session=true is the default. If you want a session (or accept the default), then the resulting Java code has no choice but to include code to get the session. It it annoying that you can't specify session=isAlredyExists or something like that... -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session managing in Tomcat problem
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:10 AM To: Tomcat Users List Subject: Re: Session managing in Tomcat problem Yansheng, Hi Chris, I just tried your suggestion, but I am getting a 500: org.apache.jasper.JasperException: can't access SESSION_SCOPE without an HttpSession And it's kind of strange since in my struts-config, I set the action to be request scope. Well, if you need something to be in the session, then why are you asking why the session keep getting re-created? Isn't it doing exactly what you want it to do? -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Linux Distribution
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:21 AM To: 'Tomcat Users List' Subject: RE: Linux Distribution So some how since they are more open source means that Fedora will suck..? Hmmm. Does tomcat suck? Nope. Does Apache suck? nope. What about Castor from Exolab? Nope. That's been my point and I'm sticking to it. What about many other open source projects? What about Netbeans? I can't see the argument for how the Fedora project vs. RH8 or 9 methodology equates to lack of patches, poor work, and an overall bad experience. How about Debian? It is in the same type of arena as Fedora. FreeBSD and OpenBSD are the same type of projects. Check out http://fedora.redhat.com. They have release cycles like most good projects. They have nice sub projects. Leads for the different areas. Seems like a good layout. Am I missing something here? I don't know. But, lets go to the red hat list for this one. We've been having this debate for the past couple of months on that list. Anyways, that's my point. I think I've rambled on long enough. I like RH, SuSE, Slackware, Debian, and a few others. I think RH rocks. Looking forward to Fedora. :-) Wade -Original Message- From: John Corrigan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 4:49 PM To: Tomcat Users List Subject: RE: Linux Distribution There is always Debian. One of the reasons I switched to Debian was how easy it is to stay current with patches. -Original Message- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:00 PM To: 'Tomcat Users List'; [EMAIL PROTECTED] Subject: RE: Linux Distribution Will they still give out patches promptly for fedora? I doubt it though How's freeBSD or openBSD? -Original Message- From: Wade Chandler [mailto:[EMAIL PROTECTED] Sent: November 4, 2003 5:44 AM To: 'Tomcat Users List' Subject: RE: Linux Distribution Actually Red Hat isn't just dropping their free distro. They are moving to a model closer to the model you see right here. http://fedora.redhat.com Why not just use that? You are used to the Red Hat setup (I guess). SuSE is a good distro. You could also use Debian, but you'll find Red Hat and SuSE more commercially supported. Depends on what you need I guess. You can still download Fedora for free (all ISO's). Their new model is a good thing. Red Hat developers working with the rest of the open source community. Awesome. They're more open. Wade -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 7:23 AM To: [EMAIL PROTECTED] Subject: Linux Distribution Hi, We are actually using the RedHat Linux Distribution for our developpment environnment. Redhat doesn't offer anymore free patches for Redhat anterior to version 9. Free Patches for Redhat 9.0 will stop on 30 avril. We are thinking about choosing another distribution. What distribution do u use actually and which one would u choose instead of Redhat ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: Robert Leftwich [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:27 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.29, Apache 2.0.48, mod_jk2 2.02, JDK 1.4.2 and W2000 I am attempting to get this combination to work correctly using an in process Tomcat *without* using AJP, as the 8k hard limit on total request size imposed by AJP is not viable in my situation. Now, I can get the setup to work using AJP, based on the many how-to's contributed by various people (btw thanks for taking the time to make these available) but I cannot find a way to disable AJP and have it work. Is what I am trying to do even possible or does the in-process setup still require AJP? If it is possible, I would love to hear from someone that has made it work. If not, is there an alternative way to hook the 2 together (other than mod_proxy/mod_rewrite as those solutions won't work with the servlets I want to incorporate)? Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re[2]: Tomcat oracle 9 question ( cant load jdbc class 'null' )
Hi, We are independent consultants currently undertaking a study of satisfaction among end-users of Open Source Software, notably Tomcat, for a company which has asked us for recommendations in terms of deploying policy for such systems. I was hoping to set up a quick (5 minute) telephone interview with yourself or the appropriate person to discuss your experience with this product to date. Please feel free to telephone me anytime, or reply to this e-mail indicating an appropriate time/person for me to recall. Thanks for your gracious attention to this request! Best regards, Tracy Tracy Saward Fleetward Group 85 Maskell Street St Heliers Auckland New Zealand Tel: 64 9 575 1626 Fax: 64 9 585 0939 Mail: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:39 AM To: Tomcat Users List Subject: Re[2]: Tomcat oracle 9 question ( cant load jdbc class 'null' ) Hi, My Error - Cannot Load JDBC class 'null' . Any suggestions would be great ! 1. I downloaded Tomcat 5.0.12, 2. Read 2 articles about this problem ( King Daniel Alessandra Nanni ) 3. JARS ( classes12 commons-*, in common/lib 4. In server.xml put lines !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- Resource auth=Container description=Oracle 9i database name=myDataSource scope=Shareable type=javax.sql.DataSource / ResourceParams name=myDataSource parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter namedriverClassName/name valueoracle.jdbc.driver.OracleDriver/value /parameter parameter nameurl/name valuejdbc:oracle:thin:@localhost:1521:mydb/value /parameter E.t.c. /ResourceParams /GlobalNamingResources And Context lines Context className=org.apache.catalina.core.StandardContext cachingAllowed=true charsetMapperClass=org.apache.catalina.util.CharsetMapper cookies=true crossContext=false debug=0 displayName=Apache-Axis docBase=\Mywebapp mapperClass=org.apache.catalina.core.StandardContextMapper path=$CATALINA_HOME/webapps/Mywebapp privileged=false reloadable=false swallowOutput=false useNaming=true wrapperClass=org.apache.catalina.core.StandardWrapper Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_our_application_log. suffix=.txt timestamp=true/ ResourceLink global=myDataSource name=jdbc/myoracle/ /Context And it does not WORKS . :( Thank you very very much!!! Andrey ! ANei The servlet.jar and classes12.jar should be under ANei $CATALINA_HOME/common/lib I configured my server.xml to Oracle 9 ANei using the jndi through the GlobalNamingResources and it works ANei GlobalNamingResources ANei !-- Test entry for demonstration purposes -- ANei Environment name=simpleValue type=java.lang.Integer ANei value=30/ ANei !-- Editable user database that can also be used by ANei UserDatabaseRealm to authenticate users -- ANei Resource auth=Container description=Oracle 9i database ANei name=jdbc/myoracle type=javax.sql.DataSource/ ANei ResourceParams name=jdbc/myoracle ANei parameter ANei namefactory/name ANei valueorg.apache.commons.dbcp.BasicDataSourceFactory/value ANei /parameter ANei parameter ANei namedriverClassName/name ANei valueoracle.jdbc.driver.OracleDriver/value ANei /parameter ANei parameter ANei nameurl/name ANei valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value ANei /parameter ANei parameter ANei nameusername/name ANei valuexyz/value ANei /parameter ANei parameter ANei namepassword/name ANei valuexyz/value ANei /parameter ANei parameter ANei namemaxActive/name ANei value80/value ANei /parameter ANei parameter ANei namemaxIdle/name ANei value40/value ANei /parameter ANei parameter ANei namemaxWait/name ANei value1/value ANei /parameter ANei /ResourceParams ANei
Servlet Loaded
To all, Anybody know how you can tell if a specific servlet is loaded into Tomcat(4.1.29) after it's started? -Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: security-constraint question
Giselle, Im using the security-constraint feature of Tomcat. Everything works well, but I dont know how to retrieve the login entered during authentication to use it throughout my application... Have you guys done this before ? What you want is request.getUserPrincipal(). This will return a java.security.Principal object. You can get the name by calling getName() on that object. Unfortunately, you can't get the role or roles for the user. You have to know the roles beforehand and then use request.isUserInRole to determine wether they are or are not in a given role. :( -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]