geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Bilodeau <gbilod...@yahoo.com>
Subject Solved (partly!)
Date Tue, 31 Oct 2006 13:27:16 GMT

Hi guys,

Here's an openejb-jar.xml that allows me to deploy my application:

<?xml version="1.0"?>
<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:sys="http://geronimo.apache.org/xml/ns/deployment-1.1">

	<sys:environment>
		<sys:moduleId>
			<sys:groupId>com.auchan</sys:groupId>
			<sys:artifactId>promo-server</sys:artifactId>
			<sys:version>2.0.0-SNAPSHOT</sys:version>
			<sys:type>car</sys:type>
		</sys:moduleId>
		<sys:dependencies>
			<sys:dependency>
				<sys:groupId>console.dbpool</sys:groupId>
				<sys:artifactId>AuchanPromoDS</sys:artifactId>
			</sys:dependency>
		</sys:dependencies>
		<sys:hidden-classes />
		<sys:non-overridable-classes />
	</sys:environment>

	<enterprise-beans xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
		<session>
			<ejb-name>RemoteTask</ejb-name>
			<jndi-name>RemoteTask</jndi-name>
			<naming:resource-ref>
				<naming:ref-name>jdbc/AuchanPromoDS</naming:ref-name>
				<naming:resource-link>AuchanPromoDS</naming:resource-link>
			</naming:resource-ref>
		</session>
		<session>
			<ejb-name>CloseStagesTask</ejb-name>
			<jndi-name>CloseStagesTask</jndi-name>
			<naming:resource-ref>
				<naming:ref-name>jdbc/AuchanPromoDS</naming:ref-name>
				<naming:resource-link>AuchanPromoDS</naming:resource-link>
			</naming:resource-ref>
		</session>
		<session>
			<ejb-name>CreatePitpTask</ejb-name>
			<jndi-name>CreatePitpTask</jndi-name>
			<naming:resource-ref>
				<naming:ref-name>jdbc/AuchanPromoDS</naming:ref-name>
				<naming:resource-link>AuchanPromoDS</naming:resource-link>
			</naming:resource-ref>
		</session>
		<session>
			<ejb-name>CreateNotificationsTask</ejb-name>
			<jndi-name>CreateNotificationsTask</jndi-name>
			<naming:resource-ref>
				<naming:ref-name>jdbc/AuchanPromoDS</naming:ref-name>
				<naming:resource-link>AuchanPromoDS</naming:resource-link>
			</naming:resource-ref>
		</session>
	</enterprise-beans>
</openejb-jar>

The application can be deployed and accessed at the configured context root. 
Finally!

I'm now running into a different problem
(javax.persistence.PersistenceException: Unable to resolve persistence unit
root URL) but hopefully this one will be easier to solve.

Thanks again for your time guys, I couldn't have done it without your
pointers.

Cheers,
GB

-- 
View this message in context: http://www.nabble.com/Error-deploying-EAR-because-of-DataSource-tf2513035.html#a7093845
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message