-
Notifications
You must be signed in to change notification settings - Fork 22
wildfly deployment error: mvn -DskipTests install fails with v4.3 #56
Comments
Hi As stated in the logs, you have an issue with the iev datasource in wildfly. Can you checked it's been created successfully with the admin web console? There's a tool allowing you to test a datasource. |
from wildfly logs. 1st there is a warning: 10:10:37,442 INFO [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: chouette.ear |
and then things get more serious later on: 10:10:39,071 ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] (ServerService Thread Pool -- 62) HHH000319: Could not get database metadata: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/chouette |
Hello, |
There's a "test connection" tool in the Connection tab - please check there that it pings your DB ok please. I'm working on testing chouette on an up to date setup (Hib5 + wildfly 14 + PG11) - I'll let you know how it goes. I've installed several times Chouette with the setup stated by @metienne without a problem, so if you just want to try Chouette I'd just stick to the versions he mentioned. |
Hi, thanks @metienne and @mhicauber reverting to postgresql 9.4 helped. It does state this in the docs: "Chouette V3.x requires Postgresql V9.4 or above" so I went with version 10. BTW, if we select this as development base for our project, we are planning to contribute (at least) finnish translations |
versions in use:
postgres: psql (PostgreSQL) 10.5 (Ubuntu 10.5-0ubuntu0.18.04)
java: openjdk version "1.8.0_181"
maven: Apache Maven 3.5.2
others are as in here: https://github.com/afimb/chouette/tree/V3_4
error: when doing mvn -DskipTests install, there is an error:
[INFO] chouette_iev ....................................... FAILURE [01:15 min]
going further, when trying:
sudo ./jboss-cli.sh --connect --command="deploy /home/ilari/GTFS/chouette/chouette/chouette_iev/target/chouette.ear"
Result:
ilari@scrappy:/opt/wildfly-8.2.0.Final/bin$ sudo ./jboss-cli.sh --connect --command="deploy /home/ilari/GTFS/chouette/chouette/c houette_iev/target/chouette.ear"
{"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.subunit."chouette.ear"."mobi.chouette.service.jar".component.Scheduler.START" => "org.jboss .msc.service.StartException in service jboss.deployment.subunit."chouette.ear"."mobi.chouette.service.jar".component.Schedul er.START: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
Caused by: javax.ejb.EJBTransactionRolledbackException: JBAS011048: Failed to construct component instance
Caused by: java.lang.IllegalStateException: JBAS011048: Failed to construct component instance
Caused by: javax.ejb.EJBTransactionRolledbackException: org.hibernate.exception.GenericJDBCException: Could not open connect ion
Caused by: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection
Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection
Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jbos s/datasources/iev
Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/iev
Caused by: javax.resource.ResourceException: Could not create connection
Caused by: org.postgresql.util.PSQLException: This ResultSet is closed."}}}}
I tried to follow the instructions as well as I could.
The text was updated successfully, but these errors were encountered: