0 Replies Latest reply on Jun 21, 2006 10:34 AM by 807569

    Warning msg when  Tomcat 4.1 is started

    807569
      hai form ,
      in my application iam storing connection obj as context attribute,which is initialized on startup and will be destroyed wen application is exited.
      Iam using tomcat 4.1
      wen it is started iam getting some warnings ,


      Jun 21, 2006 3:57:09 PM org.apache.commons.digester.Digester error
      SEVERE: Parse Error at line 1 column 10: Document is invalid: no grammar found.
      org.xml.sax.SAXParseException: Document is invalid: no grammar found. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
      known Source)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
      Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
      loyer.java:307)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
      ava:559)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :358)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      97)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
      0)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      Jun 21, 2006 3:57:09 PM org.apache.commons.digester.Digester error
      SEVERE: Parse Error at line 1 column 10: Document is invalid: no grammar found.
      org.xml.sax.SAXParseException: Document is invalid: no grammar found.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
      known Source)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
      Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
      loyer.java:307)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
      ava:559)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :358)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      97)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
      0)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      USER NAME ======softoffice
      PASSWORD ======soft
      In MY LISTENER Con====== oracle.jdbc.driver.OracleConnection@1f78b68
      In MY LISTENER Statement====== oracle.jdbc.driver.OracleStatement@195dd5b
      context initialized
      Jun 21, 2006 3:57:10 PM org.apache.commons.digester.Digester error
      SEVERE: Parse Error at line 1 column 10: Document root element "web-app", must m
      atch DOCTYPE root "null".
      org.xml.sax.SAXParseException: Document root element "web-app", must match DOCTY
      PE root "null".
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
      known Source)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unkno
      wn Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
      Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
      loyer.java:307)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
      ava:559)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :358)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      97)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
      0)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      Jun 21, 2006 3:57:10 PM org.apache.commons.digester.Digester error
      SEVERE: Parse Error at line 1 column 10: Document is invalid: no grammar found.
      org.xml.sax.SAXParseException: Document is invalid: no grammar found.
      at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Un
      known Source)
      at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
      Source)
      at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Sourc
      e)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElemen
      t(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanR
      ootElementHook(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.apache.commons.digester.Digester.parse(Digester.java:1543)
      at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
      nfig.java:282)
      at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
      9)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
      g.java:243)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3
      567)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
      .java:821)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:80
      7)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)

      at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
      loyer.java:307)
      at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
      ava:559)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401
      )
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
      :358)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
      eSupport.java:166)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

      at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
      )
      at org.apache.catalina.core.StandardService.start(StandardService.java:4
      97)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:219
      0)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
      at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
      at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
      context initialized
      Jun 21, 2006 3:57:10 PM org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on port 8080
      Jun 21, 2006 3:57:10 PM org.apache.jk.common.ChannelSocket init
      INFO: JK2: ajp13 listening on /0.0.0.0:8009
      Jun 21, 2006 3:57:10 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/94 config=C:\Tomcat 4.1\conf\jk2.properties

      and when tomcat is shutdown its giving a
      java.lang.NullPointerException

      can any body tell me why this is coming . will it effect my application.

      Thanx in advance.

      Message was edited by:
      heidi_psl