Re: Servlet and Random Access File
Teh, there are so many ways suggest you get the Java Sun Tut, its very good. Look at properties, serialization, and file handling. Have a look at lite dB's like Derby. Maybe Mysql, or Postgres as well. If you like frameworks, maybe even hybernate. There is no example servlet... just find the code and stick it in your servlet. On the servlet side read up on forms, and displaying dB records Good Luck - Original Message - From: Teh Noranis Mohd Aris [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 31, 2007 4:48 AM Subject: Re: Servlet and Random Access File I would like to refer to an example servlet where I can add fields (such as name, staff number, etc...) to a random access file and view the file information by accessing the field (eg. staff number). Please help. Thank you. Yours Sincerely, TEH David Smith [EMAIL PROTECTED] wrote: The key phrase here is ...that really suits my needs. Could you provide more information? Your question is a rather generic one not all that specific to java servlets. --David Teh Noranis Mohd Aris wrote: Hello All, Does anyone have an example of a servlet program that uses random access file or any useful links? I tried searching yahoo and google but could not find one that really suits my needs. Thank you. Yours Sincerely, TEH - Get your own web address. Have a HUGE year through Yahoo! Small Business. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Console-Output of AbandonedObjectPool
Hi guys, we're using a JDBC-datasource with the following definition in $CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml: ?xml version='1.0' encoding='utf-8'? Context Resource auth=Container description=DB Connection for CLUE-Index name=jdbc/IndexCLUEDS type=javax.sql.DataSource factory=org.apache.commons.dbcp.BasicDataSourceFactory driverClassName=com.mysql.jdbc.Driver username= password= url=jdbc:mysql://db/index_clue?autoReconnect=true maxIdle=30 maxWait=1 maxActive=10 validationQuery=SELECT 1 testOnBorrow=true testWhileIdle=true timeBetweenEvictionRunsMillis=1 minEvictableIdleTimeMillis=28800 poolPreparedStatements=true removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=false/ /Context In catalina.out, we always find the following output: AbandonedObjectPool is used ([EMAIL PROTECTED] e) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 300 I have no idea how to stop this, so can anyone of you guys give me a clue where to look for to stop this output? TIA Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console-Output of AbandonedObjectPool
Unless things changed in the last 1.5 years (when I looked it up last time): DBCP uses System.out.println() and not regular logging for the output of exactly those lines :( Regards, Rainer Gregor Schneider wrote: Hi guys, we're using a JDBC-datasource with the following definition in $CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml: ?xml version='1.0' encoding='utf-8'? Context Resource auth=Container description=DB Connection for CLUE-Index name=jdbc/IndexCLUEDS type=javax.sql.DataSource factory=org.apache.commons.dbcp.BasicDataSourceFactory driverClassName=com.mysql.jdbc.Driver username= password= url=jdbc:mysql://db/index_clue?autoReconnect=true maxIdle=30 maxWait=1 maxActive=10 validationQuery=SELECT 1 testOnBorrow=true testWhileIdle=true timeBetweenEvictionRunsMillis=1 minEvictableIdleTimeMillis=28800 poolPreparedStatements=true removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=false/ /Context In catalina.out, we always find the following output: AbandonedObjectPool is used ([EMAIL PROTECTED] e) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 300 I have no idea how to stop this, so can anyone of you guys give me a clue where to look for to stop this output? TIA - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FarmWarDeployer
Ok I got it all working. The server.xml supplied with tomcat 5.5 is slightly misleading IMO. Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ I assumed that the deployDir could be anywhere as long as it was accessible to the tomcat user. But after searching nabble I tried setting it to the webapps dir and it all sprung into life. On 5/30/07, ben short [EMAIL PROTECTED] wrote: Hi, After reviewing the cluster-howto [1] I have noticed a few bits I have forgotten to configure. Namely # Make sure your web.xml has the distributable/ element or set at your Context distributable=true / # Make sure that jvmRoute attribute is set at your Engine Engine name=Catalina jvmRoute=node01 [1] http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html On 5/30/07, ben short [EMAIL PROTECTED] wrote: Hi, I'm trying to setup a cluster of two tomcats and use the Tomcat 1 server.conf Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.6.175 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/home/tomcat/war-temp/ deployDir=/home/tomcat/war-deploy/ watchDir=/home/tomcat/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster Tomcat 2 server.conf Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.6.103 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/home/tomcat/war-temp/ deployDir=/home/tomcat/war-deploy/ watchDir=/home/tomcat/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster I configured it so that only tomcat 1 can deploy new webapps via the FarmWarDeployer mechanism. When I upload my war to the watchDir i see the following messages in catalina.log. INFO: check cluster wars at /home/tomcat/war-listen 30-May-2007 13:07:37 org.apache.catalina.cluster.deploy.FarmWarDeployer fileModified INFO: Installing webapp[] from /home/tomcat/war-deploy/ROOT.war 30-May-2007 13:07:37 org.apache.catalina.cluster.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app 30-May-2007 13:07:59 org.apache.catalina.cluster.deploy.WarWatcher check The ROOT.war is in tomcat 1 and tomcat 2 deployDir, but is not in either tomcats manager app or accessible via the webapps url. Can anyone give me some help with getting this going? Regards Ben
Re: Console-Output of AbandonedObjectPool
Aaargl so that means there's no possibility to get rid of this output? I mean I don't need a possibility to divert it into a log-file, just getting rid of the output would help... Cheers Gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Monitoring connection pools created by tomcat
Hello, I use tomcat 6.0.13 with jdk 6 on windows. I created a jdbc resource(connection pool) in the standard way. My question is how can I monitor the connection pool. In glassfish for example I have the admin app in which I can monitor the pool and see the active connections, idle connections and different other data. Is such thing available in tomcat and if it is could you point me in the right direction. Thanx. -- View this message in context: http://www.nabble.com/Monitoring-connection-pools-created-by-tomcat-tf3845859.html#a10891552 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 32-bit as front end to 64-bit Tomcat
Hi All, Just wondering if anybody has had any 'weirdness' when running a 32-bit mod_jk connector under Apache (in our case mod_jk v1.2.20 under Apache 2.2.4) against a 64-bit installation of Tomcat (5.5.20 with 1.5.0_10 SUN Java)on separate servers. We've had scenarios where the connector appears to stop talking with Tomcat - this behaviour has been documented in a bug report. I'm going to address this by upgrading the mod_jk connector to v1.2.23 but I was interested if anybody has experienced other strangeness... Is it recommended to run 64-bit in the front end if the application tier is 64-bit? Cheers, Darren. Connaught wins RoSPA Gold Award for fourth year running Considerate Contractor Gold Award in 2006 Partnering Contractor of the Year Award in 2005 Please visit our website to see a full list of Connaught's Registered Companies www.connaught.plc.uk/Investors/Registered-Companies Disclaimer: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this message. Connaught plc, Head Office 01392 444546
RE: Monitoring connection pools created by tomcat
http://www.lambdaprobe.org/ -Original Message- From: Sorin Juco [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 6:49 AM To: users@tomcat.apache.org Subject: Monitoring connection pools created by tomcat Hello, I use tomcat 6.0.13 with jdk 6 on windows. I created a jdbc resource(connection pool) in the standard way. My question is how can I monitor the connection pool. In glassfish for example I have the admin app in which I can monitor the pool and see the active connections, idle connections and different other data. Is such thing available in tomcat and if it is could you point me in the right direction. Thanx. -- View this message in context: http://www.nabble.com/Monitoring-connection- pools-created-by-tomcat-tf3845859.html#a10891552 Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Monitoring connection pools created by tomcat
Sorin Juco wrote: Hello, I use tomcat 6.0.13 with jdk 6 on windows. I created a jdbc resource(connection pool) in the standard way. My question is how can I monitor the connection pool. In glassfish for example I have the admin app in which I can monitor the pool and see the active connections, idle connections and different other data. Is such thing available in tomcat and if it is could you point me in the right direction. I use http://www.lambdaprobe.com/d/index.htm Works really well. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Servlet and Random Access File
I see there's still a lot of options on the table and the only part that has anything to do with tomcat is the user interface. A good starting point might be to look at database backed webapps with a similar UI. All you'd have to do to them is change the persistence from a database to file io. Personally I'd go for the database backend letting the database server handle file io, but well ... that's me. Plus good database server software is available in open source with good cross-platform support. To get some ideas started for you, I just completed a data browser (database server backed) webapp with the entire interface being expressed through one jsp file. The top level jsp acted as the controller if you will in a MVC design pattern. The jsp use the jstl standard taglibs to handle imports of jsp page segments which made up a very small model component and the rest acted as the view component. I encoded various parameters in request parameters for a continuous look and feel without sessions. It did not attempt to write database data though so that's where it fell short of what you're after. Personally I'd recommend doing some reading on design patterns so you can really define what you're after and once you have a solid design, start looking at putting it into code. Maybe you want to use commons-validator to validate form input, maybe you'd like to implement that in a filter so the data is verified good before you get to the servlet or jsp handling the actual update. There are a lot of toolkit libraries designed to handle different parts of processing for you leaving you to just define the higher levels of logic and of course the look and feel of the UI. --David Teh Noranis Mohd Aris wrote: I would like to refer to an example servlet where I can add fields (such as name, staff number, etc...) to a random access file and view the file information by accessing the field (eg. staff number). Please help. Thank you. Yours Sincerely, TEH David Smith [EMAIL PROTECTED] wrote: The key phrase here is ...that really suits my needs. Could you provide more information? Your question is a rather generic one not all that specific to java servlets. --David Teh Noranis Mohd Aris wrote: Hello All, Does anyone have an example of a servlet program that uses random access file or any useful links? I tried searching yahoo and google but could not find one that really suits my needs. Thank you. Yours Sincerely, TEH - Get your own web address. Have a HUGE year through Yahoo! Small Business. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FW: Immediate help needed with tomcat
Hello, I am trying to run a webservice with Tomcat 5.5. We had Axis 1.1 running on Tomcat 4.1 for a year and without any problems we were able to deploy our service. Recently, we have upgraded Tomcat to 5.5 and I copied all the files from old to new webapps but our service is not running. Instead we are getting following error, could you please help us as in if we are missing something. Thank you org.apache.jasper.JasperException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle tWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:791) org.apache.jsp.TestSVService_jsp._jspService(TestSVService_jsp.java:588) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.axis.client.Service.initService(Service.java:296) org.apache.axis.client.Service.init(Service.java:163) org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java: 198) org.apache.jsp.TestSVService_jsp._jspService(TestSVService_jsp.java:64) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Harkirat Sehgal Spectrum Engineer (DASM) Industry Canada E-mail: [EMAIL PROTECTED] Phone: (613) 990-4704
FW: Immediate help needed with tomcat
Hello, I am trying to run a webservice with Tomcat 5.5. We had Axis 1.1 running on Tomcat 4.1 for a year and without any problems we were able to deploy our service. Recently, we have upgraded Tomcat to 5.5 and I copied all the files from old to new webapps but our service is not running. Instead we are getting following error, could you please help us as in if we are missing something. Thank you org.apache.jasper.JasperException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle tWrapper.java:510) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.servlet.ServletException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont extImpl.java:858) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:791) org.apache.jsp.TestSVService_jsp._jspService(TestSVService_jsp.java:588) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://142.53.172.145/sv/services/SVService}SVServiceService org.apache.axis.client.Service.initService(Service.java:296) org.apache.axis.client.Service.init(Service.java:163) org.apache.axis.client.ServiceFactory.createService(ServiceFactory.java: 198) org.apache.jsp.TestSVService_jsp._jspService(TestSVService_jsp.java:64) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Harkirat Sehgal Spectrum Engineer (DASM) Industry Canada E-mail: [EMAIL PROTECTED] Phone: (613) 990-4704 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 6, clustering, FarmDeployer
Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they run atop 5.5), and the cluster configuration (having an apache2+mod-jk in front) seems to work well having an application that already runs within the tomcat setup. However, the FarmDeployer doesn't seem to work here. Deploying a war file to /opt/appsrv/tomcat/tmp/war-listen/ provides me with the following messages in catalina.out ... - ... on the machine the war file was deployed to: 31.05.2007 14:56:58 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer fileModified INFO: Installing webapp[/pcdvisual] from /opt/appsrv/tomcat/tmp/war-deploy/pcdvisual.war 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app /pcdvisual 31.05.2007 14:56:59 org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor report INFO: ThroughputInterceptor Report[ Tx Msg:1 messages Sent:0,00 MB (total) Sent:0,00 MB (application) Time:0,09 seconds Tx Speed:0,01 MB/sec (total) TxSpeed:0,01 MB/sec (application) Error Msg:0 Rx Msg:1 messages Rx Speed:0,00 MB/sec (since 1st msg) Received:0,00 MB] 31.05.2007 14:57:27 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen - on the other node in the cluster: 31.05.2007 14:56:56 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean 31.05.2007 14:57:05 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean So far, I am using the example tc cluster configuration according to [1]. Environment is Ubuntu 6.06.1 + JDK 1.6.0 on both hosts. Somehow I suppose that this is just a simple misconfiguration but right now I don't know where to lay my hands to get it resolved. Can anyone help me outta here? Thanks in advance and bye, Kristian [1] http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 6, clustering, FarmDeployer
hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Filip Kristian Rink wrote: Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they run atop 5.5), and the cluster configuration (having an apache2+mod-jk in front) seems to work well having an application that already runs within the tomcat setup. However, the FarmDeployer doesn't seem to work here. Deploying a war file to /opt/appsrv/tomcat/tmp/war-listen/ provides me with the following messages in catalina.out ... - ... on the machine the war file was deployed to: 31.05.2007 14:56:58 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer fileModified INFO: Installing webapp[/pcdvisual] from /opt/appsrv/tomcat/tmp/war-deploy/pcdvisual.war 31.05.2007 14:56:59 org.apache.catalina.ha.deploy.FarmWarDeployer remove INFO: Cluster wide remove of web app /pcdvisual 31.05.2007 14:56:59 org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor report INFO: ThroughputInterceptor Report[ Tx Msg:1 messages Sent:0,00 MB (total) Sent:0,00 MB (application) Time:0,09 seconds Tx Speed:0,01 MB/sec (total) TxSpeed:0,01 MB/sec (application) Error Msg:0 Rx Msg:1 messages Rx Speed:0,00 MB/sec (since 1st msg) Received:0,00 MB] 31.05.2007 14:57:27 org.apache.catalina.ha.deploy.WarWatcher check INFO: check cluster wars at /opt/appsrv/tomcat/tmp/war-listen - on the other node in the cluster: 31.05.2007 14:56:56 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean 31.05.2007 14:57:05 org.apache.catalina.ha.deploy.FarmWarDeployer messageReceived SCHWERWIEGEND: javax.management.RuntimeOperationsException: Exception occurred trying to get an MBean So far, I am using the example tc cluster configuration according to [1]. Environment is Ubuntu 6.06.1 + JDK 1.6.0 on both hosts. Somehow I suppose that this is just a simple misconfiguration but right now I don't know where to lay my hands to get it resolved. Can anyone help me outta here? Thanks in advance and bye, Kristian [1] http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 6, clustering, FarmDeployer
Filip; first off, thanks loads for your hint. So by now I can at least stop playing with the FarmWarDeveloper and focus on other things... [Filip Hanik - Dev Lists [EMAIL PROTECTED] @ Thu, 31 May 2007 15:44:59 +0200] hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Is there another meaningful way of getting an application deployed to a tomcat cluster, then, without having to deploy it to each and every node? Though this wouldn't be much of a pain (given there just are two nodes right now... :) ), it at least reduced comfort and ease-of-use compared to the FWD solution... Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 6, clustering, FarmDeployer
I've used ant to write a deploy task which is parameterized. Then I can wrap an iteration task around it and undeploy + deploy on all n Tomcats. It does depend on http://ant-contrib.sourceforge.net/tasks/tasks/foreach.html !-- = -- !-- TOMCAT / Deploy / UndeployTARGETS -- !-- = -- !-- Deploy the htmout files to all defined application servers. Will -- !-- restart the context after deployment is complete. -- target name=deploy depends=deploy-war-all description=Deploy war to all defined application servers (causes restart)/ !-- Don't deploy if no tomcat.instances defined -- condition property=tomcat-deploy-defined and isset property=tomcat.instances/ /and /condition !-- Deploy to each defined context by iterating tomcat.instances and -- !-- farming the real work out to deploy-war-one. -- target name=deploy-war-all if=tomcat-deploy-defined description=Restart the context on the tomcat instance(s) !-- NB: Parallel redeploy is very slow on Tomcat due to the -- !-- of the cluster deployer. So, don't use it. -- foreach parallel=false list=${tomcat.instances} delimiter= param=instance target=deploy-war-one/ /target !-- Reload the requested context -- target name=deploy-war-one description=Restart a single context propertycopy name=tomcat.username from=tomcat.${instance}.username silent=true/ propertycopy name=tomcat.password from=tomcat.${instance}.password silent=true/ propertycopy name=tomcat.server from=tomcat.${instance}.server silent=true/ propertycopy name=tomcat.port from=tomcat.${instance}.port silent=true/ property name=tomcatURL value=http://${tomcat.server}:${tomcat.port}${tomcat.manager}/ fail unless=tomcat.usernameUndefined: tomcat.username/fail fail unless=tomcat.passwordUndefined: tomcat.password/fail fail unless=tomcat.manager Undefined: tomcat.manager/fail fail unless=tomcat.server Undefined: tomcat.server/fail fail unless=tomcat.portUndefined: tomcat.port/fail antcall target=deploy-context inheritall=true/ /target !-- reload the specified context -- target name=deploy-context description=Reload the given context fail unless=tomcat.usernameUndefined: tomcat.username/fail fail unless=tomcat.passwordUndefined: tomcat.password/fail fail unless=tomcatURLUndefined: tomcatURL/fail echo taskname=deploy-context Deploying ${basedir}/${project.war} to ${tomcatURL} /echo undeploy failonerror=false taskname=deploy-context username=${tomcat.username} password=${tomcat.password} url =${tomcatURL} path=// deploy taskname=deploy-context username=${tomcat.username} password=${tomcat.password} url =${tomcatURL} path=/ war =file:${basedir}/${project.war}/ /target Tim -Original Message- From: Kristian Rink [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 9:52 AM To: users@tomcat.apache.org Subject: Re: tomcat 6, clustering, FarmDeployer Filip; first off, thanks loads for your hint. So by now I can at least stop playing with the FarmWarDeveloper and focus on other things... [Filip Hanik - Dev Lists [EMAIL PROTECTED] @ Thu, 31 May 2007 15:44:59 +0200] hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Is there another meaningful way of getting an application deployed to a tomcat cluster, then, without having to deploy it to each and every node? Though this wouldn't be much of a pain (given there just are two nodes right now... :) ), it at least reduced comfort and ease-of-use compared to the FWD solution... Thanks and bye, Kristian -- Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/ jab: [EMAIL PROTECTED] * icq: 48874445 * fon: ++49 176 2447 2771 One dreaming alone, it will be only a dream; many dreaming together is the beginning of a new reality. (Hundertwasser) - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Hogging CPU
We have been experiencing a problem where Tomcat causes CPU usage to go to 100%. This slows down our web servers. Has anyone else ever experienced such a problem? We average 150 active connections per web server. What do others average? How do others configure initial memory pool, maximum memory pool and thread stack size (relative to RAM)? We have 2.0 GB of RAM and 2 2.60 GHz CPUs on Windows 2003. Thank you very much.
RE: Tomcat Hogging CPU
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Tomcat Hogging CPU We have been experiencing a problem where Tomcat causes CPU usage to go to 100%. Odds are it's one of your webapps, not Tomcat. Try running a CPU profiler to see where time is being spent. You could also take thread dumps to find out where each thread is at a given point. - Chuc THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat stopped logging
ok, thanks, guys, I'll try to do that. -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 9:16 AM To: Tomcat Users List Subject: Re: Tomcat stopped logging Plus console output is almost always redirected to catalina.out. If you can read that, you should be seeing all the console output. --David Daniel Stephens wrote: well the localhost log should have the stack trace you need. Try and get them to do David's suggesstion that's a good one. On 5/30/07, Propes, Barry L [EMAIL PROTECTED] wrote: I can try...the thing is, I can actually read the logs through a shared directory. Just can't see the console to see the stack trace there. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Hogging CPU
What's your definition of a connection? Is it a session? I've had an average of about 300 active sessions which amounted to about 15,000 unique visits per day. This was on a machine with substantially less power than yours. We average 150 active connections per web server. What do others average? - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Servlet and Random Access File
I might have one for youlet me know if you found it or not. -Original Message- From: Teh Noranis Mohd Aris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 9:48 PM To: Tomcat Users List Subject: Re: Servlet and Random Access File I would like to refer to an example servlet where I can add fields (such as name, staff number, etc...) to a random access file and view the file information by accessing the field (eg. staff number). Please help. Thank you. Yours Sincerely, TEH David Smith [EMAIL PROTECTED] wrote: The key phrase here is ...that really suits my needs. Could you provide more information? Your question is a rather generic one not all that specific to java servlets. --David Teh Noranis Mohd Aris wrote: Hello All, Does anyone have an example of a servlet program that uses random access file or any useful links? I tried searching yahoo and google but could not find one that really suits my needs. Thank you. Yours Sincerely, TEH - Get your own web address. Have a HUGE year through Yahoo! Small Business. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat not loading log4j properties
in this line, Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ I think you need to have className=org.apache.log4j.Logger although I say that...I've been trying to get log4j configured in my environment with zero luck, too. But that's what I read in one tutorial page I saw. -Original Message- From: mélanie langlois [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 30, 2007 10:07 PM To: users@tomcat.apache.org Subject: tomcat not loading log4j properties Hello, I'm using tomcat 5.0.28 on windows, and I do not obatin the logs for my application. I probably do something wrong in my configuration, but couldn't figure out why, even after checking tomcat doics and mailing list. Here is my configuration: -in my server.xml, I have the following: Engine defaultHost=localhost name=Catalina jvmRoute=tomcat_dev Host appBase=webapps name=localhost autoDeploy=true unpackWARs=true deployOnStartup=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. suffix=.txt timestamp=true/ /Host Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true/ Realm className=org.apache.catalina.realm.UserDatabaseRealm/ /Engine I copied the log4j.jar and commons-looging.jar under tomcat-home/common/lib I put a log4j.xml under tomcat/common/classes/log4j.properties (see root_log4j.properties attached) I put a log4j.properties under webapp/myapp/WEB_INF/classes/log4j.properties (see myapp.properties) I start tomcat using catalina.bat : catalina start. I can see some output in the console. There is aloaso a localhost_date.txt created under log folder, but this contains only the servlet logs. Myapp.log and jrc.log are not created at all, and I do not see any log from my webapp in the console. Also, teh first time I logged a message from my Servlet, I had an error saying that there was no log4j property configire. To fix that, I loaded the log4j.properties file in my class. This does fix the error, but I can not see any logs from my java classes anywhere... I really don't have any idea of what's happening here, does anyone has an idea ? Thanks, Mélanie _ Gagnez des écrans plats avec Live.com http://www.image-addict.fr/ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console-Output of AbandonedObjectPool
that's true, and I get something similar as that the first time Tomcat (the apps) make a call to the database, but only initially. It doesn't keep posting to the console afterwards. -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 3:44 AM To: Tomcat Users List Subject: Re: Console-Output of AbandonedObjectPool Unless things changed in the last 1.5 years (when I looked it up last time): DBCP uses System.out.println() and not regular logging for the output of exactly those lines :( Regards, Rainer Gregor Schneider wrote: Hi guys, we're using a JDBC-datasource with the following definition in $CATALIN_HOME/conf/Catalina/localhost/IndexCLUE.xml: ?xml version='1.0' encoding='utf-8'? Context Resource auth=Container description=DB Connection for CLUE-Index name=jdbc/IndexCLUEDS type=javax.sql.DataSource factory=org.apache.commons.dbcp.BasicDataSourceFactory driverClassName=com.mysql.jdbc.Driver username= password= url=jdbc:mysql://db/index_clue?autoReconnect=true maxIdle=30 maxWait=1 maxActive=10 validationQuery=SELECT 1 testOnBorrow=true testWhileIdle=true timeBetweenEvictionRunsMillis=1 minEvictableIdleTimeMillis=28800 poolPreparedStatements=true removeAbandoned=true removeAbandonedTimeout=300 logAbandoned=false/ /Context In catalina.out, we always find the following output: AbandonedObjectPool is used ([EMAIL PROTECTED] e) LogAbandoned: false RemoveAbandoned: true RemoveAbandonedTimeout: 300 I have no idea how to stop this, so can anyone of you guys give me a clue where to look for to stop this output? TIA - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: passing Apache htpasswd authnetication to Tomcat
Thanks, we did that: Connector port=8009 redirectPort=8443 tomcatAuthentication=false protocol=AJP/1.3 /Connector David Smith wrote: If you set tomcatAuthentication=false in your connector configuration for the AJP connector, the credentials will come through. It's set to true by default causing tomcat to ignore the REMOTE_USER header from Apache. --David Patrick Ward wrote: Currently we have Apache configured to do user authentication and Tomcat to run the java application. At this point, Apache is asking for authentication but the information is not being passed on to Tomcat. We are using the following versions: Server version: Apache/2.2.4 (Unix) Apache Tomcat version 6.0.10 Thank you! - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- __ __ ___ Patrick Ward /_/| //\ /_/| Jet Propulsion Lab || | | |__ \| || | Pasadena, CA ___|| | | |__)/| || |___ M/S 2923-120 /___|| | | |___/ ||/___/| 818-354-7788 |_|/ |_|/ |_|/ [EMAIL PROTECTED] __ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console-Output of AbandonedObjectPool
hi barry, from my understanding, the output seems to be created every time when the pool needs to create a new physical connection to the database, i.e. you've specified maxActive=10, only 5 are used busy, a 6th gets created due to an additional request and - voilá, there you go. anyways, seems there's no workaround for this problem, so i'll have to live with it :( cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console-Output of AbandonedObjectPool
maybe I've set or allocated enough (about 100) connections so I only get that once? I'd be happy to send you my server.xml config if you'd like. -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 11:10 AM To: Tomcat Users List Subject: Re: Console-Output of AbandonedObjectPool hi barry, from my understanding, the output seems to be created every time when the pool needs to create a new physical connection to the database, i.e. you've specified maxActive=10, only 5 are used busy, a 6th gets created due to an additional request and - voilá, there you go. anyways, seems there's no workaround for this problem, so i'll have to live with it :( cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console-Output of AbandonedObjectPool
and unfortunately, as I'd posted in a reply with a different topic you might have seen, there's (at the moment) no way for me to see the console in the prod setting, so I can't verify that's happening, but I'd be inclined to think with my current configuration that message is only getting generated once, pending a restart which wipes out the console messages anyway. -Original Message- From: Gregor Schneider [mailto:[EMAIL PROTECTED] Sent: Thursday, May 31, 2007 11:10 AM To: Tomcat Users List Subject: Re: Console-Output of AbandonedObjectPool hi barry, from my understanding, the output seems to be created every time when the pool needs to create a new physical connection to the database, i.e. you've specified maxActive=10, only 5 are used busy, a 6th gets created due to an additional request and - voilá, there you go. anyways, seems there's no workaround for this problem, so i'll have to live with it :( cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rpm for tomcat 5.5 compatitble with java 1.6
Hi, I have been asked to install tomcat 5.5 with Java 1.6 on a box for a developer. I was hoping to stick with RH packages, but this combination does not seem to be available yet. Are there are repositories maintaining a Tomcat 5.5 that is compatible with the Sun java SE 1.6 rpm available at the moment? Also do I have any other options on this? Many Thanks, Tom - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: rpm for tomcat 5.5 compatitble with java 1.6
From: Tom H [mailto:[EMAIL PROTECTED] Subject: rpm for tomcat 5.5 compatitble with java 1.6 Are there are repositories maintaining a Tomcat 5.5 that is compatible with the Sun java SE 1.6 rpm available at the moment? Sure - use a real Tomcat download: http://tomcat.apache.org/download-55.cgi Third-party repackaged versions are notoriously troublesome. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Console-Output of AbandonedObjectPool
hi barry, thanks for the offer, but i guess i've found the solution: we're using around 15 different servlets, each making use of it's own datasource belonging to a different connection-pool: so it looks, as if the message always shows up when each pool is created, meaning, you're right with your statement. getting a little off-topic (but on-topic for your other post): don't you have a test-server with the identical environment as the prod-server where you could try to recreate the same race-conditions? cheers gregor -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat TLS with PKCS11 token
Hello, I would like to use TOMCAT 6 as an HTTPS server on our windows/linux servers, using a PCI based PKCS11 token that stores the keys for TLS connectivity. Up until now, we've enabled TLS connections using the keystoreFile/keystorePass, truststoreFile/truststorePass attribute pairs in server.xml. Our core application currently uses the PKCS11 token for our keystore, but we would like TOMCAT to use it as well. Is there a way to configure TOMCAT (via server.xml or by other means) to use this token? =20 Thanks in advance. Esmond
Re: rpm for tomcat 5.5 compatitble with java 1.6
Tom, Charles is correct about using the binary distributions at tomcat.apache.org. There isn't a lot of need to use rpms since there are extremely few dependencies. The only one I can think of for a base install is Java. The only other setup you need to do is to set JAVA_HOME and then run startup.sh. Yum/RPMs in theory can keep you up to date, but updating is always treacherous with or without RPMs. Caldarale, Charles R wrote: From: Tom H [mailto:[EMAIL PROTECTED] Subject: rpm for tomcat 5.5 compatitble with java 1.6 Are there are repositories maintaining a Tomcat 5.5 that is compatible with the Sun java SE 1.6 rpm available at the moment? Sure - use a real Tomcat download: http://tomcat.apache.org/download-55.cgi Third-party repackaged versions are notoriously troublesome. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache LogFormat on tomcat with APR?
Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ \%{forensic-id}n\ \%{X-ClientSide} combined-ClientSide How can I get that type of data into tomcat's logs? I have APR running if that matters. Any ideas? Robert
Re: Apache LogFormat on tomcat with APR?
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html check out AccessLogValve Filip robert lazarski wrote: Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ \%{forensic-id}n\ \%{X-ClientSide} combined-ClientSide How can I get that type of data into tomcat's logs? I have APR running if that matters. Any ideas? Robert No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 5/30/2007 3:03 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Console-Output of AbandonedObjectPool
getting a little off-topic (but on-topic for your other post): don't you have a test-server with the identical environment as the prod-server where you could try to recreate the same race-conditions? cheers gregor - Yes, but I don't have the traffic or really the means to implement the same amount of traffic on it. -- what's puzzlin' you, is the nature of my game gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache LogFormat on tomcat with APR?
Exactly what I was looking for - thanks! Robert On 5/31/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html check out AccessLogValve Filip robert lazarski wrote: Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\ \%{forensic-id}n\ \%{X-ClientSide} combined-ClientSide How can I get that type of data into tomcat's logs? I have APR running if that matters. Any ideas? Robert No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.4/825 - Release Date: 5/30/2007 3:03 PM - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Load Balance sticky_session=True, am I missing something?
I have two tomcat servers (5.5.23) and running mod_jk (1.2.20) with load balancing behind apache. I have a web application that needs to maintain session information. What I'm seeing is that the load balance is alternating requests between the servers equally, as expected, but sessions are getting lost when going between the servers. I thought from reading that the default is sticky_session=True which means the mod_jk will keep sessions going to the same server (if it is available..). This is obviously not happening. Am I doing something wrong, or is there a problem? # workers.properties - ajp13 # # List workers worker.list=lb,jkstatus # # Define wrkr1 worker.wrkr1.port=8009 worker.wrkr1.host=msi1 worker.wrkr1.type=ajp13 worker.wrkr1.socket_timeout=300 worker.wrkr1.lbfactor=1 # # Define wrkr2 worker.wrkr2.port=8009 worker.wrkr2.host=msi2 worker.wrkr2.type=ajp13 worker.wrkr2.socket_timeout=300 worker.wrkr2.lbfactor=1 # # Define lb worker.lb.type=lb worker.lb.sticky_session=True worker.lb.sticky_session_force=False worker.lb.balanced_workers=wrkr1,wrkr2 # # Define a 'jkstatus' worker using status worker.jkstatus.type=status Second, I see a reference to a Session Manager in the Tomcat documentation that can maintain session data across multiple servers. This is the first I've heard about this, is this something Tomcat has built in that I need to enable, or is this third party or something I need to write on my own? (I will be reading more, but quick info from users is helpful). Thank you for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Load Balance sticky_session=True, am I missing something?
Well I found one problem with my workers.properties, but it didn't fix my problem. I used the deprecated 'balanced_workers' on my load balancer configuration instead of the balance_workers. So I'm still stuck, any suggestions? Tim Alberts wrote: I have two tomcat servers (5.5.23) and running mod_jk (1.2.20) with load balancing behind apache. I have a web application that needs to maintain session information. What I'm seeing is that the load balance is alternating requests between the servers equally, as expected, but sessions are getting lost when going between the servers. I thought from reading that the default is sticky_session=True which means the mod_jk will keep sessions going to the same server (if it is available..). This is obviously not happening. Am I doing something wrong, or is there a problem? # workers.properties - ajp13 # # List workers worker.list=lb,jkstatus # # Define wrkr1 worker.wrkr1.port=8009 worker.wrkr1.host=msi1 worker.wrkr1.type=ajp13 worker.wrkr1.socket_timeout=300 worker.wrkr1.lbfactor=1 # # Define wrkr2 worker.wrkr2.port=8009 worker.wrkr2.host=msi2 worker.wrkr2.type=ajp13 worker.wrkr2.socket_timeout=300 worker.wrkr2.lbfactor=1 # # Define lb worker.lb.type=lb worker.lb.sticky_session=True worker.lb.sticky_session_force=False worker.lb.balanced_workers=wrkr1,wrkr2 # # Define a 'jkstatus' worker using status worker.jkstatus.type=status Second, I see a reference to a Session Manager in the Tomcat documentation that can maintain session data across multiple servers. This is the first I've heard about this, is this something Tomcat has built in that I need to enable, or is this third party or something I need to write on my own? (I will be reading more, but quick info from users is helpful). Thank you for any help. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Hogging CPU
tomcat and java versions would help a lot :-) Leon On 5/31/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We have been experiencing a problem where Tomcat causes CPU usage to go to 100%. This slows down our web servers. Has anyone else ever experienced such a problem? We average 150 active connections per web server. What do others average? How do others configure initial memory pool, maximum memory pool and thread stack size (relative to RAM)? We have 2.0 GB of RAM and 2 2.60 GHz CPUs on Windows 2003. Thank you very much. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 6.0.10 + Apache 2.2 4 + mod_jk 1.2.21
Hello, I was looking at the following: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html and I was wondering if there is an update to the section Using Tomcat auto-configure for Tomcat 6.x as the text explicitly states the following: Please note that this example is specific to Tomcat 5.x, unlike other sections of this document which also apply to previous Tomcat branches. I was wondering if there is a Tomcat 6.x example of how to configure a Listener to do the Apache auto-configure. Thanks! The 5.5 example follows: Listener className=org.apache.jk.config.ApacheConfig modJk=/path/to/mod_jk.so / -- __ __ ___ Patrick Ward /_/| //\ /_/| Jet Propulsion Lab || | | |__ \| || | Pasadena, CA ___|| | | |__)/| || |___ M/S 2923-120 /___|| | | |___/ ||/___/| 818-354-7788 |_|/ |_|/ |_|/ [EMAIL PROTECTED] __ - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't seem to get logging to work in Tomcat 5.5.9
Hi Rob, check catalina.out, there should be some message of log4j complaining if it has been loaded but cannot work. You may also add -Dlog4.debug to the java command line, this makes log4j output debug messages on stdout. If you don't see any output of log4j, then I'd suggest calling java with -verbose:class, this makes java print information about every class it loads and from which source it loaded it. Grep for log4j to see if it is at all loaded. Georg Rob Tanner wrote: Hi, I was originally planning to move to Tomcat 6 but backed off for a number of reasons. Now I have Tomcat 5.5.9 installed an working, except for logging (and one other problem that I might be able to resolve on my own if only I could get logging to work). I have never configured Tomcat to log using log4j (Tomcat 4.x's built-in was sufficient). Following the instructions on the website (http://tomcat.apache.org/tomcat-5.5-doc/logging.html), I creating a log4j.properties file and placed it in common/classes -- the only change I made on the example on the webpage was to replace a variable with an absolute path: log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=/var/apache/jakarta-tomcat-5.5.9/logs/tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n I then put log4j-1.2.7.jar and commons-logging-1.1.jar jarfiles in common/lib and started Tomcat. The instructions don't say anything about doing anything else and I've not done very much with log4j other than use it to enable syslog logging in various applications, but it's not working. Any ideas? Thanks, Rob - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat pausing by some strange error
Hi all, I've installed Tomcat 5.5.23 on a RedHat AS 4. Tomcat is communicating Apache by mod_jk. It just stop running last night and I have to run it again today's morning. I've found some messages from Tomcat log file, catalina.out. 31/05/2007 20:22:40 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 31/05/2007 20:22:40 org.apache.catalina.connector.Connector pause SEVERE: Protocol handler pause failed java.net.UnknownHostException: osiris1.auckland.ac.nz: osiris1.auckland.ac.nz at java.net.InetAddress.getLocalHost(InetAddress.java:1308) at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:490) at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:289) at org.apache.jk.server.JkMain.pause(JkMain.java:681) at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:163) at org.apache.catalina.connector.Connector.pause(Connector.java:1032) at org.apache.catalina.core.StandardService.stop(StandardService.java:489) at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734) at org.apache.catalina.startup.Catalina.stop(Catalina.java:602) at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.j ava:645) 31/05/2007 20:22:41 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 31/05/2007 20:22:42 org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 31/05/2007 20:22:42 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime When I start up the tomcat and shutdown again this morning, I have found Tomcat failed to shutdown of Apache Portable Run Time: 1/06/2007 09:43:06 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/jdk1.5.0 _11/jre/lib/i386/client:/usr/java/jdk1.5.0_11/jre/lib/i386:/usr/java/jdk 1.5.0_11/jre/../lib/i386 1/06/2007 09:43:06 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 1/06/2007 09:43:06 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 1365 ms 1/06/2007 09:43:07 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 1/06/2007 09:43:07 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 1/06/2007 09:43:07 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 1/06/2007 09:43:08 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive shibboleth-idp.war log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax). log4j:WARN Please initialize the log4j system properly. 1/06/2007 09:43:09 org.apache.coyote.http11.Http11BaseProtocol start INFO: Starting Coyote HTTP/1.1 on http-8080 1/06/2007 09:43:10 org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 1/06/2007 09:43:10 org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/42 config=null 1/06/2007 09:43:10 org.apache.catalina.storeconfig.StoreLoader load INFO: Find registry server-registry.xml at classpath resource 1/06/2007 09:43:10 org.apache.catalina.startup.Catalina start INFO: Server startup in 3257 ms 1/06/2007 09:59:18 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 1/06/2007 09:59:19 org.apache.catalina.core.StandardService stop INFO: Stopping service Catalina 1/06/2007 09:59:19 org.apache.coyote.http11.Http11BaseProtocol destroy INFO: Stopping Coyote HTTP/1.1 on http-8080 1/06/2007 09:59:19 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: Failed shutdown of Apache Portable Runtime Any one knows what is wrong? Thanks in advance. Eric
Re: Tomcat 5.5 + Apache 2.2 + mod_proxy_ajp
On 5/31/07, Ralf Schneider [EMAIL PROTECTED] wrote: I use the above configuration and have a problem when the Tomcat is restarted. Then the Apache does not forward the requests until it has been restarted too. What's your ProxyPass retry set to? -- Hassan Schroeder [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
adding authentication to unprotected page
Hi All, I was wondering if any of you had experience with this. I want to add a form on the homepage of an application that allows the user to quickly log in (see below) and take them to the protected page. I've never done this before and unfortunately the form below doesn't seem to work, it basically brings me back to the original page. Any ideas? Thanks, Ryan form method=POST action='/package/protected/index.html' table tr tdUsername/td tdinput type=text class=text name=j_username //td /tr tr tdPassword/td tdinput type=password class=text name=j_password //td /tr /table p input type=submit class=button value=Login / /p /form
Re: Tomcat does not start
I had problems with Windows Service Installer too, I'm not sure if it was my mistake. I don't remember if I forgot to stop and start Tomcat properly, or if the JAVA_HOME was set correctly. So, to solve the problem I uninstalled Tomcat , and got the ZIP archive. With the ZIP archive there haven't been any problems on Windows XP, JDK 1.5 and 1.6.x Just unzip it to a directory that doesn't contain spaces , and set JAVA_HOME or JRE_HOME , CATALINA_HOME system environment variables. Hope this helps. -Rashmi On 5/30/07, Len Popp [EMAIL PROTECTED] wrote: Sounds like it might be this problem: http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 There are a couple of workarounds suggested there. -- Len - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat TLS with PKCS11 token
If you are using the JIO Connector (the default if APR isn't installed), then you should just be able to specify keystoreType=PKCS11 on the Connector / element, and configure the PKCS11 setting as in the JCE documents for your Java vendor. If you have more than just the one Tomcat key, then you will also want to specify the keyAlias=myHostAlias option on the Connector /. I'm guessing that this will work with the NIO Connector as well, but I haven't looked. I've got no clue how to do this for the APR Connector :), but if you are using truststoreFile, then you aren't using APR. Lee, Esmond [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I would like to use TOMCAT 6 as an HTTPS server on our windows/linux servers, using a PCI based PKCS11 token that stores the keys for TLS connectivity. Up until now, we've enabled TLS connections using the keystoreFile/keystorePass, truststoreFile/truststorePass attribute pairs in server.xml. Our core application currently uses the PKCS11 token for our keystore, but we would like TOMCAT to use it as well. Is there a way to configure TOMCAT (via server.xml or by other means) to use this token? =20 Thanks in advance. Esmond - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]