You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2010/12/25 11:15:45 UTC

[jira] Resolved: (AXIS2-3955) AXIS2 Client requires replicated Server configuration for analyzing web service answers, e.g. repository\services\SecureService

     [ https://issues.apache.org/jira/browse/AXIS2-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-3955.
-------------------------------------------------

    Resolution: Fixed

this issue has nothing to do with codegen. 

This exception comes since you have put a service file without a META-INF folder.

with wsdl2java if you need to generate only the client side code
use -u -uw

and for server side use -ss -sd -uw

> AXIS2 Client requires replicated Server configuration for analyzing web service answers, e.g. repository\services\SecureService
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3955
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3955
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: Windows XP SP3, Rampart 1.3/1.4
>            Reporter: Thomas Poetter
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> The generated AXIS2 client reuses some specific server code when analyzing web service answers and thus also requires configuration files that should be specific to only the server - in my case in the project's subdirectory repository\services\SecureService. This dependency should be removed or at least be documented so that people find a workaround.
> An example is e.g. the SecureService example in Tong's ebook:
> http://www.agileskills2.org/DWSAA/index.html
> Source code can be downloaded from here:
> http://www.agileskills2.org/DWSAA/source.zip
> Error call stacks:
> org.apache.axis2.deployment.DeploymentException: Invalid service. META-INF directory not found.
> 	at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:274)
> 	at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:64)
> 	at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:137)
> 	at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:571)
> 	at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:141)
> 	at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:318)
> 	at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:220)
> 	at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:118)
> 	at org.apache.axis2.deployment.FileSystemConfigurator.loadServices(FileSystemConfigurator.java:146)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:78)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:180)
> 	at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(ConfigurationContextFactory.java:185)
> 	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:27)
> Caused by: org.apache.axis2.deployment.DeploymentException: Invalid service. META-INF directory not found.
> 	at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:262)
> 	... 12 more
> soapMsg =
> [MessageContext: logID=urn:uuid:D5C1BF9606BFA661FE1217406972370] org.apache.axis2.context.MessageContext@10849bc[logCorrelationID=urn:uuid:D5C1BF9606BFA661FE1217406972370,options=org.apache.axis2.client.Options@1e59128,FLOW=1,processingFault=false,paused=false,outputWritten=false,newThreadRequired=false,isSOAP11=true,executionChain=<null>,executedPhases=<null>,doingREST=false,doingMTOM=false,doingSwA=false,currentHandlerIndex=0,currentPhaseIndex=0,failureReason=<null>,envelope=<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body></soapenv:Envelope>,operationContext=org.apache.axis2.context.OperationContext@187814,responseWritten=false,serverSide=false,serviceContext=org.apache.axis2.context.ServiceContext@73a7ab,serviceContextID=<null>,serviceGroupContext=org.apache.axis2.context.ServiceGroupContext@104faf8,serviceGroupContextId=<null>,sessionContext=<null>,incomingTransportName=<null>,selfManagedDataDelimiter=*,lastTouchedTime=0]
> soapMsg-Envelope =
> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body></soapenv:Envelope> org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl@9ced8e[ns=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42,localName=Envelope,firstChild=<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />,namespaces={soapenv=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42},attributes=<null>,noPrefixNamespaceCounter=0,lastChild=<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body>,lineNumber=0,parent=<null>,nextSibling=<null>,previousSibling=<null>,builder=<null>,done=true,nodeType=0,factory=org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory@2ba11b]
> soapMsgTxt =
>  org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl@9ced8e[ns=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42,localName=Envelope,firstChild=<soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" />,namespaces={soapenv=org.apache.axiom.om.impl.OMNamespaceImpl@212ecf42},attributes=<null>,noPrefixNamespaceCounter=0,lastChild=<soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>111</s2></ns1:concat></soapenv:Body>,lineNumber=0,parent=<null>,nextSibling=<null>,previousSibling=<null>,builder=<null>,done=true,nodeType=0,factory=org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory@2ba11b]
> Exception in thread "main" org.apache.axis2.AxisFault: Error in signature with X509Token
> 	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
> 	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
> 	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
> 	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> 	at com.ttdev.secure.client.SecureServiceStub.concat(SecureServiceStub.java:175)
> 	at com.ttdev.secure.client.SecureClient.main(SecureClient.java:43)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org