Hey Guys,
I'm trying to utilize spring and google endpoints but having a pretty fundamental problem. I'm getting a NPE when accessing an autowired service bean from my SystemServiceServlet endpoint(
Java code below). Shouldn't the endpoint-business.xml beans be defined in the root context to be shared amongst the
servlets? Which means the SystemsServiceServlet should have access to these beans correct? Any idea how I can get these wired up correctly. I must admit, usually when coding putting web contexts we have a pretty standard formula we follow and its a simple copy paste which is why I'm a bit fuzzy in this area. Below is the code. Thanks for any help guys.
web.xml
endpoint-business.xml
Java Endpoint Service Defined in the Google SystemServiceServlet. My Autowired userService is null when I call the createUser endpoint.
UserService.java