[jBPM] - OnAllSubTasksEndParentEndStrategy java.lang.VerifyError: Cannot inherit from final class
by Julien Serdaru
Julien Serdaru [https://community.jboss.org/people/jserdaru] created the discussion
"OnAllSubTasksEndParentEndStrategy java.lang.VerifyError: Cannot inherit from final class"
To view the discussion, visit: https://community.jboss.org/message/817868#817868
--------------------------------------------------------------
Hi there, I am trying to set up a local task service using JPA persistence and hibernate. Environment: Java 6, Hibernate 4.1.7, jBPM 5.4.0.Final When creating the entity manager factory I get the following exception when hibernate tries to instantiate the class OnAllSubTasksEndParentEndStrategy. {code} Caused by: java.lang.VerifyError: Cannot inherit from final class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170) at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1318) {code} Looking at that class, I see that it inherits the enum SubTasksStrategy. I thought extending an enum was prohibited in Java. Am I missing something here? Thanks for the help! My persistence.xml {code} jdbc/jbpm-ds org.jbpm.task.Attachment org.jbpm.task.BooleanExpression org.jbpm.task.Comment org.jbpm.task.Content org.jbpm.task.Deadline org.jbpm.task.Delegation org.jbpm.task.EmailNotification org.jbpm.task.EmailNotificationHeader org.jbpm.task.Escalation org.jbpm.task.Group org.jbpm.task.I18NText org.jbpm.task.Notification org.jbpm.task.OnAllSubTasksEndParentEndStrategy org.jbpm.task.OnParentAbortAllSubTasksEndStrategy org.jbpm.task.PeopleAssignments org.jbpm.task.Reassignment org.jbpm.task.Status org.jbpm.task.SubTasksStrategy org.jbpm.task.Task org.jbpm.task.TaskData org.jbpm.task.User
{code}
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/817868#817868]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years
jboss clustering
by sara
hi,
i need to configure Jboss clustering , i tried to apply it in the same
server but i couldn't perform Failover
so now i'm trying two different ips at different machines , what should
i do exactly?!
REGARDS,
SARA
11 years
[JBoss Web Services] - Reference SAML assertion in Signature block
by Indira Akundi
Indira Akundi [https://community.jboss.org/people/crumbs] created the discussion
"Reference SAML assertion in Signature block"
To view the discussion, visit: https://community.jboss.org/message/817796#817796
--------------------------------------------------------------
Using JBoss 7.2 from GitHub:
*https://community.jboss.org/message/817407#817407 Re: JBoss 7.2 Warning:No assertion builder for type {http://schemas.xmlsoap.org/ws/2005/07/securitypolicy}ProtectTokens registered*
So I switched back to the non-policy way, and used wss4jinterceptors instead.
Again, using JBOSs 7.2 from GitHub, with all the modules that come with it.
wss4j is 1.6.9.
I followed the example in the following link.
The STR references the SAML token now, the timestamp and body are signed.
The SAML assertion has a signature inside the saml assertion.
But the SAML assertion is not signed externally, ie, there is no reference to the SAML assertion in the Signature block.
The Signature block only has reference to the timestamp and body.
http://svn.apache.org/viewvc?view=revision&revision=1081802 http://svn.apache.org/viewvc?view=revision&revision=1081802
| /** |
| 215 | * This test creates a holder-of-key SAML1 Assertion, and sends it in the security header |
| 216 | * to the provider. |
| 217 | */ |
| 218 | @Test |
| 219 | public void testSaml1TokenHOK() throws Exception { |
| 220 | Map<String, Object> outProperties = new HashMap<String, Object>(); |
| 221 | outProperties.put(WSHandlerConstants.ACTION, WSHandlerConstants.SAML_TOKEN_SIGNED); |
| 222 | outProperties.put(WSHandlerConstants.SAML_PROP_FILE, "saml_hok.properties"); |
| 223 | outProperties.put(WSHandlerConstants.SIG_KEY_ID, "DirectReference"); |
| 224 | outProperties.put(WSHandlerConstants.USER, "alice"); |
| 225 | outProperties.put("password", "password"); |
| 226 | outProperties.put(WSHandlerConstants.SIG_PROP_FILE, "alice.properties"); |
| 227 | SAML1CallbackHandler callbackHandler = new SAML1CallbackHandler(); |
| 228 | callbackHandler.setConfirmationMethod(SAML1Constants.CONF_HOLDER_KEY); |
| 229 | outProperties.put( |
| 230 | WSHandlerConstants.SAML_CALLBACK_REF, callbackHandler |
| 231 | ); |
Is there any way using CXF or JBOSSWS-CXF either policy or non-policy way to sign the saml assertion? I,e, have a reference to it in the Signature block, not just inside the saml assertion?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/817796#817796]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years