Re: Unable to loggin
On Wednesday 14 September 2005 06:19, V.K.M.RAJA wrote: did you restart tc? Hello , I am new to Tomcat and i am finding some difficulty handling Tomcat. I am not able to login into the manager or the administrator link. I have username= cdac and password =cdac and with manager roles in the tomcat-users.xml file . Kindly help __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Trying to connect tomcat5 with postgresql database
And make sure the driver you downloaded matches your server version. Also, for some reason, my setup wouldn't work until I renamed the driver to postgresql.jar from pg74.216.jdbc3.jar. Hi Rick -- Resource auth=Container description=PostgresSQL Connection Pool name=jdbc/postDB type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost:5432/test / Good, just make sure you get the rest of the parameters in there like username= and password=x. The ResourceParams elements are not used in tomcat 5.5. Also you mentioned this is in server.xml. It should be inside the Context element of the context.xml file used in your deployment. resource-ref res-ref-namejdbc/postDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref The web.xml looks good. The only other thing I can think of is to be sure the driver jar file is in common/lib. Edoardo Panfili wrote: I miss a part of my web.xml === web-app resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/lisy/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref display-namelisy/display-name .. == Edoardo Mattier, Ricardo wrote: I duplicated your configuration for the server.xml file, and I came up with the same error. -Original Message- From: Edoardo Panfili [mailto:[EMAIL PROTECTED] Sent: Saturday, September 10, 2005 7:49 AM To: Tomcat Users List Subject: Re: Trying to connect tomcat5 with postgresql database This is my configuration server.xml Resource name=jdbc/guidebook auth=Container type=javax.sql.DataSource/ ResourceParams name=jdbc/lisy parameter namefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactor y/value /parameter parameter namedriverClassName/namevalueorg.postgresql.Driver/value /parameter parameter nameurl/namevaluejdbc:postgresql://127.0.0.1:5432/lisy/value /parameter parameter nameusername/namevalueUNAME/value /parameter parameter namepassword/namevaluePWD/value /parameter parameter nameinitialSize/namevalue3/value /parameter parameter namemaxActive/namevalue5/value /parameter parameter namemaxIdle/namevalue5/value /parameter parameter nameminIdle/namevalue3/value /parameter parameter namemaxWait/namevalue-1/value /parameter parameter nameremoveAbandoned/namevaluetrue/value /parameter parameter nameremoveAbandonedTimeout/namevalue60/value /parameter parameter namelogAbandoned/namevaluetrue/value /parameter /ResourceParams = conde inside the servlet Context ambiente =( Context) new InitialContext().lookup(java:comp/env); DataSource pool = (DataSource) ambiente.lookup(jdbc/lisy); Connection c=pool.getConnection(); == I am using Postgres 7.4 and Tomcat 5.0 Edoardo Mattier, Ricardo wrote: Hello, I'm currently working with Tomcat5 on Solaris10 x86 machine. I'm running into problems when trying to access a postgresql 8.0.1 database on the local machine. Cannot create JDBC driver of class '' for connect URL null' is the error I receive when trying to establish a connection. Here's the snipet of code I used in my .jsp: Context ctx = new InitialConection(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/postDB); Connection con = ds.getConnection(); I noticed it would compile fine if I remove the getConnection line. Once I add it back in, the above error appears. I've followed the instructions on the jakarta page, and thought I made the correct insertions in both server.xml, and WEB-INF/web.xml. Here are the entries used: server.xml Resource auth=Container description=PostgresSQL Connection Pool name=jdbc/postDB type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost:5432/test / ResourceParams name=jdbc/postDB parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value /parameter parameter nameusername/name
Re: problems setting up tomcat on debian sarge
Which JDK are you using? Hi all, I am trying to setup tomcat 4.1 (comes with debian sarge in contrib) inside a vserver also running debian sarge. I am getting the following error after I login into the adminstration tool, the sample apps and the manage tool both seems to be working. I am new to java and tomcat so please be gentle. Thanks Jim HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet.init() for servlet action threw exception at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:916) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:621) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:144) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.authenticator.AuthenticatorBase.invoke (AuthenticatorBase.java:504) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2358) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:118) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:116) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t (StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433) at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948) at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:152) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnectio n (Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt (PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool.java:683) at java.lang.Thread.run (Thread.java:673) at java.lang.VMThread.run (VMThread.java:123) root cause java.lang.NumberFormatException at java.lang.Integer.parseInt (Integer.java:602) at java.lang.Integer.parseInt (Integer.java:231) at java.util.Properties.load (Properties.java:306) at java.util.PropertyResourceBundle.init (PropertyResourceBundle.java:109) at java.util.ResourceBundle.tryBundle (ResourceBundle.java:533) at java.util.ResourceBundle.tryBundle (ResourceBundle.java:601) at java.util.ResourceBundle.getBundle (ResourceBundle.java:443) at java.util.ResourceBundle.getBundle (ResourceBundle.java:284) at org.apache.webapp.admin.ApplicationLocales.init (ApplicationLocales.java:60) at org.apache.webapp.admin.ApplicationServlet.initApplicationLocales (ApplicationServlet.java:124) at org.apache.webapp.admin.ApplicationServlet.init (ApplicationServlet.java:110) at javax.servlet.GenericServlet.init (GenericServlet.java:258) at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:888) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:621) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNex t
Re: Trying to connect tomcat5 with postgresql database
Should be Context ctx = new InitialContext(); Hello, I'm currently working with Tomcat5 on Solaris10 x86 machine. I'm running into problems when trying to access a postgresql 8.0.1 database on the local machine. Cannot create JDBC driver of class '' for connect URL null' is the error I receive when trying to establish a connection. Here's the snipet of code I used in my .jsp: Context ctx = new InitialConection(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/postDB); Connection con = ds.getConnection(); I noticed it would compile fine if I remove the getConnection line. Once I add it back in, the above error appears. I've followed the instructions on the jakarta page, and thought I made the correct insertions in both server.xml, and WEB-INF/web.xml. Here are the entries used: server.xml Resource auth=Container description=PostgresSQL Connection Pool name=jdbc/postDB type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost:5432/test / ResourceParams name=jdbc/postDB parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value /parameter parameter nameusername/name valuepostgres/value /parameter parameter namepassword/name valuepostgres/value /parameter parameter namemaxIdle/name value2/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams Here is the web.xml: resource-ref res-ref-namejdbc/postDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Thanks in advance! -Rick Mattier - 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: Trying to connect tomcat5 with postgresql database
Sorry for the last post. Try this. InitialContext ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/{app name}); Connection con = ds.getConnection(); Are you using TC 5.0 or 5.5? Should be Context ctx = new InitialContext(); Hello, I'm currently working with Tomcat5 on Solaris10 x86 machine. I'm running into problems when trying to access a postgresql 8.0.1 database on the local machine. Cannot create JDBC driver of class '' for connect URL null' is the error I receive when trying to establish a connection. Here's the snipet of code I used in my .jsp: Context ctx = new InitialConection(); DataSource ds = (DataSource)ctx.lookup(java:comp/env/jdbc/postDB); Connection con = ds.getConnection(); I noticed it would compile fine if I remove the getConnection line. Once I add it back in, the above error appears. I've followed the instructions on the jakarta page, and thought I made the correct insertions in both server.xml, and WEB-INF/web.xml. Here are the entries used: server.xml Resource auth=Container description=PostgresSQL Connection Pool name=jdbc/postDB type=javax.sql.DataSource driverClassName=org.postgresql.Driver url=jdbc:postgresql://localhost:5432/test / ResourceParams name=jdbc/postDB parameter namedriverClassName/name valueorg.postgresql.Driver/value /parameter parameter nameurl/name valuejdbc:postgresql://localhost:5432/test?autoConnect=true/value /parameter parameter nameusername/name valuepostgres/value /parameter parameter namepassword/name valuepostgres/value /parameter parameter namemaxIdle/name value2/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams Here is the web.xml: resource-ref res-ref-namejdbc/postDB/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Thanks in advance! -Rick Mattier - 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]
Waste of our bandwidth
Don't we have a list administrator that can remove this guy? Received: from mail.apache.org ([209.237.227.199]) by rwcrmxc23.comcast.net (rwcrmxc23) with SMTP id 20050902131952r2300r7evje; Fri, 2 Sep 2005 13:19:52 + X-Originating-IP: [209.237.227.199] Received: (qmail 28987 invoked by uid 500); 2 Sep 2005 13:19:31 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk List-Unsubscribe: mailto:[EMAIL PROTECTED] List-Help: mailto:[EMAIL PROTECTED] List-Post: mailto:tomcat-user@jakarta.apache.org List-Id: Tomcat Users List tomcat-user.jakarta.apache.org Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 28949 invoked by uid 99); 2 Sep 2005 13:19:31 - Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:31 -0700 X-ASF-Spam-Status: No, hits=1.1 required=10.0 tests=BIZ_TLD,NO_REAL_NAME,SUBJ_ALL_CAPS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.71.84.209] (HELO westhost36.westhost.net) (216.71.84.209) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:19:45 -0700 Received: (from [EMAIL PROTECTED]) by westhost36.westhost.net (8.11.6/8.11.6) id j82DJTs19968; Fri, 2 Sep 2005 08:19:29 -0500 Date: Fri, 2 Sep 2005 08:19:29 -0500 Message-Id: [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org References: [EMAIL PROTECTED] [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] X-Loop: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: MAIL FAILURE X-Virus-Checked: Checked by ClamAV on apache.org * THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO * The email you sent was not delivered to the desired recipient because it was blocked/filtered for a specific reason, which may include: - reply to [EMAIL PROTECTED] - mail undeliverable because mailbox is not existant (or removed) - unsolicited email If you wish to contact Aaron Ardiri ([EMAIL PROTECTED]), you may use the following service to send an instant message direct to his mobile where you can put a request for contact and an attempt will be made to return your contact. http://www.contactme.biz/ Thankyou. * THIS EMAIL IS AUTOGENERATED - DO NOT REPLY TO * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to specify Tomcat error encoding?
Send an email to this link to unsubscribe . . . To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] I never asked anybody to subscribe me to your web site / service. Please delete my details IMMEDIATELY! Hildegard Bronkhorst Senior Facilities Manager Kagiso Integrated Services (Pty) Ltd. Tel: +27 11 844 2015 Fax: +27 11 844 2130 Mobile: +27 83 212 4303 mailto:[EMAIL PROTECTED] E-mail disclaimer This communication is confidential and intended solely for the addressee(s). Any unauthorized review; use, disclosure, or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -Original Message- From: Hildegard Bronkhorst XH (ZA/ESA) [mailto:[EMAIL PROTECTED] Sent: 01 September 2005 08:59 To: Tomcat Users List Subject: RE: How to specify Tomcat error encoding? I never asked anybody to subscribe me to your web site / service. Please delete my details IMMEDIATELY! Hildegard Bronkhorst Senior Facilities Manager Kagiso Integrated Services (Pty) Ltd. Tel: +27 11 844 2015 Fax: +27 11 844 2130 Mobile: +27 83 212 4303 mailto:[EMAIL PROTECTED] E-mail disclaimer This communication is confidential and intended solely for the addressee(s). Any unauthorized review; use, disclosure, or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interruption, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -Original Message- From: Hiroshi Iwatani [mailto:[EMAIL PROTECTED] Sent: 01 September 2005 05:24 To: Tomcat Users List Subject: How to specify Tomcat error encoding? Our environment is LANG=ja_JP.UTF-8 on Linux Fedora Core 3. --below are copies from browser screen-- Tomcat error output for JSP page is garbled for Japanese: [Tomcat(5.0.19) with javac]--compiler error mesg part quoted: /usr/jakarta-tomcat-5.0.19/work/Catalina/localhost/testapp/org/apache/jsp/index_ jsp.java:45: ?? : sendRedirect(java.lang.String) ??: javax.servlet.http.HttpServletRequest ? ??? request.sendRedirect(/testapp/redir.html); ^ while Resin(3.0.14) displays correct Japanese for compiler error mesg: [Resin with javac] jsp.java:45: $B%7%s%\%k$r8+$D$1$i$l$^$;$s!#(J $B%7%s%\%k(J: $B%a%=%C%I(J sendRedirect(java.lang.String) $Bl=j(J: javax.servlet.http.HttpServletRequest $B$N(J $B%$%s%?%U%'!%9(J request.sendRedirect(/testapp/redir.html); ^ [Resin with jikes]--jikis doesn't emit Japanese error mesg, that's OK. /index.jsp:6: Semantic Error: No accessible method with signature sendRedirect(java.lang.String) was found in type javax.servlet.http.HttpServletRequest. My question is: how could we have Tomcat display correct Japanese error message when JSP java code has errors for java compiler et al? Thanks in advance. -- Hiroshi Iwatani *stop cruelty* Annual number of institutionally euthanized cats and dogs including kittens and puppies: US 5 million, JP 500 thousand. How about your country? *for our better karma* - - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't get apache to connect to tomcat
Are you trying to mount the default TC homepage? I'm running Apache2 / Tomcat 5.5.9 on a Debian Sarge box and have successfully (finally) gotten them to speak to each other. Here's what's worked for me: 1) Everything in JK2.Properties is still commented out. 2) Added these lines to httpd.conf: JkAutoAlias /usr/share/jakarta-tomcat-5.5.9/webapps (change to your path) (If your using mod.ssl add the next 4) JkExtractSSL On JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER JkWorkersFile /usr/share/apache2/conf/workers.properties (change to your path) JkLogFile /usr/share/apache2/logs/mod_jk.log (change to your path) JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T Alias /tomcat-docs /usr/share/jakarta-tomcat-5.5.9/webapps/tomcat-docs (change to the path on your machine) Location /tomcat-docs/WEB-INF/ AllowOverride None deny from all /Location JkMount /tomcat-docs/* worker1 (your worker name) (here's the cool part - have apache serve the static content ) JkUnMount /tomcat-docs/*.png worker1 (your worker name) JkUnMount /tomcat-docs/*.jpg worker1 (your worker name) JkUnMount /tomcat-docs/*.gif worker1 (your worker name) JkUnMount /tomcat-docs/*.html worker1 (your worker name) I'm trying to get requests going to www.mydomain.com/servlets/ to get handed off to tomcat. I have the mod_jk module loaded: Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7f mod_jk/1.2.14 Server at www.mydomain.com Port 80 and I get the Tomcat/5.0.28 welcome screen when I go to: www.mydomain.com:8080 but I'm missing something in between. I'm having a really hard time with all this, as I imagine many people do because of all of the components and the confusing version numbers. For the longest time, I was trying to figure out where to get mod_jk2 because it sounded newer than mod_jk. Silly me. Even my Professional Apache Tomcat 5 book from 2004 has examples using mod_jk2. Anyway... I have added only this to my httpd.conf: LoadModule jk_module modules/mod_jk.so I have this workers.properties file in my /usr/local/apache/conf: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.recycle_timeout=300 This is my jk2.properties file: (why is it called jk2?) channelSocket.address=localhost channelSocket.port=8009 channelSocket.serverTimeout=600 channelSocket.maxThreads=50 I have these lines uncommented in server.xml: Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / I know I need something to point /servlets/ or /servlets/* to a worker, but I'm not sure how to do that or where to put it. I had something like: JkMount /servlets/ worker1 in my httpd.conf, but that didn't work. It actually gave me an ISE when I went to www.mydomain.com/servlets/ which was promising, but not what I wanted exactly. I'd be most appreciative if someone could let me know if I'm even close and what else I need. Thanks, -Jon - 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: Can't get apache to connect to tomcat
Adding to my previous post - this will (or should) load up the Tomcat Documentation that came with your distribution. Not the default TC homepage. . . Are you trying to mount the default TC homepage? I'm running Apache2 / Tomcat 5.5.9 on a Debian Sarge box and have successfully (finally) gotten them to speak to each other. Here's what's worked for me: 1) Everything in JK2.Properties is still commented out. 2) Added these lines to httpd.conf: JkAutoAlias /usr/share/jakarta-tomcat-5.5.9/webapps (change to your path) (If your using mod.ssl add the next 4) JkExtractSSL On JkHTTPSIndicator HTTPS JkSESSIONIndicator SSL_SESSION_ID JkCIPHERIndicator SSL_CIPHER JkWorkersFile /usr/share/apache2/conf/workers.properties (change to your path) JkLogFile /usr/share/apache2/logs/mod_jk.log (change to your path) JkLogLevel info JkLogStampFormat [%a %b %d %H:%M:%S %Y] JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat %w %V %T Alias /tomcat-docs /usr/share/jakarta-tomcat-5.5.9/webapps/tomcat-docs (change to the path on your machine) Location /tomcat-docs/WEB-INF/ AllowOverride None deny from all /Location JkMount /tomcat-docs/* worker1 (your worker name) (here's the cool part - have apache serve the static content ) JkUnMount /tomcat-docs/*.png worker1 (your worker name) JkUnMount /tomcat-docs/*.jpg worker1 (your worker name) JkUnMount /tomcat-docs/*.gif worker1 (your worker name) JkUnMount /tomcat-docs/*.html worker1 (your worker name) I'm trying to get requests going to www.mydomain.com/servlets/ to get handed off to tomcat. I have the mod_jk module loaded: Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7f mod_jk/1.2.14 Server at www.mydomain.com Port 80 and I get the Tomcat/5.0.28 welcome screen when I go to: www.mydomain.com:8080 but I'm missing something in between. I'm having a really hard time with all this, as I imagine many people do because of all of the components and the confusing version numbers. For the longest time, I was trying to figure out where to get mod_jk2 because it sounded newer than mod_jk. Silly me. Even my Professional Apache Tomcat 5 book from 2004 has examples using mod_jk2. Anyway... I have added only this to my httpd.conf: LoadModule jk_module modules/mod_jk.so I have this workers.properties file in my /usr/local/apache/conf: # Define 1 real worker using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.recycle_timeout=300 This is my jk2.properties file: (why is it called jk2?) channelSocket.address=localhost channelSocket.port=8009 channelSocket.serverTimeout=600 channelSocket.maxThreads=50 I have these lines uncommented in server.xml: Connector port=8009 enableLookups=false redirectPort=8443 debug=0 protocol=AJP/1.3 / I know I need something to point /servlets/ or /servlets/* to a worker, but I'm not sure how to do that or where to put it. I had something like: JkMount /servlets/ worker1 in my httpd.conf, but that didn't work. It actually gave me an ISE when I went to www.mydomain.com/servlets/ which was promising, but not what I wanted exactly. I'd be most appreciative if someone could let me know if I'm even close and what else I need. Thanks, -Jon - 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: #1578;#1605; #1575;#1587;#1578;#1604;#1575;#1605; #1575;#1604;#1585;#1587;#1575;#1604;#1607; DISABLE YOUR AUTO REPLY
Thanks Mark. Wade Chandler wrote: Please disable your auto reply or remove yourself from the list. I receive an email from your directly every time I write to the list. It's part of the rules of the list not to use auto replies. Wade Auto-replying to posts is more than enough of a reason for me to kick them off the list. Give me 5 minutes and they'll be gone. Mark [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: How can i change the http 500 error page
Just remember to add it after the /welcome-file-list tag. error-page error-code503/error-code location/errors/503.html/location /error-page in web.xml Ebru KAYA wrote: Can anyone help me how can i change the error page http1.1 500 on tomcat ? Ebru KAYA error-page error-code503/error-code location/errors/503.html/location /error-page in web.xml Ebru KAYA wrote: Can anyone help me how can i change the error page http1.1 500 on tomcat ? Ebru KAYA - 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: confused
Try the jspbook - http://www.jspbook.com . You can download the entire book after you register. It's written for tomcat 5 using jdk 1.4 but seems to translate well for tomcat4 (for the most part). This will help. al guys i am seriously confused now.. a normal jsp i can display in tomcat.. ok i have some questions here :- 1) let say i have admin.jsp , i create a folder call MGT .. i put in side the file admin.jsp and create a WEB-INF folder and inside i put web.xml .. is it correct ? 2) do i have customise web.xml or can simply copy and paste the default WEB-INF folder into MGT. 3) i having problem displaying jsp files with Database access, do i haveto use the same mysql-javaconnecter or some other file ( need indepth guide ) ? i know the are alot of guides there .. but most of the skip the prerequisite .. what i really need to have in my linux system in order to setup the tomcat seerver which can display jsp with database access i am sorry if the questions are elementary.. but i have tried to solve on my own but no solution till now any help will be greatly appreciated ... thanks - 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: Max thread/session timeouts
Mr. Taylor, Not sure how you got on this list. To remove yourself, scroll to the bottom of any one of the messages to which you've replied and click on the unsubscribe link. Warren Pace Take me off this fucking list. WARREN TAYLOR Sunbelt Business Advisors Sunbelt Business Brokers of MS www.sunbeltnetwork.com -Original Message- From: Andrew Miehs [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 5:00 PM To: Tomcat Users List Subject: Re: Max thread/session timeouts Ouch! Thats a LOT of threads - I can't believe your box still performs well with this many threads - or have you enabled keep-alives? The number of threads really depends on your application. I have max threads set to 750, or our 32bit 2.6 Linux systems. Our thread count normally doesn't go over 200. When the servers need to wait for the backend, and the requests start to queue (heading towards 1000) - you will end up with a huge problem anyway, as it is probably unlikely that your backend servers/ database, etc, will be able to catch up with the requests, but as I said, that depends how and what your application does. Andrew J. Ryan Earl wrote: As a reference, in conf/server.xml I set my thread limit to 1 max threads, 1000 max idle threads, and 100 on startup. I've seen my as many as 7K threads busy within my application. This is on a 32bit 2.6 Linux kernel with 2GB of RAM (-Xmx1500m). On the 2.4 kernel I found practical limitations in how many threads the kernel could multiplex between, saw frequent system hangs under high load where the whole server would become unusable. On either linux kernel, you probably want to increase your maximum number of file descriptors in /etc/security/limits.conf for your Tomcat user account(s). 16K nofile as default works great for me. How much more memory you need really depends on your application. 500 threads isn't that much memory overhead, but if each thread goes off and creates a bunch of objects while it's working you'll need to assure heapspace is available accordingly. The short answer is: try it out, play with it. 500 threads isn't a whole lot. - 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: Serving .jsp's from other dirs (newbie)
Have you created a proper directory structure under /site? (i.e. /site/WEB-INF, etc) and written your /site/WEB-INF/web.xml file for the app? Change the JkMount directives in httpd.conf and omit the .jsp (i.e. JkMount /site/*). Save html and jsp file in /site. Save servlets in /site/WEB-INF/classes/com/site/. If you've done all that, it should be as simple as restarting Tomcat and then restarting Apache. -- Original message -- Hello all, Im a bit new to Tomcat and interoperation with Apache thru mod_jk... I seem to have most of it setup. Im running Apache 1.3.33 and Tomcat 5.5.9 on Solaris 10 x86 I'm trying to get .jsp scripts to run within directories of my choice, rather than the default examples dir. In httpd.conf Ive added: - LoadModule jk_module libexec/mod_jk.so Alias /jsp-examples /usr/local/tomcat/webapps/jsp-examples Alias /site /usr/local/tomcat/webapps/site JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties JkLogFile /usr/local/tomcat/logs/mod_jk.log JkLogLevel info JkMount /jsp-examples/*.jsp ajp13 JkMount /site/*.jsp ajp13 - and my workers.properties looks as so: - workers.tomcat_home=3D/usr/local/tomcat workers.java_home=3D/usr/java ps=3D/ worker.list=3Dajp13 worker.ajp13.port=3D8009 worker.ajp13.host=3Dlocalhost worker.ajp13.type=3Dajp13 worker.ajp13.lbfactor=3D1 - when i browse to http://localhost/jsp-examples everything works great, this was the dir of examples that came packaged with tomcat however, i created a new dir under webapps/ called site and placed a test.jsp file in there... when browsing to http://localhost/site/test.jsp i get an HTTP Status 404 - /site/test.jsp The requested resource (/site/test.jsp) is not available. If I move the test.jsp file to /jsp-examples folder, it runs! Why is this? This is killing me, I know it can't be too complex... the jsp-examples folder can run scripts but my newly created one cannot. Is there a setting im missing? Also, If i added the following line, could I run jsp's from anywhere within my web doc tree: JkMount /*.jsp ajp13 Any help appreciated :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot start Tomcat 4.1
Which Sun j2sdk did you install 1.4 or 1.5? If you installed the Debian-Tomcat 4 package and are using JDK 1.4, try to restart tomcat by typing /etc/init.d/tomcat4 restart The Debian package installs a script named tomcat4 in /etc/init.d to start Tomcat when the system is started but you can also use it to start, stop, and restart Tomcat. If you installed JDK 1.5, you may have to edit /etc/init.d/tomcat4 and add a reference to your JDK - look for the line that begins with JDK_DIRS and add the absolute path to your JDK. Then you should be able to: start tomcat by typing /etc/init.d/tomcat4 start stop tomcat by typing /etc/init.d/tomcat4 stop restart your running tomcat by typing /etc/init.d/tomcat4 restart Instead of deploying your webapps to to /usr/share/tomcat4/server/ you should probably just deploy them to /usr/share/tomcat4/webapps/ (although I'm no expert on this one). -- Original message -- Hi, this is my first message on the list, so, i accept any comments about my poor english :(. The problem: I have installed Tomcat4.1/Sun j2sdk on a debian 3.1 (sarge). Yesterday, it works fine, but today, I have added a new context using the web administrator. Then, I put some JSP files on the context directory (/user/share/tomcat4/server/webapps//). The first time I make a pettition to the server, it creates correctly the .class and .java files... BUT, when i reload the app using the web manager... it can not do it. Now, I cannot start Tomcat (using catalina.sh run), getting this message: ... Jun 10, 2005 12:18:28 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8180 Starting service Tomcat-Standalone Apache Tomcat/4.1 Catalina.start: LifecycleException: Context startup failed due to previous errors LifecycleException: Context startup failed due to previous errors at org.apache.catalina.core.StandardContext.start(StandardContext.java:3578) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardHost.start(StandardHost.java:707) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1141) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2143) at org.apache.catalina.startup.Catalina.start(Catalina.java:463) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) Stopping service Tomcat-Standalone Catalina.stop: LifecycleException: Coyote connector has not been started LifecycleException: Coyote connector has not been started at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296) at org.apache.catalina.core.StandardService.stop(StandardService.java:499) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178) at org.apache.catalina.startup.Catalina.start(Catalina.java:494) at org.apache.catalina.startup.Catalina.execute(Catalina.java:350) at org.apache.catalina.startup.Catalina.process(Catalina.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156) And the log file shows... 2005-06-10 12:18:29 WebappLoader[/admin]: Deploying class repositories to work directory /usr/share/tomcat4/work/Standalone/localhost/admin 2005-06-10 12:18:29 WebappLoader[/admin]: Deploy class files /WEB-INF/classes to /usr/share/tomcat4/server/webapps/admin/WEB-INF/classes 2005-06-10 12:18:29 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar to /usr/share/tomcat4/server/webapps/admin/WEB-INF/lib/struts.jar 2005-06-10 12:18:29 ContextConfig[/admin] Exception processing JAR at resource path /WEB-INF/lib/struts.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/struts.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:881) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:809) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:587) at
Re: Running tomcat on Debian Sarge
Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running tomcat on Debain Sarge
Need to clarify my previous posting. Debian has the jk2 connector package, not Blackdown. Also - the Debian-Tomcat installation listens on port 8180 instead of the default 8080.
RE: Running tomcat on Debian Sarge
Well . . . he said he was a newbie . . . -- Original message -- I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803!
Re: Running tomcat on Debian Sarge
Just remember that the Debian - Tomcat package listens on port 8180 instead of the default 8080 to prevent conflicts with another app which uses 8080. [EMAIL PROTECTED] wrote: Well . . . he said he was a newbie . . . Jep, green as grass :-) Going to give it another try this weekend, thanks for all the tips... Keep you guys posted. Thanx -- Original message -- I have never installed any debian-tomcat/apache package. I simply download source from apache and build my own. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 9, 2005 6:09 AM To: Tomcat Users List Subject: Re: Running tomcat on Debian Sarge Debian has a Tomcat 4.1 (4.1..31-3 to be exact) package for the Sarge distribution. The Sarge distribution is now the official stable release. If you're OK with Tomcat 4.1 and you're running Sarge, you can edit /etc/apt/sources.list: (omit all quotation marks) deb http://mirrors.kernel.org/debian/ sarge main non-free contrib deb-src http://mirrors.kernel.org/debian/ sarge main non-free contrib (or whatever your mirror site may be). As root, run (omit the quotation marks) apt-get update, then apt-get install tomcat4 apt-get install tomcat4-webapps apt-get install tomcat4-admin (if you want the admin webapp) or apt-get install tomcat4 tomcat4-webapps tomcat4-admin all at once. To be able to run the admin and manager apps, you'll need to edit /usr/share/tomcat4/conf/tomcat-users.xml to include a user and password for the rolls of admin and manager. Blackdown has a Debian package for J2SE 1.4 jdk which you can install by adding deb ftp://ftp-.tux.org/java/debian/ sarge non-free to sources.list. Then run apt-get install j2sdk1.4 When I last checked, they also had a package for the jk2 connector but theirs does not support JNI (and jk2 is deprecated). Best bet is to download the jk1 source and build it yourself. -- Original message -- Just install the Tomcat jars and read the Tomcat docs. We are running Tomcat on Debian also. And probably Debian has got some packages of tomcat. Ronald. On Wed Jun 08 23:13:06 CEST 2005 Tomcat Users List wrote: All, Anybody here who knows a foolproof site for setting up tomcat under debian?! I'm an newbie when it come to tomcat on linux, but I really would like this to work... Al I seem to be getting is an connection refused on my localhost... Some pointer could be handy, but I seem to be having problems googling for the correct manuals/howto's. Thanks in advance! Blijblijblij - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] !DSPAM:42a8153f145051675613803! - 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: What are those No such list! s and Illegal IMail List Server Command! ?
I want to know who did this to us . . . From: Maxime [EMAIL PROTECTED] Sent: Monday, May 16, 2005 11:13 PM Since yesterday I am receiving a thousand of the same emails. What can I (or we) do to avoid these ??? You can set up your email client to filter them out based on their subjects (which seems pretty static). I simply sort by subject, select them en masse, and delete them my self, then I resort by recieved date like normal. I'm confident the Powers That Be are working diligently to fix the problem, whatever the problem may be, so I'm not taking any dramatic measures. Regards, Will Hartung ([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]