getClass().getResource("...") returns null?

Joel Hillacre <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Organization TSIWARE
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.