users@glassfish.java.net

Portlet web-app classpath

From: <glassfish_at_javadesktop.org>
Date: Sun, 05 Aug 2007 07:40:28 PDT

Hi,

I am using portlet-container on glassfish. My portlet tries to load a resource (viz) bean.vm (A velocity template file) from the classpath.

template = ve.getTemplate("bean.vm");

After deployment, this file is present in WEB-INF/classes , and yet the portlet does not load reporting this error:

javax.portlet.PortletException: Unable to find resource 'bean.vm'

Do we have to explicitly specify the classpath somewhere else and place the resource there?

Thanks,
Nithya
[Message sent by forum member 'ns208321' (ns208321)]

http://forums.java.net/jive/thread.jspa?messageID=229504