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 60217 invoked by uid 99); 16 Jul 2008 00:08:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Jul 2008 17:08:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.11.83.254] (HELO mail1.ardec.com.au) (203.11.83.254) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2008 00:07:59 +0000 Received: from optimus.ms.a2end.com (optimus.adl.ardec.com.au [192.168.1.70]) by mail1.ardec.com.au (8.14.1/8.14.1) with ESMTP id m6G074E8008638 for ; Wed, 16 Jul 2008 09:37:05 +0930 (CST) Received: from optimus.ms.a2end.com ([192.168.1.70]) by optimus.ms.a2end.com ([192.168.1.70]) with mapi; Wed, 16 Jul 2008 09:34:49 +0930 From: Nicole Luneburg To: Cactus Users List Date: Wed, 16 Jul 2008 09:34:22 +0930 Subject: RE: cactify servletredirector problem Thread-Topic: cactify servletredirector problem Thread-Index: Acjmc4KwfGpkFKv4RLi6xkopH8vodwAY5WuQ Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on mizaru.adl.ardec.com.au X-Virus-Status: Clean X-SMTP-Vilter-Version: 1.3.6 X-Spamd-Symbols: ALL_TRUSTED,AWL,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.3 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-Virus-Checked: Checked by ClamAV on apache.org Hi Petar, Wow I can't believe it, that fixed it! Yes I hope this can be fixed in the future. Thanks! Nicole -----Original Message----- From: Petar Tahchiev [mailto:paranoiabla@gmail.com] Sent: Tuesday, 15 July 2008 8:40 PM To: Cactus Users List Subject: Re: cactify servletredirector problem Hi Nicole, the situation is this: ince version 1.8.0 cactus relies on cargo to successfully cactify the web.xml. I had some debugging this morning and found that the problem is actually in cargo. I do admit that this is a serious problem and so we would like to continue to investigate further. Here is a dirty solution I can provide-place the directive at the bottom of the web.xml, like this: [.....] ProjectNameDS DB Connection jdbc/ProjectNameDS javax.sql.DataSource Container /index.jsp I am not sure yet why, but it seems that cargo looks for the perfect place based on this directive. HTH, Petar. 2008/7/15, Nicole Luneburg : > > Hi Petar, > > This is my web.xml BEFORE the cactify task is run: > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> > > > > @MODULE@ : @TAG@ : @PROJECTNAME@ : @USER@ > > @MODULE@ : @TAG@ : @PROJECTNAME@ : @USER@ > > > TAG > @TAG@ > The CVS tag AKA release version > > > > > tilesDefinitions > /WEB-INF/tiles.xml > > > > > org.apache.tiles.factory.TilesContainerFactor= y.MUTABLE > true > > > > projectname > > org.apache.struts2.dispatcher.FilterDispatc= her > > > > > projectname > /* > > > > > org.apache.struts2.tiles.StrutsTilesListe= ner > > > > /index.jsp > > > > > ServletTestRunner > > org.apache.cactus.server.runner.ServletTes= tRunner > > > action > > org.apache.struts.action.ActionServlet > > config > > /WEB-INF/struts-config.xml > > > definitions-config > /WEB-INF/tiles-defs.xml > > 2 > > > TestAddUser > > com.compname.projectname.servlet.TestAddUs= erServlet > > > TestRemoveUser > > com.compname.projectname.servlet.TestRemov= eUserServlet > > > > TestAddUser > /testadduser > > > TestRemoveUser > /testremoveuser > > > ServletTestRunner > /ServletTestRunner > > > > /tags/struts-bean > > /WEB-INF/tlds/struts-bean.tld > > > /tags/struts-html > > /WEB-INF/tlds/struts-html.tld > > > /tags/struts-logic > > /WEB-INF/tlds/struts-logic.tld > > > > /tags/struts-nested > > /WEB-INF/tlds/struts-nested.tld > > > > /tags/struts-tiles > > /WEB-INF/tlds/struts-tiles.tld > > > > /tags/struts-menu > > /WEB-INF/tlds/struts-menu.tld > > > /tags/struts-displaytag > > /WEB-INF/tlds/displaytag.tld > > > /tags/c > /WEB-INF/tlds/c.tld > > > > > > > ProjectNameSecurityConstraints > > /jsp/test/testLogin.jsp > /jsp/home.jsp > *.action > GET > POST > > > role1 > role2 > role3 > role4 > role5 > > > NONE > > > > > role1 > > > role2 > > > role3 > > > role4 > > > role5 > > > > FORM > projectname_security > > /jsp/logon.jsp > > /jsp/logon-error.jsp > > > > > ProjectNameDS DB Connection > jdbc/ProjectNameDS > javax.sql.DataSource > Container > > > > > > This is what it looks like in the cactified war: > > > > > 2.2//EN" > "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> > > > ${env.MODULE} : ${env.TAG} : @PROJECTNAME@ : nlunebur > > ${env.MODULE} : ${env.TAG} : @PROJECTNAME@ : > nlunebur > > TAG > ${env.TAG} > The CVS tag AKA release version > > > > tilesDefinitions > /WEB-INF/tiles.xml > > > > org.apache.tiles.factory.TilesContainerFactory.MUTABL= E > true > > > projectname > > org.apache.struts2.dispatcher.FilterDispatcher > > > > projectname > /* > > > > org.apache.struts2.tiles.StrutsTilesListener > > > JspRedirector > /jspRedirector.jsp > > > > ServletRedirector > /ServletRedirector > > > > JspRedirector > /JspRedirector > > > /index.jsp > > > > ServletTestRunner > > org.apache.cactus.server.runner.ServletTestRunner<= /servlet-class> > > > action > > org.apache.struts.action.ActionServlet > > config > /WEB-INF/struts-config.xml > > > definitions-config > /WEB-INF/tiles-defs.xml > > 2 > > > TestAddUser > > com.compname.projectname.servlet.TestAddUserServle= t > > > TestRemoveUser > > com.compname.projectname.servlet.TestRemoveUserSer= vlet > > > > ServletRedirector > > org.apache.cactus.server.ServletTestRedirector > > > > TestAddUser > /testadduser > > > TestRemoveUser > /testremoveuser > > > ServletTestRunner > /ServletTestRunner > > > /tags/struts-bean > /WEB-INF/tlds/struts-bean.tld > > > /tags/struts-html > /WEB-INF/tlds/struts-html.tld > > > /tags/struts-logic > > /WEB-INF/tlds/struts-logic.tld > > > > /tags/struts-nested > > /WEB-INF/tlds/struts-nested.tld > > > > /tags/struts-tiles > > /WEB-INF/tlds/struts-tiles.tld > > > > /tags/struts-menu > /WEB-INF/tlds/struts-menu.tld > > > /tags/struts-displaytag > /WEB-INF/tlds/displaytag.tld > > > /tags/c > /WEB-INF/tlds/c.tld > > > > > > ProjectNameSecurityConstraints > > /jsp/test/testLogin.jsp > /jsp/home.jsp > *.action > GET > POST > > > role1 > role2 > role3 > role4 > role5 > > > NONE > > > > role1 > > > role2 > > > role3 > > > role4 > > > role5 > > > FORM > projectname_security > > /jsp/logon.jsp > /jsp/logon-error.jsp > > > > ProjectNameDS DB Connection > jdbc/ProjectNameDS > javax.sql.DataSource > Container > > > > Is that what you were after? > > > -----Original Message----- > From: Petar Tahchiev [mailto:paranoiabla@gmail.com] > > Sent: Monday, 14 July 2008 10:28 PM > To: Cactus Users List > Subject: Re: cactify servletredirector problem > > Hi Nicole, > > > This is really strange, and should never happen. > > Can you paste your source web.xml file? > > Thanks. > > > > The contents of this email are confidential and may be subject to legal o= r > professional privilege and copyright. No representation is made that this > email is free of viruses or other defects. If you have received this > communication in error, you may not copy or distribute any part of it or > otherwise disclose its contents to anyone. Please advise the sender of yo= ur > incorrect receipt of this correspondence. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > -- Regards, Petar! Karlovo, Bulgaria. - - - - - - - - | Author @ Manning Publications. | Technical Consultant @ HP | BGJUG-Bulgarian Java User Group Leader. | Apache Jakarta PMC member. | Jakarta Cactus Lead Developer. | Blogger: http://weblogs.java.net/blog/paranoiabla/ - - - - - - - - Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=3D0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 The contents of this email are confidential and may be subject to legal or = professional privilege and copyright. No representation is made that this e= mail is free of viruses or other defects. If you have received this communi= cation in error, you may not copy or distribute any part of it or otherwise= disclose its contents to anyone. Please advise the sender of your incorrec= t receipt of this correspondence.