Ah, it works!  Thanks.  I ended up moving a bunch of the WEB-INF/classes text
files to the maven dir "web/src/main/resources" dir, and just including the
org.appfuse.webapp.* package sources in my "web/src/main/java" directory...
which lets WEB-INF/classes and WEB-INF/lib be empty.

thanks again,
Jason



Ömer Başar wrote:
> 
> Don't remove the classes dir. Just remove the lib directory and delete
> struts.xml in classes dir. Then you are free to to run mvn jetty:run
> 
> 
> thrasher wrote:
>> 
>> When running "mvn jetty:run" on a fresh AppFuse project (both Struts 2
>> basic, and modular) just like in the "struts2-crud.mov" demo, Jetty fails
>> with this error:
>> 
>> Cannot find class
>> [org.appfuse.webapp.interceptor.UserRoleAuthorizationInterceptor] for
>> bean with name 'adminInterceptor' defined in ServletContext resource
>> [/WEB-INF/applicationContext-struts.xml]; nested exception is
>> java.lang.ClassNotFoundException:
>> org.appfuse.webapp.interceptor.UserRoleAuthorizationInterceptor
>> 
>> It seems that Jetty is not picking up the lib dependancies from the
>> pom.xml.  It seems that after running war:inplace, then removing the lib
>> and classes directories, Jetty doesn't refer to the proejct to read
>> dependancies or classes information.  However if WEB-INF/lib and
>> WEB-INF/classes are left in place, it gives complaints about multiple
>> struts configurations.  Note that "mvn jetty:run-war" works fine, but
>> it's hell to edit JSP files that way.
>> 
>> I'm using 2.0-M4, and here's the command sequence that reproduces the
>> problem:
>> 
>> mvn archetype:create -DarchetypeGroupId=org.appfuse
>> -DarchetypeArtifactId=appfuse-modular-struts
>> -DremoteRepositories=http://static.appfuse.org/repository
>> -DarchetypeVersion=2.0-m4 -DgroupId=com.mycompany -DartifactId=myproject
>> 
>> cd myproject
>> mvn install
>> cd web
>> mvn war:inplace
>> rm -Rf src/main/webapp/WEB-INF/lib
>> rm -Rf src/main/webapp/WEB-INF/classes
>> mvn jetty:run
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/struts2-crud.mov-jetty%3Arun-doesn%27t-walk-tf3537983s2369.html#a9908902
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to