Hi,

Seems a better day today. Just use tree-loader... Sigh.

Mvh,

-- 
Anders Nordby
Media Norge ASA, Serverdrift/IT
Postboks 1, 0051 Oslo

Epost: [email protected], [email protected]
Tlf.: +47 22864083
Fax: +47 22864074

On Thu, Oct 08, 2009 at 12:33:15PM +0200, Anders Nordby wrote:
> Hi,
> 
> I have a long list of jar files I want to include without specifying
> each and everyone of them in resin.conf. I tried:
> 
> - by using a autogenerated stub jar with MANIFEST.MF to load the
> requested class-path. But it doesn't seem like Resin loads it, and
> Java complains:
> 
> java -jar anders.jar
> Failed to load Main-Class manifest attribute from
> anders.jar
> 
> In anders.jar I have anders.class with public class anders and a
> META-INF/MANIFEST.MF that looks like:
> 
> Manifest-Version: 1.2
> Main-Class: anders
> Created-By: 1.4.1_01 (Sun Microsystems Inc.)
> Class-Path: /foo/jar1.jar /foo/jar2.jar /foo/jar3.jar
> 
> - by generating a resin.conf.jars with a list of jars:
> 
>       <jvm-classpath>/foo/jar1.jar</jvm-classpath>
>       <jvm-classpath>/foo/jar2.jar</jvm-classpath>
>       <jvm-classpath>/foo/jar3.jar</jvm-classpath>
> 
> And loading it in server-default section in resin.conf:
> 
>     <resin:import path="${resin.home}/conf/resin.conf.jars"/>
> 
> Then Resin complains:
> 
> /usr/local/resin/conf/resin.conf:130: <resin:import> is
> an unexpected tag (parent <server-default> starts at 90).
> 
> - the same with the import statement in one level up. Then Resin
> complains like this:
> 
> /usr/local/resin/conf/resin.conf.jars:1: <jvm-classpath> is an
> unexpected top-level tag.
> 
> - by using fileset:
> 
> /usr/local/resin/conf/resin.conf:150: <fileset> is an unexpected tag
> (parent <server-default> starts at 90).
> 150:       <fileset dir="/opt/blabla/bob/lib"><include
> name="*.jar"></fileset>
> 
> Any clues?
> 
> It seems Resin does not like me today. :-(
> 
> Regards,
> 
> -- 
> Anders Nordby
> Media Norge ASA, Serverdrift/IT
> Postboks 1, 0051 Oslo
> 
> Epost: [email protected], [email protected]
> Tlf.: +47 22864083
> Fax: +47 22864074
> 
> 
> 
> _______________________________________________
> resin-interest mailing list
> [email protected]
> http://maillist.caucho.com/mailman/listinfo/resin-interest


_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to