users@glassfish.java.net

Re: Portlet web-app classpath

From: Manish Gupta <Manish.K.Gupta_at_Sun.COM>
Date: Sun, 05 Aug 2007 22:53:49 +0530

Hi Nithya,
 Are you using Open Source Portlet Container from dev.java.net? If yes,
can you please send me your portlet war file?

Regards
Manish.

glassfish_at_javadesktop.org wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>