Make sure you run "mvn clean". If the problem persists, check your
package names in src/main/java - do they match with the ones in web.xml?
Matt
On Nov 22, 2007, at 6:49 AM, Alejandro Castro wrote:
Hello,
I read here http://appfuse.org/display/APF/AppFuse+Core+Classes
that you should not change the package names of appfuse classes.
That link applies specificly to core classes, but I assume that
might me the same case of other classes in org.appfuse.
Anyway, I think that can be done but it sure must be a painfull
process. I don't know exactly why you require to do this.
I understand that earlier versions (1.x) of appfuse recommended
this, and there a tool for that matter (http://raibledesigns.com/rd/
entry/rename_packages_tool_for_appfuse )
but I'm not sure if that will work for appfuse 2.x
Make sure you rename all references to clasees in non java files
(xml, properties and others)
Alejandro
On Nov 22, 2007 5:48 AM, Muthu Velappan <
[EMAIL PROTECTED]> wrote:
Hi All,
I downloaded the Appfuse fullsource version and changed the package
names to
com.mycompany.app instead org.appfuse. Now, whenever I try run the
application using mvn jetty:run, It throws the following exception
java.lang.NoClassDefFoundError:
com/mycompany/app/webapp/listener/StartupListener (wrong name:
org/appfuse/webapp/listener/StartupListener)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass
(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java :
260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass
(WebAppClassLoader.java:366)
.....
.....
.....
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
2007-11-22 16:40:27.045::WARN: Error starting handlers
and build fails subsequently... Everything was working fine before
installing the "mvn appfuse:full-source" command..
Can anyone help me out on fixing the issue in full source
version... Thanks
for your time...
Regards,
Muthu
--
View this message in context: http://www.nabble.com/Appfuse-2.0-%
22fullversion%22-Issue-tf4855938s2369.html#a13895380
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]