Announcement Announcement Module
No announcement yet.
MBeanServerConnectionFactoryBean MalformedURL Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • MBeanServerConnectionFactoryBean MalformedURL


    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 - URL path must begin with /jndi/ or /stub/ or /ior/:
    Caused by: 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 id="mbeanServer" class=" FactoryBean"/>

    <bean id="exporter" class="org.springframework.jmx.export.MBeanExporte r">
    <property name="beans">
    <entry key="name=countDownBean">
    <ref local="countdownTimerHolder"/>
    <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>

    <bean id="serverConnector" class=" 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 id="clientConnector" class=" ConnectionFactoryBean">
    <property name="serviceUrl" value="service:jmx:rmi://<server name and port>"/>

    Any work arounds?

  • #2
    JMXServiceURL for OC4J

    You might check out the blog entry Client Setup for Connecting to OC4J Using JSR 160 and the OC4J Developer's Guide.