tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <...@pidster.com>
Subject Re: Problem moving application to Tomcat 7.0.27
Date Wed, 09 May 2012 19:03:20 GMT
On 08/05/2012 00:26, Mark Eggers wrote:
> ----- Original Message -----
> 
>> From: Frank Serkland <fhserkland@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-name>Granada High School Class of 1986</display-name>    
>> <filter>        <filter-name>struts2</filter-name>        
>> <filter-class>org.apache.catalina.deploy.WebXml.addFilter</filter-class>
   
>> </filter>    <filter-mapping>        
>> <filter-name>struts2</filter-name>        
>> <url-pattern>/*</url-pattern>    </filter-mapping>    
>> <listener>        
>> <listener-class>configuration.ConfigurationListener</listener-class>
   
>> </listener>    <welcome-file-list>        
>> <welcome-file>home.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 
>> addFilter    at 
>> 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 addFilter    at 
>> 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 
>> 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)Caused by: java.lang.NoSuchMethodException: 
>> org.apache.catalina.deploy.WebXml addFilter    at 
>> 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)    ... 
>> 26 moreMay 7, 2012 3:32:36 PM org.apache.catalina.startup.ContextConfig 
>> parseWebXmlSEVERE: Occurred at line 9 column 11
>>
> 
> First of all, this is really impossible to read.
> 
> I understand it's sometimes difficult to format text messages on the list so that they
are legible when using Yahoo.
> 
> That being said, I reformatted the message so that I could read it. Here are the relevant
parts.
> 
> SEVERE: End event threw exceptionjava.lang.NoSuchMethodException:
>   org.apache.catalina.deploy.WebXml addFilter
> 
> May 7, 2012 3:32:36 PM org.apache.catalina.startup.ContextConfig parseWebXml
> SEVERE: Parse error in application web.xml file at
>   jndi:/localhost/ghs1986/WEB-INF/web.xml
>   java.lang.NoSuchMethodException:
>   org.apache.catalina.deploy.WebXml addFilter
> 
> 
> May 7, 2012 3:32:36 PM org.apache.catalina.startup.ContextConfig parseWebXml
> SEVERE: Occurred at line 9 column 11
> 
> And looking at your web.xml file on line 9, column 11:
> 
> <filter>
>   <filter-name>struts2</filter-name>
>   <!-- below is line 9 -->
>   <filter-class>org.apache.catalina.deploy.WebXml.addFilter</filter-class>
> </filter>
> 
> I have no idea what you're trying to accomplish with the above lines.
> 
> If you're using Struts 2, then I believe the front controller should be:
> 
> <filter>
>   <filter-name>struts2</filter-name>
>   <filter-class>
>     org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>   </filter-class>
> 
> </filter>
> <filter-mapping>
>   <filter-name>struts2</filter-name>
>   <url-pattern>/*</url-pattern>
> </filter-mapping>
> 
> You've actually selected a method (not a class) in a class that doesn't implement the
required javax.servlet.Filter interface.

+1

(& a commendation for services to reformatting)


p

> . . . . just my two cents.
> /mde/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


-- 

[key:62590808]


Mime
View raw message