2 Replies Latest reply on Jan 26, 2005 1:06 AM by Alejandro Meza

    Error in deploying appication in jBoss

    keatmin Newbie

      Hi :

      I have developed a web application and it run fine on oc4j, later I packaged all the application files using war file and redeployed them into web container other then oc4j, it seems work fine as well in tomcat 4.1.x, but later when I tried to deploy the same war into jBoss
      3.0.6, it gave the error stated below :

      16:20:02,543 ERROR [STDERR] java.io.IOException: Bad file descriptor
      16:20:02,543 ERROR [STDERR] at oracle.xml.parser.v2.XMLError.flushErrorHand
      er(XMLError.java:169)
      16:20:02,543 ERROR [STDERR] at oracle.xml.parser.v2.XMLError.flushErrors(XM
      Error.java:134)
      16:20:02,543 ERROR [STDERR] at oracle.xml.parser.v2.XMLReader.pushXMLReader
      XMLReader.java:469)
      16:20:02,543 ERROR [STDERR] at oracle.xml.parser.v2.XMLReader.pushXMLReader
      XMLReader.java:190)
      16:20:02,543 ERROR [STDERR] at oracle.xml.parser.v2.XMLParser.parse(XMLPars
      r.java:140)
      16:20:02,543 ERROR [STDERR] at oracle.cle.util.xml.XMLUtil.saxParse(XMLUtil
      java:109)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.loadFromXML(Servi
      e.java:360)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:225)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:178)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.getConcreteService(HttpServletController.java:2140)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.preServiceStart(HttpServletController.java:622)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doPost(HttpServletController.java:435)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doGet(HttpServletController.java:849)
      16:20:02,543 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:740)
      16:20:02,543 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:853)
      16:20:02,543 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.hand
      e(ServletHolder.java:360)
      16:20:02,543 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHand
      er.dispatch(WebApplicationHandler.java:280)
      16:20:02,543 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.han
      le(ServletHandler.java:553)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1717)
      16:20:02,543 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationCont
      xt.handle(WebApplicationContext.java:549)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1667)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServ
      r.java:862)
      16:20:02,543 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:497

      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(Http
      onnection.java:759)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(H
      tpConnection.java:923)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpC
      nnection.java:776)
      16:20:02,543 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnec
      ion(SocketListener.java:202)
      16:20:02,543 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Threa
      edServer.java:289)
      16:20:02,543 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(T
      readPool.java:455)
      16:20:02,543 ERROR [STDERR] null
      16:20:02,543 ERROR [STDERR] oracle.cle.exception.CLEException
      16:20:02,543 ERROR [STDERR] at oracle.cle.util.xml.XMLUtil.saxParse(XMLUtil
      java:114)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.loadFromXML(Servi
      e.java:360)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:225)
      16:20:02,543 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:178)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.getConcreteService(HttpServletController.java:2140)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.preServiceStart(HttpServletController.java:622)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doPost(HttpServletController.java:435)
      16:20:02,543 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doGet(HttpServletController.java:849)
      16:20:02,543 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:740)
      16:20:02,543 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:853)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.hand
      e(ServletHolder.java:360)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHand
      er.dispatch(WebApplicationHandler.java:280)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.han
      le(ServletHandler.java:553)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1717)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationCont
      xt.handle(WebApplicationContext.java:549)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1667)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServ
      r.java:862)
      16:20:02,558 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:497

      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(Http
      onnection.java:759)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(H
      tpConnection.java:923)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpC
      nnection.java:776)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnec
      ion(SocketListener.java:202)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Threa
      edServer.java:289)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(T
      readPool.java:455)
      16:20:02,558 ERROR [STDERR] Failed Loading Service from XML file...
      16:20:02,558 ERROR [STDERR] Service could not be instantiated...
      16:20:02,558 ERROR [STDERR] Check your service definition (XML) file: KmAppServ
      ce.xml
      16:20:02,558 ERROR [STDERR] null
      16:20:02,558 ERROR [STDERR] oracle.cle.exception.CLEException
      16:20:02,558 ERROR [STDERR] at oracle.cle.process.Service.loadFromXML(Servi
      e.java:368)
      16:20:02,558 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:225)
      16:20:02,558 ERROR [STDERR] at oracle.cle.process.Service.(Service.ja
      a:178)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.getConcreteService(HttpServletController.java:2140)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.preServiceStart(HttpServletController.java:622)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doPost(HttpServletController.java:435)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doGet(HttpServletController.java:849)
      16:20:02,558 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:740)
      16:20:02,558 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:853)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.hand
      e(ServletHolder.java:360)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHand
      er.dispatch(WebApplicationHandler.java:280)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.han
      le(ServletHandler.java:553)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1717)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationCont
      xt.handle(WebApplicationContext.java:549)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1667)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServ
      r.java:862)
      16:20:02,558 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:497

      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(Http
      onnection.java:759)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(H
      tpConnection.java:923)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpC
      nnection.java:776)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnec
      ion(SocketListener.java:202)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Threa
      edServer.java:289)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(T
      readPool.java:455)
      16:20:02,558 ERROR [STDERR] null
      16:20:02,558 ERROR [STDERR] java.lang.NullPointerException
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.loadServiceInfo(HttpServletController.java:972)
      16:20:02,558 ERROR [STDERR] at oracle.jheadstart.process.controller.JhsHttp
      ervletController.loadServiceInfo(JhsHttpServletController.java:66)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.preServiceStart(HttpServletController.java:777)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doPost(HttpServletController.java:435)
      16:20:02,558 ERROR [STDERR] at oracle.clex.process.controller.HttpServletCo
      troller.doGet(HttpServletController.java:849)
      16:20:02,558 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:740)
      16:20:02,558 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
      rvlet.java:853)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHolder.hand
      e(ServletHolder.java:360)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationHand
      er.dispatch(WebApplicationHandler.java:280)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.ServletHandler.han
      le(ServletHandler.java:553)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1717)
      16:20:02,558 ERROR [STDERR] at org.mortbay.jetty.servlet.WebApplicationCont
      xt.handle(WebApplicationContext.java:549)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpContext.handle(HttpCont
      xt.java:1667)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpServer.service(HttpServ
      r.java:862)
      16:20:02,558 ERROR [STDERR] at org.jboss.jetty.Jetty.service(Jetty.java:497

      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.service(Http
      onnection.java:759)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handleNext(H
      tpConnection.java:923)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.HttpConnection.handle(HttpC
      nnection.java:776)
      16:20:02,558 ERROR [STDERR] at org.mortbay.http.SocketListener.handleConnec
      ion(SocketListener.java:202)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadedServer.handle(Threa
      edServer.java:289)
      16:20:02,558 ERROR [STDERR] at org.mortbay.util.ThreadPool$PoolThread.run(T
      readPool.java:455)
      16:20:02,558 WARN [jbossweb] WARNING: Exception for /kmapp/StartKmApp
      java.lang.NullPointerException
      at oracle.clex.process.controller.HttpServletController.loadServiceInfo
      HttpServletController.java:972)
      at oracle.jheadstart.process.controller.JhsHttpServletController.loadSe
      viceInfo(JhsHttpServletController.java:66)
      at oracle.clex.process.controller.HttpServletController.preServiceStart
      HttpServletController.java:777)
      at oracle.clex.process.controller.HttpServletController.doPost(HttpServ
      etController.java:435)
      at oracle.clex.process.controller.HttpServletController.doGet(HttpServl
      tController.java:849)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

      I suspect after the oracle.jheadstart.process.controller.JhsHttpServletController finish parsing the web.xml, it could not find the MyAppService.xml located at web-inf/classes, please advice on how to remedy this problem ?

      Keatmin

        • 1. Re: Error in deploying appication in jBoss
          Adrian Brock Master

          The chances are it is trying to use getRealPath()
          This only works if you unpack the deployment
          i.e. create a directory structure that looks
          like the war with the topmost directory
          something like

          server/default/deploy/myapp.war/

          Tomcat standalone always unpacks which is
          probably why it works there.

          Regards,
          Adrian

          • 2. Re: Error in deploying appication in jBoss
            Alejandro Meza Newbie

            Hello I'm having the same problem! my ear deploy works fine in oc4j but puttin into jboss deploy folder and trying to access application I'm getting same stack trace.. I try to unpack te ear file into deploy folder but get the same error. If I unpack in the myapp.war folder and delete de ear file and I cna't see the application, becasue the I don't know where tu put application.xml that has the context-root of the application.
            Can you explain a little bit more about the unpacking procedure plase? I'm using jboss 3.2.6, and also with 4.0 happens the same...
            thanks in advance