[Beginner's Corner] - Deploying JDBC drivers and Datasources via jboss-cli.sh
by Willem Noorduin
Willem Noorduin [https://community.jboss.org/people/willemnoorduin] created the discussion
"Deploying JDBC drivers and Datasources via jboss-cli.sh"
To view the discussion, visit: https://community.jboss.org/message/779071#779071
--------------------------------------------------------------
In JBoss 7 / JBoss-EAP-6 I have made a domain-master (running on server1) and a slave (running on server2, and has server1 as its master. I have made a server-group and a server-config like this:
[domain@server1:9999 server-group] /server-group=one-server-group/:add(profile=full-ha,socket-binding-group=full-ha-sockets,jvm=default)
[domain@server1:9999 /] /host=server2/server-config=slave:add(auto-start=true, group=one-server-group, socket-binding-group=full-ha-sockets, socket-binding-port-offset=0)
[domain@server1:9999 /] /host=server2/server-config=slave:start
I would like deploy / add JDBC drivers and datasources via the cli, but:
[domain@server1:9999 subsystem=datasources] /host=server2/server=slave/subsystem=datasources/jdbc-driver=mysql:add(driver-name="mysql",driver-module-name="com.mysql.jdbc",driver-xa-datasource-class-name="com.mysql.jdbc.jdbc2.optional.MysqlXADataSource")
Failed to get the list of the operation properties: "JBAS014753: There is no operation add registered at address [
("subsystem" => "datasources"),
("jdbc-driver" => "mysql")
]"
What do I do wrong. I can't reach the datasource subsystem of the master too, so I can't add it there either (of course, I can edit it manually to the domain.xml of the slave,, but then it still don't show up in my installed-drivers-list command.
Or do you have to define all drivers and datasources on the master ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779071#779071]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 4 months
[jBPM] - Error on server
by loaone seleka
loaone seleka [https://community.jboss.org/people/loaone] created the discussion
"Error on server"
To view the discussion, visit: https://community.jboss.org/message/758523#758523
--------------------------------------------------------------
Hello
I cannot start my human task because it doesnt recognise
my port and ip address. Please help
0 07/09 12:15:56,390[main] ERROR service.hornetq.HornetQTaskClientConnector.connect - Unable to connect to server using configuration org-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5445&host=127-0-0-1
Exception in thread "main" org.jbpm.workflow.instance.WorkflowRuntimeException: [com.human.bpmn:1 - Human1:3] -- Could not connect task client: on ip: 127.0.0.1 - port: 5445
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:130)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:130)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1077)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:315)
at human.TestProcess.main(TestProcess.java:25)
Caused by: java.lang.IllegalArgumentException: Could not connect task client: on ip: 127.0.0.1 - port: 5445
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:119)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:143)
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:124)
... 14 more
Sep 7, 2012 12:16:05 PM org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: I'm closing a core ServerLocator you left open. Please make sure you close all ServerLocators explicitly before letting them go out of scope! 3658896
Sep 7, 2012 12:16:05 PM org.hornetq.core.logging.impl.JULLogDelegate warn
WARNING: The ServerLocator you didn't close was created here:
java.lang.Exception
at org.hornetq.core.client.impl.ServerLocatorImpl.<init>(ServerLocatorImpl.java:387)
at org.hornetq.core.client.impl.ServerLocatorImpl.<init>(ServerLocatorImpl.java:484)
at org.hornetq.api.core.client.HornetQClient.createServerLocatorWithoutHA(HornetQClient.java:112)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:93)
at org.jbpm.task.service.hornetq.HornetQTaskClientConnector.connect(HornetQTaskClientConnector.java:74)
at org.jbpm.task.service.TaskClient.connect(TaskClient.java:790)
at org.jbpm.task.service.SyncTaskServiceWrapper.connect(SyncTaskServiceWrapper.java:193)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.connect(GenericHTWorkItemHandler.java:117)
at org.jbpm.process.workitem.wsht.GenericHTWorkItemHandler.executeWorkItem(GenericHTWorkItemHandler.java:143)
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:124)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:205)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:164)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:124)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:188)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:303)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:168)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:138)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:130)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1077)
at org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:315)
at human.TestProcess.main(TestProcess.java:25)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758523#758523]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 4 months
[JBoss Web Services] - Can't access JAX-WS WSDL except via "localhost" URL
by Roger Huang
Roger Huang [https://community.jboss.org/people/ro2000] created the discussion
"Can't access JAX-WS WSDL except via "localhost" URL"
To view the discussion, visit: https://community.jboss.org/message/775671#775671
--------------------------------------------------------------
Hi,
I created a JAX-WS web service starting from a WSDL (contract-first), using
wsconsume -k JimmySoaTest.wsdl
It seems to publish ok on JBoss AS 7.1.3, on Windows Enterprise 7.
Server log:
17:19:30,812 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBA
S015876: Starting deployment of "JimmySoaTest2.war"
17:19:30,959 INFO [org.jboss.wsf.stack.cxf.metadata.MetadataBuilder] (MSC servi
ce thread 1-9) Add Service
id=SoaTestImpl
address= http://localhost:8080/JimmySoaTest2 http://localhost:8080/JimmySoaTest2
implementor=com.paypal.svcs.services.SoaTestImpl
invoker=org.jboss.wsf.stack.cxf.JBossWSInvoker
serviceName={ http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaTest
portName={ http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaTestSOAP11port_http
wsdlLocation=null
mtomEnabled=false
17:19:30,976 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean]
(MSC service thread 1-9) Creating Service { http://svcs.paypal.com/services http://svcs.paypal.com/services}SoaT
est from WSDL: WEB-INF/wsdl/JimmySoaTest.wsdl
17:19:31,041 INFO [org.jboss.wsf.stack.cxf.transport.AddressRewritingEndpointIn
fo] (MSC service thread 1-9) Setting new service endpoint address in wsdl: http:
//10.249.152.143:8080/SoaTest
17:19:31,085 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-9)
Setting the server's publish address to be http://localhost:8080/JimmySoaTest2 http://localhost:8080/JimmySoaTest2
17:19:31,102 INFO [org.jboss.wsf.stack.cxf.deployment.WSDLFilePublisher] (MSC s
ervice thread 1-9) WSDL published to: file:/C:/jboss-as-dist-7.1.3.Final/jboss-a
s-7.1.3.Final/standalone/data/wsdl/JimmySoaTest2.war/JimmySoaTest.wsdl
17:19:31,105 INFO [org.jboss.as.osgi] (MSC service thread 1-14) JBAS011907: Reg
ister module: Module "deployment.JimmySoaTest2.war:main" from Service Module Loa
der
17:19:31,106 INFO [org.jboss.as.webservices] (MSC service thread 1-13) JBAS0155
39: Starting service jboss.ws.endpoint."JimmySoaTest2.war".SoaTestImpl
17:19:31,108 INFO [org.jboss.ws.common.management.DefaultEndpointRegistry] (MSC
service thread 1-13) register: jboss.ws:context=JimmySoaTest2,endpoint=SoaTestI
mpl
17:19:31,119 INFO [org.jboss.web] (MSC service thread 1-12) JBAS018210: Registe
ring web context: /JimmySoaTest2
17:19:31,146 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018
559: Deployed "JimmySoaTest2.war"
>From IE 8, I enter this URL http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl http://localhost:8080/JimmySoaTest2/SoaTestTest?wsdl and see the WSDL:
[snip]
# - <wsdl:service name="*SoaTest*">
# - <wsdl:port binding="*ns0:SoaTestSOAP11Binding*" name="*SoaTestSOAP11port_http*">
<soap:address location=" *http://10.250.153.144:8080/SoaTest http://10.250.153.144:8080/SoaTest*" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
However when I enter http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl http://10.250.153.144:8080/JimmySoaTest2/SoaTestTest?wsdl
I don't see the WSDL. Instead I get this error:
| h1. Internet Explorer cannot display the webpage
|
|
|
This problem can be caused by a variety of issues, including:
* Internet connectivity has been lost.
* The website is temporarily unavailable.
* The Domain Name Server (DNS) is not reachable.
* The Domain Name Server (DNS) does not have a listing for the website's domain.
* There might be a typing error in the address.
* If this is an HTTPS (secure) address, click Tools, click Internet Options, click Advanced, and check to be sure the SSL and TLS protocols are enabled under the security section.
*
Environment: JBoss AS 7.1.3 on Windows Enterprise 7.
Note in standalone.xml, I set <modify-wsdl-address> to false:
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
<modify-wsdl-address>false</modify-wsdl-address>
<wsdl-host>${jboss.bind.address:127.0.0.1}</wsdl-host>
<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>
Any ideas why I can't see my published WSDL when I enter either my IP address or DNS name?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775671#775671]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 4 months