users@glassfish.java.net

Using Resource Adapters in Embedded Glassfish

From: <glassfish_at_javadesktop.org>
Date: Sun, 17 Oct 2010 11:05:01 PDT

I'm trying to write an integration test with Embedded Glassfish 3.0.1 where I need to deploy

1) a custom resource adapter
2) a WAR under test.

On deploying the resource adapter with the org.glassfish.api.embedded.EmbeddedDeployer, I'm getting the following error message:

19:41:03.198 [main] ERROR j.e.s.c.com.sun.enterprise.v3.server - Module type not recognized
19:41:03.199 [main] ERROR j.e.s.c.com.sun.enterprise.v3.server - There is no installed container capable of handling this application com.sun.enterprise.deploy.shared.FileArchive_at_60dc4c81

Does that mean that resource adapters cannot be deployed in embedded mode?

(As a workaround, I'm now referencing the deployed resource adapter from my standalone Glassfish installation in the domain.xml passed to the Embedded server.)

Best regards,
Harald
[Message sent by forum member 'hwellmann']

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