I figured it out. I was adding multiple file producers and had a ID-10-T error while I was typing in the file name of the last vm template... :[
We are moving our project to a new architecture using struts, spring and hibernate. With middlegen having a hibernate plugin and a struts plugin, we decided to just write the spring plugin ourselves. My boss also seems interested in releasing it back out to the middlegen project, since it can only get better from there. :) Right now, the spring plugin a very simple DAO using hibernate, and an interface for use in a struts action, which would include business rules. It has been coming together nicely, even though I have only started poking around in w/middlegen this last week. I am hoping to have something more solid next week. Thanks for your interest Joel Hillacre On Thursday 30 September 2004 03:21 am, Eivind Waaler wrote: > Hmm, sounds like some kind of classloader issue. Are you sure your plugin > class is not found multiple places in the classpath? For instance if > there's an old version of your jar file without the .vm file somewhere? > > Try a clean build of everything. Compare your jar file with one that > works, see if there are any differences. > > BTW: Your Spring plugin sounds interesting, what are you generating? A > DAO? Hibernate support? > > Cheers > .eivind > > On Wed, 29 Sep 2004, Joel Hillacre wrote: > > My plugin is having trouble finding it's resources in the jar file. > > I am trying to add a fileproducer with: > > <code> > > addConfiguredFileproducer(new FileProducer(getDestinationDir(), > > "{0}SpringServiceImpl.java", > > getClass().getResource("SpringServiceImpl.vm"))); > > </code> > > However, when this code executes (built using the middlegen build.xml and > > executed using a custom project build.xml), I receive a <code>template > > can't be null</code> error message from the file producer constructor. I > > checked my middlegen-spring-plugin-2.1.jar, and the SpringServiceImpl.vm > > is sitting beside my SpringPlugin.class. What did i miss here? :s > > Thank you for any help, > > Joel Hillacre > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > > Use IT products in your business? Tell us what you think of them. Give us > > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > > more http://productguide.itmanagersjournal.com/guidepromo.tmpl > > _______________________________________________ > > middlegen-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/middlegen-user > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > middlegen-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/middlegen-user ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ middlegen-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/middlegen-user