Re: Help w/ Tomcat 4.0b6 and Apache
Hi, I'm using it but as you have found out I think very few ppl are using it on this list. I was able to view servlets thru apache, but the integration fails whenever I try reading any data (I use the post method for form data). I found a java null pointer exception in the catalina log trying to read from the input stream, which I guess is the problem. I have posted a bug on the bugzilla site. As with your experience everything works flawlessly when accessing the servlets thru tomcat directly, but seems broken when using the apache-tomcat extension. This could be some mis-configuration, or a bug but either way the lack of any response is not encouraging. I know this is no help, but at least someone else is suffering as well :-). If I get any response I'll post it to this list Jeff On Wednesday 25 July 2001 03:45, you wrote: Folks: I have received but a single response to my multiple posts regarding Tomcat 4 Beta 6 and Apache, but, alas, it, was not helpful. Given the otherwise high level of activity on this list, I must again ask this question: Is anybody on this list successfully using Tomcat 4 with Apache?? If so, I would desperately like to know your configuration and see the relevant parts of your server.xml, apache configs, and know what module/version you are using as bridge between Apache and Tomcat. Our desired benchmark is simply to achieve the same behaviors from the example JSP's through port 80 (via Apache) as we do through port 8080. It has taken enormous effort just to get something limping along, but still the transport between Apache and Tomcat (mod_webapp) is clearly broken - key header variables have default values instead of actual values, preventing the application from using sessions or accessing the proper values of header variables. As an example, the snoop JSP provides reasonable values when executed from port 8080 but reports mostly null's and -1's, when executed from port 80. We are using the latest versions of everything - Tomcat milestone 4.0b6, apr, and mod_webapp CVS snapshot. We have tried using the Java Warp code that comes with Tomcat, and replacing it with the Java part of the mod_webapp build. I have also rebuilt mod_webapp with --enable-debug and see NO DIFFERENCE WHATSOEVER in the log contents. Any ideas at all would be appreciated. If I don't get any responses I will have to conclude that nobody is actually using Tomcat 4. However, I find it difficult to justify that conclusion for a distribution in its 6th Beta!! Thanks, Mark -- Mark Dzmura Digital Mission LLC
RE: keeping sessions when switching from http to https
Title: Re: keeping sessions when switching from http to https Dear David, Yes, with cookies turned on it alsow works on my end, no problem. However, many people have cookies turned off, and for any real world application, it MUST also work when cookies are turned off. Go to Netscape, turn cookies off, and then try your own programs again. If you can still switch from one to the other, bingo, I will pay you something if you tell me the trick. (I am using secure and insecure in same context). Thanks, Pat -Original Message-From: David Cassidy (Programmer) [mailto:[EMAIL PROTECTED]]Sent: Dienstag, 24. Juli 2001 18:22To: [EMAIL PROTECTED]Subject: Re: keeping sessions when switching from http to https This is rubbish. I'm using tomcat and switching between secure and non secure sites and the session is following no probs. (i'm using cookies though) Is your context the same on the secure and insecure ones ? Can you provide an example of the link that you are using to go between the insecure one and the secure one. ( and the link that it produces :) ) Thanks David Brigger Patrick wrote: This is for use in an e-commerece application. The customer puts items in his shopping basket. When he decides to purchase, the login and credit card input pages are under https. Therefore, I need to establish a session under http and carry it over to https! This works perfectly fine using JServ (real life example: www.getabstract.com). I am surprised to find out that I should be the first one who needs this using Tomcat!(?). Any real-life e-shop application will face this requirement. Has really nobody done this before? Thanks for the answer, anyway. Pat -Original Message- From: Wyn Easton [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 15:17 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https What if you don't create the session until you switch to https? A session is pinned to a domain. The domain includes the scheme (http or https) so when you switch from http to https you will loose your session. Also the port number will change, which changes the domain. --- Brigger Patrick [EMAIL PROTECTED] wrote: Hi, Without cookies, I loose my session object when switching from http to https using encodeUrl. Can anyone help? Otherwise, it makes Tomcat really useless in real life applications, where it is absolutely necessary to support customers that have cookies disabled. Thanks, Pat __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
AW: not allow directory listing
Hi, With Tomcat 3.2.2 I did it in the server.xml file: . !-- default handler - static files and dirs. Set the suppress property to true to suppress directory listings when no welcome file is present. NOTE: This setting applies to *all* web applications that are running in this instance of Tomcat. -- RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=true / ... setting the suppress=true like the comment said. Bye Raffaella -Ursprüngliche Nachricht- Von: gary MacPhil [SMTP:[EMAIL PROTECTED]] Gesendet am: Mittwoch, 25. Juli 2001 02:17 An: [EMAIL PROTECTED] Betreff: not allow directory listing How do you not allow a directory listing in tomcat for any web app? If I have a web app called foo, then I could do http://host:port/foo and get the directory listing of all files and directories. If I place a index.html in this dir, then it will stop it for this directory, but not all sub-dirs. Any ideas? Thanks, Gary __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: keeping sessions when switching from http to https
When I try with cookies enabled, it works both on Netscape and IE 5. Cookies disabled does not work on either. Pat -Original Message- From: Mike Spreitzer [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 19:13 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https Be careful when you experiment and report on this. I have found that IE 5 carries cookies from http to https but Netscape 4 does not. I have only tested this with cookies, not URL-rewriting. I'm grumped by this problem, but it's not critcal for me yet --- for my current site, I think I can get away with only having sessions on the https side. Mike
Tomcat multibyte data
Hi All, I have a servlet hosted in tomcat3.2.1. I am trying to get it work with multibyte data with no luck. Does the tomcat servlet container support multibyte data. Any information or pointers to info will be greatly appreicated. Thanx Ganesh
Re: expression tag in JSP standar
At 12:05 AM 25/07/01, you wrote: Given that Tomcat is the reference implementation I would assume its implementation is the correct one. And assuming, of course, that the behaviour is defined... In the spec for JSP1.1 the only thing it says is that the expression is coerced into a String. What the container does with a null String is up to it. (This may mean that any of the types of behaviour you've seen is/are correct.) cheesr dim On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: Hi, I have notice a miss-implementation of the 'expression tag' (%= ... %) between different JSP containers witch I want to share with you to clarify the standar vs. implementarion. The main issue is that an expression of type %= variable % within a JSP page prints out different strings when 'variable' is 'null' ((variable == null) is true) ('variable' is of class 'String') Tomcat v3.2.1 prints out the string null, while some other JSP containers (BEA Weblogic v6.0, HP Bluestone total-e-server v7.2) print out an empty string (nothing). However an expresion of type %= (variable1 + variable2) % prints out the same on every container (where both variables are 'String', and variable1 is NOT null and variable2 IS null) Does anyone have an opinion on what should be the correct behave for the expression-tag?. Is there any missunderstanding of the JSP specifications/standar?. Why the %= .. % tag behaves different on different containers (same jdk 1.3.0)?. I wonder what is the behave on other containers (iPlanet, Websphere, Tomcat 4, other..). Can anyone test it and give feedback?. Here is the code I've tested: jsp -- % String a = null; String b = hello world; % htmlboby 1 -%=a%-p 2 -%=b%-p 3 -%=(b + a)%-p /body/html -- Results: - TOMCAT - 1 -null- 2 -hello world- 3 -hello worldnull- - TOMCAT - - BEA BLUESTONE - 1 -- 2 -hello world- 3 -hello worldnull- - BEA BLUESTONE - Notice line 1 is different while 2 3 are equal. Best regards Bob. -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
Fw: Forbidden error, you are unable to access /examples from this server: please help, veryurgent
From: raghu To: tomcat Sent: Tuesday, July 24, 2001 6:30 PM Subject: 403: Forbidden error, you are unable to access /examples from this server Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this problem. bye, raghu "black holes are,when GOD is dividing by zero"
request for suggestions on how to secure a web application....
This posting is a request for suggestions on how best to secure a web application. First my setup: NT 4.0 Apache 1.3.12 Tomcat 3.2.1 (running behind Apache) servlets jsp pages static html pages jdk1.3 Web-app directory structure: webapps/my_context/ /jsp/jsp_pages /web-inf/classes/my_servlets /web-inf/classes/beans/my_java_beans My static html files reside under the apache document root. For servlet access I am using session cookies, as specified in the Java Servlet Spec, to authorize users. This works very well for my purposes. My concern is protecting sensitive jsp and static html pages. How do I stop an unauthorized user from accessing a jsp or html resource directly? ie: a back-door attack. For example, I am protecting my site with a login page, but if a user simply sidesteps the login and types http://my_domain/my_context/jsp/any_jsp_page into his browser, he will get access to any jsp page that resides in the specified context. I have experimented with some different approaches: 1. hide the jsp directory directly under the /web-inf directory and let Tomcat restrict access. So I would have: /web-inf/classes/servlets /web-inf/jsp/jsp_pages Then provide access to jsp pages only through a verification servlet, which can verify the user and then forward the request to the correct resource. However, this is causing problems when I utilize a RequestDispatcher(path).forward(req, res) or RequestDispatcher(path).include(req, res) instruction. The path needs to start with a / and be relative to the context root, per the Java Servlet API docs, which makes it impossible(?) to provide a correct path, since my verification servlet, and hence the execution thread, is in /web-inf/classes. When I issue the forward or inlude, I need to provide a path that looks something like: /../jsp/jsp_page which is correctly making the JVM puke. 2. Utilize the apache rewrite module and have apache rewrite all requests for http://my_domain/my_context/jsp/*.jsp to my verification servlet. The verification servlet can then do its thing and forward valid requests to the appropriate request. A hornet's nest of complexity here! and my nose tells me this is the wrong path to take. 3. Thought a lot about utilizing the Tomcat API. ie: RequestInterceptor, Virtual Host, Valves etc. I found rudimentary information about what these constructs are, but very little on how to use them. So, I am kinda stumped :-( I guess the next step would be to explore Basic or Digest Authorization, but I was hoping there would be a simpler way, that uses the power of servlets I would greatly welcome any and all suggestions Thank you, and keep up the great work. The Tomcat effort rocks! Peter BTW, I anticipate that the Tomcat docs will improve greatly in the future, and I was greatly encouraged to see the effort being put into making a book, and the template forming around v4.0 I would like to suggest a section on real world examples, using and programming the Tomcat API and the xml config files, like server.xml. For an example of what I mean, the documentation for the Apache mod_rewrite, written by Ralf S. Engelschall, has a section on practical solutions. http://httpd.apache.org/docs/mod/mod_rewrite.html That's kinda what I mean.
Dynamically Generate PDF
Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
Servlets In A Package
Title: Servlets In A Package Hi, I've recently installed JBoss-2.4.0_Tomcat-3.2.2 and I'm now starting to experiment with all the JBoss samples. The first, Interest, contains a servlet that I'm trying to get up and running. This InterestServlet is in a package org.jboss.docs.interest which I've compiled and placed in webapps\demo\WEB-INF\classes\org\jboss\docs\interest demo\WEB-INF\web.xml looks like: -- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd web-app servlet servlet-name interest /servlet-name servlet-class org.jboss.docs.interest.InterestServlet /servlet-class /servlet servlet-mapping servlet-name interest /servlet-name url-pattern /catalog /url-pattern /servlet-mapping /web-app -- and I've added the following to conf\server.xml -- Context path=/demo docBase=webapps/demo crossContext=false debug=0 reloadable=true /Context -- When I enter http://localhost:8080/demo/catalog in my browser I get: -- Location: /demo/catalog Internal Servlet Error: java.lang.NoClassDefFoundError: org/jboss/docs/interest/Interest at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Unknown Source) at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.core.Handler.service(Handler.java:254) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source) -- I've looked at other TomCat samples, in particular webapps\test\WEB-INF\classes\requestMap and I appear to have done everything right but I can't make sense of this. Could someone help me? Thanks, Martin
RE: Dynamically Generate PDF
You can use Style Report Pro to generate PDF Files dynamically from Java application. -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Dynamically Generate PDF Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
RE: Dynamically Generate PDF
I haven't done it from servelet, but from a XML I have made a PDF using Apache Cocoon. try it.. you have a example too in it. hope it helps ? Regards Senthil Kumar.r -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: Dynamically Generate PDF Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
RE: Dynamically Generate PDF
Hi, I was working on the same problem and have been told of a java utility to convert XSL formatted XML into PDF: http://xml.apache.org/fop/ I have not tried it yet and I suppose it seems like the long way round - but if you are using XML as a format it might be your solution. Another drawback might be that the XSL specification is not yet stable and could change considerably. I would be interested in what you find out. Robin Herbert -Original Message- From: Kaneda K [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 25 July 2001 5:48 PM To: [EMAIL PROTECTED] Subject: Dynamically Generate PDF Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
configuring tomcat 4 and apache 1.3
Hi, someone knows how to configurate tomcat 4 and apache 1.3 on winnt system?? tanks!!
AW: request for suggestions on how to secure a web application....
Your JSP can check if there's a valid login before processing. In our application we use a login object with user information for authenticated users and store it in the user session. (BTW we use a servlet as a controller and Velocity to handle the view - so it's impossible to access directly a page without passing the controller) Reto -Ursprüngliche Nachricht- Von: Peter Brandt-Erichsen [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 25. Juli 2001 09:51 An: [EMAIL PROTECTED] Betreff: request for suggestions on how to secure a web application This posting is a request for suggestions on how best to secure a web application. First my setup: NT 4.0 Apache 1.3.12 Tomcat 3.2.1 (running behind Apache) servlets jsp pages static html pages jdk1.3 Web-app directory structure: webapps/my_context/ /jsp/jsp_pages /web-inf/classes/my_servlets /web-inf/classes/beans/my_java_beans My static html files reside under the apache document root. For servlet access I am using session cookies, as specified in the Java Servlet Spec, to authorize users. This works very well for my purposes. My concern is protecting sensitive jsp and static html pages. How do I stop an unauthorized user from accessing a jsp or html resource directly? ie: a back-door attack. For example, I am protecting my site with a login page, but if a user simply sidesteps the login and types http://my_domain/my_context/jsp/any_jsp_page into his browser, he will get access to any jsp page that resides in the specified context. I have experimented with some different approaches: 1. hide the jsp directory directly under the /web-inf directory and let Tomcat restrict access. So I would have: /web-inf/classes/servlets /web-inf/jsp/jsp_pages Then provide access to jsp pages only through a verification servlet, which can verify the user and then forward the request to the correct resource. However, this is causing problems when I utilize a RequestDispatcher(path).forward(req, res) or RequestDispatcher(path).include(req, res) instruction. The path needs to start with a / and be relative to the context root, per the Java Servlet API docs, which makes it impossible(?) to provide a correct path, since my verification servlet, and hence the execution thread, is in /web-inf/classes. When I issue the forward or inlude, I need to provide a path that looks something like: /../jsp/jsp_page which is correctly making the JVM puke. 2. Utilize the apache rewrite module and have apache rewrite all requests for http://my_domain/my_context/jsp/*.jsp to my verification servlet. The verification servlet can then do its thing and forward valid requests to the appropriate request. A hornet's nest of complexity here! and my nose tells me this is the wrong path to take. 3. Thought a lot about utilizing the Tomcat API. ie: RequestInterceptor, Virtual Host, Valves etc. I found rudimentary information about what these constructs are, but very little on how to use them. So, I am kinda stumped :-( I guess the next step would be to explore Basic or Digest Authorization, but I was hoping there would be a simpler way, that uses the power of servlets I would greatly welcome any and all suggestions Thank you, and keep up the great work. The Tomcat effort rocks! Peter BTW, I anticipate that the Tomcat docs will improve greatly in the future, and I was greatly encouraged to see the effort being put into making a book, and the template forming around v4.0 I would like to suggest a section on real world examples, using and programming the Tomcat API and the xml config files, like server.xml. For an example of what I mean, the documentation for the Apache mod_rewrite, written by Ralf S. Engelschall, has a section on practical solutions. http://httpd.apache.org/docs/mod/mod_rewrite.html That's kinda what I mean.
Re: Dynamically Generate PDF
Kaneda K [EMAIL PROTECTED] wrote: Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips. I've tried to do this with jsp (without succes), but with a servlet it can be done quite easy: Use tex-dvi-ps-pdf (where tex is a TeX document, (LaTeX)) (maybe it can be done even easier...) If someone knows how i could do this with jsp, (read tex with taglibs) i'm eager to know it) p.s.It would be handy to cache the results ;p -- Eduard Witteveen Systeem Ontwikkelaar NOS Internet, Mediacentrum Kamer 203 +31(0)356773059 http://www.omroep.nl/ Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal
configuring tomcat 4 and apache 1.3
Hi, someone knows how to configurate tomcat 4 and apache 1.3 on winnt system?? tanks!! Marco
Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent
Hello, I have included the mod_jk.conf-auto file in my httpd.conf. Should i mount the directories separately? My feeling is that mod_jk.conf takes care of it "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:19 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Have you checked your Apache httpd.conf file ? have you mountedyour directory in your apache? Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 12:54 PMTo: tomcatSubject: Fw: Forbidden error, you are unable to access /examples from this server: please help, veryurgent From: raghu To: tomcat Sent: Tuesday, July 24, 2001 6:30 PM Subject: 403: Forbidden error, you are unable to access /examples from this server Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this problem. bye, raghu "black holes are,when GOD is dividing by zero"
Custom HTTP status code
Hi! I'm developing an application not targeted to the web, but still I need to use the HTTP as the protocol. I've chosen to specify five new status code, to report some kind of errors I may generate and that aren't covered by existing ones. These codes are 601, 602, 603, 605, 606. The problem is that using JRun it just ignored the error code, and reported the page normally; tomcat, on the other hand, throws an exception everytime my application reports one such code. This degrades performances very much... Is there a way to specify these new codes as valid? And, in case, to bind a string to them as a description, just as for the other ones? I saw there are some LocalString.properties files, but I can't get them to work; and I think they're just for localization... Many thanks, Germano Rizzo
Re: IIS and Tomcat
On Tuesday 24 July 2001 17:21 pm, you wrote: On Tuesday 24 July 2001 17:13 pm, you wrote: Hi all, I don't know why ppl have issues with IIS. I followed the jakarta docs to the ltter and had it working within an hour! Downloaded the 4.0beta6.zip and I'm looking for the docs. Where are they :-) Does this work with IIS4? -- John Baker, BSc CS. Java developer, Linux lover. I don't wanna rock, DJ.
JkMount instruction
Hi I would like to know if the equivalent of: ApJServMount /something ajpv12://localhost:9500/something exists with the command JkMount (note the port). Thanks Loïc Lefèvre
META: E-mail format
Greetings all! Use of HTML- and RTF-formatted e-mail is on rise and needs to stop ASAP. Most recent (messages sent on July 25th) offenders are: - Prosa - raghu - Senthil Kumar Rajamanickam - Martin Welch - Brigger Patrick - [EMAIL PROTECTED] - Michael Petres Now, I am not the moderator or the owner of this list, I'm just a regular user who read and understood mailing list's guidelines before joining. I use MS Outlook 2000 to write this message yet I don't use RTF (Format - Plain Text - Yes) - trust me, it's easy. Using HTML of RTF in your e-mail is not only considered rude, it also reduces your chances of being responded to because many people on this list don't use fancy mail clients and see your message as garbage. Here's pertinent paragraph from the Jakarta Mailing Lists page (http://jakarta.apache.org/site/mail.html): Do your best to ensure that you are not sending HTML or Stylelized email to the list. If you are using Outlook or Outlook Express or Eudora, chances are that you are sending HTML email by default. There is usually a setting that will allow you to send Plain Text email. Regards, Emir.
mod_jk.dll
hi trying to locate the above file - the link on the jakarta.apache [http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/mod_jk.dll] is dead, can anyone send me theirs or let me know where else it's available ? thanks in advance. rgds david. David Tomlinsonci-s+44 208 892 1222pgp fingerprint - 231C 9B5E A9EA F2D8 D179 1DAE 7858 8A7B 75CA 4BB4pgp public key server @ http://pgpkeys.mit.edu:11371/and ldap://certserver.pgp.comhttp://www.ci-s.com/
Tomcat/Cocoon RMI problem
Hi, I developed an application with Cocoon/XSP tecnologies, and now I have to call an RMI method within this application (This method has been developed by another person). When I call the RMI method from a stand alone application all is OK. If I call the RMI method from XSP (or JSP, or Servlet) the compiler return me the following error: org.apache.cocoon.processor.ProcessorException: Could not associate stylesheet to document: error reading C:\foo\Tomcat\webapps\Cocoon\samples\Smit\xml2html.xsl: java.security.AccessControlException: access denied (java.io.FilePermission C:\foo\Tomcat\webapps\Cocoon\samples\Smit\xml2html.xsl read) at org.apache.cocoon.processor.xslt.XSLTProcessor.getStylesheet(XSLTProcessor.j ava:217) at org.apache.cocoon.processor.xslt.XSLTProcessor.process(XSLTProcessor.java:10 8) at org.apache.cocoon.Engine.handle(Engine.java, Compiled Code) at org.apache.cocoon.Cocoon.service(Cocoon.java:167) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) Why? How can I do this? How have I to set for avoid the Security Problem? Thanks
RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent
try mounting a Alias directory named "jetspeed" and tell apache its location.. yes, as you tell mod_jk should take care of it. But I don't think their would be any harm in having a alias? (I have mounted all the dir with a alias name along with my mod_jk configuration) one other possibility would be, check if you are running IIS or PWS with Apache, if that is the case. either stop them or assign them a different port number. Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 3:10 PMTo: [EMAIL PROTECTED]Subject: Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Hello, I have included the mod_jk.conf-auto file in my httpd.conf. Should i mount the directories separately? My feeling is that mod_jk.conf takes care of it "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:19 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Have you checked your Apache httpd.conf file ? have you mountedyour directory in your apache? Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 12:54 PMTo: tomcatSubject: Fw: Forbidden error, you are unable to access /examples from this server: please help, veryurgent From: raghu To: tomcat Sent: Tuesday, July 24, 2001 6:30 PM Subject: 403: Forbidden error, you are unable to access /examples from this server Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this problem. bye, raghu "black holes are,when GOD is dividing by zero"
RE: help please!
Yup, I have checked that. I inserted that in the file. I'm going to have a look at the HowTo again. Chris McNeilly [EMAIL PROTECTED] 07/24/01 04:45pm I'm going to take another shot at it ;-) Check your JkMounts and make sure that there are some for /baseball. mod_jk.conf-auto or whatever you changed it to. Chris -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: RE: help please! hi Andrew I thought that might be the case, but why would I be able to view the /examples directory from my PC if it were not configured correctly? Because of that, I thought it was configured properly. Andrew Inggs [EMAIL PROTECTED] 07/24/01 04:38pm Aaron Cooper wrote: when I try http://localhost/baseball from my UNIX box, it says Not Found OK, now we're getting somewhere. Apache is not configured correctly to forward JSP requests off to Tomcat. See if this helps: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache- howto.html -- Andrew
Simple Tomcat Install on Win98
I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand.Thanks,Jeff W.-How Do I Install the Binary Version of Tomcat?Very simple. You should:Download the zip/tar.gz/whatever file from http://jakarta.apache.org/downloads/binindex.html.Ive done this and everything went fine.Unpack the file into some directory (say foo). This should create a new subdirectory named "jakarta-tomcat-3.2.1". If it's not where you want it, move this directory to the desired location.///Did this and it went fine also./ Change directory to "jakarta-tomcat-3.2.1" and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.This I dont understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file?On Win32 you should type: "set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1" Again, are they talking about within autoexec.bat or someplace else?Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy...Where is the environment variable JAVA HOME located? then add the Java interpreter to your PATH environment variable.How does one do this?
Shared Variables
Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
RE: Shared Variables
Did you use Internet explorer twice for these tests ? In this case, it appears for me too. Try to run TWO process Internet Explorer not CTRL+N (new window) then try your application on these two browsers. Loïc Lefèvre -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 13:23 À : [EMAIL PROTECTED] Objet : Shared Variables Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
RE: META: E-mail format
Title: RE: META: E-mail format My sincere apologies. I always change this as a matter of course so I can only assume that some upgrade by my company has changed it. Martin -Original Message- From: Emir Alikadic (ADNOC IST) [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 11:50 To: [EMAIL PROTECTED] Subject: META: E-mail format Greetings all! Use of HTML- and RTF-formatted e-mail is on rise and needs to stop ASAP. Most recent (messages sent on July 25th) offenders are: - Prosa - raghu - Senthil Kumar Rajamanickam - Martin Welch - Brigger Patrick - [EMAIL PROTECTED] - Michael Petres Now, I am not the moderator or the owner of this list, I'm just a regular user who read and understood mailing list's guidelines before joining. I use MS Outlook 2000 to write this message yet I don't use RTF (Format - Plain Text - Yes) - trust me, it's easy. Using HTML of RTF in your e-mail is not only considered rude, it also reduces your chances of being responded to because many people on this list don't use fancy mail clients and see your message as garbage. Here's pertinent paragraph from the Jakarta Mailing Lists page (http://jakarta.apache.org/site/mail.html): Do your best to ensure that you are not sending HTML or Stylelized email to the list. If you are using Outlook or Outlook Express or Eudora, chances are that you are sending HTML email by default. There is usually a setting that will allow you to send Plain Text email. Regards, Emir.
XML support for struts
I'm working currently for an insurance company. Instead of using JSP's the company wants us provide a solution using XML/XSL in order to standardize data formatting. We've build some kind of framework-extension that's using Xerces and Xalan but it's not looking very clean. Will struts provide native support for XML parsing? thanks, kind regards, Axel
Re: Dynamically Generate PDF
On Wednesday 25 July 2001 08:47, you wrote: Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips. Yes, I've done it using FOP, found at xml.apache.org. -- Nils O. Selåsdal
Re: Shared Variables
Yes, I tried your suggest but it happens the same thing. I have also used the Nokia Wap Toolkit My application is developed with Cocoon/XSP tecnologies and run on Tomcat 3.2.1. Perhaps I have to define the variable in another way, but I don't know - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 1:33 PM Subject: RE: Shared Variables Did you use Internet explorer twice for these tests ? In this case, it appears for me too. Try to run TWO process Internet Explorer not CTRL+N (new window) then try your application on these two browsers. Loïc Lefèvre -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 13:23 À : [EMAIL PROTECTED] Objet : Shared Variables Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
Re: Simple Tomcat Install on Win98
At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
RE: Dynamically Generate PDF
I was working on the same problem and have been told of a java utility to convert XSL formatted XML into PDF: http://xml.apache.org/fop/ I have not tried it yet and I suppose it seems like the long way round - but if you are using XML as a format it might be your solution. Another drawback might be that the XSL specification is not yet stable and could change considerably. I would be interested in what you find out. FOP is actually a very useful tool and while I haven't worked with it for a while it is quite robust. The only main problems I had with it were: * On large dataset documents it would grind to a halt. * If a entity was too large for a single page things would get messed up. I know from keeping an eye on the fop-dev list that the speed thing has improved in recent releases and there have been multiple discussions of the splitting algorithm over the past couple of months, but I haven't paid real close attention to those. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: Shared Variables
make sure your variables do indeed have session scope - what platform are you running on? I had this happen when I accessed my app through a browser on the linux box it is running on. When I access the app from another machine it doesn't happen. I assumed it must be something to do with the way sessions (as in user sessions) are implemented in Linux. - stab in the dark though : ) -Original Message- From: Stefano Bonnin [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 12:44 To: [EMAIL PROTECTED] Subject: Re: Shared Variables Yes, I tried your suggest but it happens the same thing. I have also used the Nokia Wap Toolkit My application is developed with Cocoon/XSP tecnologies and run on Tomcat 3.2.1. Perhaps I have to define the variable in another way, but I don't know - Original Message - From: Loïc Lefèvre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 1:33 PM Subject: RE: Shared Variables Did you use Internet explorer twice for these tests ? In this case, it appears for me too. Try to run TWO process Internet Explorer not CTRL+N (new window) then try your application on these two browsers. Loïc Lefèvre -Message d'origine- De : Stefano Bonnin [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 13:23 À : [EMAIL PROTECTED] Objet : Shared Variables Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
Re: Shared Variables
Hi, Variables in what sense? As in variables in a servlet? They are suppose to be shared. It is up to you to ensure that your servlet is thread safe (there will only be one instance of a servlet created by Tomcat). If you want to store a variable in the session, the use something like: HttpSession session = request.getSession(true); session.setAttribute(variable, mouse); Is this what you're asking about? cheers dim On Wed, 25 Jul 2001, Stefano Bonnin wrote: Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
RE: Dynamically Generate PDF
I've tried to do this with jsp (without succes), but with a servlet it can be done quite easy: Use tex-dvi-ps-pdf (where tex is a TeX document, (LaTeX)) (maybe it can be done even easier...) If someone knows how i could do this with jsp, (read tex with taglibs) i'm eager to know it) This is a restrictive option. It's much better to use one of the many XML/XSL based packages and generate from there. In this way you can extend the document definitions as needed which with TeX/LaTeX is possible but not the preferable solution in my book. Commercial -- PageLayout - http://www.sitraka.com Open Source --- iText - http://www.lowagie.com/iText/ FOP - http://www.xml.apache.org Other - General Info/Links - http://www.planetpdf.com/mainpage.asp?WebPageID=450 p.s. It would be handy to cache the results ;p That could of course be easily done using a static java.util.Map and a unique id for each unique doc generated. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent
i did as u said, but still i am getting the same error. I now doubt if mod_jk.so is working properly or not? No, i am running only tomcat with apache, please help "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 4:46 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent try mounting a Alias directory named "jetspeed" and tell apache its location.. yes, as you tell mod_jk should take care of it. But I don't think their would be any harm in having a alias? (I have mounted all the dir with a alias name along with my mod_jk configuration) one other possibility would be, check if you are running IIS or PWS with Apache, if that is the case. either stop them or assign them a different port number. Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 3:10 PMTo: [EMAIL PROTECTED]Subject: Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Hello, I have included the mod_jk.conf-auto file in my httpd.conf. Should i mount the directories separately? My feeling is that mod_jk.conf takes care of it "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:19 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Have you checked your Apache httpd.conf file ? have you mountedyour directory in your apache? Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 12:54 PMTo: tomcatSubject: Fw: Forbidden error, you are unable to access /examples from this server: please help, veryurgent From: raghu To: tomcat Sent: Tuesday, July 24, 2001 6:30 PM Subject: 403: Forbidden error, you are unable to access /examples from this server Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this problem. bye, raghu "black holes are,when GOD is dividing by zero"
RE: Servlets In A Package
I've recently installed JBoss-2.4.0_Tomcat-3.2.2 and I'm now starting to experiment with all the JBoss samples. The first, Interest, contains a servlet that I'm trying to get up and running. This InterestServlet is in a package org.jboss.docs.interest which I've compiled and placed in webapps\demo\WEB-INF\classes\org\jboss\docs\interest From your NoClassDef message it doesn't seem like the problem is in your servlet being in a package. It is finding the correct package but it's looking for the class Interest instead of InterestServlet. Although your snipping in your original post looked fine make sure there are no extra spaces in the class name for the web.xml. Also, can you get any servlet mappings to work for servlets in packages? If so I would review your web.xml again very closely and look for missing/extra tags or characters. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
RE: TOMCAT 3.2.2
What I'm trying to do is have IIS serve the static pages. Randy Layman randy.layman@asweTo: [EMAIL PROTECTED] think.comcc: Subject: RE: TOMCAT 3.2.2 07/24/2001 03:49 PM Please respond to tomcat-user I'm guessing that you haven't modified your server.xml file and left the servlet invoker in the configuration. If so, this invoker is catching the request, trying to start a servlet named index.html, failing and returning a 404. Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: RE: TOMCAT 3.2.2 But what about http://127.0.0.1/examples/servlet/index.html?? I have /examples/servlet/* in uriworkermap.properties. Randy Layman randy.layman@asweTo: [EMAIL PROTECTED] think.comcc: Subject: RE: TOMCAT 3.2.2 07/24/2001 03:26 PM Please respond to tomcat-user How do you expect Tomcat to know to process *.html if you don't tell it to (in uriworkermap.properties)? You have: /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) but you indicate that you want to match: http://127.0.0.1/examples/admin/index.html which can never happen. You need to change your uriworkermap.properties file, and then either restart the machine, or stop IIS from the Services Control Panel (you must make inetinfo.exe unload). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 3:59 PM To: [EMAIL PROTECTED] Subject: TOMCAT 3.2.2 Hi. I've check the FAQ and other sources but can't find anything specifically related to my problem. There are other 404 not found problems but mine only happens in certain contexts and I can't figure out why. I have the isapi-redirect.dll installed on IIS 4.0 / NT 4.0 SP6 and the green arrow shows in the isapi filter. I would appreciate any help. Thank you. These urls work : http://127.0.0.1/bookstore/bookstore.html http://127.0.0.1/examples/jsp/index.html I get the 404 with the following: http://127.0.0.1/examples/servlet/index.html http://127.0.0.1/examples/admin/index.html The pages are definitely in the right folders/directories. Following is information that may be of use: uriworkermap.properties-auto file contains: default.worker=ajp12 /servlet/*=$(default.worker) /*.jsp=$(default.worker) /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) # /examples/*=$(default.worker) /admin/servlet/*=$(default.worker) /admin/*.jsp=$(default.worker) # /admin/*=$(default.worker) /bookstore/servlet/*=$(default.worker) /bookstore/*.jsp=$(default.worker) # /bookstore/*=$(default.worker) /test/servlet/*=$(default.worker) /test/*.jsp=$(default.worker) # /test/*=$(default.worker) iis-redirect.reg-auto contains: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\Tomcat-3.2.2\\logs\\iis_redirect.log log_level=debug worker_file=D:\\Tomcat-3.2.2\\conf\\workers.properties worker_mount_file=D:\\Tomcat-3.2.2\\conf\\uriworkermap.properties servlet.log contains: 2001-07-06 03:00:10 - path=/examples :jsp: init 2001-07-06 03:00:11 - path=/admin :jsp: init 2001-07-06 03:00:11 - path=/bookstore :jsp: init 2001-07-06 03:00:11 - path= :jsp: init 2001-07-06 03:00:11 - path=/test :jsp: init isapi.log contains: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
RE: iis weblog
Thanks, i will try 3.2.1. I use 3.2.2 with ajpv12. No i didn't get usefull reply's on my mail. Just some external programs for seperate logging... but i want it together with my iis/html log Regards, Edwin Eversdijk __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
update some configuration files without restarting tomcat
Hello, Is it possible to update the file $TOMCAT/conf/tomcat-users.xml without re-starting tomcat ? Same question with the file $WEB_APP/web-inf/web.xml. Delphine
RE: Forbidden error, you are unable to access /examples from this server: please help, very urgent
With the info.. I could not think of any specific reasons which might stop you to set this up.. just try going through following tasks.. 1.ref. to mod_jk how to manual which you have got along with tomcat, and set up your mod_jk with apache ( you have to mount mod_jk in apache like this (hey, are u doing your own mod_jk .dll file from source?if that is the case check your source for any possible error which can be induced in the source??) "include /jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto" ( I would recommend using conf-auto file, so that your tomcat will give all the details) 2.check your apache and tomcat. (just test run your example servletvia apache) If your example application works fine.. Go ahead and mount a alias directory and try calling jet speed. in case you get some error, check them in apache log and tomcat log for error details, (I think that should help you solve the error) let me know what is the error you are getting...So that I can try to get to the core issue. Also note, if you are using winNT, check for environment variables setting too for tomcat_home, Apache_home and java_home settings, since in your tomcatconfiguration files, it picks up directory details calling this environment variables. Note, check if your tools.jar file is accessible by your system(it should be in system path) Hope this helps.. Cheers Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 5:27 PMTo: [EMAIL PROTECTED]Subject: Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent i did as u said, but still i am getting the same error. I now doubt if mod_jk.so is working properly or not? No, i am running only tomcat with apache, please help "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 4:46 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent try mounting a Alias directory named "jetspeed" and tell apache its location.. yes, as you tell mod_jk should take care of it. But I don't think their would be any harm in having a alias? (I have mounted all the dir with a alias name along with my mod_jk configuration) one other possibility would be, check if you are running IIS or PWS with Apache, if that is the case. either stop them or assign them a different port number. Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 3:10 PMTo: [EMAIL PROTECTED]Subject: Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Hello, I have included the mod_jk.conf-auto file in my httpd.conf. Should i mount the directories separately? My feeling is that mod_jk.conf takes care of it "black holes are,when GOD is dividing by zero" - Original Message - From: Senthil Kumar Rajamanickam To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:19 PM Subject: RE: Forbidden error, you are unable to access /examples from this server: please help, veryurgent Have you checked your Apache httpd.conf file ? have you mountedyour directory in your apache? Regards Senthil Kumar.R -Original Message-From: raghu [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 25, 2001 12:54 PMTo: tomcatSubject: Fw: Forbidden error, you are unable to access /examples from this server: please help, veryurgent From: raghu To: tomcat Sent: Tuesday, July 24, 2001 6:30 PM Subject: 403: Forbidden error, you are unable to access /examples from this server Hi all, I have installed apache 1.3.11 and tomcat 3.2.2 with mod_jk, apache and tomcat are working perfect separately. I have also installed jetspeed and cocoon (web applications) in the webapps directory, When i point my browser to http://localhost:8080/jetspeed/ i am able to view the page, but when i point my browser to http://localhost/jetspeed i get this error Forbidden You don't have permission to access /cocoon on this server. Apache/1.3.11 Server at stonebox Port 80 Can anyone suggest how to overcome this
Re: Shared Variables
ok ok I have solved the problem Thanks... - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 2:05 PM Subject: Re: Shared Variables Hi, Variables in what sense? As in variables in a servlet? They are suppose to be shared. It is up to you to ensure that your servlet is thread safe (there will only be one instance of a servlet created by Tomcat). If you want to store a variable in the session, the use something like: HttpSession session = request.getSession(true); session.setAttribute(variable, mouse); Is this what you're asking about? cheers dim On Wed, 25 Jul 2001, Stefano Bonnin wrote: Hi, I have noticed that when I start my application under Tomcat 3.2.1 all the variables are shared If I access for the first time and I set for example Name=mouse, at the second access (another session!) the Name variable is equal to mouse??? Why? Is a Tomcat bug? Help me! Thanks.
Please HELP
Hello, I've got the following problem: (please don't stop reading :) ) in the file mod_jk.conf: NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName win.fivia.com DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront JkMount /*.jsp ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog d:/Tomcat/log/loic_error_html.log TransferLog d:/Tomcat/log/loic_access_html.log RewriteEngine on RewriteLog d:/Tomcat/log/loic_rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/servlet* [NC] # = RewriteRule ^/servlet/(.*) /adfront/$1 [PT] RewriteCond %{REQUEST_URI} !^/adfront* [NC] RewriteCond %{REQUEST_URI} !^/Image* [NC] RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] RewriteCond %{REQUEST_URI} !^/Erreur* [NC] RewriteCond %{REQUEST_URI} ^/.*/.* # = RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA] /VirtualHost then when I try to access http://win.fivia.com/ The module mod_rewrite transforms the uri into: http://win.fivia.com/start/index.html logs: (2) init rewrite engine with requested uri / (3) applying pattern '^/servlet/(.*)' to uri '/' (3) applying pattern '^/(.*)' to uri '/' (4) RewriteCond: input='/' pattern='!^/adfront*' = matched (4) RewriteCond: input='/' pattern='!^/Image*' = matched (4) RewriteCond: input='/' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/' pattern='^/.*/.*' = not-matched (1) pass through / (2) init rewrite engine with requested uri /index.html (3) applying pattern '^/servlet/(.*)' to uri '/index.html' (3) applying pattern '^/(.*)' to uri '/index.html' (4) RewriteCond: input='/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/index.html' pattern='^/.*/.*' = not-matched (1) pass through /index.html (2) init rewrite engine with requested uri /start/index.html (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html' (3) applying pattern '^/(.*)' to uri '/start/index.html' (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' = matched (2) rewrite /start/index.html - /adfront/AdFront?access=/start/index.html (3) split uri=/adfront/AdFront?access=/start/index.html - uri=/adfront/AdFront, args=access=/start/index.html (2) forcing '/adfront/AdFront' to get passed through to next API URI-to-filename handler and then the requested uri is: http://win.fivia.com/adfront/AdFront?access=/start/index.html BUT it does nothing (tomcat receive NO request). And when I try manually to access http://win.fivia.com/adfront/AdFront?access=/start/index.html Tomcat receive and process the uri What's the problem ??? Please HELP Loïc Lefèvre
mod_jk.dll
Title: mod_jk.dll all quite a few mails flashed by from people who've obviously got past installation and cobbling tomcat to apache and have moved onto newer problems - if any of you have done this on win2k and have the above file to hand, or know where to get it, could you let me know where to find it ? thanks rgds david David Tomlinson ci-s +44 208 892 1222 pgp fingerprint - 231C 9B5E A9EA F2D8 D179 1DAE 7858 8A7B 75CA 4BB4 pgp public key server @ http://pgpkeys.mit.edu:11371/ and ldap://certserver.pgp.com http://www.ci-s.com/
RE: Please HELP / W A R N I N G: LoadModule order
Phew I've got on problem resolved (or partially resolved). It seems that the order of the LoadModule command in httpd.conf is very important !!! When I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so Tomcat receive my request but when I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so nothing appears ! How strange isn't it ? Loïc Lefèvre -Message d'origine- De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 15:10 À : Mailing List Tomcat Objet : Please HELP Hello, I've got the following problem: (please don't stop reading :) ) in the file mod_jk.conf: NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName win.fivia.com DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront JkMount /*.jsp ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog d:/Tomcat/log/loic_error_html.log TransferLog d:/Tomcat/log/loic_access_html.log RewriteEngine on RewriteLog d:/Tomcat/log/loic_rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/servlet* [NC] # = RewriteRule ^/servlet/(.*) /adfront/$1 [PT] RewriteCond %{REQUEST_URI} !^/adfront* [NC] RewriteCond %{REQUEST_URI} !^/Image* [NC] RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] RewriteCond %{REQUEST_URI} !^/Erreur* [NC] RewriteCond %{REQUEST_URI} ^/.*/.* # = RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA] /VirtualHost then when I try to access http://win.fivia.com/ The module mod_rewrite transforms the uri into: http://win.fivia.com/start/index.html logs: (2) init rewrite engine with requested uri / (3) applying pattern '^/servlet/(.*)' to uri '/' (3) applying pattern '^/(.*)' to uri '/' (4) RewriteCond: input='/' pattern='!^/adfront*' = matched (4) RewriteCond: input='/' pattern='!^/Image*' = matched (4) RewriteCond: input='/' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/' pattern='^/.*/.*' = not-matched (1) pass through / (2) init rewrite engine with requested uri /index.html (3) applying pattern '^/servlet/(.*)' to uri '/index.html' (3) applying pattern '^/(.*)' to uri '/index.html' (4) RewriteCond: input='/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/index.html' pattern='^/.*/.*' = not-matched (1) pass through /index.html (2) init rewrite engine with requested uri /start/index.html (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html' (3) applying pattern '^/(.*)' to uri '/start/index.html' (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' = matched (2) rewrite /start/index.html - /adfront/AdFront?access=/start/index.html (3) split uri=/adfront/AdFront?access=/start/index.html - uri=/adfront/AdFront, args=access=/start/index.html (2) forcing '/adfront/AdFront' to get passed through to next API URI-to-filename handler and then the requested uri is: http://win.fivia.com/adfront/AdFront?access=/start/index.html BUT it does nothing (tomcat receive NO request). And when I try manually to access http://win.fivia.com/adfront/AdFront?access=/start/index.html Tomcat receive and process the uri What's the problem ??? Please HELP Loïc Lefèvre
Tomcat and IIS 5
Is there any document that shows how to install Tomcat on a Windows 2000 and IIS 5 environment? Thanks, Luiz Olavo
RE: Please HELP / W A R N I N G: LoadModule order
Hi Yes I believe at the top of httpd.conf, it is written that the order in which the modules are loaded is very important. Cheers Aaron Loïc Lefèvre [EMAIL PROTECTED] 07/25/01 10:29am Phew I've got on problem resolved (or partially resolved). It seems that the order of the LoadModule command in httpd.conf is very important !!! When I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so Tomcat receive my request but when I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so nothing appears ! How strange isn't it ? Loïc Lefèvre -Message d'origine- De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 15:10 À : Mailing List Tomcat Objet : Please HELP Hello, I've got the following problem: (please don't stop reading :) ) in the file mod_jk.conf: NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName win.fivia.com DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront JkMount /*.jsp ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog d:/Tomcat/log/loic_error_html.log TransferLog d:/Tomcat/log/loic_access_html.log RewriteEngine on RewriteLog d:/Tomcat/log/loic_rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/servlet* [NC] # = RewriteRule ^/servlet/(.*) /adfront/$1 [PT] RewriteCond %{REQUEST_URI} !^/adfront* [NC] RewriteCond %{REQUEST_URI} !^/Image* [NC] RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] RewriteCond %{REQUEST_URI} !^/Erreur* [NC] RewriteCond %{REQUEST_URI} ^/.*/.* # = RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA] /VirtualHost then when I try to access http://win.fivia.com/ The module mod_rewrite transforms the uri into: http://win.fivia.com/start/index.html logs: (2) init rewrite engine with requested uri / (3) applying pattern '^/servlet/(.*)' to uri '/' (3) applying pattern '^/(.*)' to uri '/' (4) RewriteCond: input='/' pattern='!^/adfront*' = matched (4) RewriteCond: input='/' pattern='!^/Image*' = matched (4) RewriteCond: input='/' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/' pattern='^/.*/.*' = not-matched (1) pass through / (2) init rewrite engine with requested uri /index.html (3) applying pattern '^/servlet/(.*)' to uri '/index.html' (3) applying pattern '^/(.*)' to uri '/index.html' (4) RewriteCond: input='/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/index.html' pattern='^/.*/.*' = not-matched (1) pass through /index.html (2) init rewrite engine with requested uri /start/index.html (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html' (3) applying pattern '^/(.*)' to uri '/start/index.html' (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' = matched (2) rewrite /start/index.html - /adfront/AdFront?access=/start/index.html (3) split uri=/adfront/AdFront?access=/start/index.html - uri=/adfront/AdFront, args=access=/start/index.html (2) forcing '/adfront/AdFront' to get passed through to next API URI-to-filename handler and then the requested uri is: http://win.fivia.com/adfront/AdFront?access=/start/index.html BUT it does nothing (tomcat receive NO request). And when I try manually to access http://win.fivia.com/adfront/AdFront?access=/start/index.html Tomcat receive and process the uri What's the problem ??? Please HELP Loïc Lefèvre
RE: Please HELP / W A R N I N G: LoadModule order
Now the problem is that Tomcat don't receive the rewrited uri logs: 2001-07-25 15:33:03 - Ctx( ): 404 R( + /start/index.html + null) null As you can we can see, Tomcat don't receive the wanted uri: http://win.fivia.com/adfront/AdFront?access=/start/index.html Any idea ? Loïc Lefèvre -Message d'origine- De : Aaron Cooper [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 15:29 À : [EMAIL PROTECTED] Objet : RE: Please HELP / W A R N I N G: LoadModule order Hi Yes I believe at the top of httpd.conf, it is written that the order in which the modules are loaded is very important. Cheers Aaron Loïc Lefèvre [EMAIL PROTECTED] 07/25/01 10:29am Phew I've got on problem resolved (or partially resolved). It seems that the order of the LoadModule command in httpd.conf is very important !!! When I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so Tomcat receive my request but when I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so nothing appears ! How strange isn't it ? Loïc Lefèvre -Message d'origine- De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 15:10 À : Mailing List Tomcat Objet : Please HELP Hello, I've got the following problem: (please don't stop reading :) ) in the file mod_jk.conf: NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 ServerName win.fivia.com DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront JkMount /*.jsp ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog d:/Tomcat/log/loic_error_html.log TransferLog d:/Tomcat/log/loic_access_html.log RewriteEngine on RewriteLog d:/Tomcat/log/loic_rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/servlet* [NC] # = RewriteRule ^/servlet/(.*) /adfront/$1 [PT] RewriteCond %{REQUEST_URI} !^/adfront* [NC] RewriteCond %{REQUEST_URI} !^/Image* [NC] RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] RewriteCond %{REQUEST_URI} !^/Erreur* [NC] RewriteCond %{REQUEST_URI} ^/.*/.* # = RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA] /VirtualHost then when I try to access http://win.fivia.com/ The module mod_rewrite transforms the uri into: http://win.fivia.com/start/index.html logs: (2) init rewrite engine with requested uri / (3) applying pattern '^/servlet/(.*)' to uri '/' (3) applying pattern '^/(.*)' to uri '/' (4) RewriteCond: input='/' pattern='!^/adfront*' = matched (4) RewriteCond: input='/' pattern='!^/Image*' = matched (4) RewriteCond: input='/' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/' pattern='^/.*/.*' = not-matched (1) pass through / (2) init rewrite engine with requested uri /index.html (3) applying pattern '^/servlet/(.*)' to uri '/index.html' (3) applying pattern '^/(.*)' to uri '/index.html' (4) RewriteCond: input='/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/index.html' pattern='^/.*/.*' = not-matched (1) pass through /index.html (2) init rewrite engine with requested uri /start/index.html (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html' (3) applying pattern '^/(.*)' to uri '/start/index.html' (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' = matched (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' = matched (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' = matched (2) rewrite /start/index.html - /adfront/AdFront?access=/start/index.html (3) split uri=/adfront/AdFront?access=/start/index.html - uri=/adfront/AdFront, args=access=/start/index.html (2) forcing '/adfront/AdFront' to get passed through to next API URI-to-filename handler and then the requested uri is: http://win.fivia.com/adfront/AdFront?access=/start/index.html BUT it does nothing (tomcat receive NO request). And when I try manually to access http://win.fivia.com/adfront/AdFront?access=/start/index.html Tomcat receive and process the uri What's the problem ??? Please HELP Loïc Lefèvre
Re: Dynamically Generate PDF
On Wednesday, 25. July 2001 09:47, Kaneda K wrote: Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips. Check out: http://www.lowagie.com/iText/ and/or http://www.etymon.com/pj/index.html Marco -- Marco Ladermann dpa, Deutsche Presse-Agentur GmbH [EMAIL PROTECTED] (PGP-Schlüssel auf Anfrage) Tel. +49 40 4113 2414 Fax +49 40 4113 2479
WebappClassLoader question
Hi, Here is the situation : * I have a class that makes use of JUnit (by extending the JUnit TestCase class). Let's call it ServletTestCase * I have a second class that is used to call a method in ServletTestCase, let's call it MyProxyClass * I have a thirdclass (a servlet) that does _not_ make use of JUnit. Let's call it ServletTestRedirector. This class actually instanciate MyProxyClass and calls one of its method. * I package these classes in a war file and I _don't_ include junit.jar in this war file When I access the servlet, I get a ClassNotFoundException on aJUnit class. So far it is normal ... When I debugged it, I have actually found that the error was happening when ServletTestRedirector was instancianting MyProxyClass (which does _not_ make use of JUnit) and before it was calling its method. Here is the stack trace I got : java.lang.NoClassDefFoundError: junit/framework/TestCaseat java.lang.ClassLoader.defineClass0(Native Method)at java.lang.ClassLoader.defineClass(ClassLoader.java:486)at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1475)at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:836)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1215)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1098)at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)at org.apache.commons.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:143) Here is what I imagined is happening (tell me if this correct or wrong !) : As MyProxyClass is within the war file, the WebappClassLoader gets called to load it. The WebappClassLoader, in trying tofind out the correct class, actually loads some other class in memory, and thus the ServletTestCase, which fails to load because the junit jar is not in the classpath. Is that correct ? Don't you find it strange that the error about the missing class is reported when calling a class that has nothing to do with the problem ? It gets very hard to catch errors ... For example, in MyProxyClass, the code that calls the ServletTestCase method is as follows : ServletTestCase testInstance = null; try { testClass = Class.forName(theClassName); Constructor constructor = testClass.getConstructor(new Class[] { String.class }); testInstance = (ServletTestCase)constructor.newInstance(new Object[] { theMethod }); } catch (Exception e) { logger.debug("Error instanciating class [" + theClassName + "]", e); e.printStackTrace(); throw new ServletException("Error instanciating class [" + theClassName + "]", e); } And there is never anyexception caught here because the error happens earlier in the call stack, when the ServletTestRedirector instanciates MyProxyClass ... ... or am I missing something ? :) Thanks -Vincent Massol
Re: question about WEB-INF/lib
I'm running on NT (development) and Redhat Linux (production). startup.bat and startup.sh (actually tomcat.bat/tomcat.sh) add the jar files from tomcat/lib to the classpath but do not add jars from WEB-INF/lib of the individual webapps. Thanks, Dave Joseph D Toussaint [EMAIL PROTECTED] on 07/24/2001 07:33:49 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: question about WEB-INF/lib Out of curiosity what are you runing tomcat on unix or nt? Maybe there is a diffrence between startup.bat and startup.sh??? joe On 25 Jul 2001 08:05:31 +1000, Dmitri Colebatch wrote: I can verify it does work. I dont have any suggestions though - sorry. cheesr dim On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: I see this problem, too. I'm using Tomcat 3.2.x. It appears to me to be a bug. I've seen others with this problem on this mailing list. Can anyone verify that this actually does work? (Just trying to add some weight to your claim and get it fixed if it is a bug. :o) Thanks, Dave Joseph D Toussaint [EMAIL PROTECTED] on 07/24/2001 11:55:44 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: question about WEB-INF/lib It's my understanding that any jar files in the WEB-INF/lib directory should be found by the container when the app is deployed - however I havea jdbc driver in that directory and I'm getting a class not found exception. When ever I have set up tomcat before I've always edited the tomcat.sh script so search all the WEB-INF/lib directories for every web application - however this time I'd like to do it right. Thanks! joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ## -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
apj13 not working
My system: Tomcat/Apache+mod_ssl/RedHat 7.1 ---[Howto snippet]-- mod_jk can use either the original Ajpv12 protocol or the newer Ajpv13 protocol. Both protocols are enabled by default. The Ajp13 Connection Handler in Tomcat will give you the benefit of a faster protocol and the ability to identify requests made via HTTPS. The following block enables Ajpv13 in your TOMCAT_HOME/conf/server.xml file. RequestInterceptor className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009/ ---[Howto snippet]-- According to this, I can just put this block in with the rest of the Interceptors. I made sure not to put it after the LoadOnStartupInterceptor which loads last. When I do, I get the following at startup: ERROR reading /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/server.xml At Line 188 /Server/ContextManager/RequestInterceptor/ className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009 FATAL: configuration error java.lang.ClassNotFoundException: org.apache.tomcat.modules.server.Ajp13Interceptor This installation works fine with Ajp12. Am I missing something? Why is Ajp12 an Interceptor while Ajp12 is Connector? Thanks, iod
Re: question about WEB-INF/lib
This is my workaround as well, but it is not a very good solution. I often have multiple webapps running that need different versions of the same jar file. This becomes a real pain. Thanks, Dave john regan [EMAIL PROTECTED] on 07/24/2001 05:20:39 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Re: question about WEB-INF/lib (a newbie speaks...) Are you looking for a workaround? When I saw this problem, I copied the jar file to tomcat's lib directory and it worked. I thought maybe I had misread something in the doc. Like I said, I'm new here, but I agree that this is not what I expected to do. -john Dmitri Colebatch wrote: I can verify it does work. I dont have any suggestions though - sorry. cheesr dim On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote: I see this problem, too. I'm using Tomcat 3.2.x. It appears to me to be a bug. I've seen others with this problem on this mailing list. Can anyone verify that this actually does work? (Just trying to add some weight to your claim and get it fixed if it is a bug. :o) Thanks, Dave Joseph D Toussaint [EMAIL PROTECTED] on 07/24/2001 11:55:44 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: question about WEB-INF/lib It's my understanding that any jar files in the WEB-INF/lib directory should be found by the container when the app is deployed - however I havea jdbc driver in that directory and I'm getting a class not found exception. When ever I have set up tomcat before I've always edited the tomcat.sh script so search all the WEB-INF/lib directories for every web application - however this time I'd like to do it right. Thanks! joe -- ## # Joseph Toussaint # # Caribou Lake Software # # http://www.cariboulake.com # # [EMAIL PROTECTED] # # 952-837-98029 # ##
digest , form and basic authentification
Is anyone can give me an exemple of a a digest authentification? a form ? a basic ? Is is possible to decalre two groups of users with differents authorizations ? Delphine
Re: Forbidden error, you are unable to access /examples from this server: please help, veryurgent
raghu wrote: /i did as u said, but still i am getting the same error. I now doubt if mod_jk.so is working properly or not?/ /No, i am running only tomcat with apache, please help/ Did you download the binary version of mod_jk.so? I tried this a few months ago and had a problem with it. Try downloading the source for Tomcat and compile the mod_jk code in src/native (I think). John -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: update some configuration files without restarting tomcat
zze-messager FTM balr002 wrote: Hello, Is it possible to update the file $TOMCAT/conf/tomcat-users.xml without re-starting tomcat ? Same question with the file $WEB_APP/web-inf/web.xml. Nope. Those xml files are read at startup. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
Re: apj13 not working
What's your classpath look like? John isleofdogs wrote: My system: Tomcat/Apache+mod_ssl/RedHat 7.1 ---[Howto snippet]-- mod_jk can use either the original Ajpv12 protocol or the newer Ajpv13 protocol. Both protocols are enabled by default. The Ajp13 Connection Handler in Tomcat will give you the benefit of a faster protocol and the ability to identify requests made via HTTPS. The following block enables Ajpv13 in your TOMCAT_HOME/conf/server.xml file. RequestInterceptor className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009/ ---[Howto snippet]-- According to this, I can just put this block in with the rest of the Interceptors. I made sure not to put it after the LoadOnStartupInterceptor which loads last. When I do, I get the following at startup: ERROR reading /usr/local/jakarta/jakarta-tomcat-3.2.3/conf/server.xml At Line 188 /Server/ContextManager/RequestInterceptor/ className=org.apache.tomcat.modules.server.Ajp13Interceptor port=8009 FATAL: configuration error java.lang.ClassNotFoundException: org.apache.tomcat.modules.server.Ajp13Interceptor This installation works fine with Ajp12. Am I missing something? Why is Ajp12 an Interceptor while Ajp12 is Connector? -- John Alex Hebert [EMAIL PROTECTED] System Engineer
on 3.3b1, can Apache still host directory indexes? + a bug?
On 3.3 I have lost the ability of Apache to serve the directory indexes. When I click in Apache on a redirect to the directory where my JSPs are, under $TOMCAT_HOME/webapps/application/, Tomcat takes over (since it sees the /application/) but ... Then clicking on the Up to: /application link at the top of Tomcat's directory index gets me a Cannot find page error, since it does not postpend the trailing backlash when it constructs the URL and thus does not know to serve it.. Can I somehow let Apache host the directory view of $TOMCAT_HOME/webapps/application, and can I configure Tomcat to postpend the trailing backlash so either it or Apache can serve this link? Clayton Houston, Texas
RE: XML support for struts
I am deleting a lot of mails and didn't notice if you got a response to this. Take a look a Cocoon, an Apache/Jakarta web publishing frame work for XML. -Original Message- From: Axel Van Noten [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 7:49 AM To: [EMAIL PROTECTED] Subject: XML support for struts I'm working currently for an insurance company. Instead of using JSP's the company wants us provide a solution using XML/XSL in order to standardize data formatting. We've build some kind of framework-extension that's using Xerces and Xalan but it's not looking very clean. Will struts provide native support for XML parsing? thanks, kind regards, Axel
Java script problem using servlets
Hello, I'm using Jakarta since a few days and i encounter the following strange problem : I have build a sample servlet based page that contains two frames, one (issued from a servlet) with a sample form composed of a dynamic list (created with a JDBC SQL query) and a push button, and another one composed of a static html file (not coming from a servlet) including only a text field. I just want to copy the value content of the selected list item, in the text field by clicking the button. So i use a sample onClick java script function on the button that reads the value in the list and write into the text field. Then i allways get a java script error message Permission denied . When i replace the servlet HTML part in the first frame by exactly the SAME HTML STATIC code (not issued from a servlet but directly from an html file), everything works fine ! ! ? ? Have you ever eard about such a matter ? ? ? Thanks for any help. Michel COTE. Here is a copy of the HTML code in the first frame : HTML HEADTITLE Liste des articles /TITLE/HEAD BODY topmargin='0' script language='JavaScript' function majCode() { //The java script allways hangs on this line parent.document.critere.text_field.code.value=document.form_liste_art.li ste_articles.value.substring(0,12) parent.close() } /script form name='form_liste_art' div align='center' select name='liste_articles' size='13' option4 articles trouves /optionoption value= 3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093219365303CAFE SOLUBLE MAXWELL 100 G3014680008093219365303CAFE SOLUBLE MAXWELL 100 G/option/select /select brbrinput type='button' name='bt_select' value='Seacute;lectionner' onClick=majCode() /div /form /body /html Michel COTE Cooperateurs de Normandie Picardie Tel : 232111086 email : [EMAIL PROTECTED]
RE: TOMCAT 3.2.2
My mistake, I meant http://127.0.0.1/admin/index.html. Randy Layman randy.layman@asweTo: [EMAIL PROTECTED] think.comcc: Subject: RE: TOMCAT 3.2.2 07/24/2001 03:26 PM Please respond to tomcat-user How do you expect Tomcat to know to process *.html if you don't tell it to (in uriworkermap.properties)? You have: /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) but you indicate that you want to match: http://127.0.0.1/examples/admin/index.html which can never happen. You need to change your uriworkermap.properties file, and then either restart the machine, or stop IIS from the Services Control Panel (you must make inetinfo.exe unload). Randy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 3:59 PM To: [EMAIL PROTECTED] Subject: TOMCAT 3.2.2 Hi. I've check the FAQ and other sources but can't find anything specifically related to my problem. There are other 404 not found problems but mine only happens in certain contexts and I can't figure out why. I have the isapi-redirect.dll installed on IIS 4.0 / NT 4.0 SP6 and the green arrow shows in the isapi filter. I would appreciate any help. Thank you. These urls work : http://127.0.0.1/bookstore/bookstore.html http://127.0.0.1/examples/jsp/index.html I get the 404 with the following: http://127.0.0.1/examples/servlet/index.html http://127.0.0.1/examples/admin/index.html The pages are definitely in the right folders/directories. Following is information that may be of use: uriworkermap.properties-auto file contains: default.worker=ajp12 /servlet/*=$(default.worker) /*.jsp=$(default.worker) /examples/servlet/*=$(default.worker) /examples/*.jsp=$(default.worker) # /examples/*=$(default.worker) /admin/servlet/*=$(default.worker) /admin/*.jsp=$(default.worker) # /admin/*=$(default.worker) /bookstore/servlet/*=$(default.worker) /bookstore/*.jsp=$(default.worker) # /bookstore/*=$(default.worker) /test/servlet/*=$(default.worker) /test/*.jsp=$(default.worker) # /test/*=$(default.worker) iis-redirect.reg-auto contains: REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\1.0] extension_uri=/jakarta/isapi_redirect.dll log_file=D:\\Tomcat-3.2.2\\logs\\iis_redirect.log log_level=debug worker_file=D:\\Tomcat-3.2.2\\conf\\workers.properties worker_mount_file=D:\\Tomcat-3.2.2\\conf\\uriworkermap.properties servlet.log contains: 2001-07-06 03:00:10 - path=/examples :jsp: init 2001-07-06 03:00:11 - path=/admin :jsp: init 2001-07-06 03:00:11 - path=/bookstore :jsp: init 2001-07-06 03:00:11 - path= :jsp: init 2001-07-06 03:00:11 - path=/test :jsp: init isapi.log contains: [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /examples/servlet/index.html [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match ajp12 [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/servlet/index.html] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/servlet/index.html] is points to the web-inf directory [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 15 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /.jsp=ajp12 was added [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/servlet/=ajp12 was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /examples/.jsp=ajp12
Re: apj13 not working
At 09:17 AM 7/25/01 -0500, you wrote: What's your classpath look like? My first attempt at installing Tomcat was with the source code and it had me setting up all kinds of things in the classpath. This current install, the binary download, hasn't had me set up anything in the classpath. I did a find for Apj13Interceptor and didn't find it. I am assuming that its part of something else. Java is very new to me I'm not sure what exactly the classpath contents should be.
Re: WebappClassLoader question
Hi Vincent! I've run into the same situation a couple of times, when one class uses a second class, and this second class uses a third one that is not present. 1st - 2nd - 3rd (missing) One would think that instantiating the 2nd should give an error, but that loading the 2nd and/or instantiating the 1st should be ok. In fact, all of the behaviors raise exceptions. The following paragraph in ClassLoader javadoc might be of help: The methods and constructors of objects created by a class loader may reference other classes. To determine the class(es) referred to, the Java virtual machine calls the loadClass method of the class loader that originally created the class. Or, to find out what the JVM is doing, the spec is here: http://java.sun.com/docs/books/vmspec/ Hope it helps. Un saludo, Alex. Vincent Massol wrote: Hi, Here is the situation : * I have a class that makes use of JUnit (by extending the JUnit TestCase class). Let's call it ServletTestCase * I have a second class that is used to call a method in ServletTestCase, let's call it MyProxyClass * I have a third class (a servlet) that does _not_ make use of JUnit. Let's call it ServletTestRedirector. This class actually instanciate MyProxyClass and calls one of its method. * I package these classes in a war file and I _don't_ include junit.jar in this war file When I access the servlet, I get a ClassNotFoundException on a JUnit class. So far it is normal ... When I debugged it, I have actually found that the error was happening when ServletTestRedirector was instancianting MyProxyClass (which does _not_ make use of JUnit) and before it was calling its method. Here is the stack trace I got : java.lang.NoClassDefFoundError: junit/framework/TestCase at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1475) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:836) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1215) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1098) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at org.apache.commons.cactus.server.ServletTestRedirector.doPost(ServletTestRedirector.java:143) Here is what I imagined is happening (tell me if this correct or wrong !) : As MyProxyClass is within the war file, the WebappClassLoader gets called to load it. The WebappClassLoader, in trying to find out the correct class, actually loads some other class in memory, and thus the ServletTestCase, which fails to load because the junit jar is not in the classpath. Is that correct ? Don't you find it strange that the error about the missing class is reported when calling a class that has nothing to do with the problem ? It gets very hard to catch errors ... For example, in MyProxyClass, the code that calls the ServletTestCase method is as follows : ServletTestCase testInstance = null; try { testClass = Class.forName(theClassName); Constructor constructor = testClass.getConstructor(new Class[] { String.class }); testInstance = (ServletTestCase)constructor.newInstance(new Object[] { theMethod }); } catch (Exception e) { logger.debug(Error instanciating class [ + theClassName + ], e); e.printStackTrace(); throw new ServletException(Error instanciating class [ + theClassName + ], e); } And there is never any exception caught here because the error happens earlier in the call stack, when the ServletTestRedirector instanciates MyProxyClass ... ... or am I missing something ? :) Thanks -Vincent Massol
Re: Help w/ Tomcat 4.0b6 and Apache
I'm almost done with a PATCH to fix that... I should be able to commit it later tonight... Pier Jeff Hoare at [EMAIL PROTECTED] wrote: Hi, I'm using it but as you have found out I think very few ppl are using it on this list. I was able to view servlets thru apache, but the integration fails whenever I try reading any data (I use the post method for form data). I found a java null pointer exception in the catalina log trying to read from the input stream, which I guess is the problem. I have posted a bug on the bugzilla site. As with your experience everything works flawlessly when accessing the servlets thru tomcat directly, but seems broken when using the apache-tomcat extension. This could be some mis-configuration, or a bug but either way the lack of any response is not encouraging. I know this is no help, but at least someone else is suffering as well :-). If I get any response I'll post it to this list Jeff On Wednesday 25 July 2001 03:45, you wrote: Folks: I have received but a single response to my multiple posts regarding Tomcat 4 Beta 6 and Apache, but, alas, it, was not helpful. Given the otherwise high level of activity on this list, I must again ask this question: Is anybody on this list successfully using Tomcat 4 with Apache?? If so, I would desperately like to know your configuration and see the relevant parts of your server.xml, apache configs, and know what module/version you are using as bridge between Apache and Tomcat. Our desired benchmark is simply to achieve the same behaviors from the example JSP's through port 80 (via Apache) as we do through port 8080. It has taken enormous effort just to get something limping along, but still the transport between Apache and Tomcat (mod_webapp) is clearly broken - key header variables have default values instead of actual values, preventing the application from using sessions or accessing the proper values of header variables. As an example, the snoop JSP provides reasonable values when executed from port 8080 but reports mostly null's and -1's, when executed from port 80. We are using the latest versions of everything - Tomcat milestone 4.0b6, apr, and mod_webapp CVS snapshot. We have tried using the Java Warp code that comes with Tomcat, and replacing it with the Java part of the mod_webapp build. I have also rebuilt mod_webapp with --enable-debug and see NO DIFFERENCE WHATSOEVER in the log contents. Any ideas at all would be appreciated. If I don't get any responses I will have to conclude that nobody is actually using Tomcat 4. However, I find it difficult to justify that conclusion for a distribution in its 6th Beta!! Thanks, Mark -- Mark Dzmura Digital Mission LLC
RE: Java script problem using servlets
First question: Did you try running this in a browser debugger? MS has one for IE (search for JScript debugger), and Netscape 4 has one. parent.document.critere document.critere isn't defined, unless you're defining it somewhere else. And, is this actually, really the HTML you're using? You've got this option in there: option value= 3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G/option You need to quote the value. You should also realize that the text outside the tags is never going to line up the way you want. You might want to replace the blanks with nbsp;, and set the style to font-family: monospace;. Or, replace the whole thing with a table and add some radio buttons to do selection. -- Bill K. -Original Message- From: Michel COTE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 7:26 AM To: '[EMAIL PROTECTED]' Subject: Java script problem using servlets Hello, I'm using Jakarta since a few days and i encounter the following strange problem : I have build a sample servlet based page that contains two frames, one (issued from a servlet) with a sample form composed of a dynamic list (created with a JDBC SQL query) and a push button, and another one composed of a static html file (not coming from a servlet) including only a text field. I just want to copy the value content of the selected list item, in the text field by clicking the button. So i use a sample onClick java script function on the button that reads the value in the list and write into the text field. Then i allways get a java script error message Permission denied . When i replace the servlet HTML part in the first frame by exactly the SAME HTML STATIC code (not issued from a servlet but directly from an html file), everything works fine ! ! ? ? Have you ever eard about such a matter ? ? ? Thanks for any help. Michel COTE. Here is a copy of the HTML code in the first frame : HTML HEADTITLE Liste des articles /TITLE/HEAD BODY topmargin='0' script language='JavaScript' function majCode() { //The java script allways hangs on this line parent.document.critere.text_field.code.value=document.form_li ste_art.li ste_articles.value.substring(0,12) parent.close() } /script form name='form_liste_art' div align='center' select name='liste_articles' size='13' option4 articles trouves /optionoption value= 3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093219365303 CAFE SOLUBLE MAXWELL 100 G3014680008093219365303CAFE SOLUBLE MAXWELL 100 G/option/select /select brbrinput type='button' name='bt_select' value='Seacute;lectionner' onClick=majCode() /div /form /body /html Michel COTE Cooperateurs de Normandie Picardie Tel : 232111086 email : [EMAIL PROTECTED]
AW: Dynamically Generate PDF
As usually there are many way to catch the rabbit: XSL: http://xml.apache.org/cocoon2/index.html http://xml.apache.org/fop/index.html Instead of XSL you might use one of these: http://www.retep.org.uk/pdf/ http://www.etymon.com/pj/ http://www.pdflib.com/ -Ursprüngliche Nachricht- Von: Kaneda K [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 25. Juli 2001 09:48 An: [EMAIL PROTECTED] Betreff: Dynamically Generate PDF Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
RE: keeping sessions when switching from http to https
Are you encoding the cross-protocol links (with HttpServletResponse.encode[Redirect]URL())? The only reason I ask is that it seems strange that it does OK with cookies but not with URL encoding: the code paths are similar, so I'd expect it to fail with both or succeed with both. -- Bill K. -Original Message- From: Brigger Patrick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 11:05 PM To: '[EMAIL PROTECTED]' Subject: RE: keeping sessions when switching from http to https When I try with cookies enabled, it works both on Netscape and IE 5. Cookies disabled does not work on either. Pat -Original Message- From: Mike Spreitzer [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 19:13 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https Be careful when you experiment and report on this. I have found that IE 5 carries cookies from http to https but Netscape 4 does not. I have only tested this with cookies, not URL-rewriting. I'm grumped by this problem, but it's not critcal for me yet --- for my current site, I think I can get away with only having sessions on the https side. Mike
RE: Java script problem using servlets
In order to activate the debugger : (IE) outils/options internet/avancees -Message d'origine- De : William Kaufman [mailto:[EMAIL PROTECTED]] Envoye : mercredi 25 juillet 2001 16:55 A : '[EMAIL PROTECTED]' Objet : RE: Java script problem using servlets First question: Did you try running this in a browser debugger? MS has one for IE (search for JScript debugger), and Netscape 4 has one. parent.document.critere document.critere isn't defined, unless you're defining it somewhere else. And, is this actually, really the HTML you're using? You've got this option in there: option value= 3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G/option You need to quote the value. You should also realize that the text outside the tags is never going to line up the way you want. You might want to replace the blanks with nbsp;, and set the style to font-family: monospace;. Or, replace the whole thing with a table and add some radio buttons to do selection. -- Bill K. -Original Message- From: Michel COTE [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 7:26 AM To: '[EMAIL PROTECTED]' Subject: Java script problem using servlets Hello, I'm using Jakarta since a few days and i encounter the following strange problem : I have build a sample servlet based page that contains two frames, one (issued from a servlet) with a sample form composed of a dynamic list (created with a JDBC SQL query) and a push button, and another one composed of a static html file (not coming from a servlet) including only a text field. I just want to copy the value content of the selected list item, in the text field by clicking the button. So i use a sample onClick java script function on the button that reads the value in the list and write into the text field. Then i allways get a java script error message Permission denied . When i replace the servlet HTML part in the first frame by exactly the SAME HTML STATIC code (not issued from a servlet but directly from an html file), everything works fine ! ! ? ? Have you ever eard about such a matter ? ? ? Thanks for any help. Michel COTE. Here is a copy of the HTML code in the first frame : HTML HEADTITLE Liste des articles /TITLE/HEAD BODY topmargin='0' script language='JavaScript' function majCode() { //The java script allways hangs on this line parent.document.critere.text_field.code.value=document.form_li ste_art.li ste_articles.value.substring(0,12) parent.close() } /script form name='form_liste_art' div align='center' select name='liste_articles' size='13' option4 articles trouves /optionoption value= 3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G3014680041687 219365303CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G3014680008093275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G3014680041687275456007OT CAFE SOLUBLE MAXWELL 100 G/optionoption value= 3014680008093219365303 CAFE SOLUBLE MAXWELL 100 G3014680008093219365303CAFE SOLUBLE MAXWELL 100 G/option/select /select brbrinput type='button' name='bt_select' value='Seacute;lectionner' onClick=majCode() /div /form /body /html Michel COTE Cooperateurs de Normandie Picardie Tel : 232111086 email : [EMAIL PROTECTED]
RE: Servlets In A Package
Title: RE: Servlets In A Package looking for the class Interest instead of InterestServlet. That's what I thought. make sure there are no extra spaces in the class name for the web.xml. I've gone over this file byte by byte and I've arrived at this: --- ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd web-app servlet servlet-nameinterest/servlet-name servlet-classorg.jboss.docs.interest.InterestServlet/servlet-class /servlet servlet-mapping servlet-nameinterest/servlet-name url-pattern/catalog/url-pattern /servlet-mapping /web-app--- I'll now try changing the name of the servlet and different packages to see what happens. Thanks for your help. Martin -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: 25 July 2001 12:33 To: '[EMAIL PROTECTED]' Subject: RE: Servlets In A Package I've recently installed JBoss-2.4.0_Tomcat-3.2.2 and I'm now starting to experiment with all the JBoss samples. The first, Interest, contains a servlet that I'm trying to get up and running. This InterestServlet is in a package org.jboss.docs.interest which I've compiled and placed in webapps\demo\WEB-INF\classes\org\jboss\docs\interest From your NoClassDef message it doesn't seem like the problem is in your servlet being in a package. It is finding the correct package but it's looking for the class Interest instead of InterestServlet. Although your snipping in your original post looked fine make sure there are no extra spaces in the class name for the web.xml. Also, can you get any servlet mappings to work for servlets in packages? If so I would review your web.xml again very closely and look for missing/extra tags or characters. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Help for VHost...
Hi, After many problems, my servlet run under windows NT / Apache / Tomcat 3.2.3 / mod_jk. This url helped me: http://mikal.org/interests/java/tomcat/archive/view?mesg=24718 Thanks Jeff Kilbride Loïc Lefèvre note: if one want my servlet test java code + configuration files, email me, I'll put them here ;)
RE: newbie (or a dummy?)
This is so frustrating. I got JCE, stuck all the jars in jdk/jre/lib/ext, and no dice. I have been reading thru forums for 2 weeks now, and it seems that everytime someone had a 'SHA-1 not avail' error, nobody replied. I don't know where to start. PLEASE HELP me 8( -Original Message- From: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:21 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie (or a dummy?) Just a wild guess: may be you are missing SHA-1 security provider? See if you can get it in a separate download from Sun. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 8:35 AM To: '[EMAIL PROTECTED]' Subject: newbie (or a dummy?) I am trying to run tomcat 3.2.2 and cocoon 1.8.2 on a win2k box. I followed all instructions to setup tomcat to work with cocoon, and when I try to run tomcat (w/ tomcat run, cause a new window closes to fast!) , the output looks normal up until this: Exception in thread main java.lang.InternalError: internal error: SHA-1 not available at sun.security.provider.SecureRandom.init(SecureRandom.java:89) ... the error stack goes on for twenty or so lines... I really would like to get this shtuff working! what have I overlooked? THANK YOU ;P {then when I try to put the error trace to a file for the sake of my hand- (tomcat run err.txt), the output is there up until the errors, then it says error report can be found inTOMCAT_HOME/logs/tomcat.log ... but its not there!} *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
RE: Custom HTTP status code
extract org/apache/tomcat/core/LocalStrings.properties (or org/apache/tomcat/service/LocalStrings.properties ?? don't remember exactly which one did it for me..) from webserver.jar, add/edit status codes you want, put it back and restart Tomcat. You should be running fine now. This should work on 3.2.2, not sure about T4. --V. --- Hi! I'm developing an application not targeted to the web, but still I need to use the HTTP as the protocol. I've chosen to specify five new status code, to report some kind of errors I may generate and that aren't covered by existing ones. These codes are 601, 602, 603, 605, 606. The problem is that using JRun it just ignored the error code, and reported the page normally; tomcat, on the other hand, throws an exception everytime my application reports one such code. This degrades performances very much... Is there a way to specify these new codes as valid? And, in case, to bind a string to them as a description, just as for the other ones? I saw there are some LocalString.properties files, but I can't get them to work; and I think they're just for localization... Many thanks, Germano Rizzo *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
ContextManager: SocketException reading request
Can someone help here? I just start to use Tomcat with Apache on NetWare server. And sometimes when the servlet reads html form request, tomcat shows the "ContextManager: SocketException reading request". Please see the following for detail message. The environment I'm using is Tomcat3.2.2, Apache1.3.20 and NetWare5.1. Thanks in advance! Tomcat shows: ContextManager: SocketException reading request, ignored java.net.SocketException: socket available: Socket operation on non-socket at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(Unknown Source) at java.net.SocketInputStream.available(Unknown Source) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:217) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source)
mod_jk on Solaris 2.6 : undefined symbols
Hi all, I am new to this list but I have browsed through the archives on jakarta.apache.org to see if I could find a solution to my problem. I am trying to compile mod_jk.so on Solaris 2.6 for Tomcat 3.2.3 and Apache 1.3.20. Following information in the other posts related to this subject and the documentation on apache.org or that I have found elsewhere, I have modified the config section of the apxs script as follows : my $CFG_TARGET= q(httpd); my $CFG_CC= q(gcc); my $CFG_CFLAGS= q( -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI \ -DUSE_EXPAT -I../lib/expat-lite `../apaci`); my $CFG_CFLAGS_SHLIB = q(-fPIC); my $CFG_LD_SHLIB = q(ld); my $CFG_LDFLAGS_SHLIB = q();# I don't use -G my $CFG_LIBS_SHLIB= q(); my $CFG_PREFIX= q(/usr/local/apache); my $CFG_SBINDIR = q(/usr/local/apache/bin); my $CFG_INCLUDEDIR= q(/usr/local/apache/include); my $CFG_LIBEXECDIR= q(/usr/local/apache/libexec); my $CFG_SYSCONFDIR= q(/usr/local/apache/conf); And I am using this makefile : ## I assume this one is set up already # JAVA_HOME= OS=solaris JAVA_INCL=-I ${JAVA_HOME}/include -I ${JAVA_HOME}/include/${OS} JAVA_LIB=-L ${JAVA_HOME}/jre/lib/${ARCH} \ -L ${JAVA_HOME}/lib/${ARCH}/native_threads #ifndef APXS APXS=/usr/local/apache/bin/apxs #endif SYSLIBS= APACHE_LIBS= JK=../jk/ SRCS=../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c \ ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c \ ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c \ ../jk/jk_sockbuf.c ../jk/jk_map.c ../jk/jk_uri_worker_map.c all: mod_jk.so mod_jk.so: $(APXS) -I ../jk ${JAVA_INCL} ${SYSLIBS} ${APACHE_LIBS} -c -o $@ \ mod_jk.c $(SRCS) clean: rm *.o *.so This is quite close to Makefile.linux, on which it's based. If I use it as it is there, ld complains about dozens of undefined symbols (eg ap_pnsprintf(), etc...). So, armed with nm, I had a look at all the .a and .o files generated when compiling Apache, and it appears that by adding : SYSLIBS=-l posix4 -l socket -l nsl APACHE_LIBS=-L ${APACHE_HOME}/src/ap \ -L ${APACHE_HOME}/src/lib/expat-lite -L ${APACHE_HOME}/src/main \ -L ${APACHE_HOME}/src/modules/standard -L ${APACHE_HOME}/src/os/unix \ -lstandard -lmain -lap -lexpat -los and ${APACHE_HOME}/src/modules.c ${APACHE_HOME}/src/buildmark.c to SRCS, I get rid of all these undefined symbols. This is really bizarre since nobody on this list seems to have had to do that to compile mod_jk. Unfortunately, link still fails, but with this message this time : ld: warning: cannot find entry symbol _start; defaulting to 00013448 /usr/local/apache/src/ap/libap.a(ap_snprintf.o): In function `conv_p2_quad': ap_snprintf.o(.text+0x1378): undefined reference to `__lshrdi3' What really loses me here is that __lshrdi3 is nowhere to be found in ap_snprintf.c ! So does anybody know what I am missing here ? I would be most grateful if somebody could give me an hand ;-) Compiled mod_jk for Solaris 2.6 would be appreciated, as those I have found on the Net are either for Solaris 8 or make apache core-dump. No need to say I am really looking forward to Solaris binaries being provided on the Jakarta web site 8:) Thanks a lot. Fabrice
Simple (I think) Running Tomcat Question
I believe I now have Tomcat running successfully. But... After starting Tomcat I get the following screen: 01-07-25 11:37:26 - ContextManager: Adding context Ctx( ) 01-07-25 11:37:26 - ContextManager: Adding context Ctx( /test ) 01-07-25 11:37:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 01-07-25 11:37:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then tried to run the Hello World applet. When I successfully compile and then try to run an applet, I get this error message: Exception in thread main java.lang.NoSuchMethodError: main Any ideas why? Jeff W. - Original Message - From: Jim Cheesman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 7:49 AM Subject: Re: Simple Tomcat Install on Win98 At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
RE: newbie (or a dummy?)
Maybe I should restate... all I am trying to do is startup tomcat3.2.2 on win2k. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 26, 2001 1:11 AM To: '[EMAIL PROTECTED]' Cc: Lange, Mark A CECOM RDEC STCD Subject: RE: newbie (or a dummy?) This is so frustrating. I got JCE, stuck all the jars in jdk/jre/lib/ext, and no dice. I have been reading thru forums for 2 weeks now, and it seems that everytime someone had a 'SHA-1 not avail' error, nobody replied. I don't know where to start. PLEASE HELP me 8( -Original Message- From: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:21 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie (or a dummy?) Just a wild guess: may be you are missing SHA-1 security provider? See if you can get it in a separate download from Sun. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 8:35 AM To: '[EMAIL PROTECTED]' Subject: newbie (or a dummy?) I am trying to run tomcat 3.2.2 and cocoon 1.8.2 on a win2k box. I followed all instructions to setup tomcat to work with cocoon, and when I try to run tomcat (w/ tomcat run, cause a new window closes to fast!) , the output looks normal up until this: Exception in thread main java.lang.InternalError: internal error: SHA-1 not available at sun.security.provider.SecureRandom.init(SecureRandom.java:89) ... the error stack goes on for twenty or so lines... I really would like to get this shtuff working! what have I overlooked? THANK YOU ;P {then when I try to put the error trace to a file for the sake of my hand- (tomcat run err.txt), the output is there up until the errors, then it says error report can be found inTOMCAT_HOME/logs/tomcat.log ... but its not there!} *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
unsubscribe me
-Original Message- From: Jeffrey Worst [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 8:54 AM To: [EMAIL PROTECTED] Subject: Simple (I think) Running Tomcat Question I believe I now have Tomcat running successfully. But... After starting Tomcat I get the following screen: 01-07-25 11:37:26 - ContextManager: Adding context Ctx( ) 01-07-25 11:37:26 - ContextManager: Adding context Ctx( /test ) 01-07-25 11:37:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 01-07-25 11:37:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then tried to run the Hello World applet. When I successfully compile and then try to run an applet, I get this error message: Exception in thread main java.lang.NoSuchMethodError: main Any ideas why? Jeff W. - Original Message - From: Jim Cheesman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 7:49 AM Subject: Re: Simple Tomcat Install on Win98 At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
RE: Simple (I think) Running Tomcat Question
check if your servlet is in your classpath. before starting tomcat, i execute un file gotomcat.bat which fix the values for the classpath. see below this file : set JAVA_HOME=d:\jdk\jdk1.2.2 set TOMCAT_HOME=d:\softs\jakarta-tomcat-3.2.1 set CLASSPATH=%CLASSPATH%;d:\jdk\jdk1.2.2 set CLASSPATH=%CLASSPATH%;d:\jdk\jdk1.2.2\jre\lib\rt.jar set CLASSPATH=%TOMCAT_HOME%\webapps set PATH=%PATH%;JAVA_HOME\bin set CLASSPATH=%CLASSPATH%;c:\tutu\WEB-INF\lib\tutu1.jar set CLASSPATH=%CLASSPATH%;c:\tutu\WEB-INF\lib\tutu2.jar set CLASSPATH=%CLASSPATH%;c:\tutu\WEB-INF\classes -Message d'origine- De : Jeffrey Worst [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 17:54 À : [EMAIL PROTECTED] Objet : Simple (I think) Running Tomcat Question I believe I now have Tomcat running successfully. But... After starting Tomcat I get the following screen: 01-07-25 11:37:26 - ContextManager: Adding context Ctx( ) 01-07-25 11:37:26 - ContextManager: Adding context Ctx( /test ) 01-07-25 11:37:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 01-07-25 11:37:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then tried to run the Hello World applet. When I successfully compile and then try to run an applet, I get this error message: Exception in thread main java.lang.NoSuchMethodError: main Any ideas why? Jeff W. - Original Message - From: Jim Cheesman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 7:49 AM Subject: Re: Simple Tomcat Install on Win98 At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
RE: newbie (or a dummy?)
I don't know the exact answer but here are some clues: 1. what jdk are you running on? upgrade to 1.2/1.3 if it's = 1.1 2. check your java.security file, make sure you have the following entry: security.provider.1=sun.security.provider.Sun I guess if you're using non-sun jdk it could be something else. 3. read this http://java.sun.com/products/jdk/1.2/docs/guide/security/HowToImplAProvider. html to understand Java security provider mechanisms Hope this helps. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 8:41 AM To: '[EMAIL PROTECTED]' Cc: Lange, Mark A CECOM RDEC STCD Subject: RE: newbie (or a dummy?) This is so frustrating. I got JCE, stuck all the jars in jdk/jre/lib/ext, and no dice. I have been reading thru forums for 2 weeks now, and it seems that everytime someone had a 'SHA-1 not avail' error, nobody replied. I don't know where to start. PLEASE HELP me 8( -Original Message- From: Vladimir Grishchenko [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:21 AM To: '[EMAIL PROTECTED]' Subject: RE: newbie (or a dummy?) Just a wild guess: may be you are missing SHA-1 security provider? See if you can get it in a separate download from Sun. --V. -Original Message- From: Henderson, Kevin CECOM RDEC STCD [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 8:35 AM To: '[EMAIL PROTECTED]' Subject: newbie (or a dummy?) I am trying to run tomcat 3.2.2 and cocoon 1.8.2 on a win2k box. I followed all instructions to setup tomcat to work with cocoon, and when I try to run tomcat (w/ tomcat run, cause a new window closes to fast!) , the output looks normal up until this: Exception in thread main java.lang.InternalError: internal error: SHA-1 not available at sun.security.provider.SecureRandom.init(SecureRandom.java:89) ... the error stack goes on for twenty or so lines... I really would like to get this shtuff working! what have I overlooked? THANK YOU ;P {then when I try to put the error trace to a file for the sake of my hand- (tomcat run err.txt), the output is there up until the errors, then it says error report can be found inTOMCAT_HOME/logs/tomcat.log ... but its not there!} *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ***
Tomcat multibyte data
Hi All, I have a servlet hosted in tomcat3.2.1. I am trying to get it work with multibyte data with no luck. Does the tomcat servlet container support multibyte data. Any information or pointers to info will be greatly appreicated. Thanx Ganesh
authentification for differents groups FORM or BASIC
Hello, I have to do protect the accesses to my application in fuction of groups of users. For exemple, the group1 can access to the application if the url likes this : /sc?AI=A* /sc?AI=M* /sc?AI=D And the group2 can access with a url likes : /sc?AI=V* How to do that with a FORM or a BASIC authentification ? Delphine
RE: authentification for differents groups FORM or BASIC
Precision : The group2 must access also to the same urls that the group1. group1 : /sc?AI=A* /sc?AI=M* /sc?AI=D group2 : /sc?AI=A* /sc?AI=M* /sc?AI=D /sc?AI=V* -Message d'origine- De : zze-messager FTM balr002 Envoye : mercredi 25 juillet 2001 18:04 A : '[EMAIL PROTECTED]' Objet : authentification for differents groups FORM or BASIC Hello, I have to do protect the accesses to my application in fuction of groups of users. For exemple, the group1 can access to the application if the url likes this : /sc?AI=A* /sc?AI=M* /sc?AI=D And the group2 can access with a url likes : /sc?AI=V* How to do that with a FORM or a BASIC authentification ? Delphine
Re: Simple (I think) Running Tomcat Question
Hello World is a servlet, not an applet - a world of difference. Exactly how are you trying to run it? Matt. - Original Message - From: Jeffrey Worst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 25 July 2001 16:54 Subject: Simple (I think) Running Tomcat Question I believe I now have Tomcat running successfully. But... After starting Tomcat I get the following screen: 01-07-25 11:37:26 - ContextManager: Adding context Ctx( ) 01-07-25 11:37:26 - ContextManager: Adding context Ctx( /test ) 01-07-25 11:37:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 01-07-25 11:37:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then tried to run the Hello World applet. When I successfully compile and then try to run an applet, I get this error message: Exception in thread main java.lang.NoSuchMethodError: main Any ideas why? Jeff W. - Original Message - From: Jim Cheesman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 7:49 AM Subject: Re: Simple Tomcat Install on Win98 At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
Re: Help w/ Tomcat 4.0b6 and Apache
Pier et al: Yes... and ... YES!! I downloaded the newest jakarta-tomcat-connectors, built, installed, and ran, and my two big problems have disappeared! THANK YOU! I am now cautiously beginning to test our application to see that everything else works. Thanks again for the excellent fix! Regards, Mark Pier P. Fumagalli wrote: I'm almost done with a PATCH to fix that... I should be able to commit it later tonight... Pier Jeff Hoare at [EMAIL PROTECTED] wrote: Hi, I'm using it but as you have found out I think very few ppl are using it on this list. I was able to view servlets thru apache, but the integration fails whenever I try reading any data (I use the post method for form data). I found a java null pointer exception in the catalina log trying to read from the input stream, which I guess is the problem. I have posted a bug on the bugzilla site. As with your experience everything works flawlessly when accessing the servlets thru tomcat directly, but seems broken when using the apache-tomcat extension. This could be some mis-configuration, or a bug but either way the lack of any response is not encouraging. I know this is no help, but at least someone else is suffering as well :-). If I get any response I'll post it to this list Jeff On Wednesday 25 July 2001 03:45, you wrote: Folks: I have received but a single response to my multiple posts regarding Tomcat 4 Beta 6 and Apache, but, alas, it, was not helpful. Given the otherwise high level of activity on this list, I must again ask this question: Is anybody on this list successfully using Tomcat 4 with Apache?? If so, I would desperately like to know your configuration and see the relevant parts of your server.xml, apache configs, and know what module/version you are using as bridge between Apache and Tomcat. Our desired benchmark is simply to achieve the same behaviors from the example JSP's through port 80 (via Apache) as we do through port 8080. It has taken enormous effort just to get something limping along, but still the transport between Apache and Tomcat (mod_webapp) is clearly broken - key header variables have default values instead of actual values, preventing the application from using sessions or accessing the proper values of header variables. As an example, the snoop JSP provides reasonable values when executed from port 8080 but reports mostly null's and -1's, when executed from port 80. We are using the latest versions of everything - Tomcat milestone 4.0b6, apr, and mod_webapp CVS snapshot. We have tried using the Java Warp code that comes with Tomcat, and replacing it with the Java part of the mod_webapp build. I have also rebuilt mod_webapp with --enable-debug and see NO DIFFERENCE WHATSOEVER in the log contents. Any ideas at all would be appreciated. If I don't get any responses I will have to conclude that nobody is actually using Tomcat 4. However, I find it difficult to justify that conclusion for a distribution in its 6th Beta!! Thanks, Mark -- Mark Dzmura Digital Mission LLC -- Mark Dzmura Digital Mission LLC
Re: Simple (I think) Running Tomcat Question
Very true. Let me go back and think this thing through some more so I can post a more thoughtful question. Thanks, Jeff W. - Original Message - From: Matt Read [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 12:37 PM Subject: Re: Simple (I think) Running Tomcat Question Hello World is a servlet, not an applet - a world of difference. Exactly how are you trying to run it? Matt. - Original Message - From: Jeffrey Worst [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 25 July 2001 16:54 Subject: Simple (I think) Running Tomcat Question I believe I now have Tomcat running successfully. But... After starting Tomcat I get the following screen: 01-07-25 11:37:26 - ContextManager: Adding context Ctx( ) 01-07-25 11:37:26 - ContextManager: Adding context Ctx( /test ) 01-07-25 11:37:29 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 01-07-25 11:37:29 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then tried to run the Hello World applet. When I successfully compile and then try to run an applet, I get this error message: Exception in thread main java.lang.NoSuchMethodError: main Any ideas why? Jeff W. - Original Message - From: Jim Cheesman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 7:49 AM Subject: Re: Simple Tomcat Install on Win98 At 01:30 PM 25/07/01, you wrote: In html, which is horrible! Please sort it out! I'm having problems installing Tomcat on my Win98Se machine. Below are the directions from Jakarta for installing Tomcat. I've commented what I don't understand. snip/ Change directory to jakarta-tomcat-3.2.1 and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy. This I don t understand. Are they talking about doing this in autoexec.bat or in the tomcat.bat file? In autoexec.bat On Win32 you should type: set TOMCAT_HOME=foo\jakarta-tomcat-3.2.1 Again, are they talking about within autoexec.bat or someplace else? In autoexec.bat Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy... Where is the environment variable JAVA HOME located? In autoexec.bat then add the Java interpreter to your PATH environment variable. How does one do this? In autoexec.bat (!) The basic syntax: set MY_ENVIRONMENT_VARIABLE=c:\path\to\whatever and to add to the previously set variable set MY_ENVIRONMENT_VARIABLE=%MY_ENVIRONMENT_VARIABLE%;c:\path\to\whatever -- * Jim Cheesman * Trabajo: [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360 I keep telling myself that I am a pathological liar, but I am not sure if I believe it.
Re: Help w/ Tomcat 4.0b6 and Apache
Mark Dzmura at [EMAIL PROTECTED] wrote: Pier et al: Yes... and ... YES!! I downloaded the newest jakarta-tomcat-connectors, built, installed, and ran, and my two big problems have disappeared! THANK YOU! I am now cautiously beginning to test our application to see that everything else works. Thanks again for the excellent fix! Nope, it will not... Check out bug 2777. I'll have a fix for that by tonight. Pier
Apxs
hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
Re: Help w/ Tomcat 4.0b6 and Apache
Confirmed. getParameter()'s are giving null pointer exceptions for me as well. Mark Pier P. Fumagalli wrote: Mark Dzmura [EMAIL PROTECTED] wrote: Folks: I have received but a single response to my multiple posts regarding Tomcat 4 Beta 6 and Apache, but, alas, it, was not helpful. Given the otherwise high level of activity on this list, I must again ask this question: Sorry... I just subscribed :( Is anybody on this list successfully using Tomcat 4 with Apache?? Well, the WebApp module just went thru its first public release :) I don't expect it to work out-of-the-box :) As an example, the snoop JSP provides reasonable values when executed from port 8080 but reports mostly null's and -1's, when executed from port 80. My bad... The C part is fixed.. I'm fixing the Java part, and it should be working by tonight. I have also rebuilt mod_webapp with --enable-debug and see NO DIFFERENCE WHATSOEVER in the log contents. That's weird... Any ideas at all would be appreciated. If I don't get any responses I will have to conclude that nobody is actually using Tomcat 4. However, I find it difficult to justify that conclusion for a distribution in its 6th Beta!! It's the 6th beta of Tomcat, but the first one for the WebApp connector... And as I hear of more bugs, I'll fix them... Thank you very much for your feedback, and for posting the bug on BugZilla... (BTW, if you're trying out mod_webapp, and find some bugs, please use BugZilla http://nagoya.apache.org/buzilla, as I get notified right away) Pier -- Mark Dzmura Digital Mission LLC
RE: newbie (or a dummy?)
FWIW, my tomcat.log would never be updated unless the file already existed before starting tomcat... so maybe you can try creating a 0-length file of that name. {then when I try to put the error trace to a file for the sake of my hand- (tomcat run err.txt), the output is there up until the errors, then it says error report can be found inTOMCAT_HOME/logs/tomcat.log ... but its not there!}
How to increase debug reporting?
I know there are 3 main logs that I can set verbositylevel=debug to squeeze more info from tomcat... What else can i do? I see debug=0 all over the XML configuration files but I don't know which ones i should change, or where the info would go, or even what values to use. On a related topic, I cannot redirect stdout and stderr to files... all the directions seem to have disapeared... can someone point me in the right direction? (p.s. i'm running tc3.2.3 on solaris 2.6)
Re: AW: Dynamically Generate PDF
You may also want to look at http://www.thentech.com for PDFdriver for Java. Worked for us. - Boris As usually there are many way to catch the rabbit: XSL: http://xml.apache.org/cocoon2/index.html http://xml.apache.org/fop/index.html Instead of XSL you might use one of these: http://www.retep.org.uk/pdf/ http://www.etymon.com/pj/ http://www.pdflib.com/ -Ursprüngliche Nachricht- Von: Kaneda K [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 25. Juli 2001 09:48 An: [EMAIL PROTECTED] Betreff: Dynamically Generate PDF Hello everyone, I wonder if anyone there has once generate PDF File from a servlet or JSP. And could give me some tips.
Re: Help w/ Tomcat 4.0b6 and Apache
Mark Dzmura at [EMAIL PROTECTED] wrote: Confirmed. getParameter()'s are giving null pointer exceptions for me as well. You can kinda expect it from code that is in Alpha :) Pier
401
Hello I have Tomcat 3.2 installed like service and redirect module /jakarta/isapi_redirect.dll in IIS Filters. After Invoking the URL http://localhost/examples/jsp/index.html; in my browser I faced with following line in IIS log file: GET /jakarta/isapi_redirect.dll 401. I didnt find anything like that In your troubleshootter. Please, tell me, what I did wrong or what shall i do??? Thanks Oleg Kusij. __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: request for suggestions on how to secure a web application....
I'm not sure whether it'll work for you but you can assert current session on each jsp page that you want to protect (assuming you store user login info in the session) and throw an exception in case the object is not found in the session, then the exception can be caught by an error jsp page. hth - Boris This posting is a request for suggestions on how best to secure a web application. First my setup: NT 4.0 Apache 1.3.12 Tomcat 3.2.1 (running behind Apache) servlets jsp pages static html pages jdk1.3 Web-app directory structure: webapps/my_context/ /jsp/jsp_pages /web-inf/classes/my_servlets /web-inf/classes/beans/my_java_beans My static html files reside under the apache document root. For servlet access I am using session cookies, as specified in the Java Servlet Spec, to authorize users. This works very well for my purposes. My concern is protecting sensitive jsp and static html pages. How do I stop an unauthorized user from accessing a jsp or html resource directly? ie: a back-door attack. For example, I am protecting my site with a login page, but if a user simply sidesteps the login and types http://my_domain/my_context/jsp/any_jsp_page into his browser, he will get access to any jsp page that resides in the specified context. I have experimented with some different approaches: 1. hide the jsp directory directly under the /web-inf directory and let Tomcat restrict access. So I would have: /web-inf/classes/servlets /web-inf/jsp/jsp_pages Then provide access to jsp pages only through a verification servlet, which can verify the user and then forward the request to the correct resource. However, this is causing problems when I utilize a RequestDispatcher(path).forward(req, res) or RequestDispatcher(path).include(req, res) instruction. The path needs to start with a / and be relative to the context root, per the Java Servlet API docs, which makes it impossible(?) to provide a correct path, since my verification servlet, and hence the execution thread, is in /web-inf/classes. When I issue the forward or inlude, I need to provide a path that looks something like: /../jsp/jsp_page which is correctly making the JVM puke. 2. Utilize the apache rewrite module and have apache rewrite all requests for http://my_domain/my_context/jsp/*.jsp to my verification servlet. The verification servlet can then do its thing and forward valid requests to the appropriate request. A hornet's nest of complexity here! and my nose tells me this is the wrong path to take. 3. Thought a lot about utilizing the Tomcat API. ie: RequestInterceptor, Virtual Host, Valves etc. I found rudimentary information about what these constructs are, but very little on how to use them. So, I am kinda stumped :-( I guess the next step would be to explore Basic or Digest Authorization, but I was hoping there would be a simpler way, that uses the power of servlets I would greatly welcome any and all suggestions Thank you, and keep up the great work. The Tomcat effort rocks! Peter BTW, I anticipate that the Tomcat docs will improve greatly in the future, and I was greatly encouraged to see the effort being put into making a book, and the template forming around v4.0 I would like to suggest a section on real world examples, using and programming the Tomcat API and the xml config files, like server.xml. For an example of what I mean, the documentation for the Apache mod_rewrite, written by Ralf S. Engelschall, has a section on practical solutions. http://httpd.apache.org/docs/mod/mod_rewrite.html That's kinda what I mean.
RE: keeping sessions when switching from http to https
I guess that's the way Tomcat parses the session info from request. When it gets the cookie, everything is fine that it can get jsessionid from the cookie and passes it back. But without cookie, it needs to rewrite the url. I saw somebody said that https and http are different schemes that HttpServletResponse.encodueURL() cannot encode the existing session id (for http) into the https URL, thus practically prevents the session passed on to https. This IS a problem. Many handheld devices don't support cookie at all. I am supprised that nobody has declared successfully solving this problem yet. Brigger, can you please check when turning off cookie, is the jsessionid correctly encoded into the returned https url? Thanks. Li -Original Message- From: William Kaufman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 11:04 AM To: '[EMAIL PROTECTED]' Subject: RE: keeping sessions when switching from http to https Are you encoding the cross-protocol links (with HttpServletResponse.encode[Redirect]URL())? The only reason I ask is that it seems strange that it does OK with cookies but not with URL encoding: the code paths are similar, so I'd expect it to fail with both or succeed with both. -- Bill K. -Original Message- From: Brigger Patrick [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 24, 2001 11:05 PM To: '[EMAIL PROTECTED]' Subject: RE: keeping sessions when switching from http to https When I try with cookies enabled, it works both on Netscape and IE 5. Cookies disabled does not work on either. Pat -Original Message- From: Mike Spreitzer [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 24. Juli 2001 19:13 To: [EMAIL PROTECTED] Subject: Re: keeping sessions when switching from http to https Be careful when you experiment and report on this. I have found that IE 5 carries cookies from http to https but Netscape 4 does not. I have only tested this with cookies, not URL-rewriting. I'm grumped by this problem, but it's not critcal for me yet --- for my current site, I think I can get away with only having sessions on the https side. Mike
Re: request for suggestions on how to secure a web application....
Hi Peter, Have you looked at Realms? This allows you to specify a set of resources (html, jsp, servlets etc) to be protected in your web.xml file. Any unauthorised access attempt to these files will automatically throw up a login form. Means you don't have to code in protection to each page. You can authorise your users against a text file (SimpleRealm) or a database (JDBCRealm). There is an example in the examples directory. Check out the web.xml file in there and also look for Realm in server.xml If you want to use a database look at TOMCAT_HOME/doc/JDBCRealm.howto If you like the look of Realms I'm afraid you will have to upgrade to 3.2.3 as earlier versions have a rather large security vulnerability. andrew On Wed, 25 Jul 2001, you wrote: I'm not sure whether it'll work for you but you can assert current session on each jsp page that you want to protect (assuming you store user login info in the session) and throw an exception in case the object is not found in the session, then the exception can be caught by an error jsp page. hth - Boris This posting is a request for suggestions on how best to secure a web application. First my setup: NT 4.0 Apache 1.3.12 Tomcat 3.2.1 (running behind Apache) servlets jsp pages static html pages jdk1.3 Web-app directory structure: webapps/my_context/ /jsp/jsp_pages /web-inf/classes/my_servlets /web-inf/classes/beans/my_java_beans My static html files reside under the apache document root. For servlet access I am using session cookies, as specified in the Java Servlet Spec, to authorize users. This works very well for my purposes. My concern is protecting sensitive jsp and static html pages. How do I stop an unauthorized user from accessing a jsp or html resource directly? ie: a back-door attack. For example, I am protecting my site with a login page, but if a user simply sidesteps the login and types http://my_domain/my_context/jsp/any_jsp_page into his browser, he will get access to any jsp page that resides in the specified context. I have experimented with some different approaches: 1. hide the jsp directory directly under the /web-inf directory and let Tomcat restrict access. So I would have: /web-inf/classes/servlets /web-inf/jsp/jsp_pages Then provide access to jsp pages only through a verification servlet, which can verify the user and then forward the request to the correct resource. However, this is causing problems when I utilize a RequestDispatcher(path).forward(req, res) or RequestDispatcher(path).include(req, res) instruction. The path needs to start with a / and be relative to the context root, per the Java Servlet API docs, which makes it impossible(?) to provide a correct path, since my verification servlet, and hence the execution thread, is in /web-inf/classes. When I issue the forward or inlude, I need to provide a path that looks something like: /../jsp/jsp_page which is correctly making the JVM puke. 2. Utilize the apache rewrite module and have apache rewrite all requests for http://my_domain/my_context/jsp/*.jsp to my verification servlet. The verification servlet can then do its thing and forward valid requests to the appropriate request. A hornet's nest of complexity here! and my nose tells me this is the wrong path to take. 3. Thought a lot about utilizing the Tomcat API. ie: RequestInterceptor, Virtual Host, Valves etc. I found rudimentary information about what these constructs are, but very little on how to use them. So, I am kinda stumped :-( I guess the next step would be to explore Basic or Digest Authorization, but I was hoping there would be a simpler way, that uses the power of servlets I would greatly welcome any and all suggestions Thank you, and keep up the great work. The Tomcat effort rocks! Peter BTW, I anticipate that the Tomcat docs will improve greatly in the future, and I was greatly encouraged to see the effort being put into making a book, and the template forming around v4.0 I would like to suggest a section on real world examples, using and programming the Tomcat API and the xml config files, like server.xml. For an example of what I mean, the documentation for the Apache mod_rewrite, written by Ralf S. Engelschall, has a section on practical solutions. http://httpd.apache.org/docs/mod/mod_rewrite.html That's kinda what I mean. --
Re: expression tag in JSP standar
On Wed, 25 Jul 2001, Jim Cheesman wrote: At 12:05 AM 25/07/01, you wrote: Given that Tomcat is the reference implementation I would assume its implementation is the correct one. And assuming, of course, that the behaviour is defined... In the spec for JSP1.1 the only thing it says is that the expression is coerced into a String. What the container does with a null String is up to it. (This may mean that any of the types of behaviour you've seen is/are correct.) Jim's analysis is correct. And the JSP 1.2 spec (now in Proposed Final Draft 3 state) says exactly the same thing. If you feel that the spec *should* say something about this, the best avenue is to address your suggestion to the appropriate feedback address [EMAIL PROTECTED] for consideration by the expert group. By the way, the corresponding address for the servlet spec is [EMAIL PROTECTED]. Craig McClanahan