Hi,
I was missing the axis2-ws binding in the WEB-INF/lib. I added those libs and
verified
the dependencies with other working webapps and now the error has migrated to
the
following:
Any idea what's going wrong? (I don't get any errors if I omit "<binding.ws/>"
in the
componentType file.)
Caused by: java.lang.NullPointerException
at
org.apache.tuscany.sca.assembly.xml.PolicyAttachPointProcessor.resolvePolicies(PolicyAttachPointProcessor.java:243)
at
org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:310)
at
org.apache.tuscany.sca.binding.ws.xml.WebServiceBindingProcessor.resolve(WebServiceBindingProcessor.java:59)
at
org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint$LazyStAXArtifactProcessor.resolve(DefaultStAXArtifactProcess
orExtensionPoint.java:252)
at
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
at
org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:362)
at
org.apache.tuscany.sca.assembly.xml.BaseAssemblyProcessor.resolveContracts(BaseAssemblyProcessor.java:311)
at
org.apache.tuscany.sca.assembly.xml.ComponentTypeProcessor.resolve(ComponentTypeProcessor.java:340)
at
org.apache.tuscany.sca.assembly.xml.ComponentTypeProcessor.resolve(ComponentTypeProcessor.java:57)
at
org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor.resolve(ExtensibleStAXArtifactProcessor.java:109)
at
org.apache.tuscany.sca.assembly.xml.ComponentTypeDocumentProcessor.resolve(ComponentTypeDocumentProcessor.java:112)
at
org.apache.tuscany.sca.assembly.xml.ComponentTypeDocumentProcessor.resolve(ComponentTypeDocumentProcessor.java:44)
at
org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor.resolve(ExtensibleURLArtifactProcessor.java:86)
at
org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.processResolvePhase(ContributionServiceImpl.java:454)
at
org.apache.tuscany.sca.contribution.service.impl.ContributionServiceImpl.addContribution(ContributionServiceImpl.java:348)
Thanks,
Dalys
--- Luciano Resende <[EMAIL PROTECTED]> wrote:
> On Sun, May 4, 2008 at 10:37 PM, Dalys Sebastian
> <[EMAIL PROTECTED]> wrote:
> > Hi everyone,
> >
> > This may probably be a very basic question. But I had been trying for quite
> > sometime
> and
> > could not find an example on it, so I thought I will post it.
> >
> > How do I expose my component (BPEL implementation) as a webservice URI? Do
> > I modify
> the
> > componentType file?
> >
> > I tried modifying both the componentType and the composite file and
> > introduced
> > "<binding.ws/>" in both, but it does not seem to pick it up.
> >
> > For e.g., my componentType file looks like:
> > <componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"
> > xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> >
> > <service name="HelloService" promote="BPELHelloWorldComponent">
> > <interface.wsdl
> >
>
interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)"
> > />
> > <binding.ws/>
> > </service>
> >
> > </componentType>
> >
> > I have deployed it as a webapp on Tomcat. And during startup, Tuscany
> > throws a
> warning
> > like:
> > WARNING: Element {http://www.osoa.org/xmlns/sca/1.0}binding.ws cannot be
> > processed.
> > ([row,col,system-id]:
>
> Looks like you are missing the axis-ws binding dependency jar in your
> app. Could you please verify your dependencies ?
>
> >
>
[27,9,"file:/C:/apache-tomcat-5.5.25/webapps/sample-helloworld-bpel/WEB-INF/classes/helloworld.componentType"])
> >
> > What am I doing wrong?
> >
> > Thanks,
> > Dalys
> >
> >
> >
> >
> >
> ____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile. Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
>
>
>
> --
> Luciano Resende
> Apache Tuscany Committer
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ