0 Replies Latest reply on Oct 28, 2009 10:02 AM by Noa Drach

    RepositorySelector looking for log4j.dtd in server bin folde

    Noa Drach Novice

      Hello,

      I'm using JBOSS 5.1.0.GA.

      I tried to implement the solution given hhttp://www.jboss.org/community/wiki/log4jrepositoryselector for EJB's.

      I implemented the repository selector and followed the example - I invoke my EJB from a standalone main and i keep getting

      Caused by: java.io.FileNotFoundException: C:\jboss-5.1.0.GA\bin\log4j.dtd
      at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:105)
      at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:112)
      at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
      at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
      at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
      at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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.DOMParser.parse(Unknown Source)
      at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
      at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
      at com.utils.logging.ContextRepositorySelector.loadLog4JConfig(ContextRepositorySelector.java:77)


      I tried to change so my ejb will call EJBOther that will do the logging and i keep getting the same error.

      any ideas?