[JBoss Seam] - Re: Cannot get @In to work
by c_eric_ray
Tried that already and got the following exception...
| javax.ejb.EJBException: java.lang.IllegalArgumentException: could not set field value: packages.delete
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy841.init(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293)
| at org.jboss.seam.Component.getInstance(Component.java:1260)
| at org.jboss.seam.Component.getInstance(Component.java:1246)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
| at com.sun.el.parser.AstEqual.getValue(AstEqual.java:20)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
| Caused by: java.lang.IllegalArgumentException
| at sun.reflect.UnsafeBooleanFieldAccessorImpl.set(UnsafeBooleanFieldAccessorImpl.java:62)
| at java.lang.reflect.Field.set(Field.java:656)
| at org.jboss.seam.Component.setFieldValue(Component.java:1210)
| ... 107 more
|
So I discarded this solution as wrong. I'll try to track down why I'm getting this exeption and post a reason when I figure it out. Thanks.
Eric Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962257#3962257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962257
18 years, 5 months
[JBoss Seam] - seam application error safter deployment- ejb-jar.xml must e
by ssniazi
seam application successfully deployed. . Here is what;s going wrong
Build Seam by running "ant" the Seam root directory...this is successful
Build and deploy the example by running "ant" in the Seam
"examples/booking" directory...this is successful....
Started JBoss AS by typing "bin/run.sh" in the JBoss home directory
Pointed browser to:
http://localhost:8080/seam-booking/
and it coughs and gives me the following in the browser
==========
HTTP Status 404 - /seam-booking
--------------------------------------------------------------------------------
type Status report
message /seam-booking
description The requested resource (/seam-booking) is not available.
--------------------------------------------------------------------------------
Apache Tomcat/5.5.17
===================================
Tomcat is also started as service in bckground.
This is from the JBOSS start.bat log.
=====================================
12:42:14,906 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@704d3bd5 { url=file:/C:/jboss-4.0.4.GA/serve
r/default/deploy/jboss-seam-booking.ear }
deployer: org.jboss.deployment.EARDeployer@b31b77
status: Deployment FAILED reason: ejb-jar.xml must either obey the right xml s
chema or define a valid DOCTYPE!
state: FAILED
watch: file:/C:/jboss-4.0.4.GA/server/default/deploy/jboss-seam-booking.ear
altDD: null
lastDeployed: 1154454133203
lastModified: 1154454131828
mbeans:
==============================
Anyone seen this one before, any suggesiton ? Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962256#3962256
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962256
18 years, 5 months
[JBoss Seam] - Cannot get @In to work
by c_eric_ray
code snippet...
| @In @Out(scope=ScopeType.SESSION)
| private boolean delete = false;
|
jsf snippet...
| <h:column>
| <f:facet name="header">
| <h:outputText value="#{pkgHeaders.delete}" />
| </f:facet>
| <h:selectBooleanCheckbox value="#{delete}" />
| </h:column>
|
exception...
| javax.ejb.EJBException: org.jboss.seam.RequiredException: In attribute requires value for component: packages.delete
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy661.init(Unknown Source)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
| at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
| at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1293)
| at org.jboss.seam.Component.getInstance(Component.java:1260)
| at org.jboss.seam.Component.getInstance(Component.java:1246)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:85)
| at com.sun.el.parser.AstEqual.getValue(AstEqual.java:20)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:554)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
I must be doing something wrong,but for the life of me I cannot figure it out. I believe I've done everything by the book. Any ideas on why I can't get this right.
Thanks.
Eric Ray
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962253#3962253
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962253
18 years, 5 months
[JBoss jBPM] - Re: a fast solution
by newbie007
Look at the following code and you should be able to understand what is going on:
LoggingInstance loggingInstance = processInstance.getLoggingInstance();
| List assignmentLogs = loggingInstance.getLogs(TaskAssignLog.class);
|
| log.debug("assignmentlogs: " + assignmentLogs);
|
| if (assignmentLogs.size() == 1) {
| TaskAssignLog taskAssignLog = (TaskAssignLog) assignmentLogs.get(0);
| JsfHelper.addMessage("A new task has been assigned to '" + taskAssignLog.getTaskNewActorId() + "'");
|
| } else if (assignmentLogs.size() > 1) {
| String msg = "New tasks have been assigned to: ";
| Iterator iter = assignmentLogs.iterator();
| while (iter.hasNext()) {
| TaskAssignLog taskAssignLog = (TaskAssignLog) iter.next();
| msg += taskAssignLog.getActorId();
| if (iter.hasNext())
| msg += ", ";
| }
| msg += ".";
| JsfHelper.addMessage(msg);
| }
|
| jbpmContext.save(taskInstance);
|
| return "home";
| }
When it returns, it uses faces config xml to figure where to go (mapping for "home").
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962250#3962250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962250
18 years, 5 months
[JBoss jBPM] - Re: Task priority problem
by michaelholtzman
The JIRA issue for this is marked as closed, but it is STILL a problem.
(http://jira.jboss.com/jira/browse/JBPM-325)
The priority assigned to the task in the process definition is not propagated to the task instance.
If we look at the hibernate cfg for task ...
| <?xml version="1.0"?>
|
| <!DOCTYPE hibernate-mapping PUBLIC
| "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
| "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
| <hibernate-mapping default-access="field">
|
| <class name="org.jbpm.taskmgmt.def.Task"
| table="JBPM_TASK">
| <cache usage="nonstrict-read-write"/>
| <id name="id" column="ID_"><generator class="native" /></id>
|
| <!-- GRAPHELEMENT -->
| <property name="name" column="NAME_" />
| <many-to-one name="processDefinition"
| column="PROCESSDEFINITION_"
| foreign-key="FK_TASK_PROCDEF"/>
| <map name="events" cascade="all">
| <cache usage="nonstrict-read-write"/>
| <key column="TASK_" foreign-key="FK_EVENT_TASK" />
| <index column="EVENTTYPE_" type="string"/>
| <one-to-many class="org.jbpm.graph.def.Event" />
| </map>
| <list name="exceptionHandlers" cascade="all">
| <cache usage="nonstrict-read-write"/>
| <key column="TASK_" foreign-key="none" />
| <list-index column="GRAPHELEMENTINDEX_" />
| <one-to-many class="org.jbpm.graph.def.ExceptionHandler" />
| </list>
| <!-- ============ -->
|
| <property name="description" type="string_max" column="DESCRIPTION_" length="4000"/>
| <property name="isBlocking" column="ISBLOCKING_" />
| <property name="isSignalling" column="ISSIGNALLING_" />
| <property name="dueDate" column="DUEDATE_" />
| <property name="actorIdExpression" column="ACTORIDEXPRESSION_" />
| <property name="pooledActorsExpression" column="POOLEDACTORSEXPRESSION_" />
|
| <many-to-one name="taskMgmtDefinition"
| column="TASKMGMTDEFINITION_"
| foreign-key="FK_TASK_TASKMGTDEF"/>
| <many-to-one name="taskNode"
| column="TASKNODE_"
| foreign-key="FK_TASK_TASKNODE"/>
| <many-to-one name="startState"
| column="STARTSTATE_"
| foreign-key="FK_TASK_STARTST"/>
| <many-to-one name="assignmentDelegation"
| column="ASSIGNMENTDELEGATION_"
| foreign-key="FK_TASK_ASSDEL"
| cascade="all" />
| <many-to-one name="swimlane"
| column="SWIMLANE_"
| foreign-key="FK_TASK_SWIMLANE"/>
| <many-to-one name="taskController"
| column="TASKCONTROLLER_"
| foreign-key="FK_TSK_TSKCTRL"
| cascade="all" />
|
| </class>
|
| </hibernate-mapping>
|
... there is no property for PRIORITY. When a task instance is spawned from the task, it always gets the default priority of "3".
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962249#3962249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962249
18 years, 5 months