SeamGen in Wildfly
jseanjensen Jun 15, 2015 4:57 PMIn a previous job I worked with JBoss and used SeamGen to generate a quick database app. I was asked to produce something similar and since they were using Wildfly I suggested that Seamgen would be an easy way to generate the skeleton of the app. I loaded Wildfly in Eclipse and used the SeamGen option to create an app. This worked fine and I was ready to show it off. However when I tried to deploy it I got the following error in my console.
14:47:26,081 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "TestGen.war")]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.persistenceunit.\"TestGen.war#TestGen\".__FIRST_PHASE__ is missing [jboss.naming.context.java.jboss.java:resources.TestGenDatasource]"]}
14:47:26,107 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "TestGen.war" (runtime-name : "TestGen.war")
14:47:26,107 INFO [org.jboss.as.server] (ServerService Thread Pool -- 29) JBAS018559: Deployed "mysql-connector-java-5.1.35-bin.jar" (runtime-name : "mysql-connector-java-5.1.35-bin.jar")
14:47:26,117 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.jboss.java:resources.TestGenDatasource (missing) dependents: [service jboss.persistenceunit."TestGen.war#TestGen".__FIRST_PHASE__]
I've been tweaking the configuration all day and I'm baffled as to why I can't get the dependency working. I thought since the data generation phase went ok that the datasource should be fine.
So I need to wire these things together so I can evaluate whether this is worth pursuing. Can anyone suggest a course I can take to 1) get this working so I can show it off 2) tell me which files I should be looking at and where the required files should be?