[jboss-user] [JBoss Portal Users] - Re: Email validation: java.lang.ClassCastException: org.jbpm

aeik do-not-reply at jboss.com
Wed Nov 18 09:51:47 EST 2009


Hello DagoKent,

i had this Exception when there's a wrong configuration in the identity-modul.


  | exception
  | 
  | javax.servlet.ServletException: java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_52 cannot be cast to org.jboss.portal.core.identity.services.workflow.UserContainer
  | 	org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
  | 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | 	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | 
  | root cause
  | 
  | java.lang.ClassCastException: org.jbpm.bytes.ByteArray_$$_javassist_52 cannot be cast to org.jboss.portal.core.identity.services.workflow.UserContainer
  | 	org.jboss.portal.core.identity.services.workflow.impl.CreateUserAction.execute(CreateUserAction.java:51)
  | 	org.jbpm.graph.def.Action.execute(Action.java:122)
  | 	org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:264)
  | 	org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:220)
  | 	org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:190)
  | 	org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:174)
  | 	org.jbpm.graph.def.Transition.take(Transition.java:138)
  | 	org.jbpm.graph.def.Node.leave(Node.java:394)
  | 
  | 

This files were the cause:

base-path: jboss-portal-2.7.2/server/default/deploy/jboss-portal.sar

files:
	/portal-identity.sar/conf/identity-ui-configuration.xml
	/portal-identity.sar/portal-identity.war/jsf/common/editProfileInfo.xhtml
	/portal-identity.sar/portal-identity.war/jsf/common/profile.xhtml
	/conf/identity/profile-config.xml



I found that it is a bad idea to remove fields from identity-ui-configuration.xml.
If you remove fields the data JBoss saves temporarly is damaged and is not useable to activate the user, even if you change your configuration to a working one. You hve to reregister to test if it is working.

With a fresh installation this should not happen, but perhaps it helps to solve your problem.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266313#4266313

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266313



More information about the jboss-user mailing list