Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [soteria-dev] Soteria Tests

I don't know what it was picking up but does look to be an issue for me with the URL in the definition: -

@DataSourceDefinition(
    // global to circumvent https://java.net/jira/browse/GLASSFISH-21447
    name = "java:global/MyDS",
    className = "org.h2.jdbcx.JdbcDataSource",
    // :mem:test would be better, but TomEE insists on this being a file
    url="">)

If I change it to "url="" it is now all passing, maybe it will be good to switch to a more unique name if test can accidentally pick up other resources.  Maybe SoteriaTestDB.


On Tue, Feb 4, 2020 at 2:43 PM Darran Lofthouse <darran.lofthouse@xxxxxxxxxx> wrote:
So on the WildFly build it fails with this error: -

org.jboss.arquillian.container.spi.client.container.DeploymentException:
Cannot deploy app-db.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"app-db.war\".component.DatabaseSetup.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"app-db.war\".component.DatabaseSetup.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
    Caused by: javax.ejb.EJBException: java.lang.IllegalStateException: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:global/MyDS
    Caused by: java.lang.IllegalStateException: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:global/MyDS
    Caused by: java.sql.SQLException: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:global/MyDS
    Caused by: javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:global/MyDS
    Caused by: javax.resource.ResourceException: IJ031084: Unable to create connection
    Caused by: org.h2.jdbc.JdbcSQLException: Wrong user name or password [28000-196]"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"app-db.war\".component.DatabaseSetup.START"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}}}

But other builds such as the default without any profile also fail.  I suspect there is something simple in my environment missing.


On Tue, Feb 4, 2020 at 2:29 PM arjan tijms <arjan.tijms@xxxxxxxxx> wrote:
Hi,

From the top of my head, app-db uses the default database, which used to work in WildFly. What is the exact error you're getting?

Kind regards,
Arjan

On Tue, Feb 4, 2020 at 3:03 PM Darran Lofthouse <darran.lofthouse@xxxxxxxxxx> wrote:
Hi,

Just in the process of setting up a new development environment for Soteria, I seem to be missing something - I am trying to use `mvn clean install` as I want the release in my local repo so I can use it with WildFly but the build is failing at "app-db".

I can skip tests to get it to work but I would like to try out some enhancements and use the tests to verify I haven't broken anything.

Regards,
Darran Lofthouse.

_______________________________________________
soteria-dev mailing list
soteria-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/soteria-dev
_______________________________________________
soteria-dev mailing list
soteria-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/soteria-dev

Back to the top