You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas <ma...@psbase.com> on 2007/04/19 18:23:20 UTC

[S2] Problem getting CRUD example to work from Struts2 Showcase Application

Hi List,

I started a new project, where I wanted to get only the CRUD example 
from the Struts2 Showcase to work (That's the one with Employees and 
Skills). So I copied all necessary files over to my new project. 
Deployment of the CRUD application works well (I used Maven to package 
the war)

However I must obviously have forgotten something, cause I keep getting 
an error when accessing my application at: 
http://localhost:8080/hp/employee/list.action

08:09:59,468 INFO  [STDOUT] 08:09:59,468 ERROR [[default]] 
Servlet.service() for servlet default threw exception 
java.lang.NullPointerException
        at 
com.psbase.jboss.action.AbstractCRUDAction.list(AbstractCRUDAction.java:39)
        ..............

--> getDao() is null in AbstractCRUDAction

I believe it has something to do with getting the data from the 
TestDataProvider. I must admit, I am not sure yet, how it gets the data 
from the storage. I searched for hours in the configs of the showcase 
already, with the hope to find something. If someone could point me in 
the right direction, I'd really appreciate it :-)

Nico


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org