RE: Multipart form data in Tomcat 4.0
Thanks for the response. I've looked at jspSmart Upload and I can't remember the specific reason but it didn't suite us all that well. I think it had something to do with that I need to stream the files to and from another application and I cannot save them to the disk. At least there was a reason for not using jspSmart Upload. So I take it that your answer means that Tomcat 4.0 does not itself support the multipart request mechanism? Kind regards, Stefan Freyr Stefansson -Original Message- From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] Sent: 5. október 2001 15:32 To: [EMAIL PROTECTED] Subject: RE: Multipart form data in Tomcat 4.0 http://www.jspsmart.com/ has a 'freeware' file uploader called jsp smart upload. It is not open sourced but it does work and it allows for commercial use. I don't remember the details of the oreilly file upload package, but yes, it was discouraging. Dave -Original Message- From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 10:21 AM To: Tomcat-User Subject: Multipart form data in Tomcat 4.0 Hello. I'm wondering if anybody can give me information about the status of multipart requests in Tomcat 4.0. Is it still neccessary to use Jason Hunters com.oreilly.servlet package to handle multipart posts? I created a webapp that uploads and downloads files with TC3.2. I'm now contemplating switching to TC4 and I would like to know if I can dump that external dependency if I make the switch (I like mr. Hunters library and his book but I would much rather handle the upload/download without third party intervention especially since his current licence agreement is rather discouraging). Kind regards in advance, Stefan Freyr Stefansson Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf
RE: SSL and tomcat
appent the "-howto.htm" to the top line... it got cut in half. -Original Message- From: Jan Lange [mailto:[EMAIL PROTECTED]] Sent: 30. mars 2001 16:37 To: [EMAIL PROTECTED] Subject: RE: SSL and tomcat Hi! Your URL doesn't exists. Jan L. -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 6:13 PM To: [EMAIL PROTECTED] Subject: RE: SSL and tomcat http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ssl -howto.htm l ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: Mick Sullivan [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 7:58 AM To: [EMAIL PROTECTED] Subject: SSL and tomcat Does anyone know if SSl can be used on tomcat alone or if it only works using tomcatwith apache? thanks in advance, mick _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
RE: error 500, cannot find sun.tools.javac.Main
Have you tried changing JAVA_HOME to point directly to the folder? It's worth the try. Another thing I would like to know is how you are starting Tomcat up. Are you doing it with the shell script or through something like ant? Regards, Stefan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 28. mars 2001 22:20 To: [EMAIL PROTECTED] Subject: error 500, cannot find sun.tools.javac.Main I've seen that this problem has been addressed several times in the listserv logs but none of the solutions seem to fit my problem. Tomcat will start and will work with servlet's but it will not run JSP's when I try to run a JSP I get an class not found exception that cannot fine sun.tools.javac.Main, the full text of the error message is included at the end of this message. I have included tools.jar and the other jar files that are needed in my classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that should cause any problems. Running under Linux, debian, kernel 2.4.2. Using classpath: /usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr /java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomc at/l ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver. jar: /usr/java/jdk//lib/tools.jar:. $TOMCAT_HOME=/usr/java/tomat $JAVA_HOME-/usr/java/jdk/ I don't think it should matter, but the folder jdk is a symlink to /usr/java/IBMJava2-13/ tomcat error message: digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ): Exception in: R( /examples + /jsp/num/numguess.jsp + null) - javax.servlet.ServletException: sun/tools/javac/Main at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at javax.servlet.ServletException.init(ServletException.java:158) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service (ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service (ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:498) at java.lang.Thread.run(Thread.java:498) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile (SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240) at org.apache.jasper.servlet.JspServlet.doLoadJSP (JspServlet.java:448) at org.apache.jasper.servlet.JasperLoader12.loadJSP (JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary (JspServlet.java:151) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:163) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:307) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service (ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service (ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:498) at java.lang.Thread.run(Thread.java:498)
RE: error 500, cannot find sun.tools.javac.Main
or that might be it :o) -Original Message- From: Srikanth Kurdukar [mailto:[EMAIL PROTECTED]] Sent: 28. mars 2001 22:27 To: [EMAIL PROTECTED] Subject: Re: error 500, cannot find sun.tools.javac.Main Remove the extra '/' in your classpath at (/usr/java/jdk//lib/tools.jar) and try again. --Srikanth - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 28, 2001 5:20 PM Subject: error 500, cannot find sun.tools.javac.Main I've seen that this problem has been addressed several times in the listserv logs but none of the solutions seem to fit my problem. Tomcat will start and will work with servlet's but it will not run JSP's when I try to run a JSP I get an class not found exception that cannot fine sun.tools.javac.Main, the full text of the error message is included at the end of this message. I have included tools.jar and the other jar files that are needed in my classpath, TOMCAT_HOME and JAVA_HOME have been set. My path does include jdk/bin. I am using IBM's jdk rather htan sun's but I dont' think that should cause any problems. Running under Linux, debian, kernel 2.4.2. Using classpath: /usr/java/tomcat/lib/ant.jar:/usr/java/tomcat/lib/jasper.jar:/usr /java/tomcat/lib/jaxp.jar:/usr/java/tomcat/lib/parser.jar:/usr/java/tomc at/l ib/servlet.jar:/usr/java/tomcat/lib/test:/usr/java/tomcat/lib/webserver. jar: /usr/java/jdk//lib/tools.jar:. $TOMCAT_HOME=/usr/java/tomat $JAVA_HOME-/usr/java/jdk/ I don't think it should matter, but the folder jdk is a symlink to /usr/java/IBMJava2-13/ tomcat error message: digitalsorcery:/usr/java/tomcat# 2001-03-28 04:35:04 - Ctx( /examples ): Exception in: R( /examples + /jsp/num/numguess.jsp + null) - javax.servlet.ServletException: sun/tools/javac/Main at java.lang.Throwable.init(Throwable.java:96) at java.lang.Exception.init(Exception.java:44) at javax.servlet.ServletException.init(ServletException.java:158) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:388) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service (ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service (ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:498) at java.lang.Thread.run(Thread.java:498) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile (SunJavaCompiler.java:128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:240) at org.apache.jasper.servlet.JspServlet.doLoadJSP (JspServlet.java:448) at org.apache.jasper.servlet.JasperLoader12.loadJSP (JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:419) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary (JspServlet.java:151) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.java:163) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:307) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService (ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service (ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService (ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service (ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection (HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt (PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run (ThreadPool.java:498) at java.lang.Thread.run(Thread.java:498)
RE: Servlets work, but JSP doesn't...
Your problem is because the tools.jar is not in the classpath. This file is located in the lib subdirectory of your jdk home. One way of letting Tomcat know where the file is would be to put it in your classpath but what you can also do is set the JAVA_HOME variable to point to the jdk directory (note: the jdk root directory... not the lib directory under the jdk root directory). That way Tomcat can figure out where to find the tools.jar file. -Original Message- From: Jason Wells [mailto:[EMAIL PROTECTED]] Sent: 29. mars 2001 01:11 To: [EMAIL PROTECTED] Subject: Servlets work, but JSP doesn't... Hi there, I have created a context called /stest and I am able to execute servlets, e.g. /stest/servlet/SomeServlet, from this context. However I am unable to execute JSP pages, e.g. /stest/SomePage.jsp, from this context. I get the following error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec tion(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java: 128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146 ) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnec tion(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) This is my configuration: - Apache 1.3.19 - Tomcat 3.2.1 - JBoss 2.1 - Red Hat Linux 6.2 - Sun JVM 1.3 Maybe something vital is missing from my classpath, but I have no idea what it could be. Or maybe the JSP has to be in a particular location within the context, though I find no mention of that in the Tomcat docs or the Servlet 2.2 spec. Any help is appreciated. Thanks in advance. -- Jason Wells Web Architect Xsilogy, Inc. http://www.xsilogy.com/
Webapp directory structure
This seems to be coming up pretty often so I'm going to send in a zip file with the correct directory structure of a webapp and a small file in each directory describing the purpose of that directory. I hope this can help somebody and anyone can do whatever they want with it (distribute it with tomcat if you will.. ;o). One thing the files in the structure do not explain is how to create a context in server.xml and have it point to the root directory of the web app. That's well documented in the Tomcat users guide. Regards, Stefan. p.s. it would be nice to receive some feedback on this and even corrections/improvements. SampleWebapp.zip Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf SampleWebapp.zip BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD
RE: setContentType / File download
oh goodie... someone else who has this problem! I battled this one for a long time and finally, microsoft sent out the following article on their web: http://support.microsoft.com/support/kb/articles/Q279/6/67.ASP And here is another article which I find interesting: http://support.microsoft.com/support/kb/articles/Q267/9/91.ASP My guess... M$ tried to fix the bug in the later one but screwed up somewhere along the line which resulted in the first one. Anyways. This is due to one of the very few *acknowledged* (by Microsoft I mean) bugs in IE 5.5 so sorry, nothing you can do about it! but on the bright side... it's nothing you did wrong either ;o) (this is what I'm trying to convince myself of after spending waaayyy to much time on this). Regards, Stefan. p.s. If you're using tomcat I'd suggest you use this code instead of what you have (just for readability): response.setContentType("application/msexcel"); response.setHeader("Content-Disposition","attachment;filename=TUInventor y.csv"); p.p.s. I solved this by checking the "User-Agent" header in the request and if it was IE5.5 I don't set the Content disposition header. This pops up the Save file/open dialog box but if you choose to save you'll get a garbled name... but at least you'll get the file! -Original Message- From: Gerd Trautner [mailto:[EMAIL PROTECTED]] Sent: 14. mars 2001 08:08 To: tomcat-user Subject: setContentType / File download Hi tomcat-user, i have some troubles using the setContentType method. I want to generate a CSV file of my database data and send it to the browser. the browser should then say "save file as filenam.csv" ... what i do is: response.setContentType("application/msexcel;name=\"TUInventory.csv\"\nC ontent-Disposition: attachment;filename=TUInventory.csv;"); this works for netscape browsers, but ie wants to save index.html. any tips? Gerd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Encrypting password
sorry for butting in but... if your customer server has the same URL name (ie. support.btinternet.com) then it doesn't matter if you have many machines running behind this name, you could simply copy the same certificate to all the servers hence buying only one certificate. but I'd guess from what you're saying that these different do _not_ have the same URL name. Am I right? -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: 13. mars 2001 09:01 To: [EMAIL PROTECTED] Subject: Re: Encrypting password if the app is accessed through a single URL and loadbalanced / proxied, you still only need the one SSL cert: it's the URL, not the IP address, that counts. The situation we are in is where users connect to a server, which is our customers servers. Each customer server would still have to have a certificate, which is where the current sticking point is. sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Servlets work, JSP pages don't - WHY?
You don't have to put it in the classpath. Setting the JAVA_HOME system environment variable is enough (let it point to the directory where your JDK is installed, not the /bin or /lib subdirectories). Of course, if you rather want to put it in your classpath, that's also ok. Regards, Stefan. -Original Message- From: William Brogden [mailto:[EMAIL PROTECTED]] Sent: 11. mars 2001 21:46 To: [EMAIL PROTECTED] Subject: Re: Servlets work, JSP pages don't - WHY? Peter Adamek wrote: I installed Apache and Jakarta-Tomcat on my Linux box running RH 7. Basically, I created a new context in the document root directory and tried to write my own servlets and jsp pages. Well, servlets work OK, jsp pages don't Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at It is looking for the compiler that lives in the tools.jar file which cames in the JDK. You have to supply this by putting it in the classpath. -- 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Upcoming Tomcat book...
One thing I'd like to see in such a book is about how to embed tomcat in other applications (discuss the pros and cons of EmbededTomcat vs. regular Tomcat). Regards, Stefan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: web.xml configuration
I'm not sure about this but try to skip that leading '/' in url-pattern. I think I remember correctly when I say that it's not supposed to be there. Regards, Stefan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. mars 2001 15:28 To: [EMAIL PROTECTED] Subject: web.xml configuration Hi, Can someone please tell me whats wrong with this web.xml file? servlet servlet-namenData/servlet-name servlet-classse.tj.activity.servlets.NServlet/servlet-class /servlet servlet-mapping servlet-namenData/servlet-name url-pattern/se/tj/activity/servlets/nData/url-pattern /servlet-mapping The servlet is in the \webapps\Activety\WEB-INF\classes\se\tj\activity\servlets directory and the servlet class is in a package called se.tj.activity.servlets. Thanks! /Lisa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Web.xml what is actually working?
Hi. I've been experimenting with web.xml a little bit trying to set this and that to make my webapp more friendly. I started out with the icon tag... but found out soon that doesn't work in Tomcat. That's really quite allright with me... But now I'm trying the error-page and that's not working either. I have the following error-page tag in my web.xml: error-page error-code404/error-code location404.htm/location /error-page This does nothing. I've got the 404.htm in the root of the webapp (and the webapp is the root of the webserver). If I try to add a slash ('/') in front of the 404.htm Tomcat goes into an infinite loop (but still keeps serving). It's as if Tomcat is requesting a page that doesn't exist itself... if I take the error-page tag out it works normal but I get that ugly default 'not found' error page. Now, can somebody tell me what exactly is it that works in 'web.xml' and what has not been implemented? Kind regards, Stefan. Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Relative Pathing and SSL
I don't know if this works with isapi also but try to set the parameter "secure" with the value "true" in your connector tag in server.xml. What version of tomcat are you using? Regards, Stefan. -Original Message- From: Nibler Jeff R. (PDX1JRN) [mailto:[EMAIL PROTECTED]] Sent: 2. mars 2001 22:30 To: [EMAIL PROTECTED] Subject: Relative Pathing and SSL Hello all, I'm having an interesting problem persisting an SSL connection with my Java servlets. I am using Windows NT/IIS with Tomcat acting only as the servlet container (with the isapi_redirect.dll). Everything works fine except when I need to re-direct a user from the servlet back to any other page. When that happens, for some reason it sets the url to http instead of https and then adds a colon with port 443 following the url (which is obviously the port that it should be on, only automatically using the https prefix). Example: Should be: https://www.myserver.com/Test.htm Instead it gives: http:www.myserver.com:443/Test.htm I have no idea why this is happening. I can't find any methods for the HttpServletResponse object that allows me to set the communication protocol etc etc. Here is the line of code that I'm using: response.sendRedirect("../../Test.htm"); Notice I am using a relative path. If I use this instead. response.sendRedirect("https://www.myserver.com/Test.htm"); then it works. I hate to hard code the url like that though because I have a development server and a production server. I'm at a loss. Anyone? Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: webapp icons, disabling directory listings, and error-pagetags in web.xml
Stefn F. Stefnsson wrote: Ok... thanks (regarding the icon). The correct reaction from tomcat... hmmm... not sure I know what you mean here... are you talking in regards to the icon or the welcome file list? I'll just answer it in two parts, 1) The icon should be displayed for example in the title bar when the webapp is active in some browser. I've seen this somewhere on the javasoft site. Then I got that cute little penguin/triangle thing with the hands and all... I admit that this is not exactly on the top of my priority list but more done out of curiosity. That happens because the page developer included img tags in the pages themselves -- it has nothing to do with the icon element in web.xml, which is there for GUI based deployment tools (which Tomcat does not have). OK. So that's what it does... funny... never knew that... Figures, I was wondering that 16x16 and 32x32 were really big icons for that tiny little pic up there in the title bar... silly me. Thanks for clearing that up for me... I feel very small now. 2) With regards to the welcome files I want users to be able to go to the URL http://some.host.somewhere/ and not to the URL http://some.host.somewhere/servlet/com.decode.ips.webservice.controller. IPSControllerServlet. I think the reason for why I want that is pretty obvious. The 2.2 spec is not clear that this is supposed to work (although I agree with you that it should). If Tomcat 3.x does not do this, you could submit a feature request to make it so. At least it's not doing it for me. If I set a servlet in a welcome file list then nada... and none of the tricks that I've heard of works (doing a url mapping for something to the servlet and then putting that something in the welcome file list and so on...). Also... and this is an even bigger problem than the last one... the error-page tag is not working at all for me. This is what I have in the 'web.xml': ... welcome-file-list welcome-file404.htm/welcome-file /welcome-file-list error-page error-code404/error-code location404.htm/location /error-page ... The 404.htm is being displayed as a welcome file but every time I try to access something that does not exist on the server I get the regular ugly windows internet explorer 404 page. Have any problems been reported with error-page? The 2.3 spec will make it mandatory that servlet URIs can be used in welcome-file-list, and Tomcat 4.0 does this correctly. The only way I can get that is to create an index.htm file that has this tag in the head section: META HTTP-EQUIV=REFRESH CONTENT="0; URL=/servlet/com.decode.ips.webservice.controller.IPSControllerServlet" But I would much rather that the server handled that and I could skip the stupid index.htm file. At all costs I do not want the user to get the directory listing! Thanks for your time, Stefan. Craig Regards, Stefan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Crashing tomcat
Hello.. Are you guys running windows? If so, are you getting the popup window with the red cross and an ok button saying that some memory address can't be read? If that is the case I would bet that you have found a bug in the JVM. The reason for that being that Java doesn't have any pointers so there is no way that any of your code could generate this message. Java would not allow you to write into an illegal memory address, this window would only appear if the JVM was doing something like that (or perhaps the JDBD driver, depending on what type of driver you are using). Are you guys using any native code (dll's or system calls)? What type of JDBC driver are you using (Type 4 is pure java and should therefore not be able to cause this behavior but Type 1 (and maybe Type 2 too) may rely on native code and could therefore cause the error message to occur. Hope this gives you guys a hint, Regards, Stefan. -Original Message- From: dick [mailto:[EMAIL PROTECTED]] Sent: 1. mars 2001 10:50 To: [EMAIL PROTECTED] Subject: Re: Crashing tomcat Hi Christopher, I also use some taglib to query a database (mysql) and then show the result in html back. It occasionally crash, I don't know the reason too. So, let's figure the reason out ! Regards Dick Poon - Original Message - From: "Christopher Miller" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 01, 2001 6:16 PM Subject: Crashing tomcat I have written a simple servlet to access a database and place the results in an html page. However this is regularly crashing the tomcat server. I have tomcat and apache running together with the basic config files, but I am not sure where the fault lies (servlet or config file). the error on tomcat crashing is in the form of "instruction at xxx referenced memory at xxx. the memory could not be written" Any help would be well received. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Log traffic to webapp
Hello. I'm wondering if I can log all traffic coming to a webapp? I'm using EmbeddedTomcat so no use in server.xml. Anyone know a convenient way? Kind regards, Stefan. Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
no class def found sun.tools.javac.Main
Hi I'm getting the following error. Anybody have an idea where this class comes from? What do I need to have in my classpath to find it? Thanks, Stefan. Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:11 47) at org.apache.tomcat.core.Handler.service(Handler.java:311) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:194) at com.decode.ips.webservice.controller.IPSControllerServlet.login(IPSContr ollerServlet.java:260) at com.decode.ips.webservice.controller.IPSControllerServlet.doGet(IPSContr ollerServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java: 128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:160) at java.security.AccessController.doPrivileged(Native Method) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:156 ) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:11 47) at org.apache.tomcat.core.Handler.service(Handler.java:311) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:194) at com.decode.ips.webservice.controller.IPSControllerServlet.login(IPSContr ollerServlet.java:260) at com.decode.ips.webservice.controller.IPSControllerServlet.doGet(IPSContr ollerServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782
RE: no class def found sun.tools.javac.Main
Thanks for your answer. I should have been more clear in my previous post. Ok... so here's the deal, I have a server application that integrates Tomcat. This server starts tomcat up through use of the EmbeddedTomcat class. So far so good. When I start the server from a command line or within JBuilder everything is just fine and dandy and works oh so well ;o) However, I'm trying to create an ant buildfile to do everything for me. I've managed to have the buildfile build everything and create a jar file and all that but when I try to have it run the server, the server goes up but the first JSP I try to access gives me that error I was talking about. I'm not a newbie to Tomcat so I knew about that JAVA_HOME variable (and it _is_ set on my computer)... I should have mentioned that in my first post... sorry about that. Regards, Stefan. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: 1. mars 2001 16:03 To: [EMAIL PROTECTED] Subject: RE: no class def found sun.tools.javac.Main This comes from Tomcat not being able to find your JavaC compiler (imagine that, not found class sun.tools.javac.Main). You need to set your JAVA_HOME variable so that it points to your JDK root directory. And read the manual and/or mail list archives and/or the FAQ. Randy -Original Message- From: Stefn F. Stefnsson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 11:33 AM To: Tomcat-User Subject: no class def found sun.tools.javac.Main Hi I'm getting the following error. Anybody have an idea where this class comes from? What do I need to have in my classpath to find it? Thanks, Stefan. Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:11 47) at org.apache.tomcat.core.Handler.service(Handler.java:311) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:194) at com.decode.ips.webservice.controller.IPSControllerServlet.login(IPSContr ollerServlet.java:260) at com.decode.ips.webservice.controller.IPSControllerServlet.doGet(IPSContr ollerServlet.java:191) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav a:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H ttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416 ) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:49 8) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java: 128) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12$1.run(JasperLoader12.java:160) at java.security.AccessController.doPrivileged(Native Method) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:156 ) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(J spServlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.java:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:11 47) at
RE: webapp icons, disabling directory listings, and error-page tags in web.xml
Thanks for your reply. Only problem is (and I forgot to mention this) that I'm using an embedded Tomcat and hence have no server.xml file. Maybe I can do something in the code to handle this... I'll have to look into that. What you said about server.xml not being the right place to define servlet or JSP traps I didn't quite get because I was talking about web.xml not server.xml. Thanks though. Anyone else? Kind regards, Stefan -Original Message- From: Chris Haynes [mailto:[EMAIL PROTECTED]] Sent: 27. febrar 2001 12:56 To: [EMAIL PROTECTED] Subject: Re: webapp icons, disabling directory listings, and error-page tags in web.xml Stefan, You can turn off the generation of indexes by setting the argument suppress="true" in the StaticInterceptor entry in server.xml. For error handling in the servlets look at JSP: %@ page isErrorpage="true" flags the page as an error handler %@ page errorPage="errorHandler.jsp" tells a page where its error handler is. If you are writing your own servlets, I recommend having a try{ }catch(Exception e) { ... } immediately inside your doGet() method to trap all exceptions and do something sensible. server.xml is not where I would define servlet or JSP traps. Can't help with the rest. Chris Evesham England - Original Message - From: "Stefn F. Stefnsson" [EMAIL PROTECTED] To: "Tomcat-User" [EMAIL PROTECTED] Cc: "JSP-Interest" [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 12:40 PM Subject: webapp icons, disabling directory listings, and error-page tags in web.xml Hello. I was wondering if anyone knows if the icon element in web.xml is not working in Tomcat (it's not working for me... just wondering if it's not supported or if it's something specific with me). Another thing (a little more important) is the welcome-file-list element. I have one such in my web.xml and it contains one welcome-file element. This is directly from it: welcome-file-list welcome-file/servlet/com.decode.ips.webservice.controller.IPSControl le rServlet/welcome-file /welcome-file-list This should redirect anyone going to https://localhost/ to https://localhost/servlet/com.decode.ips.webservice.controller.IPSCont ro llerServlet. This is not the case however since it's not happening. Instead I'm getting the directory listing of the root of the webapp (I don't have an index file). Now I have two questions: 1) Why doesn't my welcome-file-list thing work? 2) How can I disable the directory listing? I want people to see the "not found" or "not authorized" rather than getting the directory listing. One final thing (web.xml is _very_ poorly documented... btw, I _have_ searched for answers to my questions and haven't found anything to this thing I'm asking about here ;o). Can someone explain to me the error-page tag in web.xml? I want an error page for my servlets as well as the JSPs. I've put the %@ page errorPage="error.jsp" % in all of them but I'm wondering what to do with the servlets... I think it might have something to do with the error-page tag in web-xml but the documentation says that it takes in an error code (such as 404). Another place says it takes the fully qualified name of a java exception class. Can I use the error.jsp file for these things too? Will that page have access to the exception object to get the message I want to display? I'm talking about it looking like this in web.xml: error-page error-codejavax.servlet.ServletException/error-code location/error.jsp/location /error-page Thanks in advance for any and all answers, kind regards, Stefan Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf -- -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: webapp icons, disabling directory listings, and error-pagetags in web.xml
ok.. so the icon should be working? let me get this straight... If I have a definition in my web.xml that looks like this: web-app icon small-icon/img/iconSmall.gif/small-icon large-icon/img/iconLarge.gif/large-icon /icon ... and the directory structure for my webapp looks like this: 'webapp_root'-+ +-'img'-+ | +-'iconSmall.gif' | +-'iconLarge.gif' | +-... | +-'WEB-INF'-+ +-'web.xml' +-... Things should work ok? Well... they don't... and I've tried to have both small-icon/bla/ble.gif/small-icon and small-iconbla/ble.gif/small-icon and nada! Also the trick you talked about with the welcome file list is not working, I've also tried every possible combination of that... If I put in a welcome-file-list with those things the directory listing appears but if I skip it or do it with only the index.htm file in it the index.htm file is used, so it's actually working but not redirecting to the right place. The things to notice about my setup are: 1) I'm running on an EmbededTomcat fired up from within another app. 2) I'm using https connectors The other (regular) things are that: I'm using Win2000, JDK1.3. This smells like some sort of bug to me but just in case I'm going to append the contents of the web.xml file I'm using: ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app icon small-iconimg/iconSmall.gif/small-icon large-iconimg/iconLarge.gif/large-icon /icon display-nameIPS Web Application/display-name descriptionThe webservice of the IPS system/description servlet servlet-nameController/servlet-name servlet-classcom.decode.ips.webservice.controller.IPSControllerServlet /servlet-class /servlet servlet-mapping servlet-nameController/servlet-name url-pattern/logon/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.htm/welcome-file /welcome-file-list error-page error-codejavax.servlet.ServletException/error-code location/error.jsp/location /error-page /web-app Hopefully someone can find something wrong with my setup here... otherwise this is a bug. Kind regards and thanks for all your help. Stefan. -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED]] Sent: 27. febrar 2001 14:27 To: Tomcat-User Subject: Re: webapp icons, disabling directory listings, and error-pagetags in web.xml Stefan, The web.xml file is completely defined as part of the Servlet 2.2 Specification, when it defines Web Applications. Go there for the official reference. On Tue, 27 Feb 2001, Stefn F. Stefnsson wrote: Hello. I was wondering if anyone knows if the icon element in web.xml is not working in Tomcat (it's not working for me... just wondering if it's not supported or if it's something specific with me). ??? report a reproducable bug please, and someone should handle it. don't forget the icon file has to be relative to the webapp root. Another thing (a little more important) is the welcome-file-list element. I have one such in my web.xml and it contains one welcome-file element. This is directly from it: welcome-file-list welcome-file/servlet/com.decode.ips.webservice.controller.IPSControlle rServlet/welcome-file /welcome-file-list Again, the tag says, welcome-file, you define a file to map to, if it is present. There is no servlet/... file present. One trick is to map it to welcome-fileindex.servlet/welcome-file then do a servlet-mapping mapping index.servlet to your JSPControllerServlet. And for further assurance, you can create an index.servlet file, to encourage it, but really it should map to the servlet eventually. fern - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: webapp icons, disabling directory listings, and error-pagetags in web.xml
Ok... thanks (regarding the icon). The correct reaction from tomcat... hmmm... not sure I know what you mean here... are you talking in regards to the icon or the welcome file list? I'll just answer it in two parts, 1) The icon should be displayed for example in the title bar when the webapp is active in some browser. I've seen this somewhere on the javasoft site. Then I got that cute little penguin/triangle thing with the hands and all... I admit that this is not exactly on the top of my priority list but more done out of curiosity. 2) With regards to the welcome files I want users to be able to go to the URL http://some.host.somewhere/ and not to the URL http://some.host.somewhere/servlet/com.decode.ips.webservice.controller. IPSControllerServlet. I think the reason for why I want that is pretty obvious. The only way I can get that is to create an index.htm file that has this tag in the head section: META HTTP-EQUIV=REFRESH CONTENT="0; URL=/servlet/com.decode.ips.webservice.controller.IPSControllerServlet" But I would much rather that the server handled that and I could skip the stupid index.htm file. At all costs I do not want the user to get the directory listing! Thanks for your time, Stefan. -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: 27. febrar 2001 15:38 To: '[EMAIL PROTECTED]' Subject: RE: webapp icons, disabling directory listings, and error-pagetags in web.xml AFaIK the icon element it's not used at all on tomcat.., this is not a bug simply it's an optional element not used..., out of curiosity... Which is the (correct) reaction you would expect from tomcat ? Saludos , Ignacio J. Ortega -Mensaje original- De: Stefn F. Stefnsson [mailto:[EMAIL PROTECTED]] Enviado el: martes 27 de febrero de 2001 16:31 Para: [EMAIL PROTECTED] Asunto: RE: webapp icons, disabling directory listings, and error-pagetags in web.xml ok.. so the icon should be working? let me get this straight... If I have a definition in my web.xml that looks like this: web-app icon small-icon/img/iconSmall.gif/small-icon large-icon/img/iconLarge.gif/large-icon /icon ... and the directory structure for my webapp looks like this: 'webapp_root'-+ +-'img'-+ | +-'iconSmall.gif' | +-'iconLarge.gif' | +-... | +-'WEB-INF'-+ +-'web.xml' +-... Things should work ok? Well... they don't... and I've tried to have both small-icon/bla/ble.gif/small-icon and small-iconbla/ble.gif/small-icon and nada! Also the trick you talked about with the welcome file list is not working, I've also tried every possible combination of that... If I put in a welcome-file-list with those things the directory listing appears but if I skip it or do it with only the index.htm file in it the index.htm file is used, so it's actually working but not redirecting to the right place. The things to notice about my setup are: 1) I'm running on an EmbededTomcat fired up from within another app. 2) I'm using https connectors The other (regular) things are that: I'm using Win2000, JDK1.3. This smells like some sort of bug to me but just in case I'm going to append the contents of the web.xml file I'm using: ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" web-app icon small-iconimg/iconSmall.gif/small-icon large-iconimg/iconLarge.gif/large-icon /icon display-nameIPS Web Application/display-name descriptionThe webservice of the IPS system/description servlet servlet-nameController/servlet-name servlet-classcom.decode.ips.webservice.controller.IPSControl lerServlet /servlet-class /servlet servlet-mapping servlet-nameController/servlet-name url-pattern/logon/url-pattern /servlet-mapping welcome-file-list welcome-fileindex.htm/welcome-file /welcome-file-list error-page error-codejavax.servlet.ServletException/error-code location/error.jsp/location /error-page /web-app Hopefully someone can find something wrong with my setup here... otherwise this is a bug. Kind regards and thanks for all your help. Stefan. -Original Message- From: Fernando Padilla [mailto:[EMAIL PROTECTED]] Sent: 27. febrar 2001 14:27 To: Tomcat-User Subject: Re: webapp icons, disabling directory listings, and error-pagetags in web.xml Stefan, The web.xml file is completely defined as part of the Servlet 2.2 Specification, when it defines Web
webapp icons, disabling directory listings, and error-page tags in web.xml
Hello. I was wondering if anyone knows if the icon element in web.xml is not working in Tomcat (it's not working for me... just wondering if it's not supported or if it's something specific with me). Another thing (a little more important) is the welcome-file-list element. I have one such in my web.xml and it contains one welcome-file element. This is directly from it: welcome-file-list welcome-file/servlet/com.decode.ips.webservice.controller.IPSControlle rServlet/welcome-file /welcome-file-list This should redirect anyone going to https://localhost/ to https://localhost/servlet/com.decode.ips.webservice.controller.IPSContro llerServlet. This is not the case however since it's not happening. Instead I'm getting the directory listing of the root of the webapp (I don't have an index file). Now I have two questions: 1) Why doesn't my welcome-file-list thing work? 2) How can I disable the directory listing? I want people to see the "not found" or "not authorized" rather than getting the directory listing. One final thing (web.xml is _very_ poorly documented... btw, I _have_ searched for answers to my questions and haven't found anything to this thing I'm asking about here ;o). Can someone explain to me the error-page tag in web.xml? I want an error page for my servlets as well as the JSPs. I've put the %@ page errorPage="error.jsp" % in all of them but I'm wondering what to do with the servlets... I think it might have something to do with the error-page tag in web-xml but the documentation says that it takes in an error code (such as 404). Another place says it takes the fully qualified name of a java exception class. Can I use the error.jsp file for these things too? Will that page have access to the exception object to get the message I want to display? I'm talking about it looking like this in web.xml: error-page error-codejavax.servlet.ServletException/error-code location/error.jsp/location /error-page Thanks in advance for any and all answers, kind regards, Stefan Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Macintosh and Java
can you give the exact string you're typing in your browser? here's what you should type: http://localhost:8080/ the :8080 tells the browser to communicate on port 8080 instead of the default http port (which is 80). You can also open the server.xml file in the tomcat_root/config directory and edit the Connector tag. It should have a parameter name=port value=8080. You would have to change that to 80 so that the address http://localhost/ would work. Hope this helps you. -Original Message- From: S Lafredo [mailto:[EMAIL PROTECTED]] Sent: 25. febrar 2001 17:47 To: [EMAIL PROTECTED] Subject: Macintosh and Java Hi, Has anyone set-up a Macintosh to run Apache and/or Tomcat? I think I have found several ways to do this but I was hoping someone could confirm them for me. 1. I am running MacOS 9.x, MRJ 2.2.4 and downloaded jakarta-tomcat-3.2.1 I clicked on the Tomcat Start and a Java console opens and displays 2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /examples ) 2001-02-25 12:40:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-02-25 12:40:01 - ContextManager: Adding context Ctx( ) 2001-02-25 12:40:01 - ContextManager: Adding context Ctx( /test ) 2001-02-25 12:40:09 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-02-25 12:40:10 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 So it looks like it is running correctly? I then run IE 5 (Netscape does not support MRJ?) and type localhost. Nada? I also tried copying on of the example.html pages into the browser but when I try to run the JSP the Finder displays and error message stating that the foo.jsp application could not be found. Anyone know what I am doing wrong? Or do I have to take on of the following routes... 2. Download Darwin, Apache for Darwin and Tomcat.sit or Tomcat.sit.hqx? While waiting for MacOS X. 3. Purchase SuSE 7.0 for PPC? 4. Something else? Thanks! Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Réf. : Embedding Tomcat inside Java app.
Try giving the full path of the policy file as a parameter to the jvm. Example: java -Djava.security.policy==full_path_to/ips.policy myAppWithTomcat Also note the two equal signs. This is important. Do NOT use just one equal sign. Also I'm attatching a tomca.policy file that grants all permission to all codebases. This may not be a good idea to do in production but for development it should be fine. Regards, Stefan -Original Message- From: Hristo Katsarski [mailto:[EMAIL PROTECTED]] Sent: 14. febrar 2001 14:12 To: [EMAIL PROTECTED] Subject: Re: Rf. : Embedding Tomcat inside Java app. Hi Nicolas, I've tried a lot of approaches (including giving permissions) but -- no success so far. Did you succeed embedding Tomcat? Hristo. -Original Message- From: JULE, Nicolas - DSIA [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Date: Wednesday, February 14, 2001 10:58 AM Subject: Rf. : Embedding Tomcat inside Java app. Hi , Have you try to adapt your tomcat.policy file ? something like: grant codeBase "file:${tomcat.home}/webapps/ROOT" { java.io.FilePermission "*" , read) }; Nicolas De : Hristo Katsarski@hristo le 14/02/2001 09:32 Pour : tomcat-user@[EMAIL PROTECTED]@SMTP@Hays Hub cc : Faxer : Objet : Embedding Tomcat inside Java app. Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ** Ce message lectronique et tous les fichiers attachs qu'il contient sont confidentiels et destins exclusivement l'usage de la personne laquelle ils sont adresss. Si vous avez reu ce message par erreur, merci de le retourner son metteur. Les ides et opinions prsentes dans ce messages sont celles de son auteur, et ne reprsentent pas ncessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autorise de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons galement que nous avons vrifi l'absence de virus dans ce message mais que, malgr ce contrle, nous ne saurions tre tenus pour responsables d'ventuels dgts occasionns par un virus non dtect. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] ips.policy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Recommendations for JSP development tools?
JBuilder works well also. It's got Tomcat integrated into it. -Original Message- From: Steve Buroff [mailto:[EMAIL PROTECTED]] Sent: 9. febrar 2001 12:18 To: [EMAIL PROTECTED] Subject: RE: Recommendations for JSP development tools? I also use Kawa 5.0 and tomcat and find they work well together. I definitely like Kawa in general as a Java IDE. Steve Buroff -Original Message- From: Kyle Robinson [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:14 PM To: '[EMAIL PROTECTED]' Subject: RE: Recommendations for JSP development tools? I prefer Kawa 5.0. And Tomcat as the app server (of course). They integrate nicely. See: http://www.allaire.com/Handlers/index.cfm?ID=18623Method=Full -Original Message- From: John Coonrod [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 4:51 PM To: [EMAIL PROTECTED] Subject: Recommendations for JSP development tools? I'd like to improve the productivity of my people here. To date, I've done all my JSP development with a text editor. Has anyone had any luck with JSP and any of the FrontPage type programs (including FrontPage?). Any recommendations? Thanks. Dr. John Coonrod, Vice President, [EMAIL PROTECTED] The Hunger Project, 15 East 26th Street, NY, NY 10010 www.thp.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: HTTPS to HTTP proxying
Any particular reason you're using a proxy instead of Tomcats built in HTTPS support? (it came with 3.2 so you need to get that version if you're not already using it). Regards, Stefan. -Original Message- From: Geoff Lane [mailto:[EMAIL PROTECTED]] Sent: 29. janar 2001 23:31 To: [EMAIL PROTECTED] Subject: HTTPS to HTTP proxying Ok, so I have a situation where we are doing an HTTPS to HTTP proxy. Essentially a proxy recieves the HTTPS request, makes an HTTP request to the server with Tomcat running standalone and then the response is returned through the proxy back to the user. So, I access something like: https://somehost/index.html and there is a redirect in it like: out.sendRedirect( "nextpage.html" ); Tomcat in this case will return the user to http://somehost/nextpage.html (notice no https). This makes some sense because Tomcat sees the scheme as HTTP not HTTPS. The odd part though is that this same setup worked with Java Web Server. Anyone know how to handle this other than rewriting all of the redirects to absolute URLs? Thanks. -- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Any way to add a directory for class loading?
Hello. I was wondering if there is any way to specify an additional directory that Tomcat should use for class loading, say perhaps outside of the web app directory structure? Kind regards, Stefan p.s. I'm using EmbededTomcat so I would appreciate if someone could tell me if that was possible using that. Otherwise I would like to know if it's possible in server.xml or even (and probably best of all) web.xml. Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: startup class in Tomcat
Make a servlet which init() only calls the methods needed in your class. That way you extract the functionality to your class and the servlet is only a wrapper. In other words, create a new servlet that actually does nothing except in the init method it calls the necessary methods in your class. Regards Stefan -Original Message- From: William Au [mailto:[EMAIL PROTECTED]] Sent: 23. janar 2001 15:43 To: [EMAIL PROTECTED] Subject: Re: startup class in Tomcat The way I understand it, load-on-startup will only work on a servlet, and only the init() method is called. What I have now is a generic Java class. So I will have to convert it into a servlet and put most of the code inside init(). I was just trying to see if I can use my class as-is. Bill Michael Wentzel wrote: Besides setting load-on-startup in the web.xml file, is there another way to have a startup class define in Tomcat? ( ie I want a class to run whenever Tomcat is started) Sounds to me like load-on-startup is what you need... Is there some reason this does not fit your needs? --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Security and access on tomcat 3.2.1 standalone
You can create your own SocketFactory that extends the Generic Tomcat socket factory (org.apache.tomcat.net.ServerSocketFactory). You could create that socket factory in a way that it restricts to certain IPs. How you would manage the socket factory is up to you again (a property file would probably be the way to go... and even a GUI application to manage it if you want to get fancy ;o) Regards, Stefan -Original Message- From: Charles Sabourdin [mailto:[EMAIL PROTECTED]] Sent: 19. janar 2001 10:34 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Security and access on tomcat 3.2.1 standalone I think no one answer me that question. --- Charles Sabourdin [EMAIL PROTECTED] wrote: Hi, I wonder if it was possible to limite access to a part of my web site to a spcifique DNs, IP adresse or ans IP branche? thanks :) __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Accessing a local webserver with IE 5.5
Hi. I've set up Tomcat at home on a computer not connected to the Internet. It's running Win 2000 Pro. The problem is that when I try to access my locally running webserver I always get the prompt about if I want to connect to the internet or stay offline. If I select to stay offline I receive a notification that the page is not available for offline viewing. There must be a way so I'm asking you... has anybody had (and fixed) that problem? Kind regards, Stefan Freyr Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
File downloading through a servlet problem. This is weird!!!
Hello. I'm experiencing strange things when I download files through a servlet. The history is that I have access to a file stream in a servlet and I want the user to be able to download this file. I do this by sending a file id as a parameter to the servlet as so: https://localhost/servlet/com.decode.ips.webclient.controller.FileDownlo adServlet?fileID=111fileName=somefilename.txt To begin with I was using some unknown content type to try to force IE to display the File open/save dialog box. This was not working and IE always popped up an error window saying that the file was not available and I should try later! After a while of searching the net I found an article about how to change the default file name for the File open/save dialog box. That article suggested the use of the content type application/octet which I did like so: response.setContentType("application/octet; name=" + theFileName + "\nContent-Disposition: attachment; filename=" + theFileName + "\n\n"); This works (well... kindof) except for one thing... and this is the reason for me posting to the group. Every time I save a file I get an some extra lines at the top of the message. I think there are three lines. The first contains nothing but a new line the second contains a string and the third contains a newline character. The string in that second line looks like this: Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0; Windows 2000 5.0 x86; java.vendor=Sun Microsystems Inc.) One more thing before I ask the obvious question... and this is the weird part. When I change the contentType to "text/plain" I get my file looking exactly like it's supposed to look... I find this very strange! So... now for my question. What is this string I'm getting? Where does it come from??? How can I get rid of it? Changing to another content type is hardly an option since this is the only thing that has worked for me for IE. Note: Netscape has always allowed me to save my file just fine and no hazzle... well.. except that the default file name doesn't work there... but at least it's not adding those three damn lines at the top. I realize this is a browser issue but I don't know where to turn... e-mail Microsoft for help??? I don't think so! Any help is greatly appreciated, kind regards, Stefan Stefan Freyr Stefansson Software Developer deCODE Genetics, Inc. http://www.decode.com Phone: (+354) 570 2854 GSM: (+354) 861 1718 Fax: (+354) 491 3782 Stefan Stefansson.vcf BEGIN:VCARD VERSION:2.1 N;ENCODING=QUOTED-PRINTABLE:;=01 REV:20001030T115142Z END:VCARD
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
Differerences in Jakarta distributions (Was 3.2.1 build fails - any ideas?) Please comment
Thanks everybody! I've managed to build it now. The problem was kindof weird and the "solution" (if I can call it a solution) was even weirder... Like one of you pointed out I had to do a "build clean". After that everything worked. I found this rather weird since I deleted EVERYTHING in my Jakarta folder! I even deleted ant and rebuilt it but still this problem occurred. After the "build clean" though... everything worked. So I feel very stupid now if that makes anybody feel any better ;o) But nobody has answered my comment and so I post it again: I think there is a really big need for cleaning up the way Jakarta projects are distributed. There are differences between projects and even within projects (like the root directory for tomcat 3.2 suddenly changed from "tomcat-3.2" to "tomcat-3.2-bX" I think that happened with the beta 7) For example: 1) Tomcat and servletapi come in a zip file that includes the root directory for that project... that is, "jakarta-tomcat-3.2-src" and "jakarta-servletapi-3.2-src" were included in the zip file and the files are ready to be unzipped into the JAKARTA-HOME directory on the user machine (well... almost... more on that in point 2.). However, when I downloaded Ant 1.2 that project came in a zip file that was structured in a different way, specifically, it didnt' include the project root directory so I had to make the jakarta-ant directory myself and unzip the files into that directory. 2) When I had unzipped all files into the JAKARTA-HOME directory I had a structure that looked something like this: JAKARTA HOME jakarta-ant jakarta-servletapi-3.2-src jakarta-tomcat-3.2-src I built ant and servletapi but when I tried building tomcat I found out that it was trying to point to the servletapi.jar in a directory that was supposed to be called jakarta-servletapi but not jakarta-servletapi-3.2-src like my structure was then. Kind regards, Stefan Freyr.
3.2.1 build fails - any ideas?
Hello. I'm getting the following error when I try to build Tomcat 3.2.1. I've been using (and building) Tomcat 3.2 successfully: --BEGIN- --- tomcat: [javac] Compiling 193 source files to C:\jakarta\build\tomcat\classes [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompil er.java:136: Method getClassName(java.lang.String) not f ound in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspCompil er.java:137: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseE ventListener.java:867: Wrong number of arguments in cons tructor. [javac] = new GeneratorWrapper(new ForwardGenerator(start, attrs, param), [javac]^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\compiler\JspParseE ventListener.java:877: Wrong number of arguments in cons tructor. [javac] = new GeneratorWrapper(new IncludeGenerator(start, attrs, param), [javac]^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:329: Wrong number of arguments in constructor. [javac] CommandLineContext clctxt = new CommandLineContext( [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:367: Method compile() not found in class org.apache.jasper.compi ler.CommandLineCompiler. [javac] clc.compile(); [javac]^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\JspC.java:392: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch (JasperException je) { [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet .java:462: Method compile() not found in class org.apach e.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac]^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet .java:467: Method compile() not found in class org.apach e.jasper.compiler.Compiler. [javac] outDated = compiler.compile(); [javac]^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet .java:471: Exception java.io.FileNotFoundException is ne ver thrown in the body of the corresponding try statement. [javac] } catch (FileNotFoundException ex) { [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\jasper\servlet\JspServlet .java:473: Exception org.apache.jasper.JasperException i s never thrown in the body of the corresponding try statement. [javac] } catch (JasperException ex) { [javac] ^ [javac] C:\jakarta\jakarta-tomcat\src\share\org\apache\tomcat\request\JspInterce ptor.java:205: Method compile() not found in class org.a pache.jasper.compiler.Compiler. [javac] compiler.compile(); [javac] ^ [javac] Note: 3 files use or override a deprecated API. Recompile with "-deprecation" for details. [javac] 12 errors, 1 warning BUILD FAILED C:\jakarta\jakarta-tomcat\build.xml:94: Compile failed, messages should have been provided. Total time: 23 seconds --END--- - I've done exactly what it says in the readme file and still no luck. I'd like to use this opportunity to comment on a few other things as well. I think there is a really big need for cleaning up the way Jakarta projects are distributed. For example: 1) Tomcat and servletapi come in a zip file that includes the root directory for that project... that is, "jakarta-tomcat-3.2-src" and "jakarta-servletapi-3.2-src" were included in the zip file and the files are ready to be unzipped into the JAKARTA-HOME directory on the user machine (well... almost... more on that in 2.). However, when I downloaded Ant 1.2 that project came in a zip file that was structured in a different way, specifically, it didnt' include the project root directory so I had to make the jakarta-ant directory myself and unzip the files into that directory. 2) When I had unzipped all files into the JAKARTA-HOME directory I had a structure that looked something like this: JAKARTA HOME
RE: $20 bucks to the 1st person who actually solves my problem!!!
Try to find some way of using the javascript code "this.location.refresh()" in this. For example... you could have the JSP page or the servlet add the code onLoad="this.location.refresh()" into the body tag of the jsp page if the user has just deleted an entry. That way the client browser should force the page to be refreshed. I hope this helps solving your problem... please forget about the money ;o) Kind Regards, Stefan Freyr -Original Message- From: Adress, David S. [mailto:[EMAIL PROTECTED]] Sent: 8. desember 2000 13:29 To: '[EMAIL PROTECTED]'; 'JRun-Talk' Subject: $20 bucks to the 1st person who actually solves my problem!!! I am on this for days and I can't figure out what I'm doing wrong. I will send $20 bucks to 1st person who actually solves my problem. I am using jsp page's to control the layout of my page and servlets to spit back table data or to do database transactions. I have a jsp page that displays a list of employees. The jsp page has an include statement to include the servlet to spit out the table. The jsp just handles the general look of the page and the servlet just spits out the table and table html tags. Next to each record I have an add and delete hyperlink. If someone clicks the add link it displays another page to add an employee and then the action servlet adds the record and then goes back to the jsp list page. If some one deletes a record it calls a servlet to delete and then the servlet redirects back to the jsp list page. But the list doesn't display the updated data without having me hit the refresh button in the browser. I tried using Tomcat and now am using Jrun and am still having the same problem. I've included all the proper meta tags in the jsp list page not to cache but it's not working. I've also tries doing it with reponse.setHeader but it doesn't work either. I've tried sending a random number param to the page ShowList?rnd=Randomnumber it still doesn't work.
RE: Critical Bug: SSL failed for Tomcat 3.2 Beta 8
Did you build from source? If so, did you have the JSSE jars in the classpath when you did that? Regards, Stefan. -Original Message- From: Xia, Alex [mailto:[EMAIL PROTECTED]] Sent: 21. nóvember 2000 22:28 To: [EMAIL PROTECTED] Subject: Critical Bug: SSL failed for Tomcat 3.2 Beta 8 I have installed Tomcat 3.2 Beta 8 on NT and made the following change to server.xml to enable SSL: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="443"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / Parameter name="secure" value="true" / /Connector And I have followed the instruction to create SSL certificate. The same exact configuration worked for Tomcat 3.2 Beta 5. However, when I tried to access my jsp, I got the following error on the server: java.io.IOException: The filename, directory name, or volume label syntax is inc orrect at java.io.Win32FileSystem.canonicalize(Native Method) at java.io.File.getCanonicalPath(File.java:441) at org.apache.tomcat.util.FileUtil.safePath(FileUtil.java, Compiled Code ) at org.apache.tomcat.core.Context.getRealPath(Context.java:794) at org.apache.tomcat.request.StaticInterceptor.requestMap(StaticIntercep tor.java:191) at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.j ava, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager. java:771) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743 ) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio n(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java , Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) 2000-11-21 05:18:48 - Ctx( ): 404 R( + :?(û?¤?¦¦¬\ò+îå+0r½+a+??+÷î¶2c¦~ ? ? ? + null) null It seems like Tomcat did not decript the URL for SSL thus creating the problem. I would say this is a critical bug. Thanks, Alex X. Xia Sonus Networks, Inc. (978) 392-8114
RE: Multiple Tomcats with SSL?
I don't think you can do that with Tomcat 3.1 (running standalone it doesn't support SSL and I haven't tried connecting it to an SSL Apache). So I think your best bet would be to get Tomcat 3.2b7. I know... it's still beta but everyone around here seem to be saying that it's much better than even the release of 3.1 (apart from the fact that 3.1 doesn't support SSL on the standalone). If you decide to use 3.2 you have to configure your server.xml so that you add connectors for each port. Each connector tag needs to look something like this: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/ Parameter name="port" value="443"/ Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" / Parameter name="secure" value="true"/ Parameter name="clientAuth" value="false"/ Parameter name="keystore" value="C:/Documents and Settings/stefanf/.keystore" / Parameter name="keypass" value="mypassword" / /Connector There are a few things to keep in mind if you do this: 1) You have to build Tomcat from source and make sure you have all JSSE jars in your classpath. The binary version is built on a setup that does not have JSSE (nobody seems to know why...) 2) Before you build the source version of Tomcat you need to change your java.security file. 3) You need to generate a keystore which keeps your server certificate under the alias Tomcat. These information can be found in the server.xml document. Just check it out if you need more info. Regards, Stefan -Original Message- From: Terence Ang [mailto:[EMAIL PROTECTED]] Sent: 17. nóvember 2000 01:53 To: [EMAIL PROTECTED] Subject: Multiple Tomcats with SSL? Dear All, Could anyone suggest whether there is a way to allow multiple instance of tomcats with SSL so that the developer could develop under different ports with SSL enabled? e.g. http://develop.someserver.com:8001 http://develop.someserver.com:8002 http://develop.someserver.com:8003 We are using a. RedHat 6.2 b. Tomcat 3.1 (Running standalone currently) c. Apache 1.3.12/ModSSL 2.6.6/OpenSSL 0.9.5a (Installed but not enabled) Thanks!
RE: At last, Herbal V, the all Natural Alternative!
would you please quit sending this to me!!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. nóvember 2000 23:20 To: [EMAIL PROTECTED] Subject: At last, Herbal V, the all Natural Alternative! Herbal V: An Incredible All-Natural Healthy Alternative To Va Herbal V is the All Natural Approach to Male Virility, Vitality and Pleasure. Available N o w ! Welcome to the New Sexual Revolution. It's the all natural male potency and pleasure pill that men everywhere are buzzing about. Herbal V is safe, natural and specifically formulated to help support male sexual function and pleasure. You just take two easy-to-swallow tablets one hour before sex. And there's more great news - you can get Herbal V for less than $1 a pill. Amazing word of mouth praise on Herbal V has been spreading like wildfire-already over 1,500,000 men have chosen Herbal V. Since it is 100% natural you will never have to worry about safety. Try doctor-recommended Herbal V today and have the greatest night of your life! Herbal V... Bringing Back the Magic! 1,585,000 men can't be wrong. To date over 1 million men have tried the super supplement Herbal V. Here is why: No Doctor Visit Required Available Over the Counter Not a Drug 100% Natural Safe, No Worries Highest Quality Pharmaceutical-Grade Pure Nutriceuticals Guaranteed Potency Purity Be a Real Man Again! Questions and Answers What is Herbal V? Herbal V is a proprietary blend that was specifically developed as a safe alternative for men who prefer an all-natural approach to address impotence and boost sexual performance. This amazing formula first became popular with Hollywood insiders and the wealthy elite. They were maximizing their sex lives, long before it was available to the general public. How does Herbal V work? Developed by a team whose goal was to create the perfect all-natural aphrodisiac. Herbal V is the result of that remarkable effort. The Herbal V formula contains a precise blend of cutting edge pro-sexual nutrients from around the world that provide nutritional support, making it possible for a man to have a pleasurable sexual experience. What can Herbal V do for me? Herbal V helps support male sexual function and pleasure in a safe and natural manner. Simply put, it can make your sex life incredible. Is Herbal V Safe? One of the great things about Herbal V is that it is not a drug. It is an incredible herbal dietary supplement that provides nutritional support for male sexual function and pleasure. One of the most comforting features of Herbal V is that you never have to worry about safety. Herbal V: Safe - Natural - Exciting Many have speculated that because Herbal V is so popular with men, it must contain prescription drugs or chemical components. Herbal V does not contain any elements or traces of any prescription drug. Herbal V is made using the world's most technologically advanced state-of-the-art cold processing equipment to ensure maximum purity. Herbal V has been independently analyzed by the nation's premier testing facility to ensure purity, quality and to end the rumors that, because it is so popular, it must somehow be chemical. It is not. Herbal V is natural - just as it says on the label. Herbal V is simply fantastic! Herbal V: Ingredients Yohimbe, saw palmetto, avena sativa, androstenedione, guarana, taurine, siberian ginseng, tribulus terrestris. Tribulus Terrestis is certified to enhanced testosterone levels by increasing Luteinzing hormone (LH) levels. Androstenedione which is a precursor to testosterone unlocks bound testosterone and makes it biologically active again quickly. This means a dramatic surge in desire. Avena Sativa Stimulates the neurotransmitter pleasure centers to maximum capacity. This greatly intensifies pleasure. Just listen to what Herbal V has done for the sex lives of people like you! "On a scale of 1 to 10, it's a 15. Electrifying. It's like a wonder pill!" - Justin Q B., New Haven, Texas "I haven't had sexual relations in 11 years. Then with Herbal V it was... wow! It works again!" - Sid R., Lakeland, Florida "I had sex four times in one night. It made me feel like a 19-year-old again." - Chip S, Beech Mountain, North Carolina "Herbal V has turned my husband into a Sexual Superman! I like the fact that it's all natural and has no side effects. It's bringing back the good old days." - Jennifer B, Beverly Hills, California The above testimonials are from product literature, and we have not independently verified them. However, the following testimonial is from a "senior" gentleman who has purchased his second bottle of Herbal V. When we heard his words with our own ears, we asked his permission to print them here. "Man! I'm wild as I can be! I feel like I'm 25 years old again! I'm not believing this!" - Mr. Murphy, age 64, Lampart, IL. Risk Free: Double Your Money Back Guarantee
Thousand apologies!!!
I'm very sorry for sending this to the list... I don't know what happened... I got this letter and as you can see it was sent from [EMAIL PROTECTED] I didn't think replying to it would work (since spammers don't use their real e-mails) but I decided to give it a shot anyways. Somehow it seems to have been sent to the tomcat-users mailing list and I have no idea how that happened??? I couldn't see anything tying this letter to the Tomcat list... absolutely nothing... Again... my sincere apologies for the inconvenience. Kind regards, Stefan Freyr. -Original Message- From: Stefán F. Stefánsson Sent: 6. nóvember 2000 09:16 To: [EMAIL PROTECTED] Subject: RE: At last, Herbal V, the all Natural Alternative! would you please quit sending this to me!!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 5. nóvember 2000 23:20 To: [EMAIL PROTECTED] Subject: At last, Herbal V, the all Natural Alternative! Herbal V: An Incredible All-Natural Healthy Alternative To Va Herbal V is the All Natural Approach to Male Virility, Vitality and Pleasure. Available N o w ! Welcome to the New Sexual Revolution. It's the all natural male potency and pleasure pill that men everywhere are buzzing about. Herbal V is safe, natural and specifically formulated to help support male sexual function and pleasure. You just take two easy-to-swallow tablets one hour before sex. And there's more great news - you can get Herbal V for less than $1 a pill. Amazing word of mouth praise on Herbal V has been spreading like wildfire-already over 1,500,000 men have chosen Herbal V. Since it is 100% natural you will never have to worry about safety. Try doctor-recommended Herbal V today and have the greatest night of your life! Herbal V... Bringing Back the Magic! 1,585,000 men can't be wrong. To date over 1 million men have tried the super supplement Herbal V. Here is why: No Doctor Visit Required Available Over the Counter Not a Drug 100% Natural Safe, No Worries Highest Quality Pharmaceutical-Grade Pure Nutriceuticals Guaranteed Potency Purity Be a Real Man Again! Questions and Answers What is Herbal V? Herbal V is a proprietary blend that was specifically developed as a safe alternative for men who prefer an all-natural approach to address impotence and boost sexual performance. This amazing formula first became popular with Hollywood insiders and the wealthy elite. They were maximizing their sex lives, long before it was available to the general public. How does Herbal V work? Developed by a team whose goal was to create the perfect all-natural aphrodisiac. Herbal V is the result of that remarkable effort. The Herbal V formula contains a precise blend of cutting edge pro-sexual nutrients from around the world that provide nutritional support, making it possible for a man to have a pleasurable sexual experience. What can Herbal V do for me? Herbal V helps support male sexual function and pleasure in a safe and natural manner. Simply put, it can make your sex life incredible. Is Herbal V Safe? One of the great things about Herbal V is that it is not a drug. It is an incredible herbal dietary supplement that provides nutritional support for male sexual function and pleasure. One of the most comforting features of Herbal V is that you never have to worry about safety. Herbal V: Safe - Natural - Exciting Many have speculated that because Herbal V is so popular with men, it must contain prescription drugs or chemical components. Herbal V does not contain any elements or traces of any prescription drug. Herbal V is made using the world's most technologically advanced state-of-the-art cold processing equipment to ensure maximum purity. Herbal V has been independently analyzed by the nation's premier testing facility to ensure purity, quality and to end the rumors that, because it is so popular, it must somehow be chemical. It is not. Herbal V is natural - just as it says on the label. Herbal V is simply fantastic! Herbal V: Ingredients Yohimbe, saw palmetto, avena sativa, androstenedione, guarana, taurine, siberian ginseng, tribulus terrestris. Tribulus Terrestis is certified to enhanced testosterone levels by increasing Luteinzing hormone (LH) levels. Androstenedione which is a precursor to testosterone unlocks bound testosterone and makes it biologically active again quickly. This means a dramatic surge in desire. Avena Sativa Stimulates the neurotransmitter pleasure centers to maximum capacity. This greatly intensifies pleasure. Just listen to what Herbal V has done for the sex lives of people like you! "On a scale of 1 to 10, it's a 15. Electrifying. It's like a wonder pill!" - Justin Q B., New Haven, Texas "I haven't had sexual relations in 11 years. Then with Herbal V it was... wow! It works again!" - Sid R., Lakeland, Florida "I had sex four times in one night. It made me feel like a 19-year-old