Im starting to develop with JBoss, and got stuck while trying to create my first application.
Im running JBoss 7.0, maven 3.0.3, Eclipse Indigo 3.7
So, I started with a Hello World Project just to test if my setup was correct, and it worked, I succesfully deployed the project and acces it through a web page.
Then I tried to create a Hello World from my own, but this time I wanted to access my bean from a client application. So I deployed another bean to the server, so far so good, but then I created another project to create a test client application, and I got the following error
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
So I start searching in the web and read a lot of forums (before posting a question that surely was previously asked) and everyone said the same, I needed to add a jndi.properties file to my classpath, so I did, and the error still appeared, then I followed a basic tutorial for stateless session beans, and did as the tutorial specified, which was the same as I was doing, but insted the client application class, was in the same project, I added the jndi file and the error was still coming up.
I have the following structure
This is how I have the file configured
java.naming.provider.url=localhost:1099 (already tried with jpn:// at the beginning)
I searched on how could I be sure that my file was being used and found
Which returns null.
Ive already places the jdni.properties file in the root folder of the classpath and it didnt work.
Is there configuration I may be missing?
Do I need to place jdni.properties file somewhere else?
Thanks in advance!