Re[6]: EJB v2 and EJB v3 conflict when deploying .ear

Tero Ripattila <[email protected]> Wed, 12 Jul 2006 14:04:23 +0300
Newsgroups gmane.text.xml.resin.user
Organization Extremia
Message-ID <[email protected]>
Scott,

>> Try the following:

>> <ear-deploy path='deploy'>
>>    <ear-default>
>>      <ejb-server/>
>>    </ear-default>
>> </ear-default>

> I updated my resin.conf to reflect your suggestion:

>       <!-- creates the deploy directory for .ear expansion -->
>       <ear-deploy path="deploy">
>         <ear-default>
>           <ejb-server/>
>           <!-- Configure this for the ejb server
>              -
>              - <ejb-server>
>              -   <config-directory>WEB-INF</config-directory>
>              -   <data-source>jdbc/test</data-source>
>              - </ejb-server>
>             -->
>         </ear-default>
>       </ear-deploy>

> Now I get these conflicting JNDI resource error messages, please see the
> following:

> Resin-3.0.s060705 (built Wed, 05 Jul 2006 07:00:35 PDT)
> Copyright(c) 1998-2006 Caucho Technology.  All rights reserved.

> Starting Resin on Fri, 07 Jul 2006 09:58:19 +0300 (EEST)

> [09:58:21.109] Proxy Cache disk-size=1024M memory-size=8M
> [09:58:21.593] Server[] starting
> [09:58:21.609]
> [09:58:21.609] Windows XP 5.1 x86
> [09:58:21.609] Java 1.5.0_06-b05, 32, mixed mode, Cp1252, fi, Sun Microsystems Inc.
> [09:58:21.609] resin.home = C:\Java\resin-pro-3.0.s060705
> [09:58:21.609] server.root = C:\Java\resin-pro-3.0.s060705
> [09:58:21.609]
> [snip]
> [09:58:22.578] Host[] starting
> [09:58:23.156] In-place class redefinition (HotSwap) is available.
> [09:58:23.796] EnterpriseApplication[hallinta] starting
> [09:58:24.593] `java:comp/env/persistence/PersistenceUnit/resin-ejb'
> is a conflicting JNDI resource for
> `com.caucho.amber.manager.FactoryProxy@1f9338f'
> [09:58:24.593]
> `java:comp/env/persistence/PersistenceContext/resin-ejb' is a
> conflicting JNDI resource for
> `com.caucho.amber.manager.EntityManagerNamingProxy@164b9b6'
> [09:58:25.968] WebApp[http://localhost:80/hallinta] starting
> [09:58:26.234] action: init
> [09:58:26.328] Initializing,
> config='org.apache.struts.util.LocalStrings', returnNull=true
> [09:58:26.328] Initializing,
> config='org.apache.struts.action.ActionResources', returnNull=true
> [09:58:27.406] Initializing, config='ApplicationResources', returnNull=true
> [09:58:27.468] Loading validation rules file from '/WEB-INF/validator-rules.xml'
> [09:58:28.343] Tiles definition factory loaded for module ''.
> [09:58:28.359] WebApp[http://localhost:80/hallinta] stopping
> [09:58:28.359] Tiles definition factory found for request processor ''.

>> It looks like the .ear deployment requires the ejb-server to be  
>> defined in the .ear's context.

> Do I have to paste this ear-deploy block also to the resin-web.xml?

Any ideas what's wrong here?

-- Tero