Workbench를 유지한 상태에서 CAS를 다시 설치하게 되면 Workbench의 Data Sources에 접근할 수 없다는 메시지를 보게 된다.
그 이유는 'secret numbers'라는 걸 ws-extensions.xml 이 예전 걸로 유지하고 있기 때문이다.

-----Problem-----
When attempting to access the CAS Extension / Data Sources tab in Workbench, the following error is displayed.

CAS Console must be accessed through Workbench.


-----Cause-----
This problem can occur when CAS is reinstalled or upgraded: it occurs because the "secret numbers" in the casconsole.properties and ws-extensions.xml files no longer match. 


-----Solution-----
Change the secret number in %ENDECA_TOOLS_CONF%\conf\ws-extensions.xml [Windows] or $ENDECA_TOOLS_CONF/conf/ws-extensions.xml [UNIX] to match the one specified in %ENDECA_TOOLS_CONF%\conf\casconsole.properties [Windows] or $ENDECA_TOOLS_CONF/conf/casconsole.properties [UNIX].

After making this change, restart the Endeca Tools Service:

For Windows, open the Services console and select restart for the Endeca Tools Service.

For UNIX, issue these two commands from the Endeca user account:
$ENDECA_TOOLS_ROOT/server/bin/shutdown.sh
$ENDECA_TOOLS_ROOT/server/bin/startup.sh

The following is an example of matching secret codes:

casconsole.properties file:

# Workbench Shared Secret
com.endeca.casconsole.secret=27568

ws-extensions.xml file:

<?xml version="1.0" encoding="UTF-8"?>

<extensions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="extensions.xsd">

<extension id="casconsole" defaultName="Data Sources" defaultDescription
="The CAS Console for Endeca Workbench is a Web-based application used to crawl
various data sources including file systems and content management systems." url
="http://localhost:8006/casconsole/?timestamp=${TS}&auth=${AUTH
}" role="admin" sharedSecret="27568" height="700"/>
</extensions>



+ Recent posts