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

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:


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

Any clues?

It seems Resin does not like me today. :-(


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

Epost: anders.nor...@aftenposten.no, a...@ap.no
Tlf.: +47 22864083
Fax: +47 22864074

resin-interest mailing list

Reply via email to