-
Jun 12th, 2006, 09:49 AM
#1
invoke remote ejb in remote application server
Hi all,
i tried to invoke from a web application, deployed in a local jboss, an ejb object deployed in a remote jboss application server.
i receive the exception:
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'PermissionObserver' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Can't resolve reference to bean 'Base' while setting property 'base'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Base' defined in ServletContext resource [/WEB-INF/businessLayerContext.xml]: Initialization of bean failed; nested exception is javax.naming.CommunicationException: null
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Base' defined in ServletContext resource [/WEB-INF/businessLayerContext.xml]: Initialization of bean failed; nested exception is javax.naming.CommunicationException: null
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:647)
at org.jnp.interfaces.NamingContext.lookup(NamingCont ext.java:507)
at javax.naming.InitialContext.lookup(InitialContext. java:347)
at org.springframework.jndi.JndiTemplate$1.doInContex t(JndiTemplate.java:123)
at org.springframework.jndi.JndiTemplate.execute(Jndi Template.java:85)
at org.springframework.jndi.JndiTemplate.lookup(JndiT emplate.java:121)
at org.springframework.jndi.JndiLocatorSupport.lookup (JndiLocatorSupport.java:71)
at org.springframework.jndi.JndiObjectLocator.lookup( JndiObjectLocator.java:106)
at org.springframework.ejb.access.AbstractRemoteSlsbI nvokerInterceptor.lookup(AbstractRemoteSlsbInvoker Interceptor.java:93)
at org.springframework.ejb.access.AbstractSlsbInvoker Interceptor.refreshHome(AbstractSlsbInvokerInterce ptor.java:102)
at org.springframework.ejb.access.AbstractSlsbInvoker Interceptor.afterPropertiesSet(AbstractSlsbInvoker Interceptor.java:90)
at org.springframework.ejb.access.SimpleRemoteStatele ssSessionProxyFactoryBean.afterPropertiesSet(Simpl eRemoteStatelessSessionProxyFactoryBean.java:95)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1003)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:348)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:226)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:147)
...
If i try to invoke the ejb in local layer ejb (localhost:1099) all it's ok.
It's seem as my problem occurs ONLY if i connect my web application to a remote server.
This the xml spring config:
<bean id="jndiEnviroment" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">org.jnp.interfac es.NamingContextFactory</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.namin g:org.jnp.interfaces</prop>
<prop key="java.naming.provider.url">jnp://ip_server:1099</prop>
</props>
</property>
</bean>
<!-- base -->
<bean id="Base" class="org.springframework.ejb.access.SimpleRemote StatelessSessionProxyFactoryBean" lazy-init="true">
<property name="jndiName">
<value>Base</value>
</property>
<property name="businessInterface">
<value>dp.webDMS.ejbLayer.base.interf.Base</value>
</property>
<property name="jndiTemplate">
<ref bean="jndiEnviroment" />
</property>
</bean>
please help me!!
matteo
-
Mar 20th, 2007, 06:15 PM
#2
Jndi
1. - Have you delete temporal files in your Jboss (i dont know how does Jboos deal with temporal files but weblogic 9.1 is error prone)?
2.- have u test your unit and debugging the test?
3.- do you have the enough credentials to talk with the remote server?
regards
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules