• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Simplest [EJB + JPA + JTA + Stateless + Wildfly] project error

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I have been preparing the JPA certification a couple of months. For improving the concepts understanding, I have coded a lot of sample codes with simple SE projects where I had a persistence.xml with transaction-type = RESOURCE_LOCAL.

But now I have spent many days trying to build the simplest EJB project with container managed JTA with a Stateless bean (and later Statefull), also I have followed several tutorials for this, but I am quite blocked.

I would like to share what I have done, and maybe somebody can give me a hint, a solution for my block... I really appreciate any kind of help, or helping resource.

I am using Eclipse, Wildfly, eclipse-link, mariaDb...

When WildFly is starting I getting the followed error:



My project explorer looks like:


Persistence.xml:



ManageEmployeeBean.java:


wildfly-12.0.0.Final/standalone/configuration/standalone.xml:


Thanks in advance,
 
Jose Rguez
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Finally, I was able to deploy this sample rightly on Payara instead of on Wildfly.
I followed this post for creating the datasource in payara: https://blog.payara.fish/using-mysql-with-payara
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I would suggest looking in the managment console under Runtime/../Datasources for your desired DS. You can test if the connection is working also.



 
It means our mission is in jeapordy! Quick, read this tiny ad!
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!