Re: [S2] Unable to get Struts 2.0.6 working
Ah-ha! Thank you! Ian Roughley wrote: I think you need to change the struts.properties file to enable .do as the extension rather than .action - this can also be achieved from the struts.xml file. /Ian ChristopherAngel wrote: I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar struts.xml: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=Struts extends=struts-default action name=StrutsSomething class=StrutsSomething result/StrutsSomething.jsp/result /action /package /struts web.xml: web-app id=WebApp_9 version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts Something/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app When I deploy my webapp no errors are thrown but when i go to http://localhost:8084/MyProject/StrutsSomething.do I get a 404. The port and host are correct as this is the tomcat instance I always use. I have also put breakpoints in my StrutsSomething Action but it is not reaching this code. Please could some one tell me if there is anything in my configuration that I am missing? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9372027 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Unable to get Struts 2.0.6 working
No nothing. Musachy Barroso wrote: Any error on tomcat's log? musachy On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote: I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar struts.xml: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=Struts extends=struts-default action name=StrutsSomething class=StrutsSomething result/StrutsSomething.jsp/result /action /package /struts web.xml: web-app id=WebApp_9 version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts Something/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app When I deploy my webapp no errors are thrown but when i go to http://localhost:8084/MyProject/StrutsSomething.do I get a 404. The port and host are correct as this is the tomcat instance I always use. I have also put breakpoints in my StrutsSomething Action but it is not reaching this code. Please could some one tell me if there is anything in my configuration that I am missing? -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358123 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358308 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Unable to get Struts 2.0.6 working
A 404? Does the JSP exist at the root level of your deployment? --- ChristopherAngel [EMAIL PROTECTED] wrote: No nothing. Musachy Barroso wrote: Any error on tomcat's log? musachy On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote: I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar struts.xml: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=Struts extends=struts-default action name=StrutsSomething class=StrutsSomething result/StrutsSomething.jsp/result /action /package /struts web.xml: web-app id=WebApp_9 version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts Something/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app When I deploy my webapp no errors are thrown but when i go to http://localhost:8084/MyProject/StrutsSomething.do I get a 404. The port and host are correct as this is the tomcat instance I always use. I have also put breakpoints in my StrutsSomething Action but it is not reaching this code. Please could some one tell me if there is anything in my configuration that I am missing? -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358123 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358308 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Unable to get Struts 2.0.6 working
To be more specific I mean there are no errors: INFO: Reloading this Context has started 07-Mar-2007 17:54:47 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register INFO: Parsing configuration file [struts-default.xml] 07-Mar-2007 17:54:47 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register INFO: Parsing configuration file [struts-plugin.xml] 07-Mar-2007 17:54:47 com.opensymphony.xwork2.config.providers.XmlConfigurationProvider register INFO: Parsing configuration file [struts.xml] 07-Mar-2007 17:54:47 org.apache.struts2.config.Settings getLocale WARNING: Settings: Could not parse struts.locale setting, substituting default VM locale 07-Mar-2007 17:54:47 com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory clinit INFO: Detected GenericsObjectTypeDeterminer, initializing it... 07-Mar-2007 17:54:47 com.opensymphony.xwork2.util.XWorkConverter getInstance INFO: Detected AnnotationXWorkConverter, initializing it... ChristopherAngel wrote: No nothing. Musachy Barroso wrote: Any error on tomcat's log? musachy On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote: I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar struts.xml: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=Struts extends=struts-default action name=StrutsSomething class=StrutsSomething result/StrutsSomething.jsp/result /action /package /struts web.xml: web-app id=WebApp_9 version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts Something/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app When I deploy my webapp no errors are thrown but when i go to http://localhost:8084/MyProject/StrutsSomething.do I get a 404. The port and host are correct as this is the tomcat instance I always use. I have also put breakpoints in my StrutsSomething Action but it is not reaching this code. Please could some one tell me if there is anything in my configuration that I am missing? -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358123 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358348 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Unable to get Struts 2.0.6 working
Yes it does, I am able to go directly to it http://localhost:8084/MyProject/StrutsSomething.jsp Dave Newton-4 wrote: A 404? Does the JSP exist at the root level of your deployment? --- ChristopherAngel [EMAIL PROTECTED] wrote: No nothing. Musachy Barroso wrote: Any error on tomcat's log? musachy On 3/7/07, ChristopherAngel [EMAIL PROTECTED] wrote: I am unable to get my own example web app working with struts 2.0.6 I am using Netbeans 5.5 and tomcat 5.5.17 and have included the following jars: commons-collections-3.2.jar freemarker-2.3.8.jar struts2-core-2.0.6.jar commons-logging-1.0.4.jar ognl-2.6.11.jar xwork-2.0.1.jar struts.xml: !DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd; struts package name=Struts extends=struts-default action name=StrutsSomething class=StrutsSomething result/StrutsSomething.jsp/result /action /package /struts web.xml: web-app id=WebApp_9 version=2.4 xmlns= http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; display-nameStruts Something/display-name filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping filter-namestruts2/filter-name url-pattern*.do/url-pattern /filter-mapping welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list /web-app When I deploy my webapp no errors are thrown but when i go to http://localhost:8084/MyProject/StrutsSomething.do I get a 404. The port and host are correct as this is the tomcat instance I always use. I have also put breakpoints in my StrutsSomething Action but it is not reaching this code. Please could some one tell me if there is anything in my configuration that I am missing? -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358123 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358308 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Unable-to-get-Struts-2.0.6-working-tf3363724.html#a9358453 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] Unable to get Struts 2.0.6 working
Are you sure the application deployed without errors? Is the status Running in tomcat console? regards musachy On 3/7/07, Dave Newton [EMAIL PROTECTED] wrote: --- ChristopherAngel [EMAIL PROTECTED] wrote: Yes it does, I am able to go directly to it http://localhost:8084/MyProject/StrutsSomething.jsp Hrm... so you get a 404 rather than a Struts error msg: if it wasn't getting the Action configuration correct you'd get an S2 error, but it's as though it isn't getting that far. It still seems like there's something wrong with the basic deployment and/or config, but to be honest, I haven't tried a minimum S2 app since 2.0.1 and things may be different now. d. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: [S2] Unable to get Struts 2.0.6 working
--- ChristopherAngel [EMAIL PROTECTED] wrote: Yes it does, I am able to go directly to it http://localhost:8084/MyProject/StrutsSomething.jsp Hrm... so you get a 404 rather than a Struts error msg: if it wasn't getting the Action configuration correct you'd get an S2 error, but it's as though it isn't getting that far. It still seems like there's something wrong with the basic deployment and/or config, but to be honest, I haven't tried a minimum S2 app since 2.0.1 and things may be different now. d. Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]