Invoking ESB Process

Posted by dnessapkota10 on 22-Feb-2012 05:56

               I am beginer to sonic ESB and currently using sonic esb 8.0. How can I call ESB process or services from java client or any other client application even progress.

               Any help is more beneficial to me.

All Replies

Posted by habin123 on 22-Feb-2012 07:21

Hope you have deployed the ESB process in an ESB container.Once it is deployed, you can send a message to the Entry endpoint of the process to invoke the process. You can send message with JMS test client or Message sender available within the workbench.

More information is available in workbech help and soinc documentation (http://documentation.progress.com/output/Sonic/8.0.0/Docs8.0_downloads.htm).

-Habin

Posted by JimmyPoulin on 22-Feb-2012 15:23

Another more open option is to expose your ESB Process as a Web Service a Sonic Connect service.

Posted by dnessapkota10 on 08-Mar-2012 00:34

I have developed the ESB process and host it as web service but while I'm going to test my web services the ESB container unable to start?

What could be the solution?

Thanks,

Dinesh

Posted by JimmyPoulin on 08-Mar-2012 07:18

The most likely cause is that there is a component or a resource used by your process that wasn't deployed. You should be able to see the error in the container's log file. Most of the time you get everything you need for deployment if you follow the procedure from the documentation. Basically, you must export the artifacts with ESB Extract Tool, then import them in the target domain with ESB Import Tool.

Posted by dnessapkota10 on 02-Apr-2012 05:54

Hi Jimmy,

As you mentioned, "The most likely cause is that there is a component or a resource used by your process that wasn't deployed". I don't know how to deploy it. And on the other hand while uploading the sonic connect service file it throws error as,

[12/04/02 16:34:05] (warning) Restart initiated (exit code=14)
[12/04/02 16:34:07] ID=dev_ESBTest (warning) [ESBService] Stop not called on service Create_and_ExposeWS as it was  not started due to an initialization error.
[12/04/02 16:34:07] ID=dev_ESBTest (info) Container suspended -- Status: offline
[12/04/02 16:34:07] ID=dev_ESBTest (info) [Create_and_ExposeWS] Destroyed.
[12/04/02 16:34:07] (info) Unloaded ID=dev_ESBTest
[12/04/02 16:34:09] (info) Unloaded ID=AGENT
[12/04/02 16:34:11] (info) Restarting...
[12/04/02 16:34:15] (config)

    Sonic Management
    Release 8.0.0 Build Number 507
    Copyright (c) 1999-2010 Progress Software Corporation.
    All rights reserved.

    Local host: jv72-dinesh (Windows Vista - 6.1)

    Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
    Sun Microsystems Inc. (home C:\Program Files\Progress\Sonic\MQ8.0\jre, version 1.6.0_11)
    Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode)

    Configured Arguments : -Xms64m -Xmx512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=7999
    Configured Properties:

[12/04/02 16:34:15] (info) "Domain1.dev_ESBTest" starting...
[12/04/02 16:34:16] (info) Management connection (re)established (Socket[addr=/169.254.128.60,port=2506,localport=59882])
[12/04/02 16:34:16] (info) Loaded ID=AGENT
[12/04/02 16:34:16] ID=dev_ESBTest (info) dev_ESBTest initializing...

    Sonic ESB Professional Developer Edition [Serial Number: 999999999]
    Release 8.0.0 Build Number 520
    Copyright (c) 2001-2010 Progress Software Corporation.
    All Rights Reserved.


[12/04/02 16:34:17] ID=dev_ESBTest (info) [ESBService] Initializing Service `Create_and_ExposeWS`
[12/04/02 16:34:18] ID=dev_ESBTest (info) [ESBService] Service `Create_and_ExposeWS` initialized: 1 thread(s) listening on Endpoint Create_and_ExposeWS.Entry
[12/04/02 16:34:18] ID=dev_ESBTest (info)

    Sonic Connect
    Version 8.0 Build Number 604
    Copyright (c) 2010 Progress Software Corporation.
    All rights reserved.


Apr 2, 2012 4:34:22 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromWSDL
INFO: Creating Service {http://www.progress.com/services/customerservice/}GetCustomer from WSDL: resources/wsdl/GetCustomer.wsdl
[12/04/02 16:34:22] ID=dev_ESBTest (severe) [ESBService] Error initializing service application Create_and_ExposeWS
[12/04/02 16:34:22] ID=dev_ESBTest (severe) Trace follows...
com.sonicsw.xq.XQServiceException: Error starting service application ( (org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.)) ( (org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.) (org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.))
    at com.sonicsw.xqimpl.service.XQServiceApplication.postInit(XQServiceApplication.java:593)
    at com.sonicsw.xqimpl.service.XQAppManager.init(XQAppManager.java:175)
    at com.sonicsw.xqimpl.service.XQContainer.init(XQContainer.java:456)
    at com.sonicsw.mf.framework.agent.AbstractMBean.(AbstractMBean.java:294)
    at com.sonicsw.mf.framework.agent.ComponentMBean.(ComponentMBean.java:161)
    at com.sonicsw.mf.framework.agent.ContainerImpl.internalLoadComponent(ContainerImpl.java:3634)
    at com.sonicsw.mf.framework.agent.ContainerImpl.loadComponent(ContainerImpl.java:1365)
    at com.sonicsw.mf.framework.agent.ContainerImpl.loadConfiguredComponent(ContainerImpl.java:507)
    at com.sonicsw.mf.framework.agent.ContainerImpl.loadConfiguredComponents(ContainerImpl.java:4394)
    at com.sonicsw.mf.framework.agent.ContainerImpl.loadAllConfiguredComponents(ContainerImpl.java:4230)
    at com.sonicsw.mf.framework.agent.ContainerImpl.bootFramework(ContainerImpl.java:2338)
    at com.sonicsw.mf.framework.agent.ContainerImpl.(ContainerImpl.java:327)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.sonicsw.mf.framework.agent.ci.Agent.(Agent.java:225)
    at com.sonicsw.mf.framework.agent.ci.Agent$1.run(Agent.java:96)
    at java.lang.Thread.run(Unknown Source)
Caused by: com.sonicsw.xq.XQServiceException:  (org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.) (org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.)
    at com.progress.sonic.esb.service.connect.ConnectService.init(ConnectService.java:134)
    at com.sonicsw.xqimpl.service.XQServiceChain.init(XQServiceChain.java:111)
    at com.sonicsw.xqimpl.service.XQServiceApplication.postInit(XQServiceApplication.java:581)
    ... 18 more
Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1039)
    at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:103)
    at org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:562)
    at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)
    at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)
    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)
    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)
    at com.progress.sonic.esb.service.connect.spring.SonicFileSystemXmlApplicationContext.(SonicFileSystemXmlApplicationContext.java:28)
    at com.progress.sonic.esb.service.connect.ConnectService.initCamelContext(ConnectService.java:311)
    at com.progress.sonic.esb.service.connect.ConnectService.init(ConnectService.java:132)
    ... 20 more
Caused by: org.apache.camel.FailedToStartRouteException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:938)
    at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:197)
    at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101)
    ... 30 more
Caused by: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service.
    at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:93)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:396)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:521)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:271)
    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:100)
    at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:105)
    at org.apache.camel.component.cxf.CxfConsumer.(CxfConsumer.java:123)
    at org.apache.camel.component.cxf.CxfEndpoint.createConsumer(CxfEndpoint.java:97)
    at org.apache.camel.impl.EventDrivenConsumerRoute.addServices(EventDrivenConsumerRoute.java:60)
    at org.apache.camel.impl.DefaultRoute.onStartingServices(DefaultRoute.java:83)
    at org.apache.camel.impl.RouteService.doStart(RouteService.java:123)
    at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:55)
    at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:906)
    ... 32 more
Caused by: javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR: Problem parsing 'wsType.xsd'.: java.io.FileNotFoundException: C:\Program Files\Progress\Sonic\Containers\Domain1.dev_ESBTest\wsType.xsd (The system cannot find the file specified)
    at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseTypes(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
    at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:229)
    at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:179)
    at org.apache.cxf.wsdl11.WSDLServiceFactory.(WSDLServiceFactory.java:91)
    ... 44 more
Caused by: java.io.FileNotFoundException: C:\Program Files\Progress\Sonic\Containers\Domain1.dev_ESBTest\wsType.xsd (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.(Unknown Source)
    at java.io.FileInputStream.(Unknown Source)
    at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    ... 54 more

[12/04/02 16:34:22] ID=dev_ESBTest (info) Actional instrumentation is disabled for this container
[12/04/02 16:34:22] ID=dev_ESBTest (info) Initializing Mitigation context factory class: com.sonicsw.xqimpl.actional.lg.visitor.StabilizerHelper
[12/04/02 16:34:22] (info) Loaded ID=dev_ESBTest
[12/04/02 16:34:22] ID=dev_ESBTest (warning) [ESBService] Cannot start service Create_and_ExposeWS due to initialization error.
[12/04/02 16:34:22] ID=dev_ESBTest (info) Container's ESB (JMS) Connection: jms_defaultConnection
[12/04/02 16:34:22] ID=dev_ESBTest (info) Container's HTTP Routing Connection: http_defaultConnection
[12/04/02 16:34:22] (info) ...startup complete
[12/04/02 16:34:57] (info) Reload ID=dev_ESBTest initiated...
[12/04/02 16:34:58] ID=dev_ESBTest (warning) [ESBService] Stop not called on service Create_and_ExposeWS as it was  not started due to an initialization error.
[12/04/02 16:34:58] ID=dev_ESBTest (info) Container suspended -- Status: offline
[12/04/02 16:34:58] ID=dev_ESBTest (info) [Create_and_ExposeWS] Destroyed.
[12/04/02 16:34:58] (info) Unloaded ID=dev_ESBTest
[12/04/02 16:34:59] ID=dev_ESBTest (info) dev_ESBTest initializing...

    Sonic ESB Professional Developer Edition [Serial Number: 999999999]
    Release 8.0.0 Build Number 520
    Copyright (c) 2001-2010 Progress Software Corporation.
    All Rights Reserved.


[12/04/02 16:34:59] ID=dev_ESBTest (info) Actional instrumentation is disabled for this container
[12/04/02 16:34:59] ID=dev_ESBTest (info) Initializing Mitigation context factory class: com.sonicsw.xqimpl.actional.lg.visitor.StabilizerHelper
[12/04/02 16:34:59] (info) Loaded ID=dev_ESBTest
[12/04/02 16:34:59] ID=dev_ESBTest (info) Container's ESB (JMS) Connection: jms_defaultConnection
[12/04/02 16:34:59] ID=dev_ESBTest (info) Container's HTTP Routing Connection: http_defaultConnection
[12/04/02 16:34:59] (info) ...reload ID=dev_ESBTest complete

Now,

What should I do?

Thanks in Advance,

Dinesh

Posted by JimmyPoulin on 03-Apr-2012 07:58

Hello, the interesting line in the exception trace is this one: java.io.FileNotFoundException: C:\Program Files\Progress\Sonic\Containers\Domain1.dev_ESBTest\wsType.xsd (The system cannot find the file specified)

You will have to do mapping of everything that is used by your service. It is well documented in the Sonic ESB Deployment Guide:

http://documentation.progress.com/output/Sonic/8.5.1/Docs8.5/books/soa_deploy.pdf

Good luck!

Posted by wtam on 03-Apr-2012 11:00

Jimmy, good call.  This problem could be related to a bug in release 8.0.0 dealing with relative schema path that has been fixed in 8.0.1.  Bug ID is SNC00075891 (Problem when WSDL has relative imports).

Posted by dnessapkota10 on 09-Apr-2012 06:21

Hi William,

I have no idea about how to upgrade sonic 8.0 to 8.0.1. How can I do this?

Thank you,

Dinesh

Posted by rrudis on 09-Apr-2012 07:48

You should be able to download 8.0.1 at http://www.progress.com/progress/esd/myproducts.jsp, and follow the instructions in the Update Bulletin.

This thread is closed