Ok, I've given up on trying to deploy the RAR stand-alone. I can't figure out how to get the classloader to include classes from all of the JAR files in the RAR file. I've tried adding Class-Path: entries to various Manifests, with no luck. And I don't seem to be able to find any documentation about how to customise the class loading for v2.
So, I'm trying to deploy the RAR file with the EAR file, simply because it looks like there is documentation for it. So, I'm trying to deploy a single EAR file, with a JAR file (containing the MDB) and the RAR file (containing the adapter) contained within the EAR file. I"ve got an application.xml and geronimo-application.xml file contained within the EAR file, and an openejb-jar.xml file in the JAR file (attached to this message). Now, it appears to deploy, in that the console doesn't report any errors. But, I can't find the application in the list of installed application EARs. If I look at the server.log, there's the exception org.apache.geronimo.common.DeploymentException: com.intecbilling.svevents.geronimo/SVEventsDemo-Geronimo/1.0/ear does not appear to be a the name of a module available on the selected server. Perhaps it has already been stopped or undeployed? If you're trying to specify a TargetModuleID, use the syntax TargetName|ModuleName instead. If you're not sure what's running, try the list-modules command. So, the SVEventsDemo-Geronimo is the name of the module, as defined in the openejb-jar.xml file. So, how does an application get stopped immediately after it's deployed? I have to ask it. Should I be using version 2 of Geronimo? Everytime I try to run my adapter in Geronimo, it's an absolute trainwreck. I've already gotten to the point, where I use another container to get my adapter functionality working, and then just try to get the same thing deployed in Geronimo. I appreciate the support that I have gotten from this mailing list, but that's about the only positive I've had from this process. I can get about an hour's worth of work done, before I come across another Geronimo error for which there is no existing documentation. Then, back to spamming the mailing list. So, is 2.0.1 not ready for prime time yet? Should I be using an earlier release? As far as my experience so far, Geronimo isn't meeting its first guiding principle (Easy to use), certainly when in comparison to other offerings. I'm just very frustrated from this exercise so far.
<?xml version="1.0" encoding="UTF-8"?>
<application>
<module>
<connector>svConnector.rar</connector>
</module>
<module>
<ejb>SVEventsDemo-Geronimo-ejb.jar</ejb>
</module>
</application>
<?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0"> <environment> <moduleId> <groupId>com.intecbilling.svevents.geronimo</groupId> <artifactId>SVEventsDemo-Geronimo</artifactId> <version>1.0</version> <type>ear</type> </moduleId> </environment> <module> <connector>svConnector.rar</connector> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2"> <environment> <moduleId> <groupId>com.intecbilling.singleview</groupId> <artifactId>svConnector</artifactId> <version>1.0</version> <type>rar</type> </moduleId> <dependencies> <dependency> <groupId>com.intecbilling.singleview</groupId> <artifactId>enterprise-java-interface</artifactId> <version>6.01.05.01</version> <type>jar</type> </dependency> <dependency> <groupId>com.intecbilling.singleview</groupId> <artifactId>tre-server</artifactId> <version>6.01.05.01</version> <type>jar</type> </dependency> <dependency> <groupId>com.intecbilling.singleview</groupId> <artifactId>adc-debug</artifactId> <version>6.01.05.01</version> <type>jar</type> </dependency> </dependencies> <hidden-classes/> <non-overridable-classes/> </environment> <resourceadapter> <resourceadapter-instance> <resourceadapter-name>InboundSVEvents</resourceadapter-name> <workmanager> <gbean-link>DefaultWorkManager</gbean-link> </workmanager> </resourceadapter-instance> </resourceadapter> </connector> </module> </application>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : openejb-jar.xml
Created on : 21 September 2007, 09:40
Author : ehillman
Description:
Purpose of the document follows.
-->
<openejb-jar
xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
xmlns:security="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
<sys:environment>
<sys:moduleId>
<sys:groupId>com.intecbilling.svevents.geronimo.message</sys:groupId>
<sys:artifactId>TreEventBean</sys:artifactId>
<sys:version>1.1</sys:version>
<sys:type>car</sys:type>
</sys:moduleId>
<sys:dependencies>
<sys:dependency>
<sys:groupId>com.intecbilling.singleview</sys:groupId>
<sys:artifactId>svConnector</sys:artifactId>
<sys:version>1.0</sys:version>
<sys:type>rar</sys:type>
</sys:dependency>
</sys:dependencies>
<sys:hidden-classes/>
<sys:non-overridable-classes/>
</sys:environment>
<enterprise-beans>
<message-driven>
<ejb-name>TreEventBean</ejb-name>
<resource-adapter>
<resource-link>sv-resources</resource-link>
</resource-adapter>
</message-driven>
</enterprise-beans>
</openejb-jar>
geronimo.log
Description: Binary data
