Re: [Resin-interest] How to load jars dynamically in Resin 3.1?

2009-10-08 Thread Scott Ferguson

On Oct 8, 2009, at 4:22 AM, Anders Nordby wrote:

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

:)

 From the title, I was wondering if you had some super-fancy dynamic  
load and unload requirement.

-- Scott

>
> Mvh,
>
> -- 
> 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
>
> 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:
>>
>>  /foo/jar1.jar
>>  /foo/jar2.jar
>>  /foo/jar3.jar
>>
>> And loading it in server-default section in resin.conf:
>>
>>
>>
>> Then Resin complains:
>>
>> /usr/local/resin/conf/resin.conf:130:  is
>> an unexpected tag (parent  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:  is an
>> unexpected top-level tag.
>>
>> - by using fileset:
>>
>> /usr/local/resin/conf/resin.conf:150:  is an unexpected tag
>> (parent  starts at 90).
>> 150:   > name="*.jar">
>>
>> Any clues?
>>
>> It seems Resin does not like me today. :-(
>>
>> Regards,
>>
>> -- 
>> 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
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] How to load jars dynamically in Resin 3.1?

2009-10-08 Thread Anders Nordby
Hi,

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

Mvh,

-- 
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

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:
> 
>   /foo/jar1.jar
>   /foo/jar2.jar
>   /foo/jar3.jar
> 
> And loading it in server-default section in resin.conf:
> 
> 
> 
> Then Resin complains:
> 
> /usr/local/resin/conf/resin.conf:130:  is
> an unexpected tag (parent  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:  is an
> unexpected top-level tag.
> 
> - by using fileset:
> 
> /usr/local/resin/conf/resin.conf:150:  is an unexpected tag
> (parent  starts at 90).
> 150:name="*.jar">
> 
> Any clues?
> 
> It seems Resin does not like me today. :-(
> 
> Regards,
> 
> -- 
> 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
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] How to load jars dynamically in Resin 3.1?

2009-10-08 Thread Anders Nordby
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:

  /foo/jar1.jar
  /foo/jar2.jar
  /foo/jar3.jar

And loading it in server-default section in resin.conf:



Then Resin complains:

/usr/local/resin/conf/resin.conf:130:  is
an unexpected tag (parent  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:  is an
unexpected top-level tag.

- by using fileset:

/usr/local/resin/conf/resin.conf:150:  is an unexpected tag
(parent  starts at 90).
150:   

Any clues?

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

Regards,

-- 
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
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest