jlward4 wrote : I'm having the same problem with JBoss 5.0.0 GA. I've
updated my web.xml and it's still not injecting the EJB into my servlet. Any
other ideas? Do I need any configuration files other than
META-INF/application.xml in my ear? Do I need a jboss-web.xml file? Thanks!
I got
I'm having the same problem with JBoss 5.0.0 GA. I've updated my web.xml and
it's still not injecting the EJB into my servlet. Any other ideas? Do I need
any configuration files other than META-INF/application.xml in my ear? Do I
need a jboss-web.xml file? Thanks!
View the original post :
Should the use of JBossWS-Metro cause this not to work? I have a simple POJO
exposed as a web service. It is deployed into a Jboss5 App Server with
JbossWS-Metro installed. The POJO references an @EJB and I get
NullPointerExceptions when accessing hte instance variable.
-- bk
View the
Wait, i just noticed this in your web.xml:
| web-app xmlns=http://java.sun.com/xml/ns/j2ee;
| xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
| xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
|
You're a GENIUS ! That was it!
I would have never thought it was my web.xml descriptor!!
Man, I tried so many different things !!! argghh. Oh well, hopefully this might
help someone else in the future that runs into the same issue.
I really appreciate you having taken the time to help! I'll
Glad to know that worked :)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4179957#4179957
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4179957
___
jboss-user mailing list
Which version of JBoss and Java do you use? Please post the entire exception
stacktrace and the console logs when you deploy your application with the
following annotation in the servlet:
@EJB(mappedName=user-administration/UserServiceBean/local)
| private UserService userService;
|
jaikiran wrote : Which version of JBoss and Java do you use? Please post the
entire exception stacktrace and the console logs when you deploy your
application with the following annotation in the servlet:
|
| @EJB(mappedName=user-administration/UserServiceBean/local)
| | private
rickcr wrote : Maybe someone could try the actual ear in their deployment? I
put it out here..
http://dl-client.getdropbox.com/u/86998/user-administration.ear (after it
deploys try http://localhost:8080/lt-web/hello )
|
|
I could have tried it, but i am away from my work place and dont
Thanks again for trying to help. (I have the feeling it's going to be something
really stupid that I'm not doing correctly in my maven build. I've looked over
the exploded ear though and it seems ok?)
Anyway, the EJB seems to deploy ok. I can access it fine grabbing it by the
jndi name from
The application, the logs and the jndi-tree all look good to me. No obvious
issues. I don't see a reason why the bean should not be injected.
In your web.xml, you have marked the servlet as load-on-startup:
load-on-startup0/load-on-startup
Could you try removing this load-on-startup and see
11 matches
Mail list logo