Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener
On 20/06/2012 18:57, Cassano, Chris wrote: Hi, I'm getting a fatal error when I start tomcat. Now I would think that servlet-api.jar is missing from the tomcat classpath but if I do -verbose:class I can clearly see tomcat using other classes from that jar so I know it's already included: [Loaded javax.servlet.http.HttpServletRequest from file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/lib/servlet-api.jar] The exact error I'm getting is: java.lang.Error: Unresolved compilation problems: The import javax.servlet.http.HttpSessionAttributeListener cannot be resolved The import javax.servlet.http.HttpSessionBindingEvent cannot be resolved HttpSessionAttributeListener cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type The file that gives this error has import javax.servlet.http.*; at the top so it appears that I've already imported the necessary classes. How can I fix this fatal error? Why does tomcat see javax.servlet.http.HttpServletRequest but not javax.servlet.http.HttpSessionAttributeListener? I'm using Tomcat version 6.0 on Windows XP SP3. 6.0.what? Have you accidentally put the Servlet API jar in your apps WEB-INF/lib? p -- [key:62590808] signature.asc Description: OpenPGP digital signature
RE: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener
The Tomcat version number is 6.0.33 and I just checked the WEB-INF/lib folder and I don't see servlet-api.jar. Thanks Chris Cassano Emprise Corporation (http://www.emprisecorporation.com) (860) 464-8555 -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 21, 2012 7:09 AM To: Tomcat Users List Subject: Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener On 20/06/2012 18:57, Cassano, Chris wrote: Hi, I'm getting a fatal error when I start tomcat. Now I would think that servlet-api.jar is missing from the tomcat classpath but if I do -verbose:class I can clearly see tomcat using other classes from that jar so I know it's already included: [Loaded javax.servlet.http.HttpServletRequest from file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/lib/servlet-api.jar] The exact error I'm getting is: java.lang.Error: Unresolved compilation problems: The import javax.servlet.http.HttpSessionAttributeListener cannot be resolved The import javax.servlet.http.HttpSessionBindingEvent cannot be resolved HttpSessionAttributeListener cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type The file that gives this error has import javax.servlet.http.*; at the top so it appears that I've already imported the necessary classes. How can I fix this fatal error? Why does tomcat see javax.servlet.http.HttpServletRequest but not javax.servlet.http.HttpSessionAttributeListener? I'm using Tomcat version 6.0 on Windows XP SP3. 6.0.what? Have you accidentally put the Servlet API jar in your apps WEB-INF/lib? p -- [key:62590808] - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener
On 21/06/2012 13:17, Cassano, Chris wrote: The Tomcat version number is 6.0.33 and I just checked the WEB-INF/lib folder and I don't see servlet-api.jar. Thanks Chris Cassano Emprise Corporation (http://www.emprisecorporation.com) (860) 464-8555 -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 21, 2012 7:09 AM To: Tomcat Users List Subject: Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener On 20/06/2012 18:57, Cassano, Chris wrote: Hi, I'm getting a fatal error when I start tomcat. Now I would think that servlet-api.jar is missing from the tomcat classpath but if I do -verbose:class I can clearly see tomcat using other classes from that jar so I know it's already included: [Loaded javax.servlet.http.HttpServletRequest from file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/lib/servlet-api.jar] The exact error I'm getting is: java.lang.Error: Unresolved compilation problems: The import javax.servlet.http.HttpSessionAttributeListener cannot be resolved The import javax.servlet.http.HttpSessionBindingEvent cannot be resolved HttpSessionAttributeListener cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type The file that gives this error has import javax.servlet.http.*; at the top so it appears that I've already imported the necessary classes. How can I fix this fatal error? Why does tomcat see javax.servlet.http.HttpServletRequest but not javax.servlet.http.HttpSessionAttributeListener? I'm using Tomcat version 6.0 on Windows XP SP3. 6.0.what? Have you accidentally put the Servlet API jar in your apps WEB-INF/lib? p Are there any other messages in your log files? Can you post the full stacktrace please? In which file is the code? A Servlet class or a JSP? p -- [key:62590808] signature.asc Description: OpenPGP digital signature
Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 6/21/12 7:08 AM, Pid wrote: On 20/06/2012 18:57, Cassano, Chris wrote: Hi, I'm getting a fatal error when I start tomcat. Now I would think that servlet-api.jar is missing from the tomcat classpath but if I do -verbose:class I can clearly see tomcat using other classes from that jar so I know it's already included: [Loaded javax.servlet.http.HttpServletRequest from file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/lib/servlet-api.jar] The exact error I'm getting is: java.lang.Error: Unresolved compilation problems: The import javax.servlet.http.HttpSessionAttributeListener cannot be resolved The import javax.servlet.http.HttpSessionBindingEvent cannot be resolved HttpSessionAttributeListener cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type HttpSessionBindingEvent cannot be resolved to a type The file that gives this error has import javax.servlet.http.*; at the top so it appears that I've already imported the necessary classes. How can I fix this fatal error? Why does tomcat see javax.servlet.http.HttpServletRequest but not javax.servlet.http.HttpSessionAttributeListener? I'm using Tomcat version 6.0 on Windows XP SP3. 6.0.what? Have you accidentally put the Servlet API jar in your apps WEB-INF/lib? Though that seems the most likely situation given the circumstances, Tomcat isn't supposed to allow the servlet API to be loaded by a webapp, so in that case it would have been a Tomcat bug. Odd that it's a java.lang.Error and not something more specific like NCDFE, etc. - -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/jkfwACgkQ9CaO5/Lv0PDvmwCfY3yw5mwtOSNiJ/1jAanFM961 PmwAn3pM1ltqJScH72qICAK3fWRdoUcU =bSSB -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Confusing tomcat error - can't find javax.servlet.http.HttpSessionAttributeListener Odd that it's a java.lang.Error and not something more specific like NCDFE, etc. Which makes me suspect the message isn't coming out of Tomcat, but rather from something buried in the webapp. - 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