You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by clsun88 <zh...@hotmail.com> on 2009/08/29 12:13:07 UTC

cxf spring jBPM integration

HI,everyone.
I have J2EE program.this program use CXF(2.2.3)
,Spring(2.0),JDK(1.5.0.5),JBPM(3.2.1).
client call J2EE WebService, J2EE call DominoWebService.client is (C++)
now, J2EE call DominoWebService run to this :
 DoAuthenticationResponse ret = client.DoAuthentication 
 Eclipse Console is display:

29 八月 09 17:11:06,147265 [http-8080-Processor25] WARN 
com.wedge.edp.framework.jbpm.config.SpringLocator  -
新的Spring容器引用覆盖原有SpringLocator的引用
 29 八月 09 17:11:06,147265 [http-8080-Processor25] INFO 
com.wedge.edp.framework.jbpm.config.SpringLocator  - Initialize the
reference to spring beanFactory :
org.springframework.beans.factory.support.DefaultListableBeanFactory@558f72:
defining beans
[dataSource,sqlMapClient,jdbcTransactionManager,superDao,cxf,org.apache.cxf.bus.spring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.apache.cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusLifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.servlet.ServletTransportFactory,SMSWebService,SealKeeperService,proxyFactory,DominoServiceClient,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor,SequenceDao,sequenceService,sessionService,sessionFactory,jbpmConfiguration,processTxAdvice,wedgeWorkflowJbpmService,wedgeWorkflowApplication,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.aspectj.AspectJPointcutAdvisor,errorReportor,workflowContextAdvice,processApp,workflowTemplate,processDao,orgEngine,UserInfoDao,userInfoService,OperatorInfoDao,EmpLoyeeInfoDao,userMgrService,OrgInfoDao,orgInfoService,RoleInfoDao,MenuInfoDao,roleInfoService,DictTypeDao,DictEntryDao,dictTypeService,menuInfoService,LoginMgrDao,loginMgrService,personalInfoDao,personalOpInfoDao,personalService,LogmgrDao,logmgrService];
root of factory hierarchy

j2EEWebServiceImpl:
public class SMSWebServiceImpl implements SMSWebService { 

        private static SessionService sessionService = (SessionService) 
BeanFactoryUtils.getBean("sessionService"); 
        @Resource 
    private WebServiceContext context; 
        public AuthenticationResponse authentication( 
                        AuthenticationRequest AuthenticationRequest,
Holder<String> userID, 
                        Holder<String> sessionID) { 
                MessageContext ctx = context.getMessageContext(); 
                HttpServletRequest request = (HttpServletRequest) ctx.get 
(AbstractHTTPDestination.HTTP_REQUEST); 

          AuthenticationResponse _return = new AuthenticationResponse 
(); 
          DoAuthenticationRequest _request = new 
DoAuthenticationRequest(); 
          _request.setMachineID(AuthenticationRequest.getMachineID()); 
          _request.setPassword(AuthenticationRequest.getPassword 
().getValue()); 
          _request.setUser(AuthenticationRequest.getUser()); 
          DominoServiceImpl client = new DominoServiceImpl(); 
          DoAuthenticationResponse ret = client.DoAuthentication(_request); 
          _return.setErrorCode(ret.getErrorCode()); 
          if (ret.getErrorCode() != 0){ 
                _return.setMachineInfo(ret.getMachineInfo()); 
                String[] userInfo = ret.getUserName().split("/"); 
                _return.setUserName(userInfo[0]); 
                String sessionId = sessionService.saveSession(request, 
AuthenticationRequest.getUser(), ret.getRoleName(),userInfo[1]); 
                sessionID.value = sessionId; 
          } 
                        return _return; 
        } 


if we not use JBPM CONSOLE not dispay this message. I think this is
Error.how do repair?

thank you! 

spring_applicationContext:
http://www.nabble.com/file/p25201629/applicationContext.xml
applicationContext.xml 
JBPM: http://www.nabble.com/file/p25201629/wedge-workflow.xml
wedge-workflow.xml 
DominoClient: http://www.nabble.com/file/p25201629/DominoServiceImpl.java
DominoServiceImpl.java 
J2EEServer: http://www.nabble.com/file/p25201629/SMSWebServiceImpl.java
SMSWebServiceImpl.java 
-- 
View this message in context: http://www.nabble.com/cxf-spring-jBPM-integration-tp25201629p25201629.html
Sent from the cxf-user mailing list archive at Nabble.com.