I think it should bound to repository but I am not aware of endeca. Take a look at some example at  & use ClientRepositoryFactory.
Hi Sham, I am not sure I understand your answer, could add more details please.
Are suggested the issue is with the CRX or the code that tries to make the connection.
Nanhini, can you post the snippet of code that makes the connection?
It deponds how they have configured. An NotBoundException is thrown if an attempt is made to lookup in the registry a name (crx) that has no associated binding. Looking at the exception if they are using default cq configuration then crx in the client url should be small letters instead of "CRX". So what I mean was it should bound to the url defined in web.xml of repository.
An example of default cq with rmi enabled and hello world at  if you change the url to  you get the same exception "java.rmi.NotBoundException: CRX". Make it small it should work.
Thanks for your help! I was using the upper case when referring to repository. Now I am using lower case and it seemed to have fixed that issue.
However, I am getting the following error when I try to connect to CQ5 from endecca.
2012-01-25 12:31:04,144 INFO [/cas] [cas-ecn10cq5-worker-1] com.endeca.cas.extension.datasource.crx.CrxDataSourceRuntime: -Connecting to //xx.x.xx.160:18200/crx
2012-01-25 12:31:04,144 INFO [/cas] [cas-ecn10cq5-worker-1] com.endeca.cas.extension.datasource.crx.CrxDataSourceRuntime: --- Property Set..
2012-01-25 12:31:05,414 INFO [/cas] [cas-ecn10cq5-worker-1] com.endeca.cas.extension.datasource.crx.CrxDataSourceRuntime: --- factory.getRepository(url) Done.. Repository toString is org.apache.jackrabbit.rmi.client.ClientRepositoryFactory$1@307022af
2012-01-25 12:31:05,414 INFO [/cas] [cas-ecn10cq5-worker-1] com.endeca.cas.extension.datasource.crx.CrxDataSourceRuntime: --- Workspace name is : crx.default
2012-01-25 12:31:05,914 ERROR [/cas] [cas-ecn10cq5-worker-1] com.endeca.cas.extension.datasource.crx.CrxDataSourceRuntime: org.apache.jackrabbit.rmi.client.RemoteRepositoryException: java.rmi.ConnectException: Connection refused to host: xx.x.xx.160; nested exception is:
java.net.ConnectException: Connection refused
In addition to my previous post, I have another question. I checked the CRX documentation for rmi connection and
it requires certain jar files need to be in certain directories for rmi to work. Some of these files indicated below are missing from the CRX directory. Would these missing files be the cause for rmi connection not working?
it seems that actually the first one is missing from the default cq5.4 distribution.
I cannot seem to find it as well on our server.
Please let us know if that missing jar could cause the connection refused error.
1 person found this helpful
Connection refused has no relation with missing jar files. Make sure in <cq_home>/crx-quickstart/server/runtime/0/_crx/WEB-INF/web.xml rmi is enabled.
The RMI port for registering the repository in the RMI Registry.
If equals 0, the default port is used. Omit this parameter to
disable RMI server entirely.
For rmi clients the jar that may required are