Getting Servlet Exception after Deploying WAR files exported from JBossDS
Issue
We are getting the following exception when testing our recently deployed Seam application. The server starts properly and our first few pages work fine, however once we hit a certain point we always get an exception message. If we don't do anything and leave the server running as is until the next day there are no issues with the previous nights deployment. We only get this issue when we test our application right after the deployment.
Below is the exception.
-----------------------------------------------------
Exception during request processing:
Caused by javax.servlet.ServletException with message: "value of context variable is not an instance of the component bound to the context variable: salesInputPage. If you are using hot deploy, you may have attempted to hot deploy a session or application-scoped component definition while using an old instance in the session."
javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
...
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:662)
Caused by java.lang.IllegalArgumentException with message: "value of context variable is not an instance of the component bound to the context variable: salesInputPage. If you are using hot deploy, you may have attempted to hot deploy a session or application-scoped component definition while using an old instance in the session."
org.jboss.seam.Component.getInstance(Component.java:2037)
...
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Thread.java:662)
Environment
JBoss Service Oriented Architecture Platform (SOA-P) 5.0.2
JBoss Developer Studio (JBossDS)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.