Whos that ------------------------
Who is that F___ Who tring to Fill our group with Viruses Ban him .
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.nb
To all: You have my appologies... the damn thing was being configured when it received some questionable mail. It's been fixed. Regards, Jack Steve Downey wrote: Some HTML mail triggered the virus detection software on our mail system. The virus wall is set to return a message to the sender, telling them that a virus was detected. This is not entirely appropriate for a mailing list. I'm working with my security architect to fine tune this behaviour I haven't analyzed this particular incident, yet. Last week's was a rather nasty Outlook remailer. -Original Message- From: Moin Anjum H. [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 11:52 PM To: [EMAIL PROTECTED] Subject: 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.nb 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 res Type: unspecified type (application/octet-stream) Encoding: x-uuencode 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: Tomcat/Catalina
Hmm.. no response. Did I miss something? Or, was there a dispute way long ago...? Any FAQ to read? i think, it just new name,..cmiiw udah baca yg ini ? http://jakarta.apache.org:8080/jyve-faq/Turbine/screen/DisplayQuestionAnswer /action/SetAll/project_id/2/faq_id/12/topic_id/40/question_id/647
Query
Hi, Please Could u tell me How to make tomcat a service in the Windows NT. is there any provision in the tomcat to do so. Thanks and Regards Deepak Kumar Mankotia
Re: JDBC Realm is gone
Hi, I can get the MD5 authentication working. In my server.xml: Context path=/test docBase=test debug=9 reloadable=true Realm className=org.apache.catalina.realm.JDBCRealm debug=99 digest=MD5 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://myhost.com/James connectionName=guest connectionPassword= userTable=Users userNameCol=username userCredCol=password userRoleTable=userroles roleNameCol=rolename / /Context I guess, it's the meaning of attaching a realm to a context; ie: inserting the realm element in the context element. My webapp's web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd; web-app servlet servlet-namesample/servlet-name servlet-classSampleServlet/servlet-class init-param param-nameproperties/param-name param-valueWEB-INF/sample.properties/param-value /init-param security-role-ref role-nametest/role-name !-- this could be arbitrary it seems. Tomcat doesn't use it; ie: the servlets don't have hard-wired internal roles -- role-linktomcat/role-link !-- ^^ this link, links to the role-name in the auth-constraint below -- /security-role-ref /servlet servlet-mapping servlet-namesample/servlet-name url-pattern/sample/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint !-- Define the Login Configuration for this Application -- login-config auth-methodBASIC/auth-method !-- ^ this has to be BASIC (no DIGEST, to be exact :-) meaning: using the browser login box -- realm-nameTest Application/realm-name /login-config /web-app BTW, if I don't want to use any role for the authentication, how should I proceed? I mean, username-password pairs in the users' database should be sufficient. (With the roles set up, I have to maintain another table; ie: userroles.) BTW2, useful references: * Tomcat docs in the source directories. * http://e-docs.bea.com/wls/docs60/programming/web_xml.html Oki
doubt
hello, I am using jakarta-tomcat-3.2 with apache 1.3.12.while running my program with html and servlet it is generating an error log dialog box and tomcat is getting shutdown automatically.while registering a new user ,it is working fine(which is commented in program ) but when i am validating for user ,it is working fine but after getting the result it is generating an error log dialog box and tomcat is getting terminated .i am sending the full program and attaching the error log dialog box with it.any suggestions in this regard will be appreciated. uruj package com.bodhtree.espeak.BT3C.login; //java Io Classes import java.io.PrintWriter; import java.io.IOException; //java util Classes import java.util.Hashtable; import java.util.Enumeration; //javax http Classes import javax.servlet.http.HttpSession; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; public class ValidationServlet extends HttpServlet { public void service(HttpServletRequest req,HttpServletResponse res) throws IOException { PrintWriter out=res.getWriter(); HttpSession mysession = req.getSession(true); String username= req.getParameter(username); System.out.println(username); String password= req.getParameter(password); System.out.println(password); String nickname= req.getParameter(nickname); System.out.println(nickname); if(nickname==null) { try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection con = DriverManager.getConnection(jdbc:odbc:3C); System.out.println(Connected to database); PreparedStatement psq = con.prepareStatement(SELECT username FROM usertable WHERE password='+password+'); System.out.println(after preparedStatement); ResultSet rs = psq.executeQuery(); System.out.println(### The Resultset is ##+rs); if(rs.next()==false) { con.close(); System.out.println(Before closing the connection); res.sendRedirect(/bt3c/UserRegistration.html); } else { String user=rs.getString(username); mysession.putValue(username,username); String str=(String)mysession.getValue(username); System.out.println(Has put the value into the session+user); con.close(); res.sendRedirect(/bt3c/CommunityHtml.html); } }// END OF try BLOCK catch(Exception e) { e.printStackTrace(); } } /*try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection cons = DriverManager.getConnection(jdbc:odbc:3C); System.out.println(Connected to database); String sql= INSERT INTO usertable(username,password,nickname) VALUES (?,?,?); PreparedStatement prst = cons.prepareStatement(sql); prst.setString(1,username); prst.setString(2,password); prst.setString(3,nickname); prst.executeUpdate(); System.out.println(Inserted values); cons.close(); System.out.println(Connection closed); mysession.putValue(username,username); }catch(Exception e) { e.printStackTrace(); }*/ } } Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie inline: error.jpg
jsp engine init params
how do i set init parameters for jsp engine? i wnat to stop keeping generated sources from jsp files. there is an example in tomcat faq how to edit web.xml to pass init params (keepgenrated=false) to jsp engine but it doesn't work for me. infact any request to that context is not recognized by tomcat and it complains that it can't find resource (404). there is some more interesting init parameters and i'd like to use them but when tomcat starts it says this: 2001-05-15 09:50:12 - Ctx( /MyTest ): Removing duplicate servlet jsp jsp(org.apache.jasper.runtime.JSPServlet/null) 2001-05-15 09:50:12 - Ctx( /MyTest ): Removing duplicate *.jsp - jsp(org.apache .jasper.servlet.JspServlet/null) what does all this mean? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: jsp engine init params
Please unsubscribe me. Thanks -Original Message- From: Dario Novakovic [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:54 AM To: tomcat user mailing list Subject: jsp engine init params how do i set init parameters for jsp engine? i wnat to stop keeping generated sources from jsp files. there is an example in tomcat faq how to edit web.xml to pass init params (keepgenrated=false) to jsp engine but it doesn't work for me. infact any request to that context is not recognized by tomcat and it complains that it can't find resource (404). there is some more interesting init parameters and i'd like to use them but when tomcat starts it says this: 2001-05-15 09:50:12 - Ctx( /MyTest ): Removing duplicate servlet jsp jsp(org.apache.jasper.runtime.JSPServlet/null) 2001-05-15 09:50:12 - Ctx( /MyTest ): Removing duplicate *.jsp - jsp(org.apache .jasper.servlet.JspServlet/null) what does all this mean? __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
NES tomcat: Zuleta email
Jesse Reynolds wrote: At 13:11 +0200 11/5/2001, Hassan Siddiqui wrote: I've built a nsapi_redirector.so using Jose Zuleta's advice in a prev email on this mailing list (8 Feb 2001), and configured my Netscape Server obj.conf file according to Gal Shachor's Tomcat Netscape How-To. The relevant entries to my obj.conf file read: Is there any chance you could repost Jose Zuleta's advice from 8 Feb 2001 on building nsapi_redirector.so ??? I am trying to work out how to get tomcat and nes working on solaris, as are a whole bunch of people who have been asking this question on this list lately... Then maybe i'll run into the same problem you're now having ;-) Cheers Jesse No probs, Jesse. I'm a newbie on this mailing list, and I had found it via a google search: http://www.perl.jann.com/tomcat/200102/msg00830.html His full email is also copied below. BTW I fixed the problem that I had had when I posted the email you responded to (silly mistake - forgot to add a newline between Init fn specifiers in obj.conf), but it that only revealed *another* problem, which I shall post in a separate message. I'm glad to hear of someone else working on a similar problem at the moment; hopefully we can help each other out. (But what the tomcat project needs is a decent searchable mailing list and faq - I couldn't find either). Cheers -Hassan. Modified Makefile NSAPI connector under Solaris 2.6 (hope thi s helps!) To: tomcat-user@xx, tomcat-dev@xx Subject: Modified Makefile NSAPI connector under Solaris 2.6 (hope thi s helps!) From: José Vicente Núñez Zuleta javajosevnz@x Date: Thu, 8 Feb 2001 06:02:45 -0600 (CST) Delivered-To: mailing list [EMAIL PROTECTED] list-help: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Reply-To: tomcat-user@xx Greetings I managed to compile the NSAPI connector for Jackarta-Tomcat under the following configuration (itried to find if someone managed to compile the module but i found no answer). Thi is my current configuration * java version 1.3.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_01) Java HotSpot(TM) Client VM (build 1.3.0_01, mixed mode) * GNU Make version 3.76.1, by Richard Stallman and Roland McGrath. * Tomcat 3.2 * Netscape Enterprise Server 3.6 * SunOS 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-250 Here are the steps to compile the NSAPI connector using this modified Makefile: 1) Define the following 3 environment variables (JAVA_HOME, JK_INCLUDE, SUITESOPT_HOME) (i'm using tcsh on the example but you should change the syntax on other shells. Also remeber to put your real paths): setenv JAVA_HOME /local/usr/j2se setenv SUITESPOT_HOME /local/netscape/suitespot setenv JK_DIR /local5/src/jakarta_source/jakarta-tomcat/src/native/jk 2) Check the new Makefile just to see if everithing is Ok: #Modified by Jose Vicente Nunez Zuleta ([EMAIL PROTECTED]) on 07/02/2001 # Defines for example NSAPI programs running under SOLARIS CC_CMD=gcc -DNET_SSL -DSOLARIS -D_REENTRANT LD_SHAREDCMD=ld -G all: OS_TYPE=solaris INCLUDEDIR=$(SUITESPOT_HOME)/include JAVA_INCLUDE=$(JAVA_HOME)/include JK_INCLUDE=$(JK_DIR) VPATH=$(JK_INCLUDE):'pwd' JK_OBJS = jk_ajp12_worker.o jk_ajp13_worker.o jk_jni_worker.o jk_map.o jk_nwmain.o \ jk_sockbuf.o jk_util.o jk_ajp13.o jk_connect.o \ jk_lb_worker.o jk_msg_buff.o jk_pool.o \ jk_uri_worker_map.o jk_worker.o jk_nsapi_plugin.o INCLUDE_FLAGS=-I$(INCLUDEDIR) -I$(INCLUDEDIR)/base -I$(INCLUDEDIR)/frame -I$(JAVA_INCLUDE) -I$(JAVA_INCLUDE)/$(OS_TYPE) -I$(JK_INCLUDE) COMMON_DEFS=-DMCC_HTTPD -DXP_UNIX -DSPAPI20 -DSOLARIS -Wall all: nsapi_redirector.so nsapi_redirector.so: $(JK_OBJS) $(LD_SHAREDCMD) $(JK_OBJS) -o nsapi_redirector.so $(EXTRA_LDDEFINES) .c.o: $(CC_CMD) $(COMMON_DEFS) $(INCLUDE_FLAGS) -c $ 3) Compile the source the NSAPI redirector (i suppouse yo are in the same directory as the Makefile): make -f Makefile.solaris 4) Copy the nsapi_redirector.so file to the desired location and follow the instructions at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-netscape-howto.html I followed all the instructions and the NSAPI module worked without a problem. I hope this help anyone with the same problem i got :) José Vicente Núñez Zuleta = José Vicente Núñez Zuleta System Engineer / Developer Development Leader, Diario El Universal http://www.eluniversal.com http://www.autofuturo.com (current project) -- Hassan Siddiqui ESA/SCI/SAX Tel: +31-(0)71-565 5899Room Dd 015, ESTEC Fax: +31-(0)71-565 4690PO Box 299, 2200 AG Noordwijk http://astro.estec.esa.nl
Problem of setting up apache with tomcat using mod_jk in Linux
I have install tomcat and mod_jk as http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html tell, but the jsp and servlet example are don't work. If I select jsp file at example, it display raw jsp code but don't pass to tomcat to process. If I select servlet examples, it dispaly file not find error. I have include the files under apache config file as state in the document: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /var/tomcat/conf/workers.properties JkLogFile /var/tomcat/logs/mod_jk.log JkLogLevelwarn Include /var/tomcat/conf/mod_jk.conf-auto And from the mod_jk log, I find the following entry: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters How can I solve?
AW: InterScan NT Alert
sorry we are working on this behaviour. regards lothar
Re: URGENT! Must form-based login run inside TOMCAT_HOME/webapps?
Mascha Kluge wrote: Hi all there, I asked the same a few days ago, but it is very URGENT so I ask again. I'm doing form-based login with Tomcat 3.2.1; must my application run in the folder TOMCAT_HOME/webapps? When it doesn't I get the error j_security_check not found. You can try these links: http://e-docs.bea.com/wls/docs60/programming/web_xml.html#1019996 http://e-docs.bea.com/wls/docs60/adminguide/config_web_app.html#webapp-auth It might be that your forms don't have j_security_check variables. Oki
Re: Developing on a different platform from production
Dick Poon wrote: Me too, I do the development on Window and going to deploy it on Linux:-). Hm.. that's interesting; I do the other way around. Try Gnome, you'd love Linux on your desktop. Oki
Re: inetinfo CPU usage
I have the 3 machines with similar configuration but never faced such problem Check your server configuration contains a '/' (root) context, similar posts were made earlier and found that missing root context can bring your machine to its knees (perhaps a bug in tomcat) hope this helps regards venkat 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Using Digest method of JDBCRealm
Larry Rogers wrote: Hi All, I'm trying to use the static Digest method included in JDBCRealm in Tomcat 4b3 from the command line. When I execute the following I use Tomcat 4b4. $ java -classpath catalina.jar org.apache.catalina.realm.JDBCRealm -a MD5 pass from tomcat/server/lib, I get the output at the end of this message. I have the same trouble using the Digest method from a simple web application. I believe that the above command is for getting the digest of the entered password. I looked up your mail header, you use Linux; so, you can get md5sum program for digesting files. I want to use the Digest method provided by Tomcat to store encrypted passwords in the JDBCRealm database for use in authenticating users of my web apps. If anyone is able to do this, what did you have to do to get it to work? You can see my other posting on JDBCRealm and MD5 passwords. Oki
Re: user authentication documentation
Dante le Poole wrote: does anyone know of any docs or examples of how to setup form-based user authentication? Try this one: http://e-docs.bea.com/wls/docs60/adminguide/config_web_app.html#webapp-auth Oki
Hot Deploy.
is there such a thing like Hot deployment of new servlets and/or servlets. this requires the editing of the context's web.xml, can this be done without TC restart?. Allan. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: inetinfo CPU usage
Venkat, Thanks for your help. Was this problem when the root context was not found or when the root context pointed to an incorrect location. Regards, Vishwa -Original Message- From: Venkat [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 2:13 PM To: [EMAIL PROTECTED] Subject: Re: inetinfo CPU usage I have the 3 machines with similar configuration but never faced such problem Check your server configuration contains a '/' (root) context, similar posts were made earlier and found that missing root context can bring your machine to its knees (perhaps a bug in tomcat) hope this helps regards venkat 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 _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
AW: Whos that ------------------------ This is our viruswall (we are working on.....)
that is our viruswall this was triggerd by an attachment (html) from the list sorry we are working on this about 15 min ... lothar -Ursprüngliche Nachricht- Von: Sujith [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Mai 2001 08:33 An: [EMAIL PROTECTED] Betreff: Whos that Who is that F___ Who tring to Fill our group with Viruses Ban him .
Re: Using Digest method of JDBCRealm
On Tue, 15 May 2001, Oki DZ wrote: [...] I'm trying to use the static Digest method included in JDBCRealm in Tomcat 4b3 from the command line. When I execute the following I use Tomcat 4b4. $ java -classpath catalina.jar org.apache.catalina.realm.JDBCRealm -a MD5 pass from tomcat/server/lib, I get the output at the end of this message. I have the same trouble using the Digest method from a simple web application. The main method of JDBCRealm has been removed in the later releases and will be probably me migrated to a standalone tool. I believe that the above command is for getting the digest of the entered password. I looked up your mail header, you use Linux; so, you can get md5sum program for digesting files. Yes, invoking main of the older JDBCRealm would return your password encrypted using MD5. Insert this password for your user in the DB to make use of it. I want to use the Digest method provided by Tomcat to store encrypted passwords in the JDBCRealm database for use in authenticating users of my web apps. If anyone is able to do this, what did you have to do to get it to work? You can see my other posting on JDBCRealm and MD5 passwords. Yes, look at Oki's previous mail in this thread but basically you would set your Realm entry to use digest i.e. Realm ... Digest=MD5/ and setup in web.xml which section of your site to protect. ..bip
Re: tomcat server takes all of my ip addresses?
Eero Volotinen wrote: No, because I want that both run port 80, but in different ip addresses? Is this possible in same machine? Try to define the following (it's in the server.xml): !-- Define the default virtual host -- Host name=myhost.com debug=0 appBase=webapps unpackWARs=true ^^ In my case, the machine myhost has another IP address, which is mapped to another domain. I have tried to access my webapp using the other domain; I couldn't. BTW, more of my server.xml: !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ !-- Define the default virtual host -- Host name=myhost.com debug=0 appBase=webapps unpackWARs=true Oki
Re: Hot Deploy.
Allan Kamau wrote: is there such a thing like Hot deployment of new servlets and/or servlets. this requires the editing of the context's web.xml, can this be done without TC restart?. Just a comment... If Tomcat can be shutdown via a port, why can't it be told to read the new config using the same way? Restarting doesn't have to be done by shutting down the JVM; just read the new config, and apply the new values internally. Oki
Re: Hot Deploy.
On Tue, 15 May 2001, Allan Kamau wrote: is there such a thing like Hot deployment of new servlets and/or servlets. this requires the editing of the context's web.xml, can this be done without TC restart?. There is no HotDeploy, however you can set a Context .. to be reloadable which means that servlet classes is reloaded if changed. If you want to add a servlet you will have to edit web.xml and restart tomcat. ..bip
Compiling Java with Xerces SAX
Hi, I don't know, and understand who I have to compile a source Java with Xerces. I have a programme named test.java In it : import java.io.IOException; import org.xml.sax.Attributes; import org.apache.xerces.parsers.SAXParser; When I compile it with javac test.java, I have this error occured : test : 14 : Class org.apache.xerces.parsers.SAXParser not found in import 1 error Or I have my xerces_1_2.jar under my directory, and when I list it I have org.apache.xerces.parsers.SAXParser.c Somebody is able to help me ? Sincerily PS
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
Re: Hot Deploy.
Why do you need to edit web.xml, whenever you add a servlet? I do not think there is anything editable that will help in adding servlets in the web.xml file. If you add a new servlet in an existing context, it should be automatically being recognised and run. Otherwise, if you want to add it in a new context, you need to change the server.xml, add the servlet and stop/start tomcat. Frans On 15 May 2001, at 2:34, Bip Thelin wrote: On Tue, 15 May 2001, Allan Kamau wrote: is there such a thing like Hot deployment of new servlets and/or servlets. this requires the editing of the context's web.xml, can this be done without TC restart?. There is no HotDeploy, however you can set a Context .. to be reloadable which means that servlet classes is reloaded if changed. If you want to add a servlet you will have to edit web.xml and restart tomcat. ..bip
Re: Hot Deploy.
On Tue, 15 May 2001, Frans Verhoef wrote: Why do you need to edit web.xml, whenever you add a servlet? I do not think there is anything editable that will help in adding servlets in the web.xml file. If you add a new servlet in an existing context, it should be automatically being recognised and run. Otherwise, if you want to add it in a new context, you need to change the server.xml, add the servlet and stop/start tomcat. Yes you are right, I think why he wanted to edit web.xml was to map the servlet to a url pattern. i.e. /myservlet/ ..bip
BUG IN TOMCAT ??? request.getRemoteUser() always returns null after authentication
BUG IN TOMCAT ??? request.getRemoteUser() always returns null after authentication I just came across an anomaly when using Tomcat : In the first case, I am using Apache with Weblogic as a servlet engine and the radius authentication module (similar to .htacess authentication) I call http://localhost/secure/index.jsp , apache prompts me for username and password, and once they are correct, the index.jsp page is displayed (served by weblogic). The request.getRemoteUser() method returns the username entered in the prompt. In the seconde case, I am using Apache with Tomcat as servlet engine and the radius authentication module Everything is the same as above, except that request.getRemoteUser() always returns null Any clues ? Is this a bug ? An open bug ? Is it in mod_jk or in Tomcat or Apache ? Thanks
RE: BUG IN TOMCAT ??? request.getRemoteUser() always returns null after authentication
Which version of tomcat ? Which connector ? - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Arnaud Dostes - NTI [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 12:32 PM To: [EMAIL PROTECTED] Subject: BUG IN TOMCAT ??? request.getRemoteUser() always returns null after authentication BUG IN TOMCAT ??? request.getRemoteUser() always returns null after authentication I just came across an anomaly when using Tomcat : In the first case, I am using Apache with Weblogic as a servlet engine and the radius authentication module (similar to .htacess authentication) I call http://localhost/secure/index.jsp , apache prompts me for username and password, and once they are correct, the index.jsp page is displayed (served by weblogic). The request.getRemoteUser() method returns the username entered in the prompt. In the seconde case, I am using Apache with Tomcat as servlet engine and the radius authentication module Everything is the same as above, except that request.getRemoteUser() always returns null Any clues ? Is this a bug ? An open bug ? Is it in mod_jk or in Tomcat or Apache ? Thanks
Follow-up : (no) BUG IN TOMCAT ??? request.getRemoteUser() always returns null after
Oh my god what I have done ! Sorry, there is no bug, just a programmer in a hurry who posts on the mailing-list without rtfm first =) It won't happen again... If anyone has questions about realms and authentication modules, I'm starting to be an expert. request.getRemoteUser() will send null if called by servlet or jsp outside the authentified realm...
RE: Apj13 and Java Object Streams
Could you send us an example code ?) - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Blair Dye [mailto:[EMAIL PROTECTED]] Sent: Monday, May 14, 2001 9:02 PM To: [EMAIL PROTECTED] Subject: Apj13 and Java Object Streams Hi, Tomcat 3.2.2 I have tried to switch protocols to Apjv13, but cant seem to get Object Serialization working. It throws a Not Serializable Exception even though everything works fine with Apj12. Anyone else had similar problems or solutions? Thanks Blair -- Sent through GMX FreeMail - http://www.gmx.net
Re: Problem of setting up apache with tomcat using mod_jk in Linux
hi, did you add the following lines into httpd.conf? # Load mod_jk # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c #Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel error Paths can be different according your system. Add the following lines just before the Section 3, Vritual Host #JkMount configuration # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 And also check the Context ... tags in the server.xml file that shows the right path for documents. Regards, Deniz... - Original Message - From: mailing [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 11:22 AM Subject: Problem of setting up apache with tomcat using mod_jk in Linux I have install tomcat and mod_jk as http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html tell, but the jsp and servlet example are don't work. If I select jsp file at example, it display raw jsp code but don't pass to tomcat to process. If I select servlet examples, it dispaly file not find error. I have include the files under apache config file as state in the document: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /var/tomcat/conf/workers.properties JkLogFile /var/tomcat/logs/mod_jk.log JkLogLevelwarn Include /var/tomcat/conf/mod_jk.conf-auto And from the mod_jk log, I find the following entry: [jk_uri_worker_map.c (334)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (184)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters How can I solve?
RTFM?
RTFM - I've seen this abbr. in use. What does it stand for? Sachin PS. I can see a few sniggering faces but how's a guy to know if he doen't ask?
HELP needed for InterScan NT Alert
hello i talked to our sysadmins, but we don't have any Interscan Virus Wall. so why what or who uses our domainname for posting mail to this usergroup. in the mail header it looks like that mail1.netfolio.com sends this mail, but why with a from: [EMAIL PROTECTED] ? any ideas ? regards lothar mailheader: Received: from mail.cardsys.at ([172.17.200.31]) by srv-csexch.cardsys.at with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 2GH96AKV; Tue, 15 May 2001 12:24:05 +0200 Received: from apache.org (h31.sny.collab.net [64.208.42.41]) by mail.cardsys.at (8.9.3/8.9.3) with SMTP id OAA01953 for [EMAIL PROTECTED]; Tue, 15 May 2001 14:26:29 +0200 Message-Id: [EMAIL PROTECTED] Received: (qmail 112 invoked by uid 500); 14 May 2001 22:03:59 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk Reply-To: [EMAIL PROTECTED] list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 99890 invoked from network); 14 May 2001 22:03:46 - Received: from unknown (HELO mail1.netfolio.com) (38.136.195.106) by h31.sny.collab.net with SMTP; 14 May 2001 22:03:46 - Received: by mymail.netfolio.com with Internet Mail Service (5.5.2650.21) id 285ZKVDQ; Mon, 14 May 2001 18:01:18 -0400 Received: from gatekeeper1 (10.1.50.1 [10.1.50.1]) by mail1.netfolio.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 285ZKVDK; Mon, 14 May 2001 18:01:12 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: InterScan NT Alert Date: Mon, 14 May 2001 18:05:53 -0400 X-Mailer: Internet Mail Service (5.5.2650.21) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
Re: RTFM?
RTFM - Read The Friendly Manual! -gnana Sachin Phatak wrote: RTFM - I've seen this abbr. in use. What does it stand for? Sachin PS. I can see a few sniggering faces but how's a guy to know if he doen't ask?
AW: RTFM?
RTFM :) Read The Fucking Manual (slang, Usenet, IRC) look at: http://www.io.com/docs/vera.html lothar -Ursprüngliche Nachricht- Von: Sachin Phatak [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 15. Mai 2001 13:08 An: [EMAIL PROTECTED] Betreff: RTFM? RTFM - I've seen this abbr. in use. What does it stand for? Sachin PS. I can see a few sniggering faces but how's a guy to know if he doen't ask?
RE: RTFM?
It's a crude term used by computer nerds in frustration meaning Read the fucking manual. Usually means that you have asked a question that is covered in the basic tutorials, or which is clearly documented somewhere or has already been covered in previous discussions. -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 12:08 To: [EMAIL PROTECTED] Subject: RTFM? RTFM - I've seen this abbr. in use. What does it stand for? Sachin PS. I can see a few sniggering faces but how's a guy to know if he doen't ask?
Re: RTFM?
Read The F'ing Manual Roger
RE: doubt
There is only one line in your program that is causing it to crash. That is: Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); (copied from your program listing below). If you were to look at Sun's Bug Parade for the ODBC Bridge you would find that there are about 4 bugs reporting that concurrent access to ODBC data sources causes an application to GPF/Dr Watson/crash. Sun's response has consistently been that the ODBC Bridge is an experimental proof of concept and is unsupported. Consequently this bug will not be fixed. Their advice (and that of all other developers who know of this) is to use a real JDBC driver. There are commercial grade drivers for ODBC and almost every other database in active use and development. Randy -Original Message- From: khan uruj [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 3:45 AM To: [EMAIL PROTECTED] Subject: doubt hello, I am using jakarta-tomcat-3.2 with apache 1.3.12.while running my program with html and servlet it is generating an error log dialog box and tomcat is getting shutdown automatically.while registering a new user ,it is working fine(which is commented in program ) but when i am validating for user ,it is working fine but after getting the result it is generating an error log dialog box and tomcat is getting terminated .i am sending the full program and attaching the error log dialog box with it.any suggestions in this regard will be appreciated. uruj package com.bodhtree.espeak.BT3C.login; //java Io Classes import java.io.PrintWriter; import java.io.IOException; //java util Classes import java.util.Hashtable; import java.util.Enumeration; //javax http Classes import javax.servlet.http.HttpSession; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.sql.*; public class ValidationServlet extends HttpServlet { public void service(HttpServletRequest req,HttpServletResponse res) throws IOException { PrintWriter out=res.getWriter(); HttpSession mysession = req.getSession(true); String username= req.getParameter(username); System.out.println(username); String password= req.getParameter(password); System.out.println(password); String nickname= req.getParameter(nickname); System.out.println(nickname); if(nickname==null) { try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection con = DriverManager.getConnection(jdbc:odbc:3C); System.out.println(Connected to database); PreparedStatement psq = con.prepareStatement(SELECT username FROM usertable WHERE password='+password+'); System.out.println(after preparedStatement); ResultSet rs = psq.executeQuery(); System.out.println(### The Resultset is ##+rs); if(rs.next()==false) { con.close(); System.out.println(Before closing the connection); res.sendRedirect(/bt3c/UserRegistration.html); } else { String user=rs.getString(username); mysession.putValue(username,username); String str=(String)mysession.getValue(username); System.out.println(Has put the value into the session+user); con.close(); res.sendRedirect(/bt3c/CommunityHtml.html); } }// END OF try BLOCK catch(Exception e) { e.printStackTrace(); } } /*try { Class.forName(sun.jdbc.odbc.JdbcOdbcDriver); Connection cons = DriverManager.getConnection(jdbc:odbc:3C); System.out.println(Connected to database); String sql= INSERT INTO usertable(username,password,nickname) VALUES (?,?,?); PreparedStatement prst = cons.prepareStatement(sql); prst.setString(1,username); prst.setString(2,password); prst.setString(3,nickname); prst.executeUpdate(); System.out.println(Inserted values); cons.close(); System.out.println(Connection closed); mysession.putValue(username,username); }catch(Exception e) { e.printStackTrace(); }*/ } } Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Re: Tomcat and SSL
Is it a stupid question? why no one answer me, my deadline is tomorrow : - Original Message - From: Kevin Pang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 11:38 AM Subject: 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
Re: Session Question
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 12:54 PM Subject: Session Question I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Yes, sessions are provided for this kind of thing. Note that Tomcat uses cookies to maintain the session if it can. It will use URL rewriting if cookies are disabled but you may have to amend your pages to support that. It may be worth looking at a web application framework such as Jakarta Struts that can run within Tomcat and help with some of this. John.
RE: Session Question
When it comes to form data, I always make a user object and bind this to a session. The user object will contain all my put/get calls. Therefore, I usually don't care what frame and/or page a user is on as long as the session is up, I have the user object to get my data. Then you can have another object used to parse through and do what you want with the data contained in the user/session object. Doug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 7:54 AM To: [EMAIL PROTECTED] Subject: Session Question I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Thanks in advance Jeff Sulman
Re: Session Question
The session is usually used to persist objects between tranactions with the client (browser). If you are gathering several input fields to write to the database towards the end of the session then using the session is the way to go. Or, you could use Java Script to gather all of the input fields from the frames you mentioned into hidden fields of the form being submitted and write to the database when the form is submitted. --- [EMAIL PROTECTED] wrote: I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Thanks in advance Jeff Sulman __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
W2K + isapi_redirect.dll + Tomcat, 2-byte chars
My server config is as follow: IIS port 80 Tomcat 8080 ajp12 8007 and the request is sent from IIS to Tomcat via isapi_redirect.dll. The problem is that when I have Chinese characters in my query string the params got lost if I make the request to port 80. It works fine if I make the request to port 8080 directly. I would guess that's something wrong with ajp12 or isapi_redirect.dll. Is it a configuration issue? or is is the implementation? What's the solution? Thanks. - derhong (¹¡¢·*.úÞ{¡¢(§]ë,jØm¶ÿ¨¥É¨h¡Ê
Re: Tomcat and SSL
The file you are searching for it's keystore. You must delete it. It's mentioned somewhere in the documentation... -- Regards Bernhard Wraase NET.KOSMOS Projektentwicklung und Management GmbH Tel.: +49 231 5522931 Fax: +49 231 5522930
web-based version of mailing list?
Hi This is probably a silly question, but ever since I subscribed to tomcat-user I've been bombarded with emails (200 a day). Is there a web-based searchable version of this forum available? How is everyone else coping? The best I can do is filter tomcat-user posts to a special mail folder. Cheers
unsibscribe
unsibscribe - The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Baltimore Technologies plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. In addition, certain Marketing collateral may be added from time to time to promote Baltimore Technologies products, services, Global e-Security or appearance at trade shows and conferences. This footnote confirms that this email message has been swept by Baltimore MIMEsweeper for Content Security threats, including computer viruses.
libioser12.so
Hi, I'm trying to get an InitialContext in a Servlet (Tomcat 3.3 - Unix) to call EJBs from an EJB-Container (J2EE-reference 1.2.1) Hashtable env = new Hashtable(); env.put (Context.INITIAL_CONTEXT_FACTORY, com.sun.enterprise.naming.SerialInitContextFactory); env.put (Context.URL_PKG_PREFIXES, com.sun.enterprise.naming); ctx = new InitialContext(env); By doing this the following error displays: ERROR! Shared library ioser12 could not be found. 2001-05-15 14:20:53 - Ctx(/MM) : Exception in R( /MM + /MM.do + null) - java.lang.UnsatisfiedLinkError: specia lLoadClass at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native Method) at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java :58) at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:180) at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:83) at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:378) at javax.rmi.CORBA.Util.loadClass(Util.java:213) at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObje ct.java:182) at javax.rmi.PortableRemoteObject.clinit(PortableRemoteObject.java:61) at com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:57) at com.sun.enterprise.naming.SerialContext.init(SerialContext.java:79) at com.sun.enterprise.naming.SerialInitContextFactory.getInitialContext(Serial InitContextFactory.java: 54) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.init(InitialContext.java:198) at MM.MMAction.getInitialContext(MMAction.java:49) at MM.MMAction.perform(MMAction.java:71) at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.j ava:1726) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1536) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:509) at javax.servlet.http.HttpServlet.service(HttpServlet.java) I think I have to include the libioser12.so under the lib $J2EE_HOME/nativelib in the Tomcat, but I dont know how to do this. Can anybody help me? Gruß Michael -- Java - write once, run anywhere
Re: Session Question
John, In what ways may I have amend my pages due to cookies being disabled? John Holman j.g.holman@qTo: [EMAIL PROTECTED] mw.ac.ukcc: Subject: Re: Session Question 05/15/01 07:15 AM Please respond to tomcat-user - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 12:54 PM Subject: Session Question I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Yes, sessions are provided for this kind of thing. Note that Tomcat uses cookies to maintain the session if it can. It will use URL rewriting if cookies are disabled but you may have to amend your pages to support that. It may be worth looking at a web application framework such as Jakarta Struts that can run within Tomcat and help with some of this. John.
Oops! I do know how to spell unsubscribe :) end
- The information contained in this message is confidential and is intended for the addressee(s) only. If you have received this message in error or there are any problems please notify the originator immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Baltimore Technologies plc will not be liable for direct, special, indirect or consequential damages arising from alteration of the contents of this message by a third party or as a result of any virus being passed on. In addition, certain Marketing collateral may be added from time to time to promote Baltimore Technologies products, services, Global e-Security or appearance at trade shows and conferences. This footnote confirms that this email message has been swept by Baltimore MIMEsweeper for Content Security threats, including computer viruses.
compile error on sco
Hi, I have installed jaxp-1.0.1 in /usr/local/jaxp-1.0.1. I have set CLASSPATH=/usr/local/jaxp-1.0.1 in my /etc/profile file. When I type ./build.sh in the tomcat directory I get the following: Buildfile: build.xml BUILD FAILED No JAXP compliant XML parser found. See http://java.sun.com/xml for the reference implementation. --- Nested Exception --- java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory at org.apache.tools.ant.Main.runBuild(Main.java) at org.apache.tools.ant.Main.main(Main.java) Total time: 0 seconds Can anyone help with this, I really need to get this compiled under SCO Openserver. Thanks Raymond http://www.it-systems.co.za
Re: Session Question
When cookies are disabled, http requests to your web application have to include the session id in order for the web container to find the correct session. For example, if a page contains a link pointing to your servlet, the URL for that link must be encoded using HttpServletResponse.encodeURL(). This means the page cannot be a static one. John. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 1:34 PM Subject: Re: Session Question John, In what ways may I have amend my pages due to cookies being disabled? John Holman j.g.holman@qTo: [EMAIL PROTECTED] mw.ac.ukcc: Subject: Re: Session Question 05/15/01 07:15 AM Please respond to tomcat-user - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 12:54 PM Subject: Session Question I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Yes, sessions are provided for this kind of thing. Note that Tomcat uses cookies to maintain the session if it can. It will use URL rewriting if cookies are disabled but you may have to amend your pages to support that. It may be worth looking at a web application framework such as Jakarta Struts that can run within Tomcat and help with some of this. John.
TTFL
:-) Thank The Friendly List Thanks The F'ing List :-) The redirect to vera was great. thanks sachin - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 5:00 PM Subject: Re: RTFM? Read The F'ing Manual Roger
RE: Session Question
Call HttpServletRequest.encodeURL() or encodeRedirectURL() on each URL you put in the page. -- Bill K. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 5:34 AM To: [EMAIL PROTECTED] Subject: Re: Session Question John, In what ways may I have amend my pages due to cookies being disabled? John Holman j.g.holman@qTo: [EMAIL PROTECTED] mw.ac.ukcc: Subject: Re: Session Question 05/15/01 07:15 AM Please respond to tomcat-user - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 12:54 PM Subject: Session Question I am currently writing a pretty complex data entry HTML page for an application. The HTML has 7 different frames where data is input, one represents the master table and the others detail tables. I am trying to come up with a way to keep all of the data entered into each frame for updating the database (I want to update all the records in one transaction). There some obvious ways of doing this as with invisible fields on the master frame, and URL rewriting (cookies are out in this case) but I have also been looking into using the Session object. I know the object is used for shopping carts on commercial web sites but would it be a good to use it to keep all the input values for various input forms? There will be from 40 - 50 items of data stored in the session object and a user will only be able to one form at a time? Yes, sessions are provided for this kind of thing. Note that Tomcat uses cookies to maintain the session if it can. It will use URL rewriting if cookies are disabled but you may have to amend your pages to support that. It may be worth looking at a web application framework such as Jakarta Struts that can run within Tomcat and help with some of this. John.
Re: simply this...
/mystuff1 rather giving in this manner , please give just / it works. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 2:58 PM Subject: simply this... In a message dated Tue, 15 May 2001 12:53:16 AM Eastern Daylight Time, Seasundown writes: TIA... Start with a pristene standalone Tomcat install. I simply wish to create a directory which would recognize servlets jsp files. A directory in addition to the current examples location. I've edited server.xml to provide 2 more contexts: - Context path=/examples -orig tag(still there) docBase=webapps/examples crossContext=false debug=0 reloadable=true /Context Context path=/mystuff1 --my new context entrys docBase=webapps/mystuff1 debug=0 reloadable=true /Context Context path=/mystuff2 --my new context entrys docBase=webapps/mystuff2 debug=0 reloadable=true /Context - Is there ANYTHING else to configure (other than placing a servlet and a jsp in this directory before being able to connect with: localhost:8080/mystuff1/mynewservlet localhost:8080/mystuff2/mynewjsp.jsp in order to have servlet jsp working?
RE: RTFM?
Please read the fine Jargon File, at http://www.tf.hut.fi/cgi-bin/jargon . -- Bill K. -Original Message- From: Sachin Phatak [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:08 AM To: [EMAIL PROTECTED] Subject: RTFM? RTFM - I've seen this abbr. in use. What does it stand for? Sachin PS. I can see a few sniggering faces but how's a guy to know if he doen't ask?
response.encodeURL and Apache 1.3.12
encodeURL appends ;jsessionid=something to the given URL (e.g. response.encodeURL(test.jsp) results in test.jsp;jsessionid=something). The Apache webserver can't handle such URLs. In other words, it is not possible to use the (for production systems recommended) tomcat-apache environment without using cookies to handle sessions. I know that there's a workaround with Apache's mod_rewrite module but IMHO this isn't a good solution. So I created a special encodeURL function that appends the session id somehow like test.jsp?jsessionid=something but I can't figure out how to tell tomcat to use that request variable as the session id. Thanx for your help, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
Re: newbie: instance problem
Hi Keith, Does this mean, when developing servlets one needs to stop and start tomcat to see the new version of the servlet that is being developed? -gnana Hawkins, Keith (Keith) wrote: I believe you are still seeing the old version because the session to your previous version is still active. If you restart Tomcat you should be see the change to your servlet. -Keith -Original Message- From: Gnanasekaran Thoppae [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 8:23 AM To: [EMAIL PROTECTED] Subject: newbie: instance problem Hi List, Platform: Tomcat 3.2, JDK 122, alpha-linux I have a simple servlet with doGet() method that prints to the browser some text via res.PrintWriter. But I noticed, that the first time when I execute the servlet, it works and the next changes I make and compile the same servlet and put in the same path as earlier, the changes are not visible in the 'reload' function of the browser. What should I do in order to make tomcat to unload the servlet after its execution? What is the best practise in loading and unload the servlet? Thanks. -gnana
Re: Trouble with mod_jk.so
I compiled Apache with gcc on the before mentioned box. Apache does run just fine without the tomcat module. Should I recompile Apache with some other options or something? Thanks! From: John P. Dodge Subject: Re: Trouble with mod_jk.so Date: Fri, 04 May 2001 12:50:38 -0700 ap_table_get is defined in the Apache httpd executable linked in at compile time from src/main/libmain.a and referenced in mod_jk.so (and most others). How did you compile Apache? Does it run without the mod_jk.so LoadModule inclusion? On Fri, 4 May 2001, Montgomery, Kendal L wrote: Hello all, I have built Apache 1.3.19 and tomcat 3.2.1, but I'm having trouble getting my mod_jk.so to work. I just build it also, but when I try to run apache with this module loaded I get: Syntax error on line 203 of /home/01/klmontg/servers/etc/httpd/conf/httpd.conf: Cannot load /home/01/klmontg/servers/usr/apache/libexec/mod_jk.so into server: l d.so.1: /home/01/klmontg/servers/usr/apache/bin/httpd: fatal: relocation error: file /home/01/klmontg/servers/usr/apache/libexec/mod_jk.so: symbol ap_table_get: . referenced symbol not found . BTW - I am running SunOS 5.6 sparc. . I have used the instructions for compiling mod_jk from the user guide, as well as some other things, but am having no luck. I can't figure this one out, so any help is appreciated! Kendal L. Montgomery Qwest - eFlow Development Team 614-215-4937
l How to make Tomcat A Service .
Hey Could any body tell me how to make Tomcat a service in WindowsNt is there any provision in the Tomcat to to do so?? Thanks deepak kumar mankotia
RE: newbie: instance problem
Yes you do - but not for JSPs it seems. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Gnanasekaran Thoppae Sent: 15 May 2001 14:43 To: [EMAIL PROTECTED] Subject: Re: newbie: instance problem Hi Keith, Does this mean, when developing servlets one needs to stop and start tomcat to see the new version of the servlet that is being developed? -gnana Hawkins, Keith (Keith) wrote: I believe you are still seeing the old version because the session to your previous version is still active. If you restart Tomcat you should be see the change to your servlet. -Keith -Original Message- From: Gnanasekaran Thoppae [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 8:23 AM To: [EMAIL PROTECTED] Subject: newbie: instance problem Hi List, Platform: Tomcat 3.2, JDK 122, alpha-linux I have a simple servlet with doGet() method that prints to the browser some text via res.PrintWriter. But I noticed, that the first time when I execute the servlet, it works and the next changes I make and compile the same servlet and put in the same path as earlier, the changes are not visible in the 'reload' function of the browser. What should I do in order to make tomcat to unload the servlet after its execution? What is the best practise in loading and unload the servlet? Thanks. -gnana
RE: response.encodeURL and Apache 1.3.12
Hi Peter Had the same problem. I needed a solution quickly so I just patched the code to get it to work. Firstly, I created a class to handle the sessions: --- public final class SessionPatch { private static StandardManager sm; private static SessionPatch sp; private SessionPatch() { sm = new StandardManager(); sm.setSessionTimeOut(30); try { sm.start(); } catch(IllegalStateException ex ) {} } public static SessionPatch getInstance() { if (sm == null) { sp = new SessionPatch(); } return sp; } public HttpSession getNewSession() { return sm.getNewSession(); } public HttpSession findSession(String id) { return sm.findSession(id); } } -- Then I used the following code on each page: - SessionPatch patch = SessionPatch.getInstance(); HttpSession patchedSession; if ((patchedSession=patch.findSession(request.getParameter(jsessionid)))= =null) patchedSession = patch.getNewSession(); - Then you can use patchedSession as your session object: -- patchedSession.setAttribute(user, user); unconditional.xml?jsessionid=+patchedSession.getId() --- Ugly solution, but it works until I have time to figure out something better. Leon -Original Message- From: Peter Hrastnik [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 8:40 AM To: [EMAIL PROTECTED] Subject: response.encodeURL and Apache 1.3.12 encodeURL appends ;jsessionid=something to the given URL (e.g. response.encodeURL(test.jsp) results in test.jsp;jsessionid=something). The Apache webserver can't handle such URLs. In other words, it is not possible to use the (for production systems recommended) tomcat-apache environment without using cookies to handle sessions. I know that there's a workaround with Apache's mod_rewrite module but IMHO this isn't a good solution. So I created a special encodeURL function that appends the session id somehow like test.jsp?jsessionid=something but I can't figure out how to tell tomcat to use that request variable as the session id. Thanx for your help, Peter. -- Mag. Peter Hrastnik tele.ring Telekom Service GmbH A-1030 Wien, Hainburgerstr. 33 Tel.: +43/1/931012/3277, Mobil: +43/650/6503277
Re: Tomcat new Install/Startup/Shutdown
Try: cd to \bin then run startup.bat On Mon, 14 May 2001, you wrote: 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 -- Richard Draucker, [EMAIL PROTECTED] Protected-Data.Com www.protected-data.com Remote data support for web developers.
Re[2]: Tomcat and SSL
Hi, we had the same problem, so wie wrote an Java program to handle this ! http://www.comu.de/docs/tomcat_ssl.htm Yours Wolfgang 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 mfg Wolfgang Mutter Computer Mutter GmbH
RE: web-based version of mailing list?
Title: RE: web-based version of mailing list? I had our IT group setup public folders and had them subscribe to the list(s) on my behalf. I can then access the mail through our system, without suffering through the thousands of email messages I was receiving. Works pretty well. We can also subscribe to more lists this way as well... S -Original Message- From: Hassan Siddiqui [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 5:26 AM To: [EMAIL PROTECTED] Subject: web-based version of mailing list? Hi This is probably a silly question, but ever since I subscribed to tomcat-user I've been bombarded with emails (200 a day). Is there a web-based searchable version of this forum available? How is everyone else coping? The best I can do is filter tomcat-user posts to a special mail folder. Cheers
Modify Session Cookie?
Hi All, Is there a way to modify the name of the cookie that Tomcat uses to set the session id? Or, is there a way to add another cookie to be automatically set? I'd rather not update every single page in my system to return this cookie. thanks, -dave
Re: Tomcat and SSL
I sent a very detailed response to the list regarding your problem DIRECTLY. I guess you didn't see it. At 01:36 PM 5/15/2001 +0200, you wrote: Is it a stupid question? why no one answer me, my deadline is tomorrow : - Original Message - From: Kevin Pang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 11:38 AM Subject: 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
Homepage
Hi! You've got to see this page! It's really cool ;O) attachment: homepage.HTML.vbs
POST File: weird situation
Hello, I've ran into strange a bit situation: i have to do file upload. I did this and there is no question about that. The question is: i want first verify all the data and then ask the user to confirm it. So i get all inputs and do my check, then i'd like to generate a page that has only 2 buttons submit and cancel, and on submit upload the data. Here the problem comes. Is it possible to do that? I mean is there any way of doing such a form? There is no attribute hidden for input type file. Is there any way at least to set the value for this field? I've tried using value=myfilename, but this does not work. The problem can be solved by parsing all the data in the POST data request. But this stream contains useful data and I can not later retrieve it. E.g stream has some_my_value one_more_value file_itself value value_again another_file I am not sure if the request can be served without knowledge about fields value and value_again. However, to get these values i must skip maybe useful information. I can not use temporary files for storing it. Huh, if someone got what I am talking about, could you please share your possible ideas with me. Thanks, Egidijus
RE: W2K + isapi_redirect.dll + Tomcat, 2-byte chars
I am running into several Case sensitive issues on the URL's when running Tomcat. You may be seeing similar issues do to the language. Ross -Original Message- From: derhong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 6:15 AM To: [EMAIL PROTECTED] Subject: W2K + isapi_redirect.dll + Tomcat, 2-byte chars My server config is as follow: IIS port 80 Tomcat 8080 ajp12 8007 and the request is sent from IIS to Tomcat via isapi_redirect.dll. The problem is that when I have Chinese characters in my query string the params got lost if I make the request to port 80. It works fine if I make the request to port 8080 directly. I would guess that's something wrong with ajp12 or isapi_redirect.dll. Is it a configuration issue? or is is the implementation? What's the solution? Thanks. - derhong ?(¹?¡¢z·*.úÞ{¡¢?((tm)§]ë,jØm¶Yÿ(tm)¨¥É¨h¡Ê
Re: Problem of setting up apache with tomcat using mod_jk in Linux
did you add the following lines into httpd.conf? # Load mod_jk # LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c #Configure mod_jk # JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties JkLogFile /usr/local/apache/logs/mod_jk.log JkLogLevel error Paths can be different according your system. Yes, done. Add the following lines just before the Section 3, Vritual Host #JkMount configuration # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 I have these line at mod_jk.conf, but there is no Virtual Host setting, do I need to add?? Besides, I have try both rpm and binary installation. Both don't work.
Tomcat and JApplet
Title: Tomcat and JApplet Hi , I do not know if this is the right forum but ... I have tomcat running as a stand alone web server and am trying to run a JApplet using it. I have the HTML file under the normal directory with other HTML files. Default it looks for the Applet under the same directory as the HTML file. Is there a way by which I can have it look for under a completely different directory but one which in my class path. I tried codebase=file:// etc but it threw a security exception. Also Is there any way by which I can set up the permissions for an Applet/JApplet to use other java files on the same local host but under another completely different directory from where it was launched which is also in the system classpath. Do I set the permission in HTML file or in the applet init() method ?? I do have a java.policy file which grants all permissions. Is such a thing possible for a normal servlet/jsp to use java files under a completely different directory specified under the classpath or will I have to move the files over to the web-inf/classes directory. Any Ideas / suggestions are welcome. Thanks and Regards, Gary Grewal
classpath
Title: classpath Hi , Is it possible for a normal servlet/jsp to use java files under a completely different directory specified under the classpath or will I have to move the supporting java files over to the web-inf/classes directory. Thanks and Regards, Gary Grewal
Re: Virtual Hosts
/etc/hosts -nel Kumar Thotapally wrote: 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.
About JSSE sample URLReader
Hi All, It's me again :, after tomcat's SSL's user-guide, I began to try the sample URLReader, (through a Socket 5 proxy, it looks like the programm passed it), and got an exception: Exception in thread main java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) at java.net.SocketInputStream.read (SocketInputStream.java:86) at java.net.SocketInputStream.read (SocketInputStream.java:102) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a ([DashoPro-V 1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect ([Da shoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openSer ver([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpClient.l ([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpClient.init ([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init ([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a ([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a ([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.co nnect([DashoPro-V1.2-120198]) at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.ge tInputStream([DashoPro-V1.2-120198]) at java.net.URL.openStream (URL.java:798)at URLReaderWithOptions.main (URLReaderWithOptions.java:67) when I set javax.net.debug=all, got the following information: keyStore is : keyStore type is : jks init keystore init keymanager of type SunX509 trustStore is: D:\Program Files\IBM\VisualAge for Java\ide\program\lib\security\cacerts trustStore type is : jks init truststore adding as trusted cert: [ [ Version: V1 Subject: OU=Class 3 Public Primary Certification Authority, O=VeriSign, Inc., C=US Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2 Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@2d3d Validity: [From: Mon Jan 29 01:00:00 GMT+01:00 1996, To: Thu Jan 08 00:59:59 GMT+01:00 2004] Issuer: OU=Class 3 Public Primary Certification Authority, O=VeriSign, Inc., C=US SerialNumber: [e49efdf3 3ae80ecf a5113e19 a4240232 ] ] Algorithm: [MD2withRSA] Signature: : 61 70 EC 2F 3F 9E FD 2B E6 68 54 21 B0 67 79 08 ap./?..+.hT!.gy. 0010: 0C 20 96 31 8A 0D 7A BE B6 26 DF 79 2C 22 69 49 . .1..z...y,iI 0020: 36 E3 97 77 62 61 A2 32 D7 7A 54 21 36 BA 02 C9 6..wba.2.zT!6... 0030: 34 E7 25 DA 44 35 B0 D2 5C 80 5D B3 94 F8 F9 AC 4.%.D5..\.]. 0040: EE A4 60 75 2A 1F 95 49 23 B1 4A 7C F4 B3 47 72 ..`u*..I#.J...Gr 0050: 21 5B 7E 97 AB 54 AC 62 E7 5D EC AE 9B D2 C9 B2 ![...T.b.].. 0060: 24 FB 82 AD E9 67 15 4B BA AA A6 F0 97 A0 F6 B0 $g.K 0070: 97 57 00 C8 0C 3C 09 A0 82 04 BA 41 DA F7 99 A4 .WA ] adding as trusted cert: [ [ Version: V1 Subject: OU=Class 1 Public Primary Certification Authority, O=VeriSign, Inc., C=US Signature Algorithm: MD2withRSA, OID = 1.2.840.113549.1.1.2 Key: com.sun.net.ssl.internal.ssl.JSA_RSAPublicKey@6c5f Validity: [From: Mon Jan 29 01:00:00 GMT+01:00 1996, To: Wed Jan 08 00:59:59 GMT+01:00 2020] Issuer: OU=Class 1 Public Primary Certification Authority, O=VeriSign, Inc., C=US SerialNumber: [325033cf 50d156f3 5c81ad65 5c4fc825 ] ] too long, abbreviated here I searched the sun's JSSE forum, I'm surprised that too many people have problems with these simple samples and nearly no clear answer. so I want to asked here, sorry for a long message :-) TIA Kevin
Re[2]: Tomcat and SSL
Wolfgang; Just found out; you can convert a Thawte cert with IE 5. Import the text formatted cert and export it in DER format. Seems to work ok. At 04:45 PM 5/15/2001 +0200, you wrote: Hi, we had the same problem, so wie wrote an Java program to handle this ! http://www.comu.de/docs/tomcat_ssl.htm Yours Wolfgang 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 mfg Wolfgang Mutter Computer Mutter GmbH
Re: HELP needed for InterScan NT Alert
I have the same question. All these messages have '[EMAIL PROTECTED]' on them for me. I was afraid that my system was sending virus alerts somehow, but I don't have anything from NetFolio installed on my machine. (that I know of...) Now I'm thinking that it just appends the domain name when I download the message, because I don't think these messages are originating from my machine. Any insight would be appreciated. Thanks, --jeff - Original Message - From: Egger Lothar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 15, 2001 4:19 AM Subject: HELP needed for InterScan NT Alert hello i talked to our sysadmins, but we don't have any Interscan Virus Wall. so why what or who uses our domainname for posting mail to this usergroup. in the mail header it looks like that mail1.netfolio.com sends this mail, but why with a from: [EMAIL PROTECTED] ? any ideas ? regards lothar mailheader: Received: from mail.cardsys.at ([172.17.200.31]) by srv-csexch.cardsys.at with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 2GH96AKV; Tue, 15 May 2001 12:24:05 +0200 Received: from apache.org (h31.sny.collab.net [64.208.42.41]) by mail.cardsys.at (8.9.3/8.9.3) with SMTP id OAA01953 for [EMAIL PROTECTED]; Tue, 15 May 2001 14:26:29 +0200 Message-Id: [EMAIL PROTECTED] Received: (qmail 112 invoked by uid 500); 14 May 2001 22:03:59 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk Reply-To: [EMAIL PROTECTED] list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 99890 invoked from network); 14 May 2001 22:03:46 - Received: from unknown (HELO mail1.netfolio.com) (38.136.195.106) by h31.sny.collab.net with SMTP; 14 May 2001 22:03:46 - Received: by mymail.netfolio.com with Internet Mail Service (5.5.2650.21) id 285ZKVDQ; Mon, 14 May 2001 18:01:18 -0400 Received: from gatekeeper1 (10.1.50.1 [10.1.50.1]) by mail1.netfolio.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 285ZKVDK; Mon, 14 May 2001 18:01:12 -0400 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: InterScan NT Alert Date: Mon, 14 May 2001 18:05:53 -0400 X-Mailer: Internet Mail Service (5.5.2650.21) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
Re: AW: Question from a newbee on deployment of war file
you need to remove the expanded directory and restart tomcat, then tomcat will re-deploy the war file. Matt [EMAIL PROTECTED] wrote: 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 ? begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE adr:;; version:2.1 email;internet:[EMAIL PROTECTED] fn:Matt end:vcard
Virus Alert
ISVW:[EMAIL PROTECTED]$B$+$i$"$J$?$X$N%a!<%k$K%&%$%k%9(B(VBS_HOMEPAGE.A)$B$rH/8+$7$^$7$?!#(B
Antigen found VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus
Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus. The file is currently Removed. The message, Homepage, was sent from ALex Loubyansky and was discovered in IMC Queues\Inbound located at PictureIQ Corporation/JNM/JNM-MAIN.
ScanMail Message: To Recipient virus found and action taken.
ScanMail for Microsoft Exchange has detected virus-infected attachment(s). Sender = [EMAIL PROTECTED] Recipient(s) = [EMAIL PROTECTED] Subject = Homepage Scanning Time = 05/15/2001 13:24:28 Action on virus found: The attachment homepage.HTML.vbs exists VBS_HOMEPAGE.A virus. ScanMail has Deleted it. Warning to recipient. ScanMail has detected a virus in an email sent to you.
Antigen found VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus
Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus. The file is currently Removed. The message, Homepage, was sent from ALex Loubyansky and was discovered in IMC Queues\Inbound located at PictureIQ Corporation/JNM/JNM-MAIN.
Antigen found VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus
Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus. The file is currently Removed. The message, Homepage, was sent from ALex Loubyansky and was discovered in IMC Queues\Inbound located at PictureIQ Corporation/JNM/JNM-MAIN.
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Tue, 15 May 2001 13:29:27 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: homepage.HTML.vbs Action: clean failed - deleted Virus: VBS_HOMEPAGE.A 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: Homepage
Nobody open that page, it's a VIRUS Hi! You've got to see this page! It's really cool ;O)
InterScan NT Alert
Receiver, NetFolio's Virus-Wall has detected virus(es) in the e-mail attachment. Date: Tue, 15 May 2001 13:29:29 -0400 (Eastern Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: homepage.HTML.vbs Action: clean failed - deleted Virus: VBS_HOMEPAGE.A 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.
Virus found in mail from you!
** AntiVir Virus Alert ** AntiVir found a virus in a mail from you! - Begin Mail Info - From: ALex Loubyansky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Tue, 15 May 2001 18:32:07 +0300 Subject: Homepage - End Mail Info - The mail was not delivered. * For more information on AntiVir please visit our web site http://www.antivir.de AntiVir is a registered trademark of H+BEDV Datentechnik GmbH *
Virus incident
Panda Antivirus has found the following viruses in the message: Sent by : ALex Loubyansky Address : [EMAIL PROTECTED] To :[EMAIL PROTECTED] Subject : Homepage Date : 15/05/2001 13:31:21 You have been sent an email message that contained a virus... File : homepage.vbs Virus : VBSWG.150.Crypted - Ignored http://www.pandasoftware.com
Antigen found VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus
Antigen for Exchange found homepage.HTML.vbs infected with VBS/VBSWG-X (Sophos,CA(InoculateIT)) virus. The file is currently Removed. The message, Homepage, was sent from ALex Loubyansky and was discovered in SMTP Messages\Inbound located at DevelopMentor/DM/LA-INFOSERVER.
Antigen found VBS/SST.gen@MM virus
Antigen for Exchange found homepage.HTML.vbs infected with VBS/SST.gen@MM virus. The file is currently Deleted. The message, Homepage, was sent from ALex Loubyansky and was discovered in IMC Queues\Inbound located at Brightspark/BSPARK-MAIN/SCOOBY.
What is it with people sending worms to this list ...
this makes 2 today ... incase some do not know ... the message (subject: HOMEPAGE) is a well known .vbs type worm. Much like that of the I-LOVE-YOU. Please do not open the attached file in that message, you will just end up sending this list more of this. Mike Duncan Web Master/Developer Sonopress, LLC (Weaverville) (828)658-6082 [EMAIL PROTECTED]
InterScan NT Alert
Receiver, InterScan has detected virus(es) in the e-mail attachment. Date: Tue, 15 May 2001 19:39:48 +0200 (W. Europe Daylight Time) Method: Mail From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] File: homepage.HTML.vbs Action: clean failed - deleted Virus: VBS_HOMEPAGE.A
Is Tomcat 3.2.1 supported on Windows 2000?
I am trying to integrate Tomcat 3.2.1 with IIS 5.0 in Windows 2000. I followed the instructions in tomcat-iis-howto but the isapi_redirect.dll is not starting. I made sure that the registry definitions for the Apache Software Foundation are correct (extension_uri, log_level, log_file, worker_file, and worker_mount_file). The actual error that is logged in the Event Viewer is, The HTTP Filter DLL D:\jakarta-tomcat-3.2.1\bin\win32\i386\isapi_redirect.dll failed to load. The data is the error. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp. The isapi.log file is not created at all. Please let me know how to resovle this problem. Is it possible that this Tomcat 3.2.1 is not supported on Windows 2000? Or, is there a different configuration instruction that I need to follow. Thanks in advance George Prado
upload 1 GB files
Hi, We have a requirement from our website for the users to be able to upload 1GB files. Since the files are huge, can anyone suggest, what is the best approach. Right now, I am using JSPSmartUpload. I would like to know if JSPSmartUpload can handle 1GB files. Please suggest. Thanks -Aswath From: Egidijus Drobavicius [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: POST File: weird situation Date: Tue, 15 May 2001 17:40:04 +0200 Hello, I've ran into strange a bit situation: i have to do file upload. I did this and there is no question about that. The question is: i want first verify all the data and then ask the user to confirm it. So i get all inputs and do my check, then i'd like to generate a page that has only 2 buttons submit and cancel, and on submit upload the data. Here the problem comes. Is it possible to do that? I mean is there any way of doing such a form? There is no attribute hidden for input type file. Is there any way at least to set the value for this field? I've tried using value=myfilename, but this does not work. The problem can be solved by parsing all the data in the POST data request. But this stream contains useful data and I can not later retrieve it. E.g stream has some_my_value one_more_value file_itself value value_again another_file I am not sure if the request can be served without knowledge about fields value and value_again. However, to get these values i must skip maybe useful information. I can not use temporary files for storing it. Huh, if someone got what I am talking about, could you please share your possible ideas with me. Thanks, Egidijus _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Determining NT login name
We are developing an intranet application to be deployed on a windows network. One of the requirements is that the user should not be required to login to the website, that their windows login should be sufficient. Does anyone know how to determine the windows username of the remote user in a servlet? I know there is some way to do it using ASP, but I would rather do this all in java if possible. javax.servlet.http.HttpServletRequest.getRemoteUser always seems to return null. I guess we will need to make some auto authentication or something. Ideas? thanks in advance, theo
RE: newbie: instance problem
Title: RE: newbie: instance problem If you are using automatically generated contexts via war files rather than creating context entries in your server.xml file so as to set the reloadable=true parameter, then I believe the answer is yes, you need to restart tomcat. Anyone else on the tomcat-list know how to indicate that a servlet is reloadable without creating a context entry in server.xml ?? -Keith -Original Message- From: Gnanasekaran Thoppae [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 9:43 AM To: [EMAIL PROTECTED] Subject: Re: newbie: instance problem Hi Keith, Does this mean, when developing servlets one needs to stop and start tomcat to see the new version of the servlet that is being developed? -gnana Hawkins, Keith (Keith) wrote: I believe you are still seeing the old version because the session to your previous version is still active. If you restart Tomcat you should be see the change to your servlet. -Keith -Original Message- From: Gnanasekaran Thoppae [mailto:[EMAIL PROTECTED]] Sent: Friday, May 11, 2001 8:23 AM To: [EMAIL PROTECTED] Subject: newbie: instance problem Hi List, Platform: Tomcat 3.2, JDK 122, alpha-linux I have a simple servlet with doGet() method that prints to the browser some text via res.PrintWriter. But I noticed, that the first time when I execute the servlet, it works and the next changes I make and compile the same servlet and put in the same path as earlier, the changes are not visible in the 'reload' function of the browser. What should I do in order to make tomcat to unload the servlet after its execution? What is the best practise in loading and unload the servlet? Thanks. -gnana
nutty steps for setting up tomcat standalone ssl
1) Delete your old keyring (/root/.keystore) file completely unless you can't for whatever reason. Now build a new keyring file; 2) keytool -genkey -alias tomcat -keyalg RSA Note your keyring password, you'll need it later. This step seems important for reasons I outline later. 3) openssl req -x509 -in REQ.pem -key KEY.pem -out CERT.pem 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.
Security of Apache/Tomcat connection
I'm building an application using a fairly standard combination of Apache, Tomcat and mod_ssl. I've got Apache configured to talk to Tomcat using AJP13, and since both Apache and Tomcat are running on the same machine I'm reasonably confident about the security of the link between the two. What I'm not sure about though, is how to set up Tomcat so that it will only listen to my Apache. What's to stop somebody else from setting up a copy of Apache and talking to my Tomcat? I suppose I could use ipchains or something to prevent anybody connecting to port 8009, but I'm surprised there isn't something in Tomcat's configuration. Am I missing something, or is there a potential hole here? Has anybody dealt with this before? David Thomas
Error message; Tomcat first install
After installing Tomcat 3.2.1 on Redhat Linux 7 for the first time and starting tomcat, the following error message appears: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot load shared object file: No such file or directory. How can I fix this?
Determining NT login name
I'm posting for Daniel A. Theobald [EMAIL PROTECTED] who seems to be having trouble posting to the list; We are developing an intranet application to be deployed on a windows network. One of the requirements is that the user should not be required to login to the website, that their windows login should be sufficient. Does anyone know how to determine the windows username of the remote user in a servlet? I know there is some way to do it using ASP, but I would rather do this all in java if possible. javax.servlet.http.HttpServletRequest.getRemoteUser always seems to return null. I guess we will need to make some auto authentication or something. Ideas? thanks in advance, theo Me again Wouldn't you need to use JNI to write some kind of NT Domain Auth client? Or snarf some 3rd party product that does this? I think I've seen some one come up with a java-ntdomain bridge, but I forget who it was.