1 Reply Latest reply on Sep 21, 2006 2:22 PM by darren hartford

    embedded ejb3 - deploying *-ds.xml?

    darren hartford Expert

      Hi all,
      Sorry if this has already been asked or is already 'well known', but I simply can not find any resources on this topic.

      How do you deploy an existing *-ds.xml datasource file with embedded ejb3?

      Thanks,
      -D

        • 1. Re: embedded ejb3 - deploying *-ds.xml?
          darren hartford Expert

          Trying

          EJB3StandaloneBootstrap.deployXmlResource("mydb-ds.xml");
          


          causes error:

          Caused by: org.jboss.xb.binding.JBossXBRuntimeException: No cursor for local-tx-datasource
           at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:280)
           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:301)
           at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
           at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
           at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
           at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
           at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
           at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:138)
           ... 4 more