Re: [Resin-interest] Resin on Snow Leopard

2009-10-08 Thread Scott Ferguson

On Oct 8, 2009, at 10:42 AM, Rich Curtis wrote:

> Hi Ferg & list,
>
> I spent a bit of time trying to get resin installed on Snow Leopard  
> this week, but wasn't able to manage it. I did see an earlier thread  
> about this and wondered if there had been any movement on this or if  
> there was a workaround?

Sorry about that. We've been focusing on the regressions for 4.0.2 and  
putting off the compatibility issues until we can make some headway.

-- Scott

>
> Thanks,
>
> RC
>
>
> -- 
> Rich Curtis
> Mocospace
> ___
> 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] Resin on Snow Leopard

2009-10-08 Thread Rob Lockstone
We run Resin standalone (no Apache front-end), so we don't need to  
build mod_caucho.so.


My co-worker who has upgraded to Snow Leopard (I have not, yet) is  
running the non-Pro version of Resin to avoid having to build the JNI  
libraries until Resin's build scripts are fixed to work with Snow  
Leopard.


One thing to remember is that there's a bug in Apple's JVM which  
causes Resin (and other Java programs) to print out the following  
stack trace (which will probably get munged in this email, the  
important thing is the message, "Intentionally suppressing recursive  
invocation exception!"). I filed a bug with Apple about this, which  
turned out to be a duplicate of bug #7007567. Anyone reading this who  
works on a Mac should also file a bug and reference bug #7007567  
because Apple uses the number of reports of a bug to prioritize fixes.  
Fwiw, the error doesn't seem to cause a problem, at least not with our  
stuff, but we're not running Resin on Macs in our production  
environment.


Intentionally suppressing recursive invocation exception!
java.lang.IllegalStateException: recursive invocation
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1394)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1377)
at sun.security.jca.ProviderConfig$1.run(ProviderConfig.java:64)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.getLock(ProviderConfig.java:62)
at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
at sun.security.jca.ProviderList.getProvider(ProviderList.java:215)
at sun.security.jca.ProviderList.getService(ProviderList.java:313)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:140)
	at  
java 
.security.cert.CertificateFactory.getInstance(CertificateFactory.java: 
148)

at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:244)
at sun.security.pkcs.PKCS7.parse(PKCS7.java:141)
at sun.security.pkcs.PKCS7.parse(PKCS7.java:110)
at sun.security.pkcs.PKCS7.(PKCS7.java:92)
	at  
sun 
.security.util.SignatureFileVerifier.(SignatureFileVerifier.java: 
80)

at java.util.jar.JarVerifier.processEntry(JarVerifier.java:256)
at java.util.jar.JarVerifier.update(JarVerifier.java:188)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:321)
at java.util.jar.JarFile.getInputStream(JarFile.java:386)
at sun.misc.JarIndex.getJarIndex(JarIndex.java:99)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:597)
at sun.misc.URLClassPath$JarLoader.(URLClassPath.java:581)
at sun.misc.URLClassPath$3.run(URLClassPath.java:331)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:320)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:297)
at sun.misc.URLClassPath.getResource(URLClassPath.java:167)
at java.net.URLClassLoader$1.run(URLClassLoader.java:192)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:244)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at java.lang.ClassLoader.loadClass(ClassLoader.java:309)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:402)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2150)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1407)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1377)

Rob

On Oct 8, 2009, at 11:23, Rich Curtis wrote:

Yes I think it is, although I'm not that knowledgeable about Java on  
the Mac, yet.


If anybody has the proper steps to getting resin working on Snow  
Leopard, or even just some stuff I could try, please do let me know.


Thx in advance.

RC


On Thu, Oct 8, 2009 at 2:12 PM, Rob Lockstone   
wrote:

On Oct 8, 2009, at 10:42, Rich Curtis wrote:

> Hi Ferg & list,
>
> I spent a bit of time trying to get resin installed on Snow Leopard
> this week, but wasn't able to manage it. I did see an earlier thread
> about this and wondered if there had been any movement on this or if
> there was a workaround?

Is this the problem you're seeing?

http://bugs.caucho.com/view.php?id=3685

Rob



___
resin-interest mailing li

Re: [Resin-interest] Resin on Snow Leopard

2009-10-08 Thread Rich Curtis
Yes I think it is, although I'm not that knowledgeable about Java on the
Mac, yet.
If anybody has the proper steps to getting resin working on Snow Leopard, or
even just some stuff I could try, please do let me know.

Thx in advance.

RC


On Thu, Oct 8, 2009 at 2:12 PM, Rob Lockstone  wrote:

> On Oct 8, 2009, at 10:42, Rich Curtis wrote:
>
> > Hi Ferg & list,
> >
> > I spent a bit of time trying to get resin installed on Snow Leopard
> > this week, but wasn't able to manage it. I did see an earlier thread
> > about this and wondered if there had been any movement on this or if
> > there was a workaround?
>
> Is this the problem you're seeing?
>
> http://bugs.caucho.com/view.php?id=3685
>
> Rob
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>



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


Re: [Resin-interest] Resin on Snow Leopard

2009-10-08 Thread Rob Lockstone
On Oct 8, 2009, at 10:42, Rich Curtis wrote:

> Hi Ferg & list,
>
> I spent a bit of time trying to get resin installed on Snow Leopard  
> this week, but wasn't able to manage it. I did see an earlier thread  
> about this and wondered if there had been any movement on this or if  
> there was a workaround?

Is this the problem you're seeing?

http://bugs.caucho.com/view.php?id=3685

Rob



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


[Resin-interest] Resin on Snow Leopard

2009-10-08 Thread Rich Curtis
Hi Ferg & list,
I spent a bit of time trying to get resin installed on Snow Leopard this
week, but wasn't able to manage it. I did see an earlier thread about this
and wondered if there had been any movement on this or if there was a
workaround?

Thanks,

RC


-- 
Rich Curtis
Mocospace
___
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 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