Why are you trying BMT?
If your session bean method is responsible for data manipulation, you better use JTA and Resource injection for EntityManager. This will allow you to use CMT. In CMT beans, container creates, commits transaction of your behalf.
In case you want to use BMT (Bean managed Transactions), your code where you trying to save new record must be enclosed in try...catch block
This will give you proper error (in server console) if record could not be saved.
Hi baxhuli ,
Are you trying JPA inside a simple web application? In case you are trying to run it web application or java project, you must be using "Resource_local". Which means @PersistenceContext annotation might not work!
An EJB Application provides JTA resource and annotation to inject EntityManager.
You have to verify your struts.xml, web.xml and also all required jars for whatever version of struts2 you might be using.
I have explained all common solutions but it very difficult without proper details in your question.
Your problem might be because of "ConversionError" Interceptor who raises an Exception and automatically adds "Conversion" error to your field.
Plus, you have got your own "conversion" field validation. Your another problem is that, You have to "short-circuit" your first "required" validator.
I have been working on Tomcat 6+Seam 2 application, after deploying my application, only those components present in src/main gets identified as Seam component whereas classes stored in src/hot are NOT!.
I copied all my classes from src/hot to src/main and then it started working.. but my question is : does it mean Tomcat doesn't support hot deploy feature provided by Seam?
The project structure used by seam-gen is different that structure used by Seam Tools (plug-in of eclipse). Your friend has used "seam-gen" to generate project with ANT build script. Your project is basically an eclipse WTP project with EAR, EJB, WEB & Test modules (eclipse will report each folder as PROJECT!)
You can build, run, deploy your project without using any build.xml (ANT) file.