users@glassfish.java.net

GFv3 deployment error

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Mar 2010 04:23:28 PST

Hi,
I have a ear file with the following contents: (see the image attached).

If I try to deploy it in GFv3, I'm getting the following exception:

[i]..........
[#|2010-03-11T13:31:28.671+0200|SEVERE|glassfishv3.0|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=24;_ThreadName=AutoDeployer;|Exception while deploying the app
java.lang.RuntimeException: Cannot resolve reference Remote ejb-ref name=RepresentationService,Remote 3.x interface =com.myapp.service.RepresentationService,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session because there are 2 ejbs in the application with interface com.myapp.service.RepresentationService
..........[/i]
                        
I searched the internet and usually this is happening because the ejb jar is contained both in the ear file and in the war as well. In my case, this is not happening. However, since my jsf pages (in the war) use the ejb jar, I need to reference it somehow. I don't know how to do that but to reference the ejb jar in the MANIFEST.MF file from the war file. Here's the contents of the MANIFEST.MF in Theater-web-1.0-SNAPSHOT.war:

[i]
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: sionut
Build-Jdk: 1.6.0_17
Class-Path: Theater-ejb-1.0-SNAPSHOT.jar
[/i]

Anybody can suggest what I am did wrong ?

Thank you !
[Message sent by forum member 'sionut' (ionut.scutaru_at_gmail.com)]

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