Re: Precompile JSP
Try bin/jspc.bat or jspc.sh - Original Message - From: KL OOI [EMAIL PROTECTED] To: TOMCAT-USER [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 11:25 PM Subject: Precompile JSP Hi all, Do anyone here know how to compile all the JSP pages before I roll out for production?? Thanks.. Regards, KL OOI -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Byte Serving PDF's
AFAIK the only thing you have to do is let tomcat 4.0 serve the PDF's instead of your own servlet. Tomcat 4 implements HTTP 1.1 which introduced something like 'byte range request' (I don't have the exact name at hand) which is used by the acrobat reader. -Ursprüngliche Nachricht- Von: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 23:59 An: 'Tomcat Users List' Betreff: RE: Byte Serving PDF's Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To: 'Tomcat Users List' Subject: RE: Byte Serving PDF's The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Precompile JSP
Do anyone here know how to compile all the JSP pages before I roll out for production?? Every JSP, when called, is turned into a JAVA source code and compiled into a servlet, the first time it is called. You can do this manually: ${CATALINA_HOME}/bin/jasper.sh jspc your_file.jsp then javac -classpath ${SERVLET.JAR} your_file.java mv YourServlet.class WEB-INF/classes/ and edit web.xml to add servlet and mapping. Nix.
Tomcat 4.01 SSL stop
I run tomcat 4.01 in Solaris under JDK1.4. after i start tomcat ,http and https is work well, but after a minutes,https is unable to connect use by ie,but http is still visitable. Then i telnet to 443,It's have echo. Who can help me to resolve it. Thanks all.
Re: Precompile JSP
I like to complie JSP's by visiting them once. This way you even verify that they actually work. Pritpal Dhaliwal - Original Message - From: KL OOI [EMAIL PROTECTED] To: TOMCAT-USER [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 11:25 PM Subject: Precompile JSP Hi all, Do anyone here know how to compile all the JSP pages before I roll out for production?? Thanks.. Regards, KL OOI -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Java and double
That won't change anything, as the Math class uses the normal primitive datatypes. This is a 'problem' of representing numbers in double and float. -Ursprüngliche Nachricht- Von: Mangi, Rick [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 17:47 An: 'Tomcat Users List' Betreff: RE: Java and double Ya, I've seen that one before. use the java.math package. -Original Message- From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: Java and double Hi, Excuse me... this mail shouldnot be on this mailing list but it is an hurry. public class TestDouble { static public void main(String args[]) { double val = 0.5055 * 1000 ; System.out.println( val ); } } This program gives me the following results : 505.44 I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1. Have u got informations about this ? Can u try too ? Thanks a lot and sorry again Bye Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] This email and any attachments are confidential and may be legally privileged. No confidentiality or privilege is waived or lost by any transmission in error. If you are not the intended recipient you are hereby notified that any use, printing, copying or disclosure is strictly prohibited. Please delete this email and any attachments, without printing, copying, forwarding or saving them and notify the sender immediately by reply e-mail. Zurich Capital Markets and its affiliates reserve the right to monitor all e-mail communications through its networks. Unless otherwise stated, any pricing information in this e-mail is indicative only, is subject to change and does not constitute an offer to enter into any transaction at such price and any terms in relation to any proposed transaction are indicative only and subject to express final confirmation. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_jk
although my web application is correctly running I always have this errors in the mod_jk.log : [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Is it normal Thanx arno Arnaud HERITIER Ingénieur d'études SOPRA. Group EAI Consulting Tel : +33-1-53-33-44-74 Email : [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
suggestions for avoiding javascript problems
some problems that I faced using javascript libraries - sometimes the libraries will not be loaded, especially in very slow connections. Because of this, the other scripts in the page might not execute. This is a big problem especially if you have some dynamic menus etc. The only solution is to add all the script into the page itself using include commands. - if you do something in the onLoad() javascript function, it might not get executed. This is because the onload function fires only when all the elements of the page including images, applets etc are loaded. - put the javascript for image rollover effects in the top of the page. If you put in the bottom of the page, the page elements would have been rendered on the screen but the javascript will not be available. This would show some javascript errors and would stop all other scripts in the page! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk / Ajp13 config fix on heavily loaded system
We are currently experiencing heavy load using ajpv13. Good a system which could reproduce the problem. We had set those parameters as Henri specified as 100, 50 and 20 and still she died. Try to replace it with -1, which will make you have unlimited number of threads : Ajp13Connector port=8009 maxThreads=-1 maxSpareThreads=50 minSpareThreads=10 / We went back to 12 and experienced same problems. So the problem is more on Tomcat than in connector land. You're using Tomcat 3.2.2, could you retry with Tomcat 3.3 which solve many stability problem and it still SERVLET 2.2/JSP 1.1. My questions are: 1) Like apache has the built-in monitor (server-status) where you can watch the states of open threads to the web server, does tomcat offer anything like that? ? 2) how do you insert time/date in mod_jk.log as Henri's snippet includes? I have tried JkLogStampFormat [%a %b %d %H:%M:%S %Y] but apache complains Syntax error on line 295: Invalid command 'JkLogStampFormat', perhaps mis-spelled or defined by a module not included in the server configuration ./apachectl startssl: httpd could not be started You need to have a recent mod_jk, for example the one from Tomcat 3.3 which include it and SOLVE many others problems. mod_jk from TC 3.2 is really old, and won't works with Tomcat 3.3. Solution, upgrade to TC 3.3 and it's mod_jk, and tell us more for your Ajp13 problems (which may be fixed) 3) How do I determine what version of mod_jk.so I am using? My system was built for us by our systems group. Here is the file size: -rwxr-xr-x 1 root systems 141624 Feb 05 2001 mod_jk.so No easy way since up to TC 3.3 mod_jk (and now the one from jtc) there were no version number compiled in module. Now mod_jk for TC 3.3 is 1.1.0 (and reported in error.log of httpd server), and mod_jk for JTC is 1.2.0 Regards Using jdk 1.3.0 under AIX Apache 1.3.14 Tomcat 3.2.2 ajpv13 At 10:04 AM 11/14/2001 -0800, Travis Schmid wrote: -Original Message- From: Schulz, Sebastian, fiscus GmbH, Bonn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:19 AM To: '[EMAIL PROTECTED]' Subject: AW: mod_jk / Ajp13 config fix on heavily loaded system what's about loadbalancing? say, we have defined local loadbalancing using 5 ajp13-worker at workers.properties, and we have at server.xml: Ajp13Connector port=8009 maxThreads=100 maxSpareThreads=50 minSpareThreads=10 / Does this mean, we can support through the loadbalancer 100 threads or 500 threads (100 * number of workers(5) = 500)? 500 threads total. 100 per worker/Tomcat b.t.w, another question: when using local loadbalancing, does every worker has its own VM or are they sharing all the same VM? I had this question myself. I think I have it figured out now but feel free to correct me anyone that understands this better. The workers are threads/groups of threads that are running within the web servers memory space. They seem to be threads communicating on a particular port with an open socket to a Tomcat instance. Each separate Tomcat instance has its own VM and is listening on a different port number/host combination. I don't think the workers actually do much work. They just take the information they are given, transmit it to the Tomcat instance, and hand the reply information from Tomcat back to the web server. All the real work is done within the Tomcat instances (each of which can have their own VM). Travis thank you, sebastian -Ursprüngliche Nachricht- Von: GOMEZ Henri [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 13. November 2001 23:45 An: Tomcat Developers List Cc: [EMAIL PROTECTED] Betreff: mod_jk / Ajp13 config fix on heavily loaded system Hi to all, Some of you may have experienced problems on heavily loaded system with mod_jk and Tomcat 3.2/3.3 when using ajp13. As you may know, the Ajp13 connection is permanent and is created each time a WebServer task, for example an Apache child, have to forward a request to Tomcat. And in Apache server case, the child will stay alive, until the client requests load decrease, or when a child have passed 1000 requests (MaxRequestsPerChild 1000). And till the child close the connection, the Tomcat thread stay alive. By default Apache server support up to 150 childs : (MaxClients 150 in httpd.conf) But by default, the Ajp13 Interceptor won't use more than 100 threads, so you're stuck when the 101th Apache child want to forward a request and see the following infamous trace in mod_jk.log : [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (196)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 111 [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c (635)]: Error connecting to the Tomcat process. [wed oct 31 11:03:21 2001] [jk_ajp13_worker.c
Restarting a particular webapp
Is it possible to restart a particular webapp alone. Instead of entire tomcat server. Dont you think this will be nice feature? what is invoker servler? some neat explaination please __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
HTTP POST request: maximum allowed data?
Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat startup error
Following error is occuring while starting up the Tomcat server. I have downloaded tomcat archive for 2 times still i am not able to work with JSPs. Server is working fine with Servlets. Please suggest me the solution. java.lang.ClassNotFoundException: org/apache/tomcat/service/http/HttpConnectionH andler at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Compiled Code) at org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon nector.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tomcat.util.xml.MethodSetter.end(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.matchEnd(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.endElement(XmlMapper.java:96) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.parseInternal(Compiled Code) at com.sun.xml.parser.Parser.parse(Parser.java:283) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Context log: path=/MyApps Adding context path=/MyApps docBase=webapps/MyAp ps Context log: path=/examples Adding context path=/examples docBase=webapps/ examples Context log: path= Adding context path= docBase=webapps/ROOT Context log: path=/test Adding context path=/test docBase=webapps/test Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install=c:\Tomcat\Binary home=C:\Tomcat\Binary classPath=c: \Tomcat\Binary\classes;c:\Tomcat\Binary\lib\webserver.jar;c:\Tomcat\Binary\l ib\j asper.jar;c:\Tomcat\Binary\lib\xml.jar;c:\Tomcat\Binary\lib\servlet.jar;\lib \too ls.jar Context log: path=/admin Automatic context load docBase=C:\Tomcat\Binary\weba pps\admin Context log: path=/admin Adding context path=/admin docBase=C:\Tomcat\Bina ry\webapps\admin Thank you, Srinivas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: mod_webapp compiling problems
On 14/11/2001 04:17 pm, Petry Roman, ITS-IT [EMAIL PROTECTED] wrote: Hello... first.. tnaks for your fast answers.. Apachetoolbox is a nice shell-script, which helps you to compile Apache with a lot of modules, if you want.. nice thing.. btw.. Well, apparently it screws things up Ok.. But back to tomcat.. I deleted from the makefile, in the Apache-1.3 dir, the following line.. -S LDFLAGS_SHLIB=${APXS_LDFLAGS_SHLIB} \ Very bad idea... You won't be able to link the compiled module... and now the thing runs a little bit more.. BUT.. -o mod_webapp.so mod_webapp.o /root/webapp-module-2002/lib/libwebapp.a /ro ot/webapp-module-2002/lib/libapr.a apxs:Break: Command failed with rc=16777215 make[2]: *** [mod_webapp.so] Error 1 make[2]: Leaving directory `/root/webapp-module-2002/apache-1.3' make[1]: Exiting directory apache-1.3 And indeed... :) and now.. was it wrong to delete the line ?? or is this a new problem which has nothing to to with the deleted line..?? Your problem is that that ApacheToolBox is corrupting APXS, and it builds an APXS that doesn't really look good... Do things the good old way... Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Precompile JSP
The first time you use the page with the web server the page will compile it self - if it is not already compiled. - Original Message - From: KL OOI [EMAIL PROTECTED] To: TOMCAT-USER [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 8:25 AM Subject: Precompile JSP Hi all, Do anyone here know how to compile all the JSP pages before I roll out for production?? Thanks.. Regards, KL OOI -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
On 22/10/2001 03:54 pm, Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote: Hello everybody! I hope you could help me, please.. Actually, I'm begining to use Tomcat, and I have a succeded start because it still works PERFECT to me... But muy problem is very strange : I installed Tomcat to Solaris 8, and when I start it (startup.sh | tomcat.sh start ) it starts, but when I close the terminal window Tomcat shuts down!!! and now I'm using Tomcat with a terminal window opened with the caution message :DON'T CLOSE, PLEASE... I hope you could help me to fix it. Nancy. Are you starting it from a console or terminal window? How do you close your window? (Issuing exit or just closing the window?) Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Server Element in server.xml
The documentation that ships with Tomcat 4.01 does not include debug as one of the attributes that can be specified in the Server element in config/server.xml and yet the example config/server.xml that comes with the distribution does use it...is this a problem with the document or a problem with the confg/server.xml file? Server port=8005 shutdown=SHUTDOWN debug=0 Thanks, Tarek Nabil [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
On 14/11/2001 07:07 pm, Nikola Milutinovic [EMAIL PROTECTED] wrote: Tom Drake wrote: This has nothing to do with tomcat. It is standard unix behavior. When a user logs out, all processes created by that user are killed. No, when a user logs out all processes that are children to that shell instance are sent a HUP signal (Hang UP). A process may choose to ignore that signal. Every well written daemon and server process SHOULD do that (among other things). Unix provides simple way to around this feature. Simply type the following command: nohup tomcat.sh run I use tomcat.sh start instead of tomcat.sh run and so should Nancy. The problem is in Tomcat getting HUP signal, but in loosing a console, I think. In this case all 'console output produced by tomcat will appear in a file called 'nohup.out'. The name nohup comes from the days of flaky dialup connections and is short for 'no hang-up'. It is used to prevent a spurious loss of connection (or hang-up) from stopping a process. Or for instance, I connect to my company, locate a file for download, place it in script, run the script with nohup and disconnect. The download will go on. It must be the window manager, because when I SSH to a Solaris 8 machine, issue the tomcat start and then exit (with exit), tomcat is still up... The shell doesn't send any weird HUP, at least from remote... Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: HTTP POST request: maximum allowed data?
In your example you are not using the POST method. Any time you see a URL with the ? character in it, it means you are sending data with the GET method. The GET method allows parameters, but has a size limitation, as you have seen. If you want to make sure you are using the POST method you have to use a form, something like: FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post INPUT TYPE=hidden NAME=query VALUE=myquery /FORM When you want to send the data you have to use javascript to change the value of the hidden field to what you want and submit the form. This way you can be sure that the data will be sent using POST. Hope it helps, Ion -Mensaje original- De: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 15 de noviembre de 2001 10:57 Para: Tomcat Users List Asunto: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Precompile JSP
I don't know if there are any other ways to compile the pages - other than using the pages with the webserver. The books I have read, all states that the JSP-page will be compiled to a Servlet, when used with the webserver, if it has not yet been compiled. - Original Message - From: KL OOI [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 8:33 AM Subject: Re: Precompile JSP Can I compile it first? - Original Message - From: Lars Nielsen Lind [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; KL OOI [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 3:31 PM Subject: Re: Precompile JSP The first time you use the page with the web server the page will compile it self - if it is not already compiled. - Original Message - From: KL OOI [EMAIL PROTECTED] To: TOMCAT-USER [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 8:25 AM Subject: Precompile JSP Hi all, Do anyone here know how to compile all the JSP pages before I roll out for production?? Thanks.. Regards, KL OOI _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
Nikola Milutinovic [EMAIL PROTECTED] wrote: Good point. Every well written daemon will do the following: 1. parse input and complain if necessary 2. spawn a child and exit 3. a child will close STDIN, STDOUT, STDERR 4. a child will catch/ignore SIGHUP, SIGTERM, ... 5. a child will spawn a daemon process and exit. Is this possible in Java? I don't thnink Java application can spawn another process, it can spawn a thread. Can it close it's connections to the controlling terminal? Tomcat seams to do it. Can it ignore/catch signals? Sure it's possible :) There's also some code I wrote that does exactly that (CVS repository jakarta-tomcat-service)... Works pretty well under Solaris and MacOS/X 10.0/10.1 Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WebApp: Error 404 - Strange goings on!
Hi, I have recently managed to combine Apache 1.3.20, SSL and Tomcat4.0.1 together using a self compiled DEAPI web_app connector. After much pain, everything seemed to be working very well. However, I am getting the following problem: When I start Tomcat and then Apache everything works really well - the sun is shining and the birds are singing. However, when I come in the following morning (it might happen quicker than this) dark clouds have gathered and the servlet pages won't service properly. Sometimes they don't show up, sometimes they half show up, sometimes missing images, css files, and then sometimes I get the following: WebApp: Error 404 (File: wa_request.c Line: 197) Web Application not yet deployed. This appears on my browser. Sometimes it works fine - this happens for everyone using the system. Has anyone got any ideas what could be going on? On reboot it works well for another while. It runs with extra JVM memory 32Mb and 48Mb max and I print out the memory at each servlet and there's plenty (garbage collect if it gets low anyway). I use SSL with name based Virtual Hosting (I know! but it works for the one SSL site I need and that's fine) - everything works until it's left alone for a while. Has anyone any suggestions on what could be causing it please? Thanks in advance, Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Benchmark
Hi, I would like to bench my web server( apache/tomcat ) What's the best ? I would like to indicate a list of urls( with somes params in it ) and that it takes care of sessions. Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: STARTUP.SH DOESN'T WORKS FINE
If you want a process to be independant from user connection, disconnection on a Unix boxes (and more generally on any system), you should make it run as a service. For example on Linux, you make it run at init time via script in /etc/rc.d/init.d/. And to be sure your tomcat has nothing to do with user, make it run under low priority profile (it didn't need to be run as root since it didn't open port 80). In my latest RPM for tomcat 3.3 and tomcat 4.0, I make tomcat's run under tomcat and tomcat4 users :) - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Pier Fumagalli [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 11:23 AM To: Tomcat Users List Subject: Re: STARTUP.SH DOESN'T WORKS FINE On 14/11/2001 07:07 pm, Nikola Milutinovic [EMAIL PROTECTED] wrote: Tom Drake wrote: This has nothing to do with tomcat. It is standard unix behavior. When a user logs out, all processes created by that user are killed. No, when a user logs out all processes that are children to that shell instance are sent a HUP signal (Hang UP). A process may choose to ignore that signal. Every well written daemon and server process SHOULD do that (among other things). Unix provides simple way to around this feature. Simply type the following command: nohup tomcat.sh run I use tomcat.sh start instead of tomcat.sh run and so should Nancy. The problem is in Tomcat getting HUP signal, but in loosing a console, I think. In this case all 'console output produced by tomcat will appear in a file called 'nohup.out'. The name nohup comes from the days of flaky dialup connections and is short for 'no hang-up'. It is used to prevent a spurious loss of connection (or hang-up) from stopping a process. Or for instance, I connect to my company, locate a file for download, place it in script, run the script with nohup and disconnect. The download will go on. It must be the window manager, because when I SSH to a Solaris 8 machine, issue the tomcat start and then exit (with exit), tomcat is still up... The shell doesn't send any weird HUP, at least from remote... Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Benchmark
Try http://webperformanceinc.com We've used it here and its really rather good. You 'train' it by setting your browser to use it as a proxy and then go through the bits of the site you want to test. You login and it records the data you sent Then you can get it to give your site alot of pain. it will simulate alot of users doing standard user type activity or you can get it just to blast your site... hope it helps David Laurent Michenaud wrote: Hi, I would like to bench my web server( apache/tomcat ) What's the best ? I would like to indicate a list of urls( with somes params in it ) and that it takes care of sessions. Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Jikes Tomcat 4.0.1 on Windows NT
I wonder if anybody out there can help I am trying to get Jikes to compile my JSP pages but all to no avail. I have set up the catalina.bat web.xml files as detailed in the release notes (details listed below) but it still does not work (error thrown listed below). Suspect it may be a classpath prob but am running out of ideas fast! The conventional set up using JAVAC works fine. Anybody got any thoughts on how to make it all work? Thanks in advance, Gordon Operating system: Windows NT Tomcat Version: 4.0.1 Jikes Version: 1.15 catalina.bat entry: set CP=%JAVA_HOME%\jre\lib\rt.jar;%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar web.xml entry: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namejspCompilerPath/param-name param-valuec:\jdk1.3\addins\jikes-1.15\bin\jikes.exe/param-value /init-param init-param param-namejspCompilerPlugin/param-name param-valueorg.apache.jasper.compiler.JikesJavaCompiler/param-value /init-param load-on-startup3/load-on-startup /servlet Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP C:/Program Files/Apache Tomcat 4.0/work/localhost/development/index$jsp.java:0:0:0:0: Error: Could not find package java/util in: C:\Program Files\Apache Tomcat 4.0\bin\bootstrap.jar C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\classes C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\lib\crimson.jar C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\lib\jaxp.jar C:\Program Files\Apache Tomcat 4.0\classes C:\Program Files\Apache Tomcat 4.0\lib\jasper-compiler.jar C:\Program Files\Apache Tomcat 4.0\lib\jasper-runtime.jar C:\Program Files\Apache Tomcat 4.0\lib\naming-factory.jar C:\Program Files\Apache Tomcat 4.0\common\classes C:\Program Files\Apache Tomcat 4.0\common\lib\activation.jar C:\Program Files\Apache Tomcat 4.0\common\lib\colt.jar C:\Program Files\Apache Tomcat 4.0\common\lib\jdbc2_0-stdext.jar C:\Program Files\Apache Tomcat 4.0\common\lib\jta.jar C:\Program Files\Apache Tomcat 4.0\common\lib\mail.jar C:\Program Files\Apache Tomcat 4.0\common\lib\mm.mysql-2.0.7-bin.jar C:\Program Files\Apache Tomcat 4.0\common\lib\naming-common.jar C:\Program Files\Apache Tomcat 4.0\common\lib\naming-resources.jar C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar C:\Program Files\Apache Tomcat 4.0\common\lib\tools.jar C:\Program Files\Apache Tomcat 4.0\common\lib\tyrex-0.9.7.0.jar C:\Program Files\Apache Tomcat 4.0\common\lib\xerces.jar . C:/Program Files/Apache Tomcat 4.0/work/localhost/development/index$jsp.java:0:0:0:0: Error: Could not find package java/lang in: C:\Program Files\Apache Tomcat 4.0\bin\bootstrap.jar C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\classes C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\lib\crimson.jar C:\Program Files\Apache Tomcat 4.0\webapps\development\WEB-INF\lib\jaxp.jar C:\Program Files\Apache Tomcat 4.0\classes C:\Program Files\Apache Tomcat 4.0\lib\jasper-compiler.jar C:\Program Files\Apache Tomcat 4.0\lib\jasper-runtime.jar C:\Program Files\Apache Tomcat 4.0\lib\naming-factory.jar C:\Program Files\Apache Tomcat 4.0\common\classes C:\Program Files\Apache Tomcat 4.0\common\lib\activation.jar C:\Program Files\Apache Tomcat 4.0\common\lib\colt.jar C:\Program Files\Apache Tomcat 4.0\common\lib\jdbc2_0-stdext.jar C:\Program Files\Apache Tomcat 4.0\common\lib\jta.jar C:\Program Files\Apache Tomcat 4.0\common\lib\mail.jar C:\Program Files\Apache Tomcat 4.0\common\lib\mm.mysql-2.0.7-bin.jar C:\Program Files\Apache Tomcat 4.0\common\lib\naming-common.jar C:\Program Files\Apache Tomcat 4.0\common\lib\naming-resources.jar C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar C:\Program Files\Apache Tomcat
AW: HTTP POST request: maximum allowed data?
With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: HTTP POST request: maximum allowed data?
Hi Ion, Sorry for not having explained well. Just tell you that I already do what you say, so I'm sure I'm using the post method, and Tomcat or the navigator has a maximun lenght even for its post URI... Do you know if there is any way of changing the maximum lenght and which is that maximun length for post URI's? What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQuery.value); } (That is because I want the result page to be a new page, not the same page...) Thanks. Sonia. =?us-ascii?Q?Ion_Larranaga?= escribió: In your example you are not using the POST method. Any time you see a URL with the ? character in it, it means you are sending data with the GET method. The GET method allows parameters, but has a size limitation, as you have seen. If you want to make sure you are using the POST method you have to use a form, something like: FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post INPUT TYPE=hidden NAME=query VALUE=myquery /FORM When you want to send the data you have to use javascript to change the value of the hidden field to what you want and submit the form. This way you can be sure that the data will be sent using POST. Hope it helps, Ion -Mensaje original- De: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Enviado el: jueves, 15 de noviembre de 2001 10:57 Para: Tomcat Users List Asunto: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Byte Serving PDF's
Not necessary, if tomcat 3.x/4.0 forward the Range information to the end Servlet - Henri Gomez ___[_] EMAIL : [EMAIL PROTECTED](. .) PGP KEY : 697ECEDD...oOOo..(_)..oOOo... PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 9:09 AM To: Tomcat Users List Subject: AW: Byte Serving PDF's AFAIK the only thing you have to do is let tomcat 4.0 serve the PDF's instead of your own servlet. Tomcat 4 implements HTTP 1.1 which introduced something like 'byte range request' (I don't have the exact name at hand) which is used by the acrobat reader. -Ursprüngliche Nachricht- Von: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 23:59 An: 'Tomcat Users List' Betreff: RE: Byte Serving PDF's Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To: 'Tomcat Users List' Subject: RE: Byte Serving PDF's The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: HTTP POST request: maximum allowed data?
Hi Ralph, Sorry for not having explained well, but what I exactly do is: What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQuery.value); } (That is because I want the result page to be a new page, not the same page...) So, I'm sure I'm doing a POST. If you say that with GET, the problem can be th browser, the server or the proxies, What html server are you using?. Perhaps the problem is there. I'm using Tomcat 3.2.1, and the URI that I create has normal characters, except the character '%'. Do you think this has something to do with? I think that the '%' has nothing to do with, but I'm not sure. Do you have any idea about what happens? Thanks, Sonia. Ralph Einfeldt escribió: With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: STARTUP.SH DOESN'T WORKS FINE
Good point. Every well written daemon will do the following: 1. parse input and complain if necessary 2. spawn a child and exit 3. a child will close STDIN, STDOUT, STDERR 4. a child will catch/ignore SIGHUP, SIGTERM, ... 5. a child will spawn a daemon process and exit. Is this possible in Java? I don't thnink Java application can spawn another process, it can spawn a thread. Can it close it's connections to the controlling terminal? Tomcat seams to do it. Can it ignore/catch signals? Sure it's possible :) There's also some code I wrote that does exactly that (CVS repository jakarta-tomcat-service)... Works pretty well under Solaris and MacOS/X 10.0/10.1 I'll look into it, but it is low on my priority list. Still, it's nice to know. Nix.
Re: STARTUP.SH DOESN'T WORKS FINE
If you want a process to be independant from user connection, disconnection on a Unix boxes (and more generally on any system), you should make it run as a service. For example on Linux, you make it run at init time via script in /etc/rc.d/init.d/. And suppose it just blocks or I need to reload it for some reason... I would need to stopt/start it manually from a terminal. I start Tomcat from init.d/ and I can use the same script to start/stop Tomcat any time manually. Nix.
AW: AW: HTTP POST request: maximum allowed data?
This won't work. Your form is perfoming a post, but your js function performs just a get: window.open(../servlet/myServlet?query=+document.form1.myQuery.value); This is always a GET, independent of the way you called it. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 12:11 An: Tomcat Users List Betreff: Re: AW: HTTP POST request: maximum allowed data? Hi Ralph, Sorry for not having explained well, but what I exactly do is: What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQue ry.value); } (That is because I want the result page to be a new page, not the same page...) So, I'm sure I'm doing a POST. If you say that with GET, the problem can be th browser, the server or the proxies, What html server are you using?. Perhaps the problem is there. I'm using Tomcat 3.2.1, and the URI that I create has normal characters, except the character '%'. Do you think this has something to do with? I think that the '%' has nothing to do with, but I'm not sure. Do you have any idea about what happens? Thanks, Sonia. Ralph Einfeldt escribió: With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: AW: HTTP POST request: maximum allowed data?
Solution: FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post TARGET=WindowForm1 INPUT TYPE=hidden NAME=query VALUE=myquery ... /FORM -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 12:11 An: Tomcat Users List Betreff: Re: AW: HTTP POST request: maximum allowed data? Hi Ralph, Sorry for not having explained well, but what I exactly do is: What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQue ry.value); } (That is because I want the result page to be a new page, not the same page...) So, I'm sure I'm doing a POST. If you say that with GET, the problem can be th browser, the server or the proxies, What html server are you using?. Perhaps the problem is there. I'm using Tomcat 3.2.1, and the URI that I create has normal characters, except the character '%'. Do you think this has something to do with? I think that the '%' has nothing to do with, but I'm not sure. Do you have any idea about what happens? Thanks, Sonia. Ralph Einfeldt escribió: With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Major (guru mode) help required
Sorry, this was a major boo boo on my part. I had JDBC realm turned on for the standalone service but not the Tomcat-Apache service. It all hangs together now. PS: Though I have described the web application Contexts within the standalone service, I can still access them when going through the Tomcat-Apache service. Is this normal or should I really be describing these again with the Tomcat-Apache service. Cheers -raj Of course on the browser, I only get my Error.jsp displayed, (no HTTP errors there). Without the specific error happening, it's impossible to know what's going on. Sorry. Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Dynamic Email
Here's an idea. Its sketched out in Java, but most technologies would work. Use HttpURLConnection to open the page you want (i.e. request the page through the Tomcat server). Copy the result text into the body of the email message. Send the email message. Randy -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:59 PM To: [EMAIL PROTECTED] Subject: RE: Dynamic Email Thanks for the tip. It looks like the developer's guide at http://jakarta.apache.org/velocity/developer-guide.html#Using% 20Velocity%20In%20Servlets is going to give me the most options there. I'd REALLY like to avoid training my group on ANOTHER view mechanism, and I'd like to take custom JSP tags that we write for initial use in HTML and reuse them in the dynamic e-mail. I'm not satisfied that Velocity will be the best solution, though it seems to be a viable one. Any other ideas of how to use JSP to generate dynamic e-mail content? - Tim [EMAIL PROTECTED] 11/14/01 03:05PM Check out Velocity at apache.org Kevin McBrearty ATG Automation Technologies Group Ltd. __ A computer lets you make mistakes faster than any other invention in human history, with the possible exception of handguns and tequila. - D.W. McArthur -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:42 PM To: [EMAIL PROTECTED] Subject: Dynamic Email Hi, I'd like to generate dynamic e-mail content, typically based on some parameters stored in the current HttpSession. JSP seems like a great tool for this. I can easily edit the static portion of the e-mail, and have non-technical personnel work with it. I'd get all the advantages JSP gives to dynamic HTML generation. I can't seem to figure out a good way to do it, though. I've tried to use the RequestDispactcher.include(), but there's no way to change the OutputStream to recover the content that was inadvertently streamed to the browser. I can't wrap the request/response objects in the Servlet 2.2 spec (tomcat 3.x), and I'm not sure I'd know the details of how to even if I was running tomcat 4.0. I tried creating a URL and calling getContent(), which returns a PushbackInputStream, but this works only sporadically. Most of the time the buffer has been read completely, and I have no data with which to push it back. All I want to do is load a JSP page, ensure that it's processed within the current Session and Request (so it has access to the needed variables), and then push that content into an e-mail message that I send using the JavaMail API. I assume that somebody else has wanted this type of thing before. If there's another solution to let end-users easily edit the static surroundings of dynamic e-mail content, where I can use templates, internationalization, and other great tools as easily as Struts, please let me know. Thanks, Tim -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Drivers
Hi, How can i conect tomcat 3.2.1 to a SQL Server 7. Sorry for this newbie question,but i need so guide Thanks all Regards, Andy
RE: Drivers
They have a database of JDBC drivers on the Java website http://industry.java.sun.com/products/jdbc/drivers You can search there for a JDBC driver that matches your requirements -Original Message- From: Law Kim Soon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 1:30 PM To: [EMAIL PROTECTED] Subject: Drivers Hi, How can i conect tomcat 3.2.1 to a SQL Server 7. Sorry for this newbie question,but i need so guide Thanks all Regards, Andy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Drivers
I would suggest you look at the list of JDBC drivers on Sun's website - they list all the drivers from vendors who have registered with them. Randy -Original Message- From: Law Kim Soon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 7:30 AM To: [EMAIL PROTECTED] Subject: Drivers Hi, How can i conect tomcat 3.2.1 to a SQL Server 7. Sorry for this newbie question,but i need so guide Thanks all Regards, Andy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: AW: AW: HTTP POST request: maximum allowed data?
Hi Ralph, I don't understand your solution. I think WindowForm1 is the var which, in your javascript, you do: WindowForm1 = window.open(...); But if it's a javascript var, you cann't access to it like that. Also, what I have to do is: WindowForm1 = window.open( --servlet call--); I mean, I have to do a servlet call, and that servlet will generate the html page in the new window, no in the 'old' one. How can I do it? Thanks, Sonia. Ralph Einfeldt escribió: Solution: FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post TARGET=WindowForm1 INPUT TYPE=hidden NAME=query VALUE=myquery ... /FORM -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 12:11 An: Tomcat Users List Betreff: Re: AW: HTTP POST request: maximum allowed data? Hi Ralph, Sorry for not having explained well, but what I exactly do is: What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQue ry.value); } (That is because I want the result page to be a new page, not the same page...) So, I'm sure I'm doing a POST. If you say that with GET, the problem can be th browser, the server or the proxies, What html server are you using?. Perhaps the problem is there. I'm using Tomcat 3.2.1, and the URI that I create has normal characters, except the character '%'. Do you think this has something to do with? I think that the '%' has nothing to do with, but I'm not sure. Do you have any idea about what happens? Thanks, Sonia. Ralph Einfeldt escribió: With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list:
AW: AW: AW: HTTP POST request: maximum allowed data?
The WindowForm1 is just a symbolic name for a new window that will be opened to display the result of the form action (it it is not already open). This has nothing to do with javascript, it's just basic simple HTML. Just give it a try... -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 13:52 An: Tomcat Users List Betreff: Re: AW: AW: HTTP POST request: maximum allowed data? Hi Ralph, I don't understand your solution. I think WindowForm1 is the var which, in your javascript, you do: WindowForm1 = window.open(...); But if it's a javascript var, you cann't access to it like that. Also, what I have to do is: WindowForm1 = window.open( --servlet call--); I mean, I have to do a servlet call, and that servlet will generate the html page in the new window, no in the 'old' one. How can I do it? Thanks, Sonia. Ralph Einfeldt escribió: Solution: FORM NAME=form1 ACTION=../servlet/myServlet METHOD=post TARGET=WindowForm1 INPUT TYPE=hidden NAME=query VALUE=myquery ... /FORM -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 12:11 An: Tomcat Users List Betreff: Re: AW: HTTP POST request: maximum allowed data? Hi Ralph, Sorry for not having explained well, but what I exactly do is: What I exactly do is: FORM NAME=form1 ACTION=javascript:myFunc() METHOD=post INPUT TYPE=hidden NAME=myQuery VALUE=myquery ... /FORM and in my javascript file: function myFunc() { myWin = window.open(../servlet/myServlet?query=+document.form1.myQue ry.value); } (That is because I want the result page to be a new page, not the same page...) So, I'm sure I'm doing a POST. If you say that with GET, the problem can be th browser, the server or the proxies, What html server are you using?. Perhaps the problem is there. I'm using Tomcat 3.2.1, and the URI that I create has normal characters, except the character '%'. Do you think this has something to do with? I think that the '%' has nothing to do with, but I'm not sure. Do you have any idea about what happens? Thanks, Sonia. Ralph Einfeldt escribió: With POST I don't know any size restrictions. We have used post requests to upload several hundred KBytes. With GET there are size restrictions which are limited by the browser, the http server and sometimes even by the proxies between the browser and your web server. The limit is typically a few thousend bytes. What you are doing is a GET. To do a post from HTML/JavaScript you need a form with method=post. The data you want to send must be a value of a input field (not part of the action url, that has the same limitations as the GET method). References: Microsoft IE: http://support.microsoft.com/support/kb/articles/Q208/4/27.ASP A general statement: http://www.phpbuilder.com/mail/phplib-list/281/0001.php From the HTTP 1.1 Spec: http://www.faqs.org/rfcs/rfc2068.html: The HTTP protocol does not place any a priori limit on the length of a URI. Servers MUST be able to handle the URI of any resource they serve, and SHOULD be able to handle URIs of unbounded length if they provide GET-based forms that could generate such URIs. A server SHOULD return 414 (Request-URI Too Long) status if a URI is longer than the server can handle (see section 10.4.15). Note: Servers ought to be cautious about depending on URI lengths above 255 bytes, because some older client or proxy implementations might not properly support these lengths. -Ursprüngliche Nachricht- Von: Sonia Galilea Varea [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 10:57 An: Tomcat Users List Betreff: HTTP POST request: maximum allowed data? Hi all, I have to tranfer data from a html form to a servlet, by using the HTTP POST request. I do it by javascript: myWin = window.open(../servlet/myServlet?query=+myQuery); I wonder what's the maximum allowed data to send with a POST command. And the GET? I had a look in the RFC but didn't find any size limitation. But there is one, because I get an exception if my URL is too large... Is there a way to setup the web server (I'm currently using Tomcat standalone 3.2.1) to accept more data? Thanks for any info. Sonia. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL
jsp and VB
helo.. i am having some problem here I used VB to develop an application, but my online aplication is using JSp. any1 have any idea. can JSP communicate with JSP ( I mean directly, not through Database) from, layyong -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Byte Serving PDF's
This doesn't seem to work for me. To test the theory, I dropped an 11.5 meg optimized PDF (i.e. a PDF prepared by Adobe Acrobat for byte serving) in the context root of an app in Tomcat 4. When I access the pdf directly using the file name in the URL, the whole thing still downloads before it displays. And I haven't messed with Tomcat 4's default configuration. I checked my browser acrobat plug-in (IE 6 w/ Acrobat Reader 5.01) to make sure they are configured correctly. Furthermore, I found a site that has some fairly large PDF's (http://web2.chm.msu.edu/oem/Blasting.htm) and the first page of those DO appear before the entire file finishes downloading. I then copied a 3.5 meg file from that site (http://web2.chm.msu.edu/oem/Blasting/Instruct/t01-10.pdf) and dropped it into the Tomcat 4 app. When I access that same file via Tomcat, the whole thing downloads before it displays. Any ideas? For those interested, here's Adobe's technical notes on the subject: http://www.adobe.com/support/techguides/acrobat/byteserve/byteservmain.html -T -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:09 AM To: Tomcat Users List Subject: AW: Byte Serving PDF's AFAIK the only thing you have to do is let tomcat 4.0 serve the PDF's instead of your own servlet. Tomcat 4 implements HTTP 1.1 which introduced something like 'byte range request' (I don't have the exact name at hand) which is used by the acrobat reader. -Ursprüngliche Nachricht- Von: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 14. November 2001 23:59 An: 'Tomcat Users List' Betreff: RE: Byte Serving PDF's Yes. It's not only possible, but support for it is built in to most modern web servers. The PDF has to be optimized for byte-serving and the web server has to be capable of byte-serving. So my question remains. Anyone out there done it or know how to configure Tomcat 4 to do it? -T -Original Message- From: Chris Tucker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Is this even possible? From my understanding of the PDF format, it is inherently random-access and relies on the entire file being available before it can be displayed. -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:24 PM To: 'Tomcat Users List' Subject: RE: Byte Serving PDF's The PDF's are pre-existing. I need to byte serve them (for page-at-a-time access via the Acrobat Reader plug-in in the client's browser). Currently we have a servlet that reads the file and streams the whole thing back. Some of the PDF's are quite large (13 megs). This means that the user has to wait until all 13 megs are received before s/he can view it. Byte-serving solves that problem, I just don't know how to do it. -T -Original Message- From: Jim Urban [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:54 PM To: Tomcat Users List Subject: RE: Byte Serving PDF's Do you want to dynamically generate the PDF on the fly and return it directly to the browser or to simply serve PDF files? If you want to do the first, check out the FOP website and have a look at the FOPServlet source code. This assumes you can make the contents of the PDF available in XML format for processing by FOP. Jim -Original Message- From: MacDonald, Todd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:53 PM To: Tomcat-User (E-mail) Subject: Byte Serving PDF's Anyone know how (or better yet, have some code to) byte serve PDF's through Tomcat 4? -T -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Restarting a particular webapp
Check out the manager application provided with Tomcat 4.0. It can start, stop and reload a single webapp. The documentation is on the TC 4.0 site and it works quite well. We use it in development to reload our application whenever we change a cached file. Jim -Original Message- From: BacardiWasabi [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:41 AM To: Tomcat Users List Subject: Restarting a particular webapp Is it possible to restart a particular webapp alone. Instead of entire tomcat server. Dont you think this will be nice feature? what is invoker servler? some neat explaination please __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Logout with basic autorization
Thank you for your quick response; however, I have a follow on question regarding BASIC authentication and WebDAV. If I implement FORM based authentication will I still be able to drag and drop folders using Slide's WebDAV capabilities and perform File | Open | Open as Web Folder from Internet Explorer. Exactly how will that work? As always thanks in advance. Kevin - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; kevin ritter [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 7:53 PM Subject: Re: Logout with basic autorization On Wed, 14 Nov 2001, kevin ritter wrote: Date: Wed, 14 Nov 2001 18:41:01 -0600 From: kevin ritter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], kevin ritter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Logout with basic autorization Can anyone one verify if this is really the case, that is, to logout with BASIC authentication you have to close the browser window? This seems to be a little goofy. Are there any work arounds? As far as I know, this is correct. The problem is that when you are using BASIC authentication, the browser sends the credentials on every request, and I don't know of any way to tell it to stop doing so. If you use form-based login, invalidating the session is all that is required to log the user off. Thank you in advance. Peace Kevin Ritter Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Why am I getting a Javascript file instead of my servlet ?
Sounds like you may have a: script language=JavaScript src=filename.js statement in your returned HTML code.. and the .js file can not be found... hope that helps. Cj James Adams wrote: I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Corey A. Johnson Creative Network Innovations http://www.cniweb.net/ 1-800-CNi-5547 ** 1-321-259-1984 -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Dynamic Email
I actually tried that earlier (my last of 3 attempts before sending this e-mail), but the InputStream associated with the HttpURLConnection has run past all the content by the time I get it. I have no idea why it does that. Here's a snipet of the code: String strURL; if( request.getServerPort() == 443 ) { strURL = https://; + request.getServerName() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } else if (request.getServerPort() == 80 ) { strURL = http://; + request.getServerName() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } else { strURL = http://; + request.getServerName() + : + request.getServerPort() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } java.net.URL url = new java.net.URL( strURL ); java.net.HttpURLConnection conn = (java.net.HttpURLConnection)url.openConnection(); java.io.InputStream in = (InputStream)conn.getInputStream(); StringBuffer strMailContent = new StringBuffer(); while ( in.available() 0 ) { strMailContent.append( (char)in.read() ); } in.close(); conn.disconnect(); message.setText( strMailContent.toString() + \r\n\r\n + text ); But for some reason in.available() almost always returns 0 bytes. I can use my debugger to see the protected byte array used by the PushbackInputStream, but can't get at any of the data since the position variable is already pointing to the end of the array and the mark() and reset() messages aren't supported. I'm guessing that it may have to do with something that either the container does or the JVM does to pool or optimize connection requests, but I don't know. If the connection DOES return the content of the URL, then on the next invocation it ALWAYS returns nothing. One more thing, using this method ALWAYS causes Tomcat to log the request, so it appears to be processing the JSP every time this code calls for it. I can also pull the JSP up multiple times in a browser without any problems. This seemed to be a fairly simple, fail-safe way to approach it, but I don't understand why it's giving me trouble... Any ideas? Thanks, Tim [EMAIL PROTECTED] 11/15/01 04:48AM Here's an idea. Its sketched out in Java, but most technologies would work. Use HttpURLConnection to open the page you want (i.e. request the page through the Tomcat server). Copy the result text into the body of the email message. Send the email message. Randy -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:59 PM To: [EMAIL PROTECTED] Subject: RE: Dynamic Email Thanks for the tip. It looks like the developer's guide at http://jakarta.apache.org/velocity/developer-guide.html#Using% 20Velocity%20In%20Servlets is going to give me the most options there. I'd REALLY like to avoid training my group on ANOTHER view mechanism, and I'd like to take custom JSP tags that we write for initial use in HTML and reuse them in the dynamic e-mail. I'm not satisfied that Velocity will be the best solution, though it seems to be a viable one. Any other ideas of how to use JSP to generate dynamic e-mail content? - Tim [EMAIL PROTECTED] 11/14/01 03:05PM Check out Velocity at apache.org Kevin McBrearty ATG Automation Technologies Group Ltd. __ A computer lets you make mistakes faster than any other invention in human history, with the possible exception of handguns and tequila. - D.W. McArthur -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:42 PM To: [EMAIL PROTECTED] Subject: Dynamic Email Hi, I'd like to generate dynamic e-mail content, typically based on some parameters stored in the current HttpSession. JSP seems like a great tool for this. I can easily edit the static portion of the e-mail, and have non-technical personnel work with it. I'd get all the advantages JSP gives to dynamic HTML generation. I can't seem to figure out a good way to do it, though. I've tried to use the RequestDispactcher.include(), but there's no way to change the OutputStream to recover the content that was inadvertently streamed to the browser. I can't wrap the request/response objects in the Servlet 2.2 spec (tomcat 3.x), and I'm not sure I'd know the details of how to even if I was running tomcat 4.0. I tried creating a URL and calling getContent(), which returns a PushbackInputStream, but this works only sporadically. Most of the time the buffer has been read completely, and I have no data with which to push it back. All I want to do is load a JSP page, ensure that it's processed within the current Session and Request (so it has
Re: STARTUP.SH DOESN'T WORKS FINE
Hi again! And thank you very much to all of you who had been sending some advice!! I tried to start Tomcat with the following sentence: tomcat.sh start And it didn't work again... I'm going to try with nohup... When I work with the server (Solaris) I open a terminal window and I close it with the exit command. But when I work by a remote connection (from my PC, Windows 98) I open a telnet window and it has the same behavior... I can't close the window (terminal o telnet) because Tomcat shuts down... I don't know why it only happends with Tomcat, because when I start Apache or Jserv as the same way, they are still alive when I close the telnet window... Thank you again! Nancy. Pier Fumagalli wrote: On 22/10/2001 03:54 pm, Nancy Crisostomo Martinez [EMAIL PROTECTED] wrote: Hello everybody! I hope you could help me, please.. Actually, I'm begining to use Tomcat, and I have a succeded start because it still works PERFECT to me... But muy problem is very strange : I installed Tomcat to Solaris 8, and when I start it (startup.sh | tomcat.sh start ) it starts, but when I close the terminal window Tomcat shuts down!!! and now I'm using Tomcat with a terminal window opened with the caution message :DON'T CLOSE, PLEASE... I hope you could help me to fix it. Nancy. Are you starting it from a console or terminal window? How do you close your window? (Issuing exit or just closing the window?) Pier -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Security question
Hi, It is possible de verify that a servlet has been called by a specific servlet or jsp and that it can't be called by another one. Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Security question
You can pass (possibly encrypted) information that only the two parties know. This is essentially authentication like your username/password. Frank Lawlor Athens Group, Inc. (512) 345-0600 x151 Athens Group, an employee-owned consulting firm integrating technology strategy and software solutions. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Session
Hi, Is it possible to see the active session ? Is it possible to see what there is in a session ? Is it possible to know which ip is assigned to each session ? Are they stored in memory ? files ? Thanks Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: jsp and VB
What are you trying to do? Are you trying to tie the two systems together, or are you instead trying to develop a core set of functions that both systems can use? oilayo@idigi .net.my To: [EMAIL PROTECTED] cc: 15-11-01 Subject: jsp and VB 04:10 AM Please respond to Tomcat Users List helo.. i am having some problem here I used VB to develop an application, but my online aplication is using JSp. any1 have any idea. can JSP communicate with JSP ( I mean directly, not through Database) from, layyong -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- NOTICE: The information contained in this electronic mail transmission is intended by Convergys Corporation for the use of the named individual or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone (collect), so that the sender's address records can be corrected. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Security question - grant entries
Hi, How do you grant permissions in the policy file to jsp pages. I've tried grant codeBase file:${catalina.home}/work/localhost/examples/jsp/security/protected/- { permission java.security.AllPermission; }; but I get an AccessControlException when some code in the jsp tries to do something that requires certain permission. It's tomcat 4.0 Any ideas? Antony -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
what does this error mean?
[Thu Nov 15 11:18:53 2001] [jk_ajp13_worker.c (228)]: connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed [Thu Nov 15 11:18:53 2001] [jk_ajp13_worker.c (712)]: Error reading reply [Thu Nov 15 11:18:53 2001] [jk_ajp13_worker.c (845)]: In jk_endpoint_t::service, get_reply failed in send loop 0 Maureen Fisher, CIT/ID, Cornell University Ithaca, NY 14850 [EMAIL PROTECTED] http://mo.cit.cornell.edu/ Treat people as if they were what they ought to be and you help them to become what they are capable of being. --Johann Wolfgang von Goethe -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: session and authentication issues
Hi I just asked this question yesterday. Search the archive for Logout with basic autorization. Mr Craig R. McClanahan responded as follows: The problem is that when you are using BASIC authentication, the browser sends the credentials on every request, and I don't know of any way to tell it to stop doing so. If you use form-based login, invalidating the session is all that is required to log the user off. We are currently working through this issue. I have posted a message asking if we implement FORM-based authentication will we lose the ability to use web folders. Good luck--I'll watch for your emails. Kevin - Original Message - From: Steve G [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 9:25 AM Subject: session and authentication issues I'm trying to use Basic authentication and session variables as a way of protecting my pages in all aspects. One problem arises when the user logs in and then they hit the back button on the browser and try logging in again; the old session variable is there but in the end it creates a new one? I don't understand why this is happening. My other problem is that the code is returning a null value for req.getAuthType..y would this occur? Steve G Software Engineer _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
set log files
Hi All, I am trying to set some log files for my application on Tomcat 4.0.1 on NT. What I did is adding the following lines in the server.xml, Context path=/pdfTest docBase=pdfTest debug=4 privileged=true reloadable=true Logger className=org.apache.catalina.logger.FileLogger directory=webapps/pdfTest/logs prefix=log. suffix=.txt timestamp=true/ Logger className=org.apache.catalina.logger.SystemErrLogger directory=webapps/pdfTest/logs prefix=err. suffix=.txt timestamp=true/ Logger className=org.apache.catalina.logger.SystemOutLogger directory=webapps/pdfTest/logs prefix=out. suffix=.txt timestamp=true/ /Context But it did not work. No log files were created even after I got an error. Then I changed the logs directory to logs, and only the first FileLogger is created, others not. Anyone have any suggestions? Thanks in advance. Hong Jiang
Sessions being shared... (TC 3.2.3)
I have some strangeness happening when using Tomcat 3.2.3, Apache and an EJB Server. Though it appears to be a session issue. The application is using SSL via Apache. Basically people log into the application via a jsp, the jsp creates a session for that person and stuffs information about them into it. What is happening is that somehow sessions are being shared between people. So person A logs in just fine, does some stuff. Person B then logs in, gets the session id for person A and therefore can see everything person A can in the application. Obviously this is bad. What perplexes me is how anyone could EVER get another persons sessionid. Here are the specs for the environment: Solaris 7 java 1.3.1 jakarta 3.2.3 apache-ssl 1.3.19 Thanks for any insight people might have on this. -- +-- mailto:[EMAIL PROTECTED] + | Paul M Rubenis - System Administrator | | Phone: (612) 624-8337 | | Fax: (612) 625-6853 | +---+ | Any connection between your reality and mine is purely| | coincidental. | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AW: Sessions being shared... (TC 3.2.3)
Typically this kind of errors doesn't mean that the users access the same session but the jsp's/servlets you use store information in place that is not local to the session. (e.g.: class or instance variables) To verify that the users have different sessions, have a look at the session id. If they differ it's probably an application problem. -Ursprüngliche Nachricht- Von: Paul Rubenis [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 17:32 An: Tomcat Users List Betreff: Sessions being shared... (TC 3.2.3) I have some strangeness happening when using Tomcat 3.2.3, Apache and an EJB Server. Though it appears to be a session issue. The application is using SSL via Apache. Basically people log into the application via a jsp, the jsp creates a session for that person and stuffs information about them into it. What is happening is that somehow sessions are being shared between people. So person A logs in just fine, does some stuff. Person B then logs in, gets the session id for person A and therefore can see everything person A can in the application. Obviously this is bad. What perplexes me is how anyone could EVER get another persons sessionid. Here are the specs for the environment: Solaris 7 java 1.3.1 jakarta 3.2.3 apache-ssl 1.3.19 Thanks for any insight people might have on this. -- +-- mailto:[EMAIL PROTECTED] + | Paul M Rubenis - System Administrator | | Phone: (612) 624-8337 | | Fax: (612) 625-6853 | +---+ | Any connection between your reality and mine is purely| | coincidental. | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Chunked Output
What does chunked output mean? Tarek Nabil [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Help with multiple security domains
I'd like to have two different JDBC realms within my server.xml and then I'd like to reference those within my web.xml file. I already have one JDBC realm working, I would like to add a second one. Is there some sort of name or key that can be set for a JDBC realm and then referenced by the security constraints within the web.xml? Thanks for any help. _ Trever Shick ICQ#:137752693 Current ICQ status: SMS: (Send an SMS message to my ICQ): +2783142137752693 More ways to contact me: Yahoo Id:[EMAIL PROTECTED] Current Yahoo! Messenger status: MSN Messenger Id : [EMAIL PROTECTED] ICQ URL: http://wwp.icq.com/137752693 E-Mail : [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Web Page: http://www.geocities.com/trevershick -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Trouble connecting Apache 1.3 Tomcat 4 w/ mod_webApp
FreeBSD, Tomcat 4, Apache 1.3.19 Here's my config; Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/ WebAppConnection tomcat4 warp localhost:9090 WebAppDeploy myapp tomcat4 /myapp WebAppConnection conn warp localhost:9090 WebAppDeploy examples conn /examples Here's the result from the apache error log; [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read packet (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot configure connection tomcat4 [Thu Nov 15 10:40:00 2001] [error] Cannot receive handshake WARP packet [Thu Nov 15 10:40:00 2001] [error] Cannot read packet (pr_warp_config.c:139) [Thu Nov 15 10:40:00 2001] [error] Cannot configure connection tomcat4 Might this be an error with compiling? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
servlet as RMI client - registry not found
Hi! At first I want to say: I have read the how-tos, faq, guides, tutorials etc. regarding servlet and rmi but I did not find a solution for my problem. I am using tomcat 4.0.1 on RedHat Linux 7.1, kernel 2.4.4, using IBM JDK 1.3.0. The task is to have a servlet (MyServlet) which uses mypackage.MyRmi via rmi calls. mypackage.MyRmi and mypackage.MyRmiImpl seem to be correct because I can use them from a testclass on a different machine. But when I try to use them in MyServlet the Naming.lookup does not work, an exception is raised and tomcat hangs. The things I configured: I made a directory tree according the specifications (webapps/myapp/WEB-INF/classes) MyServlet is in the classes dir, the package in classes/mypackage. I generated a web.xml in WEB-INF. I added a grant codeBase-section which reflects the settings used in the policy-file for my test-application. I installed the RPM Version so Tomcat is started via the provided script. Any ideas anyone? Thanks in advance. -- Guenter -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Drivers
You could also go to the BEA site and down load theirs too... Carl -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 6:02 AM To: Tomcat Users List Subject: RE: Drivers I would suggest you look at the list of JDBC drivers on Sun's website - they list all the drivers from vendors who have registered with them. Randy -Original Message- From: Law Kim Soon [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 7:30 AM To: [EMAIL PROTECTED] Subject: Drivers Hi, How can i conect tomcat 3.2.1 to a SQL Server 7. Sorry for this newbie question,but i need so guide Thanks all Regards, Andy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Apache-Soap and Tomcat 3.3
Thanks for the response. I only want my web application to respond to SOAP requests. The soap files are in my web app. The problem is, they still have to be in the Server classpath. My Toplink classes won't work if they are in the Server classpath, so says experience and the Toplink vendor. That means, I can't use soap and toplink together. Why in the world the Soap people have allowed this restriction is beyond me. The Tomcat path is only for the running of the server, why you need to add classes to it, to run my application is just plain wrong. Dave -Original Message- From: Tom Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 4:25 PM To: Tomcat Users List Subject: Re: Apache-Soap and Tomcat 3.3 David: Another solution is to simply deploy the apache web-application into the same context as your own. This means that you have to merge web.xml files, but it's otherwise pretty straightforward. This means that only your web-application will be able to respond to SOAP requests, however. I've implemented Apache SOAP both ways. - Original Message - From: David Brunkow [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Tuesday, November 13, 2001 3:35 PM Subject: Apache-Soap and Tomcat 3.3 | | | Does anyone have Apache-Soap working with Tomcat 3.3? Unless you jar your | app and put it in %TOMCAT_HOME%\lib\common\ I don't think it should work. | I'm having all kinds or problems with classes could not be found on just the | samples. | | Thanks, | | Dave -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Trouble connecting Apache 1.3 Tomcat 4 w/ mod_webApp
Alias /myapp /usr/local/jakarta-tomcat-4.0/webapps/myapp/\ What is the appBase (for the Apache-Tomcat service) specified in the Tomcat server.xml file? WebAppConnection tomcat4 warp localhost:9090 WebAppConnection warpConnection warp localhost:9090 WebAppDeploy myapp tomcat4 /myapp WebAppDeploy myapp warpConnection /myapp WebAppConnection warp localhost:9090 ... is this a different appBase (defined in tomcat's server.xml) than the first connection? WebAppDeploy examples conn /examples WebAppDeploy examples warpConnection /examples msg37085/bin0.bin Description: application/ms-tnef -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 3.2.3 - Image loading problem
What is the mod_jk configuration being included in Apache's httpd.conf file? I don't think Apache will recognize corner_top.jpg;jsessionid=92s03xnlw1 as a .jpg file because of the ;jsessionid I think Tomcat will need to serve this file. Larry -Original Message- From: Marko Sarunac [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:48 PM To: 'Tomcat Users List' Subject: RE: Tomcat 3.2.3 - Image loading problem Larry, The time that image does not load apache says [Wed Nov 14 14:45:32 2001] [error] [client ip.address] File does not exist: /home/user/www/site/images/corner_top.jpg;jsessionid=92s03xnlw1 However the second time around, it comes up and there is no log entry for every images missing i get this in tomcat log file 2001-11-14 14:45:32 - JspEngine -- /templates/master.jsp 2001-11-14 14:45:32 -ServletPath: /404.jsp 2001-11-14 14:45:32 - PathInfo: null 2001-11-14 14:45:32 - RealPath: /var/lib/tomcat/webapps/application/templates/master.jsp 2001-11-14 14:45:32 - RequestURI: /404.jsp 2001-11-14 14:45:32 -QueryString: null 2001-11-14 14:45:32 - Request Params: 2001-11-14 14:45:44 - Classpath according to the Servlet Engine is: /var/lib/tomcat/webapps/kgdragons/WEB-INF/lib/tiles.jar:/var/l ib/tomcat/weba pps/application/WEB-INF/lib/commons-collections.jar:/var/lib/t omcat/webapps/ application/WEB-INF/lib/struts.jar:/var/lib/tomcat/webapps/app lication/WEB-I NF/lib/commons-digester.jar:/var/lib/tomcat/application/kgdrag ons/WEB-INF/li b/kgdragons.jar:/var/lib/tomcat/webapps/application/WEB-INF/li b/commons-bean utils.jar All the missing images are called from master.jsp which is a template Thank you! -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 6:12 AM To: 'Tomcat Users List' Subject: RE: Tomcat 3.2.3 - Image loading problem What do the Apache and Tomcat logs show is happening to the image requests? Cheers, Larry -Original Message- From: Marko Sarunac [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 11:16 PM To: 'Tomcat Users List' Subject: RE: Tomcat 3.2.3 - Image loading problem P.S. Apache is runnins as a webserver and Tomcat as an appserver and are connected using mod_jk -Original Message- From: Marko Sarunac [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 8:15 PM To: 'Tomcat Users List' Subject: Tomcat 3.2.3 - Image loading problem I have a problem where the first time a user visits a site images do not show up... However if they were to reload the page all images com up properly. This is on session basis. If i close my browser and re-open same thing happens Any ideas? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Apache-Soap and Tomcat 3.3
Dave: I don't know anything about Toplink, so I can't really help you there. I do know, from my own experience with Apache Soap, that you call classes in jar files stored in your webapps WEB-INF/lib directory. What sorts of error messages are you getting when attempting this? - Original Message - From: David Brunkow [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 9:21 AM Subject: RE: Apache-Soap and Tomcat 3.3 | Thanks for the response. | | I only want my web application to respond to SOAP requests. The soap files | are in my web app. The problem is, they still have to be in the Server | classpath. My Toplink classes won't work if they are in the Server | classpath, so says experience and the Toplink vendor. That means, I can't | use soap and toplink together. Why in the world the Soap people have allowed | this restriction is beyond me. The Tomcat path is only for the running of | the server, why you need to add classes to it, to run my application is just | plain wrong. | | Dave | | | | -Original Message- | From: Tom Drake [mailto:[EMAIL PROTECTED]] | Sent: Tuesday, November 13, 2001 4:25 PM | To: Tomcat Users List | Subject: Re: Apache-Soap and Tomcat 3.3 | | | David: | | Another solution is to simply deploy the apache web-application into the | same context as your own. This means that you have to merge web.xml | files, but it's otherwise pretty straightforward. | | This means that only your web-application will be able to respond to | SOAP requests, however. | | I've implemented Apache SOAP both ways. | | - Original Message - | From: David Brunkow [EMAIL PROTECTED] | To: 'Tomcat Users List' [EMAIL PROTECTED] | Sent: Tuesday, November 13, 2001 3:35 PM | Subject: Apache-Soap and Tomcat 3.3 | | | | | | | | Does anyone have Apache-Soap working with Tomcat 3.3? Unless you jar your | | app and put it in %TOMCAT_HOME%\lib\common\ I don't think it should work. | | I'm having all kinds or problems with classes could not be found on just | the | | samples. | | | | Thanks, | | | | Dave | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: mod_jk
A bug in mod_jk for Tomcat 3.2.x causes this to always print, error or not. Since you are not like to be getting errors, it may be ignored. This is fixed in Tomcat 3.3's version of mod_jk. I believe you can use Tomcat 3.3's mod_jk with Tomcat 3.2.x, though I haven't tried it. Note that the reverse, mod_jk from Tomcat 3.2.x with Tomcat 3.3 is known *not* to work. Larry -Original Message- From: Arnaud Héritier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:36 AM To: Tomcat Users List (Adresse de messagerie) Subject: mod_jk although my web application is correctly running I always have this errors in the mod_jk.log : [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Is it normal Thanx arno Arnaud HERITIER Ingénieur d'études SOPRA. Group EAI Consulting Tel : +33-1-53-33-44-74 Email : [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat startup error
This is likely a CLASSPATH problem. For example, having j2ee.jar on your CLASSPATH. Remove any non-Tomcat entries from your CLASSPATH and see if Tomcat will start. Add them back it one at a time until you see which one is causing the problem. Larry -Original Message- From: Srinivas Velidanda [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 5:03 AM To: [EMAIL PROTECTED] Subject: Tomcat startup error Importance: High Following error is occuring while starting up the Tomcat server. I have downloaded tomcat archive for 2 times still i am not able to work with JSPs. Server is working fine with Servlets. Please suggest me the solution. java.lang.ClassNotFoundException: org/apache/tomcat/service/http/HttpConnectionH andler at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Compiled Code) at org.apache.tomcat.service.SimpleTcpConnector.setProperty(SimpleTcpCon nector.java:180) at java.lang.reflect.Method.invoke(Native Method) at org.apache.tomcat.util.xml.MethodSetter.end(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.matchEnd(Compiled Code) at org.apache.tomcat.util.xml.XmlMapper.endElement(XmlMapper.java:96) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.content(Compiled Code) at com.sun.xml.parser.Parser.maybeElement(Compiled Code) at com.sun.xml.parser.Parser.parseInternal(Compiled Code) at com.sun.xml.parser.Parser.parse(Parser.java:283) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163) Context log: path=/MyApps Adding context path=/MyApps docBase=webapps/MyAp ps Context log: path=/examples Adding context path=/examples docBase=webapps/ examples Context log: path= Adding context path= docBase=webapps/ROOT Context log: path=/test Adding context path=/test docBase=webapps/test Starting tomcat. Check logs/tomcat.log for error messages Starting tomcat install=c:\Tomcat\Binary home=C:\Tomcat\Binary classPath=c: \Tomcat\Binary\classes;c:\Tomcat\Binary\lib\webserver.jar;c:\T omcat\Binary\l ib\j asper.jar;c:\Tomcat\Binary\lib\xml.jar;c:\Tomcat\Binary\lib\se rvlet.jar;\lib \too ls.jar Context log: path=/admin Automatic context load docBase=C:\Tomcat\Binary\weba pps\admin Context log: path=/admin Adding context path=/admin docBase=C:\Tomcat\Bina ry\webapps\admin Thank you, Srinivas -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
AJP and Tomcat 4.0
I KNOW this is probably a FAQ, though I cannot find the answer I need. I found a couple of messages dealing with using mod_jk and Tomcat 4.0. They mention uncommenting a portion of the server.xml file. Unfortunely, the recent 4.0 releases don't HAVE this section anymore. Can someone point me to a URL, or provide me with actual config section of a working server.xml file, to enable using mod_jk with Tomcat 4.0? --- Brian A. Lantz Business Process Engineer Uniroyal Compound Semiconductor and Optoelectronics (813) 630-9100 X4556 [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
mod_webapp/Tomcat4 bug?
I have a webapp (named 'home'), with a default page (index.jsp). If I hit http://server:8080/home/; I get the expected page. If I hit http://server/home/; I do not, but if I use http://server/home/index.jsp; it gets there fine. Is this a known problem, and if so, is there a workaround (either for tomcat or apache? --- Brian A. Lantz Business Process Engineer Uniroyal Compound Semiconductor and Optoelectronics (813) 630-9100 X4556 [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Mod_Jk and Multiple Tomcats
Does anyone know how to do the following: For testing purposes we want to have one Apache running and use multiple Tomcats. We are using mod_jk and I can only find information on multiple tomcats via JServ. But you cannot use jserv and mod_jk at the same time. Can I do this with mod_jk? We are running Apache 1.3 and Tomcat 4.0.1 Oh and if anyone asked me any questions over the last week on this users group I didn't get it b/c of email problems. Thx, David -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat to read cookies on session start?
On Thu, 15 Nov 2001, Deacon Marcus wrote: Date: Thu, 15 Nov 2001 06:52:57 +0100 From: Deacon Marcus [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: RE: Tomcat to read cookies on session start? Hi, -Original Message- From: Jeremy Pierson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:52 AM To: [EMAIL PROTECTED] Subject: Tomcat to read cookies on session start? I need to create a new object and load it into the session attributes whenever a new session is created. To make this more interesting, this object needs to check for information stored in a cookie sent by the browser (stored from a prior visit) and fetch any related information from a database. I can use a HttpSessionListener to create an object and add it to the session whenever a new session is created, but the SessionListener (and the Session it gives access to) do not give access to an HttpServletRequest object. So how can I check for cookies or even the RemoteUser? These two required resources ARE available in the HttpServletRequest object, but there is no means of getting to that object from an HttpSessionListener, is there? Is a servlet Filter my only option? I'm running Tomcat 4.0.1. In case you're wondering, I don't want to *require* users to login to make these saved settings available, if they choose to use cookies. They are only required to login to perform tasks that modify certain data, or read restricted information. Many thanks in advance! -jeremy- IMO the best option would be to create a filter checking if( session.isNew() ) { doSomething(); }. Of course, that'd make it 2.3-only. BTW, that's a very good point - when session is created, it's created because of an incoming request, so it would be a nice addition something like HttpSessionEvent.getRequest() to get the request causing session's creation in HttpSessionListener.sessionCreated()? Anyone working on Servlets 2.4 specs here, what do you think? More precisely, a session is created because the application told it to -- by calling request.getSession() -- not because the request happened to come in. I would put the cookie-reading logic in the same place that the session-creation logic lives. Greetings, deacon Marcus Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Responding to a disconnected client
Check out the long running servlet example in the Jason Hunter book. Wrap the result holder/processor in a Session listener. If the browser requests the result then get it from the session and return it. If they eventually log off or their session expires you can reclaim the result memory. HTH -Original Message- From: Alexander, Ben [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 5:28 AM To: 'Tomcat Users List' Subject: Responding to a disconnected client Some of the tasks my stateful server performs take a while to complete, and I want to respond gracefully if a user has killed their browser before I've gotten around to sending a response. To set the stage, I use an architecture that has all user responses arriving at a single servlet (unoriginally named FrontController, ala Alur, Crupi and Malks), then after some processing the output is sent out via a collection of JSPs. Currently, if the browser exits before I send something to it, I get an exception that looks like this: java.net.SocketException: Connection reset by peer: socket write error at org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush (BufferedServl etOutputStream.java:234) at org.apache.tomcat.core.ResponseImpl.finish(ResponseImpl.java:206) at org.apache.tomcat.facade.RequestDispatcherImpl.forward(Request DispatcherImpl .java:215) at alo.FrontController.dispatchme(FrontController.java:339) at alo.FrontController.processRequest(FrontController.java:315) at alo.FrontController.doPost(FrontController.java:65) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) 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(ContextM anager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processCo nnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin t.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo ol.java:498) at java.lang.Thread.run(Thread.java:484) What I'd like to do is to run some test to see if the browser is open, and if it isn't then save the output for display the next time the user returns. Of course, this solution can fail too, so even better would be to fail over in case of exception and save the output. I would go ahead and save everything on every request, but my examination of the mailing archives makes it seem that getting JSP output is difficult or impossible. Does anyone have a better solution to my problem, so that I don't waste processing time only to send information off into the ether? Thanks, Ben -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Mod_Jk and Multiple Tomcats
(terse response) for each tomcat create a different worker (listening on different ports or from different servers). Map the urls to workers as appropriate. remember to modify server.xml to listen on the correct ports. HTH -Original Message- From: David Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 10:57 AM To: Tomcat Users List Subject: Mod_Jk and Multiple Tomcats Does anyone know how to do the following: For testing purposes we want to have one Apache running and use multiple Tomcats. We are using mod_jk and I can only find information on multiple tomcats via JServ. But you cannot use jserv and mod_jk at the same time. Can I do this with mod_jk? We are running Apache 1.3 and Tomcat 4.0.1 Oh and if anyone asked me any questions over the last week on this users group I didn't get it b/c of email problems. Thx, David -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Authentication Filter
On Wed, 14 Nov 2001, Pritpal Dhaliwal wrote: Date: Wed, 14 Nov 2001 22:13:06 -0800 From: Pritpal Dhaliwal [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Authentication Filter Is there an authentication filter that could be used with Servlet Spec 2.3. You could certainly use a filter to write your own authentication support. Does tomcat 4 come with one that could be used? Tomcat 4 supports standard container-managed security, but it is not done with Filters. You could write your own, however, along the following lines: * Map your filter to URL pattern /* so that it sees all the requests to this application. * Check if the user has already logged on, by looking for an object in the user's session. * If the user is logged on already, go ahead and pass the request on to whatever they asked for. (You will also want to let them see the login page itself, so that they actually can log in.) * If the user is not logged in, do a RequestDispatcher.forward() to the login page and then return without passing the request on. * In your login processing, create the appropriate object in the user's session so that the next request will find it there. There's lots of variations on this theme, depending on precisely how you want to authenticate people. Thanks in Advance, Pritpal Dhaliwal Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Servlet Mapping...:(
With the servlet mapping you've defined, the correct URL is: http://localhost:8080/framework/action not http://localhost:8080/framework/servlet/action Craig On Wed, 14 Nov 2001, BacardiWasabi wrote: Date: Wed, 14 Nov 2001 23:02:57 -0800 (PST) From: BacardiWasabi [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Servlet Mapping...:( time for a silly question... file - web.xml servlet servlet-nameTestAction/servlet-name servlet-classActionServlet/servlet-class /servlet servlet-mapping servlet-nameTestAction/servlet-name url-pattern/TestAction/url-pattern /servlet-mapping ActionServlet - web-inf\classes Context path - framework a) when my url is http:...:8080/framework/servlet/TestAction - it is working fine b) but when i make change to servlet mapping to above web.xml as servlet-mapping servlet-nameTestAction/servlet-name url-pattern/action/url-pattern /servlet-mapping and invoke http:...:8080/framwork/servlet/action - im getting page cannot be found restarted my server... __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Problem with ResourceBumdles using tomcat4.0.1
I have a web application which provides support for 4 different languages. I am using the resource bundle files for this. However tomcat4.0 is unable to load these files and reports a java.util.MissingResourceException: Can't find resource for base name actionStrings, locale en_US . This problem doesnt occur with tomcat3.2.1 . I place the property files in web-inf/classes dir. Any solutions or workarounds. Regards Yaser -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
jndi.properties
Hi, I've some ejbeans on other host(EJB container) and I want to use it in Tomcat(4.0.1). My question is: How I can specify/place jndi.properties file for successful lookup my beans.If Tomcat supports some other means through webapp configuration options (I mean Tomcat jndi namespace)- what(maybe servlet spec references)? Thanks. P.S I simply need to set java.naming.factory.initial,java.naming.provider.url somehow:( -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Solaris 7 x86 mod_webapp success
Hi, For the benefit of any other Solaris 7 x86 user, I was successful in compiling and using mod_webapp on this archictecture. In the hopes of saving an other from wasting time scratching their heads, The following is a brief listing of the experience. started with a working stand alone version of tomcat 4.0.1 built Apache 1.3.22 from source with enable-module=rewrite and enable-shared=rewrite downloaded and built newer version of gcc (gcc 2.95.3) downloaded the source jakarta-tomcat-connectors from the cvs repository. downloaded the apache APR source from http://apr.apache.org cd to jakarta-tomcat-connectors/webapp ./support/buildconf.sh ./configure --with-apr=/someplace/apr \ --with-apxs=/apachedirectory/bin/apxs \ --with-tomcat=/someplace/tomcat make **First time I tried this, I set my --with-apxs= to point at the apache directory, which did not seem to build a correct make file. Subsequently, I set --with-apxs= to point exactly to apxs and it seemed to work. copied webapp/apache-1.3/mod_webapp.so to /apache directory/libexec Modified /apache directory/conf/httpd to include the lines LoadModule webapp_module libexec/mod_webapp.so AddModule mod_webapp.c and tried the command /apache directory/bin/apachectl configtest. This resulted in the unhappy error message: Syntax error on line 209: /apache dir/conf/httpd.conf: Can not load /apache dir/libexec/mod_webapp.so into server ld.so.1: ... fatal relocation error ... mod_webapp.so: symbol --divdi3: referenced symbol not found. After a bunch of head scratching and googling- Saw an email on this listing from David Cracauer about pulling apart libgcc.a found libgcc.a from the newly built gcc 2.95.3 and copied it to a temp directory: mkdir tmpjnk cp libgcc.a tmpjnk cd tmpjnk ar x libgcc.a gcc -fpic -shared -o libgcc.so *.o this should create a shared library export LD_PRELOAD=/some where/tmpjnk/libgcc.so /apache directory/bin/apachectl configtest which resulted in SYNTAX OK **I set LD_PRELOAD just for testing this Probably you will want to put the libgcc.so somewhere like /usr/local/lib and be sure that LD_LIBRARY_PATH points to it Hope that this helps somebody.
Re: Server Element in server.xml
On Thu, 15 Nov 2001, Tarek M. Nabil wrote: Date: Thu, 15 Nov 2001 12:18:27 +0200 From: Tarek M. Nabil [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' (E-mail) [EMAIL PROTECTED] Subject: Server Element in server.xml The documentation that ships with Tomcat 4.01 does not include debug as one of the attributes that can be specified in the Server element in config/server.xml and yet the example config/server.xml that comes with the distribution does use it...is this a problem with the document or a problem with the confg/server.xml file? Server port=8005 shutdown=SHUTDOWN debug=0 The 4.0.1 release version of the class that implements Server does not actually support a debug property -- but the logic that reads server.xml simply ignores undefined attributes so it doesn't cause any problems. The debug property is supported in the current development version (i.e. in what you get if you download a nightly build). Thanks, Tarek Nabil [EMAIL PROTECTED] Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Dynamic Email (Workaround)
I found a workaround. Apparently the content wasn't ready as soon as my thread continued, so I just added a try to Thread.sleep( 100 ) a few times and then the InputStream had data ready to go. One drawback is that the input stream never returns -1 indicating the end of the input (because the socket's still open??), so I have to fake it by allowing 3 waits of 1/10 of a second each to see if there's more data before moving on. Strange, but it seems to work reliably now... From here I'll try to tack the session information onto the request to get access to at least that in my JSP page. [EMAIL PROTECTED] 11/15/01 08:26AM I actually tried that earlier (my last of 3 attempts before sending this e-mail), but the InputStream associated with the HttpURLConnection has run past all the content by the time I get it. I have no idea why it does that. Here's a snipet of the code: String strURL; if( request.getServerPort() == 443 ) { strURL = https://; + request.getServerName() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } else if (request.getServerPort() == 80 ) { strURL = http://; + request.getServerName() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } else { strURL = http://; + request.getServerName() + : + request.getServerPort() + request.getContextPath() + /mailContent.jsp?from= + from + to= + to; } java.net.URL url = new java.net.URL( strURL ); java.net.HttpURLConnection conn = (java.net.HttpURLConnection)url.openConnection(); java.io.InputStream in = (InputStream)conn.getInputStream(); StringBuffer strMailContent = new StringBuffer(); while ( in.available() 0 ) { strMailContent.append( (char)in.read() ); } in.close(); conn.disconnect(); message.setText( strMailContent.toString() + \r\n\r\n + text ); But for some reason in.available() almost always returns 0 bytes. I can use my debugger to see the protected byte array used by the PushbackInputStream, but can't get at any of the data since the position variable is already pointing to the end of the array and the mark() and reset() messages aren't supported. I'm guessing that it may have to do with something that either the container does or the JVM does to pool or optimize connection requests, but I don't know. If the connection DOES return the content of the URL, then on the next invocation it ALWAYS returns nothing. One more thing, using this method ALWAYS causes Tomcat to log the request, so it appears to be processing the JSP every time this code calls for it. I can also pull the JSP up multiple times in a browser without any problems. This seemed to be a fairly simple, fail-safe way to approach it, but I don't understand why it's giving me trouble... Any ideas? Thanks, Tim [EMAIL PROTECTED] 11/15/01 04:48AM Here's an idea. Its sketched out in Java, but most technologies would work. Use HttpURLConnection to open the page you want (i.e. request the page through the Tomcat server). Copy the result text into the body of the email message. Send the email message. Randy -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:59 PM To: [EMAIL PROTECTED] Subject: RE: Dynamic Email Thanks for the tip. It looks like the developer's guide at http://jakarta.apache.org/velocity/developer-guide.html#Using% 20Velocity%20In%20Servlets is going to give me the most options there. I'd REALLY like to avoid training my group on ANOTHER view mechanism, and I'd like to take custom JSP tags that we write for initial use in HTML and reuse them in the dynamic e-mail. I'm not satisfied that Velocity will be the best solution, though it seems to be a viable one. Any other ideas of how to use JSP to generate dynamic e-mail content? - Tim [EMAIL PROTECTED] 11/14/01 03:05PM Check out Velocity at apache.org Kevin McBrearty ATG Automation Technologies Group Ltd. __ A computer lets you make mistakes faster than any other invention in human history, with the possible exception of handguns and tequila. - D.W. McArthur -Original Message- From: Timothy Shadel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 4:42 PM To: [EMAIL PROTECTED] Subject: Dynamic Email Hi, I'd like to generate dynamic e-mail content, typically based on some parameters stored in the current HttpSession. JSP seems like a great tool for this. I can easily edit the static portion of the e-mail, and have non-technical personnel work with it. I'd get all the advantages JSP gives to dynamic HTML generation. I can't seem to figure out a good way to do it, though. I've tried to use the RequestDispactcher.include(),
RE: Mod_Jk and Multiple Tomcats
David, We are using Tomcat 3.2.3 with mod_jk but it should be similar in 4.0. We set it up like this to utilize multiple processors and machines efficiently for better scalability. Here's what we did: We setup Apache to start 4 Ajp13 workers all communicating on a different port number. Then we setup 4 instances of Tomcat (as NT services) listening on those ports. All of the instances use the same webapps directory and serve the same files. Make sure you set your JkMounts to use the loadbalancer worker (or whatever you named it). Good luck Example workers.properties fragment: worker.list=loadbalancer, w8009, w8011, w8013, w8015 worker.w8009.port=8009 worker.w8009.host=localhost worker.w8009.type=ajp13 worker.w8009.cachesize=10 worker.w8009.lbfactor=10 worker.w8011.port=8011 worker.w8011.host=localhost worker.w8011.type=ajp13 worker.w8011.cachesize=10 worker.w8011.lbfactor=10 worker.w8013.port=8013 worker.w8013.host=localhost worker.w8013.type=ajp13 worker.w8013.cachesize=10 worker.w8013.lbfactor=10 worker.w8015.port=8015 worker.w8015.host=localhost worker.w8015.type=ajp13 worker.w8015.cachesize=10 worker.w8015.lbfactor=10 worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=w8009, w8011, w8013, w8015 Example 8009server.xml fragment: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ /Connector Example 8011server.xml fragment: Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8011/ /Connector Example 8009wrapper.properties fragment: wrapper.server_xml=$(wrapper.tomcat_home)\conf\8009server.xml Example 8011wrapper.properties fragment: wrapper.server_xml=$(wrapper.tomcat_home)\conf\8011server.xml Example 8009Tomcat NT service installation: jk_nt_service.exe -I 8009Tomcat c:\jakarta-tomcat-3.2.3\conf\8009wrapper.properties Example 8011Tomcat NT service installation: jk_nt_service.exe -I 8011Tomcat c:\jakarta-tomcat-3.2.3\conf\8009wrapper.properties -Original Message- From: David Wilson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 10:57 AM To: Tomcat Users List Subject: Mod_Jk and Multiple Tomcats Does anyone know how to do the following: For testing purposes we want to have one Apache running and use multiple Tomcats. We are using mod_jk and I can only find information on multiple tomcats via JServ. But you cannot use jserv and mod_jk at the same time. Can I do this with mod_jk? We are running Apache 1.3 and Tomcat 4.0.1 Oh and if anyone asked me any questions over the last week on this users group I didn't get it b/c of email problems. Thx, David -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: set log files
There is at most one Logger associated with a particular Context. In your scenario, only the last one (writing to System.out) would be used, because it would replace the previous definitions. If you want to broadcast output to several places, you would need to write your own Logger implementation class that did this for you. Craig On Thu, 15 Nov 2001, Hong Jiang wrote: Date: Thu, 15 Nov 2001 11:27:51 -0500 From: Hong Jiang [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: set log files Hi All, I am trying to set some log files for my application on Tomcat 4.0.1 on NT. What I did is adding the following lines in the server.xml, Context path=/pdfTest docBase=pdfTest debug=4 privileged=true reloadable=true Logger className=org.apache.catalina.logger.FileLogger directory=webapps/pdfTest/logs prefix=log. suffix=.txt timestamp=true/ Logger className=org.apache.catalina.logger.SystemErrLogger directory=webapps/pdfTest/logs prefix=err. suffix=.txt timestamp=true/ Logger className=org.apache.catalina.logger.SystemOutLogger directory=webapps/pdfTest/logs prefix=out. suffix=.txt timestamp=true/ /Context But it did not work. No log files were created even after I got an error. Then I changed the logs directory to logs, and only the first FileLogger is created, others not. Anyone have any suggestions? Thanks in advance. Hong Jiang -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 4.01 SOAP 2.2 message-style services
I'm been using Apache SOAP 2.2 with Tomcat 3.2.3. I recently upgraded to Tomcat 4.0.1 and my SOAP message-style services have stopped working. RPC-style services still work fine, so I'm confident that I'm installing my jar files in the correct place (ie, $CATALINA_HOME/lib). Has anyone else experienced this, know what the problem might be? Attached is the SOAP fault message that I'm receiving, which indicates no signature match for my service method. I also have a simple example that demonstrates the problem, if that would help. It's a service that echos whatever is sent to it. The service method has this signature: public void echo( Envelope env, SOAPContext req, SOAPContext res ) throws IOException, MessagingException; System software info: Linux 2.2.12-20 kernel JDK 1.3.1_01 Tomcat 3.2.3 and 4.0.1 Apache SOAP 2.2 IBM XML4J 3.2.1 Java Activation Framework 1.0.1 Java Mail 1.2 And since SOAP 2.2 doc doesn't include installation instructions for Tomcat 4, I followed the instructions for Tomcat 3.2. Thanks, -Chris -- Chris Malley PixelZoom, Inc. Voice: +1.303.494.8849 835 Orman Drive EMail: [EMAIL PROTECTED] Boulder CO 80303-2616 ?xml version='1.0' encoding='UTF-8'? SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance; xmlns:xsd=http://www.w3.org/1999/XMLSchema; SOAP-ENV:Body SOAP-ENV:Fault faultcodeSOAP-ENV:Server/faultcode faultstringException while handling service request: echomsg.Server.echo(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext) -- no signature match/faultstring faultactor/soap/servlet/messagerouter/faultactor detail stackTracejava.lang.NoSuchMethodException: echomsg.Server.echo(org.apache.soap.Envelope,org.apache.soap.rpc.SOAPContext,org.apache.soap.rpc.SOAPContext) -- no signature match at org.apache.soap.util.MethodUtils.getEntryPoint(MethodUtils.java:194) at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:548) at org.apache.soap.util.MethodUtils.getMethod(MethodUtils.java:528) at org.apache.soap.server.MessageRouter.invoke(MessageRouter.java:54) at org.apache.soap.providers.MsgJavaProvider.invoke(MsgJavaProvider.java:125) at org.apache.soap.server.http.MessageRouterServlet.doPost(MessageRouterServlet.java:268) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at
Re: Help with multiple security domains
On Thu, 15 Nov 2001, Trever M. Shick wrote: Date: Thu, 15 Nov 2001 09:52:39 -0700 From: Trever M. Shick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help with multiple security domains I'd like to have two different JDBC realms within my server.xml and then I'd like to reference those within my web.xml file. I already have one JDBC realm working, I would like to add a second one. Is there some sort of name or key that can be set for a JDBC realm and then referenced by the security constraints within the web.xml? For Tomcat 4, you can use a different realm per webapp by nesting the Realm element inside a Context element for that webapp in server.xml. That way, you don't need any special key or anything like that. Thanks for any help. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help with multiple security domains
Thanks.. Do you know if this works with previous versions of tomcat (3.2.3)? It's not a requirement, I just don't feel like upgrading now. Trever - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 12:06 PM Subject: Re: Help with multiple security domains On Thu, 15 Nov 2001, Trever M. Shick wrote: Date: Thu, 15 Nov 2001 09:52:39 -0700 From: Trever M. Shick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help with multiple security domains I'd like to have two different JDBC realms within my server.xml and then I'd like to reference those within my web.xml file. I already have one JDBC realm working, I would like to add a second one. Is there some sort of name or key that can be set for a JDBC realm and then referenced by the security constraints within the web.xml? For Tomcat 4, you can use a different realm per webapp by nesting the Realm element inside a Context element for that webapp in server.xml. That way, you don't need any special key or anything like that. Thanks for any help. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Help with multiple security domains
On Thu, 15 Nov 2001, Trever M. Shick wrote: Date: Thu, 15 Nov 2001 12:38:31 -0700 From: Trever M. Shick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: Help with multiple security domains Thanks.. Do you know if this works with previous versions of tomcat (3.2.3)? It's not a requirement, I just don't feel like upgrading now. No it doesn't. Tomcat 3.2 only supports a single realm. Trever Craig - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 12:06 PM Subject: Re: Help with multiple security domains On Thu, 15 Nov 2001, Trever M. Shick wrote: Date: Thu, 15 Nov 2001 09:52:39 -0700 From: Trever M. Shick [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help with multiple security domains I'd like to have two different JDBC realms within my server.xml and then I'd like to reference those within my web.xml file. I already have one JDBC realm working, I would like to add a second one. Is there some sort of name or key that can be set for a JDBC realm and then referenced by the security constraints within the web.xml? For Tomcat 4, you can use a different realm per webapp by nesting the Realm element inside a Context element for that webapp in server.xml. That way, you don't need any special key or anything like that. Thanks for any help. Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tc 3.2.3 SSL/HTTPS config (fwd)
Date: Wed, 17 Oct 2001 16:19:06 -0700 (PDT) From: Richard Troy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Tomcat-user [EMAIL PROTECTED] Subject: Tc 3.2.3 SSL/HTTPS config - Message Text - Hi All, I've got an older Tomcat 3.2.2 installation that's apparently fully functional (haven't tried servlets/JSP yet) and I've just set up a new Tomcat 3.2.3 installation. Both installations serve their pages just fine. ...I realize that someone might tell me to go talk to another group regarding these topics but I'm posting here because this audience has to _use_ these tools whereas these questions would be lost on other groups (like JRE)... I'd like to get some more insight related to certificates and encryption strength: 1) When I connect to my new 3.2.3 installation and have my certificate read, it reports to the browser that during a Certificate Name Check the certificate presented does not contain the correct site name. I'd like to know how to avoid this warning message. I also note that I don't get this message when I connect to my older 3.2.2 installation, yet the keys were created (more or less) the same way (see below). Ideas? 2) Additionally, the new 3.2.3 installation reports that it's certificate uses Export Grade (RC4-Export with 40-bit secret key). After a second look, so does the older 3.2.2 installation. I'm not too worried about the encryption of the certificate, but this brought up an interesting question for which I don't know where to look: what's the actual encryption used for communications? I'm a Netscape fan, and eschew IE, and for various reasons I only use Netscape 4.7 - it doesn't tell me what the communications algorithem or strength is. Any clues where I find this out? (I saw that Tomcat with JSSE has a LOT of choices...) Does the Tomcat server automatically pick the highest strength encryption available with the connecting client? I haven't seen anything on this anywhere and I have looked... What gets me thinking here is that I downloaded the full strength US versions in every case. If it's going to only use export 40 bit, what's the point and where's that stronger encryption? Certificate details: In installing Tomcat 3.2.2 I ran into a bug in that the certificate generator 'keytool' from the JRE in my environ apparantly didn't include RSA support. (java version 1.2.2 Solaris VM - build Solaris_JDK_1.2.2_06, native threads, sunwjit) . So, I loaded version 1.3.1 of the Java2 runtime environment and the keytool from that works fine. There should be some different flags for specifying what grade of key gets generated in each case - I haven't found them yet. ...On my new 3.2.3 installation, I ran the keytool that came with Java 1.3.0. The certificate served by the 3.2.3 installation reports a bad certificate name check, and the one from JRE 1.3.1 doesn't... Minor, unrelated point: ${TOMCAT_HOME}/bin/tomcat.sh doesn't seem to work properly on my RedHat 6.2 box. On one occasion it crashed the shell I was in when I accidentally ran start twice. I suppose it could be unrelated but nothing else died. -shrug- I'm not spending any time on that one. -smile- Thanks for your comments, Richard -- Richard Troy, Chief Scientist Science Tools Corporation [EMAIL PROTECTED], 510-567-9957, http://ScienceTools.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: blocking access using filter (fwd)
Date: Wed, 17 Oct 2001 16:41:33 -0700 (PDT) From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: blocking access using filter On Wed, 17 Oct 2001, Taavi Tiirik wrote: Date: Wed, 17 Oct 2001 22:47:53 +0200 From: Taavi Tiirik [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: blocking access using filter Hey, I need more sophisticated access control for certain documents than JDBCRealm provides. These documents reside in separate directory tree and they are served by standalone tomcat 4. I have mapped an 'access control filter' to listen to all requests to this directory. Filter should behave like this: 1. If user is not logged in or if the session has timed out then it should open login page and after successful login it should try to access the very same request (ie. the same document). / I am using getRemoteUser() to determine if user is logged in. / 2. Filter performs a database lookup and decides if given user can access this document. / This step is easy and I can live with extra overhead needed for database query. / 3. If user does not have rights to access this document then filter should send error 404 (no such document). / This can be achieved using: response.sendError( HttpServletResponse.SC_NOT_FOUND ); / 4. Do nothing... ie. user will get this document. / 'do nothing' actually means calling next filter in chain like this: chain.doFilter( request, response ); / That's a pretty impressive amount of learning-by-doing! I have figured out all steps but the very first one. What should I do in filter in order to make tomcat to use it's standard authentication mechanism (JDBCRealm, form based login in my case) so the user could log in and still get required document? What you've got so far doesn't really correspond to JDBCRealm, which is just a way to tell Tomcat how to look up users. I don't quite see why you need to modify the standard form-based login mechanisms, either. Can't you just use the standard form based login for triggering authentication? This would be as simple as a security constraint that looks like this: security-constraint web-resource-collection web-resource-nameThe Entire Webapp/web-resource-name url-pattern /* /url-pattern /web-resource-collection auth-constraint role-name * /role-name /auth-constraint /security-constraint The /* URL pattern means that every single URL inside this webapp is protected by the constraint. The * in role names mean that it doesn't matter what role(s) the user has -- every request requires an authenticated user. Therefore, by the time your filter is invoked, getRemoteUser() will return the username you are looking for, and you can impose any *additional* constraints that you need to. Form based login already does the rest of what your step (1) includes - it remembers the page that the user asks for (if it switches them to the login screen), and automatically replays it once authentication is done. If you really did want to modify the Tomcat authenticator, you would need to turn this filter into an implementation of the org.apache.catalina.Valve interface, which is conceptually pretty similar to a Filter. Valves (including the standard one used for authentication) are invoked before the Filters (and the ultimate servlet) belonging to your web application are invoked. Please, any help is appreciated. I will happily donate this filter back to the group if I get it working and if there is interest. thanks in advance, Taavi Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Figuring out why Tomcat isn't serving a servlet (fwd)
Date: 18 Oct 2001 01:06:18 - From: Dr. Evil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Figuring out why Tomcat isn't serving a servlet I am completely stumped by a seemingly simple problem. I have created a very simple servlet: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class hello extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/plain); PrintWriter out = response.getWriter(); out.println(Hello); } } I place compile and place it in /usr/local/jakarta-tomcat-4.0/webapps/test/WEB-INF/classes/hello.class. Then, with no problem, I can access it by going to localhost:8080/test/servlet/hello. That's good. Now I tried to add a web.xml file that will load up another class which will create the database connection pool for me. Here's what the web.xml file looks like: ?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 session-config session-timeout120/session-timeout /session-config servlet servlet-namemakepool/servlet-name servlet-classmakepool/servlet-class load-on-startup1/load-on-startup /servlet /web-app Now with that file in place, I can no longer access servlet/hello. I tried putting in lines for the servlet: servlet servlet-namehello/servlet-name servlet-classhello/servlet-class /servlet but that didn't help either. Is there a way to get this to work? Connection pools aren't too useful if they're the only class you can have on your server... It seems that figuring out paths is a chronic difficulty with Tomcat. Is there any way to debug what Tomcat is trying to do with a particular request? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: blocking access using filter (fwd)
Date: Thu, 18 Oct 2001 11:58:34 +0200 From: Taavi Tiirik [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: blocking access using filter Thanks, Craig! 1. If user is not logged in or if the session has timed out then it should open login page and after successful login it should try to access the very same request (ie. the same document). I don't quite see why you need to modify the standard form-based login mechanisms, either. Can't you just use the standard form based login for triggering authentication? No, I did not want to modify standard login mechanism by any means :-). I simply had this (wrong) impression that filters get called before checking security constraints. How stupid of me :-). Creating security constraint like you suggested covered the first step and now I have this filter purring like a kitten. Just in case anybody is interested... this is what I did. doFilter looks like this: public void doFilter ( ServletRequest request, ServletResponse response, FilterChain chain ) throws IOException, ServletException { HttpServletRequest httpRequest = null; HttpServletResponse httpResponse = null; if( request instanceof HttpServletRequest ) httpRequest = (HttpServletRequest)request; if( response instanceof HttpServletResponse ) httpResponse = (HttpServletResponse)response; boolean authorized = false; String user = httpRequest.getRemoteUser(); // Is this really necessary? Could it be that requests // other than HttpServletRequest are passed to // this filter? Can they be harmful by any means? // Or should I let them through? if( httpRequest == null || httpResponse == null || user == null ){ httpResponse.sendError( HttpServletResponse.SC_NOT_FOUND ); return; } try { // At this point we have user name in 'user' and request URI // in 'requestURI'. Make sure that this user has rights to // get this document and set authorized to true, if (s)he has. authorized = ... } catch( Exception e ){ } if( !authorized ){ httpResponse.sendError( HttpServletResponse.SC_NOT_FOUND ); return; } // Pass control on to the next filter chain.doFilter( request, response ); } with best wishes, Taavi -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: regd classloader (fwd)
Date: Thu, 18 Oct 2001 08:08:03 -0700 (PDT) From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: regd classloader On Thu, 18 Oct 2001, E B wrote: Date: Thu, 18 Oct 2001 10:28:27 +0100 (BST) From: E B [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: regd classloader Hi In tc4, whats the difference between shared and common class loader ? From the docs, I understand that from the webapp's point of view they are same. ie., they both give classes to all the webapps. Am I correct ? The shared class loader is visible to all webapps, but NOT to Tomcat's internal classes. The common class loader is visible to all webapps AND to Tomcat's internal classes. A common scenario is where you wanted to use the same JDBC driver for both a JDBCRealm implementation (so Tomcat needs access to it) and one or more webapps. I want my webapp's classes to be visible and shared by a soap service. When I put my app's classes in shared dir my apache-soap's service could not find the app's classes. But it worked when I moved them to common/classes. So there seems to be something I am missing. what is it ? The most likely cause is that you're trying to load classes from a lower class loader in the hierarchy, which won't work. Consider a simplified version of the hierarchy: Common (package C) | Shared (package S) | Webapp (package W) Now, consider what is visible to classes from each place: * Classes in the Webapp class loader can see packages W, S, and C * Classes in the Shared class loader can see packages S and C * Classes in the Common class loader can see package C only. In your scenario, it's likely that you had some class in the common package that was trying to load your app's classes. That won't work unless the app's classes are also in the Common loader, OR unless the service classes take advantage of the Context Class Loader mechanism to get access to the webapp class loader for the current request: ClassLoader cl = Thread.currentThread().getContextClassLoader(); Class clazz = cl.loadClass(W.Foo); Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Precompile JSP
Tom: I'm not aware of any such option. I have always just lived with this recompiled all JSP's. You could create an Ant Task for this. It could be a very nice addition Ant's optional taskdefs. Tom Drake - Original Message - From: Tom Parker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tom Drake [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 11:54 AM Subject: RE: Precompile JSP | Try bin/jspc.bat or jspc.sh | | I would like to compile my jsp's as a test before I deploy it and see if it | works. I spend quite a lot of time changing stuff, deploying, loading in a | web browser and seeing jsp compiliation problems. | | It would be nice to have jspc compile my jsp's during the deployment | process. I tried this and it seems to recompile everything, rather than only | those files that have changed. | | Is there a depends option to jspc? | | The obvious solution is to use ant to only compile those files that have | changed, but there doesn't seem to be an equivelent of make's .c.o option in | ant. Is there a dependset creator anywhere, if there isn't a generic .c.o | type task? | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Precompile JSP
Note: Jspc doesn't compile your jsps as the webserver would do. That means that when you call jspc and start the server afterwards then the webserver will compile the jsps itselft again (at least this is my experience). I think the main purpose of jspc is to get rid of your jsp-files since it simply converts them to servlet (and generates the correct servlet-config for your web.xml). Another solution to simply compile a jsp is to call it (from a browser) with the jsp_precompile=true parameter (example: http://localhost:8080/my.jsp?jsp_precompile=true) Then the jsp will be compiled but NOT executed. I simply wrote a servlet that goes through the whole web-app and calls all jsps this way. The Java-Code to call one jsp would be: URL url = new URL (http://localhost:8080/my.jsp?jsp_precompile=true;); URLConnection con = url.openConnection(); con.getInputStream(); Hope this helps (or at least adds another point of view to the discussion) pero -Original Message- From: Tom Parker [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 8:54 PM To: Tomcat Users List; Tom Drake Subject: RE: Precompile JSP Try bin/jspc.bat or jspc.sh I would like to compile my jsp's as a test before I deploy it and see if it works. I spend quite a lot of time changing stuff, deploying, loading in a web browser and seeing jsp compiliation problems. It would be nice to have jspc compile my jsp's during the deployment process. I tried this and it seems to recompile everything, rather than only those files that have changed. Is there a depends option to jspc? The obvious solution is to use ant to only compile those files that have changed, but there doesn't seem to be an equivelent of make's .c.o option in ant. Is there a dependset creator anywhere, if there isn't a generic .c.o type task? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
OOOPS! APPLOLGIES!
Hi All, In an attempt to better organize the fire-hose of inbound Tomcat email messages, I created an account called tomcat to receive the posts. I then set about moving over the older mails I'd saved, and forwarded them to tomcat. What I neglected to notice for several mails was that my mail program knew tomcat as an alias for the tomcat email list and NOT as a local username! Therefore, it sent those posts to all of you. Please accept my humble appology for this gaff! It will never happen again! Regards, Richard -- Richard Troy, Chief Scientist Science Tools Corporation [EMAIL PROTECTED], 510-567-9957, http://ScienceTools.com/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Figuring out why Tomcat isn't serving a servlet (fwd)
I think session-config should come after servlet. An exception is probably being thrown, so the web.xml isn't fully read. Try checking the log. Larry -Original Message- From: Richard Troy [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:01 PM To: Tomcat-user Subject: Figuring out why Tomcat isn't serving a servlet (fwd) Date: 18 Oct 2001 01:06:18 - From: Dr. Evil [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Figuring out why Tomcat isn't serving a servlet I am completely stumped by a seemingly simple problem. I have created a very simple servlet: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class hello extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(text/plain); PrintWriter out = response.getWriter(); out.println(Hello); } } I place compile and place it in /usr/local/jakarta-tomcat-4.0/webapps/test/WEB-INF/classes/hel lo.class. Then, with no problem, I can access it by going to localhost:8080/test/servlet/hello. That's good. Now I tried to add a web.xml file that will load up another class which will create the database connection pool for me. Here's what the web.xml file looks like: ?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 session-config session-timeout120/session-timeout /session-config servlet servlet-namemakepool/servlet-name servlet-classmakepool/servlet-class load-on-startup1/load-on-startup /servlet /web-app Now with that file in place, I can no longer access servlet/hello. I tried putting in lines for the servlet: servlet servlet-namehello/servlet-name servlet-classhello/servlet-class /servlet but that didn't help either. Is there a way to get this to work? Connection pools aren't too useful if they're the only class you can have on your server... It seems that figuring out paths is a chronic difficulty with Tomcat. Is there any way to debug what Tomcat is trying to do with a particular request? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Precompile JSP
Doesnt Tomcat offer anything like a precompile when starting up the server? In BEA WebLogic, you can edit the XML configuration files so that it will automatically precompile ur JSPs on startup. It takes a bit longer to start up the server.. but then u dont need ants or have to go through each page. Any Tomcat contributors out there want to help answer this one? -Tim -Original Message- From: Tom Drake [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:09 PM To: Tomcat Users List Subject: Re: Precompile JSP Tom: I'm not aware of any such option. I have always just lived with this recompiled all JSP's. You could create an Ant Task for this. It could be a very nice addition Ant's optional taskdefs. Tom Drake - Original Message - From: Tom Parker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tom Drake [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 11:54 AM Subject: RE: Precompile JSP | Try bin/jspc.bat or jspc.sh | | I would like to compile my jsp's as a test before I deploy it and see if it | works. I spend quite a lot of time changing stuff, deploying, loading in a | web browser and seeing jsp compiliation problems. | | It would be nice to have jspc compile my jsp's during the deployment | process. I tried this and it seems to recompile everything, rather than only | those files that have changed. | | Is there a depends option to jspc? | | The obvious solution is to use ant to only compile those files that have | changed, but there doesn't seem to be an equivelent of make's .c.o option in | ant. Is there a dependset creator anywhere, if there isn't a generic .c.o | type task? | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Sessions being shared... (TC 3.2.3)
I've heard of this type of thing as a classic example of non-thread-safe code. Is there any possibility it could be this? Geoff -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 11:43 AM To: Tomcat Users List Subject: AW: Sessions being shared... (TC 3.2.3) Typically this kind of errors doesn't mean that the users access the same session but the jsp's/servlets you use store information in place that is not local to the session. (e.g.: class or instance variables) To verify that the users have different sessions, have a look at the session id. If they differ it's probably an application problem. -Ursprüngliche Nachricht- Von: Paul Rubenis [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 15. November 2001 17:32 An: Tomcat Users List Betreff: Sessions being shared... (TC 3.2.3) I have some strangeness happening when using Tomcat 3.2.3, Apache and an EJB Server. Though it appears to be a session issue. The application is using SSL via Apache. Basically people log into the application via a jsp, the jsp creates a session for that person and stuffs information about them into it. What is happening is that somehow sessions are being shared between people. So person A logs in just fine, does some stuff. Person B then logs in, gets the session id for person A and therefore can see everything person A can in the application. Obviously this is bad. What perplexes me is how anyone could EVER get another persons sessionid. Here are the specs for the environment: Solaris 7 java 1.3.1 jakarta 3.2.3 apache-ssl 1.3.19 Thanks for any insight people might have on this. -- +-- mailto:[EMAIL PROTECTED] + | Paul M Rubenis - System Administrator | | Phone: (612) 624-8337 | | Fax: (612) 625-6853 | +---+ | Any connection between your reality and mine is purely| | coincidental. | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Precompile JSP
actually I tried to implement such behaviour, but I think I got the wrong hook. I implemented it as a servlet, which then will run at startup - but the funny thing is, that the server accepts calls to jsps only after the server is completely finished with initialization. So I start my servlet by hand now. If any developer could point me to where I should hook in such a feature I could write a patch for precompile at startup since this is a really neat and useful feature. pero -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 9:14 PM To: 'Tomcat Users List' Subject: RE: Precompile JSP Doesnt Tomcat offer anything like a precompile when starting up the server? In BEA WebLogic, you can edit the XML configuration files so that it will automatically precompile ur JSPs on startup. It takes a bit longer to start up the server.. but then u dont need ants or have to go through each page. Any Tomcat contributors out there want to help answer this one? -Tim -Original Message- From: Tom Drake [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:09 PM To: Tomcat Users List Subject: Re: Precompile JSP Tom: I'm not aware of any such option. I have always just lived with this recompiled all JSP's. You could create an Ant Task for this. It could be a very nice addition Ant's optional taskdefs. Tom Drake - Original Message - From: Tom Parker [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tom Drake [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 11:54 AM Subject: RE: Precompile JSP | Try bin/jspc.bat or jspc.sh | | I would like to compile my jsp's as a test before I deploy it and see if it | works. I spend quite a lot of time changing stuff, deploying, loading in a | web browser and seeing jsp compiliation problems. | | It would be nice to have jspc compile my jsp's during the deployment | process. I tried this and it seems to recompile everything, rather than only | those files that have changed. | | Is there a depends option to jspc? | | The obvious solution is to use ant to only compile those files that have | changed, but there doesn't seem to be an equivelent of make's .c.o option in | ant. Is there a dependset creator anywhere, if there isn't a generic .c.o | type task? | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Precompile JSP
Not true. You can deploy your pre-compiled jsp's in the form of java classes. There is no need to deploy jsp source code. You'll need to make corresponding mapping entries in your web.xml, however. - Original Message - From: pero [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 12:07 PM Subject: RE: Precompile JSP | Note: Jspc doesn't compile your jsps as the webserver would do. That means | that when you call jspc and start the server afterwards then the webserver | will compile the jsps itselft again (at least this is my experience). I | think the main purpose of jspc is to get rid of your jsp-files since it | simply converts them to servlet (and generates the correct servlet-config | for your web.xml). Another solution to simply compile a jsp is to call it | (from a browser) with the jsp_precompile=true parameter (example: | http://localhost:8080/my.jsp?jsp_precompile=true) Then the jsp will be | compiled but NOT executed. | I simply wrote a servlet that goes through the whole web-app and calls all | jsps this way. | The Java-Code to call one jsp would be: | | URL url = new URL (http://localhost:8080/my.jsp?jsp_precompile=true;); | URLConnection con = url.openConnection(); | con.getInputStream(); | | Hope this helps (or at least adds another point of view to the discussion) | | pero | | -Original Message- | From: Tom Parker [mailto:[EMAIL PROTECTED]] | Sent: Thursday, November 15, 2001 8:54 PM | To: Tomcat Users List; Tom Drake | Subject: RE: Precompile JSP | | | Try bin/jspc.bat or jspc.sh | | I would like to compile my jsp's as a test before I deploy it and | see if it | works. I spend quite a lot of time changing stuff, deploying, loading in a | web browser and seeing jsp compiliation problems. | | It would be nice to have jspc compile my jsp's during the deployment | process. I tried this and it seems to recompile everything, | rather than only | those files that have changed. | | Is there a depends option to jspc? | | The obvious solution is to use ant to only compile those files that have | changed, but there doesn't seem to be an equivelent of make's | .c.o option in | ant. Is there a dependset creator anywhere, if there isn't a generic .c.o | type task? | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]