Well I figured out the cause of the blank page, but I still don't know why I can't run jetty:run or tomcat:run.
Just in case someone else has a similar problem here's what was causing the problem with the blank page. This object is a child object, so I needed to be able to select which parent it belonged to. So I created a List in the edit() method of my action to populate a drop down with all of the parent objects. I had to prepare the list again before the save() method returned the user to the childForm.jsp. Thanks for your help, Nathan ----- Original Message ----- From: "Nathan Anderson" <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, September 29, 2007 6:31:01 PM (GMT-0800) America/Los_Angeles Subject: Re: [appfuse-user] where can I find the errors? Hey Matt, I turned on devMove and I'm getting more messages now, but nothing helpful yet... When I use jetty:run-war I everything works except saving the child object [that's where I get that blank page with no Exception reported]. jetty:run results in a 503 error when trying to open the app and the following error on the console [which didn't display before I enabled devMode]: 2007-09-29 18:22:07.443::WARN: failed struts Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/home/nathan/.m2/repository/org/apache/struts/struts2-core/2.0.9/struts2-core-2.0.9.jar!/struts-default.xml:8:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:208) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:131) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395) tomcat:run still says I have too many copies of Commons Logging in the classpath: [INFO] Starting Servlet Engine: Apache Tomcat/5.5.15 [INFO] XML validation disabled [INFO] Can't register valve org.apache.catalina.core.StandardContextValve[/cbeyond-1.0-SNAPSHOT] org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.) (Caused by org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. (Caused by org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.)) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543) Of course I ran "mvn clean" before each just to be safe. I'm going to keep plugging away, but if anyone has any other ideas I'd like to hear them... Thanks, Nathan ----- Original Message ----- From: "Matt Raible" <[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, September 29, 2007 8:37:14 AM (GMT-0800) America/Los_Angeles Subject: Re: [appfuse-user] where can I find the errors? To run jetty:run or tomcat:run, you have to do war:inplace first. Then you have to rm -r src/main/webapp/WEB-INF and rm src/main/webapp/WEB-INF/classes/struts.xml. As far as the blank page, I don't know what's causing that. You might try turning on devMode in struts.xml. Matt On 9/29/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: > I'm trying to work on a new Struts 2 app, but I'm having some difficulty. If > I run "mvn jetty:run-war" the tests all pass and the app loads. But when I > try to save a particular object I get a blank page [view source is completely > empty], and nothing is printed to the console. I'm sure I did something to > cause this problem, but I can't find a log or something to narrow down what > the problem could be. > > Are there logs created when you run "mvn jetty:run-war"? And if so where > would they be? > > Also if I try to run the app using "mvn tomcat:run" I get an error saying > there are 2 Log4J.jars in my classpath and Tomcat won't load. Then I tried > "mvn jetty:run" and I get the following error when I connect to > http://localhost:8080/ > > HTTP ERROR: 503 > SERVICE_UNAVAILABLE > RequestURI=/ > > During startup I get an error about not being able to open > /WEB-INF/xfire-servlet.xml, but there is no error displayed on the console > when I get the 503 response from Jetty. > > Is there something obvious that I'm missing? It seems like is something > doesn't work it should be logged somewhere :/ > > Thanks for any pointers, > Nathan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
