geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Iliya <il...@etprom.ru>
Subject Migration problem [geronimo 1.1]
Date Fri, 07 Jul 2006 12:53:58 GMT
Hello !!!

I have simple application with two modules EJB and WEB.
Everything was fine until Geronimo v1.1.
Now I am getting NameNotFoundException when I am calling lookup method.
I was trying to find any sample application for Geronimo v1.1 or any 
documentation about new deployment plan for EJB but failed.

Please tell me what am I doing wrong.

Message from servlet:

> javax.naming.NameNotFoundException: Could not resolve abstract name query [timbertrader-exchange/ejb/1.0/car?name=AccountEJB#org.openejb.EJBContainer]
in configuration timbertrader-exchange/web/1.0/war
> 	at org.openejb.proxy.EJBProxyReference.getEJBProxyFactory(EJBProxyReference.java:111)
> 	at org.openejb.proxy.EJBProxyReference.getContent(EJBProxyReference.java:90)
> 	at org.apache.geronimo.naming.enc.CachingReference.resolveReference(CachingReference.java:55)
> 	at org.apache.geronimo.naming.enc.CachingReference.get(CachingReference.java:45)...

Code witch throws Exception:
> AccountHome accounthome=(AccountHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/timbertrader/exchange/Account"),AccountHome.class);

Deployment plan geronimo-web.xml

> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
> 	xmlns:geronimo="http://geronimo.apache.org/xml/ns/security-1.1"
> 	xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
> 	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://geronimo.apache.org/xml/ns/j2ee/web-1.1 ../../../schemas/geronimo-web-1.1.xsd
http://geronimo.apache.org/xml/ns/naming-1.1 geronimo-naming-1.1.xsd http://geronimo..apache.org/xml/ns/security-1.1
geronimo-security-1.1.xsd http://geronimo.apache.org/xml/ns/deployment-1.1 geronimo-module-1.1.xsd
">
> 	<sys:environment>
> 		<sys:moduleId>
> 			<sys:groupId>timbertrader-exchange</sys:groupId>
> 			<sys:artifactId>web</sys:artifactId>
> 			<sys:version>1.0</sys:version>
> 			<sys:type>car</sys:type>
> 		</sys:moduleId>
> 		<sys:dependencies>
> 			<sys:dependency>
> 				<sys:groupId>timbertrader-exchange</sys:groupId>
> 				<sys:artifactId>ejb</sys:artifactId>
> 				<sys:version>1.0</sys:version>
> 				<sys:type>car</sys:type>
> 			</sys:dependency>
> 		</sys:dependencies>
> 		<sys:hidden-classes/>
> 		<sys:non-overridable-classes/>
> 	</sys:environment>
> 	<context-root>/</context-root>
> 	<naming:ejb-ref>
> 		<naming:ref-name>ejb/timbertrader/exchange/Account</naming:ref-name>
>  		<naming:pattern>
> 			<naming:groupId>timbertrader-exchange</naming:groupId>
> 			<naming:artifactId>ejb</naming:artifactId>
> 			<naming:version>1.0</naming:version>
> 			<naming:name>AccountEJB</naming:name>
> 		</naming:pattern>
> 	</naming:ejb-ref>
> 	
> </web-app>

Deployment plan open-ejb.jar

> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1"
> 	xmlns:geronimo="http://geronimo.apache.org/xml/ns/security-1.1"
> 	xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1"
> 	xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://geronimo.apache.org/xml/ns/j2ee/web-1.1 ../../../schemas/geronimo-web-1.1.xsd
http://geronimo.apache.org/xml/ns/naming-1.1 geronimo-naming-1.1.xsd http://geronimo.apache.org/xml/ns/security-1.1
geronimo-security-1.1.xsd http://geronimo.apache.org/xml/ns/deployment-1.1 geronimo-module-1.1.xsd
">
> 	<sys:environment>
> 		<sys:moduleId>
> 			<sys:groupId>timbertrader-exchange</sys:groupId>
> 			<sys:artifactId>web</sys:artifactId>
> 			<sys:version>1.0</sys:version>
> 			<sys:type>car</sys:type>
> 		</sys:moduleId>
> 		<sys:dependencies>
> 			<sys:dependency>
> 				<sys:groupId>timbertrader-exchange</sys:groupId>
> 				<sys:artifactId>ejb</sys:artifactId>
> 				<sys:version>1.0</sys:version>
> 				<sys:type>car</sys:type>
> 			</sys:dependency>
> 		</sys:dependencies>
> 		<sys:hidden-classes/>
> 		<sys:non-overridable-classes/>
> 	</sys:environment>
> 	<context-root>/</context-root>
> 	<naming:ejb-ref>
> 		<naming:ref-name>ejb/timbertrader/exchange/Account</naming:ref-name>
>  		<naming:pattern>
> 			<naming:groupId>timbertrader-exchange</naming:groupId>
> 			<naming:artifactId>ejb</naming:artifactId>
> 			<naming:version>1.0</naming:version>
> 			<naming:name>AccountEJB</naming:name>
> 		</naming:pattern>
> 	</naming:ejb-ref>
> 	
> </web-app>


Mime
View raw message