Skip to content
Advertisement

Wildfly configuration with DataSource

this is the first time I am trying to setup datasource in my Wildfly server. I tried to follow some tutorials which I found on Google but it still doesn’t work.

I am working on a web service but I keep getting some errors when I deploy my .war file.

Here is the latest log when app is deployed:

JavaScript

persistence.xml

JavaScript

Just tell me if you need more files.

Advertisement

Answer

can you post your datasource definition?

I think it would be the best to test the datasource deployment ‘standalone’. I mean separated from an actual application deployment, just to test whether your datasource works or not. You can test this f.i. using the web console (localhost:9990/console).

It also looks like there are problems with the pre-configured example DS of wildfly. Did you remove this DS? In standalone.xml there is also a reference on ExampleDS which might be broken.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement