Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 74345 invoked by uid 99); 4 Sep 2004 01:04:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [210.168.225.219] (HELO mx-gw1.daitec.co.jp) (210.168.225.219) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 03 Sep 2004 18:04:09 -0700 Received: from mx2.daitec.co.jp ([192.168.21.1]) by mx-gw1.daitec.co.jp (NAVGW 2.5.2.17) with SMTP id M2004090410040505985 for ; Sat, 04 Sep 2004 10:04:05 +0900 Received: from matsuzakiw2k (matsuzakiw2k) by mx2.daitec.co.jp (2.6 Build 1 (Berkeley 8.8.6p2)/8.8.4) with SMTP id KAA00065 for ; Sat, 04 Sep 2004 10:04:05 +0900 Message-ID: <000a01c4921b$13b57d50$5715a8c0@matsuzakiw2k> From: "Tomohiro Matsuzaki" To: "Cactus Users List" References: <200409030801.i8381M113858@smtp-ft3.fr.colt.net> Subject: Re: web.xml parse error Date: Sat, 4 Sep 2004 10:04:06 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Checked: Checked Hi, Vincent, I've done that. Key of the issue is CACTUS-141. Thanks for your help. Tomohiro ----- Original Message ----- From: "Vincent Massol" To: "'Cactus Users List'" Sent: Friday, September 03, 2004 5:01 PM Subject: RE: web.xml parse error > Hi Tomohiro, > > Yes, you're right, it's a bug (but it should still work fine). It's because > the context-param is merged at the end of the file whereas it should located > at the top. Do you think you could open a JIRA issue for this so that we > don't forget to fix it? > > Thanks a lot > -Vincent > > > -----Original Message----- > > From: Tomohiro Matsuzaki [mailto:t-matsuzaki@se.daitec.co.jp] > > Sent: vendredi 3 septembre 2004 06:49 > > To: cactus-user@jakarta.apache.org > > Subject: web.xml parse error > > > > Hi, all. > > > > I am trying the sample in jakarta-cactus-13-1.6.1/samples/servlet > > against JBoss 3.2.2. > > All test case is done with no errors. > > But I got following error in > > samples/servlet/target/test-reports/jboss3x.out: > > > > 13:11:01,418 ERROR [Digester] Parse Error at line 81 column 11: The > > content > > of element type "web-app" must match > > "(icon?,display-name?,description?,distributable?,context- > > param*,filter*,fil > > ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- > > mappin > > g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- > > ref*,se > > curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb- > > loca > > l-ref*)". > > org.xml.sax.SAXParseException: The content of element type "web-app" must > > match > > "(icon?,display-name?,description?,distributable?,context- > > param*,filter*,fil > > ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime- > > mappin > > g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource- > > ref*,se > > curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb- > > loca > > l-ref*)". > > at > > org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHa > > nd > > lerWrapper.java:232) > > at > > org.apache.xerces.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java: > > 17 > > 3) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java: > > 36 > > 2) > > at > > org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java: > > 29 > > 6) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidato > > r. > > java:2959) > > at > > org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java > > :9 > > 18) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElement(XML > > Do > > cumentFragmentScannerImpl.java:1145) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDo > > cu > > mentFragmentScannerImpl.java:988) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispa > > tc > > her.dispatch(XMLDocumentFragmentScannerImpl.java:1446) > > at > > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocu > > me > > ntFragmentScannerImpl.java:333) > > at > > org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParser > > Co > > nfiguration.java:529) > > at > > org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParser > > Co > > nfiguration.java:585) > > at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147) > > at > > org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1 > > 14 > > 8) > > at org.apache.commons.digester.Digester.parse(Digester.java:1548) > > at > > org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig. > > ja > > va:282) > > at > > org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:639) > > at > > org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.jav > > a: > > 243) > > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupp > > or > > t.java:166) > > at > > org.apache.catalina.core.StandardContext.start(StandardContext.java:3568) > > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java > > :8 > > 21) > > at > > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) > > at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) > > at > > org.jboss.web.tomcat.tc4.EmbeddedTomcatService.createWebContext(EmbeddedTo > > mc > > atService.java:530) > > at > > org.jboss.web.tomcat.tc4.EmbeddedTomcatService.performDeploy(EmbeddedTomca > > tS > > ervice.java:309) > > at > > org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:428) > > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) > > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > > pl > > .java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp > > at > > cher.java:284) > > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) > > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > > at $Proxy6.deploy(Unknown Source) > > at > > org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScan > > ne > > r.java:302) > > at > > org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanne > > r. > > java:476) > > at > > org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doSca > > n( > > AbstractDeploymentScanner.java:201) > > at > > org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Abstra > > ct > > DeploymentScanner.java:274) > > at > > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > > pl > > .java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp > > at > > cher.java:284) > > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) > > at > > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.j > > av > > a:976) > > at $Proxy0.start(Unknown Source) > > at org.jboss.system.ServiceController.start(ServiceController.java:394) > > at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > > pl > > .java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp > > at > > cher.java:284) > > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) > > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > > at $Proxy4.start(Unknown Source) > > at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226) > > at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605) > > at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > > 39 > > ) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm > > pl > > .java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at > > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDisp > > at > > cher.java:284) > > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546) > > at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) > > at $Proxy5.deploy(Unknown Source) > > at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384) > > at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291) > > at org.jboss.Main.boot(Main.java:150) > > at org.jboss.Main$1.run(Main.java:395) > > at java.lang.Thread.run(Thread.java:534) > > > > > > > > web.xml in cactus-sample-servlet-cactified.war is like this: > > > > > > > 2.3//EN" > > "http://java.sun.com/dtd/web-app_2_3.dtd"> > > > > > > FilterRedirector > > > > org.apache.cactus.server.FilterTestRedirector > > > > > > FilterRedirector > > /test/filterRedirector.jsp > > > > > > ServletRedirector > > > > org.apache.cactus.server.ServletTestRedirector > class > > > > > > > param1 > > value1 used for testing > > > > > > > > ServletRedirectorSecure > > > > org.apache.cactus.server.ServletTestRedirector > class > > > > > > > > > JspRedirector > > /jspRedirector.jsp > > > > param1 > > value1 used for testing > > > > > > > > ServletRedirector_TestOverride > > > > org.apache.cactus.server.ServletTestRedirector > class > > > > > > > param2 > > value2 used for testing > > > > > > > > TestJsp > > /test/test.jsp > > > > > > ServletRedirector > > /ServletRedirector > > > > > > ServletRedirectorSecure > > /ServletRedirectorSecure > > > > > > JspRedirector > > /JspRedirector > > > > > > ServletRedirector_TestOverride > > /ServletRedirectorOverride > > > > > > > > Cactus Test Redirector > > /ServletRedirectorSecure > > > > > > test > > > > > > > > BASIC > > myrealm > > > > > > test > > > > > > param > > value used for testing > > > > > > > > Did I miss something? > > Thank you. > > > > Tomohiro > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > >