Re: osuser support

"Hani Suleiman" <[email protected]>
Newsgroups gmane.comp.java.open-symphony.devel
Message-ID <[email protected]>
If you're using the hibernate provider, then you need to ensure that you
have the hibernate classes in your classpath. Can you double check that?
The best list for osuser for now is the opensymphony-developers one at
sf.net (cc'ed)

Hani


Ilja Hehenkamp said:
> Hi Hani,
>
> I'm having troubles getting osuser to work, getting the following error
> icw hibernate
>
> java.lang.RuntimeException: net/sf/hibernate/HibernateException
>
> com.opensymphony.user.util.ConfigLoader.load(ConfigLoader.java:74)
>          com.opensymphony.user.UserManager. (UserManager.java:103)
> com.opensymphony.user.UserManager. (UserManager.java:58)
>          org.mathesis.test.OSUserTest.doGet(OSUserTest.java:35)
>          javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>
> Since there's no mailinglist for osuser and nowhere seems to know about
> it's existence, I really don't know where to ask for help...
>
> This is my code:
>
> /*
>   * Created on 29-sep-2003
>   *
>   * To change the template for this generated file go to
>   * Window - Preferences - Java - Code Generation - Code and Comments */
> package org.mathesis.test;
>
> import java.io.IOException;
> import java.io.PrintWriter;
> import java.util.Collection;
> import java.util.Iterator;
>
> import javax.servlet.ServletException;
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
>
> import com.opensymphony.user.DuplicateEntityException;
> import com.opensymphony.user.ImmutableException;
> import com.opensymphony.user.User;
> import com.opensymphony.user.UserManager;
> import com.opensymphony.user.provider.CredentialsProvider;
>
> /**
>   * @author iljahehenkamp
>   *
>   * To change the template for this generated type comment go to
>   * Window - Preferences - Java - Code Generation - Code and Comments */
> public class OSUserTest extends HttpServlet
> {
> 	public void doGet(HttpServletRequest request, HttpServletResponse
> response) throws IOException, ServletException
> 	{
> 		UserManager um = new UserManager();
> 		PrintWriter out = response.getWriter();
>
> 		Collection credentialProviders = null;
>
> 		try
> 		{
> 			credentialProviders = um.getCredentialsProviders();
>
> 			for (Iterator iterator = credentialProviders.iterator();
> iterator.hasNext();)
> 			{
> 				CredentialsProvider provider = (CredentialsProvider)
> iterator.next();
> 			}
> 		}
> 		catch (NullPointerException e)
> 		{
> 			// TODO Auto-generated catch block
> 			e.printStackTrace(out);
> 		}
>
> 		try
> 		{
> 			User u = um.createUser("imhehenkamp");
> 		}
> 		catch (DuplicateEntityException e)
> 		{
> 			// TODO Auto-generated catch block
> 			e.printStackTrace(out);
> 		}
> 		catch (ImmutableException e)
> 		{
> 			// TODO Auto-generated catch block
> 			e.printStackTrace(out);
> 		}
> 		catch (NullPointerException e)
> 		{
> 			// TODO Auto-generated catch block
> 			e.printStackTrace(out);
> 		}
> 		catch (RuntimeException e)
> 		{
> 			// TODO Auto-generated catch block
> 			e.printStackTrace(out);
> 		}
> 		catch (Exception e)
> 		{
> 			e.printStackTrace(out);
> 		}
> 	}
> }
>
> Hope you can either help me out, or point me out where to get support,
>
> Thanks,
>
> Ilja Hehenkamp






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.