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

  • 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
    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.

    Comment

    Working...
    X