[jboss-dev] Where are allowable methods configured?

Andrew Lee Rubinger andrew.rubinger at redhat.com
Tue Jun 30 18:31:17 EDT 2009


Booting Embedded I've got a fun exception informing me that methods 
"!GET,POST" are not allowed while creating a WebResourcePermission. 
These are the identical parameters passed in while running AS in 
Standalone.  Where are the allowed HTTP methods configured?  Does this 
ring any bells to anyone?

Thx. :)

17:25:01,895 ERROR [AbstractKernelController] Error installing to Real: 
name=vfsfile:/home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.2.0.Beta/server/default/deploy/http-invoker.sar/ 
state=PreReal mode=Manual requiredState=Real
org.jboss.deployers.spi.DeploymentException: Error deploying: 
jboss.jacc:service=jacc,id="vfsfile:/home/alrubinger/business/jboss/wc/jbossas/branches/Branch_5_x/build/output/jboss-5.2.0.Beta/server/default/deploy/http-invoker.sar/invoker.war/",parent="http-invoker.sar"
	at 
org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
	at ...
Caused by: java.lang.IllegalArgumentException: Could not create resource 
permission with pattern "/restricted/*" and methods: !GET,POST
	at 
org.jboss.web.WebPermissionMapping.createPermissions(WebPermissionMapping.java:229)
	at 
org.jboss.deployment.security.WarJaccPolicy.createPermissions(WarJaccPolicy.java:55)
	at 
org.jboss.deployment.security.WarJaccPolicy.createPermissions(WarJaccPolicy.java:38)
	at org.jboss.deployment.security.JaccPolicy.create(JaccPolicy.java:94)
...
Caused by: java.lang.IllegalArgumentException: illegal HTTP method
	at 
javax.security.jacc.HttpMethodSpec.makeMethodSet(HttpMethodSpec.java:100)
	at javax.security.jacc.HttpMethodSpec.getMethodSet(HttpMethodSpec.java:74)
	at 
javax.security.jacc.WebResourcePermission.<init>(WebResourcePermission.java:137)
	at 
org.jboss.web.WebPermissionMapping.createPermissions(WebPermissionMapping.java:225)

S,
ALR
-- 
Andrew Lee Rubinger
Sr. Software Engineer
JBoss by Red Hat
http://exitcondition.alrubinger.com



More information about the jboss-development mailing list