[JNDI and Naming] - JNDI lookup issue - EJB not bound
by Gurmat Bhatia
Gurmat Bhatia [http://community.jboss.org/people/gurmat] created the discussion
"JNDI lookup issue - EJB not bound"
To view the discussion, visit: http://community.jboss.org/message/576688#576688
--------------------------------------------------------------
Hi All,
I am new to Jboss...We are migrating from WAS4 to JBoss4.3 and are running into issues for EJB.
For all the EJBs, it is giving below exception:
2010-12-17 09:52:29,008 ERROR [STDERR] javax.naming.NameNotFoundException: ejb not bound
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:581)
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:589)
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:595)
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:313)
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:667)
2010-12-17 09:52:29,009 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
2010-12-17 09:52:29,009 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
Below is the JNDI look up code
InitialContext ic =
*new InitialContext();VendorOSTrackingHome home = (VendorOSTrackingHome) ic.lookup(
"ejb/BulkLoaderApp/VendorOsTracking");
JBoss-web.xml
<?
xml version=+"1.0"+ encoding=+"UTF-8"+?><
jboss-web>
<
ejb-ref>
<ejb-ref-name>ejb/BulkLoaderApp/VendorOsTracking</ejb-ref-name>
<ejb-link>VendorOsTrackingEJB.jar#VendorOsTracking</ejb-link>
<jndi-name>VendorOsTracking</jndi-name></
ejb-ref>
</
jboss-web>
h2. +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
+- env (class: org.jnp.interfaces.NamingContext)
| +- jdbc (class: org.jnp.interfaces.NamingContext)
| | +- Profile[link -> java:Profile] (class: javax.naming.LinkRef)
| +- ejb (class: org.jnp.interfaces.NamingContext)
| | +- BulkLoaderApp (class: org.jnp.interfaces.NamingContext)
| | | +- VendorOsTracking[link -> VendorOsTracking] (class: javax.naming.LinkRef)
| +- security (class: org.jnp.interfaces.NamingContext)
| | +- realmMapping[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
| | +- subject[link -> java:/jaas/customRealm/subject] (class: javax.naming.LinkRef)
| | +- securityMgr[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
| | +- security-domain[link -> java:/jaas/customRealm] (class: javax.naming.LinkRef)
I am really stuck on this...Can anyone please help us out in this??
Thanks,
Gurmat
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/576688#576688]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months
[JBoss Remoting] - Using sockets from JBoss AS?
by Matthew Browne
Matthew Browne [http://community.jboss.org/people/mbrowne] created the discussion
"Using sockets from JBoss AS?"
To view the discussion, visit: http://community.jboss.org/message/573284#573284
--------------------------------------------------------------
Hi,
I am writing a web-app using the Seam Framework that needs to talk to a musical programming application called MaxMSP.
It seemed to me that JBoss Remoting was a good solution for this, and I have a standalone test application working that will talk to MaxMSP (MaxMSP allows you to write Java externals, and I was able to get a JBoss Remoting server to work well from within MaxMSP).
The problem is that when I tried to move the code for establishing the client connection and callback server to the Seam app, I got an EOFException "end of file" error message (thrown from line 877 of org.jboss.remoting.transport.socket.MicroSocketClientInvoker.java).
After some Googling I saw a comment that led me to believe that JBoss AS might be blocking the socket connection. Is it even possible to use sockets with JBoss Remoting from within Jboss AS?
I tried to use RMI instead and almost got it working but unfortunately that doesn't work from within MaxMSP...since MaxMSP has its own dynamic classloader and RMI also has a dynamic classloader, I think there's a conflict there based on the error I was getting. I came to this conclusion because I got the server code to work fine outside of MaxMSP (as a standalone app).
Any pointers would be appreciated.
Thanks,
Matt
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/573284#573284]
Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 3 months