atom feed6 messages in net.java.dev.glassfish.usersRe: Glassfish v3 embedded throws exce...
FromSent OnAttachments
glas...@javadesktop.orgJan 20, 2010 6:11 pm 
glas...@javadesktop.orgJan 20, 2010 6:12 pm 
glas...@javadesktop.orgFeb 2, 2010 7:53 am 
glas...@javadesktop.orgFeb 2, 2010 10:15 am 
glas...@javadesktop.orgFeb 3, 2010 4:34 am 
Siraj GhaffarFeb 3, 2010 7:15 am 
Subject:Re: Glassfish v3 embedded throws exception when using BlazeDS
From:glas...@javadesktop.org (glas@javadesktop.org)
Date:Feb 3, 2010 4:34:33 am
List:net.java.dev.glassfish.users

Hello,

I was able to deploy my application using my embedded glassfish.

Originally I had nearly the same exception like Peter: "org.apache.catalina.LifecycleException: java.lang.IllegalArgumentException:
javax.servlet.ServletException:
com.sun.enterprise.container.common.spi.util.InjectionException: Error creating
managed object for ..."

I assume that the message might be misleading and hiding the real cause. So far
I don't know what went wrong. In my case all I have done was explicitely setting
the [b]instanceRoot[/b] attribute for the embedded file system.

<code-snippet> EmbeddedFileSystem.Builder efsb = new EmbeddedFileSystem.Builder(); if (installRoot != null) efsb.installRoot(new File(installRoot), true); if (instanceRoot != null) { // this property is normally used as a token in a regular glassfish // domain.xml System.setProperty("com.sun.aas.instanceRootURI", "file:" + instanceRoot); efsb.instanceRoot(new File(instanceRoot)); }

if (configFile != null) efsb.configurationFile(new File(configFile)); if (autoDelete != null) efsb.autoDelete(autoDelete.booleanValue());

return efsb.build(); <code-snippet>

During my first try the instanceRoot was "null". When setting a real path on my
file system everything worked like a charm.

For your interest: my application is a war file with a JAX-WS web service inside
using spring application context with AOP. No problems at all.

Thanks, Klaus [Message sent by forum member 'klausstake' (klau@web.de)]

http://forums.java.net/jive/thread.jspa?messageID=384475