3 Replies Latest reply on Feb 15, 2012 1:48 PM by Peter Johnson

    Problem with war file deployment

    Dilruwan Madubashitha Newbie

      First of all I am very new to jboss AS and this is my first assignment on jboss AS and I did search for couple of weeks in the forums and Internet before poping up this question.

       

      I have a war file which is distributed in the standalone jboss server and all the things works fine except the part where certain pages load its values from a property file and when ever I browse those pages it is not working and following exceptions can be seen in the log.

       

      What can be the reason for this.

       

      btw THis web app uses spring MVC and hibernate and deployment on apache tomcat version 6 works without any problem

       

      14:23:07,603 ERROR [stderr] (MSC service thread 1-4) 2339 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/addEmployee.htm] onto handler 'AddNewEmployeeController'

       

      14:23:07,619 ERROR [stderr] (MSC service thread 1-4) 2355 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/deleteRole.htm] onto handler 'DeleteRoleController'

       

      14:23:07,619 ERROR [stderr] (MSC service thread 1-4) 2355 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/dashboardView.htm] onto handler 'dashboardViewController'

       

      14:23:07,635 ERROR [stderr] (MSC service thread 1-4) 2371 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/viewRole.htm] onto handler 'viewRoleController'

       

      14:23:07,635 ERROR [stderr] (MSC service thread 1-4) 2371 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/index.htm] onto handler 'userLoginController'

       

      14:23:07,650 ERROR [stderr] (MSC service thread 1-4) 2386 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/viewCourse.htm] onto handler 'viewCourseController'

       

      14:23:07,650 ERROR [stderr] (MSC service thread 1-4) 2386 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/deleteEmployee.htm] onto handler 'DeleteEmployeeController'

       

      14:23:07,666 ERROR [stderr] (MSC service thread 1-4) 2402 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/addCourse.htm] onto handler 'addCourseController'

       

      14:23:07,682 ERROR [stderr] (MSC service thread 1-4) 2418 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/addNewRole.htm] onto handler 'AddNewRoleController'

       

      14:23:07,682 ERROR [stderr] (MSC service thread 1-4) 2418 [MSC service thread 1-4] INFO org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/viewEmployee.htm] onto handler 'ViewEmployeeController'

       

      14:23:07,776 ERROR [stderr] (MSC service thread 1-4) 2512 [MSC service thread 1-4] INFO org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'bttr': initialization completed in 345 ms

       

      14:23:07,776 INFO  [org.jboss.web] (MSC service thread 1-4) registering web context: /BTTR

      14:23:07,839 INFO  [org.jboss.as.server.controller] (HttpManagementService-threads - 2) Deployed "BTTR.war"

      14:23:58,026 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/BTTR].[bttr]] (http--127.0.0.1-7000-1) Servlet.service() for servlet bttr threw exception: java.lang.NullPointerException

          at java.util.Properties$LineReader.readLine(Properties.java:418) [:1.6.0_27]

          at java.util.Properties.load0(Properties.java:337) [:1.6.0_27]

          at java.util.Properties.load(Properties.java:325) [:1.6.0_27]

          at com.bt.bttr.common.controller.ViewRoleController.referenceData(ViewRoleController.java:140) [classes:]

          at org.springframework.web.servlet.mvc.SimpleFormController.referenceData(SimpleFormController.java:218) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractFormController.showForm(AbstractFormController.java:578) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:201) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.SimpleFormController.showForm(SimpleFormController.java:178) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:341) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:281) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2054) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]

       

      14:24:21,228 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/BTTR].[bttr]] (http--127.0.0.1-7000-1) Servlet.service() for servlet bttr threw exception: java.lang.NullPointerException

          at java.util.Properties$LineReader.readLine(Properties.java:418) [:1.6.0_27]

          at java.util.Properties.load0(Properties.java:337) [:1.6.0_27]

          at java.util.Properties.load(Properties.java:325) [:1.6.0_27]

          at com.bt.bttr.common.LoadProperties.loadProps(LoadProperties.java:31) [classes:]

          at com.bt.bttr.common.validator.LoginValidator.validate(LoginValidator.java:47) [classes:]

          at org.springframework.validation.ValidationUtils.invokeValidator(ValidationUtils.java:63) [org.springframework.context-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.BaseCommandController.bindAndValidate(BaseCommandController.java:398) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:266) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560) [org.springframework.web.servlet-3.0.5.RELEASE.jar:]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2054) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_27]