Yes, here is my mistake.... Using cmd shell, 'mvn jetty:run-war' works well... I was doing 'mvn jetty:run' (guess I need to expand the war in source tree before that ? ) However, I still have a problem running the project in eclispe.. I imported the project in eclipse following the instructions on appfuse web page, however running the maven plugin inside eclipse fails here : ---- [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] ---------------------------------------------------------------------------- [INFO] Building AppFuse Spring MVC Application [INFO] task-segment: [jetty:run-war] [INFO] ---------------------------------------------------------------------------- [INFO] Preparing jetty:run-war [INFO] warpath:add-classes {execution: default} [INFO] native2ascii:native2ascii {execution: native2ascii-utf8} [INFO] native2ascii:native2ascii {execution: native2ascii-8859_1} [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [INFO] compiler:compile [INFO] Nothing to compile - all classes are up to date [INFO] resources:testResources [INFO] Using default encoding to copy filtered resources. [INFO] Preparing hibernate3:hbm2ddl [WARN] Removing: hbm2ddl from forked lifecycle, to prevent recursive invocation. [INFO] warpath:add-classes {execution: default} [INFO] native2ascii:native2ascii {execution: native2ascii-utf8} [INFO] native2ascii:native2ascii {execution: native2ascii-8859_1} [INFO] resources:resources [INFO] Using default encoding to copy filtered resources. [WARN] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<licenses>\n\t\t\t<license>... @12:13) [WARN] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<licenses>\n\t\t\t<license>... @12:13) [ERROR] project-execute : com.mycompany:myproject:war:1.0-SNAPSHOT ( task-segment: [jetty:run-war] ) Diagnosis: Error configuring: org.codehaus.mojo:hibernate3-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration FATAL ERROR: Error executing Maven for a project [ERROR] reactor-execute : D:\Programs\appfuse\base\myproject Diagnosis: Error configuring: org.codehaus.mojo:hibernate3-maven-plugin. Reason: Unable to parse the created DOM for plugin configuration FATAL ERROR: Error executing Maven for a project [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to configure plugin parameters for: org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-1 Cause: Error loading class 'org.codehaus.mojo.hibernate3.exporter.Component' ----- The same run command (maven jetty:run-war) works on the cmd shell as fine; the error in hibernate3-maven-plugin is ignored; here is the snippet : ----- [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It will be ignored for artifact resolution. Reason: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START _TAG seen ...<licenses>\n\t\t\t<license>... @12:13) [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is invalid. It w ill be ignored for artifact resolution. Reason: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START _TAG seen ...<licenses>\n\t\t\t<license>... @12:13) [INFO] [hibernate3:hbm2ddl {execution: default}] [INFO] Configuration XML file loaded: D:\Programs\appfuse\base\myproject\src\mai n\resources\hibernate.cfg.xml [INFO] Configuration XML file loaded: D:\Programs\appfuse\base\myproject\src\mai n\resources\hibernate.cfg.xml [INFO] Configuration Properties file loaded: D:\Programs\appfuse\base\myproject\ target\classes\jdbc.properties -------------- My question is : is there a special flag need to be set in eclipse to make the above treated as a warning instead of a fatal error ? What is the difference in running the same command in eclipse vs cmd shell here ? Any pointers will be appreciated ------------- mraible wrote: > > Please read the quickstart instructions again, your're missing a step. > > Matt > > > On 3/18/07, rjain78 <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> I downloaded the latest version of appfuse using the quickstart guide on >> Windows XP, jdk1.6 . The example steps work first time and the server >> comes >> up properly on localhost:8080 but all subsequent invocations fail. This >> has >> happened to me consistently on three different sample projects so I am >> sure >> this is not a case of inadvertent deletion or modification of a project >> file. >> >> mvn jetty:run results in: >> >> [INFO] Scanning for projects... >> [INFO] Searching repository for plugin with prefix: 'jetty'. >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Building AppFuse Spring MVC Application >> [INFO] task-segment: [jetty:run] >> [INFO] >> ---------------------------------------------------------------------------- >> [INFO] Preparing jetty:run >> [INFO] warpath:add-classes {execution: default} >> [INFO] native2ascii:native2ascii {execution: native2ascii-utf8} >> [INFO] native2ascii:native2ascii {execution: native2ascii-8859_1} >> [INFO] resources:resources >> [INFO] Using default encoding to copy filtered resources. >> [INFO] compiler:compile >> 2007-03-18 21:35:02.070::INFO: Logging to STDERR via >> org.mortbay.log.StdErrLog >> 2007-03-18 21:35:02.360::INFO: jetty-6.0.x >> 2007-03-18 21:35:03.292::WARN: Could not instantiate listener >> org.appfuse.webapp.listener.StartupListener >> java.lang.ClassNotFoundException: >> org.appfuse.webapp.listener.StartupListener >> at java.net.URLClassLoader$1.run(URLClassLoader.java:200) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >> at >> org.codehaus.plexus.classworlds.realm.ClassRealm.loadRealmClass(ClassRealm.java:170) >> at >> org.codehaus.plexus.classworlds.strategy.ForeignStrategy.loadClass(ForeignStrategy.java:39) >> at >> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:197) >> at >> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:358) >> at >> org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:320) >> ---(rest of output truncated to save space )--- >> >> I searhed for StartupListener class; found the jars included in the >> .classpath as: >> <classpathentry kind="lib" >> path="target/warpath/appfuse-spring-2.0-m4-20070307.091744-31.warpath.jar"/> >> <classpathentry kind="lib" >> path="target/warpath/appfuse-web-common-2.0-m4-20070319.025558-87.warpath.jar"/> >> >> I imported the project into eclipse as well; the issue is same whether >> executed thru command line or thru eclipse maven plugin. >> >> Please suggest any debugging steps or any output you'd like to see to >> help >> understand the problem. >> -- >> View this message in context: >> http://www.nabble.com/appfuse-2.0-jetty%3Arun-fails-tf3425060s2369.html#a9546455 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/appfuse-2.0-jetty%3Arun-fails-tf3425060s2369.html#a9566294 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]