struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raja Nagendra Kumar" <Nagendra.R...@tejasoft.com>
Subject SEVERE: Parse Error at line 148 column 37: Attribute "cancellable" must be declared for element type "action"
Date Mon, 18 Sep 2006 06:53:43 GMT
Hi,

I see the following error when struts-faces-example2-1.3.5.war example is 
deployed in tomcat 5.5.7.

This the way to fix the same (hope the development team of struts correct 
the same in SVN)

Change the dtd  reference in 'struts-config.xml' in web-inf directory from


<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">

to

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd">

i.e struts-config_1_1.dtd should be changed to struts-config_1_3.dtd

Regards,
Raja Nagendra Kumar,
C.T.O,
www.tejasoft.com

Sep 18, 2006 12:06:59 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 148 column 37: Attribute "cancellable" must be 
decla
red for element type "action".
org.xml.sax.SAXParseException: Attribute "cancellable" must be declared for 
elem
ent type "action".
        at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAX
ParseException(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(Unk
nown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.addDTDDef
aultAttrsAndValidate(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleSta
rtElement(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElem
ent(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scan
StartElement(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDispatcher.dispatch(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at 
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at org.apache.commons.digester.Digester.parse(Digester.java:1572)
        at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionSe
rvlet.java:745)
        at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet
.java:686)
        at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:353)
        at javax.servlet.GenericServlet.init(GenericServlet.java:211)
        at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
java:1105)
        at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:93
2)
        at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
t.java:3917)
        at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
201)
        at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:759)
        at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:73
9)
        at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at 
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

        at 
org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698
)
        at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472
)
        at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
        at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:310)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442
)
        at 
org.apache.catalina.core.StandardService.start(StandardService.java:4
50)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432) 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message