[jboss-dev-forums] [JBoss Web Services Development] - java.lang.illegalStateException : No active application context

navi ghag do-not-reply at jboss.com
Mon Apr 16 16:17:00 EDT 2012


navi ghag [https://community.jboss.org/people/navighag] created the discussion

"java.lang.illegalStateException : No active application context"

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

--------------------------------------------------------------
Hi 

I am building a web service using jboss 4.2.2. 

I have the following web method 
@WebMethod
public int processRequest()
{
EntityManager entMan = (EntityManager) Component.getInstance("entityManager");

//other code 



}

When there is a web request for this method, it gives me an exception : No active application context.

I am new to seam ....and i have no ideas why i am getting this excpetion.

I would highly appreciate your help if you can guide me through this.

thanks
--------------------------------------------------------------

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

Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2047]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120416/52bdff98/attachment.html 


More information about the jboss-dev-forums mailing list