action mappings not found? page not found
In my multiple strus enviroment I have 3 modules. The default and for example config/reflection and config/2 My default struts-config contains the folowing global forward: In my struts-reflection-config I have the following mapping: This mappings maps to a Tiles page, but when starting this page I receive a standard IE page not found error. Not a Apache Tomcat 404 error. I really don't kown what's the problem.. Any help appreciated. _ MSN Zoeken, voor duidelijke zoekresultaten! http://search.msn.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts-config.xml and multiple module
Raj is right; you can use a Tiles plugin in each module. Also: in the tiles-doc application are 3 concrete examples for switching !!! Only problem I'm encoutering is my log files shows each plugin is loaded twice (see lines marked with >>>) and the ReloadTiles and ViewTiles action give a null pointer exception... Starting service Tomcat-Standalone Apache Tomcat/4.0.3 13-aug-2003 14:10:54 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:55 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:10:57 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.apache.struts.tiles.TilesPlugin init >>> INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:10:58 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:58 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 14:10:59 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:00 org.apache.struts.tiles.TilesPlugin init >>> INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 14:11:00 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 14:11:01 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. Starting service Tomcat-Apache Apache Tomcat/4.0.3 -Original Message- From: Raj Atchutuni [mailto:[EMAIL PROTECTED] Sent: woensdag 13 augustus 2003 14:04 To: Struts Users Mailing List Subject: Re: Struts-config.xml and multiple module Laurent, Here is how i implemented mutiple modules. It is working. 1. I am loading all the tile-defs from the 1st-config.xml 2. I removed Tiles-plugin from the 2nd-config.xml. Note: Since i didnt have time to go through books i assumed, I cant use Tiles-plugin in multiple config-xmls. Vola, it is working. Ex: Assumed you have stable Struts 1.1. - config /WEB-INF/1st-config.xml, /WEB-INF/2nd-config.xml - Good luck Laurent MARQUEZ <[EMAIL PROTECTED]> wrote: Hi, please complete my configuration file for multiple module. I have now 2 struts-config.xml And the link in my tiles-def.xml doesn't work, why? ## In web.xml ## config /WEB-INF/struts-config.xml config/project /WEB-INF/struts-config-project.xml ## In tiles-def.xml ## path="/WEB-INF/jsp/layouts/menu.jsp" > link="/project/manager.do" classtype="org.apache.struts.tiles.beans.SimpleMenuItem" /> ## In struts-config-project.xml ## forward="/WEB-INF/jsp/project/manager.jsp"> Any help is a blessing. Laurent. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using multiple modules causes plugins to initialize double - BUG ? - Could someone of the stutrs-dev list respond
Hello, I have encountered a problem when using multiple modules. When I have a plugin attached for just 1 of my modules (not 2), the plugin is initialized twice. This happens for example with the Tiles plugin, but also for the plugin I'm writing myself. The [Tiles definition factory loaded for module '/reflection'.] is loaded twice !! See logfile lines marked with >>> Starting service Tomcat-Standalone Apache Tomcat/4.0.3 13-aug-2003 16:27:20 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 16:27:20 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNul l=true 13-aug-2003 16:27:23 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 16:27:23 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 16:27:24 org.apache.struts.tiles.TilesPlugin init >>> INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 16:27:24 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 16:27:24 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 16:27:24 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 16:27:24 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. 13-aug-2003 16:27:25 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 13-aug-2003 16:27:25 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 13-aug-2003 16:27:26 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='ApplicationResources', returnNull=true 13-aug-2003 16:27:26 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 16:27:27 org.apache.struts.tiles.TilesPlugin init >>> INFO: Tiles definition factory loaded for module '/reflection'. 13-aug-2003 16:27:27 org.apache.struts.util.PropertyMessageResources INFO: Initializing, config='resources.application', returnNull=true 13-aug-2003 16:27:27 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'news' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 16:27:27 org.overdijk.xcontent4struts.ContentFactory createComponent INFO: XContent component 'products' loaded for module '/xcontent4struts-0.3'. 13-aug-2003 16:27:27 org.overdijk.xcontent4struts.XContentPlugIn init INFO: XContent factory loaded for module '/xcontent4struts-0.3'. Starting service Tomcat-Apache Apache Tomcat/4.0.3 Could someone explain why the factory is loaded twice? And further, are the tiles definitions files actually loaded twice ? Cause I went to the source and there is a line which says only the definitions are loaded if there is no context for the given module.. And after the first time they are in context.. Marcel Overdijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tiles Reload and View Action give a null pointer exception when using multiple Struts modules (second try)
My webapp without using modules work fine. When changing to a multiple Struts module impl. both the Tiles actions give a null pointer exception. Could anyone confirm this ? Kind regards, Marcel Overdijk
Tiles Reload and View Action give a null pointer exception when using multiple Struts modules
Can anyone confirm this ? Kind regards, Marcel Overdijk
Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132
Hello, I never noticed it but when I start my application http://localhost:8080/overdijk <http://localhost:8080/overdijk/Welcome.do;jsessionid=C36048429636E35FB1 ECAA5978E23132> I will be forwarded to Welcome. Suddenly (I didn't noticed it before) I see some session information in my url bar: http://localhost:8080/overdijk/Welcome.do;jsessionid=C36048429636E35FB1E CAA5978E23132 When I start struts-documentation I don't see this session information. Can anybody explain why this information is displayed ? Kind regards, Marcel Overdijk
Tiles (vboxLayout.jsp error) not completely working after changing to Struts 1.1 multiple module implementation
Hello, I have a Tiles (Struts 1.1) application running without problems (default config/single module). I have changed the implementation to a Struts multiple module implementation. My default module contains a simple welcome page, and my second config/reflection module contains the 'real' application. When I switch to the reflection module the application is started, the Tiles simpleMenu, header and footer are rendered OK. I also use the vboxLayout.jsp... and this one gives me an ERROR: [ServletException in:WEB-INF/jsp/reflection/layouts/vboxLayout.jsp] /reflection/WEB-INF/jsp/reflection/layouts/' I can't find why I receive this error. Kind regards, Marcel Overdijk
RE: URL missing .do
Steve, Could this also be the same for my problem: I have developed a webapp on Tomcat 4.0.3 and works fine. After deploying it at my provider (also Tomcat 4.0.3) my aren't working Or www.myhost.org/trends.do Or www.myhost.org/test.do Wont'work A Page Not Found error. But at my pc I use http://localhost:8080/myapp/test.do and the action mappings works fine Met vriendelijke groet, Marcel Overdijk -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: dinsdag 27 mei 2003 18:26 To: Struts Users Mailing List Subject: RE: URL missing .do > -Original Message- > From: Marcel Overdijk [mailto:[EMAIL PROTECTED] > Sent: May 27, 2003 12:12 AM > > I have developed a webapp on Tomcat 4.0.3 and works fine. After > deploying it at my provider (Tomcat also 4.0.3) my > aren't working If your web host is using Apache, it needs to be configured to send certain requests to Tomcat. During your local testing you probably access Tomcat directly (http://localhost:8080 ?), so you don't need this mapping. It is likely that your services provider has only set-up mappings for /servlet/* and *.jsp Ask your provider to add the following to your configuration. JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /*.do ajp13 This tells Apache to send all requests for /*.do to Tomcat (using the AJP13 connector). You still need your *.do mapping in WEB.XML that tells Tomcat to send *.do requests to the ActionServlet. The first two lines are probably already configured. Note that the exact configuration required will depend on the connector they have installed but if you ask them to add a the directives and tell them why, they should be able to figure out what's needed for their particular set-up. Good luck Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: not working
Yes, the app is restarted. Other configurations set in the struts-config file are working correct. For example the the Tiles plug-in and the tiles-definitions file. Met vriendelijke groet, Marcel Overdijk -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: dinsdag 27 mei 2003 16:47 To: Struts Users Mailing List Subject: Re: not working Did you restart the app (touch web.xml) after you uploaded it? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: "Marcel Overdijk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 27, 2003 10:38 AM Subject: not working I have developed a webapp on Tomcat 4.0.3 and works fine. After deploying it at my provider (also Tomcat 4.0.3) my aren't working Or www.myhost.org/trends.do Or www.myhost.org/test.do Wont'work A Page Not Found error. But at my pc I use http://localhost:8080/myapp/test.do and the action mappings works fine.... Anybody any suggestion ? Marcel Overdijk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]