(JBoss) Problem with .war project on production, while test works

Posted by ikky on Stack Overflow See other posts from Stack Overflow or by ikky
Published on 2010-04-29T08:33:08Z Indexed on 2010/04/29 8:37 UTC
Read the original article Hit count: 255

Filed under:
|
|

Hello. I have a java project (using Spring mvc) which i have built and deployed on my local computer. It runs on a JBoss application server, and works fine on the local machine.

The next step i do, is to copy the deployed project.war from the local machine to the server which has the same development environment as the local machine.

I stop the JBoss server, delete the cache, and run the JBoss server again. When i now try to run one of the pages(xx.xxx.xxx:8080/webservice/test.htm), i get this exception:

exception 

org.springframework.web.util.NestedServletException: Request processing failed; nested     exception is java.lang.NullPointerException
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)


root cause 

java.lang.NullPointerException
com.project.db.DBCustomer.isCredentialsCorrect(DBCustomer.java:44)
com.project.CreateHController.handleRequest(CreateHController.java:60)
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

It seems like none of my classes are reachable. Does anyone have any idea of what is wrong?

btw: as i said, the project works fine on the local machine.

© Stack Overflow or respective owner

Related posts about jboss

Related posts about spring-mvc