aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Deploying Multiple ejb.jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Deploying Multiple ejb.jar files" Watch "Deploying Multiple ejb.jar files" New topic
Author

Deploying Multiple ejb.jar files

Pamela Trout
Greenhorn

Joined: May 18, 2004
Posts: 3
We have separated our one ejb.jar file into three different ejb.jar files. The web interface for WebLogic 8.1 say that all of the ejb's have deployed successfully, but when we look at the console we are getting an error. If we deploy one of the ejb.jar files separately we everything successfully deploys. This particular ejb.jar file includes beans that are using both the local and remote interface. It also has the same Manifest (using JBuilder X) as another ejb.jar file. Any ideas on this one.
Pamela Trout
Greenhorn

Joined: May 18, 2004
Posts: 3
The exact error is class not found.
Pamela Trout
Greenhorn

Joined: May 18, 2004
Posts: 3
This is the exact error

<May 18, 2004 2:54:57 PM EDT> <Warning> <EJB> <BEA-010061> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. The Error was:
[EJB:011010]The JMS destination with the JNDI name:
mil.dcgs.jms.topic.mdf.dda could not be found. Please ensure that the
JNDI n
ame in the weblogic-ejb-jar.xml is correct, and the JMS destination has
been deployed.>
<May 18, 2004 2:55:07 PM EDT> <Warning> <EJB> <BEA-010096> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. Connection failed after 2
attempts. The MDB will attempt to reconnect every 10 secon
ds. This log message will repeat every 600 seconds until the condition
clears.>
<May 18, 2004 2:55:07 PM EDT> <Warning> <EJB> <BEA-010061> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. The Error was:
[EJB:011010]The JMS destination with the JNDI name:
mil.dcgs.jms.topic.mdf.dda could not be found. Please ensure that the
JNDI n
ame in the weblogic-ejb-jar.xml is correct, and the JMS destination has
been deployed.>
- Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=true
- Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
- Begin event threw exception
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.commons.beanutils.PropertyUtils.setSimpleProperty(PropertyUti
ls.java:1789)
at
org.apache.commons.beanutils.PropertyUtils.setNestedProperty(PropertyUti
ls.java:1684)
at
org.apache.commons.beanutils.PropertyUtils.setProperty(PropertyUtils.jav
a:1713)
at
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:1019)
at
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
at
org.apache.commons.digester.SetPropertiesRule.begin(SetPropertiesRule.ja
va:259)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at
weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSA
XParser.java:459)
at
weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Ab
stractXMLDocumentParser.java:221)
at
weblogic.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSchema
Validator.java:618)
at
weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNam
espaceBinder.java:874)
at
weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespace
Binder.java:591)
at
weblogic.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValid
ator.java:748)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElem
ent(XMLDocumentFragmentScannerImpl.java:747)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte
ntDispatcher.dispatch(XMLDocumentFragmentScan
nerImpl.java:1477)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(
XMLDocumentFragmentScannerImpl.java:329)
at
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.j
ava:525)
at
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.j
ava:581)
at
weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser
.java:1175)
at
weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at
weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:1070)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:893)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:842)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:782)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3236)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3181)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3154)
at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletC
ontext.java:5637)
at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:866)
at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.ja
va:2017)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:2058)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.act
ivateContainer(SlaveDeployer.java:2624)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sla
veDeployer.java:2547)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer
.java:2349)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Slav
eDeployer.java:2431)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploye
r.java:2343)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Slav
eDeployer.java:2511)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveD
eployer.java:833)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploye
r.java:542)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeploy
er.java:500)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandle
r.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
Caused by: java.lang.NoClassDefFoundError:
org/apache/struts/action/ActionForm
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericCla
ssLoader.java:476)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
der.java:181)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:223)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at
weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericCla
ssLoader.java:476)
at
weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa
der.java:181)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:292)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa
der.java:223)
at
weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware
ClassLoader.java:41)
at
org.apache.struts.config.FormBeanConfig.formBeanClass(FormBeanConfig.jav
a:320)
at
org.apache.struts.config.FormBeanConfig.setType(FormBeanConfig.java:191)
... 57 more
- Parsing error processing resource path
java.lang.reflect.InvocationTargetException
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
40)
at
org.apache.commons.digester.Digester.createSAXException(Digester.java:25
66)
at
org.apache.commons.digester.Digester.startElement(Digester.java:1276)
at
weblogic.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSA
XParser.java:459)
at
weblogic.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Ab
stractXMLDocumentParser.java:221)
at
weblogic.apache.xerces.impl.xs.XMLSchemaValidator.emptyElement(XMLSchema
Validator.java:618)
at
weblogic.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNam
espaceBinder.java:874)
at
weblogic.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespace
Binder.java:591)
at
weblogic.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValid
ator.java:748)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElem
ent(XMLDocumentFragmentScannerImpl.java:747)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConte
ntDispatcher.dispatch(XMLDocumentFragmentScan
nerImpl.java:1477)
at
weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(
XMLDocumentFragmentScannerImpl.java:329)
at
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.j
ava:525)
at
weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.j
ava:581)
at
weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser
.java:1175)
at
weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135)
at
weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:138)
at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1006)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:1070)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:893)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:842)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:782)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3236)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3181)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3154)
at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletC
ontext.java:5637)
at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:866)
at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.ja
va:2017)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:2058)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.act
ivateContainer(SlaveDeployer.java:2624)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sla
veDeployer.java:2547)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer
.java:2349)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Slav
eDeployer.java:2431)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploye
r.java:2343)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Slav
eDeployer.java:2511)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveD
eployer.java:833)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploye
r.java:542)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeploy
er.java:500)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandle
r.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
<May 18, 2004 3:05:41 PM EDT> <Error> <HTTP> <BEA-101216> <Servlet:
"action" failed to preload on startup in Web application: "d
cgs".
javax.servlet.UnavailableException: Parsing error processing resource
path
at
org.apache.struts.action.ActionServlet.handleConfigException(ActionServl
et.java:1035)
at
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServl
et.java:1014)
at
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.ja
va:955)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:1070)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:317)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
)
at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:893)
at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:842)
at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:782)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServ
letContext.java:3236)
at
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppSer
vletContext.java:3181)
at
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppSe
rvletContext.java:3154)
at
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletC
ontext.java:5637)
at
weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:866)
at
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.ja
va:2017)
at
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer
.java:2058)
at
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.act
ivateContainer(SlaveDeployer.java:2624)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(Sla
veDeployer.java:2547)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer
.java:2349)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(Slav
eDeployer.java:2431)
at
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeploye
r.java:2343)
at
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(Slav
eDeployer.java:2511)
at
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveD
eployer.java:833)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeploye
r.java:542)
at
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeploy
er.java:500)
at
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandle
r.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<May 18, 2004 3:05:41 PM EDT> <Warning> <EJB> <BEA-010061> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. The Error was:
[EJB:011010]The JMS destination with the JNDI name:
mil.dcgs.jms.topic.mdf.dda could not be found. Please ensure that the
JNDI n
ame in the weblogic-ejb-jar.xml is correct, and the JMS destination has
been deployed.>
<May 18, 2004 3:05:51 PM EDT> <Warning> <EJB> <BEA-010096> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. Connection failed after 2
attempts. The MDB will attempt to reconnect every 10 secon
ds. This log message will repeat every 600 seconds until the condition
clears.>
<May 18, 2004 3:05:51 PM EDT> <Warning> <EJB> <BEA-010061> <The
Message-Driven EJB: DDAMessageBean is unable to connect to the J
MS destination: mil.dcgs.jms.topic.mdf.dda. The Error was:
[EJB:011010]The JMS destination with the JNDI name:
mil.dcgs.jms.topic.mdf.dda could not be found. Please ensure that the
JNDI n
ame in the weblogic-ejb-jar.xml is correct, and the JMS destination has
been deployed.>
Pradeep Shekade
Greenhorn

Joined: May 18, 2004
Posts: 5
Hi,

There seems to be dependencies between the ejb jar files. One ejb jar files seems to be using the classes defined in another ejb jar file.


Sun Certified Enterprise Architect<br />IBM Certified Solution Developer - XML and Related Technologies<br />IBM Certified Object-Oriented Analysis and Design with UML
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Multiple ejb.jar files