geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Voutat" <olivier.vou...@gmail.com>
Subject Re: Could not deploy module Could not deploy module Role Relation Name [Locacao-Cliente]
Date Sat, 01 Apr 2006 23:35:24 GMT
Please, please anyone, I'm desesperate. How I do a local lookup ?
Session bean lookup Entity Bean

Was trying like this:
Properties prop = new Properties();
prop.put("java.naming.factory.initial", "
org.openejb.client.LocalInitialContextFactory");
Context ctx = new InitialContext(prop);
Object obj = ctx.lookup("MyEntityBean");

But I keep getting this message:

java.io.FileNotFoundException: System resource default.logging.conf cannot
be found
        at org.openejb.util.urlhandler.resource.Handler.openConnection(
Handler.java:88)
        at java.net.URL.openConnection(URL.java:943)
        at java.net.URL.openStream(URL.java:1007)
        at org.openejb.util.Logger$Log4jConfigUtils.createConfig(Logger.java
:1722)
        at org.openejb.util.Logger$Log4jConfigUtils.searchForConfiguration(
Logger.java:1704)
        at org.openejb.util.Logger$Log4jConfigUtils.configure(Logger.java
:1604)
        at org.openejb.util.Logger.<clinit>(Logger.java:78)
        at org.openejb.OpenEJB.checkInitailizationState(OpenEJB.java:303)
        at org.openejb.OpenEJB.init(OpenEJB.java:144)
        at org.openejb.OpenEJB.init(OpenEJB.java:130)
        at org.openejb.loader.EmbeddedLoader.load(EmbeddedLoader.java:66)
        at org.openejb.loader.EmbeddingLoader.load(EmbeddingLoader.java:81)
        at org.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:66)
        at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at br.cefetrn.olivier.session.Locator.getClienteLocalHome(
Locator.java:18)
        at br.cefetrn.olivier.session.MySessionBean.cadastrarCliente(
MySessionBean.java:23)
        at
br.cefetrn.olivier.session.MySessionBean$$FastClassByCGLIB$$fba7f7a3.invoke
(<generated>)
        at org.openejb.dispatch.AbstractMethodOperation.invoke(
AbstractMethodOperation.java:90)
        at org.openejb.slsb.BusinessMethod.execute(BusinessMethod.java:67)
        at org.openejb.dispatch.DispatchInterceptor.invoke(
DispatchInterceptor.java:72)
        at
org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(
ComponentContextInterceptor.java:56)
        at org.openejb.ConnectionTrackingInterceptor.invoke(
ConnectionTrackingInterceptor.java:81)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:119)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.slsb.StatelessInstanceInterceptor.invoke(
StatelessInstanceInterceptor.java:98)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:140)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.SystemExceptionInterceptor.invoke(
SystemExceptionInterceptor.java:82)
        at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java
:238)
        at org.openejb.server.ejbd.EjbRequestHandler.invoke(
EjbRequestHandler.java:297)
        at
org.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(
EjbRequestHandler.java:325)
        at org.openejb.server.ejbd.EjbRequestHandler.processRequest(
EjbRequestHandler.java:196)
        at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150)
        at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87)
        at
org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke
(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
(ProxyMethodInterceptor.java:96)
        at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$463425f3.service
(<generated>)
        at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67)
        at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90)
        at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(
ThreadPool.java:138)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
Failed to configure log4j. /home/olivier/conf/logging.conf (No such file or
directory)
20:33:26,483 WARN  [startup] No ApplicationServer was specified!  The
container system will only be accessible by same-vm clients via the IntraVm
Server.
OpenEJB null    build: null-null
null
20:33:26,487 INFO  [startup]
********************************************************************************
OpenEJB null
Startup: 4/1/06 8:33 PM
null
Version: null
Build date: null
Build time: null
********************************************************************************


20:33:26,591 FATAL [startup] OpenEJB has encountered a fatal error and
cannot be started: The Assembler encountered an unexpected error while
attempting to initialize.
java.lang.NoClassDefFoundError: org/exolab/castor/xml/ValidationException
        at org.openejb.config.ConfigurationFactory.init(
ConfigurationFactory.java:117)
        at org.openejb.assembler.Assembler.init(Assembler.java:159)
        at org.openejb.OpenEJB.initializeAssembler(OpenEJB.java:280)
        at org.openejb.OpenEJB.init(OpenEJB.java:155)
        at org.openejb.OpenEJB.init(OpenEJB.java:130)
        at org.openejb.loader.EmbeddedLoader.load(EmbeddedLoader.java:66)
        at org.openejb.loader.EmbeddingLoader.load(EmbeddingLoader.java:81)
        at org.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:66)
        at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at br.cefetrn.olivier.session.Locator.getClienteLocalHome(
Locator.java:18)
        at br.cefetrn.olivier.session.MySessionBean.cadastrarCliente(
MySessionBean.java:23)
        at
br.cefetrn.olivier.session.MySessionBean$$FastClassByCGLIB$$fba7f7a3.invoke
(<generated>)
        at org.openejb.dispatch.AbstractMethodOperation.invoke(
AbstractMethodOperation.java:90)
        at org.openejb.slsb.BusinessMethod.execute(BusinessMethod.java:67)
        at org.openejb.dispatch.DispatchInterceptor.invoke(
DispatchInterceptor.java:72)
        at
org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(
ComponentContextInterceptor.java:56)
        at org.openejb.ConnectionTrackingInterceptor.invoke(
ConnectionTrackingInterceptor.java:81)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:119)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.slsb.StatelessInstanceInterceptor.invoke(
StatelessInstanceInterceptor.java:98)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:140)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.SystemExceptionInterceptor.invoke(
SystemExceptionInterceptor.java:82)
        at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java
:238)
        at org.openejb.server.ejbd.EjbRequestHandler.invoke(
EjbRequestHandler.java:297)
        at
org.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(
EjbRequestHandler.java:325)
        at org.openejb.server.ejbd.EjbRequestHandler.processRequest(
EjbRequestHandler.java:196)
        at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150)
        at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87)
        at
org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke
(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
(ProxyMethodInterceptor.java:96)
        at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$463425f3.service
(<generated>)
        at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67)
        at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90)
        at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(
ThreadPool.java:138)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
javax.naming.NamingException: Attempted to load OpenEJB. Cannot embed
OpenEJB. Exception: java.lang.Exception
        at org.openejb.client.LocalInitialContextFactory.getInitialContext(
LocalInitialContextFactory.java:68)
        at javax.naming.spi.NamingManager.getInitialContext(
NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at br.cefetrn.olivier.session.Locator.getClienteLocalHome(
Locator.java:18)
        at br.cefetrn.olivier.session.MySessionBean.cadastrarCliente(
MySessionBean.java:23)
        at
br.cefetrn.olivier.session.MySessionBean$$FastClassByCGLIB$$fba7f7a3.invoke
(<generated>)
        at org.openejb.dispatch.AbstractMethodOperation.invoke(
AbstractMethodOperation.java:90)
        at org.openejb.slsb.BusinessMethod.execute(BusinessMethod.java:67)
        at org.openejb.dispatch.DispatchInterceptor.invoke(
DispatchInterceptor.java:72)
        at
org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(
ComponentContextInterceptor.java:56)
        at org.openejb.ConnectionTrackingInterceptor.invoke(
ConnectionTrackingInterceptor.java:81)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:119)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.slsb.StatelessInstanceInterceptor.invoke(
StatelessInstanceInterceptor.java:98)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:140)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.SystemExceptionInterceptor.invoke(
SystemExceptionInterceptor.java:82)
        at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java
:238)
        at org.openejb.server.ejbd.EjbRequestHandler.invoke(
EjbRequestHandler.java:297)
        at
org.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(
EjbRequestHandler.java:325)
        at org.openejb.server.ejbd.EjbRequestHandler.processRequest(
EjbRequestHandler.java:196)
        at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150)
        at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87)
        at
org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke
(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
(ProxyMethodInterceptor.java:96)
        at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$463425f3.service
(<generated>)
        at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67)
        at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90)
        at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(
ThreadPool.java:138)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)
setSessionContext() org.openejb.slsb.StatelessSessionContext@5cbbb1
ejbCreate()
20:33:26,612 WARN  [SystemExceptionInterceptor] MySession
javax.transaction.TransactionRolledbackException
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:126)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.slsb.StatelessInstanceInterceptor.invoke(
StatelessInstanceInterceptor.java:98)
        at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(
ContainerPolicy.java:140)
        at org.openejb.transaction.TransactionContextInterceptor.invoke(
TransactionContextInterceptor.java:80)
        at org.openejb.SystemExceptionInterceptor.invoke(
SystemExceptionInterceptor.java:82)
        at org.openejb.GenericEJBContainer.invoke(GenericEJBContainer.java
:238)
        at org.openejb.server.ejbd.EjbRequestHandler.invoke(
EjbRequestHandler.java:297)
        at
org.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(
EjbRequestHandler.java:325)
        at org.openejb.server.ejbd.EjbRequestHandler.processRequest(
EjbRequestHandler.java:196)
        at org.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:150)
        at org.openejb.server.ejbd.EjbServer.service(EjbServer.java:87)
        at
org.openejb.server.ejbd.EjbServer$$FastClassByCGLIB$$d379d2ff.invoke
(<generated>)
        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
        at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(
FastMethodInvoker.java:38)
        at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(
GBeanOperation.java:118)
        at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(
GBeanInstance.java:800)
        at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(
RawInvoker.java:57)
        at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(
RawOperationInvoker.java:36)
        at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
(ProxyMethodInterceptor.java:96)
        at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$463425f3.service
(<generated>)
        at org.activeio.xnet.ServicePool$2.run(ServicePool.java:67)
        at org.activeio.xnet.ServicePool$3.run(ServicePool.java:90)
        at
org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(
ThreadPool.java:138)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:595)


On 4/1/06, Olivier Voutat <olivier.voutat@gmail.com> wrote:
>
> You got it right Aaron. Can you help me with it ?
>
> Best Regards,
> Olivier Voutat
>
> On 3/31/06, Olivier Voutat < olivier.voutat@gmail.com> wrote:
> >
> > Exactly Aaron.
> >
> >
> > Best Regards,
> > Olivier Voutat
> >
> > On 3/31/06, Aaron Mulder < ammulder@alumni.princeton.edu > wrote:
> > >
> > > OK, so am I right that the lookup from the client to the session bean
> > > works OK, and you need help setting up the lookup where the session
> > > bean gets access to the entity bean?
> > >
> > > Thanks,
> > >      Aaron
> > >
> > > On 3/31/06, Olivier Voutat < olivier.voutat@gmail.com > wrote:
> > > > It is supposed to work like this: My application client (not running
> > > in J2EE
> > > > client container) uses a session bean (it does a remote lookup to
> > > it) to
> > > > work with the entity beans (doing local lookup).
> > > >
> > > > Hope it is clear enough. I know that I could simply work directly
> > > with the
> > > > entity beans but the purpose of this work is exactly to get beans
> > > > communicating with other beans internaly.
> > > >
> > > >
> > > > Best Regards,
> > > > Olivier Voutat
> > > >
> > > > On 3/31/06, Aaron Mulder <ammulder@alumni.princeton.edu > wrote:
> > > > > When you say you look it up remotely, do you mean that you have an
> > >
> > > > > application client (which does not run in the J2EE client
> > > container)
> > > > > that is calling the session bean?
> > > > >
> > > > > Or is it something else you're talking about?
> > > > >
> > > > > Thanks,
> > > > >      Aaron
> > > > >
> > > > > On 3/31/06, Olivier Voutat <olivier.voutat@gmail.com > wrote:
> > > > > > Well, the fact is that I abandonned configuring relationships,
> > > because
> > > > it is
> > > > > > a quite simple example application for a RentACar and I only
> > > have three
> > > > > > database Tables (client, car and rent).
> > > > > >
> > > > > > So I think it won't be harmed if I don't use relationships,
but
> > > I'm
> > > > getting
> > > > > > crazy about one thing,
> > > > > > this application has a Session Bean that is a facade for the
> > > Entity
> > > > Beans.
> > > > > > When I lookup remotely for a Bean I usually do this way:
> > > > > >
> > > > > > Properties prop = new Properties();
> > > > > > prop.put("java.naming.factory.initial
> > > > > > ","org.openejb.client.RemoteInitialContextFactory");
> > > > > > prop.put("java.naming.provider.url ","localhost:4201");
> > > > > > prop.put("java.naming.security.principal","system");
> > > > > > prop.put("java.naming.security.credentials ","manager");
> > > > > >
> > > > > > Context ctx = new InitialContext(prop);
> > > > > > Object obj = ctx.lookup("MyInterface");
> > > > > > MyInterfaceHome = (MyInterfaceHome)obj;
> > > > > >
> > > > > > But I don't get to do this work for a local lookup. Manu told
me
> > > > something
> > > > > > about making a ref but I didn't get how to do it.
> > > > > >
> > > > > > Please, please, please someone help me with that (I'm almost
at
> > > tears
> > > > with
> > > > > > it). Need to finish this application until next Friday urgently.
> > > > > >
> > > > > > Best Regards,
> > > > > > Olivier Voutat
> > > > > >
> > > > > >
> > > > > > On 3/31/06, Aaron Mulder < ammulder@alumni.princeton.edu>
wrote:
> > > > > > > You don't need settings in any files other than ejb-jar.xmland
> > > > > > > openejb-jar.xml to configure CMR.  But I'm afraid you'll
have
> > > to post
> > > > > > > both those files (and a more detailed error message or
stack
> > > trace if
> > > > > > > you have one) if you're looking for more specific advice
about
> > > this
> > > > > > > problem.
> > > > > > >
> > > > > > > Thanks,
> > > > > > >     Aaron
> > > > > > >
> > > > > > > On 3/30/06, Olivier Voutat < olivier.voutat@gmail.com>
wrote:
> > > > > > > > I'm trying to deploy CMP entity beans which has
> > > relationships and I
> > > > > > > > configured it fine in openejb-jar.xml and ejb-jar.xml,
> > > however, when
> > > > I
> > > > > > thy
> > > > > > > > to deploy it, I'm getting the follow message:
> > > > > > > >
> > > > > > > > Could not deploy module
> > > > > > > > Role Relation Name [Locacao-Cliente]
> > > > > > > >
> > > > > > > > Do I have to configure something else more in the
> > > application.xml ?
> > > > > > > >
> > > > > > > > --
> > > > > > > > Olivier & Cidiane Voutat
> > > > > > > > Rua Praia de Muriú, 9188
> > > > > > > > Cep 59092-390 / Natal - RN
> > > > > > > > Tel: (84) 3219-0427 Cel: (84) 9977-3917
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >  --
> > > > > >
> > > > > > Olivier & Cidiane Voutat
> > > > > > Rua Praia de Muriú, 9188
> > > > > > Cep 59092-390 / Natal - RN
> > > > > > Tel: (84) 3219-0427 Cel: (84) 9977-3917
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > Olivier & Cidiane Voutat
> > > > Rua Praia de Muriú, 9188
> > > > Cep 59092-390 / Natal - RN
> > > > Tel: (84) 3219-0427 Cel: (84) 9977-3917
> > >
> >
> >
> >
> > --
> >
> > Olivier & Cidiane Voutat
> > Rua Praia de Muriú, 9188
> > Cep 59092-390 / Natal - RN
> > Tel: (84) 3219-0427 Cel: (84) 9977-3917
> >
>
>
>
> --
>
> Olivier & Cidiane Voutat
> Rua Praia de Muriú, 9188
> Cep 59092-390 / Natal - RN
> Tel: (84) 3219-0427 Cel: (84) 9977-3917
>



--
Olivier & Cidiane Voutat
Rua Praia de Muriú, 9188
Cep 59092-390 / Natal - RN
Tel: (84) 3219-0427 Cel: (84) 9977-3917

Mime
View raw message