Skip to Content
Former Member
Feb 09, 2006 at 04:59 PM

Navigation Connector Service will not start



I am trying to program a custom Navigation Connector. As I have read in the documentation, you have to also implement a regular portal service with the purpose of registering the Navigation Connector.

This is the code for the Navigation Connector class. Really simple, just to see if it's working (NavigationEnum is an implementation of the javax.naming.NamingEnumeration).

public class NavConnector extends AbstractNavigationConnectorExt {
	public NavConnector() {

	public NamingEnumeration getInitialNodes(Hashtable arg0) {
		return NavigationEnum.EMPTY_ENUM;

	public INavigationConnectorNode getNode(Hashtable arg0, String arg1) {
		return new NavConnectorNode();

	public NamingEnumeration getNodes(Hashtable arg0, Vector arg1) {
		return NavigationEnum.EMPTY_ENUM;

	public String getConnectorCacheDiscriminator(Hashtable arg0) {
		return "fluffyCache";

	public NamingEnumeration getNodeByQuickLink(Hashtable arg0, String arg1) {
		return NavigationEnum.EMPTY_ENUM;


Then, in a regular service I coded, in the afterInit() method, I have put this:

		INavigationConnectorRegistration service = null;
		try {
			service = (INavigationConnectorRegistration)getContext().getService(INavigationService.KEY);
		} catch (Exception e) {
			logger.warningT("[NavConnectorService.afterInit] exception getting registrator: " + e.toString());
		DefaultNavigationNamingHandler defaultNamingHandler = DefaultNavigationNamingHandler.getInstance();
		if (service != null) {
			service.registerConnector(NAVCONNECTOR_PREFIX, navConnector, defaultNamingHandler);

Can you tell if there is something I am doing wrong?

The service will not start up neither on par upload nor on portal startup.

Thanks in advance.