Re: Can we use JAX-RPC and JAX-WS in the same time in a JEE application?

2009-01-10 Thread Forrest_Xia

Finally, I got through the problem I encountered. I add some configs to
web.war/web-inf/webservices.xml

Trade JAX-WS
Impl

TradeJWSPort
http://jaxws.daytrader.samples.geronimo.apache.org";>p1:TradeJWSService
http://jaxws.daytrader.samples.geronimo.apache.org";>p2:TradeJWSPort
false
   
org.apache.geronimo.samples.daytrader.jaxws.Trade

TradeImplwJAXWS




Then the code get working. But I still have a question is that why we need a
configuration like that. I tried disabling JAX-RPC impl of daytrader web
service, then no any configuration for the JAX-WS impl, the Geronimo can
work and generate correct web service wsdl to make daytrader work.

But when I want to use JAX-RPC and JAX-WS at the same time, why
configuration is needed?

Please anyone can light me on this?

Thanks in advance!


-- 
View this message in context: 
http://www.nabble.com/Can-we-use-JAX-RPC-and-JAX-WS-in-the-same-time-in-a-JEE-application--tp21312861s134p21386880.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.



Re: Can we use JAX-RPC and JAX-WS in the same time in a JEE application?

2009-01-06 Thread Forrest_Xia
 how to use
dynamic wsdl generation to get service port. Seems those samples all use
generated static wsdl and service-ref to get service port from JNDI. 

Please advise, thanks!

Forrest

-- 
View this message in context: 
http://www.nabble.com/Can-we-use-JAX-RPC-and-JAX-WS-in-the-same-time-in-a-JEE-application--tp21312861s134p21325051.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.



Re: Can we use JAX-RPC and JAX-WS in the same time in a JEE application?

2009-01-06 Thread Jarek Gawor
Forrest,

Yes, that should work. Have you looked at
testsuite/webservices-testsuite/jaxrpc-jaxws-tests tests? Maybe that
will help.

Jarek

On Tue, Jan 6, 2009 at 10:43 AM, Forrest_Xia  wrote:
>
> Recently I am trying to have a JAX-WS implementation for daytrader web
> services access mode.
>
> I can make it work when I disabled JAX-RPC in configuration files, but when
> I try to make two web services access mode working in the same time, there
> is a deployment exception appeared like this:
> "Deployer operation failed: POJO web service: TradeImplwJAXWS not configured
> by any web service builder
> org.apache.geronimo.common.DeploymentException: POJO web service:
> TradeImplwJAXWS not configured by any web service builder
>at
> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:449)
>at
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
>at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:662)
>at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
>at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
>at java.lang.reflect.Method.invoke(Method.java:599)
>at
> org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
>at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
>at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
>at
> org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
>at
> org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
>at java.lang.Thread.run(Thread.java:735)"
>
> I searched web and found a JIRA GERONIMO-3005 ->
> https://issues.apache.org/jira/browse/GERONIMO-3005 related, seems it has
> been fixed in the trunk. But still I got the similar exception, why?
>
> Thanks in advance for any insight!
>
> Forrest
> --
> View this message in context: 
> http://www.nabble.com/Can-we-use-JAX-RPC-and-JAX-WS-in-the-same-time-in-a-JEE-application--tp21312861s134p21312861.html
> Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.
>
>


Can we use JAX-RPC and JAX-WS in the same time in a JEE application?

2009-01-06 Thread Forrest_Xia

Recently I am trying to have a JAX-WS implementation for daytrader web
services access mode. 

I can make it work when I disabled JAX-RPC in configuration files, but when
I try to make two web services access mode working in the same time, there
is a deployment exception appeared like this:
"Deployer operation failed: POJO web service: TradeImplwJAXWS not configured
by any web service builder
org.apache.geronimo.common.DeploymentException: POJO web service:
TradeImplwJAXWS not configured by any web service builder
at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:449)
at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:662)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:134)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:850)
at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:237)
at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:735)"

I searched web and found a JIRA GERONIMO-3005 ->
https://issues.apache.org/jira/browse/GERONIMO-3005 related, seems it has
been fixed in the trunk. But still I got the similar exception, why?

Thanks in advance for any insight!

Forrest
-- 
View this message in context: 
http://www.nabble.com/Can-we-use-JAX-RPC-and-JAX-WS-in-the-same-time-in-a-JEE-application--tp21312861s134p21312861.html
Sent from the Apache Geronimo - Dev mailing list archive at Nabble.com.