JBoss Community

java.lang.illegalStateException : No active application context

created by navi ghag in JBoss Web Services Development - View the full discussion

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

Start a new discussion in JBoss Web Services Development at Community