• 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

Log4j conflict on JRun4

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I developed one web application on CASPER framework on weblogic. Now I'm migrating it to JRun4 but it throws exception while loding logging service. I tried to run this app on JBoss also where it is working perfectly fine without any code change. There is no server specific xml in this application. Log4j of myapp\WebApp\WEB-INF\lib\log4j-1-2-8.jar is copied to (root)\JRun4\lib but the result is same. Server contains its own log4j which is different i tried to remove that with mine but the result was same. Here i'm pasting the exception :
- added Service class 'com.gepower.rpi.services.ldap.LdapServiceImpl' under key 'ldap-svc'
- Configuration param config: WEB-INF/log-svc.xml
- URL to log4j.dtd is jar:file:/C:/JRun4/lib/jrun-xdoclet.jar!/org/apache/log4j/xml/log4j.dtd
- log-service initialization failure
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:624)
at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:834)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at com.ge.dialect.services.log.LogService.init(LogService.java:160)
at com.ge.casper.common.ServiceLookupDelegate.addService(ServiceLookupDelegate.java:156)
at com.ge.casper.common.ComponentManagerImpl.addService(ComponentManagerImpl.java:327)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:126)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:175)
at com.ge.casper.servlet.CasperServlet.init(CasperServlet.java:169)
at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerService.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
- error loading exception
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:624)
at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:834)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at com.ge.dialect.services.log.LogService.init(LogService.java:160)
at com.ge.casper.common.ServiceLookupDelegate.addService(ServiceLookupDelegate.java:156)
at com.ge.casper.common.ComponentManagerImpl.addService(ComponentManagerImpl.java:327)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:126)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:175)
at com.ge.casper.servlet.CasperServlet.init(CasperServlet.java:169)
at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerService.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
- error processing a component entry
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
at org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:570)
at org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:624)
at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XMLDocumentScanner.java:834)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at com.ge.dialect.services.log.LogService.init(LogService.java:160)
at com.ge.casper.common.ServiceLookupDelegate.addService(ServiceLookupDelegate.java:156)
at com.ge.casper.common.ComponentManagerImpl.addService(ComponentManagerImpl.java:327)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:126)
at com.ge.casper.common.DOMConfigurator.configure(DOMConfigurator.java:175)
at com.ge.casper.servlet.CasperServlet.init(CasperServlet.java:169)
at jrun.servlet.WebApplicationService.loadServlet(WebApplicationService.java:1204)
at jrun.servlet.WebApplicationService.preloadServlets(WebApplicationService.java:762)
at jrun.servlet.WebApplicationService.postStart(WebApplicationService.java:257)
at jrun.deployment.DeployerService.initModules(DeployerService.java:711)
at jrun.deployment.DeployerService.createWatchedDeployment(DeployerService.java:242)
at jrun.deployment.DeployerService.deploy(DeployerService.java:430)
at jrun.deployment.DeployerService.checkWatchedDirectories(DeployerService.java:179)
at jrun.deployment.DeployerService.run(DeployerService.java:891)
at jrunx.scheduler.SchedulerService.invokeRunnable(SchedulerService.java:223)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
- Initializing DB...
- DB Initialized.
 
reply
    Bookmark Topic Watch Topic
  • New Topic