にバインドされていません。ログインプロンプトが表示されているので、web.xml
が正しく設定されているようです。DatasourceRealmのTomcat 6の構成:名前JDBCは、私が<code>META-INF/context.xml</code>ですべてを設定するTomcatの6</strong><strong>で<code>DatasourceRealm</code>を設定しています。このコンテキスト
誰かが助けることができますか?
のcontext.xml
<Context >
<Resource name="jdbc/auth" description="authentication" type="javax.sql.DataSource"
auth="Container" driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
maxActive="25" maxIdle="10" maxWait="10000"
url="jdbc:sqlserver://SQLSERVER;databaseName=db;integratedSecurity=true"
validationQuery="select 1" />
<Realm className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/auth" userTable="WebUsers" userNameCol="username"
userCredCol="password" userRoleTable="WebUserRoles" roleNameCol="role"
localDataSource="true"/>
</Context>
スタック
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context