Hello there!

I am using tomcat as an embedded container for a while now, it is really amazing, but now I got stuck on a topic. I am implementing a testsuite for automatic testing of uploaded solutions by students. The deployment works like a charm, I also found your StuckThreadDetectionValve very useful to kill threads of the students applications. The next assignment will involve some areas where I would like to specify a policy file so that the students can't do anything they aren't supposed to. Now to my problem.

One thing is that I want a policy file to be in the students projects, so that they actually get the exceptions when they are doing something wrong. What do I have to configure in these student web projects so that they can e.g. deploy the project directly from netbeans to tomcat and have the policy applied?

The other thing is that I want the policy file to be in my testsuite project and configure it on demand when deploying the student solutions. Currently I create an instance of StandardContext for each student web application, then I configure the context and finally add it to the host of the server. What do I need to configure, to apply the policy in this case?

I hope someone can help me with that, thanks in advance!
--

Mit freundlichen Grüßen,
------------------------------------------------------------------------
*Christian Beikov*

Reply via email to