Le 24 mai 2017 12:47, "chongma" <[email protected]> a écrit :

during development i included the project in the eclipse server launch
configuration.  if i drop it into the lib folder it works.  not sure why
eclipse doesn't include it correctly.

anyway i switched to OpenJPA instead of a JDBC query...

firstly it did not have access to a DataSource defined in tomee.xml.  should
it?


If you set the right name as datasource in the persistence unit you have
but in a loginmodule you are in standalone mode, not ee so sounds highly
possible.


then when i defined the database settings specifically in persistence.xml i
get this error

24-May-2017 12:41:56.431 WARNING [http-nio-8080-exec-9]
sun.reflect.NativeMethodAccessorImpl.invoke Login exception authenticating
username "testuser"
 javax.security.auth.login.LoginException: <openjpa-2.4.2-r422266:1777108
nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This
configuration disallows runtime optimization, but the following listed types
were not enhanced at build time or at class load time with a javaagent: "
uk.me.kissy.jaas.entities.Userrole
uk.me.kissy.jaas.entities.UserroleKey
uk.me.kissy.jaas.entities.User".


Openjpa needs enhanced entities if you are not managed (ee module)




--
View this message in context: http://tomee-openejb.979440.
n4.nabble.com/Asynchronous-httpServletRequest-tp4681723p4681735.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to