RE: Tomcat hangs after user stops a request
I do not know the solution, but i can show you a way out, run a srcipt which sees the number of close wait (for tomcat) it is exceeds a number then restart tomcat. I was in a similar kind of situation and this what i had to do. Regards, Shuklix -Original Message- From: RAMAKRISHNA SANKA [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 10:05 PM To: [EMAIL PROTECTED] Subject: Tomcat hangs after user stops a request Hi All, I am running Tomcat 3.1 on an AIX 4.0 machine with JDK1.2.2 in stand-alone mode. When I connect to the application, make a request that starts off a database operation, find it running too long and stop the loading of the page in the browser, I find that I cannot make any further successful requests to the application. I do a 'netstat -a | grep port-number' and I find an entry with a status of 'CLOSE_WAIT' in addition to one in 'LISTEN' status. This CLOSE_WAIT 'connection' stays that way for a long time and all subsequent connections do not return information to the browser and killing them only adds to the list of CLOSE_WAITS. Does anyone have any idea how to correct this situation? Thanks, Ramakrishna Sanka Get free email and a permanent address at http://www.netaddress.com/?N=1
Session Timeout
Hello, how can I handle session timeout in JSP page? (I use tomcat 3.2) I mean how can I redirect my user into the login page when he refreshes a page where the session is timeout. thanks, Romuald
Problems with MIME-type mappings
Hi folks, I have recently started to use a tomcat-3.2.1 instead of the old tomcat-3.1 version and encountered a strange configuration problem. Currently I have mapped the old tomcat version 3.1 to the port 8080 and new one (3.2.1) to 8088. Both use the same /conf/web.xml file (with no differences): [immo@jimbo immo]$ diff jakarta-tomcat/conf/web.xml jakarta-tomcat-3.2.1/conf/web.xml [immo@jimbo immo]$ which also includes the appropriate MIME-mapping for wap/wml-MIME type: mime-mapping extension wml /extension mime-type text/vnd.wap.wml /mime-type /mime-mapping I also imagine that both server.xml configuration files are properly configured (?), TOMCAT_HOME is set. etc I have the same application (or the context) on both versions , this is under the 3.2.1.-version: [immo@jimbo immo]$ ls jakarta-tomcat-3.2.1/webapps/spll/* jakarta-tomcat-3.2.1/webapps/spll/WEB-INF: classes lib web.xml web.xml~ jakarta-tomcat-3.2.1/webapps/spll/wml: SPLLregister.wml start.wml start.wml~ and exactly the same structure under tomcat-3.1 folders: [immo@jimbo immo]$ ls jakarta-tomcat/webapps/spll/* jakarta-tomcat/webapps/spll/WEB-INF: classes lib web.xml web.xml~ jakarta-tomcat/webapps/spll/wml: SPLLregister.wml start.wml start.wml~ so basically those are identical. But now the problem- when accessing different tomcat versions the HTTP Content-type headers differ. Here is what is given form the new version (tomcat-3.2.1) (accessing the port via telnet for a demonstrating purpose): [immo@jimbo immo]$ telnet localhost 8088 Trying 127.0.0.1... Connected to jimbo.tte.vtt.fi. Escape character is '^]'. GET /spll/wml/start.wml HTTP/1.0 HTTP/1.0 200 OK Content-Type: text/plain Content-Length: 1552 Last-Modified: Sat, 16 Dec 2000 10:44:32 GMT Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0beta; Linux 2.2.14-5.0 i386; java.ven dor=Sun Microsystems Inc.) ?xml version="1.0"? and here is from the old version (Tomcat-3.1): [immo@jimbo immo]$ telnet localhost 8080 Trying 127.0.0.1... Connected to jimbo.tte.vtt.fi. Escape character is '^]'. GET /spll/wml/start.wml HTTP/1.0 HTTP/1.0 200 OK Date: Wed, 20 Dec 2000 08:17:42 GMT Status: 200 Servlet-Engine: Tomcat Web Server/3.1 (JSP 1.1; Servlet 2.2; Java 1.3.0beta; Linux 2.2.14-5.0 i386; java.vendo r=Sun Microsystems Inc.) Content-Type: text/vnd.wap.wml Last-Modified: Sat, 16 Dec 2000 10:44:32 GMT Content-Length: 1552 Content-Language: en ?xml version="1.0"?` Note the difference : text/plain versus text/vnd.wap.wml ! Now the question is , what I'm doing wrong or what/how should I configure Tomcat 3.2.1 that the /conf/web.xml - file will also be valid for the newversion (so that I will get a text/vnd.wap.wml - header from.wml files ) ?? Now it doesn't seem to have any effects with Tomcat 3.2.1. Servlets are working similar way on both configurations, but these static wml-files are the problem. Any help is appreciated ! Regards, Immo
RE: Session Timeout
You can test at the begining of all pages if the session is new or not and redirect to the login page if it is new -Message d'origine-De: Romuald Colletaz [mailto:[EMAIL PROTECTED]]Envoyé: mercredi 20 décembre 2000 09:40À: '[EMAIL PROTECTED]'Objet: Session Timeout Hello, how can I handle session timeout in JSP page? (I use tomcat 3.2) I mean how can I redirect my user into the login page when he refreshes a page where the session is timeout. thanks, Romuald
Re : Session Time Out
hi there is no built in function to get the session has timed out or not. Follow the steps. 1. Setting the max interval the session should be valid ...session.setMaxInactiveInterval(3600) this 3600 = 72 * 1000 milli seconds. 2. fine now u have set the session should exist for 2 hrs 3. Get the time when the page is last accessed 4. Calculate the time difference between when the page is last accsessed and when the page is accessed now . ( For getting the page last accessed ...u have session.getLastAccessesTime() - This will return when he last acessed the poage ) u know how many hrs / mins / secs the session should be valid ...just subtract the current tiume from last acesed time .. u will get a result . check the result with the time u have given for session . If it exceeds ...redirect him . Hope this will help Narayanan. s.w engineer Enhancement Technologies India. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
AW: Replacing ALL Whitespace in string
replace() inj class String is intended to to replace a character with another. If you want to replace spaces with an empty string you have to write your own function like this: public String removeBlanks(String aString) { StringBuffer mResult = new StringBuffer(); StringTokenizer mTokenizer = new StringTokenizer(aString, " "); while (mTokenizer.hasMoreElements()) { mResult.append(mTokenizer.nextToken()); } return mResult.toString(); } P.S.: This is a java question, not a tomcat question. -Ursprüngliche Nachricht- Von: Mark Franz [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 19. Dezember 2000 22:06 An: '[EMAIL PROTECTED]' Betreff: Replacing ALL Whitespace in string I am trying to replace ALL the Whitespace in a string. If I do this; String newcat = newcat1.replace(' ',''); I get this error; 100. String newcat = newcat1.replace(' ',''); *** Lexical Error: Empty character constant My newcat string might look like this; ROOT/cat Tree/The Next/Path To/Victory Garden Mark G. Franz
Re: using xalan with Tomcat
You can manually re-order to classpath to put xerces.jar before parser.jar. At least with 3.2, Tomcat adds the jars to its classpath in alphabetical order, so you can renamed parser.jar to zparser.jar and it will be loaded last. I've been using this trick for a while. BTW does anyone know if depending on this behavior of classloaders is a Bad Thing? Well, its not a good thing. Also, webapps should not be adding jar's to the system classpath. You should be adding them to the webapp's classpath. The underlying problem is that the parser.jar packaged with Tomcat includes the DOM1 packages org.w3c.dom and also org.xml.sax. If you strip out the org. from parser.jar and then add a jar with the DOM2 interfaces all will be well. jaxp will work and xerces will run for your webapps. Jim
RE: Netscape displaying the HTML code
You can refer "ForceType" directive in Apache. Shuklix -Original Message- From: Guntupalli Shanti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 2:46 AM To: [EMAIL PROTECTED] Subject: Netscape displaying the HTML code Hi, I have tomcat 3.2 running on Apache 1.3.14. All the HTML content in my web site is returned by the servlets based on the templates passed in the query. Something like http://www.myserver.com:8070/examples/servlet/servletname?page=main where main is a html template file. When I am accessing the page from IE I get exactly what I want but when I access this in netscape it displays all the HTML code. Does any one know how to fix it? Thanks in advance Shanti
Still : Error in HttpSessionFacade - still nobodys really interested in
Hi there, does anybody know why a servlet works fine with tomcat only (port 8080) but when using apache/tomcat via jk_mod (or old jserv) the servlet throws an error like that: java.lang.NullPointerException: at org.apache.tomcat.facade. HttpSessionFacade.getId(HttpSessionFacade.java:114) ... the calling code looks that way: session is hash of sessions for (Iterator i = sessions.iterator(); i.hasNext(); ) { HttpSession theHttpSession = (HttpSession) i.next(); String sid = theHttpSession.getId(); problem, calling HttpSessionFacade if (loginObj.hasContentSessionRelatedBlaSession(sid) != true) { tmpVec.add(theHttpSession); } } Could that be a configuration error? Doesnt seems like?! Any ideas? When looking at the HttpSession the stored session in memory seem to mix up! I am, as far as i know not the only person who has that kind of problem. Happy to here from anybody Cheers Hartwig
WAP Gateway - Chunked HTTP Responses and CRLF
Hi, Does anybody know if a workaround or solution was found to the problem originally described below, involving a problem with certain WAP gateways not accepting output generated by JSPs under Tomcat on Unix systems?? It was posted a couple months ago, but I don't see that any workarounds were found. Now, I am facing the exact same problem and I'm desperately looking for a solution. Many thanks, Jamie Hall [EMAIL PROTECTED] Dear All, I have noticed a "problem" with Tomcat JSP generation on Unix systems. We are currently attempting to generate dynamic WML via JSP which we then send to a WAP Gateway for compilation into bytecode. While testing our JSP pages via the Nokia SDK we noticed no problems. When we started testing via Nokia's NAMP Gateway we noticed that the code was not compiling. Further investigation revealed the following: the JSP pages converts some new-lines into CRLF (or \r\n) carriage returns. The Gateway does not like this and I am not convinced that this isn't standard HTTP 1.1: can you insert CRLF returns into chunked text data? -- Ricardo Gladwell, Web Developer Demon Internet, Westhumble House, Dorking Business Park, Dorking. RH4 1HJ Tel: +44 (01306) 732 356 Mobile: +44 (07779) 841 444
how to eliminate port number?
tomcat need to put port number 8080 in the URL, is there any way thatIdo not have to put 8080?
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 25186 invoked by uid 500); 20 Dec 2000 09:35: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 25171 invoked from network); 20 Dec 2000 09:35:58 - Received: from mail.hispeed.com (HELO mail.hispeed.net) (209.145.61.245) by locus.apache.org with SMTP; 20 Dec 2000 09:35:58 - Received: from kmichishita02 (166.pool10.ipctokyo.att.ne.jp [165.76.252.166]) by mail.hispeed.net (8.10.1/8.10.1) with SMTP id eBK9aHw18689 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 01:36:18 -0800 (PST) Message-ID: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 From: "Katsuyuki Michishita" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to eliminate port number? Date: Wed, 20 Dec 2000 18:34:51 +0900 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0033_01C06AB3.89E461F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 25186 invoked by uid 500); 20 Dec 2000 09:35: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 25171 invoked from network); 20 Dec 2000 09:35:58 - Received: from mail.hispeed.com (HELO mail.hispeed.net) (209.145.61.245) by locus.apache.org with SMTP; 20 Dec 2000 09:35:58 - Received: from kmichishita02 (166.pool10.ipctokyo.att.ne.jp [165.76.252.166]) by mail.hispeed.net (8.10.1/8.10.1) with SMTP id eBK9aHw18689 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 01:36:18 -0800 (PST) Message-ID: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 From: "Katsuyuki Michishita" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: how to eliminate port number? Date: Wed, 20 Dec 2000 18:34:51 +0900 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0033_01C06AB3.89E461F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
Re: IllegalStateException: Short Read while trying to do forward()
G'Day, on 20/12/00 4:08 AM, Jason C Jones at [EMAIL PROTECTED] wrote: I am running 3.2.1 in standalone mode and when I try to do a forward with a RequestDispatcher I get the following error: going to /patient.jsp res.isCommitted() = false res.getBufferSize() = 8192 2000-12-19 04:53:48 - Ctx( /nativeweb ): Exception in: R( /nativeweb + /patient. jsp + null) - java.lang.IllegalArgumentException: Short Read at javax.servlet.http.HttpUtils.parsePostData(HttpUtils.java:238) at org.apache.tomcat.util.RequestUtil.readFormData(RequestUtil.java:101) Note the two debugging lines above the exception. According to the specs, an IllegalArgumentException is thrown when the response is already committed, which it is not as you can see. Is this a bug? The servlet in question uses HttpUtil.parsePostData to read the post data and inflate a bean. It then puts the bean into the session object and tries to redirect to a jsp for display. Anyone have any ideas? I'm going to take a stab at the obvious here (at least to me). You seem to be confusing the IllegalArgumentException with IllegalStateException. I don't think that your assertion that "According to the specs, an IllegalArgumentException is thrown when the response is already committed" is quite right. I'm pretty sure that it says "Illegal *State* Exception". I suspect that you are passing a bad argument to your bean inflation code, and this is causing the "Illegal *Argument* Exception". Regards, Steve Coy
Tomcat and IIS 5.0
Hi folks. I have installed the Tomcat 3.2 on Windows 2000 and JDK 1.3 + 1.2EE. I need to integrate Tomcat with IIS 5 so I can use Servlet and JSP on my sites. Thanks Lorenzo Soncini
Re: how to eliminate port number?
On 12/20/2000 at 6:34 PM Katsuyuki Michishita wrote: tomcat need to put port number 8080 in the URL, is there any way that I do not have to put 8080? If Tomcat is the only Web server on the machine, change the default Tomcat port to 80 in its server.xml configuration. From TC3.2 !-- Connectors -- !-- Normal HTTP -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8080"/ /Connector -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 45909 invoked by uid 500); 20 Dec 2000 09:55:33 - 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 45902 invoked from network); 20 Dec 2000 09:55:33 - Received: from mailout3-0.nyroc.rr.com (24.92.226.118) by locus.apache.org with SMTP; 20 Dec 2000 09:55:33 - Received: from pc10 (roc-24-93-14-35.rochester.rr.com [24.93.14.35]) by mailout3-0.nyroc.rr.com (8.9.3/8.9.3) with ESMTP id EAA18181 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 04:51:24 -0500 (EST) Message-ID: [EMAIL PROTECTED] In-Reply-To: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 X-Mailer: Calypso Version 3.10.03.02 (1) Date: Wed, 20 Dec 2000 04:55:27 -0500 From: "Ted Husted" [EMAIL PROTECTED] To: "Tomcat User List" [EMAIL PROTECTED] Subject: Re: how to eliminate port number? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_97730612741=_" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 45909 invoked by uid 500); 20 Dec 2000 09:55:33 - 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 45902 invoked from network); 20 Dec 2000 09:55:33 - Received: from mailout3-0.nyroc.rr.com (24.92.226.118) by locus.apache.org with SMTP; 20 Dec 2000 09:55:33 - Received: from pc10 (roc-24-93-14-35.rochester.rr.com [24.93.14.35]) by mailout3-0.nyroc.rr.com (8.9.3/8.9.3) with ESMTP id EAA18181 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 04:51:24 -0500 (EST) Message-ID: [EMAIL PROTECTED] In-Reply-To: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 X-Mailer: Calypso Version 3.10.03.02 (1) Date: Wed, 20 Dec 2000 04:55:27 -0500 From: "Ted Husted" [EMAIL PROTECTED] To: "Tomcat User List" [EMAIL PROTECTED] Subject: Re: how to eliminate port number? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_97730612741=_" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 54595 invoked by uid 500); 20 Dec 2000 10:00:48 - 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 54509 invoked from network); 20 Dec 2000 10:00:45 - Received: from orion.uk.insnet.net (194.177.174.244) by locus.apache.org with SMTP; 20 Dec 2000 10:00:45 - Received: from deathstar.boxroom.co.uk (pc2.boxroom.co.uk [212.158.17.132]) by orion.uk.insnet.net (8.9.3/8.9.3) with ESMTP id KAA32726 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 10:00:44 GMT From: "Alexander Telnikoff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Page not found the first time client accesses it, all other times OK Date: Wed, 20 Dec 2000 10:05:09 - Message-ID: 005301c06a6c$55b2b040$[EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0054_01C06A6C.55B436E0" In-Reply-To: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 54595 invoked by uid 500); 20 Dec 2000 10:00:48 - 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 54509 invoked from network); 20 Dec 2000 10:00:45 - Received: from orion.uk.insnet.net (194.177.174.244) by locus.apache.org with SMTP; 20 Dec 2000 10:00:45 - Received: from deathstar.boxroom.co.uk (pc2.boxroom.co.uk [212.158.17.132]) by orion.uk.insnet.net (8.9.3/8.9.3) with ESMTP id KAA32726 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 10:00:44 GMT From: "Alexander Telnikoff" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Page not found the first time client accesses it, all other times OK Date: Wed, 20 Dec 2000 10:05:09 - Message-ID: 005301c06a6c$55b2b040$[EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0054_01C06A6C.55B436E0" In-Reply-To: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
Error: 500
Hi all, I'am getting the following error when accessing this /jsp/Jdbc.jsp Internal Servlet Error: org.apache.jasper.compiler.ParseException: /var/net/services/infoline/doc/jsp/Jdbc.jsp(4,44) Attribute , has no value this jsp has the following code: %@ page language="java" import="java.io.*","java.sql.*","JdbcBean" % where JdbcBean is a class which has functions for database connection, returning resultset object and closing the connection. In this jsp i make an instance of JdbcBean class as follows %! JdbcBean jdbctest = new JdbcBean(); % and then call upon it's functions. But I get the above error. Any help is appreciated Thanks Naresh
Re: how to eliminate port number?
Set you tomcat server on port 80. This setting is only work if no other server is running on port 80. Bhavesh. - Original Message - From: Katsuyuki Michishita To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 9:34 AM Subject: how to eliminate port number? tomcat need to put port number 8080 in the URL, is there any way thatIdo not have to put 8080?
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
RE: How to accommodate the webapps directory structure change
Hi Steven, The problem you have with your new directory structure is that the WEB-INF directory isn't immediately below the webapp root. In the first case, you have a webapp root of "execution", and WEB-INF is directly below that directory, so this is OK. In the second case, you need WEB-INF to be off the "is" directory, not the "execution" directory. Because it is in the wrong place, it is regarded as a plain old content directory, not a special directory. Tomcat will therefore not find the web.xml file, *or* any of the servlet classes. As a result, any /servlet/... url won't work - tomcat won't find any corresponding class file. Cheers, Simon -Original Message- From: Steven Liu [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 7:13 PM To: '[EMAIL PROTECTED]' Subject: How to accommodate the webapps directory structure change Following is my directory/file structure for a servlet, it works fine. the index.html has the statement: "td WIDTH="30%"a href="../execution/servlet/ABC"img SRC="../images/execute.gif" HSPACE=4 BORDER=0 align=TOP/aa href="../execution/servlet/ABC"Execute/a/td webapps | execution || servlets WEB-INF | | index.html classes || abc.class LocalStrings.properties However, after I change the structure into following(add one more level of directory, ie "is"), it won't work any more ! How should I change the statement in index.html like above to accommodate the directory structure change ? Or I should do something else to accommodate ? webapps | is execution || servlets WEB-INF | | index.html classes || abc.class LocalStrings.properties [EMAIL PROTECTED] _ | \_/o\_/ \_/ Every once in a while, the boundaries get redefined.
RE: Deny web-inf access (security problem)
Hi Paul, I disagree with Guy's email here. There are several very good reasons why your servlet classes *should* be within your webapp, and *not* within your CLASSPATH. Just follow the examples that come with tomcat, and you shouldn't go far wrong. The sun servlet specs say quite explicitly that *no* file in WEB-INF can ever be downloaded by a browser. So if you can download the binary "mybean.class" file, save it to disk, then decompile it, that is a definite security hole, and a violation of the servlet spec. There can be problems if you use apache as a front-end, because of course apache doesn't obey the servlet specs - it isn't a servlet engine. However, in your case you explicitly said that you were running tomcat standalone, so that can't be it. One thing you didn't tell us is what version of tomcat you are using. There has been a recent patch to tomcat3.2 (3.2.1) which fixes a number of security problems. I am willing to bet that if you upgrade to tomcat3.2.1 (from whatever you were using) the problem will go away. I would also just point out that the WEB-INF directory should have the same capitalisation I have shown, even on windows (which you appear to be using). Yes, windows file explorer will "adjust" the capitalisation of files, but you should make sure that at the "DOS" level, the capitalisation is actually correct. Regards, Simon -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 12:58 AM To: [EMAIL PROTECTED] Subject: RE: Deny web-inf access (security problem) Set up a directory outside your tomcat directory to contain java class files, and include that directory in your classpath. Keep it outside of your Apache directory as well. -Original Message- From: Paul Gonin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 2:02 PM To: [EMAIL PROTECTED] Subject: Deny web-inf access (security problem) Hi, I have a JSP that uses a bean. It uses the following directory structure : webapps/myapply/myapply.jsp webapps/myapply/web-inf/classes/mybean.class It works fine but I am annoyed that people can download the bean directly and "access" its content because it contains critical information (passwords). How do I protect my bean and more generraly I'd like to protect the whole web-inf directory (if it's possible) Note : I'm using Tomcat standalone. Thanks
RE: Question about default servlet in Tomcat 3.2.1
Hi David, Tomcat 3.2.1 no longer reads the file $TOMCAT_HOME/conf/web.xml. It is a bit misleading that it is still in the distribution, but you can ignore anything in this file. Do you perhaps have something in *your* webapp's web.xml file that refers to DefaultServlet?? -Original Message- From: David Haraburda [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 9:18 PM To: [EMAIL PROTECTED] Subject: Question about default servlet in Tomcat 3.2.1 Hi, I am having a problem with Tomcat 3.2.1 (I am using Java 1.2.2 on Linux) and I am wondering if anyone is expierencing the same thing. When I startup Tomcat 3.2.1, I get an error message saying "cannot load servlet name: default". Tomcat continues to load, but I am having some other problems, and I'm not sure what's going on exactly, so now I'm looking at this possibly being the problem. I noticed in the web.xml that comes with Tomcat 3.2.1 that that the servlet-class for the default servlet is still org.apache.tomcat.servlets.DefaultServlet, which no longer exists (in fact, it looks like the whole servlets directory was removed with the 3.2 release). Is there a different class I should be using as the default? I saw in CVS a noted that said org.apache.tomcat.request.StaticInterceptor replaced DefaultServlet. Do I need to do anything with this? I tried removing the whole default servlet section from my web.xml, but I still get the error. I'm not sure if this is causing my problem or not, but right now I'm just looking to eliminate the error message. Thanks, David
no error messages
Hi tomcat users, I have a JSP with an error in it. If I send a request to a servlet that includes this JSP nothing is returned (the source of the browser page is empty). I also get no error message on the console from which I've started tomcat. How can I see the JSP implementation class compilation error that I expect? I use tomcat 3.2 with nt 4.0. Thank you indeed Stefan
RE: Strange redirect problem...
Hi, Is it possible to try tomcat stand-alone instead of behind apache? That will eliminate half the possible sources of the redirect problems.. -Original Message- From: Cato, Christopher [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 10:32 PM To: '[EMAIL PROTECTED]' Subject: Strange redirect problem... Hello... I'm running TomCat 3.21 on RedHat Linux 6.2 with Apache 1.3.12 / mod_jk I have run into a strange little problem. I have a web application consisting of 40 servlets. In the servlet code a good deal of redirects are going on between the servlets. All redirects are pointed towards "/app01/servlet/servletx". The only apps that are configured except the /app01 are /example, /test and /admin. The problem is that some of the redirections that are supposed to go to '/app01/servlet/servletx/' go to '/servlets/servletx' instead. I've checked all the code, and there are no references to /servlets/ anywhere... So, I'm kind of stuck here... I used to have a '/servlets' JkMount directive in httpd.conf, but not anymore Nothing in server.xml or web.xml either... What's going on here? Where does that /servlets/ come from? Is it possible to turn on debugging of the redirectHandler? If so, where? Mvh / Regards Christopher Cato [EMAIL PROTECTED] Rational Software Nordic AB / ECAT - Ericsson Corporate Account Team
RE: sealing violation in 4.0m5
Hi Bill. I believe a "sealing violation" is when a class which was loaded under one classloader tries to call a class loaded under a different classloader, in circumstances where this isn't allowed. I suggest that the problem is therefore something to do with classpaths, ie your classpath includes some files it shouldn't. The result is that tomcat is expecting code to be loaded by a particular classloader, but because it is in the classpath, it has already been loaded by the system class loader. Hope this helps, Simon -Original Message- From: Bill Pfeiffer [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 6:06 AM To: Tomcat Subject: sealing violation in 4.0m5 Trying to port my 3.2 app to 4.0. One simple page works, but the main page of my app yeilds the exception below. Any idea what a "sealing violation' is? Sounds like a security issue. Ideas? TIA, Bill Pfeiffer A Servlet Exception Has Occurred Exception Report: javax.servlet.ServletException: Servlet.init() for servlet OasisCommand threw exception at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:774) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544 ) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. ja va:227) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. ja va:196) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 61 ) at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va :159) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav a: 811) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:89 0) at java.lang.Thread.run(Thread.java:484) Root Cause: java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoad er .java:648) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoad er .java:987) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoad er .java:906) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at com.pdma.oasis.servlets.OasisCommandServlet.initCommands(OasisCommandServl et .java:94) at com.pdma.oasis.servlets.OasisCommandServlet.init(OasisCommandServlet.java: 27 ) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:755) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544 ) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. ja va:227) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. ja va:196) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2038) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 61 ) at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va :159) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.jav a: 811) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:89 0) at java.lang.Thread.run(Thread.java:484)
RE: how to eliminate port number?
And of course, Ted has assumed that you are running on windows. For unix, there are additional issues, as port 80 can be listened on only by programs running as "root". -Original Message- From: Ted Husted [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 10:55 AM To: Tomcat User List Subject: Re: how to eliminate port number? On 12/20/2000 at 6:34 PM Katsuyuki Michishita wrote: tomcat need to put port number 8080 in the URL, is there any way that I do not have to put 8080? If Tomcat is the only Web server on the machine, change the default Tomcat port to 80 in its server.xml configuration. From TC3.2 !-- Connectors -- !-- Normal HTTP -- Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="8080"/ /Connector -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 34195 invoked by uid 500); 20 Dec 2000 11:23:20 - 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 34182 invoked from network); 20 Dec 2000 11:23:18 - Received: from unknown (HELO vdcrexc1.orange.ch) (212.215.1.70) by locus.apache.org with SMTP; 20 Dec 2000 11:23:18 - Received: by vdcrexc1.orange.ch with Internet Mail Service (5.5.2650.21) id W7AAVYTF; Wed, 20 Dec 2000 12:07:45 +0100 Message-ID: [EMAIL PROTECTED] From: Kitching Simon [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: how to eliminate port number? Date: Wed, 20 Dec 2000 12:07:44 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
AW: Tomcat and IIS 5.0
And what is your problem? It works fine on my machine ... -Ursprüngliche Nachricht- Von: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 10:47 An: [EMAIL PROTECTED] Betreff: Tomcat and IIS 5.0 Hi folks. I have installed the Tomcat 3.2 on Windows 2000 and JDK 1.3 + 1.2EE. I need to integrate Tomcat with IIS 5 so I can use Servlet and JSP on my sites. Thanks Lorenzo Soncini
Re: InterScan eManager Content Management Notification! (DirtyWords)
Sorry for the noise, but is anyone else on the list getting these? My ISP (optushome.com.au) is adamant that they are not responsible for this... I've had a half dozen or so of them in the last hour, from a variety of source addresses, all from this list. on 20/12/00 9:02 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: **Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 55291 invoked by uid 500); 20 Dec 2000 11:40:54 - 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 55197 invoked from network); 20 Dec 2000 11:40:50 - Received: from ha1.rdc2.nsw.optushome.com.au (HELO mss.rdc2.nsw.optushome.com.au) (203.164.2.50) by locus.apache.org with SMTP; 20 Dec 2000 11:40:50 - Received: from [192.168.1.16] ([203.164.13.231]) by mss.rdc2.nsw.optushome.com.au (InterMail vM.4.01.03.00 201-229-121) with ESMTP id 20001220114035.YLNM28304.mss.rdc2.nsw.optushome.com.au@[192.168.1.16] for [EMAIL PROTECTED]; Wed, 20 Dec 2000 22:40:35 +1100 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Wed, 20 Dec 2000 22:40:35 +1100 Subject: Re: InterScan eManager Content Management Notification! (Dirty Words) From: Stephen Coy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
RE: Need Some help..
Hi, The changes you describe below weren't quite what I meant. I guess I should have been more explicit. I suggest: step 1: define your webapp in the $TOMCAT_HOME/conf/server.xml file with a prefix, like Context path="/mywebapp" docBase="/home/mywebapproot" debug="0" reloadable="true" trusted="false" /Context and in your web.xml, add something like: servlet servlet-name invoker /servlet-name servlet-class org.apache.tomcat.servlets.InvokerServlet /servlet-class /servlet servlet-mapping servlet-name invoker /servlet-name url-pattern /myservlets/* /url-pattern /servlet-mapping This should allow you to run your servlets (ie any class which implements Servlet, and whose .class file is stored under yourwebapproot/WEB-INF/classes) using urls like http://somehost:8080/mywebapp/myservlets/somepkg.someservletclass If you don't like having all your servlets "appear" to be under one directory, don't like having to type in the package name, want servlets to be invoked by names which don't match the actual java class name, or want to pass initialisation params to servlets, then you have to add individual servlet and servlet-mapping tags for each servlet instead of setting up an InvokerServlet. Note that the InvokerServlet is just an ordinary servlet - you could have written it yourself, but tomcat nicely provides an implementation. Above, the standard servlet-mapping feature is used to redirect all urls starting with "myservlets" to an "ordinary" servlet called InvokerServlet. The code inside InvokerServlet just fetches the rest of the URL, and then calls the java "getClassFor" method, and (provided it succeeced) calls the class. step 2: Change the "path" attribute in the context entry from "/mywebapp" to "", which will get rid of the "mywebapp" prefix, so that you can run your servlets as http://somehost:8080/myservlets/somepkg.someservletclass Remember that the settings in $TOMCAT_HOME/conf/server.xml are applied to *all* webapps within a tomcat instance. I think that by doing redirections at this level, you can cause really nasty side-effects. I'm not sure what an InvokerInterceptor actually does, but I think it is too "high-level" for achieving what you want to achieve. Try thinking of a webapp as an application, like microsoft word. Changing settings in a webapp's web.xml file is like selecting File|Properties within word to modify setting for the word application. Changing settings in $TOMCAT_HOME/conf/server.xml is like changing operating-system-wide settings. Regards, Simon -Original Message- From: Thyagesh [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 1:07 PM To: [EMAIL PROTECTED] Subject: Re: Need Some help.. Hi, Thanks Simon for the valuable advice. I got most of it. I still need some clarifications: I am use:Tomcat 3.2 WindowsNT4 IIS 4.0. Things I did is: 1) I Repeated the following lines in server.xml in tomcat home/conf for different context-paths (i.e. for http://host/context-path/servlet name: /servlet, /login etc) by adding different values of 'prefix' attribute. RequestInterceptor className="org.apache.tomcat.request.InvokerInterceptor" debug="0" prefix="/login/" / 2) Defined mappings in web.xml (in webapps/root/.../web.xml) for all servlets that are in packages. This seems to work when I requests to Tomcat directly. I wanted to know: A) whether the above configurations is logically CORRECT. -Thanks -Thyagesh - Original Message - From: Kitching Simon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 18, 2000 4:43 PM Subject: RE: Need Some help.. Hi, I suggest thinking of your mappings in two steps: (a) get the mappings right *within* a context (b) decide what context prefix you want. If you ve a context with a path (ie url prefix) of "mywebapp", then you can set up URLs as you desire *within* that webapp. Configuring the url-servlet mappings (ie what servlet is run when a user requests a particular url) is done by defining servlet-mapping tags within the WEB-INF/web.xml file for your webapp. The urls you define like this are all *relative* to the webapp url, eg if you set up a mapping from "/foo" to the java class "mypackage.myclass", then it must be accessed by the user as "http://somehost/webappname/foo". If you have a whole bunch of servlets, and you don't want to enter separate servlet-mapping entries for each one, then you may want to take advantage of the "invoker servlet" which effectively sets up bulk url mappings for you, but doesn't give you such fine control as creating invididual mappings. Deciding whether you
Re: Tomcat and IIS 5.0
This is my configuration D:\Tomcat\Webapps\MyApp\ with inside JSP and servlet C:\InetPub\wwwroot\with inside the WEB Site (HTML,ASP,..) I need that: If I call http://server/myapp/*.* respond the tomcat for jsp and servlet...and IIS for ASP and Static. if I call any other adress..respond my IIS. Thanks - Original Message - From: "Krieg Steffen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 12:33 PM Subject: AW: Tomcat and IIS 5.0 And what is your problem? It works fine on my machine ... -Ursprüngliche Nachricht- Von: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 10:47 An: [EMAIL PROTECTED] Betreff: Tomcat and IIS 5.0 Hi folks. I have installed the Tomcat 3.2 on Windows 2000 and JDK 1.3 + 1.2EE. I need to integrate Tomcat with IIS 5 so I can use Servlet and JSP on my sites. Thanks Lorenzo Soncini
unable to use my own created class
Hello all, I have created my own class "JdbcBean.java" and trying to use it in my Jdbc.jsp file as follows:- %@ page import="java.io.*, java.sql.*, JdbcBean" % at this point there is no error, but when i instantiate this class as follows:- %! JdbcBean jdbctest = new JdbcBean(); % I am getting an error saying : Error: 500 Location: /jsp/Jdbc.jsp Internal Servlet Error: javax.servlet.ServletException: JdbcBean Root cause: java.lang.NoClassDefFoundError: JdbcBean I copied JdbcBean.class at the scratchdir directory and also tried to manipulate the CLASSPATH env variable, but all in vain. I am unable to set the classpath for this class, can anyone suggest me where to place this class file. Thanks in advance Naresh Chhabria
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 68620 invoked by uid 500); 20 Dec 2000 11:47:14 - 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 68537 invoked from network); 20 Dec 2000 11:47:09 - Received: from unknown (HELO po2.oii.co.jp) (210.133.203.1) by locus.apache.org with SMTP; 20 Dec 2000 11:47:09 - Message-ID: [EMAIL PROTECTED] From: Kenichi Mori [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: InterScan eManager Content Management Notification! (Dirty Wo rds) Date: Wed, 20 Dec 2000 20:45:58 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 68620 invoked by uid 500); 20 Dec 2000 11:47:14 - 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 68537 invoked from network); 20 Dec 2000 11:47:09 - Received: from unknown (HELO po2.oii.co.jp) (210.133.203.1) by locus.apache.org with SMTP; 20 Dec 2000 11:47:09 - Message-ID: [EMAIL PROTECTED] From: Kenichi Mori [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: RE: InterScan eManager Content Management Notification! (Dirty Wo rds) Date: Wed, 20 Dec 2000 20:45:58 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
RE: InterScan eManager Content Management Notification! (DirtyWords)
yeah.. I'm getting those. What's going on? What mail filter is this??? And more importantly... who's sending those "dirty words"??? ;o) -Original Message- From: Stephen Coy [mailto:[EMAIL PROTECTED]] Sent: 20. desember 2000 11:41 To: [EMAIL PROTECTED] Subject: Re: InterScan eManager Content Management Notification! (DirtyWords) Sorry for the noise, but is anyone else on the list getting these? My ISP (optushome.com.au) is adamant that they are not responsible for this... I've had a half dozen or so of them in the last hour, from a variety of source addresses, all from this list. on 20/12/00 9:02 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: **Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
RE: InterScan eManager Content Management Notification! (DirtyWords)
Yes, I'm getting them too. I'm pretty sure they are coming from our company's firewall because of the address. I sent mail here complaining. Haven't heard back yet. Steve Buroff -Original Message- From: Stephen Coy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 6:41 AM To: [EMAIL PROTECTED] Subject: Re: InterScan eManager Content Management Notification! (DirtyWords) Sorry for the noise, but is anyone else on the list getting these? My ISP (optushome.com.au) is adamant that they are not responsible for this... I've had a half dozen or so of them in the last hour, from a variety of source addresses, all from this list. on 20/12/00 9:02 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: **Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
Using AJP13
How I can update ajp12 to ajp13 for comunication beetwen IIS and Tomcat 3.2 Thanks Lorenzo Soncini
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 91431 invoked by uid 500); 20 Dec 2000 12:00:41 - 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 91306 invoked from network); 20 Dec 2000 12:00:38 - Received: from mx1.decode.is ([EMAIL PROTECTED]) by locus.apache.org with SMTP; 20 Dec 2000 12:00:38 - Received: (from root@localhost) by mx1.decode.is (8.9.3/decode) id MAA18976 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 12:00:33 GMT Received: from smail.decode.is (smail.decode.is [172.18.0.18]) by mx1.decode.is (8.9.3/decode) with ESMTP id MAA18938 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 12:00:31 GMT Subject: RE: InterScan eManager Content Management Notification! (DirtyWords) Date: Wed, 20 Dec 2000 12:00:33 - MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: [EMAIL PROTECTED] X-MS-Has-Attach: content-class: urn:content-classes:message X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Thread-Topic: InterScan eManager Content Management Notification! (DirtyWords) Thread-Index: AcBqegCQNYlJH0PBQ0STPMZoQElYVwAAlvvA From: =?iso-8859-1?Q?Stef=E1n_F=2E_Stef=E1nsson?= [EMAIL PROTECTED] To: [EMAIL PROTECTED] X-scanner: scanned by Inflex 0.1.5 - (http://www.inflex.co.za/) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mx1.decode.is id MAA18976 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 91431 invoked by uid 500); 20 Dec 2000 12:00:41 - 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 91306 invoked from network); 20 Dec 2000 12:00:38 - Received: from mx1.decode.is ([EMAIL PROTECTED]) by locus.apache.org with SMTP; 20 Dec 2000 12:00:38 - Received: (from root@localhost) by mx1.decode.is (8.9.3/decode) id MAA18976 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 12:00:33 GMT Received: from smail.decode.is (smail.decode.is [172.18.0.18]) by mx1.decode.is (8.9.3/decode) with ESMTP id MAA18938 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 12:00:31 GMT Subject: RE: InterScan eManager Content Management Notification! (DirtyWords) Date: Wed, 20 Dec 2000 12:00:33 - MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-ID: [EMAIL PROTECTED] X-MS-Has-Attach: content-class: urn:content-classes:message X-MS-TNEF-Correlator: X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Thread-Topic: InterScan eManager Content Management Notification! (DirtyWords) Thread-Index: AcBqegCQNYlJH0PBQ0STPMZoQElYVwAAlvvA From: =?iso-8859-1?Q?Stef=E1n_F=2E_Stef=E1nsson?= [EMAIL PROTECTED] To: [EMAIL PROTECTED] X-scanner: scanned by Inflex 0.1.5 - (http://www.inflex.co.za/) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mx1.decode.is id MAA18976 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 97143 invoked by uid 500); 20 Dec 2000 12:03:28 - 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 97086 invoked from network); 20 Dec 2000 12:03:26 - Received: from ihemail1.lucent.com (HELO ihemail1.firewall.lucent.com) (192.11.222.161) by locus.apache.org with SMTP; 20 Dec 2000 12:03:26 - Received: from ihemail1.firewall.lucent.com (localhost [127.0.0.1]) by ihemail1.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id HAA26490 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 07:03:25 -0500 (EST) Received: from ldvmail.ldv.lucent.com (h135-17-61-5.lucent.com [135.17.61.5]) by ihemail1.firewall.lucent.com (Pro-8.9.3/8.9.3) with ESMTP id HAA26477 for [EMAIL PROTECTED]; Wed, 20 Dec 2000 07:03:25 -0500 (EST) Received: by ldvmail.ldv.lucent.com (8.9.1b+Sun/EMS-1.5 sol2) id HAA27113; Wed, 20 Dec 2000 07:03:24 -0500 (EST) To: [EMAIL PROTECTED] Received: from shoeless by ldvmail.ldv.lucent.com (8.9.1b+Sun/EMS-1.5 sol2) id HAA27109; Wed, 20 Dec 2000 07:03:24 -0500 (EST) From: "Steve Buroff" [EMAIL PROTECTED] Original-To: [EMAIL PROTECTED] Subject: RE: InterScan eManager Content Management Notification! (DirtyWords) Date: Wed, 20 Dec 2000 07:03:46 -0500 Message-ID: 008501c06a7c$e7b8a2a0$[EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: [EMAIL PROTECTED] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
RE: Using AJP13
You cannot , IISConnector only works with AJP12 But a contribution in this area will be higly welcomed ;-) Saludos , Ignacio J. Ortega -Mensaje original- De: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Enviado el: miércoles 20 de diciembre de 2000 13:11 Para: Tomcat Mailinglist Asunto: Using AJP13 How I can update ajp12 to ajp13 for comunication beetwen IIS and Tomcat 3.2 Thanks Lorenzo Soncini
AW: InterScan eManager Content Management Notification! (Dirty Wo rds)
1.) These mails are obviously going ot to everybody in the list. 2.) What look like the orginator isn't in most cases the orgin is not what it seem to be. The mail adress contains just postmaster and is rewritten by the most mailservers to postmaster@'local-domain'. So the most of us get a message that looks like it has been sent by the own domain, which isn't the case. -Ursprungliche Nachricht- Von: Kenichi Mori [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 12:46 An: '[EMAIL PROTECTED]' Betreff: RE: InterScan eManager Content Management Notification! (Dirty Wo rds) I'm getting these msgs. -Original Message- From: Stephen Coy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 8:41 PM To: [EMAIL PROTECTED] Subject: Re: InterScan eManager Content Management Notification! (Dirty Words) Sorry for the noise, but is anyone else on the list getting these? My ISP (optushome.com.au) is adamant that they are not responsible for this... I've had a half dozen or so of them in the last hour, from a variety of source addresses, all from this list. on 20/12/00 9:02 PM, [EMAIL PROTECTED] at [EMAIL PROTECTED] wrote: **Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 64090 invoked by uid 500); 20 Dec 2000 10:06:54 - 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 64078 invoked from network); 20 Dec 2000 10:06:53 - Received: from smtp4.mail.yahoo.com (128.11.69.101) by locus.apache.org with SMTP; 20 Dec 2000 10:06:53 - Received: from unknown (HELO ss3) (203.109.74.4) by smtp.mail.vip.suc.yahoo.com with SMTP; 20 Dec 2000 10:06:51 - X-Apparently-From: java?[EMAIL PROTECTED] Message-ID: 011801c06a9b$0080f3a0$0d0a@ss3 From: "Bhavesh Vakil" [EMAIL PROTECTED] To: [EMAIL PROTECTED] References: 003701c06a68$1f342cf0$d300a8c0@kmichishita02 Subject: Re: how to eliminate port number? Date: Wed, 20 Dec 2000 15:39:06 - MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="=_NextPart_000_0115_01C06A9A.FCDE2A60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Sender, Content filter has offensive language. Message not sent. *** End of message *** Received: (qmail 47258 invoked by uid 500); 20 Dec 2000 12:28:07 - 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 47216 invoked from network); 20 Dec 2000 12:28:06 - Received: from hmbg-3e36c392.pool.mediaways.net (HELO server01.hh.uptime-isc.de) (62.54.195.146) by locus.apache.org with SMTP; 20 Dec 2000 12:28:06 - Received: by server01.hh.uptime-isc.de with Internet Mail Service (5.5.1960.3) id XJDVH095; Wed, 20 Dec 2000 13:27:36 +0100 Message-ID: [EMAIL PROTECTED] From: Ralph Einfeldt [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: AW: InterScan eManager Content Management Notification! (Dirty Wo rds) Date: Wed, 20 Dec 2000 13:27:35 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 47258 invoked by uid 500); 20 Dec 2000 12:28:07 - 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 47216 invoked from network); 20 Dec 2000 12:28:06 - Received: from hmbg-3e36c392.pool.mediaways.net (HELO server01.hh.uptime-isc.de) (62.54.195.146) by locus.apache.org with SMTP; 20 Dec 2000 12:28:06 - Received: by server01.hh.uptime-isc.de with Internet Mail Service (5.5.1960.3) id XJDVH095; Wed, 20 Dec 2000 13:27:36 +0100 Message-ID: [EMAIL PROTECTED] From: Ralph Einfeldt [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: AW: InterScan eManager Content Management Notification! (Dirty Wo rds) Date: Wed, 20 Dec 2000 13:27:35 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
AW: Disable session cookies
Yes, thats right, that would solve the problem for JSP scripts. But what about other servlets. How can I disable cookies in non-JSP servlets? bye Ralf -Ursprüngliche Nachricht- Von: Deepak C S [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 12:26 An: '[EMAIL PROTECTED]' Betreff: RE: Disable session cookies %@ page session="false" % would solve the problem -- From: Ralf Freischlag[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 6:30 PM To: Tomcat Mailinglist Subject: Disable session cookies Hallo, how can I disable session cookies in Tomcat? We want to use only Url-rewriting for storing the session string, but we found no switch to turn session cookies off. Thank you for your help. Greetings Ralf - youSmile.de AG - Die Geschenkewelt im Internet - Ralf Freischlag Haid-und-Neu Str. 7 76131 Karlsruhe Tel.: +49 (0) 721 964 550 Fax.: +49 (0) 721 964 556 Mobil.: 0177 / 7233151 www.youSmile.de
Re: InterScan eManager Content Management Notification! (Dirty Words)
The messages look like they come from your local postmaster, but there's nothing running in our domain that would cause this. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 44108 invoked by uid 500); 20 Dec 2000 13:03:31 - 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 43985 invoked from network); 20 Dec 2000 13:03:30 - Received: from warsl401pip5.highway.telekom.at (HELO email03.aon.at) (195.3.96.112) by locus.apache.org with SMTP; 20 Dec 2000 13:03:30 - Received: (qmail 4337308 invoked from network); 20 Dec 2000 13:03:00 - Received: from l1396p22.dipool.highway.telekom.at (HELO Gaea.ssw.uni-linz.ac.at) ([62.46.238.118]) (envelope-sender [EMAIL PROTECTED]) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for [EMAIL PROTECTED]; 20 Dec 2000 13:03:00 - Received: from [127.0.0.1] (127.0.0.1) by Gaea.ssw.uni-linz.ac.at (192.168.0.1) with esmtp ; Wed, 20 Dec 2000 14:01:56 +0100 X-Posting-Agent: Hamster/1.3.22.0 Date: Wed, 20 Dec 2000 14:01:33 +0100 From: Kurt Bernhard Pruenner [EMAIL PROTECTED] Organization: Sysadmins Anonymous X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en,de-AT,de MIME-Version: 1.0 To: [EMAIL PROTECTED] Subject: Re: InterScan eManager Content Management Notification! (DirtyWords) References: 008501c06a7c$e7b8a2a0$[EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 18 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
InterScan eManager Content Management Notification! (Dirty Words)
**Message from InterScan E-Mail VirusWall NT** The following mail was blocked by InterScan eManager Content Management. Source mailbox: [EMAIL PROTECTED] Destination mailbox(es): [EMAIL PROTECTED] Policy: Dirty Words Action: Archive Recipient, Content filter has detected a sensitive e-mail. *** End of message *** Received: (qmail 53902 invoked by uid 500); 20 Dec 2000 13:07:20 - 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 53658 invoked from network); 20 Dec 2000 13:07:17 - Received: from www.clubnet.net (HELO mail.clubnet.net) (206.126.128.4) by locus.apache.org with SMTP; 20 Dec 2000 13:07:17 - Received: from clubnet.net (200.40.104.248) by mail.clubnet.net with ESMTP (Eudora Internet Mail Server 2.2.1); Wed, 20 Dec 2000 05:06:32 -0800 Sender: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Date: Wed, 20 Dec 2000 10:06:33 -0300 From: Diego Pons [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Organization: Pharos Consulting LLC X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en, es-ES, es-AR MIME-Version: 1.0 To: [EMAIL PROTECTED] Subject: Re: InterScan eManager Content Management Notification! (Dirty Words) References: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
Re: InterScan eManager Content Management Notification! (DirtyWords)
Stephen Coy wrote: Sorry for the noise, but is anyone else on the list getting these? My ISP (optushome.com.au) is adamant that they are not responsible for this... I've had a half dozen or so of them in the last hour, from a variety of source addresses, all from this list. My ISP is clubnet.net. I already wrote to them asking for an explanation. It looks like someone has a hare-brained filter gone berserk. It goes to show that censorship can never work well. -- Diego Pons Pharos Consulting LLC
Re: InterScan eManager Content Management Notification!(Dirty Words)
Ted Husted wrote: The messages look like they come from your local postmaster, but there's nothing running in our domain that would cause this. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/ Right, I have already noticed it and just took a phone call to our postmaster and they are trying to check out the reason for this . Perhaps it's on the system configuration or I have a new type of virus in my e-mail system (Netscape 6) which try to send inappropriate messages to this mailing-list. I'm really sorry for all this mess, please be patient for a while. Regards, Immo
Re: Error: 500
Naresh Chhabria wrote: Hi all, I'am getting the following error when accessing this /jsp/Jdbc.jsp Internal Servlet Error: org.apache.jasper.compiler.ParseException: /var/net/services/infoline/doc/jsp/Jdbc.jsp(4,44) Attribute , has no value this jsp has the following code: %@ page language="java" import="java.io.*","java.sql.*","JdbcBean" % where JdbcBean is a class which has functions for database connection, returning resultset object and closing the connection. I think the parser is trying to tell you to only use one set of quote marks around the entire import attribute. like this "java.io.*,java.sql.*,JdbcBean" -- WBB - [EMAIL PROTECTED] Java Cert mock exams http://www.lanw.com/java/javacert/ Author of Java Developer's Guide to Servlets and JSP ISBN 0-7821-2809-2
Re: Tomcat and IIS 5.0 An example
I have witten thatbut don't work. I try to reinstall my Win2000 test machine :-( This is my URIWORKERS file # # Configuration for the /ugo context starts. # # # The following line mounts all JSP file and the /servlet/ uri to tomcat # /ugo/servlet/*=$(default.worker) /ugo/*.jsp=$(default.worker) ### # Configuration for the /ugo context ends. ### And nothing else! This is my log: [IIS redirect log] [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /ugo/servlet/=$(default.worker) was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /ugo/.jsp=$(default.worker) was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory - Original Message - From: "Krieg Steffen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 2:28 PM Subject: AW: Tomcat and IIS 5.0 An example You have to write the following in the uriworkermap.properties: /Ugo/*.jsp=ajp12 /Ugo/servlet/*=ajp12 The first is for the JSP's and the second for the servlets. -Ursprüngliche Nachricht- Von: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 13:01 An: [EMAIL PROTECTED] Betreff: Fw: Tomcat and IIS 5.0 An example Here the problem If I make a call http://ls234/Ugo/Elenco.jsp The server ignore the JSP tags and return the file as an STATIC HTML FILE, but if I call the same file with http://ls234:8080/Ugo/Elenco.jsp all work fine, the JSp call my beeans and its work! Lorenzo - Original Message - From: "Lorenzo Soncini" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 12:47 PM Subject: Re: Tomcat and IIS 5.0 This is my configuration D:\Tomcat\Webapps\MyApp\ with inside JSP and servlet C:\InetPub\wwwroot\with inside the WEB Site (HTML,ASP,..) I need that: If I call http://server/myapp/*.* respond the tomcat for jsp and servlet...and IIS for ASP and Static. if I call any other adress..respond my IIS. Thanks - Original Message - From: "Krieg Steffen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 12:33 PM Subject: AW: Tomcat and IIS 5.0 And what is your problem? It works fine on my machine ...
Re: InterScan eManager Content Management Notification!(Dirty Words)
Sorry all, I removed my self from the jakarata-tomcat-mailing list for a while. Hope this helps. Please inform me directly if you will get still those annoying Re: InterScan eManager Content Management Notification!(Dirty Words) messages. I will rejoin when things will be OK. Regards, Immo
AW: Tomcat and IIS 5.0 An example
do you mean ugo or Ugo. It's different in Tomcat 3.2 -Ursprüngliche Nachricht- Von: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 14:36 An: [EMAIL PROTECTED] Betreff: Re: Tomcat and IIS 5.0 An example I have witten thatbut don't work. I try to reinstall my Win2000 test machine :-( This is my URIWORKERS file # # Configuration for the /ugo context starts. # # # The following line mounts all JSP file and the /servlet/ uri to tomcat # /ugo/servlet/*=$(default.worker) /ugo/*.jsp=$(default.worker) ### # Configuration for the /ugo context ends. ### And nothing else! This is my log: [IIS redirect log] [jk_uri_worker_map.c (155)]: Into jk_uri_worker_map_t::uri_worker_map_alloc [jk_uri_worker_map.c (195)]: Into jk_uri_worker_map_t::uri_worker_map_open [jk_uri_worker_map.c (210)]: jk_uri_worker_map_t::uri_worker_map_open, rule map size is 2 [jk_uri_worker_map.c (266)]: Into jk_uri_worker_map_t::uri_worker_map_open, match rule /ugo/servlet/=$(default.worker) was added [jk_uri_worker_map.c (255)]: Into jk_uri_worker_map_t::uri_worker_map_open, suffix rule /ugo/.jsp=$(default.worker) was added [jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules [jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done [jk_worker.c (82)]: Into wc_open [jk_worker.c (207)]: Into build_worker_map, creating 1 workers [jk_worker.c (213)]: build_worker_map, creating worker ajp12 [jk_worker.c (138)]: Into wc_create_worker [jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of ajp12 [jk_ajp12_worker.c (264)]: Into ajp12_worker_factory [jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12 [jk_ajp12_worker.c (182)]: Into jk_worker_t::validate [jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12 contact is localhost:8007 [jk_worker.c (177)]: wc_create_worker, done [jk_worker.c (223)]: build_worker_map, removing old ajp12 worker [jk_worker.c (235)]: build_worker_map, done [jk_worker.c (102)]: wc_open, done [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory [jk_isapi_plugin.c (408)]: HttpFilterProc started [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of /Ugo/Elenco.jsp [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a match [jk_isapi_plugin.c (452)]: HttpFilterProc [/Ugo/Elenco.jsp] is not a servlet url [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/Ugo/Elenco.jsp] is points to the web-inf directory - Original Message - From: "Krieg Steffen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 2:28 PM Subject: AW: Tomcat and IIS 5.0 An example You have to write the following in the uriworkermap.properties: /Ugo/*.jsp=ajp12 /Ugo/servlet/*=ajp12 The first is for the JSP's and the second for the servlets. -Ursprüngliche Nachricht- Von: Lorenzo Soncini [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 20. Dezember 2000 13:01 An: [EMAIL PROTECTED] Betreff: Fw: Tomcat and IIS 5.0 An example Here the problem If I make a call http://ls234/Ugo/Elenco.jsp The server ignore the JSP tags and return the file as an STATIC HTML FILE, but if I call the same file with http://ls234:8080/Ugo/Elenco.jsp all work fine, the JSp call my beeans and its work! Lorenzo - Original Message - From: "Lorenzo Soncini" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 12:47 PM Subject: Re: Tomcat and IIS 5.0 This is my configuration D:\Tomcat\Webapps\MyApp\ with inside JSP and servlet C:\InetPub\wwwroot\with inside the WEB Site (HTML,ASP,..) I need that: If I call http://server/myapp/*.* respond the tomcat for jsp and servlet...and IIS for ASP and Static. if I call any other adress..respond my IIS.
Re: InterScan eManager Content Management Notification!(Dirty Words)
I first saw these on the Struts list, so it's not just a Tomcat thing. *** REPLY SEPARATOR *** On 12/20/2000 at 3:36 PM Immo Heino wrote: Sorry all, I removed my self from the jakarata-tomcat-mailing list for a while. Hope this helps. Please inform me directly if you will get still those annoying Re: InterScan eManager Content Management Notification!(Dirty Words) messages. I will rejoin when things will be OK. Regards, Immo
Help me please, a strange error message from Tomcat
-BEGIN PGP SIGNED MESSAGE- Hi everybody, i dont know if somebody can help me! I didnt get sucess to solve this problem. i have a doubt about an error message which came from TomCat, as follow : There is a servlet, named StarServletnew, which instances a Bean, named FormBean, and sends some parameters that comes from a jsp form. The sources files are attached at this email. Error: 500 Location: /examples/servlet/StarServletnew Internal Servlet Error: java.lang.NoSuchMethodError: FormBean: method (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lja va/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/l ang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/ Stri at StarServletnew.doPost(StarServletnew.java, Compiled Code) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597) at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java, Compiled Code) at java.lang.Thread.run(Unknown Source) José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com *** END PGP VERIFIED MESSAGE *** -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQCVAwUBOkDrH90YhuJ3BUxtAQE85gQAwQUxA+ROndkuKZgLcVVKldxjo+dDOiWZ E/Y8F4PuDzXDSwCfnCHQ8on2PzYhf/ywugd/Xgetu6EQl9jqmyyvV9q1toVPNMVG u0akaepg8JHap83JqKrd7aJ/eXbPMiv/eEd00mVZoQGH86FISUaWGsBHAYKe76e5 MXwshghLLsc= =D0IQ -END PGP SIGNATURE- Form1.jsp StarServletnew.java FormBean.java Form1.jsp StarServletnew.java FormBean.java
Re: creation of application wide objects
don't forget you need the load-on-startup1/load-on-startup tag Alex Fernández wrote: I think I can answer that. In web.xml (inside webapps/yourapp/web-inf) you just have to declare your servlet, like this: servlet servlet-name backend.servlets.Authorizator /servlet-name servlet-class backend.servlets.Authorizator /servlet-class init-param param-nameinit/param-name param-valuec:\config\Init.config/param-value /init-param /servlet By default (I think), the servlet container starts it up. Please correct me if I'm wrong. PS. Someone turn off the f***ing Content Manager! ;) Alex. Guillaume Barreau wrote: Thanks for all the replies which were very useful. I have however a further question about one of the suggested solutions: So why don't you just shortcut this approach: make a dummy servlet that will load at startup ( is a configuration job) that instantiates the Application objects. You don't need a broker (at least not for this problem) Sloot. How does one guarantee that the dummy servlet will load at startup? Is there a way that does not imply making for an http request from somewhere else? The "(is a configuration job)" seems to refer to something which I am not aware of. Thanks again, Guillaume begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE url:www.rtci.com org:RTCI;Custom Solutions adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US version:2.1 email;internet:[EMAIL PROTECTED] title:Web Developer fn:Matt end:vcard
RE: Compile Error in JSP generated servlet
You are declaring the String array twice in your code. The first one is okay... String [] _tmpS = new String[7]; but you can't do this again in your code. If you want to create a new String array for _tmpS after already declaring _tmpS you should do it without declaring it... _tmpS = new String[7]; Hope this helps. -Y --- Yoav Morahg Software Engineer Gist Communications (212) 965-1999 xt 110 [EMAIL PROTECTED] Interactive Television Guides -Original Message- From: Moran, David (David) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 5:50 PM To: [EMAIL PROTECTED] Subject: Compile Error in JSP generated servlet What would cause JSP to generate the same variable in the generated servlet. I am getting the following compile error in the JSP generated servlet in tomcat 3.2 on Windows NT. I am trying to get the book examples to run from "SE Using Java Server Pages and Servlets" Error: 500 Location: /examples/examples/ShowPeople.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\java\servlet\jakarta-tomcat-3.2\work\localhost_8080%2Fexamples\_0002fe xamples_0002fShowPeople_0002ejspShowPeople_jsp_0.java:75: Variable '_tmpS' is already defined in this method. String [] _tmpS = new String[7]; ^ D:\java\servlet\jakarta-tomcat-3.2\work\localhost_8080%2Fexamples\_0002fexam ples_0002fShowPeople_0002ejspShowPeople_jsp_0.java:83: Variable '_tmpS' is already defined in this method. String [] _tmpS = new String[7]; ^ This is the offending code from the servlet // begin [file="D:\\java\\servlet\\jakarta-tomcat-3.2\\webapps\\examples\\examples\\S howPeople.jsp";from=(14,0);to=(46,14)] { String _jspx_qStr = ""; _jspx_qStr = _jspx_qStr + "?tableOptions=" + "BORDER=4"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "column=" + "name"; _jspx_qStr = _jspx_qStr + "column=" + "age"; _jspx_qStr = _jspx_qStr + "column=" + "city"; _jspx_qStr = _jspx_qStr + "column=" + "state"; _jspx_qStr = _jspx_qStr + "column=" + "country"; _jspx_qStr = _jspx_qStr + "column=" + "postalCode"; _jspx_qStr = _jspx_qStr + "column=" + "email"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Name"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Age"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "City"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "State"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Country"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Postal Code"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "E-Mail"; _jspx_qStr = _jspx_qStr + "data=" + "people"; pageContext.include("TableServlet" + _jspx_qStr); }
Re: creation of application wide objects
:) no problem Alex Fernández wrote: Yep, that's right. So it should be: servlet servlet-name backend.servlets.Authorizator /servlet-name servlet-class backend.servlets.Authorizator /servlet-class init-param param-nameinit/param-name param-valuec:\config\Init.config/param-value /init-param load-on-startup 1 /load-on-startup /servlet Thanks for the correction, Alex. Matt Goss wrote: don't forget you need the load-on-startup1/load-on-startup tag begin:vcard n:Goss;Matt tel;fax:919-657-1501 tel;work:919-657-1432 x-mozilla-html:FALSE url:www.rtci.com org:RTCI;Custom Solutions adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US version:2.1 email;internet:[EMAIL PROTECTED] title:Web Developer fn:Matt end:vcard
RE: InterScan eManager Content Management Notification! (Dirty Wo rds)
Oliver Kurt wrote: I just extracted the important part of the "anti-dirty-words mail": Received: (qmail 59280 invoked from network); 20 Dec 2000 13:09:19 - Received: from observer.systoc.com (HELO observer) (208.162.101.247) by locus.apache.org with SMTP; 20 Dec 2000 13:09:19 - InterScan-Notification: yes For me it looks like "observer.systoc.com" is the sender of that mail-stuff. Am I right? Correct, see mine and others posts below. FYI I mailed this to [EMAIL PROTECTED]: Postmaster I am a member of the tomcat-user mailing list and I am writing to inform you that your InterScan configuration seems incorrect and is causing spam to the list. Your scan has appears to have incorrectly mistaken a name for a Dirty Word: Michis#*ta (where #*=hi) isn't a rude word Also your scanning software's reply to address is incomplete (it is just set to postmaster) making it harder for people to raise the issue with you. Also your scanning agent is complaining about it's own posts as it posts to a mailing list an attachment with the original message header. This is looping and will continue flood the list untill intervention on your part or the listmasters. I have contacted the list but suggest you check your configuration. Paul Nasrat
servlet mapping
Hi, I recently moved from tomcat 3.1 to tomcat 3.2.1. I found the speed of start-up/shutdown is improved dramatically, and I don't have to manually kill my apache and restart it anymore. However, with the upgrade, I found something else strange happened. I defined the following servlet so that whenever the user navigates to my web application, it will automatically invoke my servlet to generate a welcome page for him. For instance, http://myserver.com:8080/myapp will invoke the PWFrontPageServlet. It worked well with 3.1. However, it does not work in 3.2.1. I have to manually type in http://myserver.com:8080/myapp/index.html to invoke the servlet. I tried to set the welcome-file-list element in web.xml, it didn't work. Can somebody please help me out? Ma, Yanbin = servlet definition servlet servlet-namePWFrontPageServlet/servlet-name servlet-classPWFrontPageServlet/servlet-class /servlet servlet-mapping servlet-namePWFrontPageServlet/servlet-name url-pattern/index.html/url-pattern /servlet-mapping =
Re: problems running Tomcat 3.2.1 as Service..
Check the archives of this list. it's been said a thousand times, but here goes once more. This is a known bug in JDK 1.3. You can avoid this by using JDK 1.2 or by using another NT Service manager such as: Logoff bug fixed for next iteration of JDK 1.3 http://developer.java.sun.com/developer/bugParade/bugs/4323062.html ALSO, another alternative Sun recommends in the meantime http://www.kcmultimedia.com/javaserv/ http://www.alexandriasc.com/software/JavaService/ Jake At 10:49 AM 12/20/2000 -0500, you wrote: We are running the latest Tomcat 3.2.1 and, using "NT-Service-howto.html", installed it as a Service. AJP12 support is enabled using the default port 8007. We are using Windows 2000. After the service is started and you LogOff the Service does not start back up ( with "Startup Type" set to "Automatic" ). Any suggestions on how we can fix this? Thanks, Joe Siebenmann Inciscent
Tomcat 3.2.1 binary standalone + SSL - Reworded
Ok, let's ask this. Has the current binary for Tomcat 3.2.1 been compiled to use JSSE? I've seen posts in the archive that indicate previous binaries were not, but that may have been during beta. I am using the Tomcat 3.2.1 binary which I downloaded on Monday. We want a standalone configuration as all of our pages are jsp, no static pages at all, thus no real need for Apache. I can get the standard connection at port 8080 to work, but when I try to connect vis SSL with IE5 I get a blank certificates dialog box asking me to choose a certificate. I have followed the intsructions in the tomcat-ssl-howto and in server.xml. What have I missed? The tomcat-ssl-howto mentions something about a selfSign.pem, but doesn't say anything about creating it, or where to put it, or anything. I told keytool that I wanted my keystore to be /usr/local/tomcat/conf/keystore and it created that file in that directory. Everything else seems to be ok. When I hit the https address (https://ip.add.re.ss:8443/examples/jsp/index.htm) tomcat reports: 2000-12-20 10:50:21 - Ctx( ): 400 R( /) null 2000-12-20 10:50:21 - Ctx( ): IOException in: R( /) Socket closed I've set the logging in server.xml to DEBUG for all three log files, but nothing additional seems to be recorded in the logs. Any suggestions? Thanks in advance. Dion Vansevenant Internetwork Administrator MRO.com
Libs and classes are missing in 3.2.1
Hello, I've the following problem. I've set up my context in c:\a\b and place my libs in c:\a\b\WEB-INF\lib dir;classes is in c:\a\b\WEB-INF\classes. So there is the problem not libs not classes not detected in web-app runtime( Root exception: ClassNotFoundException).In case of classes I mean bean classes used on JSP etc.- supply classes(not jar'ed) ,defined in different packages. For example c:\a\b\WEB-INF\classes\package1\class1.class. class1.class couldn't be found... all the same with packaged lib classes. Anybody help!!! P.S. With tomcat 3.1 all was OK.
server.xml dtd
Hi tomcat users, where can I find a dtd and other discribing information for server.xml? Thanks Stefan
JSP Compile Error
Hey... I've run into a really weird error that seems to be a part of Tomcat itself. Attached are two files, JSPTEST.JSP and JUNK.JAVA. The JSP file is just an example file, this seems to happen with just about any of them. Here's what happens. Whenever I attempt to call the JSP file, the Java file isn't produced correctly. The last line of the Java file is this: out.write("\r\nHTML\r\nHEAD\r\n\tTITLEJSP Test Page/TITLE\r\n/HEAD\r\nBODY\r\n\r\nTABLE BORDER=\"1\"\r\n\r\n "); And it repeats over and over again. The Java file attached is a VERY truncated version... I let it run for a few minutes and the Java file produced was over 400Mb! This of course doesn't allow the VJM to quit, since it's working on creating this beast, and it continues to grow, consuming all of one processor if I allow it to. Details on the server in question: - OS: Solaris/x86 8 - JDK: Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) - Apache 1.3.14 - Tomcat 3.2 - mod_jk - The JIT Java compiler is disabled. It will work every now and then if it's turned off, and never if it's turned on. Any insight into this problem would be much welcomed, this is really wild and I'm not sure where to go next. - Matt jsptest.jsp junk.java
RE: Compile Error in JSP generated servlet
-Original Message- From: Kitching Simon [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 10:50 AM To: '[EMAIL PROTECTED]' Subject: RE: Compile Error in JSP generated servlet David, How about posting the original jsp source code? The problem *is* probably somewhere in there, and even if it isn't, most people (like me) are unlikely to give too much attention to a possible problem in tomcat unless we can see for ourselves that there is nothing wrong with the original jsp... Cheers, Simon -Original Message- From: Moran, David (David) [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:41 PM To: '[EMAIL PROTECTED]' Subject: RE: Compile Error in JSP generated servlet But I'm not doing it. The JSP engine is doing it. -Original Message- From: Morahg, Yoav [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 9:52 AM To: '[EMAIL PROTECTED]' Subject: RE: Compile Error in JSP generated servlet You are declaring the String array twice in your code. The first one is okay... String [] _tmpS = new String[7]; but you can't do this again in your code. If you want to create a new String array for _tmpS after already declaring _tmpS you should do it without declaring it... _tmpS = new String[7]; Hope this helps. -Y --- Yoav Morahg Software Engineer Gist Communications (212) 965-1999 xt 110 [EMAIL PROTECTED] Interactive Television Guides -Original Message- From: Moran, David (David) [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 5:50 PM To: [EMAIL PROTECTED] Subject: Compile Error in JSP generated servlet What would cause JSP to generate the same variable in the generated servlet. I am getting the following compile error in the JSP generated servlet in tomcat 3.2 on Windows NT. I am trying to get the book examples to run from "SE Using Java Server Pages and Servlets" Error: 500 Location: /examples/examples/ShowPeople.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\java\servlet\jakarta-tomcat-3.2\work\localhost_8080%2Fexamples\_0002 fe xamples_0002fShowPeople_0002ejspShowPeople_jsp_0.java:75: Variable '_tmpS' is already defined in this method. String [] _tmpS = new String[7]; ^ D:\java\servlet\jakarta-tomcat-3.2\work\localhost_8080%2Fexamples\_0002fex am ples_0002fShowPeople_0002ejspShowPeople_jsp_0.java:83: Variable '_tmpS' is already defined in this method. String [] _tmpS = new String[7]; ^ This is the offending code from the servlet // begin [file="D:\\java\\servlet\\jakarta-tomcat-3.2\\webapps\\examples\\examples\ \S howPeople.jsp";from=(14,0);to=(46,14)] { String _jspx_qStr = ""; _jspx_qStr = _jspx_qStr + "?tableOptions=" + "BORDER=4"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; _jspx_qStr = _jspx_qStr + "columnType=" + "data"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "column=" + "name"; _jspx_qStr = _jspx_qStr + "column=" + "age"; _jspx_qStr = _jspx_qStr + "column=" + "city"; _jspx_qStr = _jspx_qStr + "column=" + "state"; _jspx_qStr = _jspx_qStr + "column=" + "country"; _jspx_qStr = _jspx_qStr + "column=" + "postalCode"; _jspx_qStr = _jspx_qStr + "column=" + "email"; String [] _tmpS = new String[7]; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Name"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Age"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "City"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "State"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Country"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "Postal Code"; _jspx_qStr = _jspx_qStr + "columnHeader=" + "E-Mail"; _jspx_qStr = _jspx_qStr + "data=" + "people"; pageContext.include("TableServlet" + _jspx_qStr); } ShowPeople.jsp
how to upgrade to 3.2.1 from 3.1beta
i had tomcat 3.1 beta running with no problems. i downloaded jakarta-tomcat-3.2.1.tar.gz from the tomcat website and gunzip'd and untar'd it. i copied my original tomcat installation directory to another location and then put the new 3.2.1 contents in its place. what else would have to be done assuming that i am only running very simplistic servlets (lets say it is just a HelloWorld)? i get an error when i try to build and deploy my webapp with a HelloWorld JSP file in it. anybody know why? of course more info can be given if someone requests it. the class that it says it cannot find does not appear to be on my system, however it was not there before either. did the XML parsing stuff change between 3.1 and 3.2.1? if so, where can i get the new XML parsing classes? thanks in advance...i am looking forward to the performance increase and built in security features of 3.2.1 my error message: No JAXP compliant XML parser found. See http://java.sun.com/xml for the reference implementation. java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code) at org.apache.tools.ant.Main.main(Main.java, Compiled Code)
RE: Netscape displaying the HTML code
Thanks for the reply but I don't think that works. 2 reasons why: 1) As far as I understand when the request comes in for servlet it is passed to tomcat and from there onwards tomcat does the rest of the processing. 2) Also even if I use the ForceType directive it defaults all the files in that directory (which in my case are all servlets) to html which is not right. All I am doing in the servlet is to read the html template into a string, replace some variables and use the out.println(String) statement to send it back to the browser. Am I missing something ?? Shanti At 02:20 AM 12/20/2000 +0530, you wrote: You can refer "ForceType" directive in Apache. Shuklix -Original Message- From: Guntupalli Shanti [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 2:46 AM To: [EMAIL PROTECTED] Subject: Netscape displaying the HTML code Hi, I have tomcat 3.2 running on Apache 1.3.14. All the HTML content in my web site is returned by the servlets based on the templates passed in the query. Something like http://www.myserver.com:8070/examples/servlet/servletname?page=main where main is a html template file. When I am accessing the page from IE I get exactly what I want but when I access this in netscape it displays all the HTML code. Does any one know how to fix it? Thanks in advance Shanti
Re: Tomcat3.2 final doesn't support user defined MIME type
Jason Zhu wrote: Another prove is: after I delete "TOMCAT_HOME\conf\web.xml" file, the tomecat still starts up without complaining or error. It seems to me that tomcat doesn't read "TOMCAT_HOME\conf\web.xml" file. Nor such messages printed on the dos prompt window. You are correct -- Tomcat 3.2 does *not* read the $TOMCAT_HOME/conf/web.xml file. You should be placing your MIME mappings in the WEB-INF/web.xml file for your own application. Craig McClanahan
Problem with Tomcat
I've seen everywhere I've looked to just "unpack it" but I can't seem to find anyplace to grab a file that simply requires unpacking. The only thing I've been able to locate on apache's server is a collection of DLLs, etc. Do you perhaps know where I can locate the file I am looking for?The current configuration: Server - Win2000 Advanced Server Web Server - Apache 1.3.14 I had absolutely no problem getting Apache up and running, so I was somewhat surprised when Tomcat proved sucha challenge. Any help you can give me would be great.Thanks in advance, Michael JohnsonWeb Developement - Technical SupportMINDIQThe Intelligent Choice for Training and Consulting770.248.0442 · 770.840.8638 (VM) www.MINDIQ.com
Re: Libs and classes are missing in 3.2.1
I modified the tomcat.sh to solve this problem. search for unset CLASSPATH, and after this, add CLASSPATH=${TOMCAT_HOME}/lib this solve your problem ! - Original Message - From: "Andrew" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 1:18 PM Subject: Libs and classes are missing in 3.2.1 Hello, I've the following problem. I've set up my context in c:\a\b and place my libs in c:\a\b\WEB-INF\lib dir;classes is in c:\a\b\WEB-INF\classes. So there is the problem not libs not classes not detected in web-app runtime( Root exception: ClassNotFoundException).In case of classes I mean bean classes used on JSP etc.- supply classes(not jar'ed) ,defined in different packages. For example c:\a\b\WEB-INF\classes\package1\class1.class. class1.class couldn't be found... all the same with packaged lib classes. Anybody help!!! P.S. With tomcat 3.1 all was OK.
Basic web-app question
This may be an utterly stupid question, but since I don't have to impress anybody (much ;) I'll ask it anyway. Normally when I've developed a web application in another environment I can use sub-directories to help keep things clean. It appears that JSP/Servlet applications are delivered in a WAR with a specific directory hierarchy (classes, etc.) Can the WAR file (or a webapp in general if I deploy non-WAR) contain a directory hierarchy, i.e., I have a site with a home page (main directory) and a few things off of it, then, say, a message base (or whatever) "section" in a subdirectory, etc.? Does that work? Thanks! -- Dave Newton, [EMAIL PROTECTED]
Re: Windows Tomcat DOS Console Error View
z z wrote: I get errors and messages on TOMCAT DOS CONSOLE. It's only 25 line max console and can't scroll up. I know I can extend to 50 lines in property but it doesn't work on spot. How can I extend it to 50 lines? Or is there anyway better to see entire scrolled up lines? Please include this email [EMAIL PROTECTED] in Cc: or Bcc: in your reply. Thanks in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com You can modify the startup script (tomcat.bat) so that it doesn't to a "start..." to start the jvm, take out the start and it will just run in your current command window
How to use Apache and Tomcat combination? [Urgent]
Hi there, I am new to this mailing list. I am using Apache 1.3.12 and JServ 1.1.2 combination for more than 6 months. Now I want to remove the JServ and use Tomcat instead. I know tomcat can be used as independent web server but I want Apache and Tomcat combination. What canges do I require in the conf files to make it happen. Please help Thanks Deepesh __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
ClassCastException when receiving RMI stub
I have a servlet which looks up a remote object over RMI. The line of code that does it looks like this: RemoteInterface remoteObject = (RemoteInterface) Naming.lookup ("rmi://localhost:1099/RemoteObjectName"); Under Tomcat 3.2, this triggers a ClassCastException. According to the exception, the right stub class is being returned by the RMI registry. Under Tomcat 3.1, no exception is raised ... it works fine! Am I missing something? Has anyone else experienced this problem? Thanks in advance, Bill
RE: WAP Gateway - Chunked HTTP Responses and CRLF
I have noticed a "problem" with Tomcat JSP generation on Unix systems. We are currently attempting to generate dynamic WML via JSP which we then send to a WAP Gateway for compilation into bytecode. While testing our JSP pages via the Nokia SDK we noticed no problems. When we started testing via Nokia's NAMP Gateway we noticed that the code was not compiling. Further investigation revealed the following: the JSP pages converts some new-lines into CRLF (or \r\n) carriage returns. The Gateway does not like this and I am not convinced that this isn't standard HTTP 1.1: can you insert CRLF returns into chunked text data? Have you looked at the relevant RFCs? ftp://ftp.isi.edu/in-notes/rfc2616.txt: 3.6.1 Chunked Transfer Coding chunk = chunk-size [ chunk-extension ] CRLF chunk-data CRLF Everywhere in the BNF the CRLF form is specified as correct. This means Nokias NAMP gateway is broken. s
What can i do with mod_jk?
-BEGIN PGP SIGNED MESSAGE- What is the real use of mod_jk? Is it work with Tomcat? What for? Is it for a better performance? Thanks , José Euclides Júnior __ E-mail: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://euclides.8m.com -BEGIN PGP SIGNATURE- Version: PGP 6.5.1 iQCVAwUBOkEVg90YhuJ3BUxtAQEPggQAkZ3HGbAmvQJEBCAp7V3XJFXupLwsbluH ydXy1DEPonKJyEHrFaEtRbqDhK5uF56LGlBygVrcDkvWCsJI7ReyYPjQRBgpcpBs bWAUuTg1Yi9t3MfzkuoaR2pdD1Qbsvk74By+YC9mqCQw4D6gD/Dw4qk+2SUZZhwi leGZdWkMQlA= =cVg+ -END PGP SIGNATURE-
Re: Basic web-app question
On 12/20/2000 at 12:03 PM Dave Newton wrote: In the WAR file (or a webapp in general if I deploy non-WAR) contain a directory hierarchy, i.e., I have a site with a home page (main directory) and a few things off of it, then, say, a message base (or whatever) "section" in a subdirectory, etc.? Does that work? Yes. For a working example, see the Jakarta Struts distribution which includes four (count'em four) WARs. Tomcat can autoexpand WAR files, which makes them basically plug-and-play. Mileage can vary with other containers though ;-). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel 716 425-0252; Fax 716 223-2506. -- http://www.husted.com/
JSP vs Servlets...
Hello, can someone tell me which one is best: JSP or Servlets? Is there a reason (beside implementatio reasons) to choose one instead of the other? Thx in advance Rui
Error with using certain methods
Title: Error with using certain methods We have a whole bunch of code which was developed using VisualAge on Windows NT. Now we are attempting to move these pages to a server running RedHat Linux 7.0, Tomcat 3.1.1, Sun Java 2 SDK 1.3, Apache 1.3.14 + mod_ssl. The following code segment illustrates code that works fine under VisualAge, but fails under Tomcat. When this JSP to JSP code is called it returns a 404 page not found error which seems to indicate a problem with the forward method. Is this a known-problem and if so what is the best work-around. - } else if (req.getParameter(btnJSPToJSP) != null) { //call using forward JSP rd = getServletContext().getRequestDispatcher(sHTMLLocation + Test2.jsp); if (rd != null) rd.forward(req, res); else System.out.println(rd = null); } - Any help is appreciated. Ross Richey Webmaster www.aruplab.com [EMAIL PROTECTED]
RE: What can i do with mod_jk?
What is the real use of mod_jk? Is it work with Tomcat? What for? It is how Tomcat gets hooked up to Apache. (Tomcat is a standalone JSP server; using mod_jk it can be used as a JSP server for another webserver that doesn't serve JSP natively.) -- Dave Newton, [EMAIL PROTECTED]
Re: Windows Tomcat DOS Console Error View
you can change the properties of the shortcut that you use to invoke the tomcat. |+--- || "z z"| || zazzex@hotma| || il.com | || | || 12/20/00 | || 12:20 PM | || Please | || respond to | || tomcat-user | || | |+--- ---| | | | To: [EMAIL PROTECTED] | | cc: (bcc: Yanbin Ma/SYS/NYTIMES)| | Subject: Windows Tomcat DOS Console Error View | ---| I get errors and messages on TOMCAT DOS CONSOLE. It's only 25 line max console and can't scroll up. I know I can extend to 50 lines in property but it doesn't work on spot. How can I extend it to 50 lines? Or is there anyway better to see entire scrolled up lines? Please include this email [EMAIL PROTECTED] in Cc: or Bcc: in your reply. Thanks in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: JSP vs Servlets...
I think JSP + Servlet combination is the ideal to really implement a three-tier system like: 1) User interface = HTML+JSP 2) Business logic = Servlet 3) Database = someone I had used only Servlets and my code was strange, with HTML code into Java servlet code, and now I have had migrating all code to put specific HTML generated code into JSP.
RE: Windows Tomcat DOS Console Error View
hi, If you are using windows nt, there is no problem. create a shortcut to startserver.bat in your desktop. For example I have a shortcut with the following properties Target: C:\tomcat\bin\tomcat.bat run Start in c:\tomcat\bin Shortcut key: ctrl+alt+B (to start it from anywhere) Remove the "start" commands in the tomcat.bat file. This is to avoid opening a new window. double click and open the shortcut.It opens a dos window and you should get the startup messages from tomcat. Next click on the MS-DOS icon in the top left corner of the window and select "properties..." from the menu. Select Layout and set the following properties 1. Screen Buffer size Width: 111 Height: ..could not type more that this :-) 2. Window Size Width: 111 Height: 50 that's it. you can experiment with the font and colors option to find the best combination. If you are using windows 95, then you have to call the batch file from some editor. I use Textpad(Tools-Run-Startserver, doscommand , capture output) Hope this helps, Regards, Nagaraj. -Original Message- From: z z [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 6:20 PM To: [EMAIL PROTECTED] Subject: Windows Tomcat DOS Console Error View I get errors and messages on TOMCAT DOS CONSOLE. It's only 25 line max console and can't scroll up. I know I can extend to 50 lines in property but it doesn't work on spot. How can I extend it to 50 lines? Or is there anyway better to see entire scrolled up lines? Please include this email [EMAIL PROTECTED] in Cc: or Bcc: in your reply. Thanks in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: JSP vs Servlets...
Rui Oliveira wrote: Hello, can someone tell me which one is best: JSP or Servlets? Is there a reason (beside implementatio reasons) to choose one instead of the other? Thx in advance Rui There are many reasons why you would want ot use Servlets for business logic and something JSP (or some other template language) in conjunction with servlets for layout and small time code.. So you can't really compare JSP vs servlets, they should be used together depending on the application.
Re: JSP vs Servlets...
JSP's are easier to write. You can also have your Web nerds design the pages; then you can plug in your jsp tags. pretty cool. N -- Neal Dawson Office of the Legislative Auditor [EMAIL PROTECTED] --
RE: Tomcat Configuration
It means that tomcat has started :-). Just type http://localhost:8080/ and you should see the tomcat page. Could you tell me what's going on? where should I change to make it startup successful? Maybe a message can be added like "Tomcat web server started successfully.." regards Nagaraj. -Original Message- From: Hong Tian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 4:27 AM To: [EMAIL PROTECTED] Subject: Tomcat Configuration Hi, Everyone, I'm new for Tomcat, I'm having problem startup Tomcat 3.2 on Windows 98. The problem is: after I types "startup" under the Tomcat home directory in MS-DOS, it start tomcat in a new window, but idle there, not going forword, only some prompt says: "2000-12-19 pooltcpConnector- starting httpConnectionHandler on port 8080, 2000-12-19 PoolTcpConnector: Starting Ajp12ConnectionHandler on port 8007" Could you tell me what's going on? where should I change to make it startup successful? Thanks hong [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: JSP vs Servlets...
Hi, If you want to generate lots of HTML, with a little bit of java logic code, then use jsp, and embed your java logic "in-line". If you want to do lots of logic/computation, then generate a small amount of html output, you may wish to use servlets only, and use "print" statements to create the html. If you want to do significant amounts of processing, *and* generate a significant amount of HTML, then you should use both - servlets for the logic, which then forward to jsps to generate the html. And if your webapp (web site) gets to more than a dozen or so pages, you should look at something like Struts or Turbine, which *uses* both servlets and jsp, but adds features to simplify processing of forms, navigation between pages, database access, etc. Cheers, Simon -Original Message- From: Rui Oliveira [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 6:40 PM To: [EMAIL PROTECTED] Subject: JSP vs Servlets... Hello, can someone tell me which one is best: JSP or Servlets? Is there a reason (beside implementatio reasons) to choose one instead of the other? Thx in advance Rui
RE: JSP vs Servlets...
Ultimately JSP will be compiled to servlets...Use JSP for stuff that requires a lot of text output...formatted output...stuff you would see in a html page. Use servlets to do backend processing to facilitate jsps. Personally I don't ever do any output in my servlets. It's to tedious. Just my opinion... -Original Message- From: Rui Oliveira [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 9:40 AM To: [EMAIL PROTECTED] Subject: JSP vs Servlets... Hello, can someone tell me which one is best: JSP or Servlets? Is there a reason (beside implementatio reasons) to choose one instead of the other? Thx in advance Rui
Re: Libs and classes are missing in 3.2.1 continue
This doesn't work I'm talking about libs/classes in web applications but not tomcat lib dir.Tomcat must take these libs/classes from predefined places in .WAR dir structure as Servlet WebApp conformant and 3.1 did it but 3.2- not. Thanks anywhere... P.S. I'm using W2K platform(tomcat.BAT I mean though that's no difference;) - Original Message - From: "Mauricio Nuñez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 8:06 PM Subject: Re: Libs and classes are missing in 3.2.1 I modified the tomcat.sh to solve this problem. search for unset CLASSPATH, and after this, add CLASSPATH=${TOMCAT_HOME}/lib this solve your problem ! - Original Message - From: "Andrew" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 1:18 PM Subject: Libs and classes are missing in 3.2.1 Hello, I've the following problem. I've set up my context in c:\a\b and place my libs in c:\a\b\WEB-INF\lib dir;classes is in c:\a\b\WEB-INF\classes. So there is the problem not libs not classes not detected in web-app runtime( Root exception: ClassNotFoundException).In case of classes I mean bean classes used on JSP etc.- supply classes(not jar'ed) ,defined in different packages. For example c:\a\b\WEB-INF\classes\package1\class1.class. class1.class couldn't be found... all the same with packaged lib classes. Anybody help!!! P.S. With tomcat 3.1 all was OK.
Re: Windows Tomcat DOS Console Error View
This could be one possible solution. When I encounter situations such as these, I start Tomcat manually and redirect the output using the following command: cd %TOMCAT_HOME%\bin tomcat run tomcat.out 21 Trust this helps. - Original Message - From: "z z" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 20, 2000 9:20 AM Subject: Windows Tomcat DOS Console Error View I get errors and messages on TOMCAT DOS CONSOLE. It's only 25 line max console and can't scroll up. I know I can extend to 50 lines in property but it doesn't work on spot. How can I extend it to 50 lines? Or is there anyway better to see entire scrolled up lines? Please include this email [EMAIL PROTECTED] in Cc: or Bcc: in your reply. Thanks in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: JSP Compile Error
Matt, I gave your page a spin, and it compiled file. The system I tested with was: OS: HP-UX11 jdk: java version "1.2.2.04" HotSpot VM (1.0.1fcs, mixed mode, PA2.0 build 1.2.2.04-00/04/14-PA_RISC2.0) Tomcat3.2.1 stand-alone I'll try it on a solaris machine sometime, just need to remember my password :-) Simon -Original Message- From: Matt White [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 5:37 PM To: [EMAIL PROTECTED] Subject: JSP Compile Error Hey... I've run into a really weird error that seems to be a part of Tomcat itself. Attached are two files, JSPTEST.JSP and JUNK.JAVA. The JSP file is just an example file, this seems to happen with just about any of them. Here's what happens. Whenever I attempt to call the JSP file, the Java file isn't produced correctly. The last line of the Java file is this: out.write("\r\nHTML\r\nHEAD\r\n\tTITLEJSP Test Page/TITLE\r\n/HEAD\r\nBODY\r\n\r\nTABLE BORDER=\"1\"\r\n\r\n "); And it repeats over and over again. The Java file attached is a VERY truncated version... I let it run for a few minutes and the Java file produced was over 400Mb! This of course doesn't allow the VJM to quit, since it's working on creating this beast, and it continues to grow, consuming all of one processor if I allow it to. Details on the server in question: - OS: Solaris/x86 8 - JDK: Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) - Apache 1.3.14 - Tomcat 3.2 - mod_jk - The JIT Java compiler is disabled. It will work every now and then if it's turned off, and never if it's turned on. Any insight into this problem would be much welcomed, this is really wild and I'm not sure where to go next. - Matt File: jsptest.jspFile: junk.java
RE: Error with using certain methods
Title: Error with using certain methods My guess is that sHTMLLocation is invalid. When doing a forward, the sHTMLLocation should be an absolute URL relative to the web app. Can you verify that sHTMLLocation is a valid URL? -Dave -Original Message-From: Richey, Ross [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 20, 2000 9:56 AMTo: [EMAIL PROTECTED]Subject: Error with using certain methods We have a whole bunch of code which was developed using VisualAge on Windows NT. Now we are attempting to move these pages to a server running RedHat Linux 7.0, Tomcat 3.1.1, Sun Java 2 SDK 1.3, Apache 1.3.14 + mod_ssl. The following code segment illustrates code that works fine under VisualAge, but fails under Tomcat. When this JSP to JSP code is called it returns a 404 page not found error which seems to indicate a problem with the forward method. Is this a known-problem and if so what is the best work-around. - } else if (req.getParameter("btnJSPToJSP") != null) { //call using forward JSP rd = getServletContext().getRequestDispatcher(sHTMLLocation + "Test2.jsp"); if (rd != null) rd.forward(req, res); else System.out.println("rd = null"); } - Any help is appreciated. Ross Richey Webmaster www.aruplab.com [EMAIL PROTECTED]