-
15. Re: Need Help on How to call WebService proxy in Swicthyard
mageshbk May 28, 2013 2:09 AM (in response to maran_su)Do you have this in your maven settings.xml?
<pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository>
You can add this to the pom.xml of this project. I made this as a standalone project. Ideally you should use switchyard-parent as shown in the quickstarts.
<repositories> <repository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>jboss-public-repository-group</id> <name>JBoss Public Maven Repository Group</name> <url>https://repository.jboss.org/nexus/content/groups/public/</url> <layout>default</layout> <releases> <updatePolicy>never</updatePolicy> </releases> <snapshots> <updatePolicy>never</updatePolicy> </snapshots> </pluginRepository> </pluginRepositories>
-
16. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su May 28, 2013 2:24 AM (in response to maran_su)build suucess full after adding
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository</id>
<name>JBoss Public Maven Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
-
17. Re: Need Help on How to call WebService proxy in Swicthyard
kcbabo May 28, 2013 6:20 AM (in response to maran_su)1.0.0-SNAPSHOT and 0.8.0.Final versions of switchyard-plugin are both available in the JBoss Nexus repository. Add the following repository definitions to the pom.xml in jsf-sample:
<repositories>
<repository>
<id>jboss-public-repository</id>
<name>JBoss Public Maven Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository</id>
<name>JBoss Public Maven Repository</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</pluginRepository>
</pluginRepositories>
-
18. Re: Need Help on How to call WebService proxy in Swicthyard
kcbabo May 28, 2013 6:21 AM (in response to kcbabo)Whoops. I missed the second page of this thread. :-)
-
19. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su May 28, 2013 10:30 PM (in response to kcbabo)Thanks Keith,
Magesh,
as you mentioned
BTW, most of the Seam/Weld functionality has been replace by CDI in Java EE 6. I have used a CDI bean here in my example
i am able to run the application as a separate web Application but i can't be able to intgrate it into my Seam based application,
is thr any way i can call the service using Seam based Bean classes.
if i integrate the SearchBean.java in to my Application at the end of the Jboss AS 7 run time it shows the following error.
"
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.comp.jboss-seam.EjbSynchronizations (missing) dependents:
[service jboss.naming.context.java.comp.jboss-seam.EjbSynchronizations.ValidatorFactory,
service jboss.naming.context.java.comp.molplexdrugdiscovery.jboss-seam.EjbSynchronizations.Validator]"
Perticulary after adding this dependency in my Pom.xml i am facing this error at run time,
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
</dependency>
-
20. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su May 29, 2013 11:46 PM (in response to maran_su)Hi Magesh,
i am facing this this error when i click the serach button in my portlet,
Caused by: org.switchyard.component.bean.BeanComponentException: A service reference to service 'PerlService' is not bound into this client proxy instance. A reference configuration to the service may be required in the application configuration. at org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:274) [switchyard-component-bean-0.8.0.Final.jar:0.8.0.Final] ... 149 more
attached my project structure and my ejb module pom.xml and SearchBean.java.
i didnot changed anything from jsf-sample , i just copy and pasted all the file in to my seam based portal under ejb module.
only thing i removed the following dependency in my ejb pom.xml
<dependency> <groupId>org.jboss.spec</groupId> <artifactId>jboss-javaee-6.0</artifactId> <version>1.0.0.Final</version> <type>pom</type> </dependency>
because if i add this i will get some validation error,
JBAS014775: New missing/unsatisfied dependencies: service jboss.naming.context.java.comp.molplexdrugdiscovery.jboss-seam.EjbSynchronizations (missing) dependents: [service jboss.naming.context.java.comp.molplexdrugdiscovery.jboss-seam.EjbSynchronizations.ValidatorFactory, service jboss.naming.context.java.comp.molplexdrugdiscovery.jboss-seam.EjbSynchronizations.Validator]
Thanks in advance.
-
WebserviceSearch.png 23.8 KB
-
SearchBean.java.zip 697 bytes
-
ProjectStructure.png 162.0 KB
-
pom.xml 5.9 KB
-
-
21. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su May 30, 2013 4:15 AM (in response to maran_su)Hi,
Can anyone help me on how to solve this error, when i click search button in my application it shows the foolowing error in my console(I have attached my screen shots see above posts)
and it is not callin the Service End Point mentioned in HTTP Binding.
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy155.call(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_10]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_10]
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44) [weld-core-1.1.0.Final.jar:2011-01-14 16:44]
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) [weld-core-1.1.0.Final.jar:2011-01-14 16:44]
at org.jboss.weld.proxies.PerlService$1366014918$Proxy$_$$_WeldClientProxy.call(PerlService$1366014918$Proxy$_$$_WeldClientProxy.java)
at org.molplexdrug.Action.SearchBean.call(SearchBean.java:28)
at org.molplexdrug.Action.SearchBean$Proxy$_$$_WeldClientProxy.call(SearchBean$Proxy$_$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_10]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_10]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el-1.0_02.CR6.jar:1.0_02.CR6]
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.1.7-jbossorg-2.jar:]
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.1_spec-2.0.1.Final.jar:2.0.1.Final]
... 130 more
Caused by: org.switchyard.component.bean.BeanComponentException: A service reference to service 'PerlService' is not bound into this client proxy instance. A reference configuration to the service may be required in the application configuration.
at org.switchyard.component.bean.ClientProxyBean$ClientProxyInvocationHandler.invoke(ClientProxyBean.java:274) [switchyard-component-bean-0.8.0.Final.jar:0.8.0.Final]
... 151 more
-
22. Re: Need Help on How to call WebService proxy in Swicthyard
kcbabo May 30, 2013 6:30 AM (in response to maran_su)The error suggests that the switchyard.xml is either not being picked up or the reference definition is missing from switchyard.xml. Based on your comment of "i just copy and pasted all the file in to my seam based portal under ejb module", I would suspect that switchyard.xml is not being picked up. You should see a log entry similar to this during deployment of your app:
14:11:40,789 INFO [org.switchyard] (MSC service thread 1-12) Deploying SwitchYard application
If you don't see that, then switchyard.xml is not getting picked up.
-
23. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su May 30, 2013 11:41 PM (in response to kcbabo)Thanks Keith ,
as per your suggestion i hve go through my log output but switchyard has not deployed,
attahced the steps i did, can you tell me what i did wrong...
-
Switchyard xml not calling.docx 609.5 KB
-
-
24. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su Jun 3, 2013 4:02 AM (in response to maran_su)Bring Up the Post again,
any help .....
-
25. Re: Need Help on How to call WebService proxy in Swicthyard
kcbabo Jun 3, 2013 6:37 AM (in response to maran_su)Where is switchyard.xml being placed in the deployed application? The expectation is that switchyard.xml will be in the /META-INF directory. The Maven config you copied into your ejb project includes configuration for copying the switchyard.xml to target/switchyard_xml during plugin execution and then uses the maven war plugin include it (which won't be used for an EJB jar project).
The first step here is to make sure the switchyard.xml is in the correct place in the actual packaged/deployed application. Then verify that the SY deployer kicks in on deployment.
-
26. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su Jun 4, 2013 3:18 AM (in response to kcbabo)Hi Keith,
switchyard.xml is deployed under my ejbModul/src/main/resource/switchyard.xml
after compiled succesful output directory in ejbmodule/target/Meta_INF/switchyard.xml
please see the attachment,
and all the trhee module(ejb,Web,ear) Pom.xml.
after runnig the server i verified switchyard.xml not deployed.
do i need to use any Listner class...in web.xml
kindly give me some more idea...
-
pom.xml 9.3 KB
-
pom.xml 2.5 KB
-
pom.xml 5.5 KB
-
switchyardDeployLocation.png 122.5 KB
-
-
27. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su Jun 4, 2013 8:59 PM (in response to maran_su)I require Help on This can any one Help me....
-
28. Re: Need Help on How to call WebService proxy in Swicthyard
mageshbk Jun 4, 2013 9:52 PM (in response to maran_su)Does you final jar/war/ear, by any chance, have any switchyard libraries bundled with it? If so remove them.
-
29. Re: Need Help on How to call WebService proxy in Swicthyard
maran_su Jun 4, 2013 10:26 PM (in response to mageshbk)Magesh,
If i extract my EAR file i got the following output, can you tell me which are the thing i need to remove.
C:\Project\Switchyard26\New folder>jar -xvf molplexdrugdiscovery.ear created: META-INF/ inflated: META-INF/MANIFEST.MF created: lib/ inflated: jboss-seam.jar inflated: lib/antlr-2.7.7.jar inflated: lib/antlr-3.3.jar inflated: lib/antlr-runtime-3.3.jar inflated: lib/bsh-2.0b4.jar inflated: lib/camel-cdi-2.10.0.jar inflated: lib/camel-core-2.10.0.jar inflated: lib/cdi-api-1.0-SP4.jar inflated: lib/cdk-1.4.7.jar inflated: lib/commons-beanutils-1.8.3.jar inflated: lib/commons-digester-2.1.jar inflated: lib/commons-lang-2.4.jar inflated: lib/commons-logging-1.1.1.jar inflated: lib/cssparser-0.9.5.jar inflated: lib/deltaspike-core-api-0.2-incubating.jar inflated: lib/drools-compiler-5.3.3.Final.jar inflated: lib/drools-core-5.3.3.Final.jar inflated: lib/drools-decisiontables-5.3.3.Final.jar inflated: lib/drools-templates-5.3.3.Final.jar inflated: lib/ecj-3.5.1.jar inflated: lib/el-api-1.0.jar inflated: lib/freemarker-2.3.15.jar inflated: lib/geronimo-atinject_1.0_spec-1.0.jar inflated: lib/geronimo-interceptor_1.1_spec-1.0.jar inflated: lib/geronimo-jcdi_1.0_spec-1.0.jar inflated: lib/guava-11.0.2.jar inflated: lib/jackson-core-asl-1.9.2.jar inflated: lib/jackson-mapper-asl-1.9.2.jar inflated: lib/javassist-3.15.0-GA.jar inflated: lib/javax.inject-1.jar inflated: lib/jaxen-1.1.1.jar inflated: lib/jboss-el-1.0_02.CR6.jar inflated: lib/jboss-interceptor-core-2.0.0.CR1.jar inflated: lib/jboss-interceptor-spi-2.0.0.CR1.jar inflated: lib/jboss-interceptors-api_1.1_spec-1.0.0.Final.jar inflated: lib/jboss-jsf-api_2.1_spec-2.0.7.Final.jar inflated: lib/jboss-seam-debug-2.3.0.Final.jar inflated: lib/jboss-seam-ui-2.3.0.Final.jar inflated: lib/jcommander-1.12.jar inflated: lib/jsr250-api-1.0.jar inflated: lib/jsr305-1.3.9.jar inflated: lib/jta-1.1.jar inflated: lib/junit-4.8.2.jar inflated: lib/jxl-2.6.10.jar inflated: lib/knowledge-api-5.3.3.Final.jar inflated: lib/log4j-1.2.16.jar inflated: lib/milyn-smooks-all-1.5.1.jar inflated: lib/mvel2-2.1.0.drools16.jar inflated: lib/opencsv-2.1.jar inflated: lib/ow2-bundles-externals-opencsv-1.0.23.jar inflated: lib/richfaces-components-api-4.3.1.Final.jar inflated: lib/richfaces-components-ui-4.3.1.Final.jar inflated: lib/richfaces-core-api-4.3.1.Final.jar inflated: lib/richfaces-core-impl-4.3.1.Final.jar inflated: lib/sac-1.3.jar inflated: lib/slf4j-api-1.6.1.jar inflated: lib/snakeyaml-1.6.jar inflated: lib/stringtemplate-3.2.1.jar inflated: lib/switchyard-api-0.8.0.Final.jar inflated: lib/switchyard-bus-camel-0.8.0.Final.jar inflated: lib/switchyard-common-0.8.0.Final.jar inflated: lib/switchyard-common-camel-0.8.0.Final.jar inflated: lib/switchyard-common-cdi-0.8.0.Final.jar inflated: lib/switchyard-component-bean-0.8.0.Final.jar inflated: lib/switchyard-deploy-0.8.0.Final.jar inflated: lib/switchyard-extensions-wsdl-0.8.0.Final.jar inflated: lib/switchyard-plugin-0.8.0.Final.jar inflated: lib/switchyard-runtime-0.8.0.Final.jar inflated: lib/switchyard-security-0.8.0.Final.jar inflated: lib/switchyard-serial-0.8.0.Final.jar inflated: lib/switchyard-transform-0.8.0.Final.jar inflated: lib/switchyard-validate-0.8.0.Final.jar inflated: lib/testng-5.14.10.jar inflated: lib/weld-api-1.1.Final.jar inflated: lib/weld-core-1.1.0.Final.jar inflated: lib/weld-se-core-1.1.0.Final.jar inflated: lib/weld-spi-1.1.Final.jar inflated: lib/xml-resolver-1.2.jar inflated: lib/xmlpull-1.1.3.1.jar inflated: lib/xmlunit-1.1.jar inflated: lib/xpp3_min-1.1.4c.jar inflated: lib/xstream-1.4.1.jar inflated: META-INF/application.xml inflated: META-INF/jboss-deployment-structure.xml inflated: META-INF/jboss-seam-space-ds.xml inflated: molplexdrugdiscovery-ejb.jar inflated: molplexdrugdiscovery-web.war created: META-INF/maven/ created: META-INF/maven/com.htc.molplex.drugdicovery/ created: META-INF/maven/com.htc.molplex.drugdicovery/molplexdrugdiscovery-ear/ inflated: META-INF/maven/com.htc.molplex.drugdicovery/molplexdrugdiscovery-ear/pom.xml inflated: META-INF/maven/com.htc.molplex.drugdicovery/molplexdrugdiscovery-ear/pom.properties
-
Lib.png 247.9 KB
-