That would be it - all the samples use "services.xml". The documentation
is correct on this too. Must just have been M2 that got it wrong (or
just me :).

> Blind guess. Check whether the dir of the aar name is META-INF.
> "meta-inf" might not work
> Chathura

This was also correct - "meta-inf" did not work either. It was tough to
get right because WinZip shows all UPPERCASE names in lowercase by
default.

The Axis2 Exception does not include the "META-INF" part of the name
that is obviously significant. The documentation looks OK though.

-------------
Now I get:

This Web axisService has deployment faults

Error: org.apache.axis2.deployment.DeploymentException: null; nested
exception is: java.lang.ClassCastException at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
at 
...

Full exception attached.

----------------
I have a .wsdl (as generated by Axis 1.3 - attached) so I try to run
WSDL2Java.

c:> WSDL2Java -uri ProviderService.wsdl -ss -sd -o src2 -p
au.gov.qld.health.s8online.providerdir

It creates 'src2' (empty) and outputs:

schemaElement = [xsd:schema: null]
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: The use 'encoded' is not supported!
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:105)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:30)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
Caused by: java.lang.RuntimeException: The use 'encoded' is not
supported!
        at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.foo(XMLBeansExtension.java:334)
        at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.checkCompat
ibility(XMLBeansExtension.java:319)
        at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:86)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:76)
        ... 2 more

Any suggestions?

I already tried the sample which worked OK:
WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o
..\samples\src -p org.apache.axis2.userguide

Without a Java2WSDL I dont think I can try another approach than using
the wsdl from Axis 1.3.

Thanks.


Simon McMahon

Work: (07) 31311420
Mobile: (043) 2294180


>>> [EMAIL PROTECTED] 12/07/05 02:21pm >>>
try renaming the service.xml with services.xml. This was changed in the
last
release but I'm afraid it's not provided with enough documentation

On 12/7/05, Chathura Herath <[EMAIL PROTECTED]> wrote:
>
> Sorry i didnt notice that you are using M2.
> Chathura
>
> On 12/6/05, Simon McMahon <[EMAIL PROTECTED]> wrote:
> > For some reason I thought M2 was the most recent ???
> > I have now installed 0.93 so I will try again. I see already that
I
> > should let the tools generate the service.xml and not try to write
it by
> > hand.
> >
> > You obviously have been busy since M2 :-).
> >
> > Thanks,
> >
> > Simon.
> >
> >
> > Simon McMahon
> >
> > Work: (07) 31311420
> > Mobile: (043) 2294180
> >
> >
> > >>> [EMAIL PROTECTED] 12/07/05 11:47am >>>
> > I think Deepal fixed this in later releases.
> >
> > BTW, Simon, we have come a long long way since M2. The latest 0.93
> > version is much more flexible, stable, feature rich and blah blah
blah
> > than M2 (Obviously).
> >
> > So please try to play with 0.93 forgetting M2.
> >
> > Chathura Herath wrote:
> >
> > >Blind guess. Check whether the dir of the aar name is META-INF.
> > >"meta-inf" might not work
> > >Chathura
> > >
> > >On 12/6/05, Simon McMahon <[EMAIL PROTECTED]>
wrote:
> > >
> > >
> > >>Hi,
> > >>
> > >>I have previously been working with 1.3 and have some services
> > deployed
> > >>and working OK under that.
> > >>
> > >>I just installed Axis2 (axis2-M2-bin build (June 07, 2005)) on
XP,
> > >>Tomcat 4.1.31, Java 1.4.2_08.
> > >>
> > >>It installed just fine and I got the Axis happiness page as
> > expected.
> > >>
> > >>I have my own service for Axis 1.3 but to install it for 2 I need
a
> > >>service.xml to complete the .aar
> > >>It is a pretty simple service and the wsdd is:
> > >>
> > >><deployment name="test" xmlns="http://xml.apache.org/axis/wsdd/";
> > >>    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>
> > >>  <service name="qh-providers" provider="java:RPC">
> > >>    <parameter name="className"
> > >>value="au.gov.qld.health.s8online.providerdir.ProviderService"/>
> > >>    <parameter name="allowedMethods" value="*"/>
> > >>    <parameter name="wsdlServicePort" value="GetProvider"/>
> > >>  </service>
> > >></deployment>
> > >>
> > >>I just guessed this content for the service.xml:
> > >><service name="qh-providers">
> > >>        <description>Provider Search Web Service</description>
> > >>        <parameter name="ServiceClass"
> > >>locked="xsd:false">
> au.gov.qld.health.s8online.providerdir.ProviderService</parameter>
> > >>        <operation name="GetProvider">
> > >>                <messageReceiver
> > >>class="au.gov.qld.health.s8online.providerdir.ProviderService"/>
> > >>        </operation>
> > >></service>
> > >>
> > >>I put this into the meta-inf directory in the .aar and deployed
it
> > to
> > >>D:\Tomcat\4.1.31\webapps\axis2\WEB-INF\services
> > >>It found the .aar and my service but came up as a faulty service
> > with
> > >>
> > >>This Web service has deployment faults
> > >>Error: service.xml not found
> > >>
> > >>The service.xml is definitely in the meta-inf of the .aar but
the
> > >>content is pretty likely to be wrong. Any suggestions on how I
can
> > >>trouble shoot this?
> > >>
> > >>Regards,
> > >>
> > >>Simon.
> > >>
> > >>
> > >>
> > >>Simon McMahon
> > >>
> > >>Work: (07) 31311420
> > >>Mobile: (043) 2294180
> > >>
> > >>
> > >>
> >
>>*****************************************************************
> > >>This email, including any attachments sent with it, is
> > >>confidential and for the sole use of the intended recipient(s).
> > >>This confidentiality is not waived or lost, if you receive it
and
> > >>you are not the intended recipient(s), or if it is transmitted/
> > >>received in error.
> > >>
> > >>Any unauthorised use, alteration, disclosure, distribution or
> > >>review of this email is strictly prohibited.  The information
> > >>contained in this email, including any attachment sent with
> > >>it, may be subject to a statutory duty of confidentiality if it
> > >>relates to health service matters.
> > >>
> > >>If you are not the intended recipient(s), or if you have
> > >>received this email in error, you are asked to immediately
> > >>notify the sender by telephone collect on Australia
> > >>+61 1800 198 175 or by return email.  You should also
> > >>delete this email, and any copies, from your computer
> > >>system network and destroy any hard copies produced.
> > >>
> > >>If not an intended recipient of this email, you must not copy,
> > >>distribute or take any action(s) that relies on it; any form of
> > >>disclosure, modification, distribution and/or publication of
this
> > >>email is also prohibited.
> > >>
> > >>Although Queensland Health takes all reasonable steps to
> > >>ensure this email does not contain malicious software,
> > >>Queensland Health does not accept responsibility for the
> > >>consequences if any person's computer inadvertently suffers
> > >>any disruption to services, loss of information, harm or is
> > >>infected with a virus, other malicious computer programme or
> > >>code that may occur as a consequence of receiving this
> > >>email.
> > >>
> > >>Unless stated otherwise, this email represents only the views
> > >>of the sender and not the views of the Queensland Government.
> > >>****************************************************************
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >--
> > >Chathura Herath
> > >http://www.bloglines.com/blog/chathurah 
> > >
> > >
> > >
> >
> >
> > *****************************************************************
> > This email, including any attachments sent with it, is
> > confidential and for the sole use of the intended recipient(s).
> > This confidentiality is not waived or lost, if you receive it and
> > you are not the intended recipient(s), or if it is transmitted/
> > received in error.
> >
> > Any unauthorised use, alteration, disclosure, distribution or
> > review of this email is strictly prohibited.  The information
> > contained in this email, including any attachment sent with
> > it, may be subject to a statutory duty of confidentiality if it
> > relates to health service matters.
> >
> > If you are not the intended recipient(s), or if you have
> > received this email in error, you are asked to immediately
> > notify the sender by telephone collect on Australia
> > +61 1800 198 175 or by return email.  You should also
> > delete this email, and any copies, from your computer
> > system network and destroy any hard copies produced.
> >
> > If not an intended recipient of this email, you must not copy,
> > distribute or take any action(s) that relies on it; any form of
> > disclosure, modification, distribution and/or publication of this
> > email is also prohibited.
> >
> > Although Queensland Health takes all reasonable steps to
> > ensure this email does not contain malicious software,
> > Queensland Health does not accept responsibility for the
> > consequences if any person's computer inadvertently suffers
> > any disruption to services, loss of information, harm or is
> > infected with a virus, other malicious computer programme or
> > code that may occur as a consequence of receiving this
> > email.
> >
> > Unless stated otherwise, this email represents only the views
> > of the sender and not the views of the Queensland Government.
> > ****************************************************************
> >
> >
>
>
> --
> Chathura Herath
> http://www.bloglines.com/blog/chathurah 
>



--
Ajith Ranabahu

Attachment: ProviderService.wsdl
Description: Binary data

Error: org.apache.axis2.deployment.DeploymentException: null; nested exception 
is: java.lang.ClassCastException at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:216)
 at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:510)
 at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:228)
 at 
org.apache.axis2.deployment.listener.RepositoryListenerImpl.update(RepositoryListenerImpl.java:102)
 at 
org.apache.axis2.deployment.listener.RepositoryListenerImpl.checkServices(RepositoryListenerImpl.java:95)
 at 
org.apache.axis2.deployment.DeploymentEngine.load(DeploymentEngine.java:226) at 
org.apache.axis2.context.ConfigurationContextFactory.buildConfigurationContext(ConfigurationContextFactory.java:35)
 at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:61) at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:888) 
at org.apache.catalina.core.StandardW
 rapper.allocate(StandardWrapper.java:621) at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2358) at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:133) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(S
 tandardPipeline.java:596) at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:118)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
 at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948) at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.jav
 a:152) at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) 
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:534) Caused by: 
java.lang.ClassCastException at 
org.apache.axis2.deployment.DescriptionBuilder.loadMessageReceiver(DescriptionBuilder.java:304)
 at 
org.apache.axis2.deployment.ServiceBuilder.processOperations(ServiceBuilder.java:209)
 at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:126)
 at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:263)
 at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:205)
 ... 36 more 

Reply via email to