Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 7441 invoked from network); 14 Feb 2001 08:55:19 -0000 Received: from mailhost.hays-dsia.fr (62.161.171.177) by h31.sny.collab.net with SMTP; 14 Feb 2001 08:55:19 -0000 Received: from commnt02.hays-dsia.fr (unverified) by mailhost.hays-dsia.fr (Content Technologies SMTPRS 2.0.15) with ESMTP id for ; Wed, 14 Feb 2001 09:48:25 +0100 Message-Id: Received: by COMMNT02 with Internet Mail Service (5.5.2448.0) id ; Wed, 14 Feb 2001 09:49:54 +0100 From: "JULE, Nicolas - DSIA" To: tomcat-user Subject: =?iso-8859-1?Q?R=E9f=2E_=3A_Embedding_Tomcat_inside_Java_app=2E?= Date: Wed, 14 Feb 2001 09:50:42 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi , Have you try to adapt your tomcat.policy file ? something like:=20 grant codeBase "file:${tomcat.home}/webapps/ROOT" { java.io.FilePermission "*" , read) }; Nicolas De : Hristo Katsarski@hristo le 14/02/2001 09:32 Pour : tomcat-user@tomcat-user@jakarta.apache.org@SMTP@Hays Hub cc : =20 Faxer =E0:=09 Objet : Embedding Tomcat inside Java app. Hi folks, I'm trying to embed Tomcat inside Java application. At the time of "/ROOT" context init, I get exception, stating that I've no read right on file "server.xml" I am really wondering what is the CORRECT way to embed Tomcat. Here is part of the output I get: ERROR reading D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml java.security.AccessControlException: access denied (java.io.FilePermission D:\jakarta-tomcat-3.2.1\webapps\ROOT\WEB-INF\web.xml read) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:231) at ........ Anyone who, suceeded in embeddig Tomcat, please give me some clue. Thanks in advance Hristo =09 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, email: tomcat-user-help@jakarta.apache.org ********************************************************************** Ce message �lectronique et tous les fichiers attach�s qu'il contient sont confidentiels et destin�s exclusivement � l'usage de la personne � laquelle ils sont adress�s. Si vous avez re�u ce message par erreur, merci de le retourner � son �metteur. Les id�es et opinions pr�sent�es dans ce messages sont celles de son auteur, et ne repr�sentent pas n�cessairement celles du Groupe HAYS plc ou d'une quelconque de ses filiales. La publication, l'usage, la distribution, l'impression ou la copie non autoris�e de ce message et des attachements qu'il contient sont strictement interdits. Nous vous informons �galement que nous avons v�rifi� l'absence de virus dans ce message mais que, malgr� ce contr�le, nous ne saurions �tre tenus pour responsables d'�ventuels d�g�ts occasionn�s par un virus non d�tect�. This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the HAYS plc group or any of its subsidiary companies. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus. **********************************************************************