[jboss-user] [JBoss Seam] - Pageflow - ClassCastException: org.jbpm.graph.node.StartStat
hazlorealidad
do-not-reply at jboss.com
Sat Sep 9 17:33:50 EDT 2006
I am using pageflows and jbpm in the same seam ear when I navigate from the first page of the page flow I get the error
16:11:04,991 ERROR [PhaseListenerManager] Exception in PhaseListener RESTORE_VIEW(1) afterPhase
java.lang.ClassCastException: org.jbpm.graph.node.StartState
at org.jboss.seam.core.Pageflow.getPage(Pageflow.java:135)
at org.jboss.seam.core.Pageflow.validatePageflow(Pageflow.java:78)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.restoreAnyConversationContext(AbstractSeamPhaseListener.java:45)
I Set JAVA_OPTS to display class loading
export JAVA_OPTS="-XX:MaxPermSize=128m -verbose:class"
The whole jboss log is 11000 lines long so Ill just show some parts
$ grep StartState /tmp/boss.log
[Loaded org.jbpm.graph.node.StartState from file:/usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp52708jbpm-3.1.1.jar]
16:00:34,526 INFO [Configuration] Reading mappings from resource: org/jbpm/graph/node/StartState.hbm.xml
16:00:34,532 INFO [HbmBinder] Mapping subclass: org.jbpm.graph.node.StartState -> JBPM_NODE
[Loaded org.jbpm.graph.node.StartState$$EnhancerByCGLIB$$66784c74 from file:/usr/local/jboss-4.0.4.GA/server/default/lib/cglib.jar]
java.lang.ClassCastException: org.jbpm.graph.node.StartState
$ grep Pageflow /tmp/boss.log
[Loaded org.jboss.seam.core.Pageflow from file:/usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp52765sgi-ear-1.0.ear-contents/jboss-seam-1.0.1.jar]
16:00:33,875 INFO [Component] Component: org.jboss.seam.core.pageflow, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pageflow
[Loaded org.jboss.seam.core.Pageflow$$EnhancerByCGLIB$$6b8381f6 from file:/usr/local/jboss-4.0.4.GA/server/default/lib/cglib.jar]
[Loaded org.jbpm.pageflow.PageflowHelper from file:/usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp52708jbpm-3.1.1.jar]
[Loaded org.jbpm.pageflow.PageflowParser from file:/usr/local/jboss-4.0.4.GA/server/default/tmp/deploy/tmp52708jbpm-3.1.1.jar]
I have tried with the Flat classloader (jboss default) and the Hierarchical classloader
as shown in the wiki under classloading problems, I moved jppm to the deploy/jbossweb-tomcat55.sar/jsf-libs/ to see if that made a difference, but no luck.
The only strange thing is that the StartState is a cglib proxy, but that shouldnt generate a class cast exception.
Seam is great (when it works) but I have now spent 2 days trying to solve classloading issues
with tomahawk and fileuploads, its just too difficult to configure.
Please can someone come to my rescue.
If I havent provided enough information please let me know
the ear as deployed
META-INF/
META-INF/MANIFEST.MF
META-INF/application.xml
META-INF/jboss-app.xml
jboss-seam-1.0.1.jar
jbpm-3.1.1.jar
sgi-web-1.0.war
[
WEB-INF/
WEB-INF/incl/
WEB-INF/decorators/
WEB-INF/classes/
WEB-INF/lib/
img/
WEB-INF/incl/admin_nav.xhtml
WEB-INF/incl/login.xhtml
WEB-INF/incl/cart.xhtml
WEB-INF/incl/processmenu.xhtml
WEB-INF/incl/searchbox.xhtml
WEB-INF/incl/stats.xhtml
WEB-INF/incl/store_nav.xhtml
WEB-INF/components.xml
WEB-INF/faces-config.xml
WEB-INF/pages.xml
WEB-INF/template.xhtml
WEB-INF/web.xml
WEB-INF/decorators.xml
WEB-INF/jboss-web.xml
WEB-INF/decorators/main.jsp
WEB-INF/tomahawk.taglib.xml
WEB-INF/classes/messages.properties
WEB-INF/lib/el-ri-1.0.1.jar
WEB-INF/lib/commons-fileupload-1.1.jar
WEB-INF/lib/commons-email-1.0.jar
WEB-INF/lib/jboss-seam-ui-1.0.1.jar
WEB-INF/lib/el-api-1.0.1.jar
WEB-INF/lib/sitemesh-2.2.1.jar
WEB-INF/lib/commons-lang-2.1.jar
WEB-INF/lib/standard-1.0.1.jar
WEB-INF/lib/mail-1.3.3.jar
WEB-INF/lib/jsf-facelets-1.0.1.jar
WEB-INF/lib/commons-io-1.2.jar
WEB-INF/lib/dumbster-1.6.jar
WEB-INF/lib/activation-1.0.2.jar
WEB-INF/lib/jboss-seam-debug-1.0.1.jar
img/ordermanagement1.html
img/shade.subtitle.gif
img/checkout.jpg
img/nav.tab.left.gif
img/newuser.html
img/menu.bg.gif
img/bg.gif
img/arrow-l.png
img/ordermanagement2.html
img/ordermanagement3.html
img/menu.top.bg.gif
img/arrow-r.png
img/newuser.jpg
img/ordermanagement1.jpg
img/checkout.html
img/ordermanagement2.jpg
img/nav.tab.right.gif
img/ordermanagement3.jpg
confirm.xhtml
home.xhtml
admin.xhtml
showorders.xhtml
accept.xhtml
checkout.xhtml
browse.xhtml
ship.xhtml
complete.xhtml
new_contact.xhtml
new_account.xhtml
index.jsp
dvd.xhtml
screen.css
new_complete.xhtml
style.xsl
new_card.xhtml
messages.xhtml
todo.xhtml
login.xhtml
document.xhtml
documents.xhtml
documentOrRegister.xhtml
register.xhtml
documentDone.xhtml
menu.xhtml
style.css
processes.xhtml
personView.xhtml
upload.xhtml
personEditList.xhtml
personList.xhtml
personEdit.xhtml
META-INF/maven/
META-INF/maven/com.hazlorealidad/
META-INF/maven/com.hazlorealidad/sgi-web/
META-INF/maven/com.hazlorealidad/sgi-web/pom.xml
META-INF/maven/com.hazlorealidad/sgi-web/pom.properties
]
commons-fileupload-1.1.jar
commons-email-1.0.jar
commons-lang-2.1.jar
mail-1.3.3.jar
commons-io-1.2.jar
sgi-ejb-1.0.jar
[
com/
com/hazlorealidad/
com/hazlorealidad/sgi/
com/hazlorealidad/sgi/control/
com/hazlorealidad/sgi/model/
META-INF/persistence.xml
META-INF/sgi-ds.xml
import.sql
seam.properties
com/hazlorealidad/sgi/control/PersonManagerBean.class
com/hazlorealidad/sgi/control/PersonManager.class
com/hazlorealidad/sgi/control/MessageManagerBean.class
com/hazlorealidad/sgi/control/MessageManager.class
com/hazlorealidad/sgi/control/RepeatedTask.class
com/hazlorealidad/sgi/control/DocumentRegisterEntryBean.class
com/hazlorealidad/sgi/control/DocumentRegisterEntry.class
com/hazlorealidad/sgi/control/Documents.class
com/hazlorealidad/sgi/control/DocumentsBean.class
com/hazlorealidad/sgi/control/ProcessManager.class
com/hazlorealidad/sgi/control/Upload.class
com/hazlorealidad/sgi/control/UploadBackingBean.class
com/hazlorealidad/sgi/control/LoginAction.class
com/hazlorealidad/sgi/control/Login.class
com/hazlorealidad/sgi/control/ProcessManagerBean.class
com/hazlorealidad/sgi/control/UploadAction.class
com/hazlorealidad/sgi/model/Person.class
com/hazlorealidad/sgi/model/Message.class
com/hazlorealidad/sgi/model/Document.class
com/hazlorealidad/sgi/model/Actor.class
com/hazlorealidad/sgi/model/TodoList.class
com/hazlorealidad/sgi/model/Customer.class
com/hazlorealidad/sgi/model/User.class
com/hazlorealidad/sgi/model/Admin.class
com/hazlorealidad/sgi/model/Login.class
META-INF/ejb-jar.xml
META-INF/maven/
META-INF/maven/com.hazlorealidad/
META-INF/maven/com.hazlorealidad/sgi-ejb/
META-INF/maven/com.hazlorealidad/sgi-ejb/pom.xml
META-INF/maven/com.hazlorealidad/sgi-ejb/pom.properties
]
dumbster-1.6.jar
activation-1.0.2.jar
checkout.jpdl.xml
newuser.jpdl.xml
jbpm.cfg.xml
ordermanagement1.jpdl.xml
ordermanagement2.jpdl.xml
ordermanagement3.jpdl.xml
hibernate.cfg.xml
todo.jpdl.xml
person.jpdl.xml
documentRegisterEntry.jpdl.xml
META-INF/maven/
META-INF/maven/com.hazlorealidad/
META-INF/maven/com.hazlorealidad/sgi-ear/
META-INF/maven/com.hazlorealidad/sgi-ear/pom.xml
META-INF/maven/com.hazlorealidad/sgi-ear/pom.properties
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970557#3970557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970557
More information about the jboss-user
mailing list