[jBPM] - jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String.
by Adam Bach
Adam Bach [https://community.jboss.org/people/heathcliff] created the discussion
"jBPM WorkItemHandler problem: when Object is passed as param it's transformed to String."
To view the discussion, visit: https://community.jboss.org/message/733763#733763
--------------------------------------------------------------
Hi,
I'm passing an object of type Task to WorkItemHandler implementation and it lands in params map as after invoking toString method on my obejct.
WID definition:
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.FloatDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
// the CreateProject work item
[
"name" : "TaskTime",
"parameters" : [
"host" : new StringDataType(),
"task" : new ObjectDataType(),
"date" : new ObjectDataType(),
"time" : new FloatDataType(),
],
"displayName" : "TaskTime",
"icon" : "icons/taskTime.png"
]
]
When I double click on my domain specific node on designer I get a window where I can provide values for parameters. So for task param I have given #{taskObj} and instead of an actual object I have received a String version of this object. The workaround is to explicitly map this param in properties view, but the idea was to give users UI for setting those values in more pleasent way.
ANOTHER problem is that when I set some values to my custom node than Properties view is not changing accorgingly to my my node type. Meannig when I click on some node than the Properties view is updated to show those props. Than when I click to my TaskTime node than Properties view has only those props which ware available for previous node, and if some props are common for both node than values for tham are updated with ne values. So when I click on my TaskTime node I can see the host,task,date,time properties, nor I can see on Entry and on Exit action properties. Furthermore If previosus node had such properties than I can see them for TaskTime node but when I update them than they are updated for that previosud node.
Can someone confirm those issues? Any help on workarounds?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733763#733763]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[JBoss Web Services] - Problem implementing ws-security service (and client) in AS7.1.1
by Dimitris Keramidas
Dimitris Keramidas [https://community.jboss.org/people/varkon] created the discussion
"Problem implementing ws-security service (and client) in AS7.1.1"
To view the discussion, visit: https://community.jboss.org/message/735080#735080
--------------------------------------------------------------
Hello,
I have been trying to migrate a secure web service deployed in JBoss AS 5.1 to AS7.1. Having realized that the process is quite different now, I decided to start small and follow the https://docs.jboss.org/author/display/AS71/WS-Security WS-Security for AS7.1 documentation.Unfortunately, I did not manage to get the service working as expected (sign & encrypt). I keep getting errors like this:
WARNING: WSP0075: Policy assertion "{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}AsymmetricBinding" was evaluated as "UNKNOWN".
WARNING: WSP0075: Policy assertion "{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}Wss10" was evaluated as "UNKNOWN".
WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: These policy alternatives can not be satisfied:
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token: The received token does not match the token inclusion requirement
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:129)
at $Proxy22.sayHello(Unknown Source)
at Test.main(Test.java:22)
or this (with a slightly altered WSDL):
WARNING: WSP0075: Policy assertion "{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}AsymmetricBinding" was evaluated as "UNKNOWN".
WARNING: WSP0075: Policy assertion "{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}Wss10" was evaluated as "UNKNOWN".
WARNING: WSP0019: Suboptimal policy alternative selected on the client side with fitness "UNKNOWN".
Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: These policy alternatives can not be satisfied:
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}AsymmetricBinding: Received Timestamp does not match the requirements
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token: The received token does not match the token inclusion requirement
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}InitiatorToken
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}RecipientToken
{http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}IncludeTimestamp: Received Timestamp does not match the requirements
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:111)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:129)
at $Proxy22.sayHello(Unknown Source)
at Test.main(Test.java:22)
I have tried changing the ws-securitypolicy configuration in my WSDL - as described in the http://docs.oasis-open.org/ws-sx/ws-securitypolicy/v1.3/ws-securitypolicy... WS-SecurityPolicy standard - but to no avail.
Are the sample web services described in the above https://docs.jboss.org/author/display/AS71/WS-Security WS-Security link located anywhere? I would very much like to download them, and try to deploy them as they are. Perhaps I might get a better idea of what I might be doing wrong.
Regards,
Dimitris
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/735080#735080]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[JBoss Tools] - JBoss Tools: Hibernate Tools: LGPL and EPL license conflict in the same file
by Tapio Siilola
Tapio Siilola [https://community.jboss.org/people/esiilola] created the discussion
"JBoss Tools: Hibernate Tools: LGPL and EPL license conflict in the same file"
To view the discussion, visit: https://community.jboss.org/message/752204#752204
--------------------------------------------------------------
Hello
My perspective is that of a lawyer, so please excuse me for digging into old stuff - it merely comes with the job. :)
I'm tasked with analyzing Hibernate Tools, a part of JBoss Tools, to find out its licensing. In particular, the package I need to review is an "all sources" package of JBoss Tools available at: http://downloads.sourceforge.net/jboss/JBossTools-ALL-sources-3.0.3.v2009..., (http://downloads.sourceforge.net/jboss/JBossTools-ALL-sources-3.0.3.v2009... the /hibernatetools folder contains Hibernate Tools (v.3.2.4 I believe).
I understand this version of Hibernate Tools (without accounting for dependencies) is predominantly licensed with LGPL v.2.1 (or later), and parts are under Eclipse Public License 1.0. However, upon a cursory review I found two files (there may be more) which contain both the LGPL and EPL license headers. These files are:
hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/views/contentoutline/JFaceNodeAdapterFactoryForXML.java
hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/navigator/ClearPlaceHolderJob.java
The EPL copyright holder is "IBM and others", while the LGPL copyright holder is JBoss. It seems to me this combination of two copyleft (albeit weak) licenses in one file may not be compatible.
For the vast majority of files in this package, when JBoss is a co-copyright owner in a file the file is distributed under the EPL license. Is this two licenses in a single file simply an oversight, and can the file be considered to be fully under one of the licenses? Or is there something else at play here, perhaps a different interpretation of the licenses, or a permission from the copyright holder? Our issue is simply wanting our forms of use/redistribution of the component to be compliant with whatever the license terms are. Here's the license header of the first file:
*/*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org http://www.fsf.org.
*/
*
Thank you in advance for your time and any possible replies.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/752204#752204]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[EJB3] - Remote EJB3 client deploy fail.
by Bob Kung
Bob Kung [https://community.jboss.org/people/r4_1314] created the discussion
"Remote EJB3 client deploy fail."
To view the discussion, visit: https://community.jboss.org/message/744203#744203
--------------------------------------------------------------
Hi all,
I have a war builds on spring jndi template to invoke ejbs which deployed on a remote Jboss as 7.1.0 server. And my deploy server also a jboss 7.1.0 server.
The jndi config is
"java.naming.factory.initial": "org.jboss.naming.remote.client.InitialContextFactory",
"java.naming.security.principal":"user",
"java.naming.security.credentials":"user",
"java.naming.provider.url": "remote://192.168.1.153:4447",
"jboss.naming.client.ejb.context": true
The first time I packed the war with a jboss-client-7.1.0.Final.jar, but I got the *linkage error of org/jboss/remoting/Connection*. So I removed that jar, deployed again. Another error appeared
(http--0.0.0.0-8080-1) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.abc.war:main" from Service Module Loader
18:35:33,214 ERROR [stderr] (http--0.0.0.0-8080-1) javax.naming.NamingException: JBAS011843: Failed instantiate InitialContextFactory org.jboss.naming.remote.client.InitialContextFactory from classloader ModuleClassLoader for Module "deployment.abc.war:main" from Service Module Loader
18:35:33,215 ERROR [stderr] (http--0.0.0.0-8080-1) at org.jboss.as.naming.InitialContextFactoryBuilder.createInitialContextFactory(InitialContextFactoryBuilder.java:64)
18:35:33,225 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:681)
18:35:33,226 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:305)
18:35:33,226 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.naming.InitialContext.init(InitialContext.java:240)
18:35:33,227 ERROR [stderr] (http--0.0.0.0-8080-1) at javax.naming.InitialContext.<init>(InitialContext.java:214)
18:35:33,227 ERROR [stderr] (http--0.0.0.0-8080-1) at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)
18:35:33,228 ERROR [stderr] (http--0.0.0.0-8080-1) at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)
Any idea for this?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744203#744203]
Start a new discussion in EJB3 at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - jbpm5 inside my own application
by barbosasalexand
barbosasalexand [https://community.jboss.org/people/barbosasalexand] created the discussion
"jbpm5 inside my own application"
To view the discussion, visit: https://community.jboss.org/message/733242#733242
--------------------------------------------------------------
Hi.
A few days ago I heard about jbpm5 and after reading some of the available documentation, I had some doubts on how to integrate jbpm5 in my own application.
The example I saw showed a preview of contents over Guvnor repository and showed too the editor/designer, in a specific web application (I think the example I saw was done in seam), but what Iwould like to know is how to integrate the process itself, eg, users make logging into the web application and see the tasks that need to run and clicking on them appears a form (form jbpm or something more specific of the application, for example with the graphical aspect of the same application) with the task information, fields to fill and instructions to perform in the step, etc... , as defined in the process.
Can anyone help me clarify this doubt.
Thank you.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/733242#733242]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months