I made a site with jsp's and servlets. Using a model which was saved using arraylists.
Than I persisted this model, using a Main class I tested all the methods I created.
Now I need to use this persisted model in my site.
I seemed to have forgotten some of the links or made some wrongs one.
Because whenever I go to the any second page of my site and the servlet gets a request, it crashes.
This is because it try's getInstance() of my db which creates an entitymaneger.
It crashes on this line:
emf = Persistence.createEntityManagerFactory("BackPackPersistencyModelPU");
This is the full error:
This is my persistence.xml:
Do I have to put my xml somewhere in the web project? I tried various places.
Right now I simple have the jar of the model in my library of the web project.
I have put my entire project in dropbox just in case I didn't include enough information,
this is the public link: http://dl.dropbox.com/u/16098795/BackPackManagerPersisted.war
Any help is GREATLY appreciated!
Thanks in advance!