Error To Build Connect 4.4.1

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Error To Build Connect 4.4.1

svetlana
Hello
We are upgrading our system from Connect 3.1 to Connect 4.4

CMS is using CONNCET 4.4 version We are upgrading our system with same version
We are building  CONNECT 4.4.1 from source installation
I tried Binary installation but I was not able to deploy ear to App server
Is there easiest way to upgrade to new Connect version?
We are out of deadline that's why I am asking



A little information
OS is WINDOWS
App server is Glassfish
Java jdk-7u80-windows-x64
Maven apache-maven-3.0.5-bin
Source CONNECT-4.4.1
apache-ant-1.7.1-bin

LINK https://connectopensource.atlassian.net/wiki/display/CONNECT4/Building+CONNECT+4.4+from+Source
I am following the steps of this link.

We have mysql 5.1 installed from old 3.1 installation.Can we keep it?
All env varaiables of this installation were set.Are there more env variable to be set?

When I am running code mvn clean install
I am receiving  error  bellow

Please help to fix this error
I am not expert in MAVEN I am trying to catch up everything now
I am thankful for your help.
Thank you.

[INFO] <<< cobertura-maven-plugin:2.5.2:check (cobertura-check) @ CONNECTAdapter
Web <<<
[INFO]
[INFO] --- cobertura-maven-plugin:2.5.2:check (cobertura-check) @ CONNECTAdapter
Web ---
[INFO] Cobertura 1.9.4.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 23 classes.

[ERROR] Project failed check. Total branch coverage rate of 5.1% is below 85.0%
Project failed check. Total line coverage rate of 19.9% is below 85.0%

[ERROR] Coverage check failed. See messages above.
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ CONNECTAdapterWe
b ---
[INFO] Installing C:\CONNECT-4.4.1\Product\Production\Adapters\General\CONNECTAd
apterWeb\target\CONNECTAdapterWeb.war to C:\Users\Risarcwebadmin2\.m2\repository
\org\connectopensource\CONNECTAdapterWeb\4.4.1\CONNECTAdapterWeb-4.4.1.war
[INFO] Installing C:\CONNECT-4.4.1\Product\Production\Adapters\General\CONNECTAd
apterWeb\pom.xml to C:\Users\Risarcwebadmin2\.m2\repository\org\connectopensourc
e\CONNECTAdapterWeb\4.4.1\CONNECTAdapterWeb-4.4.1.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building CONNECTAdapterPDPOpenSSO 4.4.1
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.forgerock.org/repo/releases/org/forgerock/openam/fedli
b/10.0.1/fedlib-10.0.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] CONNECT Solution .................................. SUCCESS [2.256s]
[INFO] CONNECT Third Party ............................... SUCCESS [0.351s]
[INFO] CONNECT Product ................................... SUCCESS [0.968s]
[INFO] CONNECT Build Tools ............................... SUCCESS [1.040s]
[INFO] Production ........................................ SUCCESS [1.422s]
[INFO] Common ............................................ SUCCESS [0.068s]
[INFO] Properties ........................................ SUCCESS [1.152s]
[INFO] CONNECT Core Library .............................. SUCCESS [1:22.223s]
[INFO] Services .......................................... SUCCESS [0.093s]
[INFO] CONNECT Connection Manager Core ................... SUCCESS [1.586s]
[INFO] CONNECT Common Web ................................ SUCCESS [4.694s]
[INFO] CONNECT Adapter Authentication Core ............... SUCCESS [1.612s]
[INFO] CONNECT Audit Repository Core ..................... SUCCESS [3.258s]
[INFO] CONNECT Document Registry Core .................... SUCCESS [7.581s]
[INFO] CONNECT Document Repository Core .................. SUCCESS [4.618s]
[INFO] CONNECT Patient Correlation Core .................. SUCCESS [5.854s]
[INFO] CONNECT Policy Engine Core ........................ SUCCESS [29.887s]
[INFO] CONNECT Redaction Engine Core ..................... SUCCESS [3.545s]
[INFO] CONNECT Patient Discovery Core .................... SUCCESS [18.660s]
[INFO] CONNECT Document Submission Core .................. SUCCESS [19.091s]
[INFO] CONNECT CORE X12 Document Submission Core ......... SUCCESS [3.984s]
[INFO] CONNECT Shared Engine Core ........................ SUCCESS [6.328s]
[INFO] CONNECT Document Retrieve Core .................... SUCCESS [10.080s]
[INFO] CONNECT Document Query Core ....................... SUCCESS [13.510s]
[INFO] CONNECT Admin Distribution Core ................... SUCCESS [7.750s]
[INFO] Adapters .......................................... SUCCESS [0.089s]
[INFO] General ........................................... SUCCESS [0.085s]
[INFO] CONNECT Adapter Web ............................... SUCCESS [6.679s]
[INFO] CONNECTAdapterPDPOpenSSO .......................... FAILURE [2:06.336s]
[INFO] CONNECT Consumer Preferences Profile GUI .......... SKIPPED
[INFO] CONNECT Deferred Queue Manager GUI ................ SKIPPED
[INFO] CONNECT Universal Client GUI ...................... SKIPPED
[INFO] CONNECT Administration GUI ........................ SKIPPED
[INFO] CONNECTDirectConfig ............................... SKIPPED
[INFO] CONNECT Adapter - AdminDistribution_a0 ............ SKIPPED
[INFO] CONNECT Adapter - DocumentQuery_a0 ................ SKIPPED
[INFO] CONNECT Adapter - DocumentRetrieve_a0 ............. SKIPPED
[INFO] CONNECT Adapter - DocumentSubmission_a0 ........... SKIPPED
[INFO] CONNECT Adapter - PatientDiscovery_a0 ............. SKIPPED
[INFO] CONNECT Adapter - CORE_X12DocumentSubmission_a0 ... SKIPPED
[INFO] Gateway ........................................... SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_10 ............ SKIPPED
[INFO] CONNECT Gateway - AdminDistribution_20 ............ SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_20 ................ SKIPPED
[INFO] CONNECT Gateway - DocumentQuery_30 ................ SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_20 ............. SKIPPED
[INFO] CONNECT Gateway - DocumentRetrieve_30 ............. SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_11 ........... SKIPPED
[INFO] CONNECT Gateway - DocumentSubmission_20 ........... SKIPPED
[INFO] CONNECT Gateway - PatientDiscovery_10 ............. SKIPPED
[INFO] CONNECT Gateway Web Webapp ........................ SKIPPED
[INFO] CONNECT Gateway - CORE_X12DocumentSubmission_10 ... SKIPPED
[INFO] CONNECT Deployment ................................ SKIPPED
[INFO] CONNECT EAR - Dependencies ........................ SKIPPED
[INFO] Admin Dist - Dependencies ......................... SKIPPED
[INFO] Document Query - Dependencies ..................... SKIPPED
[INFO] Retrieve Document - Dependencies .................. SKIPPED
[INFO] Document Submission - Dependencies ................ SKIPPED
[INFO] GUIs - Dependencies ............................... SKIPPED
[INFO] Patient Discovery - Dependencies .................. SKIPPED
[INFO] AdminGUI - Dependencies ........................... SKIPPED
[INFO] Core X12 - Dependencies ........................... SKIPPED
[INFO] CONNECT EAR - Dependencies ........................ SKIPPED
[INFO] CONNECT Glassfish EAR ............................. SKIPPED
[INFO] DBScripts ......................................... SKIPPED
[INFO] SoapUI_Test ....................................... SKIPPED
[INFO] FileUtils ......................................... SKIPPED
[INFO] Maven 3 soapUI ValidationSuite .................... SKIPPED
[INFO] Maven 3 soapUI RegressionSuite .................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6:06.417s
[INFO] Finished at: Fri Nov 04 12:33:52 PDT 2016
[INFO] Final Memory: 114M/667M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project CONNECTAdapterPDPOpenSSO: Could not re
solve dependencies for project org.connectopensource:CONNECTAdapterPDPOpenSSO:ja
r:4.4.1: Failed to collect dependencies for [org.connectopensource:CONNECTCoreLi
b:jar:4.4.1 (compile), org.opensaml:opensaml:jar:2.5.1-1 (compile), org.springfr
amework:spring-expression:jar:3.0.7.RELEASE (compile), org.forgerock.openam:clie
ntsdk:jar:10.0.1 (provided), org.forgerock.openam:fedlib:jar:10.0.1 (provided),
com.sun.identity:opensso:jar:1.0 (provided), org.connectopensource:Properties:ja
r:4.4.1 (test), org.connectopensource:CONNECTCommonTypesLib:jar:4.1.0A (compile)
, commons-lang:commons-lang:jar:2.6 (compile), commons-collections:commons-colle
ctions:jar:3.2.1 (compile), org.slf4j:slf4j-api:jar:1.7.0 (compile), javax:javae
e-api:jar:6.0 (provided), commons-logging:commons-logging:jar:1.1.1 (compile), l
og4j:log4j:jar:1.2.17 (compile), com.google.guava:guava:jar:13.0.1 (compile), ju
nit:junit:jar:4.7 (test), org.jmock:jmock:jar:2.5.1 (test), org.jmock:jmock-lega
cy:jar:2.5.1 (test), org.jmock:jmock-junit4:jar:2.5.1 (test), org.mockito:mockit
o-all:jar:1.9.0 (test), net.sourceforge.saxon:saxonhe:jar:9.2.1.5 (test)]: Faile
d to read artifact descriptor for org.forgerock.openam:fedlib:jar:10.0.1: Could
not transfer artifact org.forgerock.openam:fedlib:pom:10.0.1 from/to forgerock (
http://maven.forgerock.org/repo/releases): Failed to transfer file: http://maven
.forgerock.org/repo/releases/org/forgerock/openam/fedlib/10.0.1/fedlib-10.0.1.po
m. Return code is: 502 , ReasonPhrase:Bad Gateway. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :CONNECTAdapterPDPOpenSSO



Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

Sovann Huynh
Administrator
Svetlana, that jar fails to download from time to time. Just run it again and see if that works.

Are there any constraints that prevent you from implementing the latest version of CONNECT? As far as interoperating with CMS, that shouldn't present any issues. Also, we no longer support GlassFish. Is WildFly a valid option for your organization?

Thanks!
Sovann
CONNECT Product Team Member
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

svetlana
Thank you for response, Sovann.
I am not sure if this resolved the issue but I added mysql password in setting.xml file.
I was able to deploy and install everything successfully
Regarding Connect version, we want to keep same version with CMS.
I know that you are not going to support Glassfish anymore but we are planning upgrade our server and I think after that we will go with different App server

I have a question regarding the FIPS compliance
I have noticed the files we were using to set java lib path and other variables do not exist anymore
Example   asadminenv.conf and asant.bat files
Are those variables not required anymore? Are there any alternative files we can use to set the variables?

Do you know any documentation that helps us to set FIPS for latest versions?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

Minh
Administrator
Hi Svetlana,

For glassfish in 4.4.1, please checkout ${CONNECT_Location}/Product/Install/Glassfish/templates.
For FIPS installation, please see this wiki page: https://connectopensource.atlassian.net/wiki/x/dYCh and https://connectopensource.atlassian.net/wiki/x/dABbAg

Thanks,
Minh-Hai Nguyen
CONNECT Product Team Member
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

svetlana
Hello

I have already installed Connect 4.4 I have to set FIPS on Glassfish
I can not find appropriate documentation to set FIPS
Please help

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

Sovann Huynh
Administrator
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

svetlana
Thank you Sovann
I am going look at the links you sent

I started the glassfish but when I look at the log file I see this error

Can you tell me what steps I missed
[#|2016-11-10T10:11:47.386-0800|SEVERE|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=1;_ThreadName=Thread-2;|WebModule[/Adapter/PatientDiscovery/A_0]StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AdapterPatientDiscoveryAsyncReqError': Cannot create inner bean '(inner bean)' of type [gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured] while setting constructor argument; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured] for bean with name '(inner bean)#12' defined in null; nested exception is java.lang.ClassNotFoundException: gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:125)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1002)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:906)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:484)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at org.apache.cxf.transport.servlet.CXFServlet.createSpringContext(CXFServlet.java:160)
        at org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:74)
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.init(CXFNonSpringServlet.java:71)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1453)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1250)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5093)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5380)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:498)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:917)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:901)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:733)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:2019)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1669)
        at com.sun.enterprise.web.WebApplication.start(WebApplication.java:109)
        at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)
        at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)
        at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:301)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.processApplication(ApplicationLoaderService.java:375)
        at com.sun.enterprise.v3.server.ApplicationLoaderService.postConstruct(ApplicationLoaderService.java:219)
        at com.sun.hk2.component.AbstractCreatorImpl.inject(AbstractCreatorImpl.java:131)
        at com.sun.hk2.component.ConstructorCreator.initialize(ConstructorCreator.java:91)
        at com.sun.hk2.component.AbstractCreatorImpl.get(AbstractCreatorImpl.java:82)
        at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:67)
        at com.sun.hk2.component.EventPublishingInhabitant.get(EventPublishingInhabitant.java:139)
        at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:78)
        at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerStartup.java:253)
        at com.sun.enterprise.v3.server.AppServerStartup.doStart(AppServerStartup.java:145)
        at com.sun.enterprise.v3.server.AppServerStartup.start(AppServerStartup.java:136)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishImpl.start(GlassFishImpl.java:79)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishDecorator.start(GlassFishDecorator.java:63)
        at com.sun.enterprise.glassfish.bootstrap.osgi.OSGiGlassFishImpl.start(OSGiGlassFishImpl.java:69)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain$Launcher.launch(GlassFishMain.java:117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.sun.enterprise.glassfish.bootstrap.GlassFishMain.main(GlassFishMain.java:97)
        at com.sun.enterprise.glassfish.bootstrap.ASMain.main(ASMain.java:55)
Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured] for bean with name '(inner bean)#12' defined in null; nested exception is java.lang.ClassNotFoundException: gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1261)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:432)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:270)
        ... 53 more
Caused by: java.lang.ClassNotFoundException: gov.hhs.fha.nhinc.patientdiscovery.adapter.deferred.request.error.AdapterPatientDiscoveryDeferredRequestErrorUnsecured
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1509)
        at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1282)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
        ... 55 more
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

svetlana
In reply to this post by Sovann Huynh
Hello Sovann

We decide to go with Wildfly.
I could not find a link how to install Wildfly on Windows

Please help

thank you
Reply | Threaded
Open this post in threaded view
|

Re: Error To Build Connect 4.4.1

Sovann Huynh
Administrator
Svetlana, here are instructions for deploying CONNECT on WildFly - Windows and UNIX instructions

https://connectopensource.atlassian.net/wiki/pages/viewpage.action?pageId=85852282
Sovann
CONNECT Product Team Member