Originally posted by Billy Newman:
I am not sure if I deployed in an EAR or a WAR. I am running in eclipse, how do I tell.
Honestly, i don't use any
IDE for deploying applications. I do use them for coding. One of the reason i avoid additional tools/IDE for such tasks is that when you run into errors, you are not sure whether its because of the tool or because some problem in your application. Also, leaving these tools out, helps you understand how actually an application needs to be deployed.
Originally posted by Billy Newman:
I have an EAR which has my two modules in it, my EJB, and my WAR. My EJB has oine remote bean which is EJB 3.0. And my WAR has on servlet derived form HTTPServlet.
That gives us an good idea about what your application is composed of
Originally posted by Billy Newman:
My main problem has been that I have not been able to inject my EJB into my servlet. SO when I run I get a null pointer exception in the servlet for the EJB. So I thought maybe that was becuase I needed to modify one of the deployment files.
Which version of JBoss are you using? JBoss-4.x
does not support EJB injection in servlets. If you are using JBoss-4.x, you need to do a lookup of the beans in the servlets.
Originally posted by Billy Newman:
Sorry again I am very new and very confused
Don't worry, ranchers here will be glad to help you get started
