[opencms-dev] OCms6: webuser self-registration

Chris Stephens sub1 at elucid.org
Sat Dec 31 06:17:29 CET 2005


Hi folks,

Forgive the newbie question but I am setting up a JSP where webusers  
can self-register.

It's all working fine except that if the username already exists I  
get an OpenCms error as below:

org.opencms.db.CmsDbEntryAlreadyExistsException: Error adding web  
user "elucid".
	at org.opencms.db.CmsDbEntryAlreadyExistsException.createException 
(CmsDbEntryAlreadyExistsException.java:72)
	at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:213)
	at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
	at org.opencms.db.CmsSecurityManager.addWebUser 
(CmsSecurityManager.java:241)
	at org.opencms.file.CmsObject.addWebUser(CmsObject.java:151)
	at  
org.apache.jsp.WEB_002dINF.jsp.offline.sites.default_.signup_002d2_jsp._ 
jspService 
(org.apache.jsp.WEB_002dINF.jsp.offline.sites.default_.signup_002d2_jsp: 
131)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service 
(JspServletWrapper.java:322)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile 
(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)			

How can I catch this exception?

I've tried but my understanding of the OpenCms 6 API and Java are not  
quite there...

Thanks in advance and happy new year!

Chris



More information about the opencms-dev mailing list