Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade jBPM from 5.3 to 5.4 to allow admin to view enrollments #190

Merged
merged 4 commits into from
Jun 22, 2017

Conversation

jasonaowen
Copy link
Contributor

@jasonaowen jasonaowen commented Jun 20, 2017

When a user with the Service Administrator role tried to view pending enrollments, they would get an error page, and the server log would show a very long stack trace ending in:

org.postgresql.util.PSQLException: Large Objects may not be used in auto-commit mode.

This is a bug in jBPM, and it was fixed in version 5.4!

First, move jBPM and its dependencies into gradle (thanks @slifty!). gradle knows about libraries' dependencies, and will automatically pull in such transitive dependencies. You can see this by running

./gradlew cms-portal-services:dependencies

Once gradle manages jBPM, it is easy to upgrade. There were a few minor API changes, so also clean up LocalHumanTaskHandler a bit in a separate commit before the upgrade.

I was able to test this change by creating an enrollment as a provider, then logging in as the admin and viewing the enrollments! I could even reject enrollments (approving them is blocked on further Hibernate changes).

Issue #1 Support PostgreSQL or other open source database
Issue #16 Manage sets of dependencies via Gradle or another tool
Resolves #171 Service administrator cannot view or approve pending enrollments

@jasonaowen
Copy link
Contributor Author

@slifty: sorry for introducing probable merge conflicts!

@brainwane
Copy link
Contributor

Would you like to add a note to one of your commit messages saying that this fixes #171?

@jasonaowen
Copy link
Contributor Author

Screenshot of service admin's view of enrollments

@jasonaowen
Copy link
Contributor Author

@brainwane oh yeah! Thanks, I'd forgotten about that issue.

@jasonaowen
Copy link
Contributor Author

Now that #182 is merged, this PR needs to update legacy_seed.sql, because the schema changed from 5.3 to 5.4.

Remove the vendored jBPM and its dependencies' jars from the repo, and
manage them in gradle. gradle knows how to pull in transitive
dependencies, so we do not need to name them explicitly: we only need
the top-level dependencies that we refer to directly, in code or in
configuration.

Issue #16 Manage sets of dependencies via Gradle or another tool
Use IntelliJ's Optimize Imports to enforce import layout: `import
static` lines last, java and javax in the middle, and everything else
first.
jBPM 5.3 doesn't play well with PostgreSQL and JPA 2:

> org.postgresql.util.PSQLException: Large Objects may not be used in
> auto-commit mode

This was reported in issue JBPM-3763[1] and fixed in jBPM 5.4. Upgrade
jBPM to 5.4, and its dependencies to the versions shipped with jBPM 5.4,
to address this issue.

Some APIs changed in the upgrade, and notably the persistence definition
of `ProcessInstanceInfo` was moved into a separate file which we must
now include in our `persistence.xml`.

The schema for jBPM's entities changed, so as part of the upgrade,
finally extract the schema into its own SQL file, make sure it has
sensible types and keys in PostgreSQL, and delete the old schema from
`legacy_seed.sql`. Update the docs to match.

[1] https://issues.jboss.org/browse/JBPM-3763

Issue #1 Support PostgreSQL or other open source database
Issue #171 Service administrator cannot view or approve pending
           enrollments
@jasonaowen
Copy link
Contributor Author

I migrated the jBPM DDL and data from legacy_seed.sql to a new file, jbpm.sql, and updated the INSTALL docs. Thanks for pointing this out, @cecilia-donnelly - I think it's ready to test now!

@cecilia-donnelly
Copy link

Hmm, it fails to deploy for me:

{"WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./cms" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./cms: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
    Caused by: javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./cms"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}

I tested this by dropping the database, recreating it, and running:

cd psm-app
./gradlew build
cd ..
echo "Re-seeding database"
psql -h localhost -U psm psm < psm-app/db/seed.sql
psql -h localhost -U psm psm < psm-app/db/jbpm.sql
psql -h localhost -U psm psm < psm-app/db/legacy_seed.sql
echo "Deploying new EAR"
../wildfly-10.1.0.Final/bin/jboss-cli.sh --connect \
       --command="deploy --force psm-app/cms-portal-services/build/libs/cms-portal-services.ear"

I can deploy master with this same process, so I think it's something to do with this branch. Am I skipping a step?

@jasonaowen
Copy link
Contributor Author

@cecilia-donnelly hm, that's very strange... that error looks like one of the errors @slifty was having during the migration from ant to gradle, before renaming things in services/src/main/resources/cms.properties. In particular, it's strange that none of the named beans have anything to do with jBPM.

Maybe a clean build will fix it. Will you try ./gradlew clean and ../../wildfly-10.1.0.Final/bin/jboss-cli.sh --connect --command="undeploy cms-portal-services.ear", then try rebuilding and redeploying?

In the meantime, I'll try deploying on another server to see if I can reproduce this issue.

@jasonaowen
Copy link
Contributor Author

When trying on another machine, I get this in the server log:

10:52:45,061 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 76) MSC000001: Failed to start service jboss.persistenceunit."
cms-portal-services.ear/cms-business-process.jar#cms": org.jboss.msc.service.StartException in service jboss.persistenceunit."cms-portal-ser
vices.ear/cms-business-process.jar#cms": org.hibernate.MappingException: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an
 unmapped class: gov.medicaid.entities.ServiceAssuranceExtType
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:179)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121)
        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.hibernate.MappingException: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an unmapped class: gov.medicaid.
entities.ServiceAssuranceExtType
        at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.secondPassCompileForeignKeys(InFlightMetadataCollectorImpl.java:1837)
        at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.secondPassCompileForeignKeys(InFlightMetadataCollectorImpl.java:1808)
        at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1627)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:278)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
        at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:161)
        ... 7 more

10:52:45,067 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 6) WFLYCTL0013: Operation ("deploy") failed -
 address: ({"deployment" => "cms-portal-services.ear"}) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#cms\"" => "org.jboss.msc.se
rvice.StartException in service jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#cms\": org.hibernate.MappingExcepti
on: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an unmapped class: gov.medicaid.entities.ServiceAssuranceExtType
    Caused by: org.hibernate.MappingException: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an unmapped class: gov.medic
aid.entities.ServiceAssuranceExtType"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#c
ms\""],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
10:52:45,067 ERROR [org.jboss.as.server] (management-handler-thread - 6) WFLYSRV0021: Deploy of deployment "cms-portal-services.ear" was rol
led back with the following failure message: 
{
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#cms\"" => "org.jboss.msc.se
rvice.StartException in service jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#cms\": org.hibernate.MappingExcepti
on: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an unmapped class: gov.medicaid.entities.ServiceAssuranceExtType
    Caused by: org.hibernate.MappingException: An association from the table PROFILE_ASSURED_EXT_SVCS refers to an unmapped class: gov.medic
aid.entities.ServiceAssuranceExtType"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"cms-portal-services.ear/cms-business-process.jar#c
ms\""],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}

@cecilia-donnelly do you have something similar?

@cecilia-donnelly
Copy link

I end up in the same place, but following a different path:

{
    "WFLYCTL0080: Failed services" => {"jboss.undertow.deployment.default-server.default-host./cms" => "org.jboss.msc.service.StartException in service jboss.undertow.deployment.default-server.default-host./cms: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ExportService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ExportServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ExportServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'LookupService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/LookupServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.LookupServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'BusinessProcessService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/BusinessProcessServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.BusinessProcessServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderEnrollmentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderEnrollmentServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderEnrollmentServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'PresentationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/PresentationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.PresentationServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'OnboardingService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/OnboardingServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.OnboardingServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EnrollmentWebService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/EnrollmentWebServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.EnrollmentWebServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AgreementDocumentService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateAgreementDocumentBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateAgreementDocumentBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'HelpService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HelpServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HelpServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'EventService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/HibernateEventServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.HibernateEventServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ScreeningService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ScreeningServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ScreeningServiceBean
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ProviderTypeService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/ProviderTypeServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.ProviderTypeServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SelfRegistrationController' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Cannot resolve reference to bean 'RegistrationService' while setting bean property 'registrationService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RegistrationService' defined in ServletContext resource [/WEB-INF/mvc-dispatcher-servlet.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean
    Caused by: javax.naming.NameNotFoundException: services/RegistrationServiceBean -- service jboss.naming.context.java.app.cms-portal-services.services.RegistrationServiceBean"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.undertow.deployment.default-server.default-host./cms"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}

jBPM 5.4 pulls in more dependencies than 5.3 does, but some of them are
provided by Wildfly - with a different version. These newer versions
conflict with the older versions, so exclude the transitive dependencies
in gradle.

Issue #171 Service administrator cannot view or approve pending
           enrollments
@jasonaowen
Copy link
Contributor Author

It turns out that the new version of jBPM was pulling in more dependencies than the old version, and in particular it was pulling in conflicting versions of libraries provided by Wildfly. I excluded them in gradle and was able to deploy on the SGC box where I was able to reproduce this issue (I'm still not clear why it's not a problem on my laptop ☹️ ).

@cecilia-donnelly Please try this again when you have a moment!

@jasonaowen
Copy link
Contributor Author

You can see the dependencies gradle is managing with the dependencies task:

$ ./gradlew cms-portal-services:dependencies
------------------------------------------------------------
Project :cms-portal-services
------------------------------------------------------------

archives - Configuration for archive artifacts.
No dependencies

default - Configuration for default artifacts.
+--- project :cms-web
+--- project :cms-business-process
|    +--- project :services
|    +--- project :cms-business-model
|    +--- org.jbpm:jbpm-human-task-core:5.4.0.Final
|    |    +--- org.jbpm:jbpm-workitems:5.4.0.Final
|    |    |    +--- org.jbpm:jbpm-flow:5.4.0.Final
|    |    |    |    +--- org.drools:knowledge-api:5.5.0.Final
|    |    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    |    +--- org.drools:drools-core:5.5.0.Final
|    |    |    |    |    +--- org.mvel:mvel2:2.1.3.Final
|    |    |    |    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    |    |    |    +--- org.drools:knowledge-internal-api:5.5.0.Final
|    |    |    |    |    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    |    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    |    +--- com.google.protobuf:protobuf-java:2.4.1
|    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    +--- org.jbpm:jbpm-bpmn2:5.4.0.Final
|    |    |    |    +--- org.jbpm:jbpm-flow-builder:5.4.0.Final
|    |    |    |    |    +--- org.jbpm:jbpm-flow:5.4.0.Final (*)
|    |    |    |    |    \--- org.drools:drools-compiler:5.5.0.Final
|    |    |    |    |         +--- org.drools:drools-core:5.5.0.Final (*)
|    |    |    |    |         +--- org.antlr:antlr-runtime:3.3
|    |    |    |    |         |    \--- org.antlr:stringtemplate:3.2.1
|    |    |    |    |         |         \--- antlr:antlr:2.7.7
|    |    |    |    |         +--- org.antlr:antlr:3.3
|    |    |    |    |         |    \--- org.antlr:antlr-runtime:3.3 (*)
|    |    |    |    |         +--- org.antlr:stringtemplate:3.2.1 (*)
|    |    |    |    |         +--- antlr:antlr:2.7.7
|    |    |    |    |         +--- org.eclipse.jdt.core.compiler:ecj:3.5.1
|    |    |    |    |         +--- org.mvel:mvel2:2.1.3.Final
|    |    |    |    |         +--- com.thoughtworks.xstream:xstream:1.4.1
|    |    |    |    |         |    +--- xmlpull:xmlpull:1.1.3.1
|    |    |    |    |         |    \--- xpp3:xpp3_min:1.1.4c
|    |    |    |    |         \--- org.slf4j:slf4j-api:1.6.4
|    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    +--- javax.mail:mail:1.4
|    |    |    |    \--- javax.activation:activation:1.1
|    |    |    +--- javax.activation:activation:1.1
|    |    |    +--- commons-io:commons-io:1.4
|    |    |    +--- org.apache.commons:commons-compress:1.0
|    |    |    +--- org.apache.commons:commons-exec:1.0.1
|    |    |    +--- jivesoftware:smack:3.1.0
|    |    |    +--- rome:rome:1.0
|    |    |    |    \--- jdom:jdom:1.0
|    |    |    +--- commons-net:commons-net:2.0
|    |    |    +--- jdom:jdom:1.0
|    |    |    +--- org.slf4j:slf4j-api:1.6.4
|    |    |    +--- wsdl4j:wsdl4j:1.6.2
|    |    |    +--- org.apache.neethi:neethi:3.0.2
|    |    |    |    \--- org.codehaus.woodstox:woodstox-core-asl:4.0.8
|    |    |    |         +--- javax.xml.stream:stax-api:1.0-2
|    |    |    |         \--- org.codehaus.woodstox:stax2-api:3.0.2
|    |    |    |              \--- javax.xml.stream:stax-api:1.0-2
|    |    |    \--- org.apache.ws.xmlschema:xmlschema-core:2.0.2
|    |    +--- org.mvel:mvel2:2.1.3.Final
|    |    +--- org.drools:drools-persistence-jpa:5.5.0.Final
|    |    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    |    +--- org.drools:drools-core:5.5.0.Final (*)
|    |    |    +--- org.drools:drools-compiler:5.5.0.Final (*)
|    |    |    +--- com.google.protobuf:protobuf-java:2.4.1
|    |    |    +--- dom4j:dom4j:1.6.1
|    |    |    |    \--- xml-apis:xml-apis:1.0.b2
|    |    |    +--- org.javassist:javassist:3.14.0-GA
|    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    +--- commons-collections:commons-collections:3.2.1
|    |    +--- org.slf4j:slf4j-api:1.6.4
|    |    +--- dom4j:dom4j:1.6.1 (*)
|    |    \--- org.javassist:javassist:3.14.0-GA
|    \--- org.jbpm:jbpm-persistence-jpa:5.4.0.Final
|         +--- org.jbpm:jbpm-flow-builder:5.4.0.Final (*)
|         \--- org.drools:drools-persistence-jpa:5.5.0.Final (*)
+--- org.jbpm:jbpm-human-task-core:5.4.0.Final (*)
+--- org.jbpm:jbpm-persistence-jpa:5.4.0.Final (*)
+--- project :cms-business-model
\--- project :services

deploy - Classpath for deployable modules, not transitive.
+--- project :cms-web
\--- project :cms-business-process

earlib - Classpath for module dependencies.
+--- org.jbpm:jbpm-human-task-core:5.4.0.Final
|    +--- org.jbpm:jbpm-workitems:5.4.0.Final
|    |    +--- org.jbpm:jbpm-flow:5.4.0.Final
|    |    |    +--- org.drools:knowledge-api:5.5.0.Final
|    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    +--- org.drools:drools-core:5.5.0.Final
|    |    |    |    +--- org.mvel:mvel2:2.1.3.Final
|    |    |    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    |    |    +--- org.drools:knowledge-internal-api:5.5.0.Final
|    |    |    |    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    |    +--- com.google.protobuf:protobuf-java:2.4.1
|    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    +--- org.jbpm:jbpm-bpmn2:5.4.0.Final
|    |    |    +--- org.jbpm:jbpm-flow-builder:5.4.0.Final
|    |    |    |    +--- org.jbpm:jbpm-flow:5.4.0.Final (*)
|    |    |    |    \--- org.drools:drools-compiler:5.5.0.Final
|    |    |    |         +--- org.drools:drools-core:5.5.0.Final (*)
|    |    |    |         +--- org.antlr:antlr-runtime:3.3
|    |    |    |         |    \--- org.antlr:stringtemplate:3.2.1
|    |    |    |         |         \--- antlr:antlr:2.7.7
|    |    |    |         +--- org.antlr:antlr:3.3
|    |    |    |         |    \--- org.antlr:antlr-runtime:3.3 (*)
|    |    |    |         +--- org.antlr:stringtemplate:3.2.1 (*)
|    |    |    |         +--- antlr:antlr:2.7.7
|    |    |    |         +--- org.eclipse.jdt.core.compiler:ecj:3.5.1
|    |    |    |         +--- org.mvel:mvel2:2.1.3.Final
|    |    |    |         +--- com.thoughtworks.xstream:xstream:1.4.1
|    |    |    |         |    +--- xmlpull:xmlpull:1.1.3.1
|    |    |    |         |    \--- xpp3:xpp3_min:1.1.4c
|    |    |    |         \--- org.slf4j:slf4j-api:1.6.4
|    |    |    \--- org.slf4j:slf4j-api:1.6.4
|    |    +--- javax.mail:mail:1.4
|    |    |    \--- javax.activation:activation:1.1
|    |    +--- javax.activation:activation:1.1
|    |    +--- commons-io:commons-io:1.4
|    |    +--- org.apache.commons:commons-compress:1.0
|    |    +--- org.apache.commons:commons-exec:1.0.1
|    |    +--- jivesoftware:smack:3.1.0
|    |    +--- rome:rome:1.0
|    |    |    \--- jdom:jdom:1.0
|    |    +--- commons-net:commons-net:2.0
|    |    +--- jdom:jdom:1.0
|    |    +--- org.slf4j:slf4j-api:1.6.4
|    |    +--- wsdl4j:wsdl4j:1.6.2
|    |    +--- org.apache.neethi:neethi:3.0.2
|    |    |    \--- org.codehaus.woodstox:woodstox-core-asl:4.0.8
|    |    |         +--- javax.xml.stream:stax-api:1.0-2
|    |    |         \--- org.codehaus.woodstox:stax2-api:3.0.2
|    |    |              \--- javax.xml.stream:stax-api:1.0-2
|    |    \--- org.apache.ws.xmlschema:xmlschema-core:2.0.2
|    +--- org.mvel:mvel2:2.1.3.Final
|    +--- org.drools:drools-persistence-jpa:5.5.0.Final
|    |    +--- org.drools:knowledge-api:5.5.0.Final (*)
|    |    +--- org.drools:drools-core:5.5.0.Final (*)
|    |    +--- org.drools:drools-compiler:5.5.0.Final (*)
|    |    +--- com.google.protobuf:protobuf-java:2.4.1
|    |    +--- dom4j:dom4j:1.6.1
|    |    |    \--- xml-apis:xml-apis:1.0.b2
|    |    +--- org.javassist:javassist:3.14.0-GA
|    |    \--- org.slf4j:slf4j-api:1.6.4
|    +--- commons-collections:commons-collections:3.2.1
|    +--- org.slf4j:slf4j-api:1.6.4
|    +--- dom4j:dom4j:1.6.1 (*)
|    \--- org.javassist:javassist:3.14.0-GA
+--- org.jbpm:jbpm-persistence-jpa:5.4.0.Final
|    +--- org.jbpm:jbpm-flow-builder:5.4.0.Final (*)
|    \--- org.drools:drools-persistence-jpa:5.5.0.Final (*)
+--- project :cms-business-model
\--- project :services

(*) - dependencies omitted (listed previously)

BUILD SUCCESSFUL

Copy link

@cecilia-donnelly cecilia-donnelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I built, deployed, and tested this change. Works for me! 💯

I don't know much about JBPM, but I think I understand everything going on in this change at least at a high level, thanks to @jasonaowen's commit messages.

@jasonaowen jasonaowen merged commit 1db46db into master Jun 22, 2017
@jasonaowen jasonaowen deleted the jbpm-upgrade branch June 22, 2017 21:44
@jasonaowen jasonaowen mentioned this pull request Jun 23, 2017
2 tasks
@kfogel kfogel added the REQ-1 label Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Service administrator cannot view or approve pending enrollments
4 participants