[solution] installing *OFFICIAL (commercial)* SSL-certificate
Hi, after long time of trying to setup a (demo)certificate from thawte.com or trustcenter.de I finally made it. And because of the numerous questions on this list concerning this topic, I thought it would be a good idea to share my gained wisdom :-) So what follows is a step-by-step instruction on how to install a commercial (*not* self signed or openssl) certificate: 1. generate a local certificate: keytool -genkey -alias tomcat -keyalg RSA -keystore myfile where myfile is the name of the desired keystore-file 2. generate the CSR (you need it to request your (demo)certificate) keytool -certreq -keyalg RSA -alias tomcat -file certreq.pem -keystore myfile now you have a file called certreq.pem. Send this to your trustcenter. 3. most trustcenters do not deliver a so called chained certificate, so you have to install their root-certificate (their website says where to find it) keytool -import -alias root -keystore myfile -trustcacerts -file root-cert-file 4. after your final (demo)certificate has been sent to you, install it like this keytool -import -alias tomcat -keystore myfile -trustcacerts -file received-cert-file For the tomcat-specific part of the installation go to the *real good* tomcat-doc-page: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html I hope it helped somebody... If there are any questions/suggestions/etc... simply hit REPLY (-: greets, pero
Re: Error running ./configure of webapp-module-1.0-tc40
I forgot to say that the APRVARS file does exist in the /apr directory in the directory where I am running ./configure --- Allan Kamau [EMAIL PROTECTED] wrote: Hi all, I am getting an error during the ./configure of webapp-module-1.0-tc40 in my RH 7.1 box running Apache 2.0.16 this is what I get. #./configure --prefix=/software/apache/jakarta/tomcat/web-app-module-1.0.tc.4.0 --with-apxs=/software/apache/httpd/apache-2_0_16/bin/apxs --enable-java=$JAVA_HOME --with-tomat=$CATALINA_HOME --with-apr ... ... lots of error free output ... Finishing up checking for APR compilation flags... error configure: error: Cannot find required APRVARS file # How can I solve this. Thanks. Allan Kamau. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Re: Error running ./configure of webapp-module-1.0-tc40
Hmm... It seems that there are some troubles with building for Apache 2.0 (which integrates APR as its core foundation)... Can you please send me (privately, not to clog the list) the output of ls -laR /software/apache/httpd/apache-2_0_16?? Thanks Pier Allan Kamau [EMAIL PROTECTED] wrote: I forgot to say that the APRVARS file does exist in the /apr directory in the directory where I am running ./configure --- Allan Kamau [EMAIL PROTECTED] wrote: Hi all, I am getting an error during the ./configure of webapp-module-1.0-tc40 in my RH 7.1 box running Apache 2.0.16 this is what I get. #./configure --prefix=/software/apache/jakarta/tomcat/web-app-module-1.0.tc.4.0 --with-apxs=/software/apache/httpd/apache-2_0_16/bin/apxs --enable-java=$JAVA_HOME --with-tomat=$CATALINA_HOME --with-apr ... ... lots of error free output ... Finishing up checking for APR compilation flags... error configure: error: Cannot find required APRVARS file # How can I solve this. Thanks. Allan Kamau. __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com __ Do You Yahoo!? Get email alerts NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
Re: webapp directory as apache document root
Charles Baker [EMAIL PROTECTED] wrote: What all needs to be changed to make a webapp's directory be the document root of my apache server? Do I just need to change the docment root entry in httpd.conf? If you're using mod webapp, simply put WebAppDeploy name connection / in your httpd.conf.
Re: mod_webapp / mod_proxy and Tomcat 4.0
Richard P [EMAIL PROTECTED] wrote: The Proxy HOWTO mentiones mod_webapp, which I assume is the replacement for mod_jk, sorta. Where do I get it? Are there any docs for configuring it? Together with the source/binary distribution of Tomcat 4.0 final :) Pier
Re: Where is Mod_webapp?
Nael Mohammad [EMAIL PROTECTED] wrote: Where is Mod_webapp? I was on a plane between the U.K. and the U.S. (and given the times, it was not a pleasant one). It's on the site together with Tomcat 4.0. Pier
Re: How can I compile mod_webapp.c???
Jaime Garcia [EMAIL PROTECTED] wrote: Hi, I´m trying Apache 2.x and Tomcat 4 work together. I find mod_webapp.c but i don't know how i can compile it. Anyone can help me please ./configure ... make ... That's supposed to work.
Re: Catalina mod_webapp path=
Manri Offermann [EMAIL PROTECTED] wrote: Hi all, I am trying to find some informtation (without success :( ...) on how to do the equivalent of: mod_jk Tomcat3.2 Apache --- server.xml Host name=www.xyz.com Context path= docBase=/home/me/www reloadable=true debug=0/ /Host --- httpd.conf VirtualHost xxx.xxx.xxx.xxx ServerName www.xyz.com DocumentRoot /home/me/www JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Location /WEB-INF/ AllowOverride None deny from all /Location /VirtualHost --- with mod_webapp+Tomcat4+Apache. Documentations I have found only explain how to deploy a webapp with Tomcat4+Apache in a subdirectory (http://xyz.com/webapp/somefile.jsp). What I want to do is deploy a webapp in the root directory so that the URL turns out to be http://xyz.com/somefile.jsp. Does anybody have a clue on how to do that? In another ML someone has stated, that I could use mod_jk. I tried configuring mod_jk with Tomcat4 without success. Using mod_jk is not really what I want to do since my understanding is that mod_jk is already dead(?)! with Tomcat4. Any help is welcome! Don't put anything in your server.xml (use the default supplied)... In httpd.conf put something like: WebAppConnection ... WebAppDeploy ... As described by INSTALL.txt coming with every WebApp module distribution. Pier
Re: Using mod_webapp 0.5
Paul Andreas Petershagen [EMAIL PROTECTED] wrote: Hi, I tried mod_webapp 0.5 with Tomcat 4 because I'm waiting for the release of the mod_webapp binaries in the Tomcat 4 download directory. There is not such thing as mod_webapp 0.5.. I got this error message from Apache: Invalid command 'WebAppDeploy', perhaps mis-spelled or defined by a module not included in the server configuration after this configuration line: WebAppConnection _INFO_ info WebAppDeploy _INFO_ _INFO_ /tomcat/ This can't be ok, can it? Should I wait for the release of mod_webapp or can I use mod_jk with Tomcat 4 although the documentation never mentioned it. The module was not loaded by Apache... Read the INSTALL.txt coming with the WebApp module. Pier
Re: Building mod_webapp using APR.
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, As per documentation of Tomcat4, I tried to build mod_webapp from APR sources available at http://apr.apache.org but it is not generating the required mod_webapp module in apache. Will anybody have any exprience to build mod_webapp.so using APR? I am deaparately waiting for this issue on board. Please help me. APR is _required_ for any mod_webapp installation... Follow the README.txt if you want to build it on your own, or use the binaries on the website. Pier
Re: help with mod_webapp cvs checkout
tom cat [EMAIL PROTECTED] wrote: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0 Binary and source distributions of the mod_webapp connector will be posted on Wednesday, September 19, 2001, for a variety of platforms. If you wish to build the connector in the mean time, please download the jakarta-tomcat-connectors CVS repository, and follow the build instructions in the README.txt file of the webapp subdirectory. It's been awhile since I used cvs. I did the following per the README.txt: cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login CVS password: anoncvs cvs login: failed to open ~/.cvspass for reading: No such file or directory cvs [login aborted]: fatal error: exiting Now what? Thanks in advance for your help. This is a problem on your client... Be sure to remove the .cvspass file in your home directory Pier
Re: Solution to mod_webapp.so:undefined symbol: pthread_sigmaskon Red Hat Linux 7.1
Janek Bogucki [EMAIL PROTECTED] wrote: Hi, I may have solved (or at least worked around) the the missing 'pthread_sigmask' symbol error encountered when trying to use mod_webapp.so. From the mailing list it appears to affect this configuration: 1. Red Hat Linux 7.1 2. Apache 1.3.x 3. httpd.conf will have these lines in it: LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c The symptom is this: [root@bogucki bin]# ./apachectl start Syntax error on line 241 of /opt/apache/conf/httpd.conf: Cannot load /opt/apache/libexec/mod_webapp.so into server: /opt/apache/libexec/mod_webapp.so: undefined symbol: pthread_sigmask ./apachectl start: httpd could not be started [root@bogucki bin]# The solution is: [root@bogucki bin]# export LD_PRELOAD=/lib/i686/libpthread-0.9.so [root@bogucki bin]# ./apachectl start ./apachectl start: httpd started [root@bogucki bin]# I am cautious in my proposal of this as the 'solution' as I'm unaware of any ill side-effects this may have. I have not yet tested mod_webapp.so now that finally I have httpd up with mod_webapp.so. I'm saving that for later :-) It might be useful if I describe the path I took to get to this solution: Step 1. I located all libpthread.so's on my system: [root@bogucki conf]# locate libpthread.so /usr/lib/libpthread.so /lib/i686/libpthread.so.0 /lib/libpthread.so.0 [root@bogucki conf]# These are symbolic links pointing to these libraries: /lib/i686/libpthread-0.9.so /lib/libpthread-0.9.so Step 2. I listed the symbols in each, looking for 'pthread_sigmask': [root@bogucki conf]# nm /lib/libpthread-0.9.so nm: /lib/libpthread-0.9.so: no symbols [root@bogucki conf]# [root@bogucki conf]# nm /lib/i686/libpthread-0.9.so |wc 5011409 15588 [root@bogucki conf]# nm /lib/i686/libpthread-0.9.so |grep sigmask 9640 T pthread_sigmask [root@bogucki conf]# (Why would a library not have any symbols? Anyone know?) Step 3. I forced the preloading of the library with symbols in via LD_PRELOAD and httpd started and served out on http://127.0.0.1 okay. I would be interested to hear if this works for anyone else and if any weirdnesses can be expected as a result of this workaround. AFAIK, this has been fixed a looong time ago, if you download the latest webapp module sources (the one coming with Tomcat 4.0 final) it should be more than fine (I tried it myself on RH71)
Re: New To Java - Cant't get Database Insert to work
Right now, I have tried Microsofts own example of the SQL statement which does not differ much from my original statement it is in the form INSERT INTO Employees (FirstName,LastName, Title) VALUES ('Harry', 'Washington', 'Trainee'); However, I do not have a SQL client at home to test directly. Can you recomend one? I will look to see if Toad is available for download etc.. Thanks, Brian
per-context RequestInterceptor?
Hello, Probably this question is already discussed here, but i can't get no faq =( Is there a way to setup context dependent RequestInterceptor? I need to set different auth info DB tables for different contexts. Could you please advise how to do that? Thanks! -- WEB SPACE STATION Web Design and Software Development E-mail: [EMAIL PROTECTED] http://www.web-space-station.com
Re: New To Java - Cant't get Database Insert to work
Hi Dim, Thanks for your help. The problem is resolved. The error was caused because I apparently used a reserved word as a colum name in the database. In the original Servlet I was using the statement: INSERT INTO LINKS (VALUE, NAVIGATION_TEXT) VALUES ('George', 'Washington'); Apparently using 'VALUE' as a colum name in the database is mistake. The successfull insert statement is: INSERT INTO LINKS (NAV_VALUE, NAVIGATION_TEXT) VALUES ('George', 'Washington'); Thanks Again, Brian
Re: SSL Connection problem through jsp
I think I've seen this problem when trying to use ldaps with JNDI. I found that you still have to use ldap, not, ldaps. Then, you tell it to use the SSL port. In the case of LDAPS, it's 636. For HTTPS, it's 443. I think if you leave the s off the end it will probably work. At least that's the way it works with JNDI. Jon - Original Message - From: Lomesh Contractor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 4:54 AM Subject: SSL Connection problem through jsp Hi , I am facing one very strange problem for SSL connectivity from JSP page. I have one java application( one class file ) that make SSL connection to any secure server, if I run that application independently. But,when i use the same class file from my JSP page, to make SSL connection to other server, it shows, MalFormedURLConnection exception https unknown protocol. Well, the JSP file compiles successfully. This error occurres only at run time. I have included all the required jar files in the classpath. The same url is working fine, if i run it at java application.. ANY IDEA... Regards, Lomesh.
Session timeout in Tomcat 4.0 off by 10 seconds?
I did some testing to make sure that my sessions were getting timed out correctly. It appears that it's working. However, it appears to be off by 10 seconds. Not a big deal at all, but, it's not what I expected. You can use the following application to test it. First you need to add the following to your web.xml, or, you can call setMaxInactiveInterval() to do it within the application. session-config session-timeout1/session-timeout /session-config To test it, access the servlet via a Web browser. Then, add a session variable such as name1, value1 and then click Submit. Look at the Current Time value. Then, bring up the clock on your computer. Attempt to Submit the form again, at say 1 to 5 seconds after what was displayed on the Current Time. If you do, you're session won't be expired. I found that you have to wait around 10 seconds afterward. Also, the Last Accessed Time, threw me off a little. That time is the time that the last request was made. Initially, I thought it would have been the current time in this application. Since, I just called getSession(). import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class SessionServlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { resp.setContentType(text/html); PrintWriter pw = resp.getWriter(); HttpSession hs = req.getSession(); if(req.getParameter(name) != null ! req.getParameter(name).equals()) { hs.setAttribute(req.getParameter(name), req.getParameter(value)); } pw.println(htmlheadtitleSessionServlet/title/headbody); pw.println(form action= + resp.encodeURL(/servlet/SessionServlet) + method=get); pw.println(pNew Session: + hs.isNew() + /p); pw.println(pSession Id: + hs.getId() + /p); pw.println(pSession Creation Time: + new Date(hs.getCreationTime()) + /p); pw.println(pSession Last Accessed Time: + new Date(hs.getLastAccessedTime()) + /p); pw.println(pCurrent Time: + new Date() + /p); pw.println(pSession Maximum Inactive Time: + hs.getMaxInactiveInterval() + seconds/p); pw.println(pSession from Cookie: + req.isRequestedSessionIdFromCookie() + /p); pw.println(pSession from URL: + req.isRequestedSessionIdFromURL() + /p); Enumeration e = hs.getAttributeNames(); pw.println(pSession Objects:/p); while(e.hasMoreElements() == true) { String name = (String)e.nextElement(); String value = (String)hs.getAttribute(name); pw.println(p + name + = + value + /p); } pw.println(pName: input maxLength=32 name=name size=24/p); pw.println(pValue: input maxLength=32 name=value size=24/p); pw.println(pinput name=submit type=submit value=Submit/p); pw.println(/form); pw.println(/body/html); pw.close(); } catch(Exception e) { System.out.println(e); } } }
Separating back-end process from JSP display
Hey folks, I have a fairly resource- and time-intensive back-end function that I want to kick-start using a JSP page. Basically, it works like this. -- user hits a button -- an application javabean goes and gets a resultset of email addresses from a database -- for each row, said bean constructs an email message, connects with a SMTP server to send the message, then inserts a row into a database table confirming the send (currently being done in a scriptlet, not a bean, but will be done by a bean in the near future) Trouble is, that third step can take some time depending on the size of the email address resultset and the health of the SMTP server and the JSP page the initiates the action insists on finishing that step before displaying the confirmation page to the user. Or, if the user navigates to another page before that step is complete, the JSP stops running the for loop. Will the for loop keep running after the user changes pages if it is in a bean instead of a scriptlet? Thanks in advance for the help! -- Marc
Re: Tomcat Spontaneously Restarting System
My bet is that the problem has nothing to do with Tomcat and has to do with an interaction between the firewall and the OS. I would check to see what Windows Updates are installed on the machines. Also, check the versioning on the firewall software. My guess is that it isn't a hardware problem if it is on multiple machines. My guess is that the software patch levels and versions are probably different on the working and non-working systems. Note, 3rd party firewall products many times fail everytime Microsoft comes out with updates/Service Packs. These products most likely install low-level drivers which are running in kernel mode. Hence, when a bug occurs, it crashes the whole OS which causes the system to reboot. Jon - Original Message - From: C. Schlegelmilch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:03 AM Subject: Re: Tomcat Spontaneously Restarting System Hmm...interesting I'll try this and see what happens. As for the chipset and motherboard, I have no clue (I know its a PII), but by the shear fact its in a computer lab in a public institution, you have to wonder about its qualitiy. I still find it odd that turning off the personal firewall software fixes the problem on all but two of the twenty machines. I have absolutely no idea why these two machines won't stop. Craig --- Gustavo Saramago [EMAIL PROTECTED] wrote: Windows 2000 restarts by default on system failure. You can change this option in System/Properties, Advanced tab and uncheck the fourth checkbox (Automatic Restart). Unchecking this option, you wil get the usual NT blue screen, that can give you more information about the problem. I had a motherboard (ASUS P3C2000) based on a Intel 820 chipset that boots win2k at least once a day. I agree that sounds like a hardware or other problem. What motherboard and chipset are you using? - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 10:25 AM Subject: Re: Tomcat Spontaneously Restarting System I concur, sounds like a hardware or other problem. Jon - Original Message - From: Matt Hudson [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 6:56 AM Subject: Re: Tomcat Spontaneously Restarting System I've had flaky hardware before, so I know how frustrating that can be. Also, I'm running around 4 instances of Tomcat on various machines that behave just fine. The JVM process runs as Administrator or 'nobody' depending on which OS, and I've never seen it misbehave like that. Given spontaneous restarts, I'd run a comprehensive memory tester, and the one built into BIOS doesn't count. Failing that, you may need to visit your local hardware guru(tm). -matt On Wed, Sep 19, 2001 at 09:36:58PM +0100, C. Schlegelmilch wrote: Thanks Chris, I thought the class was doing something odd, but it has happened to me from time-to-time without warning. I must admit to not having seen stuff like this before, although this is the first time using win2k. I'm pretty sure the problem lies in a conflict with some software on the lab machines. It could be anything... Craig --- Curtis Dougherty [EMAIL PROTECTED] wrote: I suspect your class... They may be trying to trick you into lower the protection around the class computers in an attempt to gain unauthorized access. I have never seen TOMCAT spontansouly do anything that couldn't be tracked back to humna error. my-2-cents cd -Original Message- From: C. Schlegelmilch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: Tomcat Spontaneously Restarting System Hello all, I'm teaching a web development class and have the class develop their apps with Tomcat v3.2.3 Stand-alone on win2k and have been having problems with it restarting the odd system with the first request to localhost:8080 after startup (I've had the same problem with 4.0b7 as well). There have been no problems with running on win98. I've shutdown all personal firewall software as well as any anti-virus software running in the background. This seems to reduce the frequency of these spontaneous restarts but it still seems to happen on the odd machine. Has anybody else had this problem? I'm hoping there is an obvious solution that I've been too oblivious to see. Thanks, Craig
Re: importing an existing certificate
It's not that simple because you need to import the private key as well. I'm in the same situation, except that I'm importing from Apache Web Server to Tomcat in standalone mode. I posted this question a few days ago and someone told me about the following link which has a program that is supposed to be able to import the private key. I haven't had a chance to test it yet. http://www.comu.de/docs/tomcat_ssl.htm I'm pretty sure that the program mainly just makes use of the key store API provided by the JDK. Although it should, keytool itself doesn't expose such functionality as far as I know. Jon - Original Message - From: jean-frederic clere [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 7:23 AM Subject: Re: importing an existing certificate [EMAIL PROTECTED] wrote: Hello all, I'm in the process of migrating an application from Lotus Domino to Tomcat 4.0. The new application will reside on the same server as the old application. We have recently renewed our certificate with Verisign; the original request was generated by Domino. I would like to use the same certificate for Tomcat. Is this even possible? I've been unable to find any information in the keytool documentation for importing a certificate that keytool did not itself request. keytool -import Thanks, Marty Martin Lamb ROI Computer Services, Inc. 610-873-0300
Re: importing an existing certificate
Actually, if this works, and if keytool doesn't allow you to do this, it might not be a bad idea if a utility were included with Tomcat that allowed you to migrate your certificate from Apache Web Server to Tomcat standalone. Over time, I suspect that many users may want to do this. Jon - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, September 23, 2001 12:22 PM Subject: Re: importing an existing certificate It's not that simple because you need to import the private key as well. I'm in the same situation, except that I'm importing from Apache Web Server to Tomcat in standalone mode. I posted this question a few days ago and someone told me about the following link which has a program that is supposed to be able to import the private key. I haven't had a chance to test it yet. http://www.comu.de/docs/tomcat_ssl.htm I'm pretty sure that the program mainly just makes use of the key store API provided by the JDK. Although it should, keytool itself doesn't expose such functionality as far as I know. Jon - Original Message - From: jean-frederic clere [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 7:23 AM Subject: Re: importing an existing certificate [EMAIL PROTECTED] wrote: Hello all, I'm in the process of migrating an application from Lotus Domino to Tomcat 4.0. The new application will reside on the same server as the old application. We have recently renewed our certificate with Verisign; the original request was generated by Domino. I would like to use the same certificate for Tomcat. Is this even possible? I've been unable to find any information in the keytool documentation for importing a certificate that keytool did not itself request. keytool -import Thanks, Marty Martin Lamb ROI Computer Services, Inc. 610-873-0300
stdint.h not found when compiling apr in webapp 1.0 (tc4.0)
I'm doing ./configure then make --with-apxs and I can't avoid a compile error in the APR. Following is the output when I try compiling the apr dir in the source distro. I'm running FreeBSD 4.4 on Intel. Tomcat 4.0 is running fine, as well as JDK 1.3.1_01. Any help is much appreciated, Output after ./configure; make Making all in strings /bin/sh /usr/home/gcom/webapp-module-1.0-tc40/apr/libtool --silent --mode=compile cc -g -O2 -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -I../include -I../ include/arch/unix -c apr_cpystrn.c touch apr_cpystrn.lo In file included from apr_cpystrn.c:55: ../include/apr.h:132: stdint.h: No such file or directory *** Error code 1 Stop in /usr/home/gcom/webapp-module-1.0-tc40/apr/strings. *** Error code 1 Stop in /usr/home/gcom/webapp-module-1.0-tc40/apr/strings. *** Error code 1 Stop in /usr/home/gcom/webapp-module-1.0-tc40/apr.
tomcat 4 standalone virtual host
Is it possible to manage virtual hosts with tomcat 4 standalone ? When I start Tomcat, I get in catalina out : Starting service Tomcat-Standalone Apache tomcat/4.0 java.lang.NullPointerException at org.apache.catalina.startup.HostConfig.deployApps(Unknown Source) ... If I start Tomcat without the virtual host, I get Starting service Tomcat-Standalone Apache tomcat/4.0 Starting service Tomcat-Apache Apache tomcat/4.0 Using Tomcat 3.2 and Apache 1.3.19, I had no trouble managing this virtual host And trying to compile mod_webapp, after ./configure I get : APR buildconf : autoconf not found (Linux MDK 7.2 with kernel 2.4.9) Dom
RE: per-context RequestInterceptor?
Upgrade to TC 3.3 or TC4.0.. Saludos , Ignacio J. Ortega -Mensaje original- De: Artiom Morozov [mailto:[EMAIL PROTECTED]] Enviado el: domingo 23 de septiembre de 2001 15:56 Para: [EMAIL PROTECTED] Asunto: per-context RequestInterceptor? Hello, Probably this question is already discussed here, but i can't get no faq =( Is there a way to setup context dependent RequestInterceptor? I need to set different auth info DB tables for different contexts. Could you please advise how to do that? Thanks! -- WEB SPACE STATION Web Design and Software Development E-mail: [EMAIL PROTECTED] http://www.web-space-station.com
TC4 and Send Error
I have installed TC4 and have it working. I am moving an app that worked fine under TC3.3. My problem is that when I call: res.setHeader(WWW-Authenticate, BASIC realm=\ + domain +\); rese.sendError(res.SC_UNAUTHORIZED); in my servlet the authenticate header is stripped from the result. (examples follow) This occurs whether I make the request through IIS (actually PWS) or to TC directly via port 8080 Integrating a realm based authentication mechanism is not an option at this time. From TC3 the returned stream is: http://supportstage/eda/support/kb/kbsearch.htm HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/4.0 Date: Sun, 23 Sep 2001 20:07:28 GMT WWW-Authenticate: BASIC realm=EDACustomer Content-Type: text/html Content-Length: 159 Set-Cookie: JSESSIONID=p89g15em81;Path=/eda Servlet-Engine: Tomcat Web Server/3.3 Beta 1 ( JSP 1.1; Servlet 2.2 ) headtitleError: 401/title/head body h1Error: 401/h1 h2Location: /eda/support/kb/kbsearch.htm/h2 bNo detailed message/bbr /body from TC4 (v 4.0) the returned stream is: http://localhost/eda/support/kb/kbsearch.htm HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/4.0 Date: Sun, 23 Sep 2001 20:08:54 GMT Connection: close Content-Type: text/html Set-Cookie: JSESSIONID=D204B543F210B2E196B391E918A04664;Path=/eda html head titleTomcat Error Report/title /head body bgcolor=white brbr h1HTTP Status 401 - Unauthorized/h1 This request requires HTTP authentication (Unauthorized). /body /html ^^^ Brett KnightsTanner Research, Inc. MIS Analyst 2650 E. Foothill Blvd. [EMAIL PROTECTED] Pasadena, CA 91107 voice 626-432-5767 fax 626-792-0300 ^^^
RE: TC4 and Send Error
The spec seems to be somewhat ambiguous (at least the bits I have read so far) on this issue. It is quite explicit however that in the case of res.sendError(res.SC_UNAUTHORIZED, message); any headers set so far should be preserved. I tried this with no different result. -Original Message- From: Brett Knights [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 23, 2001 1:22 PM To: '[EMAIL PROTECTED]' Subject: TC4 and Send Error I have installed TC4 and have it working. I am moving an app that worked fine under TC3.3. My problem is that when I call: res.setHeader(WWW-Authenticate, BASIC realm=\ + domain +\); rese.sendError(res.SC_UNAUTHORIZED); in my servlet the authenticate header is stripped from the result. (examples follow) This occurs whether I make the request through IIS (actually PWS) or to TC directly via port 8080 Integrating a realm based authentication mechanism is not an option at this time. From TC3 the returned stream is: http://supportstage/eda/support/kb/kbsearch.htm HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/4.0 Date: Sun, 23 Sep 2001 20:07:28 GMT WWW-Authenticate: BASIC realm=EDACustomer Content-Type: text/html Content-Length: 159 Set-Cookie: JSESSIONID=p89g15em81;Path=/eda Servlet-Engine: Tomcat Web Server/3.3 Beta 1 ( JSP 1.1; Servlet 2.2 ) headtitleError: 401/title/head body h1Error: 401/h1 h2Location: /eda/support/kb/kbsearch.htm/h2 bNo detailed message/bbr /body from TC4 (v 4.0) the returned stream is: http://localhost/eda/support/kb/kbsearch.htm HTTP/1.1 401 Unauthorized Server: Microsoft-IIS/4.0 Date: Sun, 23 Sep 2001 20:08:54 GMT Connection: close Content-Type: text/html Set-Cookie: JSESSIONID=D204B543F210B2E196B391E918A04664;Path=/eda html head titleTomcat Error Report/title /head body bgcolor=white brbr h1HTTP Status 401 - Unauthorized/h1 This request requires HTTP authentication (Unauthorized). /body /html ^^^ Brett KnightsTanner Research, Inc. MIS Analyst 2650 E. Foothill Blvd. [EMAIL PROTECTED] Pasadena, CA 91107 voice 626-432-5767 fax 626-792-0300 ^^^
Re: error using application under Tomcat 4.0
Hi , thanks for your reply. I'm sending you the source of the servlet , maybe you can see what's causing the error? (The application runs well under Tomcat 3.2) -- cut --- package org.apache.jsp; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; import org.apache.jasper.runtime.*; public class errorpage$jsp extends HttpJspBase { static { } public errorpage$jsp( ) { } private static boolean _jspx_inited = false; public final void _jspx_init() throws org.apache.jasper.runtime.JspException { } public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; PageContext pageContext = null; HttpSession session = null; Throwable exception = (Throwable) request.getAttribute (javax.servlet.jsp.jspException); ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; String _value = null; try { if (_jspx_inited == false) { synchronized (this) { if (_jspx_inited == false) { _jspx_init(); _jspx_inited = true; } } } _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType(text/html); pageContext = _jspxFactory.getPageContext(this, request, response, , true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); // HTML // begin [file=/lynx/de/errorpage.jsp;from=(0,51);to =(1,0)] out.write(\r\n); // end // HTML // begin [file=/lynx/de/errorpage.jsp;from=(1,30);to =(4,7)] out.write(\r\nhtml\r\nbody bgcolor=\white\\r\nError: ); // end // begin [file=/lynx/de/errorpage.jsp;from=(4,10);to=(4,33)] out.print(exception.getMessage() ); // end // HTML // begin [file=/lynx/de/errorpage.jsp;from=(4,35);to =(7,0)] out.write(\r\n/body\r\n/html\r\n); // end } catch (Throwable t) { if (out != null out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } } } -- cut --- Regards Michael Brohl Craig R. McClanahan To: [EMAIL PROTECTED] craigmcc@apac cc: he.org Subject: Re: error using application under Tomcat 4.0 Sent by: craigmcc@lynx .de 18.09.2001 18:58 Please respond to tomcat-user The problem is happening at line 63 of the generated servlet for your errorpage.jsp page. It would be useful to look at that file (under the work directory) to see what is really going on. Craig
win32 build of mod_webapp?
hello, everyone.. i've decided to start evaluating tomcat / apache for production use under win2k. i've managed to get both running on my box with one exception - i'm unable to find a binary version of mod_webapp for win32. i've found what i believe is the linux and macosx versions of mod_webapp here... http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0/bin/ but a win32 version is not present. is this the location where it would be posted? i don't have access to vcc++ but would like to connect tomcat with apache 3.1.x. thanks, ~scott
Re: Tomcat 4 and session persistance ...
Dunno. I just noticed the same thing. The howto document is in b7, but not in rc1, or the release version of 4.0. Jon - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 8:57 AM Subject: Tomcat 4 and session persistance ... A little while ago I looked at the tomcat 4 docs and there was a howto on how to store the sessions and persistance failover etc etc link http://jakarta.apache.org/tomcat/tomcat-4.0-doc/JDBCStore-howto.html What happened to it ? Thanks David
Re: 4.0 RPMs: when
What's wrong with the .zip file? Jon - Original Message - From: Sergey V. Udaltsov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 22, 2001 12:05 PM Subject: Re: 4.0 RPMs: when Hi We still have problems with related jars, like jdbc2.0ext, jta, jmx, ldap which are copyrigthed by Sun and so couldn't be included in RPM I see. But if you cannot include these jars - you're always able to include them into dependancies... What's wrong with this solution? Regards, Sergey
Re: Get Friggin Verisign Working on Tomcat 4.0 Standalone How To - The Official Thread
If you haven't already done this, you might want to check out the keytool documentation that comes with the JDK. The Examples section pretty much explains how to do it. The next thing you need to do is a -import when you get back the signed certificate from Verisign. http://java.sun.com/j2se/1.4/docs/tooldocs/win32/keytool.html Jon - Original Message - From: Nick Torenvliet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:33 AM Subject: Get Friggin Verisign Working on Tomcat 4.0 Standalone How To - The Official Thread Hi guys I''ve been searching through various sources like the list archives, responses(thanks) to my previous posts and I've got two things to offer. First the observation that a lot of us are struggling with getting third party services like verisign to work on tomcat standalone. Second I can give what I have so far which I believe is useful, I hope someone can move this subject to the next level for us. I'm running tomcat4.0 and jdk1.4(which includes the JSSE). At this point I have certificates and https running on my lan. The pretty little lock shows up on IE6 whenever one of my pcs requests tomcat to serve up some html. I got to this point by following the instructions at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html word for word. I found how to generate a CSR which was stumping a bunch of us, it was in a SAMS book on J2 I bought a while back from a bargain table(to think my wife thought it was useless), the command is keytool -certreq -keystore /root/.keystore -alias tomcat -file mycsr This command uses the keystore I created by following the the ssl how to in /root/.keystore, and the alias I used (again from the ssl how to)being tomcat and saves that highly coveted csr that you can send to verisign in the file mycsr. I almost cried when I saw the csr, it was just like on versign's website sob sob. Anyways I am going to send off my csr now, and anyone who would like to finish this get friggin verisign working howto please do so I can go home on time tonight. Love ya all Nick
Re: i´m in a muddle
I think you're supposed to use mod_webapp with Tomcat 4. I think that's the Tomcat 4 equivalent of mod_jk. I think the source for it was just recently released. It came out a little later than the release version of Tomcat 4.0 itself. Jon - Original Message - From: Jaime Garcia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 10:58 AM Subject: i´m in a muddle Hi, Can I use mod_jk.so to make that Apache 1.3 and Tomcat 4 work together?? Thanks
Error building mod_webapp: dyld.h not found
Hello, I can't seem to get mod_webapp to make correctly. My system is RedHat Linux 7.1 and I have successfully run configure, but get an error when I try to make: In file included from dso.c:55: ../../include/arch/unix/dso.h:67:25: mach-o/dyld.h: No such file or directory now, I realize that dyld.h is for MacOS X, and that the configure script probably shouldn't be saying: APR configure: checking for mach-o/dyld.h... (cached) yes i tried deleting the config.cache, and that didn't seem to do it. I searched the groups, mailing lists, etc with no luck. I suspect i somehow need to tell my system that it indeed does NOT have dyld.h --- but how do i do this? or is there a workaround to get mod_webapp to build? thank you ___ http://inbox.excite.com
Re: tomcat 4 (final) quits without notice
Are there errors in the logs? Jon - Original Message - From: pero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 1:54 PM Subject: tomcat 4 (final) quits without notice Hi there, After months of developing with tomcat 4 (yes, I was there from the very first beta :-) I always considered tomcat to run in the production environment, too. While it is working fine on my staging-server (Suse Linux 7.2, Sun's 1.3.1 JDK) it stops after a random amount of time on my production server, which is also Suse Linux 7.2. According to the last discussions on the mailinglists I started using different VMs (Sun's 1.3.0, 1.3.1 and 1.4.0 Beta 2) but the result was the same. Now I'm on my last try with IBM's 1.3-9.0 (which I did not intend to use...) If that doesn't work either - I got a very serious problem, because the project I am working on is going to go final very soon. In another project (my band's homepage) I use tomcat 3.1 since january and all works fine... It works under Suse 6.2 and Sun's 1.3.0. Are there others facing the die-problem? pero
Re: Has anyone configured tomcat 4.0 with IIS???
Have a look at $CATALINA_HOME/conf/server.xml. That's where all the settings are such as what ports it listens on. Jon - Original Message - From: Tia Haenni [EMAIL PROTECTED] To: Tomcat Mailing List [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 7:34 PM Subject: Has anyone configured tomcat 4.0 with IIS??? I have installed the .exe version of tomcat 4.0. It went well, other than IIS and tomcat don't seem to be communicating. Tomcat is not listening on port 8007 as in older versions. I can only access tomcat by including port 8080 in the url, such as http://locvalhost:8080/examples Please PLEASE help if you can. Thanks!!
Re: Error building mod_webapp: dyld.h not found
On Sunday 23 September 2001 05:54 pm, [EMAIL PROTECTED] wrote: Can you see if your platform actually has a copy of mach-o/dyld.h in /usr/include or /usr/local/include In the meantime, if you do the following, everything should work: edit apr/include/arch/unix/apr_private.h search for DYLD. Whenever you find it, just comment out that line. Ryan Hello, I can't seem to get mod_webapp to make correctly. My system is RedHat Linux 7.1 and I have successfully run configure, but get an error when I try to make: In file included from dso.c:55: ../../include/arch/unix/dso.h:67:25: mach-o/dyld.h: No such file or directory now, I realize that dyld.h is for MacOS X, and that the configure script probably shouldn't be saying: APR configure: checking for mach-o/dyld.h... (cached) yes i tried deleting the config.cache, and that didn't seem to do it. I searched the groups, mailing lists, etc with no luck. I suspect i somehow need to tell my system that it indeed does NOT have dyld.h --- but how do i do this? or is there a workaround to get mod_webapp to build? thank you ___ http://inbox.excite.com -- __ Ryan Bloom [EMAIL PROTECTED] Covalent Technologies [EMAIL PROTECTED] --
Re: login question
On Sat, Sep 22, 2001 at 10:55:04PM -0700, Charles Webber wrote: There should be a file in the conf directory called tomcat-users.xml where you can specify your admin name and password. do it like this user name=admin password=password roles=admin / Or if it's Tomcat 4.0, the role should be manager instead of admin. --Jeff - Original Message - From: Huaxin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 22, 2000 8:58 PM Subject: login question In the example of webapp/admin, the Tomcat Administration Tools asked me for username and password everytime. What value should i type in? I looked at the source code and find no where this thing is specified. I think it is a Realm thing, but still don't know where to start from. Would any one point the file that contain the username/password for me? thanx a lot
Please help: Method getParameterMap() not found
How can I solve this build error? RH 7.0, jdk1.3.1_01, Tomcat 4.0 obviously I'm using this servlet.jar 76877 Sep 18 12:57 /usr/local/jakarta-servletapi-4/lib/servlet.jar # ant dist ... build-main: [javac] Compiling 4 source files to /usr/local/jakarta-tomcat-4.0-src/catalina/build/classes [javac] Compiling 8 source files to /usr/local/jakarta-tomcat-4.0-src/catalina/build/classes [javac] /usr/local/jakarta-tomcat-4.0-src/catalina/src/share/org/apache/catalina/authenticator/FormAuthenticator.java:418: Method getParameterMap() not found in interface javax.servlet.http.HttpServletRequest. [javac] Map parameters = hreq.getParameterMap(); [javac] ^ .. [javac] /usr/local/jakarta-tomcat-4.0-src/catalina/src/share/org/apache/cata lina/session/StandardSessionFacade.java:151: Method getServletContext() not found in interface javax.servlet.http.HttpSession. [javac] return session.getServletContext(); [javac] ^ [javac] Note: 4 files use or override a deprecated API. Recompile with -deprecation for details. [javac] 11 errors, 1 warning I turned compile.deprecation=on in build.properties but it doesn't change the error message. _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Help wanted
Hi all, Tomcat version 3.2.2 installed on Unix machine is crashing without writing anything in the log files. Can anybody help me. Thanks Chandra
[TC4] TC4 + IIS!
Hi All, Configuring TC4 and IIS on Win2k is not yet available. I have managed to download and TC4 for win32 and succesfuly installed in my machine. Could anyone direct me as how to go about this. Any help appricated. Regards Moin.
ConcurrentModificationException
Hello, I've switched my applicatin from TOMCAT 3.2.3 to 4.0 and get now this error ConcurrentModificationException. What is the problem ? Best regards Walter Weinmann = Code String lvSessionVariable = ; Enumeration lvSessionVariablen = session.getAttributeNames(); while (lvSessionVariablen.hasMoreElements()) { lvSessionVariable = (String) lvSessionVariablen.nextElement(); session.removeAttribute(lvSessionVariable); } = Exception java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.next(HashMap.java:736) at org.apache.catalina.util.Enumerator.nextElement(Unknown Source) at org.apache.jsp.bsLogin$jsp._jspService(bsLogin$jsp.java:182) at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source) at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source) at org.apache.jasper.servlet.JspServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source) at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardContext.invoke(Unknown Source) at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source) at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source) at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source) at org.apache.catalina.core.ContainerBase.invoke(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source) at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source) at java.lang.Thread.run(Thread.java:484)
MyClass.getPackage() == null... Why?
Hi. I have one jars file in /WEB-INF/lib/test.jar test.jar contains com.MyClass class. I try below code in test.jsp. %page import=com.* % ... % if ( null == MyClass.class.getPackage() ) { out.println( NULL ); } else { out.println( MyClass.class.getPackage() ); } But classes in /WEB-INF/classes's getPackage() is not null. Why? I try with resin. resin 2.0.2 occure same problem. It's servlet spec? PS. sorry for ugly English. ;-)
Re: importing an existing certificate
You can import openssl certificates with no problems !!! See at ... http://www.comu.de/docs/tomcat_ssl.htm Ricardo Borillo Domenech Programació - Servei d'Informàtica Universitat Jaume I - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, September 23, 2001 7:29 PM Subject: Re: importing an existing certificate Actually, if this works, and if keytool doesn't allow you to do this, it might not be a bad idea if a utility were included with Tomcat that allowed you to migrate your certificate from Apache Web Server to Tomcat standalone. Over time, I suspect that many users may want to do this. Jon - Original Message - From: Jonathan Eric Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, September 23, 2001 12:22 PM Subject: Re: importing an existing certificate It's not that simple because you need to import the private key as well. I'm in the same situation, except that I'm importing from Apache Web Server to Tomcat in standalone mode. I posted this question a few days ago and someone told me about the following link which has a program that is supposed to be able to import the private key. I haven't had a chance to test it yet. http://www.comu.de/docs/tomcat_ssl.htm I'm pretty sure that the program mainly just makes use of the key store API provided by the JDK. Although it should, keytool itself doesn't expose such functionality as far as I know. Jon - Original Message - From: jean-frederic clere [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 21, 2001 7:23 AM Subject: Re: importing an existing certificate [EMAIL PROTECTED] wrote: Hello all, I'm in the process of migrating an application from Lotus Domino to Tomcat 4.0. The new application will reside on the same server as the old application. We have recently renewed our certificate with Verisign; the original request was generated by Domino. I would like to use the same certificate for Tomcat. Is this even possible? I've been unable to find any information in the keytool documentation for importing a certificate that keytool did not itself request. keytool -import Thanks, Marty Martin Lamb ROI Computer Services, Inc. 610-873-0300