Discussion:
[jboss-user] [EJB3] - Re: Remote access works fine, but local injection does not – any ideas?
Randahl Fink Isaksen
2012-03-27 10:25:04 UTC
Permalink
Randahl Fink Isaksen [https://community.jboss.org/people/randahl] created the discussion

"Re: Remote access works fine, but local injection does not – any ideas?"

To view the discussion, visit: https://community.jboss.org/message/726584#726584

--------------------------------------------------------------
I have found out that this may be a class loading problem still present in JBoss 7.1.1. My problem looks very similar to what is described very well in this thread:

https://community.jboss.org/thread/169828?start=0&tstart=0 https://community.jboss.org/thread/169828?start=0&tstart=0
Randahl Fink Isaksen
2012-03-27 11:15:05 UTC
Permalink
Randahl Fink Isaksen [https://community.jboss.org/people/randahl] created the discussion

"Re: Remote access works fine, but local injection does not – any ideas?"

To view the discussion, visit: https://community.jboss.org/message/726592#726592

--------------------------------------------------------------
The jar which contains my business interfaces was packaged both with my ejb.jar and my web.war. Using the maven provided scope I removed these duplicates and ensured the jar was only packaged in the ear and - voila - it works.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/726592#726592]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
Gaspar Kuhnen
2012-07-05 18:11:20 UTC
Permalink
Gaspar Kuhnen [https://community.jboss.org/people/gasparkf] created the discussion

"Re: Remote access works fine, but local injection does not – any ideas?"

To view the discussion, visit: https://community.jboss.org/message/746466#746466

--------------------------------------------------------------
Thanks Randahl Fink Isaksen, solve my problem too.The pom.xml from web project must declare "provided" scope to interface EJBs project.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/746466#746466]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
Soumya Pal
2013-02-15 09:13:26 UTC
Permalink
Soumya Pal [https://community.jboss.org/people/crazysoumya] created the discussion

"Re: Remote access works fine, but local injection does not – any ideas?"

To view the discussion, visit: https://community.jboss.org/message/797833#797833

--------------------------------------------------------------
Worked for me too! Thanks for the tip
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797833#797833]

Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]
Loading...