Re: tomcat7:run with multi maven modules changes
2012/5/9 Albert Kam moonblade.w...@gmail.com: After the advices, i took a peek on the the eclipse maven run configuration that i use to launch tomcat7:run, and i notice the checkbox : Resolve Workspace Artifacts. Ticking that checkbox, and re-run the tomcat7:run works great now, which can see the other modules' changes without rebuilding ! Thanks a lot, i feel i can begin my fire dance now ! Anyway, i just want to report something that may not be related with this topic in case that'd be useful. I have these warnings when starting up tomcat7:run : [INFO] Scanning for projects... [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa che.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset =utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa che.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset =utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat-maven-plugin\2.0-SNAPSHOT\maven-metadata-apac he.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset= utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) It looks you have bad metadata locally. Maybe a misconfigured repo manager. Delete files from C:\Users\albert\.m2\repository\org\apache\tomcat\maven\ to download all again. On Wed, May 9, 2012 at 1:45 AM, Jeff MAURY jeffma...@jeffmaury.com wrote: You need to write a M2E connector for a Maven MOJO that processes your projects files. I don't think this is the case for the tomcat7:run goal and it should work out of of the box in Eclipse. Just need to add a Maven lunch configuration with the proper goal. Regards Jeff On Tue, May 8, 2012 at 5:34 PM, Olivier Lamy ol...@apache.org wrote: I imagine you use tomcat7:run inside eclipse. Do that work outside eclipse ? Perso I don't have any issues as I use only command line and furthermore I don't use eclipse :-). I imagine there is some m2e connector to write 2012/5/8 Albert Kam moonblade.w...@gmail.com: I notice that i have to repeat these steps so that tomcat7:run will see the newest stuffs from other maven modules : - rebuild all of my mvn modules (including my webapp module on which my tomcat7:run-ed, and other dependencies module) - clean my eclipse java project, rebuilding everything - tomcat7:run will then see the newest stuffs Note that i dont need to rebuild maven and eclipse project if i dont modify the webapp maven module, tomcat7 can automatically see the newest changes Ideally i would like to skip rebuilding everything in maven and then eclipse to see the newest changes in the other modules outside webapp module. Are there any tips to achieve this ? Thanks ! -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Jeff MAURY Legacy code often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat7:run with multi maven modules changes
Aha, now the warning is gone. The cause was the old snapshot repository and pluginRepository i was still using. Thank you ! On Wed, May 9, 2012 at 1:33 PM, Olivier Lamy ol...@apache.org wrote: 2012/5/9 Albert Kam moonblade.w...@gmail.com: After the advices, i took a peek on the the eclipse maven run configuration that i use to launch tomcat7:run, and i notice the checkbox : Resolve Workspace Artifacts. Ticking that checkbox, and re-run the tomcat7:run works great now, which can see the other modules' changes without rebuilding ! Thanks a lot, i feel i can begin my fire dance now ! Anyway, i just want to report something that may not be related with this topic in case that'd be useful. I have these warnings when starting up tomcat7:run : [INFO] Scanning for projects... [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa che.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset =utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat7-maven-plugin\2.0-SNAPSHOT\maven-metadata-apa che.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset =utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) [WARNING] The metadata C:\Users\albert\.m2\repository\org\apache\tomcat\maven\tomcat-maven-plugin\2.0-SNAPSHOT\maven-metadata-apac he.snapshots.xml is invalid: end tag name /head must be the same as start tag link from line 56 (position: TEXT seen ...arset= utf-8\n Ext.onReady(Sonatype.init);\n /script\n/head... @65:8) It looks you have bad metadata locally. Maybe a misconfigured repo manager. Delete files from C:\Users\albert\.m2\repository\org\apache\tomcat\maven\ to download all again. -- Do not pursue the past. Do not lose yourself in the future. The past no longer is. The future has not yet come. Looking deeply at life as it is in the very here and now, the practitioner dwells in stability and freedom. (Thich Nhat Hanh) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat6 lookup for remote EJB on glassfish
I'm struggling to get remote EJB from lookup, but with no success, is it posible to this in Apache Tomcat/6.0.18? When I'm using standalone client I get it but inside web application I can't get it work. My web code: Properties props = new Properties(); props.setProperty(org.omg.CORBA.ORBInitialHost, jalovec.arnes.si); props.setProperty(org.omg.CORBA.ORBInitialPort, 3700); final InitialContext ic = new InitialContext(props); CalculatorApi calcEJBCli = (CalculatorApi) ic.lookup(java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi); My pom dependency for web appl: - dependency groupIdorg.glassfish.extras/groupId artifactIdglassfish-embedded-web/artifactId version3.1-b32/version /dependency My EJB 3.1 on glassfish 3.1: @Stateless(mappedName=CalculatorEJB, name=Calculator) Glassfish info for my EJB: -- Portable JNDI names for EJB Calculator : [java:global/Calculator-ejb/Calculator!si.arnes.ejb.local.CalculatorLocalApi, java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi] Glassfish-specific (Non-portable) JNDI names for EJB Calculator : [CalculatorEJB#si.arnes.ejb.remote.CalculatorRemoteApi, CalculatorEJB] Error: -- Name global is not bound in this Context What I'm doing wrong? Regards, Tomaz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat6 ProgrammaticLogin
Is there any known issue about ProgrammaticLogin in Tomcat6? When I used ProgrammaticLogin in stand alone application for lookup remote EJB on glassfish 3.1 I have successes, but when I'm using it inside servlet on Tomcat6 I get org.omg.CORBA.NO_PERMISSION. Regards, Tomaz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat6 ProgrammaticLogin
On 9 May 2012, at 13:47, tomaz tomaz.majerh...@arnes.si wrote: ProgrammaticLogin Is it a library or framework? I've never heard of it. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat6 lookup for remote EJB on glassfish
On 9 May 2012, at 09:12, tomaz tomaz.majerh...@arnes.si wrote: I'm struggling to get remote EJB from lookup, but with no success, is it posible to this in Apache Tomcat/6.0.18? When I'm using standalone client I get it but inside web application I can't get it work. My web code: Properties props = new Properties(); props.setProperty(org.omg.CORBA.ORBInitialHost, jalovec.arnes.si); props.setProperty(org.omg.CORBA.ORBInitialPort, 3700); final InitialContext ic = new InitialContext(props); CalculatorApi calcEJBCli = (CalculatorApi) ic.lookup(java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi); My pom dependency for web appl: - dependency groupIdorg.glassfish.extras/groupId artifactIdglassfish-embedded-web/artifactId version3.1-b32/version /dependency My EJB 3.1 on glassfish 3.1: @Stateless(mappedName=CalculatorEJB, name=Calculator) Glassfish info for my EJB: -- Portable JNDI names for EJB Calculator : [java:global/Calculator-ejb/Calculator!si.arnes.ejb.local.CalculatorLocalApi, java:global/Calculator-ejb/Calculator!si.arnes.ejb.remote.CalculatorRemoteApi] Glassfish-specific (Non-portable) JNDI names for EJB Calculator : [CalculatorEJB#si.arnes.ejb.remote.CalculatorRemoteApi, CalculatorEJB] Error: -- Name global is not bound in this Context What I'm doing wrong? Trying to deploy an EJB / Glassfish app to Tomcat (which is not an EJB container). p Regards, Tomaz - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
tomcat pausing and process killed
Dear all, I have tomcat 5.5.27 and jdk 1.5.0_17 As someone suggested to the list I enabled HeapDumpOnOutOfMemoryError. I have javamelody running to monitor tomcat. The only thing that I see is that memory use increases just before the system crashed. The system has crashed only showing this in the catalina.log: May 8, 2012 12:03:48 PM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Character decoding failed. Parameter skipped. java.io.CharConversionException: isHexDigit at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:87) at org.apache.tomcat.util.buf.UDecoder.convert(UDecoder.java:48) at org.apache.tomcat.util.http.Parameters.urlDecode(Parameters.java:411) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:393) at org.apache.tomcat.util.http.Parameters.processParameters(Parameters.java:344) at org.apache.catalina.connector.Request.parseParameters(Request.java:2401) at org.apache.catalina.connector.Request.getParameterNames(Request.java:1047) at org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:369) at javax.servlet.ServletRequestWrapper.getParameterNames(ServletRequestWrapper.java:178) at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1225) at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:185) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:159) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) May 8, 2012 12:03:48 PM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. Many entries like: May 8, 2012 12:03:48 PM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. until I get : May 8, 2012 1:50:41 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 May 8, 2012 1:50:41 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-443 No heapdump file that I can find (I searched for hprof, heapdump, javacore, nothing). I have just added to the catalina opts this: -XX:HeapDumpPath=/opt/tomcat5/logs/ Just in case it does need a specific place to save the dumps generated. Not sure if the isHexDigit exception is causing this. but it happens 2 hours before the system breaks. I really don't know what to enable to get to know what is causing Tomcat to crash Regards, Miguel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat pausing and process killed
Hi. Miguel Gonzalez wrote: Dear all, I have tomcat 5.5.27 and jdk 1.5.0_17 That's all quite old,and you should probably upgrade. As someone suggested to the list I enabled HeapDumpOnOutOfMemoryError. I have javamelody running to monitor tomcat. The only thing that I see is that memory use increases just before the system crashed. The system has crashed only showing this in the catalina.log: May 8, 2012 12:03:48 PM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Character decoding failed. Parameter skipped. java.io.CharConversionException: isHexDigit ... Many entries like: May 8, 2012 12:03:48 PM org.apache.tomcat.util.http.Parameters processParameters WARNING: Parameters: Invalid chunk ignored. Ther above seems to indicate that your server receives requests with URLs that are not properly URL-encoded. In a URL, roughly-speaking, any character (in fact, any byte) that is not a printable US-ASCII character must be encoded as a %xy hex sequence, where xy is the hexadecimal value of the character. The4 above error seems to indicate that you are receiving request URLs which contain sequences like %xy where xy are not valid hexadecimal digits. In consequence, the URL-decoding part of Tomcat cannot decode these URLs properly, and complains. until I get : May 8, 2012 1:50:41 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 May 8, 2012 1:50:41 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-443 ... Now this seems to be a normal Tomcat shutdown, following a received shutdown command. But it could be the result of running out of memory for example. I do not know if the two are related or not. But in my suspicious mind, I would try to examine which request URLs are the badly-encoded ones, and try to find out where these requests come from. That is because they could very well be attempts to break your server (if it is connected to the Internet e.g.). And maybe your unexplained shutdowns are due to a succesful break-in, or a succesful DOS attack ? Not sure if the isHexDigit exception is causing this. but it happens 2 hours before the system breaks. Maybe an attacker is trying a series of URLs in a row, and finally they manage one that finds a weakness in your very very old Tomcat. I really don't know what to enable to get to know what is causing Tomcat to crash Enabling the AccessLog Valve may enable you to see the bad request URLs. If they do not show up in the Access log (unlikely, since Tomcat apparently continues to run), you may want to set up an Apache httpd front-end to your Tomcat, and log the accesses there. Searching Google for tomcat isHexDigit attack provides some links you might want to look at. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat pausing and process killed
Maybe an attacker is trying a series of URLs in a row, and finally they manage one that finds a weakness in your very very old Tomcat. I really don't know what to enable to get to know what is causing Tomcat to crash Enabling the AccessLog Valve may enable you to see the bad request URLs. If they do not show up in the Access log (unlikely, since Tomcat apparently continues to run), you may want to set up an Apache httpd front-end to your Tomcat, and log the accesses there. Searching Google for tomcat isHexDigit attack provides some links you might want to look at. I will check it, however I don't see in the access logs something relevant. Any string I can check or status code? Miguel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow downloads through mod_jk on Windows XP
On 08/05/2012 22:13, Caldarale, Charles R wrote: From: Andy Wang [mailto:aw...@ptc.com] Subject: Re: Slow downloads through mod_jk on Windows XP Downloading a large file through mod_jk to tomcat looks like this: 2012-05-08 16:01:22 (15.0 MB/s) - sol-11--text-x86.iso.8 saved [450799616/450799616] Downloading the same large file directly through apache looks like: 2012-05-08 16:01:58 (19.3 MB/s) - sol-11--text-x86.iso.11 saved [450799616/450799616] So apache still beats tomcat by a good chunk No, httpd (not Apache, which is an open source software organization) beats httpd+Tomcat - any other result would be violating several laws of physics. Might be interesting to measure just Tomcat in your environment. But preferably a supported non-ancient version of Tomcat. p - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: Problem moving application to Tomcat 7.0.27
On 08/05/2012 00:26, Mark Eggers wrote: - Original Message - From: Frank Serkland fhserkl...@yahoo.com To: users@tomcat.apache.org Cc: Sent: Monday, May 7, 2012 3:33 PM Subject: Problem moving application to Tomcat 7.0.27 I am having a problem moving an application from Tomcat 6 to Tomcat 7.0.27. Can anyone help me? Here is my web.xml. ?xml version=1.0 encoding=UTF-8?web-app id=WebApp_ID version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameGranada High School Class of 1986/display-name filterfilter-namestruts2/filter-name filter-classorg.apache.catalina.deploy.WebXml.addFilter/filter-class /filterfilter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern/filter-mapping listener listener-classconfiguration.ConfigurationListener/listener-class /listenerwelcome-file-list welcome-filehome.jsp/welcome-file /welcome-file-list/web-app Here is the error log on my console.SEVERE: End event threw exceptionjava.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilterat org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:855) at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1051) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1825) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1201) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)at java.util.concurrent.FutureTask.run(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source)May 7, 2012 3:32:36 PM org.apache.catalina.startup.ContextConfig parseWebXmlSEVERE: Parse error in application web.xml file at jndi:/localhost/ghs1986/WEB-INF/web.xmljava.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilterat org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687) at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719) at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1054) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at
[OT] Calling all date API nerds
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Stephen Colebourne (author of Jodatime and head of JSR-310/date API) recently sent out a call-to-action on the JSR-310 mailing list, and ask that the link be distributed far and wide. He wants to know how the wider Java community feels about method naming for a date API (things like which is better: getDay() or getDayOfYear()). Anyone who feels sufficiently motivated to weigh-in should head on over: it takes 2 minutes to fill-out this 10-item survey. Please could I ask you to fill in this survey on JSR-310 method naming? http://www.rationalsurvey.com/s/3775 Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+qwcoACgkQ9CaO5/Lv0PCCQwCfZ4N2bj99h+Ad4ab48JLIEkso PVoAn0xECbfE6QggErRzZqSiS9Vd3+rO =DKo5 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Slow downloads through mod_jk on Windows XP
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andy, On 5/8/12 6:41 PM, Andy Wang wrote: Initial benchmarks seem to show that the behavior between tomcats is not an issue. Do you mean that Tomcat performance appears to be the same regardless of version? That's both good and bad... I thought there were some performance improvements to the connectors from 5.5- 6.0. Maybe that was 4.x-5.5. Tomcat7 is using JDK 1.7 and this is interesting. The benchmarks with tomcat7+jdk1.7 vary widely across the board (both through ajp and direct http to tomcat) from 30s-40sMB/s. Java 1.6 seems alot more consistent. Not sure why yet. That is interesting. On the other hand, the server /is/ on a virtual machine, and you never know what other processes are stealing focus. Many VMs are notorious for bad IO throughput (I'm looking at you, OpenVZ). I've also moved off the crappy Windows XP VM I was provided to a more recent Windows 2008 VM as well as a fresh Windows XP SP3 VM. In past experience it seems windows XP and windows 2003 were the worst of the bunch with the ajp downloads dropping as low as 4-5MB/s over time. Have you tried bare hardware? I'm going to run a barrage of tests and provide the numbers. Do you think ab -n 5 and allowing ab to average the values of 5 hits for the ~440MB iso is a sound average? Some tips for this kind of testing: 1. Don't run ab on localhost: all the numbers will be worthless 2. Run ab with a range of concurrencies, including c=1 3. Make /lots/ of requests. IMO, 5 requests is really a pinhole analysis. I would make as many requests as you can over 10 minutes and see what the throughput ends up being. I'll compare Windows XP performance and Windows 2008 performance and after that I'll do the same on a Linux VM to get a better comparison. It will be good to see. If you want some really crappy scripts to get you going, feel free to start with mine from a while back (look in the scripts subdir): http://people.apache.org/~schultz/ApacheCon%20NA%202010/ Those scripts can run a ... lot of ab tests with lots of different concurrencies against a series of URLs -- that allows you to set up everything with, say, a different path or port number to get the various setups (bare httpd, httpd+mod_jk, httpd+mod_proxy, etc.) and then let it run all night. It will also produce some tables for you that can then easily be graphed. I also did bump up the ajpPacket size to 64K with no noticeable change to the benchmark numbers. So while 8k seems crappy it doesn't seem to be an issue. Given that apache and tomcat are both local I wouldn't expect that to be a big problem with 8k chunks given the near non-existent latency of local connections. It's good to know that the packet size didn't affect performance, but I agree that localhost communication is always magically-fast no mater what. I plan on doing both local ab requests as well as remote. The problem with remote is that our network is busy, so it may account for some variations but I don't think I can get our IT to segment me anything for this purpose :(. Just get a crossover cable and use static IP addresses. I'm not so concerned about a 25% hit. I'm really more concerned with the drop to 4-5MB/s over time that seems to happen. Does this happen locally or only remotely? I wonder if you're hitting some kind of traffic-shaping or QOS rules on your own internal network. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+qxKYACgkQ9CaO5/Lv0PAs4QCgtAhZuB0Xc9MJJ0yo1YJPE3VQ P9UAoKRs+qE/DsdonYhCYI+WUkujCCoK =GVQX -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat pausing and process killed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 5/9/12 11:29 AM, Miguel Gonzalez wrote: I will check it, however I don't see in the access logs something relevant. Any string I can check Anything with %-codes that are invalid. You'll have to write your own regular parser or regex to find them. or status code? Uh, 400 or 500? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+qyeMACgkQ9CaO5/Lv0PD9QQCguRk0Z8nEd313mohONnIzohtu wlcAnibOJhZ3uesL2Qk5KAYqQ8BeO1Zu =jiH/ -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat from remote subnet
I enabled logging and was able to find that the log comes back with code 200 which is my understanding that everything connects properly. I have found that I am able to open any size html file, and jpeg files under 31k from the remote subnet off of the tomcat server. Anything else from the tomcat server just continues to try and load. We don't have any problems loading any of our programs or files from the remote subnet from Window based machines on the local side. Is there any kind of a time out period tha the tomcat server expects a response back from the client before it will send data? When we try to load the program, firefox and internet explorer continues to say that it is waiting for data from the tomcat server but never gets past that point. Thanks. -Original Message- From: Charles Shreve [mailto:char...@citinc.biz] Sent: Monday, May 07, 2012 4:40 PM To: Tomcat Users List; Mark Eggers Subject: RE: Tomcat from remote subnet You've said very little about your environment. It would be nice to know: 1. Tomcat version - be precise 2. Package install or downloaded from tomcat.apache.org 3. Fronted by Apache HTTPD or not 4. If fronted by Apache HTTPD, how (mod_proxy_http, mod_proxy_ajp, mod_ajp) That being said, I'll make some guesses. I'm going to guess for 1 and 2 . . . Tomcat 5.5.x installed from an RPM. For 3, I'm going to guess no, and that you're either running as root for ports 80 and 443 (not advisable) or using commons-daemon. Since I'm guessing 3 is no, that renders question 4 moot. By default the access log valve is commented out in the stock Tomcat 5.5.x and 6.0.x. It's enabled by default in Tomcat 7.0.x. To turn it on in 5.5.x, you need to find server.xml and uncomment the following section. !-- Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- The entry will look a bit different for Tomcat 6.0.x, but it should be fairly obvious. Then restart your Tomcat service. Now you will need to find your log file. I suspect that RedHat places the log files in /var/log or a subdirectory. If this is a stock Tomcat installation, then the log file will be in a subdirectory called logs of your Tomcat installation. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Mark, Tomcat version is 5.5.23 I'm not sure how it was installed, as I was not involved with the setup of tomcat from the beginning so I can't answer that question. If fronted by Apache, I'm not sure, but I do not believe so, because Apache is not running. Unfortunately, we are using ports 80 and 443. Again, I got handed this project because it wasn't working right, so I'm caught in the middle with the whole setup. I have looked at the server.xml file and found that the log is commented out, so I will get that changed which will hopefully point us to our main problem. Thanks, Charles - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat from remote subnet
2012/5/9 Charles Shreve char...@citinc.biz: I enabled logging and was able to find that the log comes back with code 200 which is my understanding that everything connects properly. I have found that I am able to open any size html file, and jpeg files under 31k from the remote subnet off of the tomcat server. Anything else from the tomcat server just continues to try and load. We don't have any problems loading any of our programs or files from the remote subnet from Window based machines on the local side. Is there any kind of a time out period tha the tomcat server expects a response back from the client before it will send data? When we try to load the program, firefox and internet explorer continues to say that it is waiting for data from the tomcat server but never gets past that point. I'm lost , sorry Have you could to interchange HTTP traffic (both directions) between remote side and that machine , via VPN? Have you could to interchange HTTP traffic between remote side and any war deployed into that Tomcat server , via VPN? Have you could to interchange HTTP traffic between remote side and any war deployed into anotherTomcat server on another machine , via VPN? Could be a problem with a firewall and the returned HTTP traffic ? Thanks. -Original Message- From: Charles Shreve [mailto:char...@citinc.biz] Sent: Monday, May 07, 2012 4:40 PM To: Tomcat Users List; Mark Eggers Subject: RE: Tomcat from remote subnet You've said very little about your environment. It would be nice to know: 1. Tomcat version - be precise 2. Package install or downloaded from tomcat.apache.org 3. Fronted by Apache HTTPD or not 4. If fronted by Apache HTTPD, how (mod_proxy_http, mod_proxy_ajp, mod_ajp) That being said, I'll make some guesses. I'm going to guess for 1 and 2 . . . Tomcat 5.5.x installed from an RPM. For 3, I'm going to guess no, and that you're either running as root for ports 80 and 443 (not advisable) or using commons-daemon. Since I'm guessing 3 is no, that renders question 4 moot. By default the access log valve is commented out in the stock Tomcat 5.5.x and 6.0.x. It's enabled by default in Tomcat 7.0.x. To turn it on in 5.5.x, you need to find server.xml and uncomment the following section. !-- Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ -- The entry will look a bit different for Tomcat 6.0.x, but it should be fairly obvious. Then restart your Tomcat service. Now you will need to find your log file. I suspect that RedHat places the log files in /var/log or a subdirectory. If this is a stock Tomcat installation, then the log file will be in a subdirectory called logs of your Tomcat installation. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Mark, Tomcat version is 5.5.23 I'm not sure how it was installed, as I was not involved with the setup of tomcat from the beginning so I can't answer that question. If fronted by Apache, I'm not sure, but I do not believe so, because Apache is not running. Unfortunately, we are using ports 80 and 443. Again, I got handed this project because it wasn't working right, so I'm caught in the middle with the whole setup. I have looked at the server.xml file and found that the log is commented out, so I will get that changed which will hopefully point us to our main problem. Thanks, Charles - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: tomcat pausing and process killed
On 09/05/2012 21:47, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 5/9/12 11:29 AM, Miguel Gonzalez wrote: I will check it, however I don't see in the access logs something relevant. Any string I can check Anything with %-codes that are invalid. You'll have to write your own regular parser or regex to find them. or status code? Uh, 400 or 500? I don't find anything weird in the access log, I can't relate any of the Invalid chunk ignored to any GET or POST. In fact checking at a particular time I don't find any weird entry Parsing 400 or 500 errors don't show anything either. Miguel - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Enabling compression in embedded tomcat 7
I see XML options for enabling compression but am not seeing how this is done programmatically with an embedded tomcat instance. thanks. --adam - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: how
On Wed, 2012-05-09 at 20:29 -0500, Reissner Pabón wrote: how can i conect apache toncat 7 to oracle 10 g or oracle 11 g an adobe flex? to make a ria? tnaks Your question is too broad, as is your subject line. Please read this: http://catb.org/~esr/faqs/smart-questions.html Also, if you're trying to write an RIA you'll probably get better help on the Adobe forums. signature.asc Description: This is a digitally signed message part