Vincent Massol wrote: >Sam, > >I think you should better read both : > >- E:\Dev\jakarta-cactus\documentation\dist\doc\getting_started.html, >which explains how Cactus tests are packaged > >and > >- E:\Dev\jakarta-cactus\documentation\dist\doc\howto_config.html which >explains how to configure your application web.xml. > >:-) > >Then, come back here and ask your question if something was not clear >from the documentation. > Well I've reread the documentation for the 3rd time but still feel no wiser.
In the first instance I am confused why I should need to edit the web.xml files in a sample that comes prepackaged with cactus. I mean surely the sample is a fixed thing, why do I need to reconfigure the web.xml regarding information that is intrinsic to the existing sample? Why can't it just be configured already? I can't see anything in the documents that says I need to change the web.xml file in my actual tomcat distribution, so I haven't tried that assuming that I need to make some modifications to the three different web.xml files in the sample/conf/ sample/conf/test/ and sample/conf/test/tomcat40 I have identified that the main web.xml that is being accessed from sample/conf/test/ and that the sample/conf/test/tomcat40/ web.xml is also required to be "added" I have tried various combinations of placing the web.xml file described in D:\jakarta-cactus-23-1.2\doc\howto_config.html in both of these places, in either, combining it with the existing web.xml that was in these locations originally, and so forth. I have not improved upon my original error and now have new ones such as the one appended below. I would say that at least three things are unclear from your documentation. 1. Which web.xml file I am supposed to be editing? 2. Am I supposed to add the example web.xml to the existing ones or replace them? 3. Am I supposed to be taking this package and placing it in my tomcat webapps, and modifying a web.xml file over there? Any help will be greatly appreciated. CHEERS> SAM [excuse the illegible characters, my operating system is japanese] start_tomcat_40: [java] HttpConnector ???????IP???????????????????? [java] ???? Tomcat-Standalone ?????? [java] Apache Tomcat/4.0.3 [java] StandardHost[localhost]: URL jar:file:D:\jakarta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test.war!/ ?????????? /test ?Web?????????????????? [java] WebappLoader[/test]: ????????????????? D:\jakarta-tomcat-4.0.3\work\localhost\test ?????? [java] WebappLoader[/test]: JAR /WEB-INF/lib/cactus.jar ? D:\jakarta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-INF\lib\cactus.jar ?????? [java] WebappLoader[/test]: JAR /WEB-INF/lib/httpclient.jar ? D:\jakarta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-INF\lib\httpclient.jar ?????? [java] WebappLoader[/test]: JAR /WEB-INF/lib/junit.jar ? D:\jakarta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-INF\lib\junit.jar ?????? [java] WebappLoader[/test]: JAR /WEB-INF/lib/log4j.jar ? D:\jakarta-cactus-23-1.2\sample\target\test\tomcat40\webapps\test\WEB-INF\lib\log4j.jar ?????? [java] StandardManager[/test]: ????????? java.security.SecureRandom ???????????? [java] StandardManager[/test]: ??????????????????? [java] ERROR reading java.io.ByteArrayInputStream@1f2ee1 [java] At Line 38 /web-app/servlet/ [java] [java] ContextConfig[/test]: ?????????web.xml???????? [java] java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique [java] java.lang.IllegalArgumentException: addChild: Child name 'jsp' is not unique [java] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) [java] at org.apache.catalina.core.StandardContext.addChild(StandardContext.java:1276) [java] at java.lang.reflect.Method.invoke(Native Method) [java] at org.apache.catalina.util.xml.AddChild.end(XmlMapper.java:811) [java] at org.apache.catalina.util.xml.XmlMapper.matchEnd(XmlMapper.java:419) [java] at org.apache.catalina.util.xml.XmlMapper.endElement(XmlMapper.java:119) [java] at org.xml.sax.helpers.XMLReaderAdapter.endElement(XMLReaderAdapter.java:347) [java] at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1523) [java] at org.apache.crimson.parser.Parser2.content(Parser2.java:1766) [java] at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1494) [java] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) [java] at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) [java] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) [java] at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:326) [java] at javax.xml.parsers.SAXParser.parse(SAXParser.java:101) [java] at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) [java] at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:256) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
