Results 1 to 2 of 2

Thread: MBeanServerConnectionFactoryBean MalformedURL

  1. #1
    Join Date
    Jul 2008
    Posts
    1

    Default MBeanServerConnectionFactoryBean MalformedURL

    Hi,

    I am using Spring 1.2.5 and jdk 1.4 (client will not upgrade) on OC4J. The server refuses to come up - the error we get wile instantiating the client connector is -
    java.net.MalformedURLException: URL path must begin with /jndi/ or /stub/ or /ior/:
    Caused by: java.net.MalformedURLException: URL path must begin with /jndi/ or /stub/ or /ior/:

    I tried all the tips in forums, but have not been able to make a headway. Here is the relevant app config.

    <bean id="registry" class="org.springframework.remoting.rmi.RmiRegistr yFactoryBean">
    <property name="port" value="6789"/>
    </bean>

    <bean id="mbeanServer" class="org.springframework.jmx.support.MBeanServer FactoryBean"/>

    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
    <property name="beans">
    <map>
    <entry key="name=countDownBean">
    <ref local="countdownTimerHolder"/>
    </entry>
    </map>
    </property>
    <property name="server" ref="mbeanServer"/>
    <property name="assembler">
    <bean class="org.springframework.jmx.export.assembler.In terfaceBasedMBeanInfoAssembler">
    <property name="managedInterfaces">
    <value>BeanInterface as MBean naming.</value>
    </property>
    </bean>
    </property>
    </bean>

    <bean id="serverConnector" class="org.springframework.jmx.support.ConnectorSe rverFactoryBean">
    <property name="serviceUrl"
    value="service:jmx:iiop://<server name>/jndi/iiop://<server name and port>/myconnector"/>
    <property name="threaded" value="true"/>
    <property name="daemon" value="true"/>
    </bean>

    <bean id="clientConnector" class="org.springframework.jmx.support.MBeanServer ConnectionFactoryBean">
    <property name="serviceUrl" value="service:jmx:rmi://<server name and port>"/>
    </bean>

    Any work arounds?

  2. #2

    Default JMXServiceURL for OC4J


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •