Troubleshooting
Problem
Problem : When trying to build Maximo Anywhere 7.6.3 with SSL configured Maximo 7.6.1 environment, build failed with error "C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:101: The specified Maximo address is not reacheable."
Symptom
build failed with error "C:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:101: The specified Maximo address is not reacheable."
Cause
Maximo SSL Certificate is not imported correctly.
Environment
one Machine : SSL Configured in our Maximo 7.6.1 environment. ( URL : https://max76demo.au.ibm.com:443/maximo)
another Machine : Maximo Anywhere Build Server
Resolving The Problem
In order to build Maximo Anywhere with SSL configured Maximo Asset Management, you need to do some configuration.
1 . Change build.properties , OSLCGenericAdapter.xml , authentificationConfig.xml , worklight..properties etc with Maximo SSL host and Port.
ex. In build.properties,
adapter.name=maximo
adapter.connection.protocol=https
adapter.connection.domain=max76demo.au.ibm.com
adapter.connection.port=443
adapter.connection.context=maximo
adapter.connection.protocol=https
adapter.connection.domain=max76demo.au.ibm.com
adapter.connection.port=443
adapter.connection.context=maximo
2. Downloading your certificate from a browser and importing it in to the Worklight keystore. Please follow the steps
https://www.ibm.com/developerworks/community/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/entry/maximo_anywhere_and_ssl_securing_your_data?lang=en
3. After that, Try to build
You will get error
c:\IBM\Anywhere\MaximoAnywhere\build.xml:382: The following error occurred while executing this line:
c:\IBM\Anywhere\MaximoAnywhere\anywhere-system-verification.xml:313: The following error occurred while executing this line:
c:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:101: The specified Maximo address is not reacheable.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
c:\IBM\Anywhere\MaximoAnywhere\anywhere-system-verification.xml:313: The following error occurred while executing this line:
c:\IBM\Anywhere\MaximoAnywhere\anywhere-apps-builder.xml:101: The specified Maximo address is not reacheable.
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
~
4. In order to fix this issue, you need to import Maximo SSL Certificate downloaded in step 2 to Java Keystore.
If client is using Java 8. Certificate should be added to keystore (c:\java\jdk180_131\jre\lib\security\cacerts)
ex)
keytool -import -storepass "changeit" -keystore c:\java\jdk180_131\jre\lib\security\cacerts -alias anywhere.cer -file C:\IBM\Anywhere\MaximoAnywhere\server\conf\any.cer -noprompt
keytool -import -storepass "changeit" -keystore c:\java\jdk180_131\jre\lib\security\cacerts -alias anywhere.cer -file C:\IBM\Anywhere\MaximoAnywhere\server\conf\any.cer -noprompt
Then build again. The problem will be fixed.
No comments:
Post a Comment