Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 54683 invoked from network); 1 Apr 2002 13:43:32 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Apr 2002 13:43:32 -0000 Received: (qmail 29027 invoked by uid 97); 1 Apr 2002 13:43:19 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 29011 invoked by uid 97); 1 Apr 2002 13:43:19 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 28991 invoked from network); 1 Apr 2002 13:43:18 -0000 Message-ID: <001d01c1d982$fd865660$16562104@vz.dsl.genuity.net> From: "stephen.chambers" To: Subject: Big problem with tomcat's security manager and dataSource in the struts_config.xml file Date: Mon, 1 Apr 2002 07:41:56 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > All, > > I have been migrating a smaller Tomcat/MySQL application to Struts and have > run into a problem. > > I have completely converted the app to Struts and hit a snag when I inserted > the DataSource tag into the struts-config.xml. It began to generate "Cannot > find ActionMappings" errors in the html and in the logs it could not find > the database, asking "Is there a MySQL database running on this server?" > > My Tomcat 4.0 (on RH 7.1) is running with security and I added these lines > to the conf/catalina.policy file, each on as nothing else seemed to work: > > grant CodeBase "file:${catalina.home}/webapps/myapp/-" { > permission java.security.AllPermission; > }; > grant CodeBase "file:${catalina.home}/webapps/myapp/WEB-INF/classes/-" { > permission java.security.AllPermission; > }; > grant CodeBase "file:${catalina.home}/webapps/myapp/WEB-INF/lib-" { > permission java.security.AllPermission; > }; > grant CodeBase > "file:${catalina.home}/webapps/myapp/WEb-INF/lib/mm.mysql-2.0.11-bin.jar!/-" > { > permission java.security.AllPermission; > }; > > None of these worked either. When I commented out the datasource tag > everything except the database started working and then when I commented it > back in, nothing. I finally turned off the security manager and everything > including the database works now, with the datasource tag in the > struts-config.xml in there as it should be. Has anyone else had this > problem? In the local user's group, someone else had the same problem on a > WIN2K box with MySQL (and a different version of the mm.mysql.driver as > well) and they still haven't solved it either. > > The appropriate section of the struts-config.xml looks like the following: > > autoCommit="false" > autoReconnect="true" > description="Data Source" > driverClass="org.gjt.mm.mysql.Driver" > maxCount="4" > minCount="2" > password="whatever" > url="jdbc:mysql://myserver:3306/4po" > user="servlet" > /> > > > What is the conflict with the security manager or am I messing something up > myself? > > Steve > -- To unsubscribe, e-mail: For additional commands, e-mail: