Hi JB,

   weblogic.jar was in the su package, I removed it since it's too large to
send by email.
   I did test the ejbproxy bean without servicemix, it works well, so I
think there is no problem on weblogic JNDI lookup. The cxf-se WSDL can be
loaded correctly in jmx console even though there is message "Unable to
inject ComponentContext :demo.LoginServiceImpl.setContext"
   sa deployment log as below
NFO  - ServiceAssemblyLifeCycle       - Starting service assembly: ejb-sa
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
ejb-cxf-su
DEBUG - CxfSeComponent                 - Initializing service unit
DEBUG - ComponentContextImpl           - Component: servicemix-cxf-se
activated endpoint: {http://demo/servicemix}LoginServiceService :
LoginServicePort
DEBUG - CxfSeComponent                 - Querying service description for
ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]
DEBUG - CxfSeComponent                 - No description found for
{http://demo/servicemix}LoginServiceService:LoginServicePort
DEBUG - WSDL1Processor                 - Endpoint
ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]
has no service description
DEBUG - CxfSeComponent                 - Querying service description for
ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]
DEBUG - CxfSeComponent                 - No description found for
{http://demo/servicemix}LoginServiceService:LoginServicePort
DEBUG - WSDL2Processor                 - Endpoint
ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]
has no service description
DEBUG - CxfSeComponent                 - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Initializing service unit:
ejb-http-su
DEBUG - HttpComponent                  - Initializing service unit
DEBUG - JCAFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]]
DEBUG - JMSFlow                        - ServiceMix: broadcasting info for
org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://demo/servicemix}LoginServiceService,endpoint=LoginServicePort]]
INFO  - jetty                          - jetty-6.1.14
DEBUG - JettyContextManager            - Dispatching job:
org.mortbay.jetty.abstractconnector$accep...@d66725
INFO  - jetty                          - Started
[email protected]:8199
DEBUG - HttpComponent                  - Service unit initialized
INFO  - ServiceUnitLifeCycle           - Starting service unit: ejb-cxf-su
DEBUG - CxfSeComponent                 - Starting service unit
2009-6-12 9:21:43
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
信息: Creating Service {http://demo/servicemix}LoginServiceService from class
demo.LoginService
2009-6-12 9:21:45 org.apache.cxf.configuration.spring.ConfigurerImpl
getBeanName
信息: Could not determine bean name for instance of class
org.apache.cxf.transport.jbi.JBIDestination.
2009-6-12 9:21:45 org.apache.cxf.endpoint.ServerImpl initDestination
信息: Setting the server's publish address to be
jbi://ID-192-168-83-151-121d2075a0f-25-0
DEBUG - CxfSeComponent                 - Unable to inject ComponentContext:
demo.LoginServiceImpl.setContext(javax.jbi.component.ComponentContext)
DEBUG - CxfSeComponent                 - Service unit started
INFO  - ServiceUnitLifeCycle           - Starting service unit: ejb-http-su
DEBUG - HttpComponent                  - Starting service unit
DEBUG - HttpComponent                  - Service unit started
INFO  - AutoDeploymentService          - Directory: hotdeploy: Finished
installation of archive:  ejb-sa-1.0-SNAPSHOT.jar

Thanks,
Long


Jean-Baptiste Onofré wrote:
> 
> Hi Long,
> 
> In your CXF-SE xbean.xml, I see that you try to make the JNDI lookup on 
> a Weblogic application server.
> 
> Nevertheless, I can't see the weblogic.jar file into your SU lib
> directory.
> 
> To be able to make JNDI lookup and RMI-IIOP, you need the weblogic 
> client lib.
> 
> In your pom.xml, you should have a dependency like this:
> 
> <dependency>
>    <groupId>com.oracle.weblogic</groupId>
>    <artifactId>server</artifactId>
>    <version>10.3</version>
> </dependency>
> 
> You can install the weblogic.jar into your maven working copy using:
> mvn install:install-file -DgroupId=com.oracle.weblogic 
> -DartifactId=server -Dfile=$WLS_HOME/server/lib/weblogic.jar 
> -Dversion=10.3 -Dpackaging=jar
> 
> Could you make a try adding the weblogic.jar into the SU ?
> 
> Regards
> JB
> 
> laolong wrote:
>>  Hi JB,
>>     
>>      http://www.nabble.com/file/p23978791/demo.zip demo.zip 
>> 
>>     I built a test EJB but got same error again, all java code and bean
>> defination are in attached, could you please review it?
>>     
>>     I'm sorry that cannot find a way to send email with attachement to
>> you
>> alone, so I have to use 'Reply' page to upload the file.
>> 
>>    Thanks a lot.
>> 
>> Long  
>> 
>> 
>> Hummm, weird.
>> 
>> Could you provide the annotate in the your LoginService class (and the 
>> corresponding interface) ?
>> It looks like that the CXF-SE side is not deployed correctly (and so the 
>> HTTP component can't find it).
>> Have you all EJB proxy requirements present in your SU zip (EJBs stub, 
>> etc) ?
>> Is it possible to provide your cxf-se zip file (only to my, not on the 
>> mailing list) ?
>> 
>> Regards
>> JB
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-invoke-EJB-and-How-to-disable-WSDL-validation-in-http%3Asoap-consumer-provider--tp23963883p23991505.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to