Hi JBoss gurus,
the error message in the subject is seen when I deploy a small WAR file which contains a simple Struts2 app. The app does not work when doing JSR88 deployment, but it works when copying to the deploy directory. The only hint I see is this error in "server.log" in deploy:
21:16:39,625 FATAL [org.apache.jasper.EmbeddedServletOptions] (MSC service thread 1-4) The scratchDir you specified: C:\temp\jboss-as-7.1.0.Final-SNAPSHOT\standalone\tmp\work\jboss.web\default-host\file:_C:_DOCUME~1_myUsername_LOCALS~1_Temp_StrutsBasics is unusable.
The name for the directory in "tmp\work" seems quite broken, and this is the only hint why I post it in the "JBossWeb" forum ;-).
When using CLI and deploying the file from e.g. my user profile directory, it works. So it might be an issue specific to JSR88 deployment or the integration of JBossWeb, Struts2 and JSR88.
As you probably need more input or a sample ;-): a JSR88 deployer is attached to this JIRA: https://issues.jboss.org/browse/AS7-3474
And the Struts2 sample is here: http://www.cs.hs-rm.de/~knauf/JavaEE6/strutsbasics/StrutsBasics.war (you will have to add "Javassist" from the struts2 bundle to WEB-INF\lib to make it deployable to AS7.1)
I still see the error with todays snapshot of JBoss 7.1.0.Final.
Attached is a reworked version of my JSR88 deployer. To reproduce the problem:
1) unzip to your eclipse workspace
2) import as "existing project"
3) fix the build path, if your JBoss 7.1 is not at "C:\temp\jboss-as-7.1.0.Final-SNAPSHOT"
4) open "build.xml" with the Eclipse ant file editor
5) run the task "deploy.j2ee.ear"
This will deploy the war file "StrutsBasics.war" (included in the project) to your local JBoss (localhost, port 9999). Now you should see the "scratchDir" error message in the server console.
To verify that the app does not work: this URL will fail: http://localhost:8080/StrutsBasics/geometricmodel.jsp