Active 8 years, 5 months ago. Viewed 14k times. Index2Controller] http PersonSessionBean] http I guess I am missing something in pom. Bilbo Baggins. Bilbo Baggins Bilbo Baggins 2, 7 7 gold badges 43 43 silver badges 70 70 bronze badges. Add a comment. Active Oldest Votes. Thank you for replying — Bilbo Baggins. If you carefully look at the stacktrace the first line it self says that the PersonSessionBean is being created the problem is with injecting the entity manager.
Thanks for replying. Yes it is, but entity manager injection fails for the reasons explained above. Unfortunately I can't help anymore on this issue because I have never worked with ZK. Sign up or log in Sign up using Google.
I like I don't know if it's the reason of your problem, but you must have all your annotations either in the attributes or in the getter methods. You cannot mix. Either you put the EmbededId annotation before the pk attribute or put the Column annotation before the getDatbis method.
I tried to put all the annotations in the attributes and then i tried putting them before the getter methods but both these solutions dont seem to work. I still get null from the find method. When you set the date in the pk using pk. Is it the exactly date that's stored in the database? Considering hours, minutes and seconds You can configure the log to show the SQL query that's being executed, and then check which values it's using in the parameters.
If it's hibernate, add the following to the persistence. In client I use a factory to get EJB. Final org. How do you call the code from your client? I use jndi lookup on factory — lianyouCat. I assume that you only have own persistence unit so remove the unitname in the PersistenceContext annotation. Show 1 more comment.
Active Oldest Votes. I finally find the solution!! The EntityManager will not be injected if the object is used like this way. Add a comment. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.
0コメント