Tuesday, August 25, 2009

Cacao MBean Server - No trusted certificate found


We are trying to set up a development environment to test a patch for Sun Portal Server 7.1.

(Yes, pretty old version. And yes, our company is pretty strict. If customer does not have a development/staging environment to test the new patch, we need to set it up in our office. Otherwise, it's a No-Go!)

Not smooth sailing... Encountered the following error:

bash-3.00# /opt/SUNWportal/bin/psconfig --config ps.xml 
Creating directory: /etc/opt/SUNWportal
Successfully created PSConfig.properties file
Copying config templates from: /opt/SUNWportal/template/config
Successfully created PortalDomainConfig.properties file
Validating the Input Config XML File
Configuring Cacao Agent for Portal Software
Configuring Derby Server Instance
Connecting to Cacao MBean Server
testportal
Configuration Failed : javax.management.remote.JMXProviderException: sun.security.validator.ValidatorException: No trusted certificate found

It must be Cacao again! I hate this "animal"! 

I suspect it's a certificate issue when I rename our Solaris OS hostname from testportal to portal.

Let's recreate the Cacao key again!

bash-3.00# cacaoadm stop
bash-3.00# cacaoadm create-keys --force
bash-3.00# cacaoadm start

Bingo! The configuration can now proceed ...

bash-3.00# /opt/SUNWportal/bin/psconfig --config ps.xml 
Successfully created PSConfig.properties file
Copying config templates from: /opt/SUNWportal/template/config
Successfully created PortalDomainConfig.properties file
Validating the Input Config XML File
Configuring Cacao Agent for Portal Software
Connecting to Cacao MBean Server
portal
Creating Portals
Successfully created Portal: myPortal




No comments:

Post a Comment