Re: response.encodeURL and Apache 1.3.12
For example http://www.myserver.com/test.jsp;jsessionid=something; gives a 404 file not found error whereas http://www.myserver.com/test.jsp; works without any problem. If I am connecting directly to tomcat http://www.myserver.com:8080/test.jsp;jsessionid=something; (in my case it's listening on 8080) it works too and jsessionid is used as the session id. Which version of Apache do you use and are you sure, you are going to apache first to get .jsps and you aren't connecting directly to tomcat, that is listening on port 80? Bye, Peter. Paul Nock wrote: Saw your comments on tomcat-user distribution list, and I'm curious what you mean by Apache webserver can't handle ;jsessionid=? What is the problem you see when using jsessionid? I have Apache/Tomcat and use ;jsessionid= re-writing and my sessions seem to work fine. If there's something I've missed though, I'm going to need to fix it too... Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Hrastnik Sent: Tuesday, May 15, 2001 6:40 AM To: [EMAIL PROTECTED] Subject: response.encodeURL and Apache 1.3.12 encodeURL appends ;jsessionid=something to the given URL (e.g. response.encodeURL(test.jsp) results in test.jsp;jsessionid=something). The Apache webserver can't handle such URLs. In other words, it is not possible to use the (for production systems recommended) tomcat-apache environment without using cookies to handle sessions. I know that there's a workaround with Apache's mod_rewrite module but IMHO this isn't a good solution. So I created a special encodeURL function that appends the session id somehow like test.jsp?jsessionid=something but I can't figure out how to tell tomcat to use that request variable as the session id. Thanx for your help, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277 -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
Regarding error logs
Hi, At end of every business day ( at a specific time ) Apache and Tomcat logs need to be copied to a backupfile tagged by date and the log stared anew on a fresh file. I have been made to understand that Apache has such feature built in and it is a matter of configuration. Iam not sure of how this can be achieved with tomcat logs . Can Someone Help me ? Thanks and Regards, Murali begin:vcard n:Kasetty;Murali Mohan x-mozilla-html:FALSE org:Hewlett-Packard;SES(Software Engineering Services) version:2.1 email;internet:[EMAIL PROTECTED] title:Software Engineer adr;quoted-printable:;;29,Cunningham Road,=0D=0ABangalore-560052=0D=0ATel : 2251554 X: 1321 fn:Murali Mohan Kasetty end:vcard
Re: Regarding error logs
Murali Mohan Kasetty wrote: Hi, At end of every business day ( at a specific time ) Apache and Tomcat logs need to be copied to a backupfile tagged by date and the log stared anew on a fresh file. I have been made to understand that Apache has such feature built in and it is a matter of configuration. Iam not sure of how this can be achieved with tomcat logs . Can Someone Help me ? Thanks and Regards, Murali Two approaches may be possible under Unix...;-) (1) Logrotate... (2) Shell Script + Cron... Cheers, John Clark -- /) John Clark Naldoza y Lopez (\ / )Software Design Engineer II ( \ _( (__ Web-Application Development_) )_ (((\ \ /_Cable Modem Network Management System _\ / /))) ( \_/ / NEC Telecom Software Phils., Inc. \ \_/ ) \ / \ / \_/ phone: (+63 32) 233-9142 loc. 3112\_/ / / cellphone: (+63 919) 399-4742 \ \ / / email: [EMAIL PROTECTED]\ \
url-pattern deployment descriptor and Apache
Hi, I have a question regarding the servlet url-pattern deployment descriptor. I am using Tomcat 3.2.1 with Apache_1.3.17 on SunOS 5.6 I have just installed this and I am using the /test context that is provided with Tomcat to see if everything is working OK. Everything seems to be Ok except for url-patterns. E.g. http://myhost:port/test/servlet/servlet3 http://myhost:port/test/servlet/servlet4 are fine, but http://myhost:port/calendar does not work. However, http://myhost:port/test/servlet/*.bop does invoke servlet4 but no other url-patterns work. - tomcat conf is as follows: LoadModule jserv_module libexec/mod_jserv.so ApJServManual on ApJServDefaultProtocol ajpv12 ApJServSecretKey DISABLED ApJServMountCopy on ApJServLogLevel notice ApJServDefaultPort 9059 AddType text/jsp .jsp AddHandler jserv-servlet .jsp Alias /examples /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/examples Directory /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/examples Options Indexes FollowSymLinks /Directory ApJServMount /examples/servlet /examples Location /examples/WEB-INF/ AllowOverride None deny from all /Location Location /examples/META-INF/ AllowOverride None deny from all /Location Alias /admin /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/admin Directory /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/admin Options Indexes FollowSymLinks /Directory ApJServMount /admin/servlet /admin Location /admin/WEB-INF/ AllowOverride None deny from all /Location Location /admin/META-INF/ AllowOverride None deny from all /Location ApJServMount /servlet /ROOT Alias /test /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/test Directory /home/papianma/cmd/jakarta-tomcat-3.2.1/webapps/test Options Indexes FollowSymLinks /Directory ApJServMount /test/servlet /test Location /test/WEB-INF/ AllowOverride None deny from all /Location Location /test/META-INF/ AllowOverride None deny from all /Location webapps/test/WEB-INF/web.xml is as follows: ?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 servlet1 /servlet-name servlet-class requestMap.Servlet1 /servlet-class /servlet servlet servlet-name servlet2 /servlet-name servlet-class requestMap.Servlet2 /servlet-class /servlet servlet servlet-name servlet3 /servlet-name servlet-class requestMap.Servlet3 /servlet-class /servlet servlet servlet-name servlet4 /servlet-name servlet-class requestMap.Servlet4 /servlet-class /servlet servlet servlet-name servletParam1 /servlet-name servlet-class ServletParam /servlet-class init-param param-nameparam1/param-name param-valuevalue1/param-value /init-param init-param param-nameparam2/param-name param-valuevalue2/param-value /init-param /servlet servlet servlet-name servletParam2 /servlet-name servlet-class ServletParam /servlet-class init-param param-nameparam3/param-name param-valuevalue3/param-value /init-param init-param param-nameparam4/param-name param-valuevalue4/param-value /init-param /servlet servlet servlet-name PermanentlyUnavailable2 /servlet-name servlet-class PermanentlyUnavailable /servlet-class !-- load-on-startup/load-on-startup -- /servlet servlet-mapping servlet-name servlet1 /servlet-name url-pattern /foo/bar/* /url-pattern /servlet-mapping servlet-mapping servlet-name servlet2 /servlet-name url-pattern /baz/* /url-pattern /servlet-mapping servlet-mapping servlet-name servlet3 /servlet-name url-pattern /catalog /url-pattern /servlet-mapping servlet-mapping servlet-name servlet4 /servlet-name url-pattern *.bop /url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-namea/web-resource-name url-pattern/foo1/*/url-pattern url-pattern/bar1/*/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection web-resource-collection web-resource-namea/web-resource-name url-pattern/foo2/*/url-pattern url-pattern/bar2/*/url-pattern /web-resource-collection
RE: Determining NT login name
Indeed I do think Randy's answer is most probably the best solution to the problem stated below. --- Randy Layman [EMAIL PROTECTED] wrote: I believe what you need to do is to run Tomcat behind IIS. Then, in IIS set the password to challenge/response and set the default domain to that of your users. Now, when users come to your web site using IE (not Netscape), IE will perform the login for the user without their intervention. From Tomcat you should now be able to grab their account with getRemoteUser. The real key to this is getting IIS set up so that IE can/will automatically login the users in. Randy -Original Message- From: Daniel A. Theobald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 1:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Determining NT login name We are developing an intranet application to be deployed on a windows network. One of the requirements is that the user should not be required to login to the website, that their windows login should be sufficient. Does anyone know how to determine the windows username of the remote user in a servlet? I know there is some way to do it using ASP, but I would rather do this all in java if possible. javax.servlet.http.HttpServletRequest.getRemoteUser always seems to return null. I guess we will need to make some auto authentication or something. Ideas? thanks in advance, theo __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Virus found in mail from you!
Interestingly, this is the -only- mailling list I've ever been, and I've been on a few, which has had these issues with viruses. It does make for an extremely noisy list. At 5/15/2001 6:31:23 PM, [EMAIL PROTECTED] wrote: # ** # AntiVir Virus Alert # ** # # AntiVir found a virus in a mail from you! # # - Begin Mail Info - # From: ALex Loubyansky [EMAIL PROTECTED] # To: [EMAIL PROTECTED] # Date: Tue, 15 May 2001 18:32:07 +0300 # Subject: Homepage # - End Mail Info - # # The mail was not delivered. # # * # For more information on AntiVir please visit our web site # http://www.antivir.de # #AntiVir is a registered trademark of # H+BEDV Datentechnik GmbH # * # Roger
RE: Compiling TC4
Hi everyone, New frenchy on this mailing list ! Sames questions for me ! Furthermore, is the classpath taken in account by TC4. I encounter problems in releasing my version of TC3 to TC4 concerning the configuration. It looks very attractive but the configuration seems different compared to TC3. Notice that I am working on W2000. I need help !!! In advance, THANKS. Bruno -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 11:08 À : [EMAIL PROTECTED] Objet : Compiling TC4 Hi there, is there a separate mailing list for tc4? Where can I find any documentation on compiling tc4? I used the cvs version and wasn't able to compile it. It seems to me, that I need other packages too and further more the setup of some system properties? Mariano
Please unsubscribe
__ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
j_security_check
Hi, I have a login page which is configured in web.xml as the form based login page for a web app: /pages/login/login.jsp If the login page is arrived at by browsing to some content restriced by a security constraint in web.xml, then submitting to j_security_check works fine. If the user browses to the login page directly, this 404 occurs: Not Found (404) Original request: /giftstore/pages/login/null Not found request: /giftstore/pages/login/null Is this correct? Is there some way of making the j_security_check work irrespective of how the user arrived at the login page? I'm using 3.2.1, is this behaviour the same in later Tomcats 3.X, 4.0? Thanks Nathan
RE: Add logic to session tracking?
You can get this with Apache configuration, so that every Apache instance forward the request to the correct Tomcat engine that can be his or another Apache's engine, the owner of the session. HTH -Mensaje original- De: David M. Rosner [SMTP:[EMAIL PROTECTED]] Enviado el: martes 15 de mayo de 2001 22:26 Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Asunto: Add logic to session tracking? Hello All, As a developer using Tomcat, is there anyway to override or add logic to parts of Tomcat's session tracking/setting mechanisms? Or do I need to get my hands on the source code, make changes, and then recompile? Basically I want to add my own session tracking ALONG with Tomcat's so that my network load balancer can use the values to create sticky sessions. Thanks
unsubcribe
unsubcribe tomcat-user
ClassPath problem
Below is my problem ! Under W2000 environment My CLASSPATH is well-defined ! I am sure ! I used to launch TC3.2, with TC4 ... :-( Help ! I am also intersted in documentation. Thanks in advance Bruno Root Cause: java.lang.NoClassDefFoundError: egc/net/ConnectionStaff at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java: 137) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:187) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:254) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:194) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:255) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:484) -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:40 À : [EMAIL PROTECTED] Objet : RE: Compiling TC4 Hi Bruno, meanwhile I figured out *some* way to compile it. I still get loads of errors, but non-critical ones (hmhh, haven't been able to run tomcat yet, but haven't tried so yet). Everything seems to compile. I got regexp and servletapi-4 from cvs and compiled it. Also downloaded JMX and JSSE from Sun. Added all that stuff to the classpath and used the following ant command: ant -Dregexp.home=/home/mkamp/jakarta-regexp/bin -Dcatalina.jaxp.home=/home/mkamp/jakarta-tomcat-4.0/lib/ -Dcatalina.jaxp.parser.jar=crimson.jar This took me a couple of hours and I am still interested if there is some documentation how to do it properly? Mariano Bruno Crapart [EMAIL PROTECTED] wrote .. Hi everyone, New frenchy on this mailing list ! Sames questions for me ! Furthermore, is the classpath taken in account by TC4. I encounter problems in releasing my version of TC3 to TC4 concerning the configuration. It looks very attractive but the configuration seems different compared to TC3. Notice that I am working on W2000. I need help !!! In advance, THANKS. Bruno -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 11:08 À : [EMAIL PROTECTED] Objet : Compiling TC4 Hi there, is there a separate mailing list for tc4? Where can I find any documentation on compiling tc4? I used the cvs version and wasn't able to compile it. It seems to me, that I need other packages too and further more the setup of some system properties? Mariano
RE: [TC4B6] Compiling TC4 -- and running it.
Hi there, I am now able to compile tc4b6. Unfortunately it doesn't run. When trying to access a jsp from the samples I get the belowed posted error message, which basically says: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler This Class is in xerces.jar which is in *my* classpath. How can I lookup which classpath is used by tc/catalina? Is there any documentation?!?! The history of the installation process is described at the end of the mail. Mariano A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:498) Root Cause: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:163) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:137) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
RE: Apj13 and Java Object Streams
Hi, I build a little test application that sends serialized String objects to the server and receives a serialized string back. I mistakenly said that it throws a NotSerializableException. In fact it is : java.io.StreamCorruptedException:InputStream does not contain a serialized object. And it only happens on the way to the server...the String that I send back to my application arrives safely. *APPLICATION SIDE** //HERE IS HOW I SEND IT FROM THE APPLICATION TO THE SERVLET URL url = null; URLConnection connection = null; ObjectOutputStream objectOutputStream = null; InputStream replyStream = null; String servletURLString= (String) iParams.get(param_servletURL); String argString = ? + requestType + = + TESTOBJSTREAM; // open an url connection to the server url = new URL(servletURLString + argString); connection= url.openConnection(); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestProperty(Content-Type, application/octet-stream); try { // serialize the object and write it to the stream, // then flush and close the stream objectOutputStream = new ObjectOutputStream(connection.getOutputStream()); objectOutputStream.writeObject(commObject); objectOutputStream.flush(); objectOutputStream.close(); replyStream = connection.getInputStream(); } catch (Exception e) { System.out.println(NO RETURN OBJECT+e); } *SERVLET SIDE* //HERE IS HOW I RECEIVE IT ON THE SERVLET SIDE InputStream inputStream= request.getInputStream(); ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); Object receivedObject = objectInputStream.readObject(); //THE REST IS IRRELEVANT,BECAUSE AT THIS POINT A java.io.StreamCorruptedException IS THROWN. THEN I CATCH IT AND SEND BACK AN EXCEPTION LISTING WHICH ARRIVES OK AT THE APPLICATION Thanks Blair From: GOMEZ Henri Subject: RE: Apj13 and Java Object Streams Date: Tue, 15 May 2001 12:36:39 +0200 Could you send us an example code ?) Henri Gomez ___[_] -Original Message- From: Blair Dye [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Apj13 and Java Object Streams Hi, Tomcat 3.2.2 I have tried to switch protocols to Apjv13, but cant seem to get Object Serialization working. It throws a Not Serializable Exception even though everything works fine with Apj12. Anyone else had similar problems or solutions? Thanks Blair -- Sent through GMX FreeMail - http://www.gmx.net
RE: [TC4B6] Compiling TC4 -- and running it.
Same question !!! How can I lookup which classpath is used by tc/catalina? Is there any documentation?!?! Mariano and we are waiting for help !! Thanks in advance and have a good day ! Bruno -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:53 À : [EMAIL PROTECTED] Objet : RE: [TC4B6] Compiling TC4 -- and running it. Hi there, I am now able to compile tc4b6. Unfortunately it doesn't run. When trying to access a jsp from the samples I get the belowed posted error message, which basically says: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler This Class is in xerces.jar which is in *my* classpath. How can I lookup which classpath is used by tc/catalina? Is there any documentation?!?! The history of the installation process is described at the end of the mail. Mariano A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:498) Root Cause: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa che.java:163) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:137) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
RE: Tomact 3.2.1 with IIS on Windows 2000 advanced Server
What seems to be your problem? All of this looks normal - The redirector found a match for /examples/ to go to ajp12. Randy -Original Message- From: LUN [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 3:03 AM To: [EMAIL PROTECTED] Subject: Tomact 3.2.1 with IIS on Windows 2000 advanced Server Hi, I have followed all the steps in the document, all the filter is on green upward pointing, but the error comes out in the isapi.log [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of/examples/ [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/] is a servlet url - should redirect to ajp12 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/] is points to the web-inf directory What can I do for that ??? Thanks in Advanced !
max size for the jsp pages with tomcat ?
Hi, Is there a max size for the jsp pages with tomcat ? I've got a probleme with large jsp pages ; the exception is : h2Location: /mftm/jsp/inscription/modif/modifP.jsp/h2bInternal Servlet Error:/bbrprejavax.servlet.ServletException at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at javax.servlet.ServletException.init(ServletException.java:161) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at jsp.inscription.modi_00025._0002fjsp_0002finscription_0002fmodif_0002fmodifP _0002ejspmodifP_jsp_11._jspService(_0002fjsp_0002finscription_0002fmodif_000 2fmodifP_0002ejspmodifP_jsp_11.java:257) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) 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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl .java:194) at ServletMessager.afficheLaPage(ServletMessager.java:47) javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:498) Root Cause: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa che.java:163) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:137) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
TR: Undelivered Mail Returned to Sender
Why ? Each time I sent a message i receive this mail, I informed postmaster of this but no change ... Is anybody have the same problem ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:58 À : [EMAIL PROTECTED] Objet : Undelivered Mail Returned to Sender This is the Postfix program at host mail-in.namezero.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown Delivery error report Same question !!! How can I lookup which classpath is used by tc/catalina? Is there any documentation?!?! Mariano and we are waiting for help !! Thanks in advance and have a good day ! Bruno -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:53 À : [EMAIL PROTECTED] Objet : RE: [TC4B6] Compiling TC4 -- and running it. Hi there, I am now able to compile tc4b6. Unfortunately it doesn't run. When trying to access a jsp from the samples I get the belowed posted error message, which basically says: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler This Class is in xerces.jar which is in *my* classpath. How can I lookup which classpath is used by tc/catalina? Is there any documentation?!?! The history of the installation process is described at the end of the mail. Mariano A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.init() for servlet jsp threw exception at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at javax.servlet.ServletException.(ServletException.java:132) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase ..java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952) at java.lang.Thread.run(Thread.java:498) Root Cause: java.lang.NoClassDefFoundError: org/xml/sax/ErrorHandler at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa che.java:163) at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:137) at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324) at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:263) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:833) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:231) at
RE: Undelivered Mail Returned to Sender
Je viens de recevoir la meme chose. Ne t'inquietes pas, apparemment on arecu ton message precedent (RE: [TC4B6] Compiling TC4 -- and running it.) Delphine -Message d'origine- De : Bruno Crapart [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 14:04 À : '[EMAIL PROTECTED]' Objet : TR: Undelivered Mail Returned to Sender Why ? Each time I sent a message i receive this mail, I informed postmaster of this but no change ... Is anybody have the same problem ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:58 À : [EMAIL PROTECTED] Objet : Undelivered Mail Returned to Sender This is the Postfix program at host mail-in.namezero.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown
Re: TR: Undelivered Mail Returned to Sender
To me, too.Ervery time I post something. Greetings, Wolle [EMAIL PROTECTED] wrote: yeah, as expected, it's happening to me too. Bruno Crapart [EMAIL PROTECTED] wrote .. Why ? Each time I sent a message i receive this mail, I informed postmaster = of this but no change ... Is anybody have the same problem ? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoy=E9 : mercredi 16 mai 2001 13:58 =C0 : [EMAIL PROTECTED] Objet : Undelivered Mail Returned to Sender This is the Postfix program at host mail-in.namezero.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please send mail to postmaster If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown
AccessControlExceptions
Hi, I get an AccessControlException when running secure tomcat. The relevant part of the log shows - java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.util.PropertyPermission line.separator read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) - However, the default tomcat.policy says // Example webapp policy // By default Tomcat grants read access on webapp dir and read of the // line.separator, path.separator, and file.separator PropertyPermissions. // Any permissions you grant here are in addition to the default. grant codeBase file:${tomcat.home}/webapps/examples { // Allow the example web application to read all java properties permission java.util.PropertyPermission *, read; }; but this exception says it cannot read line.separator. If I try the num guess example it fails with this exception. Running tomcat 3.2.2b4 Anyone managed to get this working? Rgds Antony -- Antony Bowesman Teamware Group [EMAIL PROTECTED] tel: +358 9 5128 2562 fax: +358 9 5128 2705
Re: announcement: updates to searchable list archive
Can you unsubscribe me? Thanks, Dana --- [EMAIL PROTECTED] wrote: All, Many of you utilize the web based searchable archive of this list on my website at mikal.org. I have recently improved it's reliability, speed and functionality. Check it out at: http://mikal.org/interests/java/tomcat/index.jsp Some have publicly complained about it's usability and interface (although not directly to me) -- I try my best to keep it in top shape, but how many of us really have time to spend on non-billable projects? Then again, maybe someone would like to hire me and allow this to be part of my employment. ;) I hope you find it improved and welcome feedback at http://mikal.org/contact/. Regards, Philip Mikal http://mikal.org __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Please unsubscribe
Please unsubscribe --- Manmeet Anand [EMAIL PROTECTED] wrote: __ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Overriding SecurityManager
This is what I'm trying to do. I already wrote a very simple class that overrides the default SecurityManager. Here is a piece of the code: public void checkRead(String fileName) {if (!fileName.equals("") fileName.endsWith(".txt")) {throw new SecurityException("Fail to read: " + fileName);}super.checkRead(fileName);} Now, what I want to do is to determine what is the URL/jsp/servlet that is trying to read this file. I want to customize the security settings based on the location of the script in my web server. ( Doesjava.policy can do this using codeBase? ) Does Java have some API to do this ? Thanks in advanceRenato - Brazil.Do You Yahoo!? Yahoo! Auctions $2 Million Sweepstakes - Got something to sell?
using the context admin tool
Im just having a look at tomcat, and i saw the admin tool, unfortunately its asking me for a user name and password, now i would have thought it would have been tomcat tomcat as defined in the tomcat-users.xml im baffled - can someone point in the right direction please! Cheers Francis
Newbie: JDBC Realm
Why is the JDBCRealm connection established? We can access info in a dB in the servlet scripts by using the connection information for the driver and url. So what does the JDBCRealm connection do? I haven't found any detail documentation of what it does and how to use it, other then in the tomcat documentation. Thanks for your help Ajay __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Apj13 and Java Object Streams
try to take the MIME type application/x-java-serialized-object -Message d'origine- De : Blair Dye [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:49 À : [EMAIL PROTECTED] Objet : RE: Apj13 and Java Object Streams Hi, I build a little test application that sends serialized String objects to the server and receives a serialized string back. I mistakenly said that it throws a NotSerializableException. In fact it is : java.io.StreamCorruptedException:InputStream does not contain a serialized object. And it only happens on the way to the server...the String that I send back to my application arrives safely. *APPLICATION SIDE** //HERE IS HOW I SEND IT FROM THE APPLICATION TO THE SERVLET URL url = null; URLConnection connection = null; ObjectOutputStream objectOutputStream = null; InputStream replyStream = null; String servletURLString= (String) iParams.get(param_servletURL); String argString = ? + requestType + = + TESTOBJSTREAM; // open an url connection to the server url = new URL(servletURLString + argString); connection= url.openConnection(); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestProperty(Content-Type, application/octet-stream); try { // serialize the object and write it to the stream, // then flush and close the stream objectOutputStream = new ObjectOutputStream(connection.getOutputStream()); objectOutputStream.writeObject(commObject); objectOutputStream.flush(); objectOutputStream.close(); replyStream = connection.getInputStream(); } catch (Exception e) { System.out.println(NO RETURN OBJECT+e); } *SERVLET SIDE* //HERE IS HOW I RECEIVE IT ON THE SERVLET SIDE InputStream inputStream= request.getInputStream(); ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); Object receivedObject = objectInputStream.readObject(); //THE REST IS IRRELEVANT,BECAUSE AT THIS POINT A java.io.StreamCorruptedException IS THROWN. THEN I CATCH IT AND SEND BACK AN EXCEPTION LISTING WHICH ARRIVES OK AT THE APPLICATION Thanks Blair From: GOMEZ Henri Subject: RE: Apj13 and Java Object Streams Date: Tue, 15 May 2001 12:36:39 +0200 Could you send us an example code ?) Henri Gomez ___[_] -Original Message- From: Blair Dye [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Apj13 and Java Object Streams Hi, Tomcat 3.2.2 I have tried to switch protocols to Apjv13, but cant seem to get Object Serialization working. It throws a Not Serializable Exception even though everything works fine with Apj12. Anyone else had similar problems or solutions? Thanks Blair -- Sent through GMX FreeMail - http://www.gmx.net
RE: Please unsubscribe
Here's a novel idea, why don't you try following the directions that you got as part of the signup message? They are: You can start a subscription for an alternate address, for example [EMAIL PROTECTED], just add a hyphen and your address (with '=' instead of '@') after the command word: [EMAIL PROTECTED] To stop subscription for this address, mail: [EMAIL PROTECTED] In both cases, I'll send a confirmation message to that address. When you receive it, simply reply to it to complete your subscription. If despite following these instructions, you do not get the desired results, please contact my owner at [EMAIL PROTECTED] Please be patient, my owner is a lot slower than I am ;-) Two things to remember: The email address that you think you are subscribed as might not be the address that you actually are (mail forwards and mail servers set up to have several different variations on your name for one account) and you MUST respond to the confirmation. Randy -Original Message- From: Dana Marcusanu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Re: Please unsubscribe Please unsubscribe --- Manmeet Anand [EMAIL PROTECTED] wrote: __ Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Tomcat 4 + Apache 1.3.19
Hi, I want to connect Apache 1.3.19 and Tomcat 4 and generate mod_webapp.so, I get the error: troubadix[DB000]:[dl17]:/nt/U/mcs/tomcat4/jakarta-tomcat-4.0-src/connectors (514) make make[1]: Entering directory `/nt/U/mcs/tomcat4/jakarta-tomcat-4.0-src/connectors/webapplib' Makefile:127: *** missing separator. Stop. make[1]: Leaving directory `/nt/U/mcs/tomcat4/jakarta-tomcat-4.0-src/connectors/webapplib' make: *** [webapplib/libwebapp.a] Error 2 Has anybody get this error before and solved the problem? Gruß Michael -- Java - write once, run anywhere
Re: Newbie: JDBC Realm
JDBCRealm is an implementation of the J2EE standard of authorization and authentication. You give it the info it needs and it takes care of the login and the authorization (ACI) part. On Wednesday 16 May 2001 06:55, you wrote: Why is the JDBCRealm connection established? We can access info in a dB in the servlet scripts by using the connection information for the driver and url. So what does the JDBCRealm connection do? I haven't found any detail documentation of what it does and how to use it, other then in the tomcat documentation. Thanks for your help Ajay __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Creating WAP sites
Sure, i've done it Instead of having your servlets or jsp outputting html or xml in out.println(); have it output wml and don't forget to change the content-type to text/wml About forms, they're really simple, but I forgot the syntax, wml is very basic, you won't have trouble making them. I recommend you get a wap browser (download.com is a good start) to test your servlets/jsp Keep in mind that there is no client code whatsoever, everything is executed server side cheers, AD - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: A mailing list for discussion about Sun Microsystem's Java Servlet APITechnology. [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 3:08 PM Subject: Creating WAP sites Hi, My name is Daniel and I live in Brazil. I have a web site using JSP and Servlets. It runs on Apache with Tomcat and mySQL database. I am planning to create an extension of this site using WML (Wap Technology). I would like to how can I deploy the WML pages using the technology above ? Is it possible to create forms with WML that acesses my Servlets Regards and thanks. Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: Apj13 and Java Object Streams
Hi, As far as I know there is a problem with tomcat version 3.2.1 and ajp13 if you are doing uploads. The bug report can be found in bugzilla. It is probably fixed in tomcat 3.2.2: the readme in 3.2.2 final states: ---copy- Connectors - For ajp13 protocol, add support for multipart form encoding and file uploads now work. ---paste- I switched back to ajp12 until tomcat 3.2.2 is final. so long! simon FREY Thibault schrieb: try to take the MIME type application/x-java-serialized-object -Message d'origine- De : Blair Dye [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 16 mai 2001 13:49 À : [EMAIL PROTECTED] Objet : RE: Apj13 and Java Object Streams Hi, I build a little test application that sends serialized String objects to the server and receives a serialized string back. I mistakenly said that it throws a NotSerializableException. In fact it is : java.io.StreamCorruptedException:InputStream does not contain a serialized object. And it only happens on the way to the server...the String that I send back to my application arrives safely. *APPLICATION SIDE** //HERE IS HOW I SEND IT FROM THE APPLICATION TO THE SERVLET URL url = null; URLConnection connection = null; ObjectOutputStream objectOutputStream = null; InputStream replyStream = null; String servletURLString= (String) iParams.get(param_servletURL); String argString = ? + requestType + = + TESTOBJSTREAM; // open an url connection to the server url = new URL(servletURLString + argString); connection= url.openConnection(); connection.setDoInput(true); connection.setDoOutput(true); connection.setUseCaches(false); connection.setRequestProperty(Content-Type, application/octet-stream); try { // serialize the object and write it to the stream, // then flush and close the stream objectOutputStream = new ObjectOutputStream(connection.getOutputStream()); objectOutputStream.writeObject(commObject); objectOutputStream.flush(); objectOutputStream.close(); replyStream = connection.getInputStream(); } catch (Exception e) { System.out.println(NO RETURN OBJECT+e); } *SERVLET SIDE* //HERE IS HOW I RECEIVE IT ON THE SERVLET SIDE InputStream inputStream= request.getInputStream(); ObjectInputStream objectInputStream = new ObjectInputStream(inputStream); Object receivedObject = objectInputStream.readObject(); //THE REST IS IRRELEVANT,BECAUSE AT THIS POINT A java.io.StreamCorruptedException IS THROWN. THEN I CATCH IT AND SEND BACK AN EXCEPTION LISTING WHICH ARRIVES OK AT THE APPLICATION Thanks Blair From: GOMEZ Henri Subject: RE: Apj13 and Java Object Streams Date: Tue, 15 May 2001 12:36:39 +0200 Could you send us an example code ?) Henri Gomez ___[_] -Original Message- From: Blair Dye [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Apj13 and Java Object Streams Hi, Tomcat 3.2.2 I have tried to switch protocols to Apjv13, but cant seem to get Object Serialization working. It throws a Not Serializable Exception even though everything works fine with Apj12. Anyone else had similar problems or solutions? Thanks Blair -- Sent through GMX FreeMail - http://www.gmx.net
RE:Determining NT login name
I use Apache's authentication with mod_ntlm. http://members.ozemail.com.au/~timcostello/mod_ntlm/ Just use Location tags to protect your webapp rather than messing with any of the Tomcat stuff. I went round and round trying to do this with IIS4. It's incredible that Apache has cleaner support for NTLM than MS's own product. HTH *** Brett Knights 250-338-3509 work [EMAIL PROTECTED] 250-334-8309 home ***
Re: Newbie: JDBC Realm
JDBCRealm is an implementation of the J2EE standard of authorization and authentication. You give it the info it needs and it takes care of the login and the authorization (ACI) part. On Wednesday 16 May 2001 07:20, Christian Hargraves wrote: JDBCRealm is an implementation of the J2EE standard of authorization and authentication. You give it the info it needs and it takes care of the login and the authorization (ACI) part. On Wednesday 16 May 2001 06:55, you wrote: Why is the JDBCRealm connection established? We can access info in a dB in the servlet scripts by using the connection information for the driver and url. So what does the JDBCRealm connection do? I haven't found any detail documentation of what it does and how to use it, other then in the tomcat documentation. Thanks for your help Ajay __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
java.lang.IllegalStateException
tomcat 3.2.1 redhat 7 every now and then, we get the following error. it seems to only happen when we are compiling new classes a lot during development. if we are not developing, but rather, just using our application, we never get this error. has anyone seen this before? Error: 500 Location: /MQ100/servlet/MQ100Generator Internal Servlet Error: java.lang.IllegalStateException: Can't happen - classname is null, who added this ? at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261) 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.handleStatus(ContextManager.java:1049) at org.apache.tomcat.facade.HttpServletResponseFacade.sendError (HttpServletResp onseFacade.java:216) at org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect (HttpServletR esponseFacade.java:230) at Admin.Redirect(Admin.java:46) at AddScoreCard.SelectAddScoreCard(AddScoreCard.java:143) at MQ100Generator.doGet(MQ100Generator.java:287) at MQ100Generator.doPost(MQ100Generator.java:389) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484)
RE: ClassPath problem
I'm not sure, but the classes CLASSPATH may NOT be available to webapps. The Servlet 2.3 spec (Sections 9.4, 9.6.1, 9.6.2) seem to imply that. Put the xerces.jar in the WEB-INF/lib directory of the webapp and see if the same error arises. The spec says (in 9.6.1) snip Web containers are recommended to have a mechanism by which they can expose to the application classloaders of every web app therein extra JAR files containing resources and code. It is recommended that they provide a user-friendly way of editing and configuring these library files or extensions, and that they expose information about what extensions are available to web applications deployed on the web container. Application developers that depend on the installation of library JARs installed on a web container should provide a META-INF/MANIFEST.MF entry in the WAR file listing the extensions that the WAR depends upon. The format of the manifest entry follows the standard JAR manifest format. In expressing dependencies on extensions installed on the web container, the manifest entry should follow the specification for standard extensions defined at http://java.sun.com/j2se/ 1.3/docs/guide/extensions/versioning.html. /snip I haven't heard anything about Tomcat 4.0 providing this service, though, and if it doesn't, it appears that the only solutions are to put it in your WEB-INF/lib or to use the Java2 Installed Extensions facility. Good luck, and let us know what happens. George McKinney, Developer -Original Message- From: Bruno Crapart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:45 AM To: '[EMAIL PROTECTED]' Subject: ClassPath problem Below is my problem ! Under W2000 environment My CLASSPATH is well-defined ! I am sure ! I used to launch TC3.2, with TC4 ... :-( Help ! I am also intersted in documentation. Thanks in advance Bruno Root Cause: java.lang.NoClassDefFoundError: egc/net/ConnectionStaff at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js pServlet.java: 137) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN ecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:187) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet .java:379) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilt er(Application FilterChain.java:254) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli cationFilterCh ain.java:194) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardW rapperValve.ja va:255) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardC ontextValve.ja va:225) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut henticatorBase .java:472) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContex t.java:2252) at org.apache.catalina.core.StandardHostValve.invoke(StandardHost Valve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv e.java:446) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEn gineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardP ipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipel ine.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpP rocessor.java: 875) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProce ssor.java:952) at java.lang.Thread.run(Thread.java:484) -Message d'origine- De :
RE: Creating WAP sites
Can someone please tell me how to unsubscribe. I have emailed : [EMAIL PROTECTED] 3 x !! Thanks Laurence -Original Message- From: tomcat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:08 PM To: '[EMAIL PROTECTED]' Subject: RE: Creating WAP sites -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keep in mind that there is no client code whatsoever, everything is executed server side Not necessarily true - you can use wml script to do simple client side scripting - very handy to reduce connecting to sites to a minimum. Cheers, Tom Tom Raftery Zenith Solutions Ltd Unit 6, 4 Dean Street, Cork, Ireland. phone: +353-21-4318300 mobile: +353-87-2506527 web: www.zenith.ie http://www.zenith.ie WAP: www.zenith.ie/wap http://www.zenith.ie/wap email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: 16 May 2001 14:29 To: [EMAIL PROTECTED]; Daniel de Almeida Alvares Subject: Re: Creating WAP sites Sure, i've done it Instead of having your servlets or jsp outputting html or xml in out.println(); have it output wml and don't forget to change the content-type to text/wml About forms, they're really simple, but I forgot the syntax, wml is very basic, you won't have trouble making them. I recommend you get a wap browser (download.com is a good start) to test your servlets/jsp cheers, AD - - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: A mailing list for discussion about Sun Microsystem's Java Servlet APITechnology. [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 3:08 PM Subject: Creating WAP sites Hi, My name is Daniel and I live in Brazil. I have a web site using JSP and Servlets. It runs on Apache with Tomcat and mySQL database. I am planning to create an extension of this site using WML (Wap Technology). I would like to how can I deploy the WML pages using the technology above ? Is it possible to create forms with WML that acesses my Servlets Regards and thanks. Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBOwKJrWy/uj7eqtwJEQLN2QCgme9vtLLmNsG4LFxFrCINIIc1kAYAoLFG fHFBuPlOhSrK4T+L8P7d821m =3QFP -END PGP SIGNATURE- 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. If you have received this email in error please notify [EMAIL PROTECTED]
running query servlet
I am attempting to run a servlet that allows a query to be submitted to a database, and the results are returned. When I try to access the servlet I get the following error: Error: 500 Location: /myapp/query Internal Servlet Error: javax.servlet.ServletException: Query: can't initialize: null at Query.init(Query.java:31) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) 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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at Query.init(Query.java:26) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317) at org.apache.tomcat.core.Handler.init(Handler.java:215) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296) 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:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does anyone know what the cause of this could be thanks. Ajay __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Add logic to session tracking?
David M. Rosner wrote: Hello All, As a developer using Tomcat, is there anyway to override or add logic to parts of Tomcat's session tracking/setting mechanisms? Or do I need to get my hands on the source code, make changes, and then recompile? Basically I want to add my own session tracking ALONG with Tomcat's so that my network load balancer can use the values to create sticky sessions. Thanks Hi :-) I am not sure, I suggest you read the following: On Mon, 14 May 2001, Mihai Popoaei wrote: Hello, How can I have the same session for many web sites? By default, for the first request tomcat creates a implicit session and sends a cookie with domain=servername. What I wanna do is setting this cookie for domain=partian domain name (like .kiki.ro) (that means this cookie will come back for all the hosts ending with .kiki.ro and I'll have the same session for all the sites :)). I think I have to say that I use the same application context for all this sites... Another problem is using the same session between applications... I know it is not conform the sun specifications (... HttpSession objects must be scoped at the application / servlet context level. The underlying mechanism, such as the cookie used to establish the session, can be shared between contexts, but the object exposed, and more importantly the attributes in that object, must not be shared between contexts. ...), but there must be a way to do that... ... You are perfectly free to roll your own session implementation that meets your needs (cross-host and cross-webapp). However, the standard APis don't support these uses, so this will definitely be an application specific (and probably Tomcat-specific) approach. When you try this, you'll discover that having a cookie recognized correctly is the least of your problems. You'll also need to ensure that all of the classes are loaded from a shared class loader -- classes that are loaded from one web-app's /WEB-INF/classes or /WEB-INF/lib directory are not visible to any other web-app. thx, -- :], Mihai P. Craig ... As long as you know this is not standard :-), you will have to make some changes to the session interceptor or create a new one. In 3.3, the code is in modules.session.SessionId, you should probably create a new module, add an option and code that supports what you need, and maybe publish the changes for others :-) I don't think this can be commited in jakarta-tomcat, as it is not standard and it's not a required feature, but it would be nice to have it somewhere. Costin Bo May.16, 2001
RE: Determining NT login name
Re ... Apache has cleaner support for NTLM than MS's own product ...: Cleaner how? Disallowing Anonymous is all it takes in IIS. To get the user name passed through for use with a Basic Authentication scheme managed from your server app yes I have done that many times. Probably you can get the NTLM user name the same way. To get NTLM to manage access to your servlets is a bit more challenging. Certainly I had problems with it the last time I tried it. My search of the web led me to believe I was not alone. The thread started here: http://codeguru.earthweb.com/isapi/authfilt.shtml is typical of the types of things I saw.
Tomcat configuration
I am just trying Tomcat. I'm running: Tomcat 3.2.1 with mod_jserv Apache 1.3.19 Red Hat Linux 7.1 in our old environment (Apache/jserv) I was able to go to http://hostname/luminx/ServletName and my servlet would run. I added a context to server.xml for /luminx I also added the following to server.xml RequestInterceptor classname=org.apache.tomcat.request.InvokerInterceptor debug=0 prefix=/ / I know the comments say that the prefix has to be a minimum of // but I do not want to have to go to /luminx/servlet/ServletName just to run my Servlet. I want to be able to run it the way I did with JServ. Is this the right way to do this or is there a better way. Harry Hinch Acclamation Systems, Inc 111 Ryan Court Pittsburgh, PA 15205 [EMAIL PROTECTED]
Session cookies
I'm running: Tomcat 3.2.1 Apache 1.3.19 Red Hat Linux 7.1 I have noCookies set to false in server.xml. I have a servlet set a session attribute, but when I go to a static webpage and do a document.cookie.length in a javascript it returns 0 How can I have the web page see the cookies from my servlet? Harry Hinch Acclamation Systems, Inc 111 Ryan Court Pittsburgh, PA 15205 [EMAIL PROTECTED]
RE: how can I unsubscribe from this list
To remove your address from the list, send a message to: [EMAIL PROTECTED] Note that the e-mail address is different from the normal [EMAIL PROTECTED] address. Bob Loeffler Quark Application Services (QAS) Quark, Inc. internal x6480 external 303-894-3780 -Original Message- From: Dana Marcusanu [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:00 PM To: [EMAIL PROTECTED] Subject: how can I unsubscribe from this list --- Theodore Andreadis [EMAIL PROTECTED] wrote: *** In Linux: I run experimentally Tomcat my pc, under redHat7. I start Tomcat in rc5.d (only) with the script command: start() { daemon `cat /opt/tomcat/bin/start.txt` where start.txt contains the line: java -cp /opt/tomcat/lib/ -Dtomcat.home=/opt/tomcat/ -Djava.home=/opt/java org.apache.tomcat.startup.Tomcat (I have expanded the jars in lib) and works just fine, except that: even as an ordinary user I can shut it down running the java -cp /opt/tomcat/lib/ -Dtomcat.home=/opt/tomcat org.apache.tomcat.startup.Tomcat -stop What am I doing wrong? How can I enable only root to shutdown Tomcat? *** In Server 2000: I run the startup.bat as a system service, under SYSTEM account (using a resource toolkit utility that adds the registry instruction in the registry, to run a program as a service) The problem is that although Tomcat starts at system boot, it stops when the first log off is performed (under any account). Is there a way to prevent this? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: nutty steps for setting up tomcat standalone ssl
Thank you very much, but I have some problems to do as your steps, could you explain it for me again? My error message showed below. Sorry for bother again. Best Regards, Kevin - Original Message - From: Tim O'Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 8:25 PM Subject: nutty steps for setting up tomcat standalone ssl 1) Delete your old keyring (/root/.keystore) file completely unless you can't for whatever reason. Now build a new keyring file; 2) keytool -genkey -alias tomcat -keyalg RSA Note your keyring password, you'll need it later. This step seems important for reasons I outline later. 3) openssl req -x509 -in REQ.pem -key KEY.pem -out CERT.pem Before 3, I think there is one step: openssl req -new -out REQ.pem -keyout KEY.pem according to the user-guide. I added it here 4) openssl -import -v -trustcacerts -alias tomcat -file CERT.pem I'm confused here, my openssl(0.9.5.a) on RH7 don't understand -import or import, is because the version? or openssl should be keytool here? if so, the above procedures is the same with the user-guide, I'll get the unmatched public error message here. 5) keytool -delete -alias tomcat This leaves you with an empty, but valid keyring 6) Now do a keytool -genkey -alias tomcat -keyalg RSA Use the keyring password you used in step 2 7) Add the key to your keyring: keytool import -v -trustcacerts -alias tomcat -file CERT.pem I still need to do some testing, but I've found that Tomcat only seems to work if you have one key on your ring. I hope I've wrong. But if I am wrong, why is there no alias field in the info for the ssl connector group in server.xml? Also- The deal seems to be, regardless of what the guide says, Tomcat must use RSA algo keys. OR I myself have only gotten RSA keys to work, whichever. This leaves you with a self-signed server of course. The next fun project for me is to get it to use a Thawte cert, hopefully the tool on http://www.comu.de/docs/tomcat_ssl.htm will allow this to happen.
RE: Please unsubscribe
At 08:33 AM 5/16/2001 -0400, you wrote: Here's a novel idea, why don't you try following the directions that you got as part of the signup message? They are: unsub blah blah snipped Randy Many list servers (including two that I run) append unsubbing instructions to any messages going out to the list, maybe it would be good to do that here.
Re: Tomcat standalone with SSL
At 03:00 PM 5/16/2001 +0200, you wrote: Hi, I set up the Tomcat standalone with SSL support according to the user-guild with many people's help on this list, only difference is I didn't do: keytool -genkey -alias tomcat -keyalg RSA Now I can see a new message: PoolTcpConnector: Starting HttpconnectionHandler on 8443 when startup. But can't find other information about using SSL on Tomcat, how to know if SSL is OK? what should I do then? what's the difference with before? Help, please. Kevin Don't know. I never got that message. All I can tell you is I have tomcat running as a standalone server with a self-signed cert here. I went to Apache + tomcat with a CA cert later.
Re: Creating WAP sites
Hello, Laurence Mayer wrote: Can someone please tell me how to unsubscribe. I have emailed : [EMAIL PROTECTED] 3 x !! from where, you must do this from the email adress that you have subscribe from Greetings, Wolle Thanks Laurence -Original Message- From: tomcat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:08 PM To: '[EMAIL PROTECTED]' Subject: RE: Creating WAP sites -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keep in mind that there is no client code whatsoever, everything is executed server side Not necessarily true - you can use wml script to do simple client side scripting - very handy to reduce connecting to sites to a minimum. Cheers, Tom Tom Raftery Zenith Solutions Ltd Unit 6, 4 Dean Street, Cork, Ireland. phone: +353-21-4318300 mobile: +353-87-2506527 web: www.zenith.ie http://www.zenith.ie WAP: www.zenith.ie/wap http://www.zenith.ie/wap email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: 16 May 2001 14:29 To: [EMAIL PROTECTED]; Daniel de Almeida Alvares Subject: Re: Creating WAP sites Sure, i've done it Instead of having your servlets or jsp outputting html or xml in out.println(); have it output wml and don't forget to change the content-type to text/wml About forms, they're really simple, but I forgot the syntax, wml is very basic, you won't have trouble making them. I recommend you get a wap browser (download.com is a good start) to test your servlets/jsp cheers, AD - - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: A mailing list for discussion about Sun Microsystem's Java Servlet APITechnology. [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 3:08 PM Subject: Creating WAP sites Hi, My name is Daniel and I live in Brazil. I have a web site using JSP and Servlets. It runs on Apache with Tomcat and mySQL database. I am planning to create an extension of this site using WML (Wap Technology). I would like to how can I deploy the WML pages using the technology above ? Is it possible to create forms with WML that acesses my Servlets Regards and thanks. Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBOwKJrWy/uj7eqtwJEQLN2QCgme9vtLLmNsG4LFxFrCINIIc1kAYAoLFG fHFBuPlOhSrK4T+L8P7d821m =3QFP -END PGP SIGNATURE- 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. If you have received this email in error please notify [EMAIL PROTECTED]
Re: running query servlet
It looks like servlet can't find the JDBC driver, make sure the driver in Tomcat's classpath. at java.lang.Class.forName(Class.java:120) regards, Kevin
JSP not recompiling
I'm having trouble getting my JSP pages to recompile without deleting my work directory and restarting Tomcat. I have reloadable set to true in my server.xml as shown below. Context path=/salespulse docBase=salespulse debug=0 reloadable=true/Context Timestamps are not an issue because I'm modifying and deploying the files to the same machine. The JSP pages are not included anywhere, they are top-level pages. Pages that ARE included using a jsp:include also do not work but I'm assuming the problem is the same as the one causing the problem with top-level pages. I've tried nightly builds of Tomcat for the last week or so and I see the same problem on all of them. Does anyone have any ideas on what I can do to fix this? Stopping and restarting Tomcat is a pain on development machines but on production machines it's just not feasible. Any help would be greatly appreciated. Jason Winters
RE: Determining NT login name
But, I've a question. Actually, when Tomcat does the authentication, it keeps the user in session. Also, it tries to validate when ever user tries to access the protected files. If IIS does the authentication, how can we achieve this?? Thanks in advance, -Ratnakar -Original Message- From: Allan Kamau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:18 AM To: [EMAIL PROTECTED] Subject: RE: Determining NT login name Indeed I do think Randy's answer is most probably the best solution to the problem stated below. --- Randy Layman [EMAIL PROTECTED] wrote: I believe what you need to do is to run Tomcat behind IIS. Then, in IIS set the password to challenge/response and set the default domain to that of your users. Now, when users come to your web site using IE (not Netscape), IE will perform the login for the user without their intervention. From Tomcat you should now be able to grab their account with getRemoteUser. The real key to this is getting IIS set up so that IE can/will automatically login the users in. Randy -Original Message- From: Daniel A. Theobald [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 1:01 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Determining NT login name We are developing an intranet application to be deployed on a windows network. One of the requirements is that the user should not be required to login to the website, that their windows login should be sufficient. Does anyone know how to determine the windows username of the remote user in a servlet? I know there is some way to do it using ASP, but I would rather do this all in java if possible. javax.servlet.http.HttpServletRequest.getRemoteUser always seems to return null. I guess we will need to make some auto authentication or something. Ideas? thanks in advance, theo __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: java.lang.IllegalStateException
Hi Chad, Yes. I think more or less any time I write to WEB-INF/classes without re-starting tomcat I get exact same error. I have the same set-up but also had the same problem tomcat 3.2 and redhat 6.2 andrew On Wed, 16 May 2001, you wrote: tomcat 3.2.1 redhat 7 every now and then, we get the following error. it seems to only happen when we are compiling new classes a lot during development. if we are not developing, but rather, just using our application, we never get this error. has anyone seen this before? Error: 500 Location: /MQ100/servlet/MQ100Generator Internal Servlet Error: java.lang.IllegalStateException: Can't happen - classname is null, who added this ? at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:261) 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.handleStatus(ContextManager.java:1049) at org.apache.tomcat.facade.HttpServletResponseFacade.sendError (HttpServletResp onseFacade.java:216) at org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect (HttpServletR esponseFacade.java:230) at Admin.Redirect(Admin.java:46) at AddScoreCard.SelectAddScoreCard(AddScoreCard.java:143) at MQ100Generator.doGet(MQ100Generator.java:287) at MQ100Generator.doPost(MQ100Generator.java:389) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) -- === Andrew Robson 2/1 723 Pollockshaws Road Glasgow G41 2AA Tel: (0141) 424 0607 Mobile: 07759 430234
Re: Add logic to session tracking?
.. As long as you know this is not standard :-), you will have to make some changes to the session interceptor or create a new one. In 3.3, the code is in modules.session.SessionId, you should probably create a new module, add an option and code that supports what you need, and maybe publish the changes for others :-) I don't think this can be commited in jakarta-tomcat, as it is not standard and it's not a required feature, but it would be nice to have it somewhere. Costin Hi - thanks for the response. After some research I found that I could rewrite my own request.SessionInterceptor and change the server config to use this instead of the one in Tomcat. All I needed to do was add an additional cookie to be set in the beforeBody() method. This works great and allows me to set an additional cookie with a server name in it. The problem i'm now having is getting that server name/value to be written in the URL if cookies are shut off. Any ideas what I need to do to get that to work. Just changing the contextMap() method doesn't seem to make it work. I'm using 3.2.2 Thanks -dave
RE: Trouble with mod_jk.so
Thanks for your help... The problem is one with Sun OS / Solaris For this platform when you compile apache, you must use the following when configuring with ./configure --enable-rule=SHARED_CORE I recompiled with this option, and was then able to load the mod_jk module. (and others that were not working) Kendal L. Montgomery Qwest - eFlow Development Team 614-215-4937 -Original Message- From: John P. Dodge [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 2:05 PM To: Montgomery, Kendal L Subject:Re: Trouble with mod_jk.so I dunno, is Apache compiled for shared objects? Did you use a configure option to enable mod_so? Something like: ./configure --prefix=/opt/apache_1.3.11 \ --with-layout=Apache \ --without-confadjust \ --enable-shared=max Can you dump the symbol table for your httpd? You could also query apache source/src/main/libmain.a nm /opt/apache/bin/httpd | grep ap_table 00053e34 T ap_overlap_tables 00053a8c T ap_table_add 00053af8 T ap_table_addn 00053bac T ap_table_do 00053300 T ap_table_get 00053854 T ap_table_merge 00053980 T ap_table_mergen 000533d8 T ap_table_set 000535a0 T ap_table_setn 00053738 T ap_table_unset On Tue, 15 May 2001, Montgomery, Kendal L wrote: I compiled Apache with gcc on the before mentioned box. Apache does run just fine without the tomcat module. Should I recompile Apache with some other options or something? Thanks! From: John P. Dodge Subject: Re: Trouble with mod_jk.so Date: Fri, 04 May 2001 12:50:38 -0700 ap_table_get is defined in the Apache httpd executable linked in at compile time from src/main/libmain.a and referenced in mod_jk.so (and most others). How did you compile Apache? Does it run without the mod_jk.so LoadModule inclusion? On Fri, 4 May 2001, Montgomery, Kendal L wrote: Hello all, I have built Apache 1.3.19 and tomcat 3.2.1, but I'm having trouble getting my mod_jk.so to work. I just build it also, but when I try to run apache with this module loaded I get: Syntax error on line 203 of /home/01/klmontg/servers/etc/httpd/conf/httpd.conf: Cannot load /home/01/klmontg/servers/usr/apache/libexec/mod_jk.so into server: l d.so.1: /home/01/klmontg/servers/usr/apache/bin/httpd: fatal: relocation error: file /home/01/klmontg/servers/usr/apache/libexec/mod_jk.so: symbol ap_table_get: . referenced symbol not found . BTW - I am running SunOS 5.6 sparc. . I have used the instructions for compiling mod_jk from the user guide, as well as some other things, but am having no luck. I can't figure this one out, so any help is appreciated! Kendal L. Montgomery Qwest - eFlow Development Team 614-215-4937 Mon aeroglisseur est plein d'anguilles John P. Dodge Boeing Shared Services
RE: Accesing MySQL database through Applets
If you include the right driver/libraries in your applet's jar you likely COULD connect to the database from an Applet (if the database permissions were set up so the user could connect from anywhere). I agree that this is probably not a good idea though. The pipe that the connection uses isn't secured AT ALL (as far as I know). Far better to use some form of encrypted (ssl perhaps) pipe to talk to something on the server side that does the database calls for you. I've been thinking about setting up a simple servlet that uses https to secure the pipe. It would take xml database requests and respond with xml result sets (with user validation of course :) ). An applet could then access the database, but in a more secure manner than doing so directly. -Original Message- From: Jann VanOver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 7:12 PM To: '[EMAIL PROTECTED]' Subject: RE: Accesing MySQL database through Applets Connecting to a database through Applet? Can you do that? Gosh, that sends chills down my spine. Applets are Client-side things. Database access is usually done Server-side. Someone, please tell me that Applets CAN'T make server database connections! -Original Message- From: Dana Marcusanu [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 4:58 PM To: [EMAIL PROTECTED] Subject: Accesing MySQL database through Applets I am using Tomcat version 3.2.1. I am trying to connect to a data base from an applet and I am getting the following error: 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples + /jsp/student/org/gjt/ mm/mysql/Driver.class + null) null My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib My applet is in: C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student What can I do to connect the database from the applet? Should I give some permissions? Thanks, Dana __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Please unsubscribe
Many list servers (including two that I run) append unsubbing instructions to any messages going out to the list, maybe it would be good to do that here. It used to be included in footer of messages and people still ignored it. There were as many people asking how to unsubscribe then as there are now. There is just no definitive cure for laziness. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
re[2]: how can I unsubscribe from this list
To remove your address from the list, send a message to: [EMAIL PROTECTED] Bob: I have sent 4 msgs to this address to unsubscribe myself w/ wo effect. I have also contacted the owner of the list w/o any success either. Regards, - Alex - * Alex Nghiem 770.457.4144 / 770.331.6909 (C) * * Internet Entrepreneur Author [EMAIL PROTECTED] * * AOL IM: adn2294 *
Re: Tomcat standalone with SSL
You are so smart, :-) I have never been stuck like this in the past 6 years programming. I feel angry with SSL now, what I only can do is asking here again and again.:- - Original Message - From: Tim O'Neil [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 5:18 PM Subject: Re: Tomcat standalone with SSL At 03:00 PM 5/16/2001 +0200, you wrote: Hi, I set up the Tomcat standalone with SSL support according to the user-guild with many people's help on this list, only difference is I didn't do: keytool -genkey -alias tomcat -keyalg RSA Now I can see a new message: PoolTcpConnector: Starting HttpconnectionHandler on 8443 when startup. But can't find other information about using SSL on Tomcat, how to know if SSL is OK? what should I do then? what's the difference with before? Help, please. Kevin Don't know. I never got that message. All I can tell you is I have tomcat running as a standalone server with a self-signed cert here. I went to Apache + tomcat with a CA cert later.
question about setting up Apache and Tomcat
Hello everybody, I've had hard time in setting up Apache to talk to Tomcat in WinNT. I read some questions and answers similar to my problem but they didn't help me either. Hopefully, I can get help from this list. Here is what I did: -installed Tomcat 3.2.1 -installed Apache 1.3.14 -downloaded mod_jk.dll and put it under c:/Apache/modules dir. -added the following lines to httpd.conf LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /usr/local/tomcat/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevelwarn Include c:\tomcat\conf\mod_jk.conf-auto -commented out the connector to port 8080 in server.xml -Set classpath for Tomcat and Apache -Use 8007 for ajp12 When I setup Tomcat stand alone, everything is fine. The installation for Apache is also successful (I can see the first page saying I'm successful in installing Apache when go to http://localhost) After setup Apache to talk to Tomcat, I go to http://localhost/schart/test.jsp (Schart is the directory where I put my jsp) It can't find my file, looking in the log file, the server looks for /apache/htdocs/schart/test.jsp instead of looking for it in Tomcat. So, I know the setup is not right and Apache can't talk to tomcat. Please help. Thank you so much! Thao Nguyen __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Tomcat 3.2.1 + Apache 1.3.19 + Win2k
tomcat.log doesn't exist. Tomcat is supposed to be listening on port 8080. The only other thing that I have running is Apache, which is listening on port 80. // David From: Amer Mallah Subject: RE: Tomcat 3.2.1 + Apache 1.3.19 + Win2k Date: Wed, 16 May 2001 10:21:04 -0400 What is in logs/tomcat.log? And, in the config file, what port do you have Tomcat listening to? Is there something else on that port? -Original Message- From: David La Motta [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.1 + Apache 1.3.19 + Win2k I am going nuts over this and I don't know what to do. Hopefully somebody can give me a hand. I am trying to install Tomcat 3.2.1 with Apache 1.3.19 on Win2k as a type-2 server. However, I can't get past even launching a type-1 with the startup script. The exception I get is included at the end of this message. Also, if anybody knows of a web site with detailed instructions on how to setup Tomcat with Apache (please don't point me to the Tomcat docs cuz I've read them already) I would appreciated it a lot! Thanks for your help. // David snip Including all jars in d:\web\tomcat\lib in your CLASSPATH. Using CLASSPATH: d:\web\tomcat\classes;d:\web\tomcat\lib\ant.jar;d:\web\tomcat\ lib\jasper.jar ;d:\web \tomcat\lib\jaxp.jar;d:\web\tomcat\lib\parser.jar;d:\web\tomca t\lib\servlet. jar;d:\web\tomcat\lib\we bserver.jar;d:\ide\jbuilder4\jdk1.3\jre\lib\ext\QTJava.zip;d :\java\jdk1.3. 0_02\lib\tools.jar Starting Tomcat in new window 2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /examples ) 2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-05-16 08:28:26 - ContextManager: Adding context Ctx( ) 2001-05-16 08:28:26 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.SocketException: network subsystem has failed: listen failed java.net.SocketException: network subsystem has failed: listen failed at java.net.PlainSocketImpl.socketListen(Native Method) at java.net.PlainSocketImpl.listen(PlainSocketImpl.java:416) at java.net.ServerSocket.init(ServerSocket.java:174) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket( DefaultServerS ocketFactory. java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java:188) at org.apache.tomcat.core.ContextManager.start(ContextManager.java:527) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) /snip
Re: Webapp initialization (tomcat 4)
Jon == Jon Stevens [EMAIL PROTECTED] writes: Jon You could implement a Singleton based Service. This is what Jon Turbine did. It has an entire Service framework for dealing Jon with exactly this problem. It takes care of startup and That's a good idea. I already made a Servlet now (which I also use as the management servlet for my application, also spawning a thread for some scheduled actions and controlling that thread(s)), but I might put the ConnectionPool in a Singleton instead. Jon destroy. There is also a very good JDBC connection pool Jon included with Turbine, however, it isn't strictly J2FooEE so Jon you may have to fight those pointy haired bosses who only Jon regurgitate what they read in magazines. Heh, at the moment I have no boss. I have to get as much work done before the next one comes :) Jon http://jakarta.apache.org/turbine/ I'll have a look at turbine, thanks. -- Peter Mutsaers | Dübendorf| UNIX - Live free or die [EMAIL PROTECTED] | Switzerland | Sent via FreeBSD 4.3-stable
Re[2]: Tomcat standalone with SSL
Hi, with an self-signed cert there is no problem ! The problem is the CA so give an try to our free program. The program converts the CA files into an DER format and then stores it into the keystore. Then the tomcat standalone works fine. We use this solution for three server without any problems ! http://www.comu.de/docs/tomcat_ssl.htm Wednesday, May 16, 2001, 5:18:39 PM, you wrote: I set up the Tomcat standalone with SSL support according to the user-guild with many people's help on this list, only difference is I didn't do: keytool -genkey -alias tomcat -keyalg RSA Now I can see a new message: PoolTcpConnector: Starting HttpconnectionHandler on 8443 when startup. But can't find other information about using SSL on Tomcat, how to know if SSL is OK? what should I do then? what's the difference with before? Help, please. Kevin Don't know. I never got that message. All I can tell you is I have tomcat running as a standalone server with a self-signed cert here. I went to Apache + tomcat with a CA cert later. Yours Wolfgang Mutter
ArrayIndexOutOfBoundsException/Stream broken choose :)
Hi, we got quite I strange problem and I am unsure if this is bug or some misconfiguration/programming on our side, I hope someone can help :). We are developing our web-application in Forte IDE Internet Edition with the build-id tomcat. the servlet there works fine without any problems (W2K). when trying this servlet on the server (Solaris 8 / Sparc, apache 1.3.14, tomcat 3.2.1 mod_jk) we got some strange errors. When accessing it via apache it doesn't give any output neither in the logfiles nor for the client. when connecting directly at port 8007 (ajp12) the error is: java.io.IOException: Stream broken at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp1 2ConnectionHandler.java:4 26) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.j ava:147) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) at port 8009 (ajp13) the error is: java.lang.ArrayIndexOutOfBoundsException at org.apache.tomcat.service.connector.MsgBuffer.hexLine(MsgBuffer.java:228) at org.apache.tomcat.service.connector.MsgBuffer.dump(MsgBuffer.java:244) at org.apache.tomcat.service.connector.MsgBuffer.checkIn(MsgBuffer.java:122) at org.apache.tomcat.service.connector.TcpConnector.receive(TcpConnector.java:1 25) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection (Ajp13ConnectionHandler.j ava:146) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) does someone have ideas what this could cause??? regards, tom
***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****
Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: Creating WAP sites
yes that's true, my bad, I forgot about that WML script. Cheers, AD. - Original Message - From: tomcat [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 4:08 PM Subject: RE: Creating WAP sites -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Keep in mind that there is no client code whatsoever, everything is executed server side Not necessarily true - you can use wml script to do simple client side scripting - very handy to reduce connecting to sites to a minimum. Cheers, Tom Tom Raftery Zenith Solutions Ltd Unit 6, 4 Dean Street, Cork, Ireland. phone: +353-21-4318300 mobile: +353-87-2506527 web: www.zenith.ie http://www.zenith.ie WAP: www.zenith.ie/wap http://www.zenith.ie/wap email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] - -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: 16 May 2001 14:29 To: [EMAIL PROTECTED]; Daniel de Almeida Alvares Subject: Re: Creating WAP sites Sure, i've done it Instead of having your servlets or jsp outputting html or xml in out.println(); have it output wml and don't forget to change the content-type to text/wml About forms, they're really simple, but I forgot the syntax, wml is very basic, you won't have trouble making them. I recommend you get a wap browser (download.com is a good start) to test your servlets/jsp cheers, AD - - Original Message - From: Daniel de Almeida Alvares [EMAIL PROTECTED] To: A mailing list for discussion about Sun Microsystem's Java Servlet APITechnology. [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 3:08 PM Subject: Creating WAP sites Hi, My name is Daniel and I live in Brazil. I have a web site using JSP and Servlets. It runs on Apache with Tomcat and mySQL database. I am planning to create an extension of this site using WML (Wap Technology). I would like to how can I deploy the WML pages using the technology above ? Is it possible to create forms with WML that acesses my Servlets Regards and thanks. Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBOwKJrWy/uj7eqtwJEQLN2QCgme9vtLLmNsG4LFxFrCINIIc1kAYAoLFG fHFBuPlOhSrK4T+L8P7d821m =3QFP -END PGP SIGNATURE- 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. If you have received this email in error please notify [EMAIL PROTECTED]
isapi_redirect.dll logging
Hi everybody, I've posted this (see below) before a few days ago and din't get a response. If that means nobody has a solution (yet), then, does anybody at least have the same problem? Thanks for your time, Thomas --- I am running Tomcat 3.1 in combination with IIS 5.0 on Windows 2000. The ISAPI plugin (isapi_redirect.dll) works without any problems. Since Tomcat (4.x) doesn't do any request logging, I was hoping I could get that from the log files IIS creates. Unfortunately, these log files do not contain the actual URL that was requested by the browser, but simply /tomcat_integration/isapi_redirect.dll. I have attached an excerpt of one of the IIS log files. I don't know what causes this and where and if it can be fixed. I have looked into the source code of isapi_redirect.dll to try to find out if the dll controls what is being logged by IIS but wasn't successful yet. Before I spend more time on this I wanted to see if somebody has already solved this problem... Thanks for your help! Thomas [8-] #Software: Microsoft Internet Information Services 5.0 #Version: 1.0 #Date: 2001-05-12 00:05:55 #Fields: date time cs-method cs-uri-stem sc-status 2001-05-12 00:05:55 GET XXX.gif 200 2001-05-12 00:07:18 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:21 GET XXX.css 200 32 2001-05-12 00:08:22 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:23 GET XXX.css 200 32 2001-05-12 00:08:23 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:23 GET XXX.gif 200 2001-05-12 00:08:26 GET XXX.css 200 2001-05-12 00:08:26 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:38 GET XXX.css 200 2001-05-12 00:08:38 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:39 GET XXX.css 200 2001-05-12 00:08:39 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:40 GET XXX.css 200 [8-] If this email is not intended for you, or you are not responsible for the delivery of this message to the addressee, please note that this message may contain ITT Privileged/Proprietary Information. In such a case, you may not copy or deliver this message to anyone. You should destroy this message and kindly notify the sender by reply email. Information contained in this message that does not relate to the business of ITT is neither endorsed by nor attributable to ITT.
Re: re[2]: how can I unsubscribe from this list
Perhaps you must answer a few more questions before you will be permitted to unsubscribe. ;-) Sincerely yours; Mark Mynsted VHA Management Information Systems Client Services [EMAIL PROTECTED] (972) 830 - 0592, Internal x1592 [EMAIL PROTECTED] 5/16/2001 11:35:46 AM To remove your address from the list, send a message to: [EMAIL PROTECTED] Bob: I have sent 4 msgs to this address to unsubscribe myself w/ wo effect. I have also contacted the owner of the list w/o any success either. Regards, - Alex - * Alex Nghiem 770.457.4144 / 770.331.6909 (C) * * Internet Entrepreneur Author [EMAIL PROTECTED] * * AOL IM: adn2294 *
Re: Accesing MySQL database through Applets
If I'm not mistaken, your applet can only communicate with the server it was called from. Even taking that into consideration your applet will most likely have to be signed, which implies the purchase of a costly certificate from verisign or another certification authority. You can make your own certificate, but that wont do for production. Secondly, it's a bad idea to do JDBC from Applet cause your clients JVM won't allow it, you'll have to include mucho packages with your applet which will make it huge... You can try calling your applet from a servlet or jsp and pass the data pulled out of the db in the html applet tag... that's what I usually do Cheers, AD. - Original Message - From: Devon Ziegler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 5:53 PM Subject: RE: Accesing MySQL database through Applets If you include the right driver/libraries in your applet's jar you likely COULD connect to the database from an Applet (if the database permissions were set up so the user could connect from anywhere). I agree that this is probably not a good idea though. The pipe that the connection uses isn't secured AT ALL (as far as I know). Far better to use some form of encrypted (ssl perhaps) pipe to talk to something on the server side that does the database calls for you. I've been thinking about setting up a simple servlet that uses https to secure the pipe. It would take xml database requests and respond with xml result sets (with user validation of course :) ). An applet could then access the database, but in a more secure manner than doing so directly. -Original Message- From: Jann VanOver [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 7:12 PM To: '[EMAIL PROTECTED]' Subject: RE: Accesing MySQL database through Applets Connecting to a database through Applet? Can you do that? Gosh, that sends chills down my spine. Applets are Client-side things. Database access is usually done Server-side. Someone, please tell me that Applets CAN'T make server database connections! -Original Message- From: Dana Marcusanu [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 22, 2001 4:58 PM To: [EMAIL PROTECTED] Subject: Accesing MySQL database through Applets I am using Tomcat version 3.2.1. I am trying to connect to a data base from an applet and I am getting the following error: 2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples + /jsp/student/org/gjt/ mm/mysql/Driver.class + null) null My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib My applet is in: C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student What can I do to connect the database from the applet? Should I give some permissions? Thanks, Dana __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Common (or combined) log format from a servlet/JSP?
Does anyone know of existing software that will use Log4J to create httpd common-log-format compatible output? I have a servlet application where I'd like to leave log files that could be analyzed by 3rd-party log processing tools. I'd hoped Log4J might solve this directly, but there doesn't appear to be any easy transformation short of creating my own subclasses of the format classes. -- Gary Lawrence Murphy [EMAIL PROTECTED] TeleDynamics Communications Inc Business Innovations Through Open Source Systems: http://www.teledyn.com Computers are useless. They can only give you answers.(Pablo Picasso)
Re: unsubcribe
send your mail to [EMAIL PROTECTED] --- Dana Marcusanu [EMAIL PROTECTED] wrote: unsubscribe tomcat-user --- Denis Markov [EMAIL PROTECTED] wrote: unsubcribe tomcat-user __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
FORM-based login questions
I've managed to get FORM-based login to work but I've got a few questions regarding it. I have an application that has three different roles: customer, administrator, and retailer. They will have access to their own part of the overall application - generally, the customer will access jsp's and servlets in the /ft/cust resource collection. Similarly for the admin and retailer roles. My web.xml file contains the following: security-constraint web-resource-collection web-resource-nameAdmin Functions/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-nameltadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameEtailer Functions/web-resource-name url-pattern/etailer/*/url-pattern /web-resource-collection auth-constraint role-nameltetailer/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameCustomer Functions/web-resource-name url-pattern/cust/*/url-pattern /web-resource-collection auth-constraint role-nameltcust/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/loginerror.jsp/form-error-page /form-login-config /login-config My tomcat-users.xml file has the users and roles defined appropriately: user name=lftcustpassword=troles=ltcust / user name=lftadmin password=t roles=ltadmin / user name=lftetailpassword=troles=ltetailer / As I said, this is working but I did have a few question. First, the context for the application is /ft and I'm running Tomcat 4.0b3 on a RedHat linux 6.2 box. You'll notice that the root of the application is not protected so if a browser is pointed to http://localhost:8080/ft/index.jsp it is served up without a username/password prompt. If I try to go to the /ft/cust/index.jsp URL then my login.jsp form is presented (user logs in and is redirected to the /ft/cust/index.jsp location). If I access the URL http://localhost:8080/ft/login.jsp directly, right from the start, I get the login form presented. If I login with a correct username and password I get the following error displayed in my browser window: HTTP Status 400 - Bad Request and the URL is: http://localhost:8080/ft/j_security_check It's almost like the FORM authentication handler doesn't know where to go after the login suceeds. Is there anything I can do about this? The Java Servlet Specification 2.3 document doesn't describe how this should be handled. Along a similar line. Say my /ft/index.jsp page has a link to login (/ft/login.jsp) and a user takes it. Once the user is authenticated, how can I direct them to a particular page (as the next page from the login form)? Another question. How do I logout? What I do right now is have a logout.jsp page that calls % session.invalidate(); % but is this the proper way of achiving a logout? Yet another question. I would like to attach some information (ie, an instance of a Java class) to the session once the user is authenticated. It will contain things like the user id and name from the database. Is there any way of doing this? I suppose I could have code in all my servlets and jsp files that builds the instance and attaches it to the session if getRemoteUser() returns not-null and the session information isn't bound. This is tedious though and requires duplicated code in every servlet or jsp that follows a login. Again, I don't see anything in the Servlet spec. Actually, I consider this to be a bit of a short-coming (if you can't do it) in the servlet spec. Thanks for the help, Kevin. Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Re: perplexing multiple servlet output question..
On Wed, 16 May 2001, John Clark L. Naldoza wrote: javax.servlet.RequestDispatcher public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException According to the DOCs this would be kinda like SSI's...;-) This is actually how we've solved SSI !--#include ... -- under Tomcat. So if you use Tomcatstandalone and SSI it will actually do a RequestDispatcher.include() ..bip
Re: Compiling TC4
On Wed, 16 May 2001 [EMAIL PROTECTED] wrote: Hi there, is there a separate mailing list for tc4? No, Not currently. Where can I find any documentation on compiling tc4? I used the cvs version and wasn't able to compile it. It seems to me, that I need other packages too and further more the setup of some system properties? read the README.txt file that's included, it goes through everything you need to download and install. ..bip
Creating WAP sites
Hi, My name is Daniel and I live in Brazil. I have a web site using JSP and Servlets. It runs on Apache with Tomcat and mySQL database. I am planning to create an extension of this site using WML (Wap Technology). I would like to how can I deploy the WML pages using the technology above ? Is it possible to create forms with WML that acesses my Servlets Regards and thanks. Daniel ___ Daniel de Almeida Alvares Santos - SP - Brasil [EMAIL PROTECTED]
Re: ArrayIndexOutOfBoundsException/Stream broken choose :)
I remember I read somewhere saying that we cannot access the port 8007 directly. It is used for Tomcat and Apache communication only ... something like that. don't know if this is correct. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Virtual Hosts
Hi Martin, I'm using name-based vhosts and they work the same as the IP-based. Just substitute the name for the IP. Here's my server.xml config: Host name=www.myhost.com Context path= docBase=/usr/local/java/webapps/hqcash/dist crossContext=false debug=0 reloadable=true /Context /Host Set one of these up for each virtual host in Apache. Also note that if you use the ServerAlias directive in Apache to make your host respond to more than one name (i.e. www.myhost.com *and* myhost.com ), you need to have two entries in your server.xml file -- which will cause all of your servlets to be init'ed and instantiated twice. The Host directive in server.xml doesn't take wildcards or multiple host names. (I wish it did!) Also, you should put all your JkMount directives for that specific host inside your VirtualHost directives in your apache config. If they are outside your VirtualHost directive, all hosts on the machine will inherit the JkMount points. Thanks, --jeff - Original Message - From: Martin Mauri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 6:40 AM Subject: Re: Virtual Hosts Hi Jeff, I agree, but the example shows an IP based virtual host configuration that means I have to set up different virtual IP addresses in my OS and I don't want to, I'd like to know how to configure named based virtual hosts within the same JVM. Any idea? regards, Martin Hi Martin, Take a look at the mod_jk howto: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html The example configuration shows how to use the Host directive in server.xml to set up virtual hosts using the same JVM. There's no need to specify different ports. Thanks, --jeff - Original Message - From: Martin Mauri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 11:01 AM Subject: Re: Virtual Hosts Thanks Ronan, Now, suppose I want to do it within the same process, with mod_jk I think I should have different ports per virtual host shouldn't I? Do you have an example on how to set up this? thanks. m- Martin, With 3.1 if you had multiple virtual hosts, you had to have a seperate server.xml file for each vitual host. Tomcat used a seperatee JVM for each virtual host. This is handy in a development environment so that you can stop and start one virtual host without having to stop and start them all. However, with 3.2 you can run them all in one JVm (or all seperately, whichever you prefer). I think you might have to use the AJp12 protocol with mod_jk if you wish to run them in seperate JVMs but if you are using just on JVM you can use either ajp13 or ajp12. Ronan -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: 14 May 2001 14:27 To: [EMAIL PROTECTED] Subject: Virtual Hosts Hi Users! As far as I know, with 3.1 versions it's necessary ti run different virtual hosts mounts in different JVM. But according to the mod_jk module documentation it seems that it's fixed because the virtual hosts directives are set in workers.properties, httpd.conf and server.xml. Does anybodu know if I'm right or wrong with this? regards. Lic. Martin O. Mauri Profesion + Auge A.F.J.P Parana 666 - Cap. Federal TE: (011) 4373-7786/7 int: 422 [EMAIL PROTECTED] www.profesi.com.ar
Re: Webapp initialization (tomcat 4)
Peter Mutsaers wrote: Jon == Jon Stevens [EMAIL PROTECTED] writes: Jon You could implement a Singleton based Service. This is what Jon Turbine did. It has an entire Service framework for dealing Jon with exactly this problem. It takes care of startup and That's a good idea. I already made a Servlet now (which I also use as the management servlet for my application, also spawning a thread for some scheduled actions and controlling that thread(s)), but I might put the ConnectionPool in a Singleton instead. [...] Hi :-) I am not sure, and I just suggest that: perhaps it is better to let this Singleton-ConnectionPool loaded by a classloader which is upper than the classloader of this webapp or that, so perhaps we can avoid some exceptions such as ClassCastException(for example, when reloading) Heh, at the moment I have no boss. I have to get as much work done before the next one comes :) [...] I am Not sure, but I find in this List, there are some people whose emails address are from hotmail or usa.net or.. I am Not sure, but is it possible that ..? //hahahahaha :-) (just a fun ^_^ ) have a nice day! :-) Bo May.16, 2001
Re: how can I unsubscribe from this list
Note that the mailing list should send you a notice saying you have requested to unsubscribe. You will not be officially taken off unless you return this email by pressing RETURN to confirm you really want to be removed. I thought I would mention that in case you have all your tomcat email routed to your trash or something HTH, Rob Alex Nghiem wrote: To remove your address from the list, send a message to: [EMAIL PROTECTED] Bob: I have sent 4 msgs to this address to unsubscribe myself w/ wo effect. I have also contacted the owner of the list w/o any success either. Regards, - Alex - * Alex Nghiem 770.457.4144 / 770.331.6909 (C) * * Internet Entrepreneur Author [EMAIL PROTECTED] * * AOL IM: adn2294 *
RE: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****
The problem with my mailer (MS Outlook) is that I don't see a return-path line. One odd thing is that unsubscribe doesn't seem to work EVEN if one has sent the unsubscribe request via his/her subscribing address. I know for sure it has failed on me. I am positive about my subscribing address being correct as I saved the instructions of subscribing/unsubscribing sent by the mailing list when I initially signed up. And I have tried to unsubscribe at least twice and both times I failed. The only solution I could come up with is having all messages from tomcat user, tomcat user list etc... filtered into the delete folder... :-) Apparently my setup didn't undergo enough permutations of tomcat and user such that the attached message wasn't filtered out... :-) Any ideas ? -Original Message- From: Milt Epstein [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:18 PM To: Tomcat User Mailing List Subject:* URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Problem compiling mod_jk for Solaris
Hi, All! I'm having a problem getting mod_jk compiled for Solaris. Here's my setup: Solaris 2.6 apache 1.3.13 (I know it's old, but it's what we're using in production, so until that changes, it's what I have to work with) Apache was compiled with mod_so enabled and with OpenSSL tomcat 3.2.1 Java 1.3_0_02 I took our standard apache 1.3.13 with OpenSSL and mod_so compiled in, have it running and serving pages through https. I downloaded and installed j2sdk1_3_0_02 and associated patches. I applied the patches, and installed java. I downloaded tomcat 3.2.1, installed it, and have it running correctly on port 8080. I downloaded the tomcat source for 3.2.1, and extracted the tar ball. went to tomcat-src/src/native/apache1.3 I read the how-to page at: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Which said to use the following command: apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include -I/usr/java/include/solaris -c *.c ../jk/*.c I, of course, changed it for my environment to read: apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java2/include -I/usr/java2/include/solaris -c *.c ../jk/*.c Here's where things started going wrong. The link stage to take the corresponding object files (*.o) and create the shared object (mod_jk.so) failed. After much reading in the archives of this mail list and other resources, and much trial and error, I modified the apxs script to use ld with the -G flag, (which also failed). Finally I used a manual command to create the *.so file from the object files since the command generated by apxs were looking in the wrong directory for the *.o files. Now, finally, I have a mod_jk.so file. I move it into the libexec directory under the apache server, put the Include line into the httpd.conf file to get the tomcat auto-generated file, mod_jk.conf-auto (per the instructions). I started the tomcat server, and started the apache server, and got another error message. With more research, I found (in the how-to file) the following explanation of that problem. It said On some systems, this will build the module correctly, but will fail at runtime with a symbol fdatasync not found. To fix, add -lposix4 just before the -c in the above command. So I recompiled the mod_jk.so file again with the -lposix4 flag and tried again. (stopping both servers, and restarting) Now I received a slightly different error. After searching the archives again, and finding nothing. I decided the time has come to consult my fellow strugglers. Here's the error message I received this time: [Wed May 16 15:10:18 2001] [debug] apache_ssl.c(355): Random input /dev/urandom(1024) - 0 Syntax error on line 8 of /apacheSSL/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto: Can't locate API module structure `jk_module' in file /apacheSSL/libexec/mod_jk.so: ld.so.1: /apacheSSL/bin/httpsd: fatal: jk_module: can't find symbol Now, I've also looked through the source file, mod_jk.c, and the definition of jk_module is there, so I can't figure out why it's complaining that it can't find the symbol. Please help. Thanks. Ron -- Ron Wolf http://www.getthere.com [EMAIL PROTECTED] (972) 277-3869
RE: IIS 5.0 Access denied for non-domain administrators
Check the permissions on the isapi_redirect.dll file. This is just a guess, but IIS might be looking to the permissions of the file you are about to execute to determine if you can execute it. Randy -Original Message- From: COFFMAN Steven [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:25 PM To: '[EMAIL PROTECTED]' Subject: IIS 5.0 Access denied for non-domain administrators Howdy. I got tomcat up and running on Win 2000 with IIS 5.0 just fine (jakarta as NT service), but when I changed the authentication to require basic and disallow anonymous, servlet access gives a 401.3 error: access denied by ACL on resource. When I authenticate as a domain administrator, everything works fine. It's only when a joe-average user tries to authenticate that things do not function properly. I've changed the permissions on the jakarta-tomcat directory to basically give everyone full control but still no go. I gave everyone log on locally rights even. The ISAPI filter has read, script, and execute. I've searched all the archives, the web, and spent a couple days taking messing with it, but I'm completely out of ideas. I have reboot several times since then with no change, so it's not that. If anyone has any suggestions whatsover, I will be eternally grateful. Would making jakarta be in-process help things? -Steve
Tomcat Shutdown capabilities
I am interested in what Tomcat does when it receives a shutdown signal. Specifically, does it wait for requests being serviced to finish before terminating. I have traced the code to Context.shutdownContext. Nothing so far gives me the indication that Tomcat will wait until all HTTP requests have been completed before shutting down.
RE: IIS 5.0 Access denied for non-domain administrators
What do you want to do? To use basic auth for the entire site? A solution : * Use ajp12 and Tomcat 3.3, * put TomcatAuthentication attribute to true on the ajp12 request interceptor line on server.xml. * Disengage *all* auth from IIS... * Put container auth to work on your contexts , tweaking web.xml, as an example follow the examples context web.xml, changing it to BASIC instead of FORM auth You will get BASIC auth handled enterely by tomcat ..not using IIS for auth at all.. I'm still having no time to research why with ajp13 the method does not work.. I need to figure out how to protect static resources whne served by IIS ..but at least for me do the job.. protecting at least the dynamic portinon of my sites..this is all that i need..:) Saludos , Ignacio J. Ortega -Mensaje original- De: COFFMAN Steven [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 16 de mayo de 2001 20:25 Para: '[EMAIL PROTECTED]' Asunto: IIS 5.0 Access denied for non-domain administrators Howdy. I got tomcat up and running on Win 2000 with IIS 5.0 just fine (jakarta as NT service), but when I changed the authentication to require basic and disallow anonymous, servlet access gives a 401.3 error: access denied by ACL on resource. When I authenticate as a domain administrator, everything works fine. It's only when a joe-average user tries to authenticate that things do not function properly. I've changed the permissions on the jakarta-tomcat directory to basically give everyone full control but still no go. I gave everyone log on locally rights even. The ISAPI filter has read, script, and execute. I've searched all the archives, the web, and spent a couple days taking messing with it, but I'm completely out of ideas. I have reboot several times since then with no change, so it's not that. If anyone has any suggestions whatsover, I will be eternally grateful. Would making jakarta be in-process help things? -Steve
Tomcat and Remote JBoss EJB
This may already be common knowledge, but we were unable to get Tomcat 3.2.1 to access remote EJBs running on JBoss. This works fine with Tomcat 3.1.1 - it seem's there is a problem with reading classes out of the WEB-INF/lib directory. I read on another list that if you explicitly add all your jars to the Static classpath it will work, but that is not feasible in a production system. Is this a known problem with 3.2.1? If so, isn't this a substantial problem and shouldn't there be some note on the Web Site? Thanks Bob Long-live Open Source! Linux, Apache, Tomcat, JBoss!! _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Apache, Struts, .conf files
Help, I am trying to install the struts framework examples on my apache1.3.19 / tomcat3.2.1 setup. I have followed the directions included with struts (relevent instruction listed at end of email When I try to start the Apache service (tomcat is already running), I get an internal Windows NT error If I remove the include d:/web/apache_1.3.19/Apache/conf/tomcat-apache.conf line, apache starts, but does not recognize *.do files as appended to the modified tomcat-apache.conf file. I have tried skipping step 7 (modifiing the tomcat-apache.conf file) with the same result. I have also tried different iterations of removing, altering the line that referneces mod_jk: include d:/web/tomcat/conf/mod_jk.conf-auto ex: include d:/web/tomcat/conf/mod_jk.conf-auto d:/web/apache_1.3.19/Apache/conf/tomcat-apache.conf with and without the tomcat-apache.conf line. I have even tried pointing the include line to the origional (unmolested) tomcat-apache.conf file in the tomcat path. Please tell me I am missing something obvious. D Struts instructions: -- This document contains notes that have been accumulated on getting the Struts applications (documentation and example) running in a variety of servlet container environments. For most containers, you need only to: 1: Copy the WAR files in your Struts /webapp directory to your containers webapps directory. 2: In some cases, you may need to restart your container if it is running. * Tomcat 3.1+ with Apache - Additional steps provided below. TOMCAT 3.1 (OR LATER) WITH APACHE - * These instructions assume you have successfully integrated Tomcat with Apache according to the Tomcat documentation. 3* Copy struts-documentation.war and struts-example.war to your $TOMCAT_HOME/webapps directory 4* Restart Tomcat if it is already running 5* Tomcat will generate a file $TOMCAT_HOME/conf/tomcat-apache.conf that will be used by Apache. This file is regenerated every time you start Tomcat, so copy this file to a safe place (such as your Apache configuration directory; on Unix systems this is usually /usr/local/apache/conf. (I SKIPPED STEP 6) 6* If you are running Tomcat 3.1, Tomcat will not have generated the entries for your new applications. Add the following lines to the tomcat-apache.conf file that you have saved, replacing $TOMCAT_HOME with the path to your Tomcat home directory: Alias /struts-documentation $TOMCAT_HOME/webapps/struts-documentation Directory $TOMCAT_HOME/webapps/struts-documentation Options Indexes FollowSymLinks /Directory ApJServMount /struts-documentation/servlet /struts-documentation Location /struts-documentation/WEB-INF/ AllowOverride None deny from all /Location Alias /struts-example $TOMCAT_HOME/webapps/struts-example Directory $TOMCAT_HOME/webapps/struts-example Options Indexes FollowSymLinks /Directory ApJServMount /struts-example/servlet /struts-example Location /struts-example/WEB-INF/ AllowOverride None deny from all /Location 7* On all versions of Tomcat, the generated file above does not know anything about extension mappings defined in a web.xml file, so the *.do URIs that go to the controller servlet will not be recognized. To fix this, add the following line to the saved version of tomcat-apache.conf, after the corresponding line for the .jsp extension: AddHandler jserv-servlet .do 8* Ensure that the saved version of tomcat-apache.conf is referenced in your Apache httpd.conf configuration file. A typical use would have the following line at the bottom of httpd.conf: Include /usr/local/apache/conf/tomcat-apache.conf (I used: include d:/web/apache_1.3.19/Apache/conf/tomcat-apache.conf) 9* In order to recognize index.jsp as a default page for web applications, search in your httpd.conf for a DirectoryIndex directive. If you have one, add index.jsp to the end of the list, so that it might look like this: DirectoryIndex index.html index.jsp If you do not have such an entry, add one like this: DirectoryIndex index.jsp 10* Restart Apache to make it aware of the new applications. You should now be able to access the applications from a browser like this: http://localhost/struts-documentation http://localhost/struts-example --end pasted instructions---
Authentication with Tomcat
Title: Authentication with Tomcat I know these requests have come up before, so I thought I'd offer advice/help - I've written a good deal of Jboss+Tomcat authentication code using JAAS. If anyone needs help with authentication issues, let me know - I can probably shed some light on the topic. vijay prabhakar team lead the eon company www.eoncompany.com o 212.401.5024 m 410.961.8404 e [EMAIL PROTECTED]
RE: FORM-based login questions
1. You are right that the spec doesn't say what to do when a login form is accessed directly. This is why Tomcat doesn't know what to do. Two things: a) don't let users access login form directly. Not sure what happens in Tomcat if you protect the login form. At least you can remove all links to the login form in your app. This is actuallythe point behind login forms - so you don't have to worry about it in your app, it just happens by magic. b) the spec needs to change to handle the case where a login form is directly accessed by a client. My personal view is a welcome file should be returned. If there isn't one, then a 404 should occur. 2. there is no logout mechanism in Servlet. Your solution is i think good. 3. you could use a filter that runs before every servlet which does this work for you -Original Message- From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:45 PM To: [EMAIL PROTECTED] Subject: FORM-based login questions I've managed to get FORM-based login to work but I've got a few questions regarding it. I have an application that has three different roles: customer, administrator, and retailer. They will have access to their own part of the overall application - generally, the customer will access jsp's and servlets in the /ft/cust resource collection. Similarly for the admin and retailer roles. My web.xml file contains the following: security-constraint web-resource-collection web-resource-nameAdmin Functions/web-resource-name url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-nameltadmin/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameEtailer Functions/web-resource-name url-pattern/etailer/*/url-pattern /web-resource-collection auth-constraint role-nameltetailer/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameCustomer Functions/web-resource-name url-pattern/cust/*/url-pattern /web-resource-collection auth-constraint role-nameltcust/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/loginerror.jsp/form-error-page /form-login-config /login-config My tomcat-users.xml file has the users and roles defined appropriately: user name=lftcustpassword=troles=ltcust / user name=lftadmin password=t roles=ltadmin / user name=lftetailpassword=troles=ltetailer / As I said, this is working but I did have a few question. First, the context for the application is /ft and I'm running Tomcat 4.0b3 on a RedHat linux 6.2 box. You'll notice that the root of the application is not protected so if a browser is pointed to http://localhost:8080/ft/index.jsp it is served up without a username/password prompt. If I try to go to the /ft/cust/index.jsp URL then my login.jsp form is presented (user logs in and is redirected to the /ft/cust/index.jsp location). If I access the URL http://localhost:8080/ft/login.jsp directly, right from the start, I get the login form presented. If I login with a correct username and password I get the following error displayed in my browser window: HTTP Status 400 - Bad Request and the URL is: http://localhost:8080/ft/j_security_check It's almost like the FORM authentication handler doesn't know where to go after the login suceeds. Is there anything I can do about this? The Java Servlet Specification 2.3 document doesn't describe how this should be handled. Along a similar line. Say my /ft/index.jsp page has a link to login (/ft/login.jsp) and a user takes it. Once the user is authenticated, how can I direct them to a particular page (as the next page from the login form)? Another question. How do I logout? What I do right now is have a logout.jsp page that calls % session.invalidate(); % but is this the proper way of achiving a logout? Yet another question. I would like to attach some information (ie, an instance of a Java class) to the session once the user is authenticated. It will contain things like the user id and name from the database. Is there any way of doing this? I suppose I could have code in all my servlets and jsp files that builds the instance and attaches it to the session if getRemoteUser() returns not-null and the session information isn't bound. This is tedious though and requires duplicated code in every servlet or jsp that follows a login. Again, I don't see anything in the Servlet spec. Actually, I consider this to be a bit of a short-coming (if you can't do it) in the servlet spec. Thanks for the help, Kevin.
Re: ***** URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *****
Outlook does indeed include the headers, they just don't make them obvious to you. If you right click on the message in your list, you should be able to choose Properties and then choose the Details tab. That should give you the full message source, and you can find out what email account your mail was delivered to. Perhaps there is a capitalization issue? I have unsubscribed from this list before (when I was having problems with my mail server), and had no problems at all. Good luck, -Scott - Original Message - From: Yang,Chun [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 12:37 PM Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * The problem with my mailer (MS Outlook) is that I don't see a return-path line. One odd thing is that unsubscribe doesn't seem to work EVEN if one has sent the unsubscribe request via his/her subscribing address. I know for sure it has failed on me. I am positive about my subscribing address being correct as I saved the instructions of subscribing/unsubscribing sent by the mailing list when I initially signed up. And I have tried to unsubscribe at least twice and both times I failed. The only solution I could come up with is having all messages from tomcat user, tomcat user list etc... filtered into the delete folder... :-) Apparently my setup didn't undergo enough permutations of tomcat and user such that the attached message wasn't filtered out... :-) Any ideas ? -Original Message- From: Milt Epstein [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 2:18 PM To: Tomcat User Mailing List Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Web Mailing list?
Can someone repost the address to the online version of this mailing list? Kendal L. Montgomery Qwest - eFlow Development Team 614-215-4937
RE: Tomcat Shutdown capabilities
Title: RE: Tomcat Shutdown capabilities Yes, it is possible to shutdown Tomcat remotely. Using JMX, you could shutdown the Tomcat service. Check out the JBoss/Tomcat mix. If you run Tomcat as a service within JBoss, JMX allows you to shut the server down. -Vijay Prabhakar -Original Message- From: Todd Carmichael [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:55 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat Shutdown capabilities Also, is it possible to shutdown Tomcat from another machine (securely). I have seen lots of message activity and code that restricts shutdown from other machines. I actually need that functionality for our operations group. FYI: We had been considering an architecture with IIS/Apache as a web server and tomcat as the app server. However, given the capabilities of our Load Balancing machine which can cache static content for an entire web farm and handle SSL encryption/decryption in hardware (I love hardware solutions), we are considering using Tomcat as both web and application server. -Original Message- From: Todd Carmichael Sent: Wednesday, May 16, 2001 1:34 PM To: [EMAIL PROTECTED] Subject: Tomcat Shutdown capabilities I am interested in what Tomcat does when it receives a shutdown signal. Specifically, does it wait for requests being serviced to finish before terminating. I have traced the code to Context.shutdownContext. Nothing so far gives me the indication that Tomcat will wait until all HTTP requests have been completed before shutting down.
JSP architecture resources
Hi, I've just completed my first JSP project and want to refactor it into a more robust code base. This willallow me to easily reuse it for similar projects in the future. I found that learning the JSP syntax was pretty easy, but my resultingarchitecture is a bit of a mess. Any recommendations for books or online resourcesI can use tolearn more about architecture conventions for JSP and servlets? I've come across many brief descriptions of Model View Controller, for example. What's a good site to learn more about MVC? Best, WILL ___Forio Business SimulationsWill Glass-Husain(415) 440-7500 phone(415) 235-4293 mobile [EMAIL PROTECTED]www.forio.com
mount problem
Hello. I'm having what seems to me is a mount problem. I have created a newapp called addressbook using the Turbine Development Kit (tdk) and then moved it over to my running Tomcat 3.2 server. When I try to access http://www.mydomain.com/addressbook/servlet/addressbook/ I get the following error: 2001-05-16 04:01:11 - Ctx( /addressbook ): 404 R( /addressbook + /opt/jakarta-tomcat-3.2.1/webapps/addr essbook/templates/app/layouts/Default.jsp + null) JSP file not found It seems to be looking for the correct page, and /opt/jakarta-tomcat-3.2.1/webapps/addr essbook/templates/app/layouts/Default.jsp exists. I don't understand why it wants to attach /address to the front? Could someone please give me some insight? What am I missing? Thanks. I have gone through the mod_jk how-to, and setup my http.conf as follows: IfModule mod_jk.c JkWorkersFile /opt/tomcat/conf/workers.properties JkLogFile /opt/apache/logs/mod_jk.log JkLogLevelerror JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /addressbook/* ajp13 /IfModule - Kevin
Re: ***** its impossible to unscribe *****
ok you seem to think its so easy unscribing from this my email is [EMAIL PROTECTED] i have used the adress [EMAIL PROTECTED] but this poor email box keeps getting stuffed full what am i doing wrong please help and no cheek intended:)) - Original Message - From: Milt Epstein [EMAIL PROTECTED] To: Tomcat User Mailing List [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 7:18 PM Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Tomcat 4 won't recognize servlet (repost)
Anybody know why my servlet under Tomcat 3.21 is not a servlet under Tomcat 4 b5? My servlet source appears to conform with spec 2.2 and 2.3. I'm a little confused why it won't cast to a servlet. I've listed the relevent snippets from the log.txt file. Thanks for any help, Bill Pfeiffer - 2001-05-15 21:00:05 StandardContext[/oasis-war]: Servlet /oasis-war threw load() exception javax.servlet.ServletException: Class com.pdma.oasis.servlets.InitServlet is not a Servlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) - Root Cause - java.lang.ClassCastException: com.pdma.oasis.servlets.InitServlet at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
RE: ***** its impossible to unscribe *****
[EMAIL PROTECTED] ^^ you mis-spelled jakarta Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Declan Magee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 4:18 PM To: [EMAIL PROTECTED] Subject: Re: * its impossible to unscribe * ok you seem to think its so easy unscribing from this my email is [EMAIL PROTECTED] i have used the adress but this poor email box keeps getting stuffed full what am i doing wrong please help and no cheek intended:)) - Original Message - From: Milt Epstein [EMAIL PROTECTED] To: Tomcat User Mailing List [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 7:18 PM Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
VHost with Apache Tomcat ??
I have Apache / Tomcat setup on a Win2K box for dev work. I have it setup so I can go to http://localhost/myapp/index.jsp and reach my staged website. My question is : How can I setup apache / tomcat to resolve http://myapp.localhost/index.jsp ?? Please provide specific soultions as I've poured though the tomcat / apache docs only to find information overload. :( I've attached my httpd.conf, tomcat.conf, and server.xml files. Can anyone also point me to some info on why under the webapps directories there are WEB-INF directories, META-INF, etc... somethnig that just explains the general structure. Excuse me while I get started :) ?xml version=1.0 encoding=ISO-8859-1? Server !-- Debug low-level events in XmlMapper startup -- xmlmapper:debug level=0 / !-- Logging: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, tc_log, servlet_log, and JASPER_LOG. Path: The file to which to output this log, relative to TOMCAT_HOME. If you omit a path value, then stderr or stdout will be used. Verbosity: Threshold for which types of messages are displayed in the log. Levels are inclusive; that is, WARNING level displays any log message marked as warning, error, or fatal. Default level is WARNING. verbosityLevel values can be: FATAL ERROR WARNING INFORMATION DEBUG Timestamps: By default, logs print a timestamp in the form -MM-dd hh:mm:ss in front of each message. To disable timestamps completely, set 'timestamp=no'. To use the raw msec-since-epoch, which is more efficient, set 'timestampFormat=msec'. If you want a custom format, you can use 'timestampFormat=hh:mm:ss' following the syntax of java.text.SimpleDateFormat (see Javadoc API). For a production environment, we recommend turning timestamps off, or setting the format to msec. Custom Output: Custom means normal looking. Non-custom means surrounded with funny xml tags. In preparation for possibly disposing of custom altogether, now the default is 'custom=yes' (i.e. no tags) Per-component Debugging: Some components accept a debug attribute. This further enhances log output. If you set the debug level for a component, it may output extra debugging information. -- !-- if you don't want messages on screen, add the attribute path=logs/tomcat.log to the Logger element below -- Logger name=tc_log verbosityLevel = INFORMATION / Logger name=servlet_log path=logs/servlet.log / Logger name=JASPER_LOG path=logs/jasper.log verbosityLevel = INFORMATION / !-- You can add a home attribute to represent the base for all relative paths. If none is set, the TOMCAT_HOME property will be used, and if not set . will be used. webapps/, work/ and logs/ will be relative to this ( unless set explicitely to absolute paths ). You can also specify a randomClass attribute, which determines a subclass of java.util.Random will be used for generating session IDs. By default this is java.security.SecureRandom. Specifying java.util.Random will speed up Tomcat startup, but it will cause sessions to be less secure. You can specify the showDebugInfo attribute to control whether debugging information is displayed in Tomcat's default responses. This debugging information includes: 1. Stack traces for exceptions 2. Request URI's that cause status codes = 400 The default is true, so you must specify false to prevent the debug information from appearing. Since the debugging information reveals internal details about what Tomcat is serving, set showDebugInfo=false if you wish increased security. -- ContextManager debug=0 workDir=work showDebugInfo=true !-- Interceptors -- !-- ContextInterceptor className=org.apache.tomcat.context.LogEvents -- ContextInterceptor className=org.apache.tomcat.context.AutoSetup / ContextInterceptor className=org.apache.tomcat.context.WebXmlReader / !-- Uncomment out if you have JDK1.2 and want to use policy ContextInterceptor className=org.apache.tomcat.context.PolicyInterceptor / -- ContextInterceptor className=org.apache.tomcat.context.LoaderInterceptor / ContextInterceptor className=org.apache.tomcat.context.DefaultCMSetter / ContextInterceptor
Hi
Hi, i have integrated tomcat with iis 5.0 and the green flag is up, but when i try to open a jsp page from iis it doesnt work. The same pages work fine when run only with tomcat but in iis they r givivg me some problems. th isap log file error is some what like this: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter[jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
mod_jk error
Hi, I'm using mod_jk with Apache 1.3 and Tomcat 3.2.1. My httpd.conf includes the auto generated mod_jk config file. I believe I'm using ajp13 protocol. But my mod_jk.log file keeps filling up with this message: [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to server Incidentally, the behavior of the server seems fine. Should I be worried about this error message? Thanks, WILL _Forio Business SimulationsWill Glass-Husain(415) 440-7500 phone(415) 235-4293 mobile [EMAIL PROTECTED]www.forio.com
Re: ***** its impossible to unscribe *****
On Thu, 17 May 2001, Declan Magee wrote: ok you seem to think its so easy unscribing from this my email is [EMAIL PROTECTED] i have used the adress [EMAIL PROTECTED] but this poor email box keeps getting stuffed full what am i doing wrong please help and no cheek intended:)) For one thing, you apparently didn't read my message entirely. The key point is not what your (main/current) email address is, but what tomcat-user has as your subscribed address. Did you look for the appropriate header (as described in my message) to find that? If you find that, then try to unsubscribe with that address, then I'll be more sympathetic to your complaints of the unsubscribe stuff not working :-) (and I won't be able to offer any further help, because you'll have gone further than my knowledge and capability regarding this :-). For the person that posted previously using MS Outlook: Someone posted indicating how to see the complete headers using MS Outlook. Did you try that? Did you find the appropriate header? Any luck unsubscribing using that address? - Original Message - From: Milt Epstein [EMAIL PROTECTED] To: Tomcat User Mailing List [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 7:18 PM Subject: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST * Obviously a lot of people are having trouble unsubscribing from this list. Most likely these people have tried the simple/direct way of unsubscribing -- sending email to [EMAIL PROTECTED] -- without success. That's because that way only works if you send the unsubscribe request from the address you are subscribed from. But many people receive/send their email from a different address than the one they originally subscribed from. Some people (including me and others) have posted instructions on how to unsubscribe when faced with this situation. But it's not clear that the right people are seeing these messages (I guess you can't blame them too much, because they're probably not reading the messages too closely, because the whole point is they want to get off this list). But I'm going to make another attempt to post these instructions in the hope that it will help someone. I'll try to make the subject line such that even those people that are deleting everything from the list will stop and notice it (for the people that want to stay on the list, sorry about that :-). First of all, you need to find out what address tomcat-user thinks you're subscribed from. To do that, look at the headers of a message from the list, and you'll see something like: Return-Path: [EMAIL PROTECTED] The Return-Path header line includes the address tomcat-user thinks you're subscribed from -- with the @ changed to a = to avoid having two @'s in the Return-Path. In this example, that's joe=domain.com, which translates to [EMAIL PROTECTED] Once you know that address, you can unsubscribe by sending email to [EMAIL PROTECTED] Voila! So, if you are having trouble unsubscribing, please give this a try. Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Re: JSP architecture resources
On Wed, 16 May 2001, Will Glass-Husain wrote: Hi, I've just completed my first JSP project and want to refactor it into a more robust code base. This will allow me to easily reuse it for similar projects in the future. I found that learning the JSP syntax was pretty easy, but my resulting architecture is a bit of a mess. Any recommendations for books or online resources I can use to learn more about architecture conventions for JSP and servlets? I've come across many brief descriptions of Model View Controller, for example. What's a good site to learn more about MVC? Here's something that I think you'll find helpful: ftp://ftp.ora.com/pub/conference/java2001/McClanahan.sdd (FWIW, sdd files were new to me, but I know that Star Office can handle them.) It's a presentation by Craig McClanahan (one of the Tomcat developers), which he gave at O'Reilly's recent Java conference. He's done similar ones at other conferences, perhaps ApacheCon's and JavaOne's (I believe he's doing something along these lines at the upcoming JavaOne). I think it does a very nice job organizing some of the JSP/servlet architecture options. (I can't recall how much it gets into MVC.) You might also check javaworld. Here's an URL I have saved for an article there about MVC in the context of servlets: http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html I'm sure they have lots of other stuff about MVC, so you might do a search there. And I'm sure there are lots of other relevant, useful resources all over the web, so you might search around some more (e.g. try google). Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
RE: JSP architecture resources
also on the craig mclanahan / MVC tip, check out another Apache project: http://jakarta.apache.org/struts/index.html ( Don't know if this project is mentioned in that presentationbut how could it not be.;) ) Tim Julien HP Middleware -Original Message- From: Milt Epstein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:21 PM To: [EMAIL PROTECTED] Subject: Re: JSP architecture resources On Wed, 16 May 2001, Will Glass-Husain wrote: Hi, I've just completed my first JSP project and want to refactor it into a more robust code base. This will allow me to easily reuse it for similar projects in the future. I found that learning the JSP syntax was pretty easy, but my resulting architecture is a bit of a mess. Any recommendations for books or online resources I can use to learn more about architecture conventions for JSP and servlets? I've come across many brief descriptions of Model View Controller, for example. What's a good site to learn more about MVC? Here's something that I think you'll find helpful: ftp://ftp.ora.com/pub/conference/java2001/McClanahan.sdd (FWIW, sdd files were new to me, but I know that Star Office can handle them.) It's a presentation by Craig McClanahan (one of the Tomcat developers), which he gave at O'Reilly's recent Java conference. He's done similar ones at other conferences, perhaps ApacheCon's and JavaOne's (I believe he's doing something along these lines at the upcoming JavaOne). I think it does a very nice job organizing some of the JSP/servlet architecture options. (I can't recall how much it gets into MVC.) You might also check javaworld. Here's an URL I have saved for an article there about MVC in the context of servlets: http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html I'm sure they have lots of other stuff about MVC, so you might do a search there. And I'm sure there are lots of other relevant, useful resources all over the web, so you might search around some more (e.g. try google). Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]