[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread ALRubinger
Also, have a look at http://www.jboss.org/jbossejb3/docs/. :) S, ALR View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223807#4223807 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223807 _

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Okay, I'm about to drink a pint of windshield wiper fluid. If Peter or anyone else can help me, I'm forever grateful. I have created a new standard Java project, named com.acmeco.serverapp.ftp.client, that sits next to the EJB3 app in my Eclipse workspace. I have created a jndi.properties file

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
ALRIGHT! I'M IN BUSINESS I will do a tutorial here that if the mods deign appropriate will be super helpful and hopefully prevent repeats of my troubles. Thank you very much ALR and Peter! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223806#4223806

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread ALRubinger
That's a different error :) EJB Proxies are castable to their business interface types, not to the bean implementation class. So instead: (com.acmeco.serverapp.ftp.ejb3.FTPBeanRemote)ref; S, ALR View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223803#4223803

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Peter, Thanks man for the follow up, you're awesome. Seriously, bit time. I changed the code to: | public HelloClientPOJO(){ | try{ | Context jndiContext = getInitialContext(); | Object ref = jndiContext.lookup("FTPBean/remote"); | _ftpb

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
Also, you never said that you were providing the JNDI initial context information within your code. If you do that you do not need a jndi.properties file - the file is ignored. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223799#4223799 Reply to the post :

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
You are still looking up the wrong name: Object ref = jndiContext.lookup("FTPBean/remote"); View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223798#4223798 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223798

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Very cool. Thanks Peter for the help, I will give that a whirl. Once I get it built, I'd like to turn it into a good hello world so that others can get up to speed quickly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223782#4223782 Reply to the post : ht

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
Looks like your Eclipse projects contains both the EJB and the client. Make sure that you do NOT package the jndi.properties file into the EJB JAR file that gets deployed to JBoss AS. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223772#4223772 Reply to the

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Peter, So would it be easier for me to do a new project for the client, stuff the jndi.properties file in there and build it accordingly? Sorry about the n00b questions, but the hello world tutorials on Jboss/EJB3 aren't exactly the greatest. yetti View the original post : http://www.jboss.o

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Very cool. Thanks Peter for the help, I will give that a whirl. Once I get it built, I'd like to turn it into a good hello world so that others can get up to speed quickly. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223779#4223779 Reply to the post : ht

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
I often mix client and server code in the same project in Eclipse, but then I use Ant for packaging and deployment which lets me build things as I see fit. But you could create a separate client project and have it depend on the EJB project. View the original post : http://www.jboss.org/index.

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
The name "FTPBean/remote" is listed: +- FTPBean (class: org.jnp.interfaces.NamingContext) | | +- remote (class: Proxy for: com.acmeco.serverapp.ftp.ejb3.FTPBeanRemote) The standard jndi.properties file is: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.prov

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
"PeterJ" wrote : One other thought - what is in your jndi.properties file, and is that file in your classpath? I don't believe I have a jndi.properties file in the project. com.acmeco.serverapp.ftp +src -+com.acmeco.serverapp.ftp.ejb3 ---FTPBean.java ---FTPBeanTestCliebt.java ---FTPBeanLocal.jav

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Yes I read the second paragraph, and several times (not being a smart ass, trying to fix my problem! :) ) FTPBean/remote isn't listed (as apparent from the snippet I posted earlier), however, I've tried: com.acmeco.serverapp.ftp.ejb3.FTPBeanLocal com.acmeco.serverapp.ftp.ejb3.FTPBeanRemote rem

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
One other thought - what is in your jndi.properties file, and is that file in your classpath? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223764#4223764 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223764

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
Did you read the second paragraph of my earlier reply? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4223762#4223762 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4223762 ___

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
Peter, Thanks for replying. Here's the tree I get doing what you suggested: +- FTPBean (class: org.jnp.interfaces.NamingContext) | +- local (class: Proxy for: com.acmeco.serverapp.ftp.ejb3.FTPBeanLocal) | +- remote (class: Proxy for: com.acmeco.serverapp.ftp.ejb3.FTPBeanRemote) | +-

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread PeterJ
One way to determine the JNDI name assigned to anything is to use JNDIView within the jmx console to view the names. Then you can look up the EJB using the correct name. http://www.jboss.org/community/docs/DOC-9583 I would guess that you want to look up the name "FTPBean/remote" View the origi

[jboss-user] [EJB 3.0] - Re: JNDI Issue - Deploying EJB3 using Eclipse to JBoss 5

2009-04-06 Thread yetti
By the way, here is the error message I get when I run the console app: --- javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial