On 11/23/07, Muthu Velappan <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Thanks for your response... My intention was to work around with Appfuse
> and
> built a base framework for our internal projects and thats y i went on to
> change the package names using fullversion command...
>
> However, Now I deleted my previous project and started a new one from
> scratch.. The only change I did for the new version is to change the core
> classes, I used the steps given in this page
> http://appfuse.org/display/APF/AppFuse+Core+Classes instead of using the
> command "mvn appfuse:full-version" and everything seems to be working fine
> now...
>
> I have a some clarifications in ApplicationResources file loading...
>
> When I change the company name in
> "src\main\resorces\ApplicationResources.properties" file, my site doesn't
> get updated with the new company name.. However, If I change the value in
> "src\main\webapp\WEB-INF\classes\ApplicationResources.properties" file it
> is
> reflecting in site.
>
> My clarification is generally we won't do any changes inside
> "WEB-INF\classes" folder.. We always use to do change on the folder
> outside
> "WEB-INF\classes"  and during build time the classes will get compiled and
> other files will get pushed into this "WEB-INF\classes" folder but thats
> not
> happening in this case in Appfuse... Can you please clarify the reasons
> behind this...


It looks as if you have done a mvn war:inplace at some stage. Unfortunately
war:inplace is a bit crude - it copies everything into your web folder
(inluding WEB-INF/lib and WEB-INF/classes). Best is just to go through
whatever you have in you src/main/resources and delete the corresponding
file from WEB-INF/classes.

Mike.

Do apologize me if my assumption is wrong in case of ApplicationResources
> file loading and explain a bit further for me to understand...
>
> Regards,
> Muthu
>
>
> mraible wrote:
> >
> > 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]
> >>
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Appfuse-2.0-%22fullversion%22-Issue-tf4855938s2369.html#a13910669
> 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