Hi,

I am creating a little servlet to use in with tomcat, but have issues
with tomcat -security.

I am a beginner in this field and have started with a "bare metals"
servlet written in java that loads a tiny little *hello world" script
in clj. I use clojure.lang.RT.loadResourceScript to load the script
from java, and then continue in clj.

It worked fine under windows where i had downloaded tomcat and just
started it from the command line.

Now that i have moved to my production environment, ubuntu 9.10 with
Tomcat6 I get errors

SEVERE: Allocate exception for servlet CljServlet
javax.servlet.UnavailableException: Error loading clj:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission createClassLoader)
        at CljServlet.init(CljServlet.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

tomcat is running with -security option and I think the issue has to
do with the sandbox/java security manager that will not accept the
things that clojure does (the example applications provided with
tomcat works well enough)

I think i have read of others using Tomcat, what do you others do?

Do you ignore the -security option to tomcat, or have you created java
security policies that handle clojure?

Thanks
regards
Soren

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to