Re: problem with Tomcat and Apache using mod_jk on RedHat 6.2
It seems to me that you haven't configured your Apache correctly. Instead of delegating JSP's Apache it is serving them directly. Look if you have configured mod_jk correctly in Apache, include mod_jk.conf-auto from the tomcat/conf dir into httpd.conf. Look in your Apache-Log. You should see a line like ...mod_jk configured regards Winfried Yuri Kouzmov schrieb: Hello, I'm having a problem getting Tomcat 3.2.1 working with Apache 1.3 (not sure which version beyond that) using mod_jk and AJP13 on RedHat 6.2. At first I was getting an error message about the mod_jk being garbled. I had to recompile it from the source and now I'm having another problem I can't figure out. While accessing examples through Apache (port 80) I get the source code of the JSP. It works fine when accessing them directly though Tomcat (port 8080). I set up apache to include a modified version of mod_jk.conf file generated by Tomcat to use AJP13. I didn't have this problem on Win32 or another box w/ default instalation of RedHat 6.2 and Apache 1.3.2. Thanx for any insight, Y. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
tomcat server takes all of my ip addresses?
Well, my tomcat is running Linux box with one networkcard, but it have 2 public ip-addresses (using ip aliasing). When I start tomcat, it takes both ip addresses to its use. How I configure tomcat to use only one ip address? Because I need to run apache on other ip address. -- Eero
RE: tomcat server takes all of my ip addresses?
What happens if you start Apache first? Is it not OK to have them running on different ports? -Original Message- From: Eero Volotinen [mailto:[EMAIL PROTECTED]] Sent: Monday, 14 May 2001 4:45 PM To: [EMAIL PROTECTED] Subject: tomcat server takes all of my ip addresses? Well, my tomcat is running Linux box with one networkcard, but it have 2 public ip-addresses (using ip aliasing). When I start tomcat, it takes both ip addresses to its use. How I configure tomcat to use only one ip address? Because I need to run apache on other ip address. -- Eero
Re: problem with Tomcat and Apache using mod_jk on RedHat 6.2
That was actually the problem. Earlier today I had noticed that the person who was previously configuring Apache had included the mod_jk.conf file at the top of httpd.conf, rather than the bottom. Moving it down fixed the problem. For anyone else having problems on RedHat - you'll have to compile mod_jk.so yourself and be sure to include tomcat configuration at the bottom of httpd.conf. Y. From: Winfried Klum [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: problem with Tomcat and Apache using mod_jk on RedHat 6.2 Date: Mon, 14 May 2001 08:24:36 +0200 It seems to me that you haven't configured your Apache correctly. Instead of delegating JSP's Apache it is serving them directly. Look if you have configured mod_jk correctly in Apache, include mod_jk.conf-auto from the tomcat/conf dir into httpd.conf. Look in your Apache-Log. You should see a line like ...mod_jk configured regards Winfried Yuri Kouzmov schrieb: Hello, I'm having a problem getting Tomcat 3.2.1 working with Apache 1.3 (not sure which version beyond that) using mod_jk and AJP13 on RedHat 6.2. At first I was getting an error message about the mod_jk being garbled. I had to recompile it from the source and now I'm having another problem I can't figure out. While accessing examples through Apache (port 80) I get the source code of the JSP. It works fine when accessing them directly though Tomcat (port 8080). I set up apache to include a modified version of mod_jk.conf file generated by Tomcat to use AJP13. I didn't have this problem on Win32 or another box w/ default instalation of RedHat 6.2 and Apache 1.3.2. Thanx for any insight, Y. _ Get your FREE download of MSN Explorer at http://explorer.msn.com _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: tomcat server takes all of my ip addresses?
At 17:44 14.5.2001 +1000, you wrote: What happens if you start Apache first? Is it not OK to have them running on different ports? No, because I want that both run port 80, but in different ip addresses? Is this possible in same machine? -- Eero
j_security_check (Re-post)
Having received no response, I am re-posting my earlier message below. Could this be down to a configuration problem? Simon. -- From: Simon Ozturk[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: 04 May 2001 10:05 To: '[EMAIL PROTECTED]' Subject: j_security_check Hi guys, Using Tomcat 4.b1 and Tomcat 4.b3 I get the following strange behaviour which does not happen in Tomcat 3.2 : 1- User requests a bookmarked page which is protected : http://localhost/control/member/you/AddressBook 2- Login page is displayed, and user logs in (using FORM based authentication) 3- The requested page is displayed and the browsers address line shows http://localhost/j_security_check 4- Subsequently, relative links on the page become http://localhost/j_security_check/xyz instead of http://localhost/control/member/you/AddressBook/xyz Additionally, after logging in on the home page without using any bookmarks, I get the same behaviour with the address line http://localhost/j_security_check instead of http://localhost/index.jsp which is the welcome page. Can anyone help please? Many thanks in advance, Simon
RE: Posting multipart/form-data
If you are usinf 3.2 or 3.2.1 with Ajp13 there is a bug use Ajp12 for any multi-part -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bo Xu Sent: Friday, May 11, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Re: Posting multipart/form-data Frans Verhoef wrote: One good API for dealing with multipart/form-data is the com.oreilly.servlet package. http://www.servlets.com/cos/index.html I used it myself, and it works really great. And if you want to use it commercially, you just need to buy the book of oreilly. Frans On 10 May 2001, at 17:25, Brandon Cruz wrote: When I try to specify enctype=multipart/form-data, the page just goes blank and IE says that it can't find server. Anyone know why this might happen? Brandon [...] Hi :-) I also use multipart/form-data with Jason Hunter's API com.oreilly.servlet.MultipartRequest, in the client I use a HTML Form from his book: FORM ACTION=/servlet/UploadTest ENCTYPE=multipart/form-data METHOD=POST What is your name? INPUT TYPE=TEXT NAME=submitter BR Which file do you want to upload? INPUT TYPE=FILE NAME=file BR INPUT TYPE=SUBMIT /FORM now I have a question: now I want to upload a file to MyServlet from a Java Application(or a Java Applet), I guess I need to use (Http)URLConnection, but I don't know how to use it: - how to set ENCTYPE=multipart/form-data? - do I need to read the file into a byte[], then put this byte[] into (Http)URLConnection? where/how can I put? -... Thanks in advance! Bo may.11, 2001
Jsp reloading
hello, This should go to tomcat-developer but becausde i'm not in it so i dump this here. Tomcat has cool servlet reloading scheme. But because i'm also developer of jsp so i ask: is there plans to make same like functionality JSP page. JSP pages are parsed when they are changed but when classes behind JSP pages are changes during the rung i.e bug fixing, developing i have to stop server (takes about 0.30-5 min) and rerun it. This really sucks. Is this even possible. If it can someone tell me how. Or have i missed something. just thinking, Tuukka ps. i really like Tomcat 4.0 if some like to tell me how to manage out apache+tomcat (Session what are they??) in b3 :) (too rush to study right now) pss. i can even make this option if there is someone who can tell me basics of tomcat classloading. --- --Me olemme keskella jotain. jossa olemme totaalisen ulkopuolisia-- Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
auto reloading in tomcat
hi Can u briefly suggest me how the auto-reload feature works in tomcat 3.2.1 i have installed tomcat has plug-in to apache server. that does make a difference for auto-reload to work. The class files are not gettin refreshed. I have to stop/start the server again. Please mail me how the auto-reload feature works Kiran Kumar __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
oracle.jdbc.pool.OracleDataSource problem
Hi, how I can place oracle.jdbc.pool.OracleDataSourcein jdni context of my app? Which server.xml context config tags and deployment descriptor elements must be specified for use aka InitialContext.lookup( "java:comp/env/jdbc/MyDB") .getConnection()? And what's the difference between resource-ref/ and resource-env-ref? Regards.
Question from a newbee on deployment of war file
Hi ! I have my web application compiled in one file - exigen.war in some directory e.g C:/Andrew/exigen.war I`ve added context record to server.xml as it was described in documentation- Context path=/exigen docBase=c:/Andrew crossContext=true debug=0 reloadable=true trusted=false /Context But when i type in browser http://localhost:7001/exigen browser only show`s me a directory listing where exigen.war appears Have i forgot something ? Is something wrong with mapping ? Here goes web.xml from my.war too - web-app !--- i`ve added this to deploy exigen.war under Weblogic but i doubt it appears to be a reason of my problem //-- context-param param-nameweblogic.httpd.documentRoot/param-name param-value./ecf.root/param-value /context-param context-param param-nameweblogic.system.startupClass.ssfstarter/param-name param-valuecom.exigen.ssf.startup.weblogic.WeblogicSSFStarter/param-value /context-param context-param param-nameweblogic.system.startupArgs.ssfstarter/param-name param-valueconfig_file_name=ssfsystem.properties/param-value /context-param servlet servlet-name exigen /servlet-name servlet-class com.exigen.ssf.service.servlet.SSFServlet /servlet-class init-param param-nameSESSION:SSF_COMPANY/param-name param-valueALL/param-value /init-param init-param param-nameSESSION:SSF_LANGUAGE/param-name param-valueALL/param-value /init-param init-param param-nameSESSION:SSF_DEVICE/param-name param-valueHTML/param-value /init-param init-param param-nameSESSION:SSF_P13N_SCHEMA/param-name param-valuessf/param-value /init-param init-param param-nameSESSION:SSF_BP/param-name param-valueHomeBP/param-value /init-param /servlet servlet-mapping servlet-name exigen /servlet-name url-pattern / /url-pattern /servlet-mapping /web-app Thanx, George
How tomulti thread a servlet
Hi, I have migrated a TCP based server to a servlet and cannot figure out how to get multi-threading working. The TCP server works like this; Listen for Request: read command code from the accepted socket; find a free thread containing a slave server who can handle the command; hand the socket over to the freeserver and interrupt the thread (the slave server reads and writes to the handed-over socket) Listen for next request What happens when I put this into a servlet is this; doPost is invoked find a free thread containing a slave server who can handle the command; get inputstream (from request) and outputstream (from response) and hand these streamsover to a free server thread and interrupt the thread doPost finishes I think what happens next is that Tomcat completes the request cycle, including closing the socket( and associated request/response stream) thereby screwing over the slave thread still process the command code. I want Tomcat to leave these streams alone and be ready to invoke the servlet for the next request. Is there support for this kind of stuff in Tomcat? Thanks -Bob ** Privileged, confidential and/or copyright information may be contained in this e-mail. This e-mail is for the use only of the intended addressee. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, forward, disclose or otherwise use it or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you receive this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software. PKS Systems Integration (Ireland) Limited may monitor the content of e-mails sent and received via its network for the purposes of ensuring compliance with its policies and procedures. This message is subject to and does not create or vary any contractual relationship between PKS Systems Integration (Ireland) Limited and you. **
Re: Question from a newbee on deployment of war file
you put that .war file in webapps folder of the tomcat and restart the tomcat your application get deployed automaically cheers brahma [EMAIL PROTECTED] wrote: Hi ! I have my web application compiled in one file - exigen.war in some directory e.g C:/Andrew/exigen.war I`ve added context record to server.xml as it was described in documentation- Context path="/exigen" docBase="c:/Andrew" crossContext="true" debug="0" reloadable="true" trusted="false" > /Context> But when i type in browser http://localhost:7001/exigen browser only show`s me a directory listing where exigen.war appears Have i forgot something ? Is something wrong with mapping ? Here goes web.xml from my.war too - web-app> !--- i`ve added this to deploy exigen.war under Weblogic but i doubt it appears to be a reason of my problem //--> context-param> param-name>weblogic.httpd.documentRoot/param-name> param-value>./ecf.root/param-value> /context-param> context-param> param-name>weblogic.system.startupClass.ssfstarter/param-name> param-value>com.exigen.ssf.startup.weblogic.WeblogicSSFStarter/param-value> /context-param> context-param> param-name>weblogic.system.startupArgs.ssfstarter/param-name> param-value>config_file_name=ssfsystem.properties/param-value> /context-param> servlet> servlet-name> exigen /servlet-name> servlet-class> com.exigen.ssf.service.servlet.SSFServlet /servlet-class> init-param> param-name>SESSION:SSF_COMPANY/param-name> param-value>ALL/param-value> /init-param> init-param> param-name>SESSION:SSF_LANGUAGE/param-name> param-value>ALL/param-value> /init-param> init-param> param-name>SESSION:SSF_DEVICE/param-name> param-value>HTML/param-value> /init-param> init-param> param-name>SESSION:SSF_P13N_SCHEMA/param-name> param-value>ssf/param-value> /init-param> init-param> param-name>SESSION:SSF_BP/param-name> param-value>HomeBP/param-value> /init-param> /servlet> servlet-mapping> servlet-name> exigen /servlet-name> url-pattern> / /url-pattern> /servlet-mapping> /web-app> Thanx, George begin:vcard n:Gannur;Brahmanand tel;work:022-2044972 x-mozilla-html:FALSE org:Futureach India Pvt. Ltd.;Software adr:;;;Mumbai;;; version:2.1 email;internet:[EMAIL PROTECTED] title:Developer fn:Brahmanand G Gannur end:vcard
Re: encodeRedirectURL(url)) doesn't work
use java.net.encodeURL it works. - Original Message - From: Stephen Oakes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 3:16 PM Subject: RE: encodeRedirectURL(url)) doesn't work I am using response.sendRedirect(response.encodeRedirectURL(url)) in JSP. It doesn't work. Any idea? Are you sure it doesn't work? What do you think it is supposed to do? Perhaps you should look at the URLEncoder class. -- Stephen Oakes
RE: Configuration with IIS-Tomcat.
And just for everyone's enlightenment, here's why you have to restart the entire process: The redirector is implemented as a DLL. The configuration is loaded into the DLL on library load. When IIS restarts a single instance, it kills and restarts threads, but not any DLLs and not any heavy-weight processes. Therefore the configuration doesn't get reloaded (and new versions of the DLL doesn't get loaded, etc). Sometimes knowing the reason for the problem makes other things clearer. Randy -Original Message- From: Will Thien [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 12, 2001 1:55 AM To: [EMAIL PROTECTED] Subject: RE: Configuration with IIS-Tomcat. Thanks Mike I was having trouble also. Yours was my missing piece. Also, I have 3 web servers in my Win2K system. My IIS-redirector was installed in one server. I was stopping and restarting the single server, thinking it would reload the conf/uriworkermap.properties file. I had to bounce(restart) all IIS services on my server. Then it reloaded and it all worked. Thanks Will -Original Message- From: Mike Spisak [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 5:02 PM To: tomcat-user Subject: Re: Configuration with IIS-Tomcat. This what I did to get IIS5 on Win2K with Tomcat 3.2.1 to work for me: My server.xml file has lines that look like this: Context path=/ docBase=/Inetpub/wwwroot crossContext=false debug=0 reloadable=true /Context Note: there is no C:\ replaced by / Then I added this to my: conf/uriworkermap.properties file: /*.jsp=ajp12 #or other uri's /whatever/*.jsp=ajp12 Then I restarted my IIS and tomcat services.. The Jar files.. I had the same problem then I found out (in a document somewhere) that you have to make a directory under WEB-INF called lib This is where you put your .jar files. (like if you had custom tags, etc) Hope this helps! Mike At 01:00 PM 5/11/2001 -0600, you wrote: I finally got IIS to redirect properly to Tomcat. Now, I have a few questions about config: 1. I want another dir to use besides the examples dir under webapps. What files do I need to modify for this, and what needs changed? I tried some things, but they did not seem to workI tried adding a new context to uriworkermap.properties, and I added a stanza in server.xml that was similar to the examples. 2. Is there a way to get Jar files to be used? I ended up un-jarring things and putting them in web-inf dir under classes...I had jar that was working under JRun (another JSP/Servlet/etc. engine), but it didn't seem to be recognized...do I *have* to build a WAR for this?
AW: Question from a newbee on deployment of war file
One question concerning this auto-deploying: What happens, if i overwrite the .war-File later with a newer version containing changed files? Does Tomcat do a automatic redeploy with the new files? What to do in this case? Stefan -Ursprüngliche Nachricht- Von: Brahmananad G Gannur [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 14. Mai 2001 13:45 An: [EMAIL PROTECTED] Betreff: Re: Question from a newbee on deployment of war file you put that .war file in webapps folder of the tomcat and restart the tomcat your application get deployed automaically cheers brahma [EMAIL PROTECTED] wrote: Hi ! I have my web application compiled in one file - exigen.war in some directory e.g C:/Andrew/exigen.war I`ve added context record to server.xml as it was described in documentation- ...
IIS4, JDK1.3, ISAPI - where's my JSP??!
Hi Everybody! This is my first message on the mailing list and searching through the archives I see similar problems to what I have. I've looked through the mail archives and although it's very helpful it's not solving my problem - I'm officially stuck!. And this is the problem: I am trying to view my JSP pages under c:\Inetpub\wwwroot\, but can't. This is the example JSP file I'm trying to display under my path: %@page import=java.util.Date% html body The current time is %= new Date().toString() % /body /html All I get is The current time is on my web-browser. No java errors anywhere, just the text. This also applies to other types of JSP files. I have installed TOMCAT and the isapi_redirect.dll in IIS (green arrow as expected) as specified in the HOWTO file; I have set up my context in server.xml with the DOCBASE=c:\Inetpub\wwwroot and PATH=\wwwroot and set up workers.properties with the correct HOME_PATHS and specified uriworkermap.properties as requested in the HOWTO. I have set CLASSPATH, JAVA_HOME, TOMCAT_HOME as per instructed. I can successfully view all JSP examples under the Tomcat /examples/ tree (and my example JSP file), but all I want is to view noddy JSP pages under MY path (c:\Inetpub\wwwroot)!!! Is the approach of using isapi_redirect.all the correct one to get what I want? Or am I missing something fundamental (I've been doing this for about 3 weeks). Please help! Regards Matt Bunner PS I'm using: IIS 4.0 Tomcat 3.2.1 JDK 1.3.0
JSP from Servlets
Hi! We run jspServlet defined at web.xml in the conf directory from a servlet defined in an independent context under webapps. We use RequestDispatcher.forward(req,res), where the target is a .jsp type. Tomcat 3.2 is diferent from 3.1.1 on url-pattern. V 3.1.1 servlet-mapping servlet-name Servlet /servlet-name url-pattern / /url-pattern /servlet-mapping V 3.2 servlet-mapping servlet-name Servlet /servlet-name url-pattern /* /url-pattern /servlet-mapping To run our servlet, we had to put /* on url-pattern, but now, our jspServlet doesn't run because all requests goes to servlet. How can i configure it to run our jsp from servlet with RequestDispatcher ? Luiz Fernando Bettella, PROCERGS, Porto Alegre RS Brasil.
Re: AW: Question from a newbee on deployment of war file
And another question is what happens if war is not under webapps directory. Is it possible to configure Tomcat so that it uses war not from webapps directory ? As far as i understood from documentationb it should be possible : .. Add a Context entry in the Tomcat server.xml configuration file. This approach is described briefly below, and allows you to position the document root of your web application at some point other than the $TOMCAT_HOME/webapps/ directory. Doing this requires the following steps (for Tomcat 3.2) .. I`ve tried to follow this instruction unfortunaly did not succeed. Could someone please, kindly give a short example of war-non in webapps directory deployment ? Is it possible at all ?
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: Virtual Hosts
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
Apache + SSL
Hi, Can anyone help me to find useful information on how to configure Apache to work with SSL as well as SSL documentation? 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: How tomulti thread a servlet
Thanks Danny, You were correct... I misunderstood that servlets were singletons (only one per system) but I also recall warnings about keeping them thread safe. However, I tested it with a long running transaction ... and it servers more than one ... just fine. -Bob -Original Message- From: Danny Angus [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 12:56 PM To: [EMAIL PROTECTED] Subject: RE: How tomulti thread a servlet I'm nervous about airing my own ignorance here, but what I have seen is that Tomcat hands out requests to multiple threads each of which contains an instance of your servlet. In other words if your servlet processes the request Tomcat will run multiple threads of it where necessary, by default. These threads arent destroyed when the request is finished, but re-used (as far as I know, which ain't far on this topic) for more requests. Like the apache httpd processes, and like them I believe (again I'm no expert) you can set min spare and max spare to tune performance. d -Original Message- From: Bob Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 12:24 PM To: [EMAIL PROTECTED] Subject: How tomulti thread a servlet Hi, I have migrated a TCP based server to a servlet and cannot figure out how to get multi-threading working. The TCP server works like this; Listen for Request: read command code from the accepted socket; find a free thread containing a slave server who can handle the command; hand the socket over to the freeserver and interrupt the thread (the slave server reads and writes to the handed-over socket) Listen for next request What happens when I put this into a servlet is this; doPost is invoked find a free thread containing a slave server who can handle the command; get inputstream (from request) and outputstream (from response) and hand these streamsover to a free server thread and interrupt the thread doPost finishes I think what happens next is that Tomcat completes the request cycle, including closing the socket( and associated request/response stream) thereby screwing over the slave thread still process the command code. I want Tomcat to leave these streams alone and be ready to invoke the servlet for the next request. Is there support for this kind of stuff in Tomcat? Thanks -Bob ** Privileged, confidential and/or copyright information may be contained in this e-mail. This e-mail is for the use only of the intended addressee. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, forward, disclose or otherwise use it or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you receive this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software. PKS Systems Integration (Ireland) Limited may monitor the content of e-mails sent and received via its network for the purposes of ensuring compliance with its policies and procedures. This message is subject to and does not create or vary any contractual relationship between PKS Systems Integration (Ireland) Limited and you. ** ** Privileged, confidential and/or copyright information may be contained in this e-mail. This e-mail is for the use only of the intended addressee. If you are not the intended addressee, or the person responsible for delivering it to the intended addressee, you may not copy, forward, disclose or otherwise use it or any part of it in any way whatsoever. To do so is prohibited and may be unlawful. If you receive this e-mail by mistake please advise the sender immediately by using the reply facility in your e-mail software. PKS Systems Integration (Ireland) Limited may monitor the content of e-mails sent and received via its network for the purposes of ensuring compliance with its policies and procedures. This message is subject to and does not create or vary any contractual relationship between PKS Systems Integration (Ireland) Limited and you. **
cant get logging to work
I am only getting basic information in the logs. I want to get detailed session oriented info, like HTTP requests, etc. What needs to be changed ? How do I make this work ? I have set up the three log files: Logger name=tc_log path=logs/tomcat.log verbosityLevel = DEBUG customOutput=yes / Logger name=servlet_log path=logs/servlet.log verbosityLevel = DEBUG customOutput=yes / Logger name=JASPER_LOG path=logs/jasper.log verbosityLevel = DEBUG / and have set debug to 99 for the context: Context path=/ docBase=/basedir/public_html debug=99 reloadable=true /Context Brian Martin Unix Administrator Alamo, Local Market Division (440) 715-3549
RE: Apache + SSL
Try http://www.modssl.org or http://www.openssl.org as the FAQ and HOWTOs are most valuable and helped me out a lot when I did this for the first time. PS: Even the mod_perl guide at http://perl.apache.org/guide was good too as it showed how not only to install mod_perl, but mod_perl with other modules such as mod_ssl. Mike Duncan Web Master/Developer Sonopress, LLC (Weaverville) (828)658-6082 [EMAIL PROTECTED] -Original Message- From: Martin Mauri [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 10:04 AM To: [EMAIL PROTECTED] Subject: Apache + SSL Hi, Can anyone help me to find useful information on how to configure Apache to work with SSL as well as SSL documentation? 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
Help: init parameters fail.
I was trying an example of java servlet book. In the example, the prog. (see excerpt below) should read the parameter values from web.xml and use the values accordingly. However, it seems it is unable to read the values thus only able to give me default values the prog. use. I can't find what's wrong. advice pls. jackling. The ShowMessage classes is part of the mypackage package under the mypackage folder. Below is the excerpt: - public void init(ServletConfig config) throws ServletException { super.init(config); message = config.getInitParameter(message); if (message == null) { message = defaultMessage; } try { String repeatString = config.getInitParameter(repeats); repeats = Integer.parseInt(repeatString); } catch(NumberFormatException nfe) { } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; out.println(ServletUtilities.headWithTitle(title) BODY BGCOLOR = \#FDF5E6\\n + H1 ALIGN=CENTER + title + /H1); for (int i = 0; irepeats; i++) { out.println(message + BR); } out.println(/BODY/HTML); } I've edited the web.xml file in the webapps\examples\web-inf directory and include the followings: - servlet servlet-name ShowMsg /servlet-name servlet-class mypackage.ShowMessage /servlet-class init-param param-namemessage/param-name param-valueSembawang/param-value /init-param init-param param-namerepeats/param-name param-value5/param-value /init-param /servlet
Setup problem with SOAP
Hi, Can anyone help ? i start tomcat 3.1.1 with SOAP2.1, but got error message : XmlMapper: Can't find method setDesription in Wrapeer(rpcrouter null) CLASS calss org.apache.tomcat.core.ServeltWrapper I have included soap.jar in classpath but does not work. set CLASSPATH=. set CLASSPATH=%CLASSPATH%;E:\xerces-1_3_1\xerces.jar set CLASSPATH=%CLASSPATH%;E:\soap-2_1\lib\soap.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\classes set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar Grateful for advice. Thanks eric
RE: Posting multipart/form-data
Yeah, I have been using ajp12, I finally got it to work right. It just seems to die whenever I use request.getParameter on a multipart/form-data submission. I don't know if that is something with tomcat or what though. It seems the compiler doesn't check to see whether it is multipart or not... Brandon -Original Message- From: Sandy McPherson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 4:56 AM To: [EMAIL PROTECTED] Subject: RE: Posting multipart/form-data If you are usinf 3.2 or 3.2.1 with Ajp13 there is a bug use Ajp12 for any multi-part -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bo Xu Sent: Friday, May 11, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Re: Posting multipart/form-data Frans Verhoef wrote: One good API for dealing with multipart/form-data is the com.oreilly.servlet package. http://www.servlets.com/cos/index.html I used it myself, and it works really great. And if you want to use it commercially, you just need to buy the book of oreilly. Frans On 10 May 2001, at 17:25, Brandon Cruz wrote: When I try to specify enctype=multipart/form-data, the page just goes blank and IE says that it can't find server. Anyone know why this might happen? Brandon [...] Hi :-) I also use multipart/form-data with Jason Hunter's API com.oreilly.servlet.MultipartRequest, in the client I use a HTML Form from his book: FORM ACTION=/servlet/UploadTest ENCTYPE=multipart/form-data METHOD=POST What is your name? INPUT TYPE=TEXT NAME=submitter BR Which file do you want to upload? INPUT TYPE=FILE NAME=file BR INPUT TYPE=SUBMIT /FORM now I have a question: now I want to upload a file to MyServlet from a Java Application(or a Java Applet), I guess I need to use (Http)URLConnection, but I don't know how to use it: - how to set ENCTYPE=multipart/form-data? - do I need to read the file into a byte[], then put this byte[] into (Http)URLConnection? where/how can I put? -... Thanks in advance! Bo may.11, 2001
It seems like it doesn't do the compilation
Hi everbody, I have the following target in my build.xml file. javac srcdir=java/org/apache/struts/form destdir=${deploy.home}/WEB-INF/classes/org/apache/struts/form classpath=Iterate/WEB-INF/lib debug=on optimize=off deprecation=off/ copy todir=${deploy.home}/WEB-INF/classes fileset dir=java/org/apache/struts/form includes=**/*.properties/ /copy /target And I have working directory and directory for tomcat under D drive. and they are as following. ap20 - working director Tomcat -java /org/ etc -jakarta-tomcat-3.2.1 - -webapps - -struts - - I have .java files in D:/ap20/java/org/apache/struts/form/ and .class and .properties files in D:/Tomcat/jakarta-tomcat-3.2.1/webapps/struts.WEB-INF/classes/org/apachge/fo rm/ When I compile it it seems like it doesn't compile. Any ideas why ? I hope somebody can help me! Thanks
RE: j_security_check (Re-post)
this is a bug, and is slated to be fixed. don't know when. Basically, after FORM login, a redirect needs to occur, but Tomcat is doing an internal forward. Tim Julien HP Middleware -Original Message- From: Simon Ozturk [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 4:16 AM To: '[EMAIL PROTECTED]' Subject: j_security_check (Re-post) Having received no response, I am re-posting my earlier message below. Could this be down to a configuration problem? Simon. -- From: Simon Ozturk[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: 04 May 2001 10:05 To: '[EMAIL PROTECTED]' Subject: j_security_check Hi guys, Using Tomcat 4.b1 and Tomcat 4.b3 I get the following strange behaviour which does not happen in Tomcat 3.2 : 1- User requests a bookmarked page which is protected : http://localhost/control/member/you/AddressBook 2- Login page is displayed, and user logs in (using FORM based authentication) 3- The requested page is displayed and the browsers address line shows http://localhost/j_security_check 4- Subsequently, relative links on the page become http://localhost/j_security_check/xyz instead of http://localhost/control/member/you/AddressBook/xyz Additionally, after logging in on the home page without using any bookmarks, I get the same behaviour with the address line http://localhost/j_security_check instead of http://localhost/index.jsp which is the welcome page. Can anyone help please? Many thanks in advance, Simon
Re: Help: init parameters fail.
jackling wrote: I was trying an example of java servlet book. In the example, the prog. (see excerpt below) should read the parameter values from web.xml and use the values accordingly. However, it seems it is unable to read the values thus only able to give me default values the prog. use. I can't find what's wrong. advice pls. jackling. The ShowMessage classes is part of the mypackage package under the mypackage folder. Below is the excerpt: - public void init(ServletConfig config) throws ServletException { super.init(config); message = config.getInitParameter(message); if (message == null) { message = defaultMessage; } try { String repeatString = config.getInitParameter(repeats); repeats = Integer.parseInt(repeatString); } catch(NumberFormatException nfe) { } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; out.println(ServletUtilities.headWithTitle(title) BODY BGCOLOR = \#FDF5E6\\n + H1 ALIGN=CENTER + title + /H1); for (int i = 0; irepeats; i++) { out.println(message + BR); } out.println(/BODY/HTML); } I've edited the web.xml file in the webapps\examples\web-inf directory and include the followings: - servlet servlet-name ShowMsg /servlet-name servlet-class mypackage.ShowMessage /servlet-class init-param param-namemessage/param-name param-valueSembawang/param-value /init-param init-param param-namerepeats/param-name param-value5/param-value /init-param /servlet Hi :-) I am not sure, I guess the reason is: did you use your servlet-name(not the default Servlet) to invoke your Servlet? i.e. - I think you need to use something like the following: http://xxx.xxx.xxx.xxx:8080/yourwebapp/ShowMsg now you ask the container to use that servlet-defination defined by you in WEB-INF/web.xml: whose name is ShowMsg which has init-param defined by you so now you can get the initParameter with: ServletConfig.getInitParameter(...) GenericServlet.getInitParameter(...) (from the Servlet API doc, the are similar) - but if you use the following or something else: http://xxx.xxx.xxx.xxx/yourwebapp/servlet/mypackage/ShowMessage because now you don't tell container the servlet-name you want, so now container use another one(the default one), so I think now you can not get the initParameter Bo may.14, 2001
Re: How tomulti thread a servlet
Bob Smith wrote: Hi, I have migrated a TCP based server to a servlet and cannot figure out how to get multi-threading working. The TCP server works like this; Listen for Request: read command code from the accepted socket; find a free thread containing a slave server who can handle the command; hand the socket over to the freeserver and interrupt the thread (the slave server reads and writes to the handed-over socket) Listen for next request What happens when I put this into a servlet is this; doPost is invoked find a free thread containing a slave server who can handle the command; get inputstream (from request) and outputstream (from response) and hand these streamsover to a free server thread and interrupt the thread doPost finishes I think what happens next is that Tomcat completes the request cycle, including closing the socket( and associated request/response stream) thereby screwing over the slave thread still process the command code. I want Tomcat to leave these streams alone and be ready to invoke the servlet for the next request. Is there support for this kind of stuff in Tomcat? Thanks -Bob [...] Hi :-) I am not sure, I think: - it is Servlet container who do the same work with your ServerSocket in your TCP server, i.e., container will listen to the request, find/make a pooled-free/new thread, and let it work with that instance of your Servlet class. - then in service/doGet/doPut in your Servlet class, you can do the similar work with what you did in that pooled-free/new thread in TCP server. Bo may.14, 2001
IIS logging of requests handled by isapi_redirect.dll
Hi everybody, 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 if 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 c-ip s-ip s-port cs-method cs-uri-stem sc-status 2001-05-12 00:05:55 127.0.0.1 127.0.0.1 80 GET XXX.gif 200 2001-05-12 00:07:18 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:21 127.0.0.1 127.0.0.1 80 GET XXX.css 200 32 2001-05-12 00:08:22 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:23 127.0.0.1 127.0.0.1 80 GET XXX.css 200 32 2001-05-12 00:08:23 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:23 127.0.0.1 127.0.0.1 80 GET XXX.gif 200 2001-05-12 00:08:26 127.0.0.1 127.0.0.1 80 GET XXX.css 200 2001-05-12 00:08:26 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:38 127.0.0.1 127.0.0.1 80 GET XXX.css 200 2001-05-12 00:08:38 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:39 127.0.0.1 127.0.0.1 80 GET XXX.css 200 2001-05-12 00:08:39 127.0.0.1 127.0.0.1 80 GET /tomcat_integration/isapi_redirect.dll 200 2001-05-12 00:08:40 127.0.0.1 127.0.0.1 80 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.
oracle.jdbc.pool.OracleDataSource
Hi, how I can place oracle.jdbc.pool.OracleDataSourcein jdni context of my app? Which server.xml context config tags and deployment descriptor elements must be specified for use aka InitialContext.lookup( "java:comp/env/jdbc/MyDB") .getConnection()? And what's the difference between resource-ref/ and resource-env-ref? Regards.
RE: Posting multipart/form-data
Hi, Brandon At 05/14/2001 09:29 -0500, Brandon Cruz wrote: Yeah, I have been using ajp12, I finally got it to work right. It just seems to die whenever I use request.getParameter on a multipart/form-data submission. I don't know if that is something with tomcat or what though. It seems the compiler doesn't check to see whether it is multipart or not... snip Check the Hunter docs: you must use his class's methods to get at the parameters, because the request takes an entirely different form when it is sent as multipart. hth, B. Beau Bisquette TPC Productions Oakland, California
RE: IIS+Coldfusion+Tomcat?
In short, not very easily. In JSPs the includes must be other valid JSPs. What you could do is to write a JSP include that makes a request back to the web server (using some of the java.net classes) for the appropriate file, passing the correct variables. Your included file would then print out the results that it received. Its not very clean or easy to do, but I believe that its the only way that you can get this to work. Randy -Original Message- From: Sean LeBlanc [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 12:07 PM To: TomCat Subject: IIS+Coldfusion+Tomcat? Has anyone used these in conjunction? We want to add JSP/Servlet capability to Coldfusion, and don't want to necessarily use JRun. I have a .jsp file I'd like to include ColdFusion headers and footers, and have them work. Right now, the server is configured as follows: IIS redirects requests to ColdFusion to handle ColdFusion's proprietary tags, and redirects requests to .jsp files to Tomcat. If I include the headers and footers I mentioned above in this .jsp file, it does not work - as can be expected. Is there a way to have this work? Thanks in advance, Sean
JSPError: Can't read: .../work/localhost_8080/...
I'm running into all sorts of trouble with getting tomcat running on solaris 5.6 with jdk1.1.8. Everything works great with jdk1.3, it seems that Adobe has laid off everyone who was working on there acrobat FDF java libraries so i'm forced to run a java 1.1 instance so that I can use their .jar files. I installed jdk1.1.8 from Sun, and the server starts just fine. However, as soon as I try to load a jsp page i'm getting: org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't read: /hsd/ssisvr/lib/tomcat/work2/localhost_8080/_0002fdev_0002fprocReview_0002fg adget_0002ejspgadget_jsp_0.java 1 error The file exists, I can compile it by hand, so i'm not really sure what is going on. Anyone have any ideas? I've already spent entirely too much time on something that should be trivial. Thanks, Jeff
Tomcat and SSL
Hi All, I need to setup Tomcat standlone with SSL support, I do it according to Tomcat's user-guide in the following step using tomcat account: I modified the java.security before did these keytool -genkey -alias tomcat -keyalg RSA openssl req -new -out REQ.pem -keyout KEY.pem openssl req -x509 -in REQ.pem -key KEY.pem -out CERT.pem then verify openssl req -verify -in REQ.pem openssl req -verify -in REQ.pem -key KEY.pem openssl req -text -in REQ.pem everything looks well, but when I do: keytool -import -v -trustcacerts -alias tomcat -file CERT.pem get the error messages, Enter keystore password: changeit keytool error: java.lang.Exception: Public keys in reply and keystore don't match So tried to delete all files in /home/tomcat: .keystore and *.pem So I want to repeat the above steps keytool -genkey -alias tomcat -keyalg RSA get the error messages Enter keystore password: changeit keytool error: java.lang.Exception: Key pair not generated, alias tomcat already exists I never use SSL before and very confused now, are there some documentation to do this step by step? any help are highly appreciated! Kevin
CSS in Tomcat
Hi, I am trying to use external cascading style sheets in Tomcat, by using the link rel=stylesheet type=text/css name=style1 href=style1.css tag in the head of the document. I keep getting a 404 (not found) error when i try to load. The css file is located in the same directory, but Tomcat can't see it for some reason. Any suggestions? cheers, Jason
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: Additional Question about web app error-page; Is it possible to set the GLOBAL default error page forTomCat 4?]
Tomcat gurus: I still have not had a response to my original question of 05/09/01 about DEFAULT TC4 error return page, but while looking further into the use of web application error-page directives in the app's web.xml, I have come across the following problem: 1) Using a JSP page to set a parameter via form with same page as action, perform a divide of 17 by the parameter value. When I enter 0 for the parameter, the expected javax.servlet.ServletException / by 0 is triggered, with root cause of java.lang.ArithmeticException / by 0. However, I have placed into the web.xml the following: error-page exception-typejavax.servlet.ServletException/exception-type locationcustomerrorSE.html/location /error-page (I have also tried permutations of the location value, with no avail. The html file is in the webapps root directory.) Adding a directive for the Arithmetic exception: error-page exception-typejava.lang.ArithmeticException/exception-type locationcustomerrorJE.html/location /error-page also has no effect. So, does anyone know why this does not appear to be working? Original Message Subject: Is it possible to set the GLOBAL default error page for Tomcat 4? Date: Wed, 09 May 2001 17:34:03 -0500 From: John Upham [EMAIL PROTECTED] Organization: MOREnet Systems Programming To: [EMAIL PROTECTED] BCC: [EMAIL PROTECTED], [EMAIL PROTECTED] I understand the use of the error-page directive in an application web.xml, but we are interested in changing the default error-page returned globally by Tomcat 4. We would like to return a user-friendly error response with a customized error page that does not include the stack trace info (but from which we can do informational logging). Is it possible to declare a default error-page value in the Tomcat server.xml (or other config file)? Barring that, is it possible to create a custom error handler class to override the Tomcat error handler? Thanks for any help, jbu -- John B. Upham Systems Programming -- Web Application Programmer MOREnet 573-884-7200 3212 LeMone Industrial Blvd. [EMAIL PROTECTED] 573-882-4624 Columbia MO 65201
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
inetinfo CPU usage
Hi, We are running Tomcat with IIS and see that the CPU utilization increases drastically after a couple of accesses and stays there. Restarting IIS or killing inetinfo seems to be the only solution. However on accessing the application from http://localhost:8080/ABC we do not see any problems. System Info. -- Dual CPU Win2K 5.00.2195 Service Pack1, Tomcat3.1 and IIS 5.0 On testing the application on other servers with a similar configuration but with single CPUs we do not see this problem. Could this be because of the dual CPUs. Is there a workaround to this problem Thanks in advance Vishwa
RE: Question from a newbee on deployment of war file
Title: RE: Question from a newbee on deployment of war file You must delete the corresponding webapp directory. So if you use the standard configuration of tomcat home/webapps and you have a foo.war file. It will create the context directory as tomcat home/webapps/foo. If you update foo.war you must delete the foo directory. Tomcat will not unpack the foo.war file if the corresponding foo context directory already exists. -Keith -Original Message- From: Stefan Seifert [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 7:53 AM To: [EMAIL PROTECTED] Subject: AW: Question from a newbee on deployment of war file One question concerning this auto-deploying: What happens, if i overwrite the .war-File later with a newer version containing changed files? Does Tomcat do a automatic redeploy with the new files? What to do in this case? Stefan -Ursprüngliche Nachricht- Von: Brahmananad G Gannur [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 14. Mai 2001 13:45 An: [EMAIL PROTECTED] Betreff: Re: Question from a newbee on deployment of war file you put that .war file in webapps folder of the tomcat and restart the tomcat your application get deployed automaically cheers brahma [EMAIL PROTECTED] wrote: Hi ! I have my web application compiled in one file - exigen.war in some directory e.g C:/Andrew/exigen.war I`ve added context record to server.xml as it was described in documentation- ...
RE: JSPError: Can't read: .../work/localhost_8080/...
org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't read: /hsd/ssisvr/lib/tomcat/work2/localhost_8080/_0002fdev_0002fpro cReview_0002fg adget_0002ejspgadget_jsp_0.java 1 error The file exists, I can compile it by hand, so i'm not really sure what is going on. Anyone have any ideas? I've already spent entirely too much time on something that should be trivial. Thanks, You might try checking your security permissions on the work folder and make sure the user you are running tomcat under has enough permissions. Just a guess. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
tomcat and naming
I'm trying to get a JNDI example running but I have run into trouble. I'm using tomcat 4.0b3 on a RedHat Linux 6.2 box with JDK 1.3.0_02 I've created a servlet that tries to get the InitialContext in the init() method but I always get an exception when I run it. Here is the servlet: import javax.naming.NamingException; import javax.naming.NameNotFoundException; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.directory.InitialDirContext; import javax.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class NamingServlet extends HttpServlet { public void init() throws ServletException { DataSource datasource = null; InitialContext ic = null; String DATASOURCE_NAME = java:comp/env/jdbc/NamingDataSource; try { ic = new InitialContext(); } catch (NamingException ne) { throw new ServletException(Naming Exception while instantiating an Initial Context:\n + ne.getMessage()); } try { datasource = (DataSource)ic.lookup(DATASOURCE_NAME); } catch (NameNotFoundException ne) { throw new ServletException(NamingNotFound Exception while looking up + DATASOURCE_NAME + :\n + ne.getMessage()); } catch (NamingException ne) { throw new ServletException(Naming Exception while looking up + DATASOURCE_NAME + :\n + ne.getMessage()); } } } I copied the jndi.jar from catalina into my source lib directory. I'm using Oracle 8.1.7 javax.sql package for the DataSource classes but I don't think this is important since I'm not even making it that far. Here's the exception I get when I access the mapped URL of http://localhost:8080/naming/naming : javax.servlet.ServletException: Naming Exception while instantiating an Initial Context: Cannot instantiate class: org.apache.naming.java.javaURLContextFactory at NamingServlet.init(NamingServlet.java:27) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:802) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:583) 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:879) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225) 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:879) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2175) 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:879) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:219) 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:879) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:827) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:904) at java.lang.Thread.run(Thread.java:484) I have the tomcat examples running, including the JNDI example, but I can't see what I'm doing that is different. The only vague clue that I have is the class-not-found exception for org.apache.naming.java.javaURLContextFactory but I don't know where to go from there. Any help would be appreciated, Kevin. Do You Yahoo!? Get your free @yahoo.co.uk
Virtual Hosts
Hi, I am able to startup and shutdown multiple JVMs (using server1.xml ... etc). I created applications (for example, JVM1, JVM2) under web-apps. When I enter http://localhost:8007/jvm1/servlet/HelloWorld1 in my browser, it works fine. However, with the following code in server1.xml : ContextManager debug="0" workDir="work_jvm1" showDebugInfo="true" > followed by !-- @@@ the /jvm1 context --> Host name="www.tomcat1.com" > Context path="/jvm1" docBase="webapps/jvm1" crossContext="false" debug="1" reloadable="true" > /Context> /Host> along with other contexts. When I enter www.tomcat1.com, I am not able to get the result. Any suggestions? Thanks, Kumar.
RE: CSS in Tomcat
I am trying to use external cascading style sheets in Tomcat, by using the link rel=stylesheet type=text/css name=style1 href=style1.css tag in the head of the document. I keep getting a 404 (not found) error when i try to load. The css file is located in the same directory, but Tomcat can't see it for some reason. Any suggestions? try href=./style1.css We used relative references to solve this problem in our app (i.e. ../style1.css for parent folder). --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
hi
Do you have any idea why i'm getting the following error? [jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to server [jk_isapi_plugin.c (355)]: jk_ws_service_t::write, WriteClient failed [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to server [jk_isapi_plugin.c (261)]: jk_ws_service_t::start_response, ServerSupportFunction failed [jk_ajp12_worker.c (570)]: ajpv12_handle_response, error starting response [jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed The page seems to load and work fine though.. i don't know why it's showing up errors in the log thanks irene
RE: CSS in Tomcat
In the same directory as what? A JSP file? A Servlet? It makes a difference. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 10:50 AM To: [EMAIL PROTECTED] Subject: CSS in Tomcat Hi, I am trying to use external cascading style sheets in Tomcat, by using the link rel=stylesheet type=text/css name=style1 href=style1.css tag in the head of the document. I keep getting a 404 (not found) error when i try to load. The css file is located in the same directory, but Tomcat can't see it for some reason. Any suggestions? cheers, Jason
RE: urgent
API is available on a per cpu basis at 2,500USD/cpu. Checks can be made out to Michael Wentzel and sent directly to ME! ;) Seriously though obviously you didn't check out the tomcat website before posting this message. If you had you would have realized that tomcat is released under the Apache license which is open source. In the future please read up on tomcat before asking questions here. The volume is quite high on this list and therefore the individuals on the list do not typically care to get messages such as this. Feel free to send me my fee and you can use Tomcat to your hearts content though. I look forward to receiving your check in the mail!) --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com
Re: CSS in Tomcat
I got it to work. I didn't realize that tomcat set our working directory to /webapps/foo, so i had to set up the link. Thanks, Jason Jann VanOver wrote: In the same directory as what? A JSP file? A Servlet? It makes a difference. -Original Message- From: Jason Vinson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 10:50 AM To: [EMAIL PROTECTED] Subject: CSS in Tomcat Hi, I am trying to use external cascading style sheets in Tomcat, by using the link rel=stylesheet type=text/css name=style1 href=style1.css tag in the head of the document. I keep getting a 404 (not found) error when i try to load. The css file is located in the same directory, but Tomcat can't see it for some reason. Any suggestions? cheers, Jason
Strangeness with request.getHeader(User-Agent)
I can use request.getHeader() in my JSP scriptlet (Tomcat 3.2.1) and it works just fine: % String myUserAgent = request.getHeader(User-Agent); % User-Agent = %= myUserAgent %br jsp:setProperty name=userAgent property=userAgent value=%= myUserAgent % / But when I try to use it directly in a jsp:setProperty statement, I get an error: jsp:setProperty name=userAgent property=userAgent value=%= request.getHeader(User-Agent) % / ... Attribute User-Agent has no value Any idea why?
Re: JDBC Realm is gone
On Mon, 14 May 2001, Oki DZ wrote: I already have the JDBC connection and the tables set up. I also looked up in the bottom of the Tomcat Manager's web.xml. Problem is, the auth-method attribute (?) declared as BASIC; what does that mean? In Apache web server parlance, AFAIK, it means clear text authentication using Unix crypt encryption. I'm not so clear. Last week I tried to put a plain text and also crypt()-ed test password on the users' table, but didn't get it working. I don't know what the problem was. What I did was to encrypt a test password using perl -e 'print crypt(, test);' and then stored it on the database. If you wanna use encrypted password you have to turn on digest on the realm. Look in JDBCRealm-howto, basically you turn on digest and choose the algorithm you want to use, then you have to generate your password with the same algoritm. i.e. Realm ... Digest=MD5 For convenience there's a public class in JDBCRealm that generates the password for you, again this is outlined in the JDBCRealm-howto. Hope you get it to work. ..bip
resultset Question
I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'");dFolder = resultSet.getString("folder");dModule = resultSet.getString("dmod");dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
Tomcat-supported Netscape/iPlanet web servers
Greetings, I'm responsible for the Tomcat installation/implementation for our team and product. The current Tomcat document for Netscape web server integration makes mention only of Netscape Enterprise Server versions 3.0 and 3.61. According to the Netscape site, version 3.6 went to End of Life phase in September 2000. It has been replaced by iPlanet Web Server, Enterprise Edition 4.1 (with 6.0 beta available). Do you have any comments about using Tomcat 3.2.1 with iPlanet 4.1? If Tomcat actually supports that release, can we get the Tomcat-Netscape document updated to reflect that? (BTW, the html title for the Tomcat Netscape HowTo is Jakarta IIS HowTo.) Many thanks for your help, David -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- David Stimson Service Reporting Project BMC Software, Inc. - Waltham, MA Phone: (781)663-4593Fax: (781)663-4756 Email: [EMAIL PROTECTED]
Re: Virtual Hosts
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: init parameters fail.
I had the same problem when I first started using init parameters. What I found is that you can't use the ServletConfig object to retrieve parameters from your web.xml file. You must use the ServletContext object instead, so if you change your code to this: message = getServletContext().getInitParameter(message); It should work. Thanks, --jeff - Original Message - From: jackling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 7:15 AM Subject: Help: init parameters fail. I was trying an example of java servlet book. In the example, the prog. (see excerpt below) should read the parameter values from web.xml and use the values accordingly. However, it seems it is unable to read the values thus only able to give me default values the prog. use. I can't find what's wrong. advice pls. jackling. The ShowMessage classes is part of the mypackage package under the mypackage folder. Below is the excerpt: - public void init(ServletConfig config) throws ServletException { super.init(config); message = config.getInitParameter(message); if (message == null) { message = defaultMessage; } try { String repeatString = config.getInitParameter(repeats); repeats = Integer.parseInt(repeatString); } catch(NumberFormatException nfe) { } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; out.println(ServletUtilities.headWithTitle(title) BODY BGCOLOR = \#FDF5E6\\n + H1 ALIGN=CENTER + title + /H1); for (int i = 0; irepeats; i++) { out.println(message + BR); } out.println(/BODY/HTML); } I've edited the web.xml file in the webapps\examples\web-inf directory and include the followings: - servlet servlet-name ShowMsg /servlet-name servlet-class mypackage.ShowMessage /servlet-class init-param param-namemessage/param-name param-valueSembawang/param-value /init-param init-param param-namerepeats/param-name param-value5/param-value /init-param /servlet
RE: resultset Question
So what is happening? Do you get anything? Do you get an error? I have found that with some JDBC drivers you are required to get the columns in the same order they appear in the select statement. So changing your "select *" to "select folder,dmod,dmod_path" would fix it if this is the problem. Oh -- wait -- I see it now! You need to do a resultSet.next() before you can .getString() ... try that! -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 2:16 PMTo: [EMAIL PROTECTED]Subject: resultset Question I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'");dFolder = resultSet.getString("folder");dModule = resultSet.getString("dmod");dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
Re: resultset Question
On Mon, 14 May 2001 17:16:24 -0400, Kevin Fonner [EMAIL PROTECTED] wrote: I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... Try... resultSet rs = statement.executeQuery(select * from table where column=data); rs.next() // this outta do it for ya, each rs.next() advances the cursor one row. dFolder = rs.getString(1); // avoid using column names resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \'); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \'); dFolder = resultSet.getString(folder); dModule = resultSet.getString(dmod); dModulePath = resultSet.getString(dmod_path); Thanks, Kevin Richard Draucker [EMAIL PROTECTED] Protected-Data.Com Remote Data Support For Web Developers
RE: resultset Question
Kevin, There are 2 problems with your message. First, this question is extremely off topic for this mailing list. Second, you do not say what kind of errors and/or results you get by executing your current code. You simply say you "can't seem to grab the data". Not very helpful. But since I hate it when people just scream "off topic"... Take a look at the api documentation for java.sql.ResultSet.next(). The next() method needs to be called before you start calling the get*() methods. -Duck -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 5:16 PMTo: [EMAIL PROTECTED]Subject: resultset Question I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'");dFolder = resultSet.getString("folder");dModule = resultSet.getString("dmod");dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:05:53 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 18:05:53 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:05:55 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 18:05:55 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 18:11:19 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:11:19 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:11:21 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 18:11:21 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
Re: init parameters fail.
On Mon, 14 May 2001, Jeff Kilbride wrote: I had the same problem when I first started using init parameters. What I found is that you can't use the ServletConfig object to retrieve parameters from your web.xml file. You must use the ServletContext object instead, so if you change your code to this: message = getServletContext().getInitParameter(message); It should work. A couple of things: ServletConfig.getInitParameter() should be the same as GenericServlet.getInitParameter() (the latter is a convenience method for the former). It gets servlet initial parameters, as specified by init-param's in web.xml. ServletContext.getInitParameter() gets context initial parameters, as specified by context-param's in web.xml. So they are different things. (See http://java.sun.com/products/servlet/2.2/javadoc/index.html.) See Bo Xu's comments about named/defined servlets (in web.xml), and what URL you are using to call a servlet. That has a great impact on whether/how initial parameters (both servlet and context) work. - Original Message - From: jackling [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 14, 2001 7:15 AM Subject: Help: init parameters fail. I was trying an example of java servlet book. In the example, the prog. (see excerpt below) should read the parameter values from web.xml and use the values accordingly. However, it seems it is unable to read the values thus only able to give me default values the prog. use. I can't find what's wrong. advice pls. jackling. The ShowMessage classes is part of the mypackage package under the mypackage folder. Below is the excerpt: - public void init(ServletConfig config) throws ServletException { super.init(config); message = config.getInitParameter(message); if (message == null) { message = defaultMessage; } try { String repeatString = config.getInitParameter(repeats); repeats = Integer.parseInt(repeatString); } catch(NumberFormatException nfe) { } } public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/html); PrintWriter out = response.getWriter(); String title = The ShowMessage Servlet; out.println(ServletUtilities.headWithTitle(title) BODY BGCOLOR = \#FDF5E6\\n + H1 ALIGN=CENTER + title + /H1); for (int i = 0; irepeats; i++) { out.println(message + BR); } out.println(/BODY/HTML); } I've edited the web.xml file in the webapps\examples\web-inf directory and include the followings: - servlet servlet-name ShowMsg /servlet-name servlet-class mypackage.ShowMessage /servlet-class init-param param-namemessage/param-name param-valueSembawang/param-value /init-param init-param param-namerepeats/param-name param-value5/param-value /init-param /servlet Milt Epstein Research Programmer Software/Systems Development Group Computing and Communications Services Office (CCSO) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
Netfolio - Self promotion ??
Title: Netfolio - Self promotion ?? Can somebody at netfolio stop bombarding us with these messages ? Is this self promotion or what ?? This is more of a problem than the problem itself. -Original Message- From: NetFolio-AntiVirus-Wall [mailto:NetFolio-AntiVirus-Wall] Sent: Monday, May 14, 2001 3:11 PM To: [EMAIL PROTECTED] Subject: InterScan NT Alert Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 18:11:21 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
tomcat, JNDI naming, and OracleDataSource
I don't know if my original message made it to the list yet. I received the following error when I tried to send a question to tomcat-user list: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 User unknown) I'm not sure why it redirected to namezero.com. Hope this one makes it! I'm trying to get a JNDI example of my own working - the one in the example context works fine. I originally wrote because I couldn't even get an IntialContext instantiation to work. I solved that by making sure the naming.jar file was in my application-context classpath. Actually, I hope the first message didn't make it to the list! Anyway, here's the problem. In my code, I instantiate an InitialContext and then do a lookup for a DataSource (connection factory). The lookup fails with the following exception: javax.servlet.ServletException: NamingNotFound Exception while looking up java:comp/env/jdbc/NamingDataSource: Name java:comp is not bound in this Context at NamingServlet.init(NamingServlet.java:39) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:802) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:583) 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:879) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225) 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:879) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2175) 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:879) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java:219) 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:879) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:827) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:904) at java.lang.Thread.run(Thread.java:484) I'm at home right now so I don't have the code in fron of me but it is basically as follows (with the naming exceptions caught and turned into ServletExceptions): import javax.naming.*; import javax.sql.*; public void init( ServletConfig config ) throws ServletException { super.init(config); InitialContext ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup(java:comp/env/jdbc/NamingDataSource); } and here is my web.xml file: ?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 display-nameNaming Test/display-name descriptionTest JNDI Naming/description servlet servlet-namenaming/servlet-name servlet-classNamingServlet/servlet-class /servlet servlet-mapping servlet-namenaming/servlet-name url-pattern/naming/url-pattern /servlet-mapping resource-ref res-ref-namejdbc/NamingDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app So the exception says: Name java:comp is not bound in this Context but isn't it enough to declare/define it in my web.xml file. I'm going to look through the ejb specification tomorrow in case it sheds any light (since the servlet spec says naming and resource references are described in the ejb spec). As an aside, what I'm actually trying to do is get an OraclePooledConnectionDataSource (I think that's the class name?) with the base class OracleDataSource in the oracle.jdbc.pool package but I thought I'd start with a simpler case. I'm also waiting to see if
Re: resultset Question
Duck, My apoligies. I have been spending the last couple weeks learning tomcat and servlet type stuff and have been asking about any confusing things I come across with this on this list. Even though I'm working on a servlet I suppose that question could have been better directed at a java database kind of list. Thanks for the tip, Kevin - Original Message - From: Duck-Jin Chun To: '[EMAIL PROTECTED]' Sent: Monday, May 14, 2001 5:54 PM Subject: RE: resultset Question Kevin, There are 2 problems with your message. First, this question is extremely off topic for this mailing list. Second, you do not say what kind of errors and/or results you get by executing your current code. You simply say you "can't seem to grab the data". Not very helpful. But since I hate it when people just scream "off topic"... Take a look at the api documentation for java.sql.ResultSet.next(). The next() method needs to be called before you start calling the get*() methods. -Duck -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 5:16 PMTo: [EMAIL PROTECTED]Subject: resultset Question I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'");dFolder = resultSet.getString("folder");dModule = resultSet.getString("dmod");dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
Re: InterScan NT Alert
would someone please black-hole netfolio.com?
Redirects when mailing to this list RE: tomcat, JNDI naming, and OracleDataSource
Kevin, and others. When you see messages like this, it means that the list tried to send email to that person (in your case [EMAIL PROTECTED]) and that email address was no good. This does NOT mean that the rest of the list didn't get your email. There is no need to post a second time. I just delete all the bounce/redirect messages that I get after sending to this list. -Original Message- From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 3:35 PM To: [EMAIL PROTECTED] Subject: tomcat, JNDI naming, and OracleDataSource I don't know if my original message made it to the list yet. I received the following error when I tried to send a question to tomcat-user list: - The following addresses had permanent fatal errors - [EMAIL PROTECTED] (reason: 550 User unknown) I'm not sure why it redirected to namezero.com. Hope this one makes it! I'm trying to get a JNDI example of my own working - the one in the example context works fine. I originally wrote because I couldn't even get an IntialContext instantiation to work. I solved that by making sure the naming.jar file was in my application-context classpath. Actually, I hope the first message didn't make it to the list! Anyway, here's the problem. In my code, I instantiate an InitialContext and then do a lookup for a DataSource (connection factory). The lookup fails with the following exception: javax.servlet.ServletException: NamingNotFound Exception while looking up java:comp/env/jdbc/NamingDataSource: Name java:comp is not bound in this Context at NamingServlet.init(NamingServlet.java:39) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:802) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:583) 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:879) 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.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:879) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2175) 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:879) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :162) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperValve.java :219) 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:879) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 827) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:904) at java.lang.Thread.run(Thread.java:484) I'm at home right now so I don't have the code in fron of me but it is basically as follows (with the naming exceptions caught and turned into ServletExceptions): import javax.naming.*; import javax.sql.*; public void init( ServletConfig config ) throws ServletException { super.init(config); InitialContext ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup(java:comp/env/jdbc/NamingDataSource); } and here is my web.xml file: ?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 display-nameNaming Test/display-name descriptionTest JNDI Naming/description servlet servlet-namenaming/servlet-name servlet-classNamingServlet/servlet-class /servlet servlet-mapping servlet-namenaming/servlet-name url-pattern/naming/url-pattern /servlet-mapping resource-ref res-ref-namejdbc/NamingDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /web-app
Re: Tomcat and SSL
Kevin; Get this; I got it to work by changing the steps around; 1) Delete your old keyring (/root/.keystore) file completely unless you can't for whatever reason. Now build a new keyring file; 2) keytool -delete -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 4) openssl -import -v -trustcacerts -alias tomcat -file CERT.pem 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. At 07:41 PM 5/14/2001 +0200, you wrote: Hi All, I need to setup Tomcat standlone with SSL support, I do it according to Tomcat's user-guide in the following step using tomcat account: I modified the java.security before did these keytool -genkey -alias tomcat -keyalg RSA openssl req -new -out REQ.pem -keyout KEY.pem openssl req -x509 -in REQ.pem -key KEY.pem -out CERT.pem then verify openssl req -verify -in REQ.pem openssl req -verify -in REQ.pem -key KEY.pem openssl req -text -in REQ.pem everything looks well, but when I do: keytool -import -v -trustcacerts -alias tomcat -file CERT.pem get the error messages, Enter keystore password: changeit keytool error: java.lang.Exception: Public keys in reply and keystore don't match So tried to delete all files in /home/tomcat: .keystore and *.pem So I want to repeat the above steps keytool -genkey -alias tomcat -keyalg RSA get the error messages Enter keystore password: changeit keytool error: java.lang.Exception: Key pair not generated, alias tomcat already exists I never use SSL before and very confused now, are there some documentation to do this step by step? any help are highly appreciated! Kevin
Re: Tomcat and SSL - FOLLOW UP
I should note also that I did this with 3.2.2 beta 5 and protocol 12. -Tim At 04:27 PM 5/14/2001 -0700, you wrote: Kevin; Get this; I got it to work by changing the steps around; 1) Delete your old keyring (/root/.keystore) file completely unless you can't for whatever reason. Now build a new keyring file; 2) keytool -delete -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 4) openssl -import -v -trustcacerts -alias tomcat -file CERT.pem 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.
Fwd: Re: Tomcat and SSL
And the 2nd step isn't a delete, just ignore it all together. 2) keytool -delete -alias tomcat -keyalg RSA
RE: Trouble in Mapping URL! HELP!!
Hmmm... you should check out an Apache list. This has nothing to do with Tomcat. -Original Message-From: bobby [mailto:[EMAIL PROTECTED]]Sent: Sunday, April 22, 2001 10:01 PMTo: [EMAIL PROTECTED]Subject: Trouble in Mapping URL! HELP!! I am using Apache 1.3.13,and want to map URL "http://localhost/new" to my directory: /home/mydir/newI had appended below into /etc/httpd/httpd.conf Alias /new "/home/mydir/new"Directory "/home/mydir/new" Options Indexes FollowSymLinks Allow from all/Directory But when I attempted to connect to "http://localhost/new",I was told that I have no permission for this directory!How can it be?
Re: help with binding issue
Sounds like you already have a socket listening on 8080. Check your processes to see if an instance of tomcat is already up. Or just open a browser and target localhost:8080 and see if anything responds. On Mon, 14 May 2001, you wrote: I am trying to set up tomcat 3.2.1 and getting the following exception when I start it: 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /examples ) 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( ) 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /test ) 2001-05-14 07:24:30 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default ServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav a: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) Any suggestions? Thanks in advance!! Tia -- Richard Draucker, [EMAIL PROTECTED] Protected-Data.Com www.protected-data.com Remote data support for web developers.
RE: help with binding issue
I verified that an instance of tomcat is not running. Also, I get the same error if I change the default port in the web.xml file. This machine is a server also running IIS, could that be the problem? -Original Message- From: Richard Draucker [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 7:42 PM To: [EMAIL PROTECTED] Subject: Re: help with binding issue Sounds like you already have a socket listening on 8080. Check your processes to see if an instance of tomcat is already up. Or just open a browser and target localhost:8080 and see if anything responds. On Mon, 14 May 2001, you wrote: I am trying to set up tomcat 3.2.1 and getting the following exception when I start it: 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /examples ) 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( ) 2001-05-14 07:24:30 - ContextManager: Adding context Ctx( /test ) 2001-05-14 07:24:30 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 FATAL:java.net.BindException: Address in use: JVM_Bind java.net.BindException: Address in use: JVM_Bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397) at java.net.ServerSocket.init(ServerSocket.java:170) at java.net.ServerSocket.init(ServerSocket.java:121) at org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default ServerSocketFactory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi nt.java:239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav a: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) Any suggestions? Thanks in advance!! Tia -- Richard Draucker, [EMAIL PROTECTED] Protected-Data.Com www.protected-data.com Remote data support for web developers.
Re: Jsp reloading
Hi crowd, what I do is to touch the .jsp file whenever I update some classes far behind. If the classes are quite direct belonging to your webapp it can be a good idea to put them to /tkhome/webapps/yourapp/web-inf/classes. You can also put the .java files there and tomcat will compile them for you whenever you change something. Sascha
Problem with embedded flash in jsp files
Hi guys, I wonder if any of you guys have similar problem as I have experienced. Recently, we have decided to replace some of our mouseover effects with flash swf files, but after replacing with the swf files, we would have the problem of the webpage not refreshed. We would have to specifically refresh the jsp page. You might want to take a look at the website http://www.hdbay.com/apps/jsp/login/userlogintray.jsp Any form of help/advice would be greatly appreciated! Best Regards, @p
Re: JDBC Realm is gone
Bip Thelin wrote: If you wanna use encrypted password you have to turn on digest on the realm. Look in JDBCRealm-howto, basically you turn on digest and choose the algorithm you want to use, then you have to generate your password with the same algoritm. i.e. Realm ... Digest=MD5 And where... this would be? I have visited www.apache.org/tomcat/src/doc/JDBCRealm.howto, yet there's no mention about Digest realms. (I use Tomcat 4.0b4). Yes, I have stored the password using MD5 and added 'Digest=MD5' on the server.xml. Now I still can't login. It's getting better, though. Yesterday, I only had HTTP status 401, without the login panel. For convenience there's a public class in JDBCRealm that generates the password for you, again this is outlined in the JDBCRealm-howto. It seems that you have access to a newer JDBCRealm-howto; where did you get it? BTW, I have the following in my webapp's web.xml: login-config auth-methodDIGEST/auth-method realm-nameTest Application/realm-name /login-config Interestingly, if I misspelled the DIGEST above, then the webapp would run without any authentication. I think it should be the other way around; if Tomcat is not so clear about the authentication methods, then block the access. Oki
Re: Tomcat/Catalina
Hmm.. no response. Did I miss something? Or, was there a dispute way long ago...? Any FAQ to read? Oki
Re: Tomcat new Install/Startup/Shutdown
neyyadupakkam sundarasekaran wrote: I downloaded jakarta-tomcat-3.2.1.zip and unziped it to my C: drive. I set TOMCAT_HOME, JAVA_HOME, PATH in autoexec.bat file. I re-booted the PC/windows 2000 I think unzipping the .zip file wouldn't do anything with Windows registry; rebooting the system is an overkill. and tried to run bin\startup.bat. It opens a new window and closes immediately without any error messages. But, when I tried to run bin\shutdown.bat, it throws classNotFound exection in main thread. Try to run catalina.bat. catalina run This will have the DOS window staying up, so you will be able to shut Tomcat down using ctrl-c. Could you please tell me if my installtion is right and what is the problem I getting with shutdown? Also, when I run startup repeatedly, I used to get a message saying Tomcat is already running. Installing Tomcat would need extracting the .zip file and run one of the startup scripts; that's it. Basically, it runs perfectly out of the box (well, you'd need JAVA_HOME set up, I guess). But, now I am not getting any message. What messages are you expecting? Oki
Re: JDBC Realm is gone
Bip Thelin wrote: On Mon, 14 May 2001, Oki DZ wrote: I already have the JDBC connection and the tables set up. I also looked up in the bottom of the Tomcat Manager's web.xml. Problem is, the auth-method attribute (?) declared as BASIC; what does that mean? In Apache web server parlance, AFAIK, it means clear text authentication using Unix crypt encryption. I'm not so clear. Last week I tried to put a plain text and also crypt()-ed test password on the users' table, but didn't get it working. I don't know what the problem was. What I did was to encrypt a test password using perl -e 'print crypt(, test);' and then stored it on the database. If you wanna use encrypted password you have to turn on digest on the realm. Look in JDBCRealm-howto, basically you turn on digest and choose the algorithm you want to use, then you have to generate your password with the same algoritm. i.e. Realm ... Digest=MD5 For convenience there's a public class in JDBCRealm that generates the password for you, again this is outlined in the JDBCRealm-howto. Note that the references to `Digest' with a capital `D' in server.xml and the JDBCRealm class must be `digest' with a lower-case `d'. The usage of the public class (in 3.3 at least) is java org.apache.tomcat.modules.aaa.JDBCRealm -a MD5 passwd1 [passwd2 ...] The `MD5' may be replaced by another supported algorithm (only MD2 or SHA, I think), and you may provide one or more plaintext passwords to be digested. Peter -- Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest Lord, to whom shall we go?
RE: resultset Question
Check out the sun JDBC tutorial at : http://java.sun.com/docs/books/tutorial/jdbc/index.html. That tutorial really is a great place to start when you are learning JDBC. - Midian -Original Message-From: Kevin Fonner [mailto:[EMAIL PROTECTED]]Sent: Monday, May 14, 2001 2:16 PMTo: [EMAIL PROTECTED]Subject: resultset Question I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'"); That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery("SELECT * FROM userfolders WHERE username=\'" + userName + "\'");dFolder = resultSet.getString("folder");dModule = resultSet.getString("dmod");dModulePath = resultSet.getString("dmod_path"); Thanks, Kevin
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 23:44:45 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. begin 600 ' userName ')EMFONTDIV DIVFONT faceArial size2That res ` end
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 23:44:45 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Sender, NetFolio's Virus-Wall has detected virus(es) in your e-mail attachment. Date: Mon, 14 May 2001 23:44:45 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Mon, 14 May 2001 23:44:45 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I would appreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; Action: cleaned Virus: Email_Flaw_MIME_Tag_Overflow This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
Re: Cleaned virus file \' + userName + \');/EM/FONT/DIV DIVFONT face=Arial size=2That resultset would contain the first record.nbsp; But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem.nbsp; If anybody has any ideas I wouldappreciate themBR/DIV/FONT DIVFONT face=Arial size=2resultSet= statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');BRnbsp;nbsp;nbsp;dFolder = resultSet.getString(folder);BRnbsp;nbsp; is attached
Hi, Can anybody explain me what is this InterScan E-Mail Virus is about. Best Regards Moin. NetFolio-AntiVirus-Wall wrote: InterScan E-Mail VirusWall has cleaned all the viruses contained in the following attached file. The sender of the original file was [EMAIL PROTECTED]. This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail. Name: ' userName ')EMFONTDIV DIVFONT faceArial size2That res ' userName ')EMFONTDIV DIVFONT faceArial size2That resType: unspecified type (application/octet-stream) Encoding: x-uuencode
inetinfo CPU usage
Hi, We are running Tomcat with IIS and see that the CPU utilization increases drastically after a couple of accesses and stays there. Restarting IIS or killing inetinfo seems to be the only solution. However on accessing the application from http://localhost:8080/ABC we do not see any problems. System Info. -- Dual CPU Win2K 5.00.2195 Service Pack1, Tomcat3.1 and IIS 5.0 On testing the application on other servers with a similar configuration but with single CPUs we do not see this problem. Could this be because of the dual CPUs. Is there a workaround to this problem Thanks in advance Vishwa