geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siraj Mohamed" <Si...@virtusa.com>
Subject What causes for a non-application exception
Date Tue, 29 Nov 2005 08:38:46 GMT
Hi All,
 
I am in the process of migrating a J2EE service (called XMeta service)
from WebSphere to Geronimo/WASCE. I have deployed the EAR successfully
without any errors by introducing openejb-jar.xml and a deployment plan
files. My EAR contains many EJBs to perform different services related
to persistent repository.
 
This is my deployment plan file ------>
 
<?xml version="1.0" encoding="UTF-8"?>
<!--
 
     Copyright 2004-2005 The Apache Software Foundation
 
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
 
        http://www.apache.org/licenses/LICENSE-2.0
 
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->
 
<!-- $Rev: 47568 $ $Date: 2004-09-30 01:21:54 -0700 (Thu, 30 Sep 2004) $
-->
 
<application
     xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0"
     configId="RXMeta"
   parentId="org/apache/geronimo/Server"
     >
 
<dependency>
     <uri>mds/jars/analysis_framework.jar</uri>
</dependency>
 
<dependency>
     <uri>mds/jars/antlr-2.7.2.jar</uri>     
</dependency>
 
<dependency>
     <uri>mds/jars/common-2.0.1.jar</uri>
</dependency>
 
<dependency>
     <uri>mds/jars/common.resources-2.0.1.jar</uri>
</dependency>
............
.............
</application>
 
This is my openejb-jar.xml -------------->
 
<?xml version="1.0"?>
 
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar" 
configId="ejb-RXMeta" 
parentId="org/apache/geronimo/Server">
 
<enterprise-beans> 
      <session>
         <ejb-name>ImportService</ejb-name>
         <jndi-name>ImportService</jndi-name>
 
      </session>
      <session>
         <ejb-name>SandboxService</ejb-name>
         <jndi-name>SandboxService</jndi-name>
 
         <resource-ref>
            <ref-name>xmeta_defaultDS</ref-name>
            <resource-link>ASB</resource-link>
         </resource-ref>
 
      </session>
      <session>
         <ejb-name>ObjectDifferencingService</ejb-name>
         <jndi-name>ObjectDifferencingService</jndi-name>
 
 
      </session>
      <session>
         <ejb-name>GlobalSessionService</ejb-name>
         <jndi-name>GlobalSessionService</jndi-name>
 
      </session>
      <session>
         <ejb-name>OperationalRepositoryService</ejb-name>
         <jndi-name>OperationalRepositoryService</jndi-name>
 
         <resource-ref>
            <ref-name>xmeta_defaultDS</ref-name>
            <resource-link>ASB</resource-link>
         </resource-ref>
 
      </session>
      <session>
         <ejb-name>ExportService</ejb-name>
         <jndi-name>ExportService</jndi-name>
 
      </session>
      <session>
         <ejb-name>ImpactAnalysisService</ejb-name>
         <jndi-name>ImpactAnalysisService</jndi-name>
 
      </session>
      <session>
         <ejb-name>MetabrokerAdminService</ejb-name>
         <jndi-name>MetabrokerAdminService</jndi-name>
 
      </session>
      <session>
         <ejb-name>ObjectMergeService</ejb-name>
         <jndi-name>ObjectMergeService</jndi-name>
 
      </session>
      <session>
         <ejb-name>ImportDecodeService</ejb-name>
         <jndi-name>ImportDecodeService</jndi-name>
 
      </session>
      <session>
         <ejb-name>OperationalRepositoryAdminService</ejb-name>
         <jndi-name>OperationalRepositoryAdminService</jndi-name>
 
         <resource-ref>
            <ref-name>xmeta_defaultDS</ref-name>
            <resource-link>ASB</resource-link>
         </resource-ref>
 
      </session>
      <session>
         <ejb-name>StaticDataLineageService</ejb-name>
         <jndi-name>StaticDataLineageService</jndi-name>
 
      </session>
      <session>
         <ejb-name>SandboxAdminService</ejb-name>
         <jndi-name>SandboxAdminService</jndi-name>
 
         <resource-ref>
            <ref-name>xmeta_defaultDS</ref-name>
            <resource-link>ASB</resource-link>
         </resource-ref>
 
      </session>
 
</enterprise-beans> 
    
</openejb-jar>
 
When a client tries to create an EJB, I am getting following exceptions
in the client site which says a non-application exception:
 
Stack Trace:
com.xmeta.client.ServiceClientException: Error getting a handle to the
EJB service from the home
    at
com.xmeta.client.repository.core.impl.DefaultSandboxAdminClient.initiali
ze(DefaultSandboxA
    at
com.xmeta.client.repository.core.CoreRepositoryClientFactory.createSandb
oxAdminClient(Core
    at
com.xmeta.client.repository.command.RegisterEPackageCommand.registerPers
istentWithSandbox(
    at
com.xmeta.client.repository.command.RegisterEPackageCommand.executeComma
nd(RegisterEPackag
    at
com.xmeta.client.repository.command.RegisterEPackageCommand.main(Registe
rEPackageCommand.j
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:85)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:58)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at org.apache.commons.launcher.ChildMain.run(ChildMain.java:228)
Caused by: java.rmi.RemoteException: The bean encountered a
non-application exception. method; nested excep
    javax.ejb.CreateException: CoreRepositoryFactory: Error initializing
implementation class for ISandboxA
    at
org.openejb.server.ejbd.EjbRequestHandler.invoke(EjbRequestHandler.java:
303)
    at
org.openejb.server.ejbd.EjbRequestHandler.doEjbHome_CREATE(EjbRequestHan
dler.java:342)
    at
org.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandl
er.java:205)
    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(<ge
nerated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv
oker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j
ava:118)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav
a:760)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation
Invoker.java:36)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM
ethodInterceptor.java:96)
    at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$b8da9cf.service(<gener
ated>)
    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(Threa
dPool.java:138)
    at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
    at java.lang.Thread.run(Thread.java:568)
Caused by: javax.ejb.CreateException: CoreRepositoryFactory: Error
initializing implementation class for IS
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean.<init>(Sandbox
AdminServiceBean.j
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean$$FastClassByCG
LIB$$d9825d07.newI
    at net.sf.cglib.reflect.FastClass.newInstance(FastClass.java:91)
    at
org.openejb.EJBInstanceFactoryImpl.newInstance(EJBInstanceFactoryImpl.ja
va:76)
    at
org.openejb.sfsb.StatefulInstanceContextFactory.newInstance(StatefulInst
anceContextFactory.java:119)
    at
org.openejb.sfsb.StatefulInstanceFactory.createInstance(StatefulInstance
Factory.java:86)
    at
org.openejb.sfsb.StatefulInstanceInterceptor.getInstanceContext(Stateful
InstanceInterceptor.java:144
    at
org.openejb.sfsb.StatefulInstanceInterceptor.invoke(StatefulInstanceInte
rceptor.java:92)
    at
org.openejb.transaction.ContainerPolicy$TxNotSupported.invoke(ContainerP
olicy.java:89)
    at
org.openejb.transaction.TransactionContextInterceptor.invoke(Transaction
ContextInterceptor.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)
    ... 18 more
 
 
Also this my server site stack traces:
 
6:16,685 ERROR [SandboxAdminServiceBean] CoreRepositoryFactory: Error
initializing implementation class for ISa
ascential.xmeta.repository.core.CoreRepositoryException:
CoreRepositoryFactory: Error initializing implementati
    at
com.xmeta.repository.core.CoreRepositoryFactory.createSandboxAdmin(CoreR
epositoryFactory.java:
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean.<init>(Sandbox
AdminServiceBean.java:
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean$$FastClassByCG
LIB$$d9825d07.newInsta
    at net.sf.cglib.reflect.FastClass.newInstance(FastClass.java:91)
    at
org.openejb.EJBInstanceFactoryImpl.newInstance(EJBInstanceFactoryImpl.ja
va:76)
    at
org.openejb.sfsb.StatefulInstanceContextFactory.newInstance(StatefulInst
anceContextFactory.java:119)
    at
org.openejb.sfsb.StatefulInstanceFactory.createInstance(StatefulInstance
Factory.java:86)
    at
org.openejb.sfsb.StatefulInstanceInterceptor.getInstanceContext(Stateful
InstanceInterceptor.java:144)
    at
org.openejb.sfsb.StatefulInstanceInterceptor.invoke(StatefulInstanceInte
rceptor.java:92)
    at
org.openejb.transaction.ContainerPolicy$TxNotSupported.invoke(ContainerP
olicy.java:89)
    at
org.openejb.transaction.TransactionContextInterceptor.invoke(Transaction
ContextInterceptor.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.doEjbHome_CREATE(EjbRequestHan
dler.java:342)
    at
org.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandl
er.java:205)
    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(<ge
nerated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv
oker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j
ava:118)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav
a:760)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation
Invoker.java:36)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM
ethodInterceptor.java:96)
    at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$b8da9cf.service(<gener
ated>)
    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(Threa
dPool.java:138)
    at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
    at java.lang.Thread.run(Thread.java:568)
ed by: com.xmeta.util.config.EntryNotFoundException: The entry
corresponding to the key CoreRepositor
    at
com.xmeta.util.config.impl.file.ServerFlatFileConfiguration.getEntryAsSt
ring(ServerFlatFileCon
    at
com.xmeta.util.config.AbstractConfiguration.getEntryAsClass(AbstractConf
iguration.java:125)
    at
com.xmeta.util.config.AbstractConfiguration.getEntryAsClass(AbstractConf
iguration.java:178)
    at
com.xmeta.repository.core.CoreRepositoryConfiguration.getSandboxAdminImp
l(CoreRepositoryConfig
    at
com.xmeta.repository.core.CoreRepositoryFactory.createSandboxAdmin(CoreR
epositoryFactory.java:
    ... 31 more
6:16,701 WARN  [SystemExceptionInterceptor] SandboxAdminService
x.ejb.CreateException: CoreRepositoryFactory: Error initializing
implementation class for ISandboxAdmin.
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean.<init>(Sandbox
AdminServiceBean.java:
    at
com.xmeta.service.repository.core.SandboxAdminServiceBean$$FastClassByCG
LIB$$d9825d07.newInsta
    at net.sf.cglib.reflect.FastClass.newInstance(FastClass.java:91)
    at
org.openejb.EJBInstanceFactoryImpl.newInstance(EJBInstanceFactoryImpl.ja
va:76)
    at
org.openejb.sfsb.StatefulInstanceContextFactory.newInstance(StatefulInst
anceContextFactory.java:119)
    at
org.openejb.sfsb.StatefulInstanceFactory.createInstance(StatefulInstance
Factory.java:86)
    at
org.openejb.sfsb.StatefulInstanceInterceptor.getInstanceContext(Stateful
InstanceInterceptor.java:144)
    at
org.openejb.sfsb.StatefulInstanceInterceptor.invoke(StatefulInstanceInte
rceptor.java:92)
    at
org.openejb.transaction.ContainerPolicy$TxNotSupported.invoke(ContainerP
olicy.java:89)
    at
org.openejb.transaction.TransactionContextInterceptor.invoke(Transaction
ContextInterceptor.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.doEjbHome_CREATE(EjbRequestHan
dler.java:342)
    at
org.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandl
er.java:205)
    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(<ge
nerated>)
    at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
    at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInv
oker.java:38)
    at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.j
ava:118)
    at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.jav
a:760)
    at
org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
    at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperation
Invoker.java:36)
    at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyM
ethodInterceptor.java:96)
    at
org.activeio.xnet.ServerService$$EnhancerByCGLIB$$b8da9cf.service(<gener
ated>)
    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(Threa
dPool.java:138)
    at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
    at java.lang.Thread.run(Thread.java:568)
 
1.	What would be reason for the exception? It looks like that the
EJB is not properly deployed and it could not find the EJB on the
server.
2.	Is there any tool available to test whether all bundled EJBs are
deployed successfully? For example I used to use Application Server
Toolkit for WebSphere app server.
 
Thanks in advance,
Siraj
 
 

Mime
View raw message