I think it's from an environment check failing during startup. I encountered the same ClassCastException when I did a re-start. I noticed though that this doesn't happen during a initial startup (fresh install). I'm currently working on the NPE in the RSS and browse/search when using LDAP, I'll see what I can further find out about the ClassCastException too..
Thanks, Deng On Wed, Aug 27, 2008 at 9:16 PM, Chris Anders <[EMAIL PROTECTED]>wrote: > I am using the latest version 1.1.1 with the snapshot jar mentioned in my > last posts. > > it looks to me that even though LDAP has been specified for authentication > on startup the calls are being made to make sure default guest/admin are > available in the jdbc backend. > > Obviously this wont be the case unless you manually add them like i went > through in my last steps. > > Sames goes with setting up roles, you have to click edit roles and then > submit a blank page, then re-edit before you can see anything to be set. > From memory the exception says something about the user cant be found on the > permission row which is correct until we submit the blank role page, which > ads the user row. > > Same goes for trying to browse or search without logging in... > > So even though there is ldap support it is evident that there are some > calls which are still dependent on the local jdbc > > Chris > > > -----Original Message----- > From: Emmanuel Venisse [mailto:[EMAIL PROTECTED] > Sent: Wed 8/27/2008 6:58 PM > To: [email protected] > Subject: Re: Active Directory Authentication > > What is your Archiva version? 1.0? > I fixed some things about LDAP in 1.1.1 > > Emmanuel > > On Wed, Aug 27, 2008 at 10:42 AM, Chris Anders <[EMAIL PROTECTED] > >wrote: > > > Hi guys, > > > > Digging deeper into my issue I have now moved from the default deby jdbc > > and onto mysql so I could see the data structure being created. > > > > When I start up tomcat with no tables and ldap (AD) configured the > > following tables are created under mysql: > > > > * ARCHIVA_ARTIFACT > > * JDOAUTHENTICATIONKEY > > * SECURITY_OPERATIONS > > * SECURITY_PERMISSIONS > > * SECURITY_RESOURCES > > * SECURITY_ROLES > > * SECURITY_ROLE_CHILDROLE_MAP > > * SECURITY_ROLE_PERMISSION_MAP > > * SECURITY_USERASSIGNMENT_ROLENAMES > > * SECURITY_USER_ASSIGNMENTS > > > > Everything looks fine until I restart tomcat and 2 more tables are > > created: > > > > * JDOUSER > > * JDOUSER_PREVIOUSENCODEDPASSWORDS > > > > With an exception in the tomcat log which i posted before: > > SEVERE: Exception sending context initialized event to listener instance > > of class org.apache.maven.archiva.web.startup.ArchivaStartup > > java.lang.ClassCastException: > > org.codehaus.plexus.redback.users.UserNotFoundException > > > > So i then manually added to the JDOUSER table the defined > > redback.default.admin/guest (both users exist in ldap) > > > > Restarted tomcat and this time everything came up. > > > > I still can't browse or search from the default user without logging in > > (causes another exception I have posted), however after logging in > > everything looks to be fine. > > > > Perhaps someone can make more sense out of this and raise a bug for the > > devs? > > > > Cheers, > > > > Chris > > > > > !DSPAM:1,48b51ae3120788357837957! > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.138 / Virus Database: 270.6.9/1636 - Release Date: 26/08/2008 > 7:09 PM > >
