[jboss-dev-forums] [Design of POJO Server] - Re: @RunAs annotations on Servlet Classes

anil.saldhana@jboss.com do-not-reply at jboss.com
Mon Mar 24 12:36:59 EDT 2008


Scott, I need some guidance here.

The servlet class defines the @RunAs annotation. Hence the web.xml servlet definition has no need for an explicit run-as element.  Now the JBossWebMetaData merge fails with the following RTE.


  |  // Update the run-as indentity to use the principal name
  |  if (webXmlRunAs == null)
  |  { 
  |       throw new IllegalStateException("run-as-principal: " + principalName + " found in jboss-web.xml but there was no run-as in web.xml");
  |   }
  | 

This is because the webxml metadata is not aware of the annotation.  Shouldn't Carlo's annotation deployer kick in before the webmetadata parse?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138537#4138537

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138537



More information about the jboss-dev-forums mailing list