• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception while using Digester.

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is my line of code

InputStream stream = getClass().getClassLoader().getResourceAsStream(AmaConstatntsIF.EJB_DETAILS_FILE);
Digester digester = new Digester();
digester.setValidating(false);
digester.addObjectCreate( "EJBInfo",EjbNames.class );
digester.addObjectCreate( "EJBInfo/EJB",EjbDetail.class);
digester.addBeanPropertySetter( "EJBInfo/EJB/JNDIName", "jndiname" );
digester.addBeanPropertySetter( "EJBInfo/EJB/HomeName", "homeClassname" );
digester.addSetNext( "EJBInfo/EJB", "addEjb" );
EjbNames ejbNames = (EjbNames)digester.parse(stream);

But on the line " EjbNames ejbNames = (EjbNames)digester.parse(stream);"

I am getting following exception.
In fact the EjbNames class is itself in the ear.
I am using websphere 6 app server. Also the same code is working on one server , but not on the another one - running on different machine.

[1/17/07 14:31:49:375 IST] 00000038 SystemErr R java.lang.ClassNotFoundException: com.marsh.ama.common.EjbNames
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at org.apache.commons.digester.Digester.parse(Digester.java:1567)
[1/17/07 14:31:49:515 IST] 00000038 SystemErr R at com.marsh.ama.webapp.common.startLoad.StartUpPlugIn.loadEJBDetails(StartUpPlugIn.java)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.marsh.ama.webapp.common.startLoad.StartUpPlugIn.init(StartUpPlugIn.java:51)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at javax.servlet.GenericServlet.init(GenericServlet.java:256)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:262)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1319)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:84)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:745)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:493)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.webapp.WebApp.initialize(WebApp.java:379)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:114)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.VirtualHost.addWebApplication(VirtualHost.java:127)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.WebContainer.addWebApp(WebContainer.java:776)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:729)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:140)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:360)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1019)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1028)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:538)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:724)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:683)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1161)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at java.lang.reflect.Method.invoke(Method.java:391)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1366)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1012)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:233)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:167)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1249)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:901)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:817)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.console.core.mbean.MBeanHelper.invoke(MBeanHelper.java:184)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at com.ibm.ws.console.appdeployment.ApplicationDeploymentCollectionAction.execute(ApplicationDeploymentCollectionAction.java:458)
[1/17/07 14:31:49:531 IST] 00000038 SystemErr R at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
[1/17/07 14:31:49:546 IST] 00000038 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
 
Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic