Re: retrieving remote web content
There is also the Jakarta HttpClient: http://jakarta.apache.org/commons/httpclient/. Reynir Hübner [EMAIL PROTECTED] wrote in message news:88500E0F870AA542B6340D8BC05A9E1B0AD087;rup.hugsmidjan.is... Hi, I haven't made a servlet to do this, but I made a jsp-tag that can do this. If you don't want to move the images from one server to another (from google to yours) as a proxy would do it, then you must parse the HTML, and change all the urls for css, img, hrefs, javascripts and a lot more so that they are fully qualified urls such as http://google.com/images/logo.gif but not only /images/logo.gif or such. This is usually not very complicated, but it can be a little tricky, especially with javascripts and such. I used regular expression to do this, more specifically the jakarta-oro package.. I still recommend some serverside cacheing of parsed pages, as this can be quite process demanding procedure. If you find some library to do this, please tell us about it. There are some libraries that might help doing the http-requests, so check that one out, its HTTPClient: http://www.innovation.ch/java/HTTPClient/ Hope it helps, -reynir -Original Message- From: Jason Novotny [mailto:jdnovotny;lbl.gov] Sent: 9. nóvember 2002 22:44 To: Tomcat Users List; Jetspeed Developers List Subject: retrieving remote web content Hi, I'm trying to develop a servlet that can act as a proxy for another web site-- lets' say I'm trying to provide the content of www.google.com. It seems I can retrieve and cache the HTML using a URLConnection, but what about the resources used by the HTML like gif's and jpg's. Somehow I need to parse the HTML and get those separately? Is there a library out there for doing what I describe? Maybe I'm missing something relaly simple... Thanks, Jason -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Current performance comparisons of PHP vs. JSP anywhere?
I typed the three words php jsp performace to www.google.com, and I got the following relevant matches: URL:http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-13.html URL:http://www.zend.com/zend/art/php-over-java.php Both articles are referring to an eWeek test that showed JSP to be 3,5 times slower than PHP when serving pages from the same hardware. The article containing the test was published in October 2000, which is quite a while ago in JSP terms. Has there been any newer tests that google doesn't know about? The second article has a link to the original article, but it doesn't work. I was hoping I could go there and perhaps find links to related articles. Thanx! - Steinar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: When is PageContext available?
Craig R. McClanahan [EMAIL PROTECTED] wrote in message news:20021108095512.R18746-10;icarus.apache.org... On Fri, 8 Nov 2002, Claes Holmerson wrote: Date: Fri, 08 Nov 2002 16:49:44 +0100 From: Claes Holmerson [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: When is PageContext available? Hi! I want to do certain initializations before a jsp page is rendered. I plan to do this by using the 'extends' keyword in my jsp page and write a class that extends GenericServlet and implements HttpJspPage. The problem is that I want to get a handle to PageContext before page rendering is started, but I can't get it! I only get null. It seems PageContext is made available somewhere between the call to _jspService() and the jsp-page is entered. That's correct. You can see exactly how it works by examining the Java source code that is generated for a standard JSP page (in the $CATALINA_HOME/work directory). Below is the code. How do I get a working handle to PageContext? If it is not possible, can I somehow get a handle to JspWriter before the call to _jspService()? I am using Tomcat 4.0.2 I'd look at using a Filter to do initializations. Among other things, using the extends option restricts the optimizations that the JSP page compiler can do to make your pages run faster; you should not want to give that up. IMHO, any JSP compiler that relies on knowledge of it's default base class for optimizations is seriously broken. Fortunately, this is not the case with Jasper2. Thanks, Claes Holmerson Craig -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
4.1.12 won't start on Windows Me
Hi, I get the following error output when I try to start Tomcat: ERROR reading C:\Utilities\Java\Tomcat 4.1\conf\server.xml At Line 3 /Server/Listener/ className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener -- I looked around the archives and found suggestions to comment out a couple of lines in my server.xml file. When I do that, I get different error messages, including: ERROR reading C:\Utilities\Java\Tomcat 4.1\conf\server.xml At Line 19 /Server/Service/Connector/ className=org.apache.coyote.tomcat4.CoyoteConnector acceptCount=10 bufferSize=2048 connectionTimeout=2 debug=0 enableLookups=true maxProcessors=75 minProcessors=5 port=8080 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol proxyPort=0 redirectPort=8443 scheme=http secure=false tcpNoDelay=true useURIValidationHack=false Catalina.start: java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector java.lang.ClassNotFoundException: org.apache.coyote.tomcat4.CoyoteConnector -- Then if I comment out those lines in server.xml, I get another error on another line. Once I comment that out and try to start, I get a NullPointerException. I know that's not much to go on, but I'm stumped. I've been using 4.1.12 successfully for a week or two, and suddenly it decided to crap out. Thanks for any suggestions or guesses. __ Outgrown your current e-mail service? Get 25MB Storage, POP3 Access, Advanced Spam protection with LYCOS MAIL PLUS. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Realm JDNI Authentication + Exchange Server 5.5. + NT Domain + LDAP
Hi! Anybody succeeded in using the Tomcat REALM JDNI for authentication accessing the Exchange Server 5.5 - Ldap Interface for authenticate NT-User accounts? Especially how do you manage the roles handling? When I try to get the role by using a attribute from the user entry - the bind function for this attribute for authentication fails. Somebody can tell me how to configure the realm-tag in the server.xml, or is there something I have to consider for the Exchange Server 5.5 configuration? Anybody succeeded to authenticate users against the NT Accounts by using the Excahgen Server at all? thank you -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Tomcat 4.1.12 without the scripts
Can some one tell me how to start Tomcat 4.1.12 without the startup.bat script. I would like to the start it from the command line eg. java options classname -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Current performance comparisons of PHP vs. JSP anywhere?
The only thing I remember off hand was that for multi-user web servers that have major loads, the memory growth wasn't linear with JSP as opposed to PHP. I can't remember the article link, but I do remember that it came to the conclusion that larger sites with dynamic content should use Java. Then again, as with any language-- they will give you enough rope to hang yourself if you aren't careful. -Jacob - Original Message - From: Steinar Bang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 10, 2002 2:45 AM Subject: Current performance comparisons of PHP vs. JSP anywhere? I typed the three words php jsp performace to www.google.com, and I got the following relevant matches: URL:http://www.linuxdocs.org/HOWTOs/PHP-HOWTO-13.html URL:http://www.zend.com/zend/art/php-over-java.php Both articles are referring to an eWeek test that showed JSP to be 3,5 times slower than PHP when serving pages from the same hardware. The article containing the test was published in October 2000, which is quite a while ago in JSP terms. Has there been any newer tests that google doesn't know about? The second article has a link to the original article, but it doesn't work. I was hoping I could go there and perhaps find links to related articles. Thanx! - Steinar -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Migrating applications
We wish to move a Tomcat application through development/test/pre-prod etc. We'd like to use the same Tomcat instance, and have the application configuration different for each environment. Is there a best practice for this type of problem? Dave -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Java returns bunk date!?
I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Java returns bunk date!?
because java's month index starts from 0 ends at 11. 0 - JAN 1 - FEB ... 11 - DEC -Original Message- From: Josh G [mailto:josh;gfunk007.com] Sent: Monday, 11 November 2002 10:41 AM To: Tomcat Users List Subject: Java returns bunk date!? I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Java returns bunk date!?
Months are counted from zero in Gregorian Calendar. So the value being returned *is* correct as far as it is concerned. Josh G wrote: I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
escaping single quote (') in the post form
I have a FORM that I want the user to compose an sql select statement such as select * from user_constraints where constraint_type in ('R', 'P') order by constraint_name and the action points to a jsp page contained in TomCat 4.1.12. The page has no java code but jstl tags to handle the request and displays the result in a html table. The problem is that if the select sql string contains any single quote like the one above. I am getting the following error message: org.apache.jasper.JasperException: select * from user_constraints where constraint_type in ('R', 'P') order by constraint_name : ORA-00911: invalid character at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) ... But it is a completely correct sql string! Only after bothered by it for several days, I realized that http escapes the single quote ('), so the string gets sent to the jsp page is select * from user_constraints where constraint_type in (#039;R#039;, #039;P#039;) order by constraint_name and it is forward to the sql:query tag for processing. Now the question is, should TomCat recover the escaped ' before sends the string for processing, just as the browser does? For now, I am going to do that with some jave code. - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD
Re: Java returns bunk date!?
Ah thanks. Is this covered in the docs and I just missed it? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 - Original Message - From: Chakradhar Tallam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 11, 2002 9:44 AM Subject: RE: Java returns bunk date!? because java's month index starts from 0 ends at 11. 0 - JAN 1 - FEB ... 11 - DEC -Original Message- From: Josh G [mailto:josh;gfunk007.com] Sent: Monday, 11 November 2002 10:41 AM To: Tomcat Users List Subject: Java returns bunk date!? I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Help with simple mod_jk conf
Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 # Load mod_jk module LoadModule jk_module /usr/lib/apache/mod_jk-1.3-eapi.so # Declare the module for IfModule directive AddModule mod_jk.c # Where to find workers.properties JkWorkersFile /usr/java/jakarta/jakarta-tomcat-4.1.12/conf/jk/workers.properties # Where to put jk logs JkLogFile /var/log/httpd/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevel info # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE, JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format JkRequestLogFormat %w %V %T # send all requests ending /servlet to worker1 JkMount /*/servlet/ worker1 # send all requests ending in .jsp to worker1 JkMount /*.jsp worker1 # Send servlet for context /examples to worker named worker1 # JkMount /examples/servlet/* worker2 # Send JSPs for context /examples to worker named worker1 # JkMount /examples/*.jsp worker2 workers.apache_log=/var/log/httpd/ workers.tomcat_home=/usr/java/jakarta/jakarta-tomcat-4.1.12 workers.java_home=/usr/java/jdk1.3.1_04 ps=/ worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=locahost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4.1.12 without the scripts
Well, you could simply open catalina.bat or catalina.sh and use the same command the batch file is usinghint hint. John -Original Message- From: Adrian Threlfall To: [EMAIL PROTECTED] Sent: 11/10/02 4:18 PM Subject: Tomcat 4.1.12 without the scripts Can some one tell me how to start Tomcat 4.1.12 without the startup.bat script. I would like to the start it from the command line eg. java options classname -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help with simple mod_jk conf
The simplest mod_jk configuration is to just stick Listener elements into server.xml that call the ApacheConfig class. Your mod_jk.conf is created automatically then, with appropriate entries. The only file you have to worry about at that point is workers.properties. John -Original Message- From: Jdev To: [EMAIL PROTECTED] Sent: 11/10/02 7:56 PM Subject: Help with simple mod_jk conf Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 mod_jk.log mod_jk.conf workers.properties ATT71766.txt -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Help with simple mod_jk conf
Judging from the logfile, your machine cannot resolve the name localhost. Make sure there is an entry in your hosts file for localhost pointing to 127.0.0.1. To answer your question, yes, an AddModule line typically says something like module-name.c. Modules are written in C...your .so file started out as a .c file. John -Original Message- From: Jdev To: [EMAIL PROTECTED] Sent: 11/10/02 7:56 PM Subject: Help with simple mod_jk conf Hello to all. I need urgent help configuring Tomcat 4.1.x with apache 1.3 using mod_jk. I read all the doc and I have very simple config. Attached there are my mod_jk.conf included in the http.conf and my workers.properties. The problem is Internal Server Error when I try to get a jsp page without the :8080 I don't undertand the problem. I have included also the relevant part of my mod_jk.log: Another thing not clear for me is the Addmodule mod_jk.c directives: I don't have a file named mod_jk.c I have only mod_jk-1.3-eapi.so? Is this normal? All the path in my conf should be right I hope someone have the time to check with me! Please :-) ty very much Eli [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1232)]: In jk_worker_t::validate, resolve failed [Sat Nov 09 15:15:09 2002] [jk_ajp_common.c (1234)]: In jk_worker_t::validate, Error locahost 8009 [Sat Nov 09 15:15:09 2002] [jk_worker.c (174)]: wc_create_worker validate faile d for worker1 [Sat Nov 09 15:15:09 2002] [jk_worker.c (244)]: build_worker_map failed to crea te workerworker1 mod_jk.log mod_jk.conf workers.properties ATT71766.txt -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: escaping single quote (') in the post form
Well. I figured out myself with the help of Hans Bergsten's book: JavaServer Pages, 2nd Ed. It turns out that the escaping is done not by http, as I thought early, but by the c:out tag for reasons explained in the book (p. 100). I turned it off by c:out value=${param.select} escapeXml=false/ The default is true. Colin Zhao [EMAIL PROTECTED] wrote: I have a FORM that I want the user to compose an sql select statement such as select * from user_constraints where constraint_type in ('R', 'P') order by constraint_name and the action points to a jsp page contained in TomCat 4.1.12. The page has no java code but jstl tags to handle the request and displays the result in a html table. The problem is that if the select sql string contains any single quote like the one above. I am getting the following error message: org.apache.jasper.JasperException: select * from user_constraints where constraint_type in ('R', 'P') order by constraint_name : ORA-00911: invalid character at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:246) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289) ... But it is a completely correct sql string! Only after bothered by it for several days, I realized that http escapes the single quote ('), so the string gets sent to the jsp page is select * from user_constraints where constraint_type in ('R', 'P') order by constraint_name and it is forward to the tag for processing. Now the question is, should TomCat recover the escaped ' before sends the string for processing, just as the browser does? For now, I am going to do that with some jave code. - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD - Do you Yahoo!? U2 on LAUNCH - Exclusive medley videos from Greatest Hits CD
RE: Tomcat 4.1 and apache 1.3 how-to
So basically, I am never going to find a binary mod_jk.so for Solaris 7 on Sparc? I am just trying to confirm, before I give up trying to connect Apache and Tomcat. I always have the standalone Tomcat to fall back on, but it is awfully slow. Thanks. --- Turner, John [EMAIL PROTECTED] wrote: Red Hat 7.2 HOWTO using JK: http://www.johnturner.com/howto/apache1-tomcat404-howto.html Aside from Tomcat version, and different binary files for Solaris instead of RH, there is no difference. The setup is exactly the same, I know this because I just did it yesterday morning on a brand-new install of Solaris 8 on a 420R. By setup I mean configuration, not compilation. The compilation was actually quite a bit of hassle, so if you can get binaries of JK you should be good to go. I have some Solaris 8 JK binaries archived at http://www.johnturner.com/howto, they were compiled against 4.0.4 source, but I doubt it would make much difference. Might be worth a shot. John -Original Message- From: Beatty, Z [mailto:zackbeatty;yahoo.com] Sent: Monday, November 04, 2002 11:20 PM To: Tomcat Users List Subject: Tomcat 4.1 and apache 1.3 how-to Can anyone point me in the right direction, for connecting Apache 1.3 and Tomcat 4.12, on Solaris 7? Should I try mod_webapp, mod_jk, or mod_jk2? I need a binary file, for whatever connector I choose. Please don't respond with RTFM. There are no binaries avaiable in: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1.2.0/bin/ Also, there isn't even a Solaris 7 directory (only 6 and 8). Does that matter? I would prefer to use mod_webapp, due to the simplicity of the installation process. I installed that on Win2000 a while ago, but there are no Solaris binaries available anywhere. Thanks. __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4.1 and apache 1.3 how-to
Z, I don't know if this is too late for you, but I would look at compiling the mess. You can get the compiler and tools for building generic C/C++/Objective C code from: http://www.sunfreeware.com/ They come as sun packages, so they should be easy to install. Once installed, you can get the source code for the appropriate connector and build. It's not the easiest way in the world, but it'll be a good introduction to the world of open-source software. Once you get used to it, the ./configure, make, make test, make install routines are pretty straightforward and reliable. /mde/ just my two cents . . . . __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Did default content-type change between tc 4.0 to 4.1?
Hello, Two part question: 1. Is text/html still the default content-type? 2. If so, then why must I explicitly use response.setContentType(text/html) to avoid seeing html source in the browser? Problem: server sends out text/plain header for jsp documents that are included with a RequestDispatcher. Garrett = http://dhtmlkitchen.com/ JSP | Servlets | DHTML Garrett Needs A Job __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: Tomcat 4.1 and apache 1.3 how-to
just compile your own, it's not that difficult. If you really can't do it yourself, I can send mine to you, which is for Solaris7 on Sparc. -Original Message- From: Beatty, Z [mailto:zackbeatty;yahoo.com] Sent: Sunday, November 10, 2002 11:09 PM To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: RE: Tomcat 4.1 and apache 1.3 how-to So basically, I am never going to find a binary mod_jk.so for Solaris 7 on Sparc? I am just trying to confirm, before I give up trying to connect Apache and Tomcat. I always have the standalone Tomcat to fall back on, but it is awfully slow. Thanks. --- Turner, John [EMAIL PROTECTED] wrote: Red Hat 7.2 HOWTO using JK: http://www.johnturner.com/howto/apache1-tomcat404-howto.html Aside from Tomcat version, and different binary files for Solaris instead of RH, there is no difference. The setup is exactly the same, I know this because I just did it yesterday morning on a brand-new install of Solaris 8 on a 420R. By setup I mean configuration, not compilation. The compilation was actually quite a bit of hassle, so if you can get binaries of JK you should be good to go. I have some Solaris 8 JK binaries archived at http://www.johnturner.com/howto, they were compiled against 4.0.4 source, but I doubt it would make much difference. Might be worth a shot. John -Original Message- From: Beatty, Z [mailto:zackbeatty;yahoo.com] Sent: Monday, November 04, 2002 11:20 PM To: Tomcat Users List Subject: Tomcat 4.1 and apache 1.3 how-to Can anyone point me in the right direction, for connecting Apache 1.3 and Tomcat 4.12, on Solaris 7? Should I try mod_webapp, mod_jk, or mod_jk2? I need a binary file, for whatever connector I choose. Please don't respond with RTFM. There are no binaries avaiable in: http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/ release/v1.2.0/bin/ Also, there isn't even a Solaris 7 directory (only 6 and 8). Does that matter? I would prefer to use mod_webapp, due to the simplicity of the installation process. I installed that on Win2000 a while ago, but there are no Solaris binaries available anywhere. Thanks. __ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org __ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
servlet mapping
Hi, I have deployed a web appplication whose context name is graduate . It has 2 servlets(named auditor and blobserve) in it placed in the Web-inf/classes directory . I have mapped the 2 servlets in web.xml as follows - servlet servlet-nameauditor/servlet-name servlet-classauditor/servlet-class /servlet servlet servlet-nameblobserve/servlet-name servlet-classblobserve/servlet-class /servlet servlet-mapping servlet-nameauditor/servlet-name url-pattern/auditor/url-pattern /servlet-mapping servlet-mapping servlet-nameblobserve/servlet-name url-pattern/blobserve/url-pattern /servlet-mapping Now, i wish to invoke the auditor servlet in the jsp page as follows - FORM METHOD=GET ACTION=/auditor The above does not work . When called it removes the context name from the URL . However , the following works - FORM METHOD=GET ACTION=servlet/auditor What should i change in the web.xml or the jsp page so that i can invoke the servlet without the /servlet clause. Pls suggest .. Thanks Shruti. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: servlet mapping
Try without the forward slash . So it looks like this: FORM METHOD=GET ACTION=auditor Shruti Ahuja, Noida wrote: Hi, I have deployed a web appplication whose context name is graduate . It has 2 servlets(named auditor and blobserve) in it placed in the Web-inf/classes directory . I have mapped the 2 servlets in web.xml as follows - servlet servlet-nameauditor/servlet-name servlet-classauditor/servlet-class /servlet servlet servlet-nameblobserve/servlet-name servlet-classblobserve/servlet-class /servlet servlet-mapping servlet-nameauditor/servlet-name url-pattern/auditor/url-pattern /servlet-mapping servlet-mapping servlet-nameblobserve/servlet-name url-pattern/blobserve/url-pattern /servlet-mapping Now, i wish to invoke the auditor servlet in the jsp page as follows - FORM METHOD=GET ACTION=/auditor The above does not work . When called it removes the context name from the URL . However , the following works - FORM METHOD=GET ACTION=servlet/auditor What should i change in the web.xml or the jsp page so that i can invoke the servlet without the /servlet clause. Pls suggest .. Thanks Shruti. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
RE: servlet mapping
Thanks. It worked ... There is another problem i am facing in invoking a servlet named blobserve as follows - IMG src=blobserve?SQL=select+blob+from+apply_images+where+image_name='formimage '/IMG This servlet is supposed to accept a SQL query as parameter, execute it and return the result .I get this error when i invoke the servlet . javax.servlet.ServletException: executeQuery requires a non-NULL SQL statement at blobserve.processRequest(blobserve.java:81) at blobserve.doGet(blobserve.java:128) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) However if i break up the SQL query in 2 parts and pass 2 parameters , SQL1 SQL2 which are concatenated in the servlet , it works. IMG src=blobserve?SQL1='select blob from apply_images where image_name'amp;SQL2='university' ALIGN=TOP/IMG What could be the reason for the above ? Thanks in advance, Shruti -Original Message- From: Kwok Peng Tuck [mailto:pengtuck;makmal.com] Sent: Monday, November 11, 2002 12:06 PM To: Tomcat Users List Subject: Re: servlet mapping Try without the forward slash . So it looks like this: FORM METHOD=GET ACTION=auditor Shruti Ahuja, Noida wrote: Hi, I have deployed a web appplication whose context name is graduate . It has 2 servlets(named auditor and blobserve) in it placed in the Web-inf/classes directory . I have mapped the 2 servlets in web.xml as follows - servlet servlet-nameauditor/servlet-name servlet-classauditor/servlet-class /servlet servlet servlet-nameblobserve/servlet-name servlet-classblobserve/servlet-class /servlet servlet-mapping servlet-nameauditor/servlet-name url-pattern/auditor/url-pattern /servlet-mapping servlet-mapping servlet-nameblobserve/servlet-name url-pattern/blobserve/url-pattern /servlet-mapping Now, i wish to invoke the auditor servlet in the jsp page as follows - FORM METHOD=GET ACTION=/auditor The above does not work . When called it removes the context name from the URL . However , the following works - FORM METHOD=GET ACTION=servlet/auditor What should i change in the web.xml or the jsp page so that i can invoke the servlet without the /servlet clause. Pls suggest .. Thanks Shruti. -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Open source recommendation engine for Tomcat ?
Does anyone know if there is an Open Source recommendation engine for Tomcat/Apache ? It doesn't matter wether it's based on clickstreams or wether it's java/rdbm based! regards Kleth -- Kristian A. Leth. Systemsdeveloper, Maersk Data A/S. -- Professionals are predictable; the world is full of dangerous amateurs. -- -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Open source recommendation engine for Tomcat ?
What's a recommendation engine? Kristian A. Leth wrote: Does anyone know if there is an Open Source recommendation engine for Tomcat/Apache ? It doesn't matter wether it's based on clickstreams or wether it's java/rdbm based! regards Kleth -- Kristian A. Leth. Systemsdeveloper, Maersk Data A/S. -- Professionals are predictable; the world is full of dangerous amateurs. -- -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
Re: Java returns bunk date!?
Hi Josh, yes it is, but in my opinion it's a bit hidden. As starting January with 0 isn't what one would expect, it should be stressed more in the docs. in java.util.Calendar: public static final int MONTH Field number for get and set indicating the month. This is a calendar-specific value. The first month of the year is JANUARY which is 0; the last depends on the number of months in a year. in java.util.GregorianCalendar public GregorianCalendar(int year, int month, int date) Constructs a GregorianCalendar with the given date set in the default time zone with the default locale. Parameters: year - the value used to set the YEAR time field in the calendar. month - the value used to set the MONTH time field in the calendar. Month value is 0-based. e.g., 0 for January. date - the value used to set the DATE time field in the calendar. Andreas On 11 Nov 2002 at 10:15, Josh G wrote: Ah thanks. Is this covered in the docs and I just missed it? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 - Original Message - From: Chakradhar Tallam [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, November 11, 2002 9:44 AM Subject: RE: Java returns bunk date!? because java's month index starts from 0 ends at 11. 0 - JAN 1 - FEB ... 11 - DEC -Original Message- From: Josh G [mailto:josh;gfunk007.com] Sent: Monday, 11 November 2002 10:41 AM To: Tomcat Users List Subject: Java returns bunk date!? I'm having a weird problem with tomcat, java is giving me last month's date! It's 11 nov on this machine, but java is returning 11 oct :( I don't see how this could happen? -Josh -- And can you tell me doctor why I still can't get to sleep? And why the channel 7 chopper chills me to my feet? And what's this rash that comes and goes, can you tell me what it means? God help me, I was only 19 -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:tomcat-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org