This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 140613 [details] TomEE output with exceptions 1. Download and register the "TomEE JAX-RS 1.5.2" server from tomee.apache.org 2. Open the attached project (or, you can also created it by using Entity from DB and REST from Entity wizards from the sample database). 3. Run this app on TomEE 4. Open URL http://localhost:8080/HelloTomEE/webresources/com.mycompany.hellotomee.customer => Exceptions in the attachment are thrown in output.
Created attachment 140614 [details] Project to reproduce
Is tomee supported server?
It's runtime exception, and it's nice if someone will provide a way to fix it on tomee side in my opinion, this way it may be possible to adjust nb generators to generate code suitable for tomee.
some googling http://grokbase.com/t/openejb/users/12bjhzff4f/tomee-sql-exception-user-lacks-privilege-or-object-not-found http://stackoverflow.com/questions/13771783/how-to-define-mysql-data-source-in-tomee and for most people the same exception is datasource configuration problem
Ok, I thought that our Tomcat/TomEE plugin does support datasource definition and deployment, no? Should not NetBeans configure this automatically for the user? Petr?
(In reply to Petr Jiricka from comment #5) > Ok, I thought that our Tomcat/TomEE plugin does support datasource > definition and deployment, no? Should not NetBeans configure this > automatically for the user? Petr? Yes it should. Though it looks like there is difference in certain part of TomEE. Perhaps for DS to be used with JTA the tomee needs it to be defined either in tomee.xml or WEB-INF/resources.xml. I'll try to fix it and prefer resources.xml over context.xml on tomee. BTW there might be another issue with generated classes and openjpa (I'm getting org.apache.openjpa.persistence.PersistenceException: Invalid character string format for type int. FailedObject: com.mycompany.hellotomee.Customer-25). I'll file it later if this will be still reproducible after my fix.
move to server plugins as fix is related. there is an issue with openjpa support https://netbeans.org/bugzilla/show_bug.cgi?id=195674 without tomee support it was low priority in my opinion, if tomee is added, it may be more important to fix.
Support reading DS from resources.xml - web-main 4da25f13ab9e.
Creation of datasources in resources.xml - web-main 571afba92eba. Needs more polishing.
Fixed datasource references (actually a quite old unreported bug) and loading DS form tomee.xml. web-main b067d5f9005b
Integrated into 'main-silver', will be available in build *201310040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b067d5f9005b User: Petr Hejl <phejl@netbeans.org> Log: #236510 - Exceptions when running CRUD REST application on TomEE server
resources as root element in resources.xml, fixed tests - web-main a6943fdb3579.
Ok should be fixed now - web-main ef1121833010.