Hello, I'm trying to expose a rmi service on weblogic 10.0 with Spring 2.5.6 but it's not working...
Error:
server-side xml: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
client-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>
Am I missing some configuration?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>
Thanks in advance


Reply With Quote