[Resin-interest] s080430: java:comp/env/jdbc/xxx' is an unknown bean

2008-05-03 Thread Stargazer
Not seen this with earlier snapshots. In resin.conf:

database jndi-name=jdbc/xxx
 driver 
type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
  urljdbc: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-sourcejava: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


Re: [Resin-interest] s080430: java:comp/env/jdbc/xxx' is an unknown bean

2008-05-03 Thread Scott Ferguson
Thanks, good catch.

-- Scott

On May 3, 2008, at 2:51 AM, Stargazer wrote:

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

database jndi-name=jdbc/xxx
 driver
 type=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource
  urljdbc: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-sourcejava: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



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