HOW TO INSTALL THE JDBC FOR TOMCAT
Dear ALL, now i have setuped and intergated the apache and Tomat successfully!Also,i have installed the J2SDK and mysql too. now i want to install the JDBC but i cannot find the document that can teach me how to do it!!Anyone can give me guideline of Install JDBC or some webite for reference?? -- Frankie Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat+apache
Dear John, you mean i need try to edit the mod_jk.conf? but i remember that it so need to define another virtual host in Apache's httpd.conf?? so what i need to do now?i am very new in Linux...HELP ME!! Frankie You mean aside from the extensive documentation available at the Apache site (http://httpd.apache.org/docs-2.0/vhosts/)? You could try here: http://www.johnturner.com/howto/mod_jk_conf.html John On Fri, 18 Jul 2003 20:52:37 +0800, frankie [EMAIL PROTECTED] wrote: then how to define the virtual host in apache?any example? That's only half the solution, you'll also need to define another virtual host in Apache's httpd.conf. John On Fri, 18 Jul 2003 10:41:16 +0200, Samuel Le Berrigaud [EMAIL PROTECTED] wrote: I think you have only one virtual host in your Tomcat server.xml file Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host you should add one with the name coresponding with your IP address like : Host name=10.0.0.1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host I think then it will work... regards, SaM frankie wrote: Dear all, i can build the mod_jk and setup the apache + tomcat + j2sdk+mysql+jdbc sucessfully,now i still have some problems want to ask you!! when i testing the server in local,i can access the jsp file without specific the port number, for example:http://localhost/examples/jsp/index.htm when i use other computer to test it , it cannot access the jsp file for example:http://10.0.0.1/examples/jsp/index,htm(can not access!!) but if specific the port 8080,it can works!! for example:http://10.0.0.1:8080/examples/jsp/index.htm(can access) Also the apache is work,i can see the apache welcome page if i type http://10.0.0.1 regards,Frankie -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat+apache
Dear all, i can build the mod_jk and setup the apache + tomcat + j2sdk+mysql+jdbc sucessfully,now i still have some problems want to ask you!! when i testing the server in local,i can access the jsp file without specific the port number, for example:http://localhost/examples/jsp/index.htm when i use other computer to test it , it cannot access the jsp file for example:http://10.0.0.1/examples/jsp/index,htm(can not access!!) but if specific the port 8080,it can works!! for example:http://10.0.0.1:8080/examples/jsp/index.htm(can access) Also the apache is work,i can see the apache welcome page if i type http://10.0.0.1 regards,Frankie -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat+apache
then how to define the virtual host in apache?any example? That's only half the solution, you'll also need to define another virtual host in Apache's httpd.conf. John On Fri, 18 Jul 2003 10:41:16 +0200, Samuel Le Berrigaud [EMAIL PROTECTED] wrote: I think you have only one virtual host in your Tomcat server.xml file Host name=localhost debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host you should add one with the name coresponding with your IP address like : Host name=10.0.0.1 debug=0 appBase=webapps unpackWARs=true autoDeploy=true /Host I think then it will work... regards, SaM frankie wrote: Dear all, i can build the mod_jk and setup the apache + tomcat + j2sdk+mysql+jdbc sucessfully,now i still have some problems want to ask you!! when i testing the server in local,i can access the jsp file without specific the port number, for example:http://localhost/examples/jsp/index.htm when i use other computer to test it , it cannot access the jsp file for example:http://10.0.0.1/examples/jsp/index,htm(can not access!!) but if specific the port 8080,it can works!! for example:http://10.0.0.1:8080/examples/jsp/index.htm(can access) Also the apache is work,i can see the apache welcome page if i type http://10.0.0.1 regards,Frankie -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which jk2 to use
hi there is a jk2 offered in the dir of tomcat-4.1.24 http://jakarta.apache.org/builds/jakarta-tomcat- 4.0/release/v4.1.24/src/jakarta-tomcat-connectors-4.1.24-src.tar.gz but there is also a release of 2.0.2 http://jakarta.apache.org/builds/jakarta-tomcat- connectors/jk2/release/v2.0.2/src/jakarta-tomcat-connectors-jk2- 2.0.2-src.tar.gz in general which one is to use for produktion ? regards nicolas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi nicolas, I think u should use jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz ,before i have setup apache + tomcat + J2SDK + mySQL + JDBC and i use the jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz to Buld the mod_jk regards, Frankie Webmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getParameter( x ) returns null
Reynir Hübner wrote: Hi, I don't think I've ever seen this problem with IE5.5 (but I use it a lot), so my guess is that the problem has something to do with a broken javascript or the actual form submition. Do you use Get or Post ? Try cleaning out all the cache of the browser (etc.).. -reynir I have also never seen a problem like this. It's not javascript or caching. The form uses POST, and it works fine on mozilla, but when I use IE5.5, all the parameters in the servlet are NULL. I have used a spy to see what goes over the wire.And the only difference is the HTTP protocol and the locales that are send over. Thank you for any help, frankie this is what IE posts: POST http://www.somesite.be/registration.servlet HTTP/1.0 Accept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Referer: http://www.somesite.be/DCSAPEvents/Event1.htm Accept-Language: fr-be Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) Host: www.somesite.be Content-Length: 111 Pragma: no-cache Cookie: SITESERVER=ID=711ae4038dc6b7cf939fc6b172442230 Proxy-Authorization: Basic WjI5OnN1cGVydXNlcg== Attendance=Attend+SAP+Event+1Name=test+new+formFirstname=Phone=Email=Company=Functio=sButton=Tell+Us+Now And this is what mozilla posts (and works ) POST http://www.somesite.be/registration.servlet HTTP/1.1 Host: www.somesite.be User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate,compress;q=0.9 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Proxy-Connection: keep-alive Referer: http://localhost:8080/Event1.htm Cookie: SITESERVER=ID=4e12f7d04a7c97411aed867e5325251c Proxy-Authorization: Basic WjI5OnN1cGVydXNlcg== Content-Type: application/x-www-form-urlencoded Content-Length: 84 Attendance=Attend+SAP+Event+1Name=dFirstname=dPhone=dEmail=dCompany=dFunctio=d - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: request.getParameter( x ) returns null - OFFTOPIC
Reynir Hübner wrote: Well as you can see, most of the parameters being sent are null : Attendance=Attend+SAP+Event+1Name=test+new+formFirstname=Phone=Email=Company=Functio=sButton=Tell+Us+Now If you would do request.getParameter(Name) you should receive the value test+new+form, but the rest is empty. Don't know why, but it's submitting some parameters allright, but others it's not submitting. -reynir Oops, sorry, I should have send this one; I would expect blank, or empty values, but not null. I will try it with a GET next, don't know what else to do, aside from staring tomcat in debug mode. any way, thank you! POST http://www.somesite.be/registration.servlet HTTP/1.0 Accept: application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Referer: http://www.somesite.be:8084/Event1.htm Accept-Language: nl-be Content-Type: application/x-www-form-urlencoded Proxy-Connection: Keep-Alive User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0) Host: www.somesite.be Content-Length: 84 Pragma: no-cache Cookie: SITESERVER=ID=711ae4038dc6b7cf939fc6b172442230 Proxy-Authorization: Basic WjI5OnN1cGVydXNlcg== Attendance=Attend+SAP+Event+1Name=dFirstname=dPhone=dEmail=dCompany=dFunctio=d - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Please help: Mod_jk question
Hi all, I am a new user of tomcat, and trying to install tomcat 3.2.1 with apache 1.3.19 on solaris 2.6. I followed the instructions from HOWTO mod_jk to build the mod_jk.so and then copy to Apache LIBEXEC. After including the mod_jk.conf-auto to httpd.conf and restarting the apache without any error messages, I use the browser to test the servelet page on apache server. It has no response and tomcat give this error messages: 2001-03-09 11:38:21 - ContextManager: SocketException reading request, ignored - java.net.SocketException: Connection reset by peer at java.net.PlainSocketImpl.socketAvailable(Native Method) at java.net.PlainSocketImpl.available(PlainSocketImpl.java:429) at java.net.SocketInputStream.available(SocketInputStream.java:141) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:214) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) HANDLER THREAD PROBLEM: java.io.IOException: Stream broken java.io.IOException: Stream broken at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.init(Compiled Code) at java.lang.Exception.init(Compiled Code) at java.io.IOException.init(Compiled Code) at org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Compiled Code) at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147) at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Compiled Code) Can anyone give some hints? thanks. with regards, Frankie Cheung - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]