difficulty connecting to jackrabbit repository: connection refused

1 message Options
Embed this post
Permalink
williamdubberley

difficulty connecting to jackrabbit repository: connection refused

Reply Threaded More More options
Print post
Permalink
I am haveing difficulty connecting to jackrabbit repository. in my dev setup i am connecting just fine but production is behinde a firewall the repository is internal only with outside connections to the webapp via ssl. my app connects to the repository to upload and downlaod documents stored there. code works fine on dev. I get a connection refused on production

here is some data to start with if you need more data let me know. I would apprecate any help i can get.

Error stacktrace:
2009-07-08 10:14:02,394 ERROR [com.sesame.portal.ui.actions.RJAction] javax.jcr.RepositoryException: Impossible to login : Connection refused to host: 192.168.251.35; nested exception is:
        java.net.ConnectException: Connection timed out: connect: Connection refused to host: 192.168.251.35; nested exception is:
        java.net.ConnectException: Connection timed out: connect: Connection refused to host: 192.168.251.35; nested exception is:
        java.net.ConnectException: Connection timed out: connect
        at com.sesame.portal.DownloadManagement.impl.RepositoryUtil.login(RepositoryUtil.java:91)
        at com.sesame.portal.ui.actions.knowledge.UploadCollaterallAction.executeAction(UploadCollaterallAction.java:72)
        at com.sesame.portal.ui.actions.RJAction.execute(RJAction.java:59)
        at sun.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)
        at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)
        at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)
        at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
        at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
        at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
        at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
        at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)

run.bat
rem With Sun JVMs reduce the RMI GCs to once per hour
set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000 -Djava.rmi.server.hostname=192.168.251.35

connection string:
http://192.168.251.35:8080/jackrabbit-webapp-1.5.5/rmi

public static Repository getTrancientRepository()
        {
                RJPortal rj = RJPortalUtil.getRJProps();
                try
                {
                        Repository repository =
                              new URLRemoteRepository(rj.getProps().get("repository.url"));
                        return repository;
                }
                catch (MalformedURLException e1)
                {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
                }
                /*try
                {
                        return new TransientRepository();
                }
                catch (IOException e)
                {
                        throw new RepositoryException("Impossible to register the respository ", e);
                }*/
                return null;

        }

This connection is behind a firewall with outside connections ssl.
Jackrabbit is on its own machine.
Connecting to jackrabbit with separate machine on same network running jboss