Re: tomcat severe error when shutting down service but startup is clean
Unsubscribe Le 12 févr. 2015 15:06, Wirth, Kevin kwi...@astoriabank.com a écrit : I keep getting these weird tomcat errors on shutdown on a newly built system using tomcat 7.0.57 on a windows 2012 server with jdk 1.7 that I can't figure out. This is the catalina log: Feb 12, 2015 8:54:31 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc SEVERE: The web application [/identityiq] registered the JDBC driver [com.microsoft.sqlserver.jdbc.SQLServerDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. Feb 12, 2015 8:54:31 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/identityiq] appears to have started a thread named [Thread-3] but has failed to stop it. This is very likely to create a memory leak. The jdbc driver I am using is in the folder identityiq under the webapps directory in tomcat. It is the sqljdbc4.jar driver. This driver is not in the tomcat\lib directory. Please help because I am getting no help from the vender. Thank you. Kevin Wirth Sr. Systems Engineer Information Services Astoria Bank * (516) 327-7762 | * kwi...@astoriabank.commailto: kwi...@astoriabank.com Astoria Federal Savings is now Astoria Bank. We can now be contacted at our new email addresses @astoriabank.com. This e-mail and any attachments that accompany it are confidential and may be legally privileged. It is intended solely for the use of the individual(s) to whom it was intended to be addressed. Access to this e-mail by anyone else is unauthorized. If you are not the intended recipient, please immediately return the e-mail to the sender and delete the original and any copy from your computer. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to its intended recipient, you are herewith notified that any dissemination, distribution, copying or retention of this communication or the information contained herein is strictly prohibited.
Re: Regarding i think an intrusion
Hi, I am learning to set up a server and I found this article about security http://mon-serveur.anael.eu/doku.php/securite/firewall_iptables On Tue, Apr 29, 2014 at 9:08 PM, Leonardo Santagostini lsantagost...@gmail.com wrote: Hello list, Im facing an issue in 6 tomcat server that are getting penetrated and they are executing malicious scripts on my server. Im using 7.0.53 on my servers. Running Centos 5.8 Let me know what information you need. PS: This is my first mail to this list, so i apologize for this not gentle presentation. Saludos.- Leonardo Santagostini http://ar.linkedin.com/in/santagostini
Re: Eclipse: Server Tomcat v7.0 Server at localhost failed to start.
Maybe you added a .jar file to the build path and there is a conflict with the jars already present in Eclipse and Tomcat. My solution was to remove the jars. On Thu, Feb 13, 2014 at 10:27 PM, Dave Kennedy davek1...@gmail.com wrote: Env: Windows 7 Java: jdk1.7.0_51 STS 3.4.0.RELEASE (Based on Eclipse 4.3.1) Tomcat: apache-tomcat-7.0.50 Tomcat runs from the cmd line startup.bat ( JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_51), but not from within Eclipse Any help or suggestions on how to resolve this would be greatly appreciated. Feb 13, 2014 1:17:22 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jdk1.7.0_51\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Users\USER\bin\Sencha\Cmd\4.0.2.67;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\MySQL\MySQL Utilities 1.3.6\;. Feb 13, 2014 1:17:22 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [http-bio-8080] Feb 13, 2014 1:17:22 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler [ajp-bio-8009] Feb 13, 2014 1:17:22 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 309 ms Feb 13, 2014 1:17:22 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Feb 13, 2014 1:17:22 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.50 Feb 13, 2014 1:17:22 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: java.lang.ExceptionInInitializerError at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:801) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ContextConfig.createWebXmlDigester(ContextConfig.java:522) at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:843) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:389) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139) ... 6 more Caused by: java.lang.NullPointerException at org.apache.tomcat.util.descriptor.DigesterFactory.idFor(DigesterFactory.java:107) at org.apache.tomcat.util.descriptor.DigesterFactory.clinit(DigesterFactory.java:59) ... 14 more Feb 13, 2014 1:17:22 PM org.apache.catalina.core.ContainerBase startInternal SEVERE: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:188) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Catalina.start(Catalina.java:690) at
Re: Test to display an empty form by servlet.
I got it to run in Eclipse Juno. I see that the controller servlet does not mind get-ting an empty field: modelBean.setFirstName(request.getParameter(first_name)); I think the manual gets in trouble because it wants to validate fields like email or telephone, then redisplay the same form, with the values, plus error messages. I'll try to edit the simple-mvc project to do just that. Many thanks. On Thu, Feb 13, 2014 at 9:39 AM, Leo Donahue donahu...@gmail.com wrote: On Wed, Feb 12, 2014 at 2:23 PM, JB MORLA jbmo...@gmail.com wrote: The purpose of this manual is to demonstrate MVC. In that case, the first component that runs is the Controller, that is the servlet. If I display an html form that redirects to the jsp, it's the html form that has the control. You are missing some parts to this. Start here: http://simple.souther.us/ar01s05.html Either deploy the .war file to Tomcat or change it to a .zip and explore the contents. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Test to display an empty form by servlet.
If there is a field called username, in a form with url registration , how can I display the form the first time in Tomcat 7? (When the field is empty)
Re: Test to display an empty form by servlet.
Here is the code I found in a manual written at the time of Tomcat 6: The code belongs to a servlet. There is no index.jsp file nor order.html file. String message; /* * Initializing the message to display : If one of the mandatory fields * is not filled, then we display an error message * else we display a success message */ if ( name.trim().isEmpty() || address.trim().isEmpty() || telephone.trim().isEmpty() || amount == -1 ) { message = Error - You did not fill all the mandatory fields. br a href=\createOrder.jsp\Click here/a to access the order form.; } else { message = Order successfuly created !; } So when I run the project with Tomcat 7 as target, the url : createOrder.jsp points to an empty form the first time. But Tomcat 7 returns an error stating that it can't find the jsp. If I comment out the if.. else test and add some pipes with afile.html and index.jsp, the application works. I don't know how to replace the test for Tomcat 7 I'll try to give name a value like Z and test it as you advise. On Wed, Feb 12, 2014 at 9:32 PM, Leo Donahue donahu...@gmail.com wrote: On Wed, Feb 12, 2014 at 1:10 PM, JB MORLA jbmo...@gmail.com wrote: If there is a field called username, in a form with url registration , how can I display the form the first time in Tomcat 7? (When the field is empty) initialize the username property? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Test to display an empty form by servlet.
The purpose of this manual is to demonstrate MVC. In that case, the first component that runs is the Controller, that is the servlet. If I display an html form that redirects to the jsp, it's the html form that has the control. On Wed, Feb 12, 2014 at 10:18 PM, JB MORLA jbmo...@gmail.com wrote: Here is the code I found in a manual written at the time of Tomcat 6: The code belongs to a servlet. There is no index.jsp file nor order.html file. String message; /* * Initializing the message to display : If one of the mandatory fields * is not filled, then we display an error message * else we display a success message */ if ( name.trim().isEmpty() || address.trim().isEmpty() || telephone.trim().isEmpty() || amount == -1 ) { message = Error - You did not fill all the mandatory fields. br a href=\createOrder.jsp\Click here/a to access the order form.; } else { message = Order successfuly created !; } So when I run the project with Tomcat 7 as target, the url : createOrder.jsp points to an empty form the first time. But Tomcat 7 returns an error stating that it can't find the jsp. If I comment out the if.. else test and add some pipes with afile.html and index.jsp, the application works. I don't know how to replace the test for Tomcat 7 I'll try to give name a value like Z and test it as you advise. On Wed, Feb 12, 2014 at 9:32 PM, Leo Donahue donahu...@gmail.com wrote: On Wed, Feb 12, 2014 at 1:10 PM, JB MORLA jbmo...@gmail.com wrote: If there is a field called username, in a form with url registration , how can I display the form the first time in Tomcat 7? (When the field is empty) initialize the username property? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )
Have tout triés Witherspoon filters? Le 14 janv. 2014 17:39, kalasareddy lingaraja k.lingaraj...@gmail.com a écrit : Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized code response. let me know ways to achieve the task? can we do with any configuration files ? we are using tomcat 6.0.18 waiting for earliest replay
V 7 047 windows x64
Hi, I can't use EL in .jsp files. I have searched the web and sintalled jasper-el.jar and javaee-api 7 0 in the \lib directory, but I keep getting the ELResolver error.
Re: V 7 047 windows x64
I was testing the EL in a .jsp file under Eclipse Kepler. Now I copied the project files under c:\tomcat7\webapps and recompiled the java sources. And the EL works! So the EL problems are in the Eclipse Kepler setup. Many thanks for your reply. Jean On Thu, Dec 26, 2013 at 3:16 PM, André Warnier a...@ice-sa.com wrote: JB MORLA wrote: Hi, I can't use EL in .jsp files. I have searched the web and sintalled jasper-el.jar and javaee-api 7 0 in the \lib directory, but I keep getting the ELResolver error. Hi. You would have a much higher probability of getting useful and quick help, if you pasted the original corresponding Tomcat error log lines in your message, like here : (Note: really do a cut-and-paste directly in your mail message to the list. Do not attach the error log as attachment. This list strips most attachments). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: V 7 047 windows x64
I think there is a little chance that Tomcat uses java.exe while Eclipse uses javaw I can see in the Windows task manager that it is not the same process. I'll try to find an Eclipse newsgroup. Many thanks Jean On Thu, Dec 26, 2013 at 9:46 PM, Martin Gainty mgai...@hotmail.com wrote: Date: Thu, 26 Dec 2013 21:24:27 +0100 Subject: Re: V 7 047 windows x64 From: jbmo...@gmail.com To: users@tomcat.apache.org I was testing the EL in a .jsp file under Eclipse Kepler. Now I copied the project files under c:\tomcat7\webapps and recompiled the java sources. And the EL works! So the EL problems are in the Eclipse Kepler setup. MGthen you should contact the support staff at Eclipse to let them know of this significant bug in Kepler Many thanks for your reply. Jean On Thu, Dec 26, 2013 at 3:16 PM, André Warnier a...@ice-sa.com wrote: JB MORLA wrote: Hi, I can't use EL in .jsp files. I have searched the web and sintalled jasper-el.jar and javaee-api 7 0 in the \lib directory, but I keep getting the ELResolver error. Hi. You would have a much higher probability of getting useful and quick help, if you pasted the original corresponding Tomcat error log lines in your message, like here : (Note: really do a cut-and-paste directly in your mail message to the list. Do not attach the error log as attachment. This list strips most attachments). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org