[Installation, Configuration & DEPLOYMENT] - pls help - calling EJB over IIOP
by sagimann
Hi,
I'm new to Jboss. I've been working with SJSAS up until now, and I'm pulling my hair out on this one:
I'm trying to simply configure my jboss-web.xml so that my servlet could call an EJB 3.0 stateless session bean. Both web app and ejb are running on JBoss 4.2.2GA ('all' configuration) with JDK 1.5, but not on the same host. For testing, however, I run them both on the same host (localhost).
My EJB 3.0 is a simple session bean called ejbtest.HelloBean with a remote interface ejbtest.HelloRemote. I've verified that, by default, it is registered in JNDI under:
(SJSAS): ejbtest.HelloRemote
(Jboss): ejbtest/HelloBean/remote
In SJSAS, in order to call the EJB from my web app, I would configure my web app's sun-web.xml like this:
| <ejb-ref>
| <ejb-ref-name>hello</ejb-ref-name>
| <jndi-name>corbaname:iiop:localhost:3700#ejbtest.HelloBean</jndi-name>
| </ejb-ref>
|
I combed the internet for the JBoss equivalent, and I'm still unable to create a valid jboss-web.xml file!!!
I already tried the following:
1. Override the default invoker proxy in my EJB's jboss.xml file, i.e.:
| <invoker-bindings>
| <invoker>
| <invoker-proxy-binding-name>iiop</invoker-proxy-binding-name>
| <jndi-name>ejbtest/HelloBean/remote</jndi-name>
| </invoker>
| </invoker-bindings>
|
2. use various jndi-name tags in jboss-web.xml, and get various errors:
corbaname:iiop:localhost:3528#ejbtest/HelloBean/remote
iiop://localhost:3528/ejbtest/HelloBean/remote
client error is: NPE
server error is:
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]]
corbaloc::localhost:3528/JBoss/Naming/root/ejbtest/HelloBean/remote
corbaloc:iiop:localhost:3528/JBoss/Naming/root/ejbtest/HelloBean/remote
client error is: NPE
server error is:
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: corbaloc:iiop:localhost:3528 not bound]
corbaname:iiop:localhost:3528/JBossCorbaNaming#ejbtest/HelloBean/remote
corbaname:iiop:localhost:3528/JBossCorbaNaming/root#ejbtest/HelloBean/remote
jnp://localhost:1099/ejbtest/HelloBean/remote
client error is: NPE
server error is:
javax.naming.NamingException: Could not dereference object [Root exception is org.omg.CORBA.OBJECT_NOT_EXIST: Server-side Exception: null vmcid: 0x0 minor code: 0 completed: No]
jnp://localhost:1099/iiop/ejbtest/HelloBean/remote
client error is: NPE
server error is:
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: iiop not bound]
jnp://localhost:1099/ejbtest/HelloBean
client error is: NPE
server error is:
java.lang.ClassCastException: org.jnp.interfaces.NamingContext
No dice.
I am NOT looking for a solution that involves writing JBoss-specific code in my web app, cuz it won't be portable.
Any ideas??? It should not be that complex AFAIK.
thanks in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116047#4116047
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116047
18 years, 3 months
[JBoss Seam] - Problem input cyrilic sympol
by volvov54
More recently became the user framework Seam and too has faced a search problem in data in Russian.
I have generated by means of the built in wizard in JBoss Developer Studio components of work with essence (Seam Generate Entities).
And here by search has found out, that there is a double code conversion. Under the report of work JBoss Application Server has found out, that at primary reading of a line of search data in a class arrive in demanded coding UTF-8, then there is a recounting of data it is visible from component Seam and in this case there is an additional code conversion.
Component Seam is defined in a file person.xhtml.page In a following kind:
Code:
If there is no this parametre or there is no attribute value search is carried out normally, but the line of search does not remain (becomes empty). And in a canonical form there is an additional code conversion at reading from component Seam, and the number of symbols in a line of search doubles also they not read
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116035#4116035
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116035
18 years, 3 months