On Sun, Mar 9, 2008 at 8:21 PM, Claude Brisson <[EMAIL PROTECTED]> wrote:
> You have to put the complete pathname to your jar file, that is, > something like: > > jar:file:/var/www/mysite/WEB-INF/lib/cimande-1.3.jar > i got this error, can help? java.lang.Exception: Problem initializing template loader: org.apache.velocity.runtime.resource.loader.JarResourceLoader Error is: java.lang.ClassNotFoundException: org.apache.velocity.runtime.resource.loader.JarResourceLoader at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1358) at org.apache.catalina.loader.WebappClassLoader.loadClass( WebappClassLoader.java:1204) at java.lang.ClassLoader.loadClassInternal( ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) --------------------------- another idea, may be can become one answer any idea to make the path /var/www/mysite follow where is my .war ? # # and finally, for the loader we call 'jar', use the JarResourceLoader # and specify two jars to load from # jar.resource.loader.description = Velocity Jar Resource Loader jar.resource.loader.class = org.apache.velocity.runtime.resource.loader.JarResourceLoader jar.resource.loader.path = jar:file:/blueoxygen/cimande/WebContent/WEB-INF/lib/cimande-1.3.jar this is mine, but i feel stupid with this... if we put in /classes we dont need the path, and how can we must put the full path when try using .jar
