All,
I've tried to find this and can't, I hope it's not a duplicate question. I'm working on getting datanucleus and tomcat working on eclipse.
I've managed to build and deploy a project that uses datanucleus as an standalone application and it works fine.
I've managed to build a dynamic web application that initialises the datanucleus jdo persistencemanager and that also works fine.
However where I try to use the classes that were working on standalone app I get an exception telling me my classes are not enhanced. I've enabled the datanucleus plugin on this project and used the manual and automatic enhancer however I see no logs when I run the enhancer.
So I'm thinking most likely this is about me not having the correct orm file location! I had issue putting my persistence.xml file in the right location and I resolved it by manually building a property and instantiating my factory that way.
All I need is to know the proper location of orm file (in this case package-mysql.xml) when we move from a standalone scenario to web. I've tried under src folder, same path as my classes (this is what I had for standalone) and also copying it to WEB-INF/lib folder of the webcontent but none has worked.
Any help or pointer is appreciated.
Also if you could point me to a full sample eclipse project with full structure I guess I can find all my answers. I haven't been successful finding one.
Amir