Re: Apache + tomcat +ssl
You don't say if the displaying of images problem is related to port 80, 8080 or 443 (or any combination of these ports). I guess it's ok for port 8080. Try to display one image by using the full URL, example: https://localhost/appserver/myapp/img/viewmag.gif and http://localhost/appserver/myapp/img/viewmag.gif You should get an error, which one? page 404, 500 (from apache), 500 (from tomcat)? Again, first thing to know is if it's a problem related to apache+mod_jk or tomcat problem. Have a look on logs and forward apache / mod_jk / tomcat logs related to these attempts. Without this information, I would try: - check if your JkMount points out a '*' and not a '*.jsp' - check if you have configured no security restrictions inside apache configuration johann DUPUIS Omkar Joshi wrote: Ok, https://myserver.com/index.jsp "WORKS" am able to browse thru all data only problem is it is not showing all the images which i have stored under tomcats web application. _ Send DD, pay no commission. http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here. - 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]
Re: Apache + tomcat +ssl
I guess if you put the JkMount inside , the JkMount is only valid for port 80. Put JkMount outside any should make it valid for all ports (included port 443). Whatever it looks around httpd.conf misconfiguration. Try this: JkLogLeveldebug JkWorkersFile C:/usr/TMS/AppServer/Resource/workers.properties JkLogFileC:/usr/TMS/AppServer/logs/mod_jk.log JkMount/appserver/* ajp13 NameVirtualHost 172.16.16.10:80 servername ... . rather than: NameVirtualHost 172.16.16.10:80 servername ... . JkMount ... Omkar Joshi wrote: Yes, I successfully reach static pages (not redirected to tomcat, served directly by apache) from https://myserver.com/, no problem with that also http://myserver.com/index.jspworks fine, problem with https://myserver.com/index.jsp error : Object not found! The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. If you think this is a server error, please contact the webmaster Error 404 configuration: -- httpd.conf NameVirtualHost 172.16.16.10:80 servername ... . JkMount ... All settings according to http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html _ Get head-hunted by 10,000 recruiters. http://go.msnserver.com/IN/35984.asp Post your CV on naukri.com today. - 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]
Re: Apache + tomcat +ssl
Apache is used to support SSL requests, in this configuration no need for tomcat to know about https. (of course traffic between apache and tomcat is not encrypted) I guess port 8443 is used only when tomcat is stand-alone (or for paranoiac ;-) ). "Server Error" Is it a message issued by tomcat or by apache? (if issued by tomcat you will probably see tomcat on the page displayed and some logs messages in tomcat logs?). Do you successfully reach static pages (not redirected to tomcat, served directly by apache) from https://myserver.com/ ? I mean the first thing to discard is a pure SSL configuration problem (not related to tomcat, nor mod_jk). (if needed, remove the mod_jk configuration from apache to check that SSL-alone is ok) Could you provide us some hints about your apache configuration, mod_jk configuration and the log files (not the full log please, only the messages related to the request on https://myserver.com/index.jsp ). Johann DUPUIS [EMAIL PROTECTED] wrote: This might be a dumb comment, but you do know that Tomcat's HTTPS port is 8443 by default, defined in server.xml, right? And that is only *after* you uncomment that part of the server.xml and do all the other Tomcat SSL setup tasks. I hope this helps. -Original Message- From: ext Omkar Joshi [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 8:03 AM To: [EMAIL PROTECTED] Subject: Apache + tomcat +ssl What is happening is, when port 80 and 443 on for apache http://myserver.com/index.jspand http://myserver.com:8080/index.jsp all work fine that means apache forwards the jsp handling to tomcat, but https://myserver.com/index.jsp doesnt work I get "Server Error" _ Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag Only on www.shaadi.com. Register now! - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + tomcat +ssl
Do you mean it's working (both port 80 and 443) when apache is listening to port 80, but not any more since you stopped listening from this port? Whatever you have mentionned you have a firewall? Why don't you block port 80 using firewall and let apache in its "standard" configuration? Johann DUPUIS Omkar Joshi wrote: Ye, i have the same settings for mod_jk I have now stoped port 80 for apache, so it listens only on port 443 so i added a virtual host entry for port 443, but then apache application doest work _ Games, MMS cards, ringtones. Operator logos, picture messages & more. http://server1.msn.co.in/sp03/mobilesms/ Jazz up your mobile! - 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]
Re: Apache + tomcat +ssl
>>>>> Please, find below the contents of workers2.properties (mod_jk2): [shm] file=${serverRoot}/logs/shm.file size=1048576 # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 # Map the Tomcat examples webapp to the Web server uri space [uri:/appserver/*] info=Map the whole webapp worker=ajp13:localhost:8009 >>>>> For mod_jk it looks like this in apache httpd.conf (see JkMount): JkLogLeveldebug JkWorkersFile C:/usr/TMS/AppServer/Resource/workers.properties JkLogFileC:/usr/TMS/AppServer/logs/mod_jk.log JkMount/appserver/* ajp13 and workers.properties: workers.tomcat_home=C:/usr/CBK2.4/ApplicationServer/catalina workers.java_home=C:/usr/java/j2sdk1.4.0_01 ps=/ worker.list=ajp12, ajp13 # Definition for Ajp13 worker (Ajp12 left to readers imagination) # worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 Hope this could help you. Johann DUPUIS Omkar Joshi wrote: can u give me code, how exactly you specify this .../appserver/* Date: Tue, 13 Jan 2004 10:35:08 +0100 From: Spam <[EMAIL PROTECTED]> Subject: Apache + tomcat +ssl Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi, It should not depend on the port you use to connect to apache. Both http://myserver.com/index.jsp and https://myserver.com/index.jsp should have the same result with no specific configuration. I've configured mod_jk to redirect all .../appserver/* to tomcat. Then whatever I use http://localhost/appserver/* or https://localhost/appserver, it's ok. Regards. Johann DUPUIS Omkar Joshi wrote: Hi, I have apache on linux 9 with ssl set up. also i have set up tomcat amd mod_jk for apache to redirect all jsp to tomcat now as port 80 is open , http://myserver.com:8080/index.jsp http://myserver.com/index.jsp works fine, apache send jsp to tomcat engine but as apache has ssl 443 , opened on the firewall i want https://myserver.com/index.jsp to work. let me know what setting required _ Meet a mate. Find a soulmate. http://www.msn.co.in/Romance/ Or just chat a while. - 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] _ Gujarat Kite Fest at http://go.msnserver.com/IN/40247.asp www.gujaratkitefest.com - 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]
Re: Apache + tomcat +ssl
Hi, It should not depend on the port you use to connect to apache. Both http://myserver.com/index.jsp and https://myserver.com/index.jsp should have the same result with no specific configuration. I've configured mod_jk to redirect all .../appserver/* to tomcat. Then whatever I use http://localhost/appserver/* or https://localhost/appserver, it's ok. Regards. Johann DUPUIS Omkar Joshi wrote: Hi, I have apache on linux 9 with ssl set up. also i have set up tomcat amd mod_jk for apache to redirect all jsp to tomcat now as port 80 is open , http://myserver.com:8080/index.jsp http://myserver.com/index.jsp works fine, apache send jsp to tomcat engine but as apache has ssl 443 , opened on the firewall i want https://myserver.com/index.jsp to work. let me know what setting required _ Meet a mate. Find a soulmate. http://www.msn.co.in/Romance/ Or just chat a while. - 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]
Re: Tomcat don't receive the right URL from mod_jk2 (or mod_jk) with IIS 6.0 on Win 2003 Server?
roc [/examples/] is a servlet url - should redirect to lb:lb (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/examples/] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started seems to be ok (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (412)] HttpFilterProc [/jakarta/isapi_redirector2.dll] is not a servlet url (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/jakarta/isapi_redirector2.dll] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (412)] HttpFilterProc [/jakarta/isapi_redirector2.dll] is not a servlet url (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/jakarta/isapi_redirector2.dll] is pointing to the web-inf directory This should not be. Daniel Schmitt wrote: Hi Spam, Haven't read your log in detail. two points: filename of the jk2 redirector is isapi_redirector2.dll, so isapi_redirector.dll will never be found, example directorys of Tomcat5 are servlets-examples and jsp-examples, so an examples directory will never be mapped. we build an installer which automates all steps at: http://www.shiftomat.com/opensource/ hope this helps -- Daniel Schmitt http://www.shiftomat.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat don't receive the right URL from mod_jk2 (or mod_jk) with IIS 6.0 on Win 2003 Server?
uot;workersFile"="C:\\Dvp\\Tomcat4.1\\conf\\workers2.properties" "extensionUri"="/jakarta/isapi_redirector2.dll" "logLevel"="DEBUG" "serverRoot"="C:\\Dvp\\Tomcat4.1" "authComplete"="0" "threadPool"="20" @="C:\\Dvp\\Tomcat4.1" Daniel Schmitt wrote: Hi Spam, Haven't read your log in detail. two points: filename of the jk2 redirector is isapi_redirector2.dll, so isapi_redirector.dll will never be found, example directorys of Tomcat5 are servlets-examples and jsp-examples, so an examples directory will never be mapped. we build an installer which automates all steps at: http://www.shiftomat.com/opensource/ hope this helps -- Daniel Schmitt http://www.shiftomat.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomact 4.1.29 connection poolingusing JNDI! Please help a newbie
It looks more like an Oracle jdbc problem rather than Tomcat problem. Please have a look at the error description: http://questsupportlink.quest.com/ConnectionAssistant/ora12505.asp Are you sure your URI is valid? jdbc:oracle:thin:@dpwdev02:1521:dprd Especially the dprd which should be the SID. Else check the port, if you are using Oracle 9i you may use 1522 instead of 1521. Whatever try a direct connection with a "stupid" java program that use direct jdbc connection. Hope this could help. Johann DUPUIS [EMAIL PROTECTED] wrote: Hi Guys, I'm trying to implement connection pooling but it's giving me following error. I'm using Oracle thin drivers.Please help me..If somebody could post the code for successfull implementation then it would be greate.. My Server.xml Context is as following - value="15"/> override="false"/> type="javax.sql.DataSource"/> factoryorg.apache.commons.dbcp.BasicDataSourc eFactory maxActive 20 maxIdle 10 maxWait -1 driverClassName oracle.jdbc.driver.OracleDriver url jdbc:oracle:thin:@dpwdev02:1521:dprd usernamecrdbweb passwordcrdbweb type="javax.mail.Session"/> mail.smtp.host localhost type="java.lang.Integer"/> -- ---Error --- java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNU M=135296000)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323) at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:260) at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja va:365) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(Driv erConnectionFactory.java:82) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(Poolable ConnectionFactory.java:300) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas icDataSource.java:838) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou rce.java:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource .java:518) at pkgboots.CrdbConn.init(CrdbConn.java:25) at org.apache.jsp.orderList_jsp._jspService(orderList_jsp.java:63) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper .java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2 95) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:171) at org.apache.catalina.core.StandardPipelin
Tomcat don't receive the right URL from mod_jk2 (or mod_jk) with IIS 6.0 on Win 2003 Server?
Hi all, I've followed the instructions found at: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html But, I get ' The page cannot be displayed ' when trying to reach: http://localhost/examples/ Looking at the asapi.log file, it seems that "/examples/" is found to be redirected to ajp13:192.168.0.74:8009 but finally some analysis are done on "/jakarta/isapi_redirect.dll". If I add to workers2.properties: [uri:/jakarta/*] info= Map the ... worker= ajp13:192.168.0.74: 8009 I get the error 404: HTTP Status 404 - /jakarta/isapi_redirect.dll *type* Status report *message* _/jakarta/isapi_redirect.dll _*description* _The requested resource (/jakarta/isapi_redirect.dll) is not available._ Apache Tomcat/4.1.18 Looking at the asapi.log file, it seems that "/jakarta/isapi_redirect.dll" is passed to tomcat instead of the URL "/examples/". Even if, "/examples/" is found to be redirected to ajp13:192.168.0.74:8009 Here is the log without [uri:/jakarta/*]: ( info ) [jk_logger_file.c (224)] Level DEBUG 0 ( info ) [jk_logger_file.c (184)] Initializing log file C:/usr/TMS/AppServer/ApplicationServer/IIS/logs/isapi.log (debug ) [jk_uriMap.c (377)] uriMap.init() Fixing Host * (debug ) [jk_uriMap.c (464)] uriMap: fix uri /appserver/* context (null) host * (debug ) [jk_uriMap.c (464)] uriMap: fix uri /examples/* context (null) host * (debug ) [jk_uriMap.c (464)] uriMap: fix uri (null) context (null) host * (debug ) [jk_uriMap.c (464)] uriMap: fix uri / context / host * ( info ) [jk_workerEnv.c (403)] workerEnv.init() ok C:\usr\TMS\AppServer\ApplicationServer\IIS\conf\workers2.properties ( info ) [jk_isapi_plugin.c (612)] Set serverRoot Z:\usr\jakarta-tomcat-4.1.18\jakarta-tomcat-4.1.18 (debug ) [jk_isapi_plugin.c (616)] Using registry. (debug ) [jk_isapi_plugin.c (618)] Using extension uri /jakarta/isapi_redirect.dll. (debug ) [jk_isapi_plugin.c (619)] Using server root Z:\usr\jakarta-tomcat-4.1.18\jakarta-tomcat-4.1.18. (debug ) [jk_isapi_plugin.c (620)] Using worker file C:\usr\TMS\AppServer\ApplicationServer\IIS\conf\workers2.properties. (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (355)] HttpFilterProc [/examples/jsp/index.html] is a servlet url - should redirect to ajp13:192.168.0.74:8009 (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/examples/jsp/index.html] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (412)] HttpFilterProc [/jakarta/isapi_redirect.dll] is not a servlet url (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/jakarta/isapi_redirect.dll] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (473)] HttpExtensionProc started (debug ) [jk_isapi_plugin.c (482)] HttpExtensionProc could not get a worker for name (error ) [jk_isapi_plugin.c (488)] HttpExtensionProc worker is NULL Here is the log with [uri:/jakarta/*]: (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (355)] HttpFilterProc [/examples/] is a servlet url - should redirect to ajp13:192.168.0.74:8009 (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/examples/] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (288)] HttpFilterProc started (debug ) [jk_isapi_plugin.c (346)] In HttpFilterProc Virtual Host redirection of localhost : 80 (debug ) [jk_isapi_plugin.c (355)] HttpFilterProc [/jakarta/isapi_redirect.dll] is a servlet url - should redirect to ajp13:192.168.0.74:8009 (debug ) [jk_isapi_plugin.c (421)] HttpFilterProc check if [/jakarta/isapi_redirect.dll] is pointing to the web-inf directory (debug ) [jk_isapi_plugin.c (473)] HttpExtensionProc started (debug ) [jk_isapi_plugin.c (482)] HttpExtensionProc got a worker for name ajp13:192.168.0.74:8009 (debug ) [jk_handler_response.c (155)] handler.response() Header[0] [Content-Type] = [text/html;charset=ISO-8859-1] (debug ) [jk_handler_response.c (155)] handler.response() Header[1] [Content-Language] = [en-US] (debug ) [jk_handler_response.c (172)] handler.response(): status=404 headers=2 (debug ) [jk_service_iis.c (93)] Into jk_ws_service_t::head (debug ) [jk_service_iis.c (227)] Into jk_ws_service_t::write (debug ) [jk_isapi_plugin.c (515)] HttpExtensionProc service() returned OK (debug ) [jk_isapi_plugin.c (288)] Htt
Re: Differences Between Apache and Tomcat
Hi, Apache is a web server (mainly support static html). Tomcat is a servlet container (mainly support servlets, and by the way jsp, but don't support EJBs). JBoss is an EJB container (support EJBs, and is using tomcat as embedded component to support servlets and jsp). All of them can work together using jakarta-connectors. Just my 2 cents. Johann DUPUIS Kapil Sharma wrote: Hi All Can you all plz give me any url where I can find the fundamental differences between Apache and Tomcat.(If there r any). Thanks Kapil Sharma H/P 00-6-0125678120 http://hindiadventure.tripod.com http://sget.tripod.com _ Free transactions in any ATM across India. http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click here. - 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]
security hole on windows tomcat?
I came across what appears to be a security hole when running tomcat. I'm not sure how widespread it is, but my linux server is safe, yet my windows XP, tomcat 4.1.24 is vulnerable. I found that if you append %20 to a jsp page it shows the source code instead of displaying the page: http://192.168.1.54:8080/index.jsp http://192.168.1.54:8080/index.jsp%20 So how widespread is this? Paul Sundling - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]