users@glassfish.java.net

Re: How to: use Form based auth via JDBCRealm:oracle in Glassfish 3.0

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Fri, 15 Jan 2010 10:25:08 +0100

Unable to connect to datasource jdbcrealmwonderland for database user null

so, your DataSource has a misconfiguration somewhere..

please check your data source again.. (I believe there is a ping
feature in the Glassfish web GUI)...... be sure your database is
reachable from your DataSource, and if it is started, etc....

On Fri, Jan 15, 2010 at 10:22 AM, <glassfish_at_javadesktop.org> wrote:
> Could there be  a conflict between some older tomcat jar and the glassfish stuff?  Maybe something is getting picked up somewhere gumming up the works so the glassfish setting is getting clobbered with a setting from tomcat?  My old tomcat files are still on the disk but tomcat is not actually installed anymore - its just a copy from a backup drive.
>
> This is what the realm part looks like in my domain.xml:
>  <auth-realm classname="com.sun.enterprise.security.auth.realm.jdbc.JDBCRealm" name="jdbcrealmwonderland">
> 119           <property name="jaas-context" value="jdbcRealm" />
> 120           <property name="datasource-jndi" value="jdbcrealmwonderland" />
> 121           <property name="user-table" value="webdev.wonderland_users" />
> 122           <property name="user-name-column" value="username" />
> 123           <property name="password-column" value="pword" />
> 124           <property name="group-table" value="webdev.wonderland_roles" />
> 125           <property name="group-name-column" value="rolename" />
> 126           <property name="digest-algorithm" value="MD5" />
> 127           <property name="encoding" value="Hex" />
> 128         </auth-realm>
>
>
> I tried it without Hex and without MD5 and had no luck.
> [Message sent by forum member 'cal41' (calgach_at_yahoo.ca)]
>
> http://forums.java.net/jive/thread.jspa?messageID=381116
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>



-- 
------------------------------------------
   Felipe Gaścho
   10+ Java Programmer
   CEJUG Senior Advisor