[JBoss Tools] - Re: Project Facets and Java 1.7
by henk de boer
henk de boer [https://community.jboss.org/people/henk53] created the discussion
"Re: Project Facets and Java 1.7"
To view the discussion, visit: https://community.jboss.org/message/725623#725623
--------------------------------------------------------------
> Max Rydahl Andersen wrote:
>
> Just to let everyone know in case they see this thread - yes, we had listed jst.java facet requirements from 1.3-1.6 which caused this problem.
>
> Its now fixed and M4 will have this fix in.
I'm running Eclipse 3.7.2 and JBoss Tools Beta 1, but it seems to have disappeared again.
It's not in the drop-down and if I manually change it in /.settings/org.eclipse.wst.common.project.facet.core.xml I get a problem in my markers view saying:
Project facet Java 1.7 is not supported by target runtime JBoss 6.x Runtime.
It would be nice if the fix that went into M4 can somehow be re-applied again in case it has been disappeared. Otherwise, is there something special we need to do?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725623#725623]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - How to get data from Multiple-instance subprocess node?
by Evgene Ostapenko
Evgene Ostapenko [https://community.jboss.org/people/taurus] created the discussion
"How to get data from Multiple-instance subprocess node?"
To view the discussion, visit: https://community.jboss.org/message/725589#725589
--------------------------------------------------------------
I have a Multiple-instance node for which i have specified CollectionExpression and VariableName parameters:
CollectionExpression: list
VariableName: item
After starting a system creates several subproceses. Each of them can access its own element from the collection by using a variable given as VariableName. I pass an Object elements in collection and use such parameter mapping:
|| *Sub-process variable* || *Process variable* ||
| username | item.username |
It works. I can use "username" in the subprocess. But when i tried to return its value to the main process and set a result mapping
|| *Sub-process variable* || *Process variable* ||
| username | item.username |
i get the message at start of the application:
There is no ID/IDREF binding for IDREF 'item.username'.
After executing a subprocess, exception happens:
ould not find variable scope for variable item.username
when trying to complete SubProcess node Sub-Process
Continuing without setting variable.
Could not find variable scope for variable item.outcoming_doc_id
when trying to complete SubProcess node Sub-Process
Continuing without setting variable.
java.lang.NullPointerException
at com.sample.BPMTaskHandler.executeWorkItem(BPMTaskHandler.java:32)
at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)
at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
How can i write a working result mapping in this case?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725589#725589]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - How to use Escalation , Deadlines features of the default human task service
by Arun V G
Arun V G [https://community.jboss.org/people/arunvg] created the discussion
"How to use Escalation , Deadlines features of the default human task service"
To view the discussion, visit: https://community.jboss.org/message/725518#725518
--------------------------------------------------------------
Anybody knows how to use the features like Escalation ,Deadlines of the default human task service .
Can we define these in the process definition ?
The documentation says
"The jBPM implementation manages the life cycle of the tasks (creation, claiming, completion, etc.) and stores the state of all the tasks, task lists, and other associated information. It also supports features like internationalization, calendar integration, different types of assignments, delegation, escalation and deadlines."
I was able to work succesfully on th first part ( life cycle of the tasks,stores the state) but couldn't find more information on the next part i.e. internationalization, calendar integration, different types of assignments, delegation, escalation and deadlines
Any hints ?
Cheers :)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725518#725518]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss Web Services] - newbie question about soap address
by Joseph Wu
Joseph Wu [https://community.jboss.org/people/wutongjoe] created the discussion
"newbie question about soap address"
To view the discussion, visit: https://community.jboss.org/message/725506#725506
--------------------------------------------------------------
Hi all,
I was developing an EJB based webservice .I have configed JBAS 7.1 to use https .I can browse wsdl and view xml using browser with following address:
https://localhost:8444/webservices/ExampleService?wsdl https://localhost:8444/webservices/ExampleService?wsdl
but the end of *wsdl always show the following lines:*
<wsdl:service name="WSMashupService">
<wsdl:port name="WSMashupServicePort" binding="tns:WSMashupServiceSoapBinding">
<soap:address location=" http://localhost:8080/webservices/ExampleService"/ http://localhost:8080/webservices/ExampleService"/>
</wsdl:port>
</wsdl:service>
my client side code always try to connect to port 8080 after parsing wsdl .
*client side code is like following :*
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("testuser", "testpass"
.toCharArray());
}
});
URL wsdlURL = new URL(
" https://localhost:8444/webservices/ExampleService?wsdl https://localhost:8444/webservices/ExampleService?wsdl");
QName qname = new QName(" http://test.com/webservices http://test.com/webservices",
"WSMashupService");
Service service = Service.create(wsdlURL, qname);
WSMashupInterface port = service.getPort(WSMashupInterface.class);
BindingProvider bp = (BindingProvider) port;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
"testuser");
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"testpass");
port.dosomethingMashup("12121212121212"); *---------------------------------this line always throw exception :*
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
*the server config is :*
...
<subsystem xmlns="urn:jboss:domain:web:1.1" native="false" default-virtual-server="default-host">
<connector name="http" protocol="HTTP/1.1" scheme="https" socket-binding="https" secure="true">
<ssl key-alias="serverCert" password="servercert" certificate-key-file="${jboss.server.config.dir}/jboss.keystore"/>
</connector>
<virtual-server name="default-host" enable-welcome-root="true">
<alias name="localhost"/>
<alias name="example.com"/>
</virtual-server>
</subsystem>
...
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
<modify-wsdl-address>true</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<wsdl-secure-port>8444</wsdl-secure-port>
<endpoint-config name="Standard-Endpoint-Config"/>
<endpoint-config name="Recording-Endpoint-Config">
<pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
<handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
</pre-handler-chain>
</endpoint-config>
</subsystem>
*the server side code is :*
@Stateless
@Clustered
@WebContext( contextRoot = "/webservices" , urlPattern="/ExampleService",authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=true)
@WebService(name="WSMashupService",serviceName = "WSMashupService", targetNamespace = " http://test.com/webservices http://test.com/webservices")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@SecurityDomain(value = "my-security-domain")
@RolesAllowed(value = { "testrole" })
public class WSMashupImpl implements WSMashupInterface {
*the interface code :*
@WebService(name="WSMashupService",serviceName = "WSMashupService", targetNamespace = " http://test.com/webservices http://test.com/webservices")
@WebContext( contextRoot = "/webservices" , urlPattern="/ExampleService",authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=true)
public interface WSMashupInterface {
I think the problem is with soap address rewrite.Am I right ? what is wrong with my code and config ?
Thanks a lot
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725506#725506]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months