Announcement Announcement Module
Collapse
No announcement yet.
Help configuring Spring RMI with Weblogic 10.0 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help configuring Spring RMI with Weblogic 10.0

    Hello, I'm trying to expose a rmi service on weblogic 10.0 with Spring 2.5.6 but it's not working...

    Error:
    Code:
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myProxy' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; 
    nested exception is org.springframework.remoting.RemoteLookupFailureException: JNDI lookup for RMI service [t3://localhost:7001/myService] failed; 
    nested exception is javax.naming.NameNotFoundException
    server-side xml:
    Code:
    <bean id="myService" class="my.example.MyServiceImpl" />
    
    <bean class="org.springframework.remoting.rmi.JndiRmiServiceExporter">
    	<property name="service" ref="myService" />
    	<property name="serviceInterface" value="my.example.MyService" />
    	<property name="jndiName" value="myService" />
    </bean>
    client-side xml:
    Code:
    <bean id="myProxy" class="org.springframework.remoting.rmi.JndiRmiProxyFactoryBean">
    	<property name="jndiName" value="t3://localhost:7001/myService" />
    	<property name="jndiEnvironment">
    		<props>
    		        <prop key="java.naming.factory.url.pkgs">weblogic.jndi.factories</prop>
    			</props>
    	</property>
    	<property name="serviceInterface" value="my.example.MyService" />
    </bean>
    Am I missing some configuration?

    Thanks in advance
    Last edited by Rafael Issao; Mar 23rd, 2010, 03:02 PM.
Working...
X