AnsweredAssumed Answered

java.net.MalformedURLException: no protocol: JBoss

Question asked by bindiya on Feb 20, 2007
Hi



2007-02-15 16:12:21,285 INFO  [STDOUT] IPCSTATE Initializing parameters…

2007-02-15 16:12:23,754 ERROR [STDERR] java.rmi.UnmarshalException: error unmarshalling return; nested exception is:

            java.net.MalformedURLException: no protocol: JBoss

2007-02-15 16:12:23,770 ERROR [STDERR]        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

2007-02-15 16:12:23,770 ERROR [STDERR]        at java.rmi.Naming.lookup(Naming.java:84)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jackrabbit.rmi.client.ClientRepositoryFactory.getRepository(ClientRepositoryFactory.java:86)

2007-02-15 16:12:23,770 ERROR [STDERR]        at com.dsaweb.alfresco.content.AlfrescoConnection.getAlfConnection(AlfrescoConnection.java:48)

2007-02-15 16:12:23,770 ERROR [STDERR]        at com.dsaweb.alfresco.jsf.bean.DsaHomeBean.getWelcomePage(DsaHomeBean.java:67)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jsp.homePage_jsp._jspService(homePage_jsp.java:124)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

2007-02-15 16:12:23,770 ERROR [STDERR]        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)

2007-02-15 16:12:23,770 ERROR [STDERR]        at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

2007-02-15 16:12:23,770 ERROR [STDERR]        at org.jboss.portal.portlet.impl.PortletRequestDispatcherImpl.execute(PortletRequestDispatcherImpl.java:77)

2007-02-15 16:12:23,770 ERROR [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

2007-02-15 16:12:23,770 ERROR [STDERR]        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)




In the web.xml of jackrabbit-sever-1.1war i have the following configuration

        <init-param>
            <param-name>rmi-port</param-name>
            <param-value>3099</param-value>
            <description>
                The RMI port for registering the repository in the RMI Registry.
                If equals 0, the default port is used.
            </description>
        </init-param>
        <init-param>
            <param-name>rmi-host</param-name>
            <param-value>localhost</param-value>
            <description>
                The RMI host for registering the repository in the RMI Registry.
                If equals "" or missing, the default host is used.
            </description>
        </init-param>
        <init-param>
            <param-name>rmi-uri</param-name>
            <param-value></param-value>
            <description>
                The RMI uri for registering the repository in the RMI Registry.
                If missing, the uri is composed using the other rmi parameters
                and will have the format: //{rmi-host}:{rmi-port}/{repository-name}
            </description>
        </init-param>


And in the client code

ClientRepositoryFactory factory = new ClientRepositoryFactory();
      Repository repository = null;
      repository = factory.getRepository("rmi://localhost:3099/jackrabbit.repository");


I have no clue where is it going wrong!! Can anyone help me with this???

Note: the machine in which server's are installed has more than one IP Address configured.

Thanks,
Bindiya

Outcomes