Not seen this with earlier snapshots. In resin.conf:

    <database jndi-name="jdbc/xxx">
     <driver 
type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource">
      <url>jdbc:mysql://localhost:3306/xxx</url>
      <user></user>
      <password></password>
     </driver>
    </database>

    <host id="" root-directory=".">
      <resin:import>
        <fileset dir="${resinHome}/conf/hostconf">
          <include name="**/*.xml"/>
        </fileset>
      </resin:import>

which includes example.com.xml:
...
  <authenticator type='com.example.security.dbAuthenticator'>
    <init>
      <data-source>java:comp/env/jdbc/xxx</data-source>
      <password-query>
        SELECT password FROM licensees WHERE licensee=? AND active='Y'
      </password-query>
      <cookie-auth-query>
        SELECT licensee FROM licensees WHERE cookie=?
      </cookie-auth-query>
      <cookie-auth-update>
        UPDATE licensees SET cookie=? WHERE licensee=?
      </cookie-auth-update>
      <role-query>
        SELECT role FROM licenseeroles WHERE licensee=?
      </role-query>
    </init>
  </authenticator>

has worked fine before but now starting up resin gives:

03-May-2008 10:38:38 RESIN 3.1.5 example.com.xml:25: 
com.caucho.server.security.JdbcAuthenticator.setDataSource(): 
javax.sql.DataSource: '
java:comp/env/jdbc/xxx' is an unknown bean.





_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to