[jBPM] - JBPM 4.4 Tomcat JNDI ProcessEngine Exception.
by Antonio Pagano
Antonio Pagano [http://community.jboss.org/people/antonio.pagano] created the discussion
"JBPM 4.4 Tomcat JNDI ProcessEngine Exception."
To view the discussion, visit: http://community.jboss.org/message/563436#563436
--------------------------------------------------------------
Hi,
I wrote a Factory for my using JBPM 4.4 ProcessEngine as a JNDI resource in Tomcat like this,
...
public class ProcessEngineFactory implements ObjectFactory {
public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
return Configuration.getProcessEngine();
}
}
Im start my Tomcat and everithing goes great, but when another application needs to find anyone of the services
inside the ProcessEngineImpl (lets say RepositoryService) , i get this exception :
...
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
...
Please any help you can give me arround this topic is great received.
Thanks in advance,
Antonio
Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 Caused by: org.jbpm.pvm.internal.wire.WireException: couldn't set commandService to org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:48)
at org.jbpm.pvm.internal.wire.descriptor.ObjectDescriptor.initialize(ObjectDescriptor.java:230)
... 25 more
Caused by: org.jbpm.api.JbpmException: couldn't set 'commandService' to 'org.jbpm.pvm.internal.svc.SkipInterceptor@2e8e96cd'
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:170)
at org.jbpm.pvm.internal.wire.operation.FieldOperation.apply(FieldOperation.java:46)
... 26 more
Caused by: java.lang.IllegalArgumentException: Can not set org.jbpm.pvm.internal.cmd.CommandService field org.jbpm.pvm.internal.svc.AbstractServiceImpl.commandService to org.jbpm.pvm.internal.svc.SkipInterceptor
at org.jbpm.pvm.internal.util.ReflectUtil.set(ReflectUtil.java:168)
... 27 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563436#563436]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 6 months
[JBoss Portal] - Customizing JBoss Portal Authentication
by Roy Tang
Roy Tang [http://community.jboss.org/people/roytang] created the discussion
"Customizing JBoss Portal Authentication"
To view the discussion, visit: http://community.jboss.org/message/565243#565243
--------------------------------------------------------------
Hello,
I'm kind of new to JBoss Portal, but I'm tasked to check if it's possible to customize the authentication model used by the portal. Specifically we want to have a PIN field as an additional level of authentication over the password. The PIN field would need to be input during login in addition to the password and we'll also use it in some other cases, but for the purpose of this question, I just want to know how I can customize the portal's authentication model to support this additional field?
As mentioned I'm newish to JBoss and my experience with portals/portlets in general has been limited to some minor Liferay customization, so any detailed explanation might go over my head quickly (though I'd still appreciate it!); instead I hope someone can suggest what documentation I should be reading or if there's any relevant or useful tutorials somewhere I could look at to get started.
Thanks very much :D
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/565243#565243]
Start a new discussion in JBoss Portal at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 6 months
[jBPM] - Serializable object not being persisted.
by Phillip Thurmond
Phillip Thurmond [http://community.jboss.org/people/pthurmond%40jboss.com] created the discussion
"Serializable object not being persisted."
To view the discussion, visit: http://community.jboss.org/message/564398#564398
--------------------------------------------------------------
I have a class OrderType which is serializable, but I'm getting the following exception when I execute my process. From my understanding of the documentation, any object which is serializable can be persisted by jbpm. Is there any configuration necessary to enable this? If not, any ideas of potential causes?
Stack Trace:
org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable
at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3663)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1374)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:203)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:535)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:103)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:534)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:526)
at org.hibernate.engine.CascadingAction$5.cascade(CascadingAction.java:241)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:291)
org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.pvm.internal.type.variable.UnpersistableVariable is not a: org.jbpm.pvm.internal.type.Variable
at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3663)
at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1374)
at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:203)
at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:535)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:103)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:534)
.......
Thanks.
--Phillip
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/564398#564398]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 6 months