> [EMAIL PROTECTED] wrote: > >> If i compile the web application into a .war and deploy on a standalone > >>> tomcat, it just works, it asks me for user and pass of xx rule and let me > >>> access it. If i run from JBuilder i get error: > >>> > >>> org.apache.catalina.realm.JAASRealm authenticate > >>> GRAVE: Unexpected error > >>> java.lang.SecurityException: Impossibile trovare una configurazione di > >>> login > > > > The sense is: Unable to find a login configuration. > > The key part here is that Tomcat is configured to use the JAASRealm. I > don't use JBuilder so I don't know where this is set. > > When you do find the relevant server.xml, change the realm definition > to the following (taken from the default server.xml) > > <Realm className="org.apache.catalina.realm.UserDatabaseRealm" > resourceName="UserDatabase"/> > > This will use the tomcat-users.xml file. > > Mark >
Really thanks. i fixed editing the server.xml file that jbuilder generate when webapp is started in its path, adding the lines: <GlobalNamingResources> <Environment name="simpleValue" type="java.lang.Integer" value="30" /> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> between "Server" and "Service" nodes, and: <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> between "Engine" and "Host" nodes. Thanks for the help. ------------------------------------------------------ Leggi GRATIS le tue mail con il telefonino i-modeĀ di Wind http://i-mode.wind.it/ --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]