You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Dave Sowerby <da...@gmail.com> on 2008/07/21 17:05:14 UTC

Exception during Client node lookup.

Hi All,

I'm getting an Exception whilst attempting to get a client component
node using the following code:

node = SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
new SCAContribution("test", "target/classes"));

The composite contains a reference to a locally hosted web service:

<binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>

When I execute my client I get the following NPE, which it appears to
be throwing whilst trying to add an operation to the wsdl based upon
the interface (I'm using interface.java).

The signature of the interface that causes it to die is:

public void throwException throws WSException();

And the Exception is:

Caused by: java.lang.NullPointerException
	at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
	at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
	at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
	at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
	at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
	at org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
	at org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
	at org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
	at org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
	at org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
	at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
	at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
	... 26 more

Does anyone have any ideas what would be causing this issue?

Cheers,

Dave.

--
Dave Sowerby MEng MBCS

Re: Exception during Client node lookup.

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jul 29, 2008 at 4:33 PM, Dave Sowerby <da...@gmail.com>wrote:

> Ok, I've closed TUSCANY-2512 and created TUSCANY-2514.
>
> Cheers,
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 4:23 PM, Dave Sowerby <da...@gmail.com>
> wrote:
> > Hey Ant,
> >
> > I concur - this is not a critical blocker for 1.3's release - I'll
> > raise a suitable JIRA for this shortly.
> >
> > Dave.
> >
> > --
> > Dave Sowerby MEng MBCS
> >
> >
> >
> > On Tue, Jul 29, 2008 at 3:08 PM, ant elder <an...@gmail.com> wrote:
> >> I think we should be able to make both of those optional - so the jsr181
> >> dependency is only needed when those annotations are being used and the
> >> servlet host isn't needed for ws clients. Can we leave that till post
> 1.3?
> >> Would you raise a JIRA for this?
> >>
> >>    ...ant
> >>
> >> On Tue, Jul 29, 2008 at 2:02 PM, Dave Sowerby <da...@gmail.com>
> >> wrote:
> >>>
> >>> Thanks Simon, that's proved very useful!
> >>>
> >>> I've identified the missing dependencies from my pom.xml as:
> >>>
> >>>                <dependency>
> >>>                        <groupId>org.apache.tuscany.sca</groupId>
> >>>                        <artifactId>tuscany-host-tomcat</artifactId>
> >>>                        <version>${tuscany.version}</version>
> >>>                </dependency>
> >>>
> >>>                <dependency>
> >>>                        <groupId>javax.jws</groupId>
> >>>                        <artifactId>jsr181-api</artifactId>
> >>>                        <version>1.0-MR1</version>
> >>>                </dependency>
> >>>
> >>> Though I do find it interesting that Tuscany itself isn't dependent on
> >>> jsr181 - is there any reason for this?
> >>>
> >>> Another question, which I guess is more of a nice to have more than
> >>> anything is with the tuscany-host-* dependency requirement here - I'm
> >>> actually running a client, so why is it that I need any of the jetty,
> >>> tomcat, etc modules, rather than using something more
> >>> appropriate/lightweight for a client?
> >>>
> >>> Also, neither of these stack traces (especially the NPE) was
> >>> particularly easy to identify what was wrong/missing - is at least any
> >>> way the exception handling there could be improved?
> >>>
> >>> Though I am now much happier with the following line:
> >>>
> >>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.313
> sec
> >>>
> >>> cheers,
> >>>
> >>> Dave.
> >>>
> >>> --
> >>> Dave Sowerby MEng MBCS
> >>>
> >>>
> >>>
> >>> On Tue, Jul 29, 2008 at 12:50 PM, Simon Laws <
> simonslaws@googlemail.com>
> >>> wrote:
> >>> >
> >>> >
> >>> > On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <
> dave.sowerby@gmail.com>
> >>> > wrote:
> >>> >>
> >>> >> Hey Simon,
> >>> >>
> >>> >> This was required for our services with 1.2.1 when not running in a
> >>> >> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway,
> the
> >>> >> webapp isn't really required to prove this...
> >>> >>
> >>> >> That execution looks fine to me, so I'm baffled that it's failing...
> >>> >> What JDK are you executing this with?  I've tried both the Sun and
> IBM
> >>> >> 1.5 JDKs, but both result in the same issue - do you have any ideas
> >>> >> what else could be causing these failures?
> >>> >>
> >>> >> Dave.
> >>> >>
> >>> >> --
> >>> >> Dave Sowerby MEng MBCS
> >>> >>
> >>> >>
> >>> >>
> >>> >> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws
> >>> >> <si...@googlemail.com>
> >>> >> wrote:
> >>> >> >
> >>> >> >
> >>> >> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby
> >>> >> > <da...@gmail.com>
> >>> >> > wrote:
> >>> >> >>
> >>> >> >> Hey Simon,
> >>> >> >>
> >>> >> >> This has been the case with 1.3 RC1 and RC2.
> >>> >> >>
> >>> >> >> Dave.
> >>> >> >>
> >>> >> >> --
> >>> >> >> Dave Sowerby MEng MBCS
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws
> >>> >> >> <si...@googlemail.com>
> >>> >> >> wrote:
> >>> >> >> >
> >>> >> >> >
> >>> >> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby
> >>> >> >> > <da...@gmail.com>
> >>> >> >> > wrote:
> >>> >> >> >>
> >>> >> >> >> Hey Ant,
> >>> >> >> >>
> >>> >> >> >> We're targetting our next release (due in a matter of weeks)
> at
> >>> >> >> >> 1.3,
> >>> >> >> >> so ideally this fix would be included in the 1.3 release.
> >>> >> >> >>
> >>> >> >> >> What are the generally time scales for the releases of 1.3 and
> >>> >> >> >> 1.3.1?
> >>> >> >> >>
> >>> >> >> >> Cheers,
> >>> >> >> >>
> >>> >> >> >> Dave.
> >>> >> >> >>
> >>> >> >> >> --
> >>> >> >> >> Dave Sowerby MEng MBCS
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >>
> >>> >> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <
> ant.elder@gmail.com>
> >>> >> >> >> wrote:
> >>> >> >> >> > How important is it to you that this gets fixed in the 1.3
> >>> >> >> >> > release
> >>> >> >> >> > or
> >>> >> >> >> > could
> >>> >> >> >> > it wait for a later release? There's already been some
> mention
> >>> >> >> >> > of
> >>> >> >> >> > having
> >>> >> >> >> > a
> >>> >> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can
> >>> >> >> >> > wait.
> >>> >> >> >> >
> >>> >> >> >> >    ...ant
> >>> >> >> >> >
> >>> >> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
> >>> >> >> >> > <da...@gmail.com>
> >>> >> >> >> > wrote:
> >>> >> >> >> >>
> >>> >> >> >> >> All,
> >>> >> >> >> >>
> >>> >> >> >> >> I've created TUSCANY-2512 for this, with full stacks and
> the
> >>> >> >> >> >> example
> >>> >> >> >> >> client - this is still an issue with RC2.
> >>> >> >> >> >>
> >>> >> >> >> >> Dave.
> >>> >> >> >> >>
> >>> >> >> >> >> --
> >>> >> >> >> >> Dave Sowerby MEng MBCS
> >>> >> >> >> >>
> >>> >> >> >> >>
> >>> >> >> >> >>
> >>> >> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
> >>> >> >> >> >> <da...@gmail.com>
> >>> >> >> >> >> wrote:
> >>> >> >> >> >> > Hi All,
> >>> >> >> >> >> >
> >>> >> >> >> >> > I'm getting an Exception whilst attempting to get a
> client
> >>> >> >> >> >> > component
> >>> >> >> >> >> > node using the following code:
> >>> >> >> >> >> >
> >>> >> >> >> >> > node =
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >>> >> >> >> >> > new SCAContribution("test", "target/classes"));
> >>> >> >> >> >> >
> >>> >> >> >> >> > The composite contains a reference to a locally hosted
> web
> >>> >> >> >> >> > service:
> >>> >> >> >> >> >
> >>> >> >> >> >> > <binding.ws
> >>> >> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent
> "/>
> >>> >> >> >> >> >
> >>> >> >> >> >> > When I execute my client I get the following NPE, which
> it
> >>> >> >> >> >> > appears
> >>> >> >> >> >> > to
> >>> >> >> >> >> > be throwing whilst trying to add an operation to the wsdl
> >>> >> >> >> >> > based
> >>> >> >> >> >> > upon
> >>> >> >> >> >> > the interface (I'm using interface.java).
> >>> >> >> >> >> >
> >>> >> >> >> >> > The signature of the interface that causes it to die is:
> >>> >> >> >> >> >
> >>> >> >> >> >> > public void throwException throws WSException();
> >>> >> >> >> >> >
> >>> >> >> >> >> > And the Exception is:
> >>> >> >> >> >> >
> >>> >> >> >> >> > Caused by: java.lang.NullPointerException
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >>> >> >> >> >> >        at
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> >>> >> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >>> >> >> >> >> >        ... 26 more
> >>> >> >> >> >> >
> >>> >> >> >> >> > Does anyone have any ideas what would be causing this
> issue?
> >>> >> >> >> >> >
> >>> >> >> >> >> > Cheers,
> >>> >> >> >> >> >
> >>> >> >> >> >> > Dave.
> >>> >> >> >> >> >
> >>> >> >> >> >> > --
> >>> >> >> >> >> > Dave Sowerby MEng MBCS
> >>> >> >> >> >> >
> >>> >> >> >> >
> >>> >> >> >> >
> >>> >> >> >
> >>> >> >> > Hi Dave
> >>> >> >> >
> >>> >> >> > I've done some preliminary testing by just adding the signature
> >>> >> >> > that
> >>> >> >> > seems
> >>> >> >> > to be causing problems for you to a local test I already have
> set
> >>> >> >> > up
> >>> >> >> > to
> >>> >> >> > run
> >>> >> >> > against 1.3 but it works fine. So I'll  try and run your test
> as
> >>> >> >> > is.
> >>> >> >> > Can
> >>> >> >> > you
> >>> >> >> > tell me what version of Tuscany you were running against when
> you
> >>> >> >> > captured
> >>> >> >> > these stack traces.
> >>> >> >> >
> >>> >> >> > Simon
> >>> >> >> >
> >>> >> >
> >>> >> > Hi Dave
> >>> >> >
> >>> >> > I just ran the sample as provided...
> >>> >> >
> >>> >> > It downloaded the 1.3RC2 tuscany artifacts
> >>> >> > I have to comment out
> >>> >> >         <!--dependency>
> >>> >> >             <groupId>javax.jws</groupId>
> >>> >> >             <artifactId>jsr181</artifactId>
> >>> >> >             <version>1.0</version>
> >>> >> >         </dependency-->
> >>> >> > in ws-webapp/pom/xml as I don't have this in my local repo (I do
> >>> >> > though
> >>> >> > have
> >>> >> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is
> interesting
> >>> >> > as
> >>> >> > the
> >>> >> > wsdlgen uses jaxws under the covers so this may be interesting to
> >>> >> > look
> >>> >> > at
> >>> >> > further
> >>> >> > I ran up the web app in tomcat (and adjusted the reference uri to
> >>> >> > take
> >>> >> > account of the different context root).
> >>> >> > Here's the result.
> >>> >> > -------------------------------------------------------
> >>> >> >  T E S T S
> >>> >> > -------------------------------------------------------
> >>> >> > Running com.example.ws.client.WSServiceTest
> >>> >> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl
> <init>
> >>> >> > INFO: Creating node: ws-client.composite
> >>> >> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
> >>> >> > configureNode
> >>> >> > INFO: Loading contribution:
> >>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
> >>> >> > sca-1.3/ws/ws-client/target/classes/
> >>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
> >>> >> > configureNode
> >>> >> > INFO: Loading composite:
> >>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
> >>> >> > -1.3/ws/ws-client/target/classes/ws-client.composite
> >>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
> start
> >>> >> > INFO: Starting node: ws-client.composite
> >>> >> > sayHello: Hello WS Client!
> >>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 6.281
> >>> >> > sec
> >>> >> >
> >>> >> > Results :
> >>> >> >
> >>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> >>> >> >
> >>> >> > [INFO] [jar:jar]
> >>> >> > [INFO] Building jar:
> >>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
> >>> >> > -client\target\ws-client.jar
> >>> >> > [INFO] [install:install]
> >>> >> > [INFO] Installing
> >>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
> >>> >> > ient\target\ws-client.jar to C:\Documents and
> >>> >> > Settings\slaws\.m2\repository\com\
> >>> >> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
> >>> >> > [INFO]
> >>> >> >
> >>> >> >
> ------------------------------------------------------------------------
> >>> >> > [INFO] BUILD SUCCESSFUL
> >>> >> > [INFO]
> >>> >> >
> >>> >> >
> ------------------------------------------------------------------------
> >>> >> > [INFO] Total time: 23 seconds
> >>> >> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
> >>> >> > [INFO] Final Memory: 17M/47M
> >>> >> > [INFO]
> >>> >> >
> >>> >> >
> ------------------------------------------------------------------------
> >>> >> >
> >>> >> > Does this look like I have done the right think. If so there may
> be
> >>> >> > some
> >>> >> > environment difference between me an you that is causing you
> >>> >> > problems.
> >>> >> >
> >>> >> > Regards
> >>> >> >
> >>> >> > Simon
> >>> >> >
> >>> >
> >>> > I'm on the IBM JDK5.0..
> >>> >
> >>> > java version "1.5.0"
> >>> > Java(TM) 2 Runtime Environment, Standard Edition (build
> >>> > pwi32dev-20070201
> >>> > (SR4))
> >>> >
> >>> > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
> >>> > j9vmwi3223-2007020
> >>> > 1 (JIT enabled)
> >>> > J9VM - 20070131_11312_lHdSMR
> >>> > JIT  - 20070109_1805ifx1_r8
> >>> > GC   - 200701_09)
> >>> > JCL  - 20070131
> >>> >
> >>> > I'll give it a try with a different JVM.
> >>> >
> >>> > When I run with mvn -X this is the test classpath I see.
> >>> >
> >>> > [DEBUG] Test Classpath :
> >>> > [DEBUG]
> >>> >
> >>> >
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
> >>> > [DEBUG]
> >>> >
> >>> >
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> > Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
> >>> > [DEBUG]   C:\Documents and
> >>> >
> >>> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar
> >>> >
> >>> > Simon
> >>> >
> >>> >
> >>> >
> >>
> >>
> >
>
Thanks Dave

Simon

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Ok, I've closed TUSCANY-2512 and created TUSCANY-2514.

Cheers,

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 4:23 PM, Dave Sowerby <da...@gmail.com> wrote:
> Hey Ant,
>
> I concur - this is not a critical blocker for 1.3's release - I'll
> raise a suitable JIRA for this shortly.
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 3:08 PM, ant elder <an...@gmail.com> wrote:
>> I think we should be able to make both of those optional - so the jsr181
>> dependency is only needed when those annotations are being used and the
>> servlet host isn't needed for ws clients. Can we leave that till post 1.3?
>> Would you raise a JIRA for this?
>>
>>    ...ant
>>
>> On Tue, Jul 29, 2008 at 2:02 PM, Dave Sowerby <da...@gmail.com>
>> wrote:
>>>
>>> Thanks Simon, that's proved very useful!
>>>
>>> I've identified the missing dependencies from my pom.xml as:
>>>
>>>                <dependency>
>>>                        <groupId>org.apache.tuscany.sca</groupId>
>>>                        <artifactId>tuscany-host-tomcat</artifactId>
>>>                        <version>${tuscany.version}</version>
>>>                </dependency>
>>>
>>>                <dependency>
>>>                        <groupId>javax.jws</groupId>
>>>                        <artifactId>jsr181-api</artifactId>
>>>                        <version>1.0-MR1</version>
>>>                </dependency>
>>>
>>> Though I do find it interesting that Tuscany itself isn't dependent on
>>> jsr181 - is there any reason for this?
>>>
>>> Another question, which I guess is more of a nice to have more than
>>> anything is with the tuscany-host-* dependency requirement here - I'm
>>> actually running a client, so why is it that I need any of the jetty,
>>> tomcat, etc modules, rather than using something more
>>> appropriate/lightweight for a client?
>>>
>>> Also, neither of these stack traces (especially the NPE) was
>>> particularly easy to identify what was wrong/missing - is at least any
>>> way the exception handling there could be improved?
>>>
>>> Though I am now much happier with the following line:
>>>
>>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.313 sec
>>>
>>> cheers,
>>>
>>> Dave.
>>>
>>> --
>>> Dave Sowerby MEng MBCS
>>>
>>>
>>>
>>> On Tue, Jul 29, 2008 at 12:50 PM, Simon Laws <si...@googlemail.com>
>>> wrote:
>>> >
>>> >
>>> > On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <da...@gmail.com>
>>> > wrote:
>>> >>
>>> >> Hey Simon,
>>> >>
>>> >> This was required for our services with 1.2.1 when not running in a
>>> >> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
>>> >> webapp isn't really required to prove this...
>>> >>
>>> >> That execution looks fine to me, so I'm baffled that it's failing...
>>> >> What JDK are you executing this with?  I've tried both the Sun and IBM
>>> >> 1.5 JDKs, but both result in the same issue - do you have any ideas
>>> >> what else could be causing these failures?
>>> >>
>>> >> Dave.
>>> >>
>>> >> --
>>> >> Dave Sowerby MEng MBCS
>>> >>
>>> >>
>>> >>
>>> >> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws
>>> >> <si...@googlemail.com>
>>> >> wrote:
>>> >> >
>>> >> >
>>> >> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby
>>> >> > <da...@gmail.com>
>>> >> > wrote:
>>> >> >>
>>> >> >> Hey Simon,
>>> >> >>
>>> >> >> This has been the case with 1.3 RC1 and RC2.
>>> >> >>
>>> >> >> Dave.
>>> >> >>
>>> >> >> --
>>> >> >> Dave Sowerby MEng MBCS
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws
>>> >> >> <si...@googlemail.com>
>>> >> >> wrote:
>>> >> >> >
>>> >> >> >
>>> >> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby
>>> >> >> > <da...@gmail.com>
>>> >> >> > wrote:
>>> >> >> >>
>>> >> >> >> Hey Ant,
>>> >> >> >>
>>> >> >> >> We're targetting our next release (due in a matter of weeks) at
>>> >> >> >> 1.3,
>>> >> >> >> so ideally this fix would be included in the 1.3 release.
>>> >> >> >>
>>> >> >> >> What are the generally time scales for the releases of 1.3 and
>>> >> >> >> 1.3.1?
>>> >> >> >>
>>> >> >> >> Cheers,
>>> >> >> >>
>>> >> >> >> Dave.
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> Dave Sowerby MEng MBCS
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
>>> >> >> >> wrote:
>>> >> >> >> > How important is it to you that this gets fixed in the 1.3
>>> >> >> >> > release
>>> >> >> >> > or
>>> >> >> >> > could
>>> >> >> >> > it wait for a later release? There's already been some mention
>>> >> >> >> > of
>>> >> >> >> > having
>>> >> >> >> > a
>>> >> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can
>>> >> >> >> > wait.
>>> >> >> >> >
>>> >> >> >> >    ...ant
>>> >> >> >> >
>>> >> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
>>> >> >> >> > <da...@gmail.com>
>>> >> >> >> > wrote:
>>> >> >> >> >>
>>> >> >> >> >> All,
>>> >> >> >> >>
>>> >> >> >> >> I've created TUSCANY-2512 for this, with full stacks and the
>>> >> >> >> >> example
>>> >> >> >> >> client - this is still an issue with RC2.
>>> >> >> >> >>
>>> >> >> >> >> Dave.
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >> Dave Sowerby MEng MBCS
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
>>> >> >> >> >> <da...@gmail.com>
>>> >> >> >> >> wrote:
>>> >> >> >> >> > Hi All,
>>> >> >> >> >> >
>>> >> >> >> >> > I'm getting an Exception whilst attempting to get a client
>>> >> >> >> >> > component
>>> >> >> >> >> > node using the following code:
>>> >> >> >> >> >
>>> >> >> >> >> > node =
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>>> >> >> >> >> > new SCAContribution("test", "target/classes"));
>>> >> >> >> >> >
>>> >> >> >> >> > The composite contains a reference to a locally hosted web
>>> >> >> >> >> > service:
>>> >> >> >> >> >
>>> >> >> >> >> > <binding.ws
>>> >> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>>> >> >> >> >> >
>>> >> >> >> >> > When I execute my client I get the following NPE, which it
>>> >> >> >> >> > appears
>>> >> >> >> >> > to
>>> >> >> >> >> > be throwing whilst trying to add an operation to the wsdl
>>> >> >> >> >> > based
>>> >> >> >> >> > upon
>>> >> >> >> >> > the interface (I'm using interface.java).
>>> >> >> >> >> >
>>> >> >> >> >> > The signature of the interface that causes it to die is:
>>> >> >> >> >> >
>>> >> >> >> >> > public void throwException throws WSException();
>>> >> >> >> >> >
>>> >> >> >> >> > And the Exception is:
>>> >> >> >> >> >
>>> >> >> >> >> > Caused by: java.lang.NullPointerException
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>>> >> >> >> >> >        at
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> >
>>> >> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>>> >> >> >> >> >        ... 26 more
>>> >> >> >> >> >
>>> >> >> >> >> > Does anyone have any ideas what would be causing this issue?
>>> >> >> >> >> >
>>> >> >> >> >> > Cheers,
>>> >> >> >> >> >
>>> >> >> >> >> > Dave.
>>> >> >> >> >> >
>>> >> >> >> >> > --
>>> >> >> >> >> > Dave Sowerby MEng MBCS
>>> >> >> >> >> >
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >
>>> >> >> > Hi Dave
>>> >> >> >
>>> >> >> > I've done some preliminary testing by just adding the signature
>>> >> >> > that
>>> >> >> > seems
>>> >> >> > to be causing problems for you to a local test I already have set
>>> >> >> > up
>>> >> >> > to
>>> >> >> > run
>>> >> >> > against 1.3 but it works fine. So I'll  try and run your test as
>>> >> >> > is.
>>> >> >> > Can
>>> >> >> > you
>>> >> >> > tell me what version of Tuscany you were running against when you
>>> >> >> > captured
>>> >> >> > these stack traces.
>>> >> >> >
>>> >> >> > Simon
>>> >> >> >
>>> >> >
>>> >> > Hi Dave
>>> >> >
>>> >> > I just ran the sample as provided...
>>> >> >
>>> >> > It downloaded the 1.3RC2 tuscany artifacts
>>> >> > I have to comment out
>>> >> >         <!--dependency>
>>> >> >             <groupId>javax.jws</groupId>
>>> >> >             <artifactId>jsr181</artifactId>
>>> >> >             <version>1.0</version>
>>> >> >         </dependency-->
>>> >> > in ws-webapp/pom/xml as I don't have this in my local repo (I do
>>> >> > though
>>> >> > have
>>> >> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting
>>> >> > as
>>> >> > the
>>> >> > wsdlgen uses jaxws under the covers so this may be interesting to
>>> >> > look
>>> >> > at
>>> >> > further
>>> >> > I ran up the web app in tomcat (and adjusted the reference uri to
>>> >> > take
>>> >> > account of the different context root).
>>> >> > Here's the result.
>>> >> > -------------------------------------------------------
>>> >> >  T E S T S
>>> >> > -------------------------------------------------------
>>> >> > Running com.example.ws.client.WSServiceTest
>>> >> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
>>> >> > INFO: Creating node: ws-client.composite
>>> >> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
>>> >> > configureNode
>>> >> > INFO: Loading contribution:
>>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
>>> >> > sca-1.3/ws/ws-client/target/classes/
>>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
>>> >> > configureNode
>>> >> > INFO: Loading composite:
>>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
>>> >> > -1.3/ws/ws-client/target/classes/ws-client.composite
>>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
>>> >> > INFO: Starting node: ws-client.composite
>>> >> > sayHello: Hello WS Client!
>>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281
>>> >> > sec
>>> >> >
>>> >> > Results :
>>> >> >
>>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>>> >> >
>>> >> > [INFO] [jar:jar]
>>> >> > [INFO] Building jar:
>>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
>>> >> > -client\target\ws-client.jar
>>> >> > [INFO] [install:install]
>>> >> > [INFO] Installing
>>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
>>> >> > ient\target\ws-client.jar to C:\Documents and
>>> >> > Settings\slaws\.m2\repository\com\
>>> >> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
>>> >> > [INFO]
>>> >> >
>>> >> > ------------------------------------------------------------------------
>>> >> > [INFO] BUILD SUCCESSFUL
>>> >> > [INFO]
>>> >> >
>>> >> > ------------------------------------------------------------------------
>>> >> > [INFO] Total time: 23 seconds
>>> >> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
>>> >> > [INFO] Final Memory: 17M/47M
>>> >> > [INFO]
>>> >> >
>>> >> > ------------------------------------------------------------------------
>>> >> >
>>> >> > Does this look like I have done the right think. If so there may be
>>> >> > some
>>> >> > environment difference between me an you that is causing you
>>> >> > problems.
>>> >> >
>>> >> > Regards
>>> >> >
>>> >> > Simon
>>> >> >
>>> >
>>> > I'm on the IBM JDK5.0..
>>> >
>>> > java version "1.5.0"
>>> > Java(TM) 2 Runtime Environment, Standard Edition (build
>>> > pwi32dev-20070201
>>> > (SR4))
>>> >
>>> > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
>>> > j9vmwi3223-2007020
>>> > 1 (JIT enabled)
>>> > J9VM - 20070131_11312_lHdSMR
>>> > JIT  - 20070109_1805ifx1_r8
>>> > GC   - 200701_09)
>>> > JCL  - 20070131
>>> >
>>> > I'll give it a try with a different JVM.
>>> >
>>> > When I run with mvn -X this is the test classpath I see.
>>> >
>>> > [DEBUG] Test Classpath :
>>> > [DEBUG]
>>> >
>>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
>>> > [DEBUG]
>>> >
>>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
>>> > [DEBUG]   C:\Documents and
>>> > Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
>>> > [DEBUG]   C:\Documents and
>>> >
>>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar
>>> >
>>> > Simon
>>> >
>>> >
>>> >
>>
>>
>

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Hey Ant,

I concur - this is not a critical blocker for 1.3's release - I'll
raise a suitable JIRA for this shortly.

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 3:08 PM, ant elder <an...@gmail.com> wrote:
> I think we should be able to make both of those optional - so the jsr181
> dependency is only needed when those annotations are being used and the
> servlet host isn't needed for ws clients. Can we leave that till post 1.3?
> Would you raise a JIRA for this?
>
>    ...ant
>
> On Tue, Jul 29, 2008 at 2:02 PM, Dave Sowerby <da...@gmail.com>
> wrote:
>>
>> Thanks Simon, that's proved very useful!
>>
>> I've identified the missing dependencies from my pom.xml as:
>>
>>                <dependency>
>>                        <groupId>org.apache.tuscany.sca</groupId>
>>                        <artifactId>tuscany-host-tomcat</artifactId>
>>                        <version>${tuscany.version}</version>
>>                </dependency>
>>
>>                <dependency>
>>                        <groupId>javax.jws</groupId>
>>                        <artifactId>jsr181-api</artifactId>
>>                        <version>1.0-MR1</version>
>>                </dependency>
>>
>> Though I do find it interesting that Tuscany itself isn't dependent on
>> jsr181 - is there any reason for this?
>>
>> Another question, which I guess is more of a nice to have more than
>> anything is with the tuscany-host-* dependency requirement here - I'm
>> actually running a client, so why is it that I need any of the jetty,
>> tomcat, etc modules, rather than using something more
>> appropriate/lightweight for a client?
>>
>> Also, neither of these stack traces (especially the NPE) was
>> particularly easy to identify what was wrong/missing - is at least any
>> way the exception handling there could be improved?
>>
>> Though I am now much happier with the following line:
>>
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.313 sec
>>
>> cheers,
>>
>> Dave.
>>
>> --
>> Dave Sowerby MEng MBCS
>>
>>
>>
>> On Tue, Jul 29, 2008 at 12:50 PM, Simon Laws <si...@googlemail.com>
>> wrote:
>> >
>> >
>> > On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <da...@gmail.com>
>> > wrote:
>> >>
>> >> Hey Simon,
>> >>
>> >> This was required for our services with 1.2.1 when not running in a
>> >> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
>> >> webapp isn't really required to prove this...
>> >>
>> >> That execution looks fine to me, so I'm baffled that it's failing...
>> >> What JDK are you executing this with?  I've tried both the Sun and IBM
>> >> 1.5 JDKs, but both result in the same issue - do you have any ideas
>> >> what else could be causing these failures?
>> >>
>> >> Dave.
>> >>
>> >> --
>> >> Dave Sowerby MEng MBCS
>> >>
>> >>
>> >>
>> >> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws
>> >> <si...@googlemail.com>
>> >> wrote:
>> >> >
>> >> >
>> >> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby
>> >> > <da...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hey Simon,
>> >> >>
>> >> >> This has been the case with 1.3 RC1 and RC2.
>> >> >>
>> >> >> Dave.
>> >> >>
>> >> >> --
>> >> >> Dave Sowerby MEng MBCS
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws
>> >> >> <si...@googlemail.com>
>> >> >> wrote:
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby
>> >> >> > <da...@gmail.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> Hey Ant,
>> >> >> >>
>> >> >> >> We're targetting our next release (due in a matter of weeks) at
>> >> >> >> 1.3,
>> >> >> >> so ideally this fix would be included in the 1.3 release.
>> >> >> >>
>> >> >> >> What are the generally time scales for the releases of 1.3 and
>> >> >> >> 1.3.1?
>> >> >> >>
>> >> >> >> Cheers,
>> >> >> >>
>> >> >> >> Dave.
>> >> >> >>
>> >> >> >> --
>> >> >> >> Dave Sowerby MEng MBCS
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
>> >> >> >> wrote:
>> >> >> >> > How important is it to you that this gets fixed in the 1.3
>> >> >> >> > release
>> >> >> >> > or
>> >> >> >> > could
>> >> >> >> > it wait for a later release? There's already been some mention
>> >> >> >> > of
>> >> >> >> > having
>> >> >> >> > a
>> >> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can
>> >> >> >> > wait.
>> >> >> >> >
>> >> >> >> >    ...ant
>> >> >> >> >
>> >> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
>> >> >> >> > <da...@gmail.com>
>> >> >> >> > wrote:
>> >> >> >> >>
>> >> >> >> >> All,
>> >> >> >> >>
>> >> >> >> >> I've created TUSCANY-2512 for this, with full stacks and the
>> >> >> >> >> example
>> >> >> >> >> client - this is still an issue with RC2.
>> >> >> >> >>
>> >> >> >> >> Dave.
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Dave Sowerby MEng MBCS
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
>> >> >> >> >> <da...@gmail.com>
>> >> >> >> >> wrote:
>> >> >> >> >> > Hi All,
>> >> >> >> >> >
>> >> >> >> >> > I'm getting an Exception whilst attempting to get a client
>> >> >> >> >> > component
>> >> >> >> >> > node using the following code:
>> >> >> >> >> >
>> >> >> >> >> > node =
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>> >> >> >> >> > new SCAContribution("test", "target/classes"));
>> >> >> >> >> >
>> >> >> >> >> > The composite contains a reference to a locally hosted web
>> >> >> >> >> > service:
>> >> >> >> >> >
>> >> >> >> >> > <binding.ws
>> >> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>> >> >> >> >> >
>> >> >> >> >> > When I execute my client I get the following NPE, which it
>> >> >> >> >> > appears
>> >> >> >> >> > to
>> >> >> >> >> > be throwing whilst trying to add an operation to the wsdl
>> >> >> >> >> > based
>> >> >> >> >> > upon
>> >> >> >> >> > the interface (I'm using interface.java).
>> >> >> >> >> >
>> >> >> >> >> > The signature of the interface that causes it to die is:
>> >> >> >> >> >
>> >> >> >> >> > public void throwException throws WSException();
>> >> >> >> >> >
>> >> >> >> >> > And the Exception is:
>> >> >> >> >> >
>> >> >> >> >> > Caused by: java.lang.NullPointerException
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>> >> >> >> >> >        at
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>> >> >> >> >> >        ... 26 more
>> >> >> >> >> >
>> >> >> >> >> > Does anyone have any ideas what would be causing this issue?
>> >> >> >> >> >
>> >> >> >> >> > Cheers,
>> >> >> >> >> >
>> >> >> >> >> > Dave.
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> > Dave Sowerby MEng MBCS
>> >> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >
>> >> >> > Hi Dave
>> >> >> >
>> >> >> > I've done some preliminary testing by just adding the signature
>> >> >> > that
>> >> >> > seems
>> >> >> > to be causing problems for you to a local test I already have set
>> >> >> > up
>> >> >> > to
>> >> >> > run
>> >> >> > against 1.3 but it works fine. So I'll  try and run your test as
>> >> >> > is.
>> >> >> > Can
>> >> >> > you
>> >> >> > tell me what version of Tuscany you were running against when you
>> >> >> > captured
>> >> >> > these stack traces.
>> >> >> >
>> >> >> > Simon
>> >> >> >
>> >> >
>> >> > Hi Dave
>> >> >
>> >> > I just ran the sample as provided...
>> >> >
>> >> > It downloaded the 1.3RC2 tuscany artifacts
>> >> > I have to comment out
>> >> >         <!--dependency>
>> >> >             <groupId>javax.jws</groupId>
>> >> >             <artifactId>jsr181</artifactId>
>> >> >             <version>1.0</version>
>> >> >         </dependency-->
>> >> > in ws-webapp/pom/xml as I don't have this in my local repo (I do
>> >> > though
>> >> > have
>> >> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting
>> >> > as
>> >> > the
>> >> > wsdlgen uses jaxws under the covers so this may be interesting to
>> >> > look
>> >> > at
>> >> > further
>> >> > I ran up the web app in tomcat (and adjusted the reference uri to
>> >> > take
>> >> > account of the different context root).
>> >> > Here's the result.
>> >> > -------------------------------------------------------
>> >> >  T E S T S
>> >> > -------------------------------------------------------
>> >> > Running com.example.ws.client.WSServiceTest
>> >> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
>> >> > INFO: Creating node: ws-client.composite
>> >> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
>> >> > configureNode
>> >> > INFO: Loading contribution:
>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
>> >> > sca-1.3/ws/ws-client/target/classes/
>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
>> >> > configureNode
>> >> > INFO: Loading composite:
>> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
>> >> > -1.3/ws/ws-client/target/classes/ws-client.composite
>> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
>> >> > INFO: Starting node: ws-client.composite
>> >> > sayHello: Hello WS Client!
>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281
>> >> > sec
>> >> >
>> >> > Results :
>> >> >
>> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>> >> >
>> >> > [INFO] [jar:jar]
>> >> > [INFO] Building jar:
>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
>> >> > -client\target\ws-client.jar
>> >> > [INFO] [install:install]
>> >> > [INFO] Installing
>> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
>> >> > ient\target\ws-client.jar to C:\Documents and
>> >> > Settings\slaws\.m2\repository\com\
>> >> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
>> >> > [INFO]
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] BUILD SUCCESSFUL
>> >> > [INFO]
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> > [INFO] Total time: 23 seconds
>> >> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
>> >> > [INFO] Final Memory: 17M/47M
>> >> > [INFO]
>> >> >
>> >> > ------------------------------------------------------------------------
>> >> >
>> >> > Does this look like I have done the right think. If so there may be
>> >> > some
>> >> > environment difference between me an you that is causing you
>> >> > problems.
>> >> >
>> >> > Regards
>> >> >
>> >> > Simon
>> >> >
>> >
>> > I'm on the IBM JDK5.0..
>> >
>> > java version "1.5.0"
>> > Java(TM) 2 Runtime Environment, Standard Edition (build
>> > pwi32dev-20070201
>> > (SR4))
>> >
>> > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
>> > j9vmwi3223-2007020
>> > 1 (JIT enabled)
>> > J9VM - 20070131_11312_lHdSMR
>> > JIT  - 20070109_1805ifx1_r8
>> > GC   - 200701_09)
>> > JCL  - 20070131
>> >
>> > I'll give it a try with a different JVM.
>> >
>> > When I run with mvn -X this is the test classpath I see.
>> >
>> > [DEBUG] Test Classpath :
>> > [DEBUG]
>> >
>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
>> > [DEBUG]
>> >
>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
>> > [DEBUG]   C:\Documents and
>> > Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
>> > [DEBUG]   C:\Documents and
>> >
>> > Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar
>> >
>> > Simon
>> >
>> >
>> >
>
>

Re: Exception during Client node lookup.

Posted by ant elder <an...@gmail.com>.
I think we should be able to make both of those optional - so the jsr181
dependency is only needed when those annotations are being used and the
servlet host isn't needed for ws clients. Can we leave that till post 1.3?
Would you raise a JIRA for this?

   ...ant

On Tue, Jul 29, 2008 at 2:02 PM, Dave Sowerby <da...@gmail.com>wrote:

> Thanks Simon, that's proved very useful!
>
> I've identified the missing dependencies from my pom.xml as:
>
>                <dependency>
>                        <groupId>org.apache.tuscany.sca</groupId>
>                        <artifactId>tuscany-host-tomcat</artifactId>
>                        <version>${tuscany.version}</version>
>                </dependency>
>
>                <dependency>
>                        <groupId>javax.jws</groupId>
>                         <artifactId>jsr181-api</artifactId>
>                        <version>1.0-MR1</version>
>                </dependency>
>
> Though I do find it interesting that Tuscany itself isn't dependent on
> jsr181 - is there any reason for this?
>
> Another question, which I guess is more of a nice to have more than
> anything is with the tuscany-host-* dependency requirement here - I'm
> actually running a client, so why is it that I need any of the jetty,
> tomcat, etc modules, rather than using something more
> appropriate/lightweight for a client?
>
> Also, neither of these stack traces (especially the NPE) was
> particularly easy to identify what was wrong/missing - is at least any
> way the exception handling there could be improved?
>
> Though I am now much happier with the following line:
>
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.313 sec
>
> cheers,
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 12:50 PM, Simon Laws <si...@googlemail.com>
> wrote:
> >
> >
> > On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <da...@gmail.com>
> > wrote:
> >>
> >> Hey Simon,
> >>
> >> This was required for our services with 1.2.1 when not running in a
> >> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
> >> webapp isn't really required to prove this...
> >>
> >> That execution looks fine to me, so I'm baffled that it's failing...
> >> What JDK are you executing this with?  I've tried both the Sun and IBM
> >> 1.5 JDKs, but both result in the same issue - do you have any ideas
> >> what else could be causing these failures?
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws <simonslaws@googlemail.com
> >
> >> wrote:
> >> >
> >> >
> >> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <
> dave.sowerby@gmail.com>
> >> > wrote:
> >> >>
> >> >> Hey Simon,
> >> >>
> >> >> This has been the case with 1.3 RC1 and RC2.
> >> >>
> >> >> Dave.
> >> >>
> >> >> --
> >> >> Dave Sowerby MEng MBCS
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws
> >> >> <si...@googlemail.com>
> >> >> wrote:
> >> >> >
> >> >> >
> >> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby
> >> >> > <da...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> Hey Ant,
> >> >> >>
> >> >> >> We're targetting our next release (due in a matter of weeks) at
> 1.3,
> >> >> >> so ideally this fix would be included in the 1.3 release.
> >> >> >>
> >> >> >> What are the generally time scales for the releases of 1.3 and
> >> >> >> 1.3.1?
> >> >> >>
> >> >> >> Cheers,
> >> >> >>
> >> >> >> Dave.
> >> >> >>
> >> >> >> --
> >> >> >> Dave Sowerby MEng MBCS
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
> >> >> >> wrote:
> >> >> >> > How important is it to you that this gets fixed in the 1.3
> release
> >> >> >> > or
> >> >> >> > could
> >> >> >> > it wait for a later release? There's already been some mention
> of
> >> >> >> > having
> >> >> >> > a
> >> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can
> wait.
> >> >> >> >
> >> >> >> >    ...ant
> >> >> >> >
> >> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
> >> >> >> > <da...@gmail.com>
> >> >> >> > wrote:
> >> >> >> >>
> >> >> >> >> All,
> >> >> >> >>
> >> >> >> >> I've created TUSCANY-2512 for this, with full stacks and the
> >> >> >> >> example
> >> >> >> >> client - this is still an issue with RC2.
> >> >> >> >>
> >> >> >> >> Dave.
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Dave Sowerby MEng MBCS
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
> >> >> >> >> <da...@gmail.com>
> >> >> >> >> wrote:
> >> >> >> >> > Hi All,
> >> >> >> >> >
> >> >> >> >> > I'm getting an Exception whilst attempting to get a client
> >> >> >> >> > component
> >> >> >> >> > node using the following code:
> >> >> >> >> >
> >> >> >> >> > node =
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> >> >> >> > new SCAContribution("test", "target/classes"));
> >> >> >> >> >
> >> >> >> >> > The composite contains a reference to a locally hosted web
> >> >> >> >> > service:
> >> >> >> >> >
> >> >> >> >> > <binding.ws
> >> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >> >> >> >> >
> >> >> >> >> > When I execute my client I get the following NPE, which it
> >> >> >> >> > appears
> >> >> >> >> > to
> >> >> >> >> > be throwing whilst trying to add an operation to the wsdl
> based
> >> >> >> >> > upon
> >> >> >> >> > the interface (I'm using interface.java).
> >> >> >> >> >
> >> >> >> >> > The signature of the interface that causes it to die is:
> >> >> >> >> >
> >> >> >> >> > public void throwException throws WSException();
> >> >> >> >> >
> >> >> >> >> > And the Exception is:
> >> >> >> >> >
> >> >> >> >> > Caused by: java.lang.NullPointerException
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >> >> >> >        at
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >> >> >> >        ... 26 more
> >> >> >> >> >
> >> >> >> >> > Does anyone have any ideas what would be causing this issue?
> >> >> >> >> >
> >> >> >> >> > Cheers,
> >> >> >> >> >
> >> >> >> >> > Dave.
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > Dave Sowerby MEng MBCS
> >> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >
> >> >> > Hi Dave
> >> >> >
> >> >> > I've done some preliminary testing by just adding the signature
> that
> >> >> > seems
> >> >> > to be causing problems for you to a local test I already have set
> up
> >> >> > to
> >> >> > run
> >> >> > against 1.3 but it works fine. So I'll  try and run your test as
> is.
> >> >> > Can
> >> >> > you
> >> >> > tell me what version of Tuscany you were running against when you
> >> >> > captured
> >> >> > these stack traces.
> >> >> >
> >> >> > Simon
> >> >> >
> >> >
> >> > Hi Dave
> >> >
> >> > I just ran the sample as provided...
> >> >
> >> > It downloaded the 1.3RC2 tuscany artifacts
> >> > I have to comment out
> >> >         <!--dependency>
> >> >             <groupId>javax.jws</groupId>
> >> >             <artifactId>jsr181</artifactId>
> >> >             <version>1.0</version>
> >> >         </dependency-->
> >> > in ws-webapp/pom/xml as I don't have this in my local repo (I do
> though
> >> > have
> >> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting
> as
> >> > the
> >> > wsdlgen uses jaxws under the covers so this may be interesting to look
> >> > at
> >> > further
> >> > I ran up the web app in tomcat (and adjusted the reference uri to take
> >> > account of the different context root).
> >> > Here's the result.
> >> > -------------------------------------------------------
> >> >  T E S T S
> >> > -------------------------------------------------------
> >> > Running com.example.ws.client.WSServiceTest
> >> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> >> > INFO: Creating node: ws-client.composite
> >> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
> >> > configureNode
> >> > INFO: Loading contribution:
> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
> >> > sca-1.3/ws/ws-client/target/classes/
> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
> >> > configureNode
> >> > INFO: Loading composite:
> >> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
> >> > -1.3/ws/ws-client/target/classes/ws-client.composite
> >> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
> >> > INFO: Starting node: ws-client.composite
> >> > sayHello: Hello WS Client!
> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281
> >> > sec
> >> >
> >> > Results :
> >> >
> >> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> >> >
> >> > [INFO] [jar:jar]
> >> > [INFO] Building jar:
> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
> >> > -client\target\ws-client.jar
> >> > [INFO] [install:install]
> >> > [INFO] Installing
> >> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
> >> > ient\target\ws-client.jar to C:\Documents and
> >> > Settings\slaws\.m2\repository\com\
> >> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] BUILD SUCCESSFUL
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> > [INFO] Total time: 23 seconds
> >> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
> >> > [INFO] Final Memory: 17M/47M
> >> > [INFO]
> >> >
> ------------------------------------------------------------------------
> >> >
> >> > Does this look like I have done the right think. If so there may be
> some
> >> > environment difference between me an you that is causing you problems.
> >> >
> >> > Regards
> >> >
> >> > Simon
> >> >
> >
> > I'm on the IBM JDK5.0..
> >
> > java version "1.5.0"
> > Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070201
> > (SR4))
> >
> > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
> > j9vmwi3223-2007020
> > 1 (JIT enabled)
> > J9VM - 20070131_11312_lHdSMR
> > JIT  - 20070109_1805ifx1_r8
> > GC   - 200701_09)
> > JCL  - 20070131
> >
> > I'll give it a try with a different JVM.
> >
> > When I run with mvn -X this is the test classpath I see.
> >
> > [DEBUG] Test Classpath :
> > [DEBUG]
> >
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
> > [DEBUG]
> >
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
> > [DEBUG]   C:\Documents and
> > Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
> > [DEBUG]   C:\Documents and
> >
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar
> >
> > Simon
> >
> >
> >
>

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Thanks Simon, that's proved very useful!

I've identified the missing dependencies from my pom.xml as:

		<dependency>
			<groupId>org.apache.tuscany.sca</groupId>
			<artifactId>tuscany-host-tomcat</artifactId>
			<version>${tuscany.version}</version>
		</dependency>

		<dependency>
			<groupId>javax.jws</groupId>
			<artifactId>jsr181-api</artifactId>
			<version>1.0-MR1</version>
		</dependency>

Though I do find it interesting that Tuscany itself isn't dependent on
jsr181 - is there any reason for this?

Another question, which I guess is more of a nice to have more than
anything is with the tuscany-host-* dependency requirement here - I'm
actually running a client, so why is it that I need any of the jetty,
tomcat, etc modules, rather than using something more
appropriate/lightweight for a client?

Also, neither of these stack traces (especially the NPE) was
particularly easy to identify what was wrong/missing - is at least any
way the exception handling there could be improved?

Though I am now much happier with the following line:

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.313 sec

cheers,

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 12:50 PM, Simon Laws <si...@googlemail.com> wrote:
>
>
> On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <da...@gmail.com>
> wrote:
>>
>> Hey Simon,
>>
>> This was required for our services with 1.2.1 when not running in a
>> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
>> webapp isn't really required to prove this...
>>
>> That execution looks fine to me, so I'm baffled that it's failing...
>> What JDK are you executing this with?  I've tried both the Sun and IBM
>> 1.5 JDKs, but both result in the same issue - do you have any ideas
>> what else could be causing these failures?
>>
>> Dave.
>>
>> --
>> Dave Sowerby MEng MBCS
>>
>>
>>
>> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws <si...@googlemail.com>
>> wrote:
>> >
>> >
>> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <da...@gmail.com>
>> > wrote:
>> >>
>> >> Hey Simon,
>> >>
>> >> This has been the case with 1.3 RC1 and RC2.
>> >>
>> >> Dave.
>> >>
>> >> --
>> >> Dave Sowerby MEng MBCS
>> >>
>> >>
>> >>
>> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws
>> >> <si...@googlemail.com>
>> >> wrote:
>> >> >
>> >> >
>> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby
>> >> > <da...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Hey Ant,
>> >> >>
>> >> >> We're targetting our next release (due in a matter of weeks) at 1.3,
>> >> >> so ideally this fix would be included in the 1.3 release.
>> >> >>
>> >> >> What are the generally time scales for the releases of 1.3 and
>> >> >> 1.3.1?
>> >> >>
>> >> >> Cheers,
>> >> >>
>> >> >> Dave.
>> >> >>
>> >> >> --
>> >> >> Dave Sowerby MEng MBCS
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
>> >> >> wrote:
>> >> >> > How important is it to you that this gets fixed in the 1.3 release
>> >> >> > or
>> >> >> > could
>> >> >> > it wait for a later release? There's already been some mention of
>> >> >> > having
>> >> >> > a
>> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
>> >> >> >
>> >> >> >    ...ant
>> >> >> >
>> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
>> >> >> > <da...@gmail.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> All,
>> >> >> >>
>> >> >> >> I've created TUSCANY-2512 for this, with full stacks and the
>> >> >> >> example
>> >> >> >> client - this is still an issue with RC2.
>> >> >> >>
>> >> >> >> Dave.
>> >> >> >>
>> >> >> >> --
>> >> >> >> Dave Sowerby MEng MBCS
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
>> >> >> >> <da...@gmail.com>
>> >> >> >> wrote:
>> >> >> >> > Hi All,
>> >> >> >> >
>> >> >> >> > I'm getting an Exception whilst attempting to get a client
>> >> >> >> > component
>> >> >> >> > node using the following code:
>> >> >> >> >
>> >> >> >> > node =
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>> >> >> >> > new SCAContribution("test", "target/classes"));
>> >> >> >> >
>> >> >> >> > The composite contains a reference to a locally hosted web
>> >> >> >> > service:
>> >> >> >> >
>> >> >> >> > <binding.ws
>> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>> >> >> >> >
>> >> >> >> > When I execute my client I get the following NPE, which it
>> >> >> >> > appears
>> >> >> >> > to
>> >> >> >> > be throwing whilst trying to add an operation to the wsdl based
>> >> >> >> > upon
>> >> >> >> > the interface (I'm using interface.java).
>> >> >> >> >
>> >> >> >> > The signature of the interface that causes it to die is:
>> >> >> >> >
>> >> >> >> > public void throwException throws WSException();
>> >> >> >> >
>> >> >> >> > And the Exception is:
>> >> >> >> >
>> >> >> >> > Caused by: java.lang.NullPointerException
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>> >> >> >> >        at
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>> >> >> >> >        ... 26 more
>> >> >> >> >
>> >> >> >> > Does anyone have any ideas what would be causing this issue?
>> >> >> >> >
>> >> >> >> > Cheers,
>> >> >> >> >
>> >> >> >> > Dave.
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Dave Sowerby MEng MBCS
>> >> >> >> >
>> >> >> >
>> >> >> >
>> >> >
>> >> > Hi Dave
>> >> >
>> >> > I've done some preliminary testing by just adding the signature that
>> >> > seems
>> >> > to be causing problems for you to a local test I already have set up
>> >> > to
>> >> > run
>> >> > against 1.3 but it works fine. So I'll  try and run your test as is.
>> >> > Can
>> >> > you
>> >> > tell me what version of Tuscany you were running against when you
>> >> > captured
>> >> > these stack traces.
>> >> >
>> >> > Simon
>> >> >
>> >
>> > Hi Dave
>> >
>> > I just ran the sample as provided...
>> >
>> > It downloaded the 1.3RC2 tuscany artifacts
>> > I have to comment out
>> >         <!--dependency>
>> >             <groupId>javax.jws</groupId>
>> >             <artifactId>jsr181</artifactId>
>> >             <version>1.0</version>
>> >         </dependency-->
>> > in ws-webapp/pom/xml as I don't have this in my local repo (I do though
>> > have
>> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting as
>> > the
>> > wsdlgen uses jaxws under the covers so this may be interesting to look
>> > at
>> > further
>> > I ran up the web app in tomcat (and adjusted the reference uri to take
>> > account of the different context root).
>> > Here's the result.
>> > -------------------------------------------------------
>> >  T E S T S
>> > -------------------------------------------------------
>> > Running com.example.ws.client.WSServiceTest
>> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
>> > INFO: Creating node: ws-client.composite
>> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
>> > configureNode
>> > INFO: Loading contribution:
>> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
>> > sca-1.3/ws/ws-client/target/classes/
>> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
>> > configureNode
>> > INFO: Loading composite:
>> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
>> > -1.3/ws/ws-client/target/classes/ws-client.composite
>> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
>> > INFO: Starting node: ws-client.composite
>> > sayHello: Hello WS Client!
>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281
>> > sec
>> >
>> > Results :
>> >
>> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>> >
>> > [INFO] [jar:jar]
>> > [INFO] Building jar:
>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
>> > -client\target\ws-client.jar
>> > [INFO] [install:install]
>> > [INFO] Installing
>> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
>> > ient\target\ws-client.jar to C:\Documents and
>> > Settings\slaws\.m2\repository\com\
>> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] BUILD SUCCESSFUL
>> > [INFO]
>> > ------------------------------------------------------------------------
>> > [INFO] Total time: 23 seconds
>> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
>> > [INFO] Final Memory: 17M/47M
>> > [INFO]
>> > ------------------------------------------------------------------------
>> >
>> > Does this look like I have done the right think. If so there may be some
>> > environment difference between me an you that is causing you problems.
>> >
>> > Regards
>> >
>> > Simon
>> >
>
> I'm on the IBM JDK5.0..
>
> java version "1.5.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070201
> (SR4))
>
> IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
> j9vmwi3223-2007020
> 1 (JIT enabled)
> J9VM - 20070131_11312_lHdSMR
> JIT  - 20070109_1805ifx1_r8
> GC   - 200701_09)
> JCL  - 20070131
>
> I'll give it a try with a different JVM.
>
> When I run with mvn -X this is the test classpath I see.
>
> [DEBUG] Test Classpath :
> [DEBUG]
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
> [DEBUG]
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
> [DEBUG]   C:\Documents and
> Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar
>
> Simon
>
>
>

Re: Exception during Client node lookup.

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jul 29, 2008 at 12:27 PM, Dave Sowerby <da...@gmail.com>wrote:

> Hey Simon,
>
> This was required for our services with 1.2.1 when not running in a
> 1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
> webapp isn't really required to prove this...
>
> That execution looks fine to me, so I'm baffled that it's failing...
> What JDK are you executing this with?  I've tried both the Sun and IBM
> 1.5 JDKs, but both result in the same issue - do you have any ideas
> what else could be causing these failures?
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws <si...@googlemail.com>
> wrote:
> >
> >
> > On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <da...@gmail.com>
> > wrote:
> >>
> >> Hey Simon,
> >>
> >> This has been the case with 1.3 RC1 and RC2.
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws <simonslaws@googlemail.com
> >
> >> wrote:
> >> >
> >> >
> >> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <
> dave.sowerby@gmail.com>
> >> > wrote:
> >> >>
> >> >> Hey Ant,
> >> >>
> >> >> We're targetting our next release (due in a matter of weeks) at 1.3,
> >> >> so ideally this fix would be included in the 1.3 release.
> >> >>
> >> >> What are the generally time scales for the releases of 1.3 and 1.3.1?
> >> >>
> >> >> Cheers,
> >> >>
> >> >> Dave.
> >> >>
> >> >> --
> >> >> Dave Sowerby MEng MBCS
> >> >>
> >> >>
> >> >>
> >> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
> >> >> wrote:
> >> >> > How important is it to you that this gets fixed in the 1.3 release
> or
> >> >> > could
> >> >> > it wait for a later release? There's already been some mention of
> >> >> > having
> >> >> > a
> >> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
> >> >> >
> >> >> >    ...ant
> >> >> >
> >> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
> >> >> > <da...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> All,
> >> >> >>
> >> >> >> I've created TUSCANY-2512 for this, with full stacks and the
> example
> >> >> >> client - this is still an issue with RC2.
> >> >> >>
> >> >> >> Dave.
> >> >> >>
> >> >> >> --
> >> >> >> Dave Sowerby MEng MBCS
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
> >> >> >> <da...@gmail.com>
> >> >> >> wrote:
> >> >> >> > Hi All,
> >> >> >> >
> >> >> >> > I'm getting an Exception whilst attempting to get a client
> >> >> >> > component
> >> >> >> > node using the following code:
> >> >> >> >
> >> >> >> > node =
> >> >> >> >
> >> >> >> >
> >> >> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> >> >> > new SCAContribution("test", "target/classes"));
> >> >> >> >
> >> >> >> > The composite contains a reference to a locally hosted web
> >> >> >> > service:
> >> >> >> >
> >> >> >> > <binding.ws
> >> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >> >> >> >
> >> >> >> > When I execute my client I get the following NPE, which it
> appears
> >> >> >> > to
> >> >> >> > be throwing whilst trying to add an operation to the wsdl based
> >> >> >> > upon
> >> >> >> > the interface (I'm using interface.java).
> >> >> >> >
> >> >> >> > The signature of the interface that causes it to die is:
> >> >> >> >
> >> >> >> > public void throwException throws WSException();
> >> >> >> >
> >> >> >> > And the Exception is:
> >> >> >> >
> >> >> >> > Caused by: java.lang.NullPointerException
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >> >> >        at
> >> >> >> >
> >> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >> >> >        ... 26 more
> >> >> >> >
> >> >> >> > Does anyone have any ideas what would be causing this issue?
> >> >> >> >
> >> >> >> > Cheers,
> >> >> >> >
> >> >> >> > Dave.
> >> >> >> >
> >> >> >> > --
> >> >> >> > Dave Sowerby MEng MBCS
> >> >> >> >
> >> >> >
> >> >> >
> >> >
> >> > Hi Dave
> >> >
> >> > I've done some preliminary testing by just adding the signature that
> >> > seems
> >> > to be causing problems for you to a local test I already have set up
> to
> >> > run
> >> > against 1.3 but it works fine. So I'll  try and run your test as is.
> Can
> >> > you
> >> > tell me what version of Tuscany you were running against when you
> >> > captured
> >> > these stack traces.
> >> >
> >> > Simon
> >> >
> >
> > Hi Dave
> >
> > I just ran the sample as provided...
> >
> > It downloaded the 1.3RC2 tuscany artifacts
> > I have to comment out
> >         <!--dependency>
> >             <groupId>javax.jws</groupId>
> >             <artifactId>jsr181</artifactId>
> >             <version>1.0</version>
> >         </dependency-->
> > in ws-webapp/pom/xml as I don't have this in my local repo (I do though
> have
> > jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting as
> the
> > wsdlgen uses jaxws under the covers so this may be interesting to look at
> > further
> > I ran up the web app in tomcat (and adjusted the reference uri to take
> > account of the different context root).
> > Here's the result.
> > -------------------------------------------------------
> >  T E S T S
> > -------------------------------------------------------
> > Running com.example.ws.client.WSServiceTest
> > 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> > INFO: Creating node: ws-client.composite
> > 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl
> configureNode
> > INFO: Loading contribution:
> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
> > sca-1.3/ws/ws-client/target/classes/
> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl
> configureNode
> > INFO: Loading composite:
> > file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
> > -1.3/ws/ws-client/target/classes/ws-client.composite
> > 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
> > INFO: Starting node: ws-client.composite
> > sayHello: Hello WS Client!
> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281 sec
> >
> > Results :
> >
> > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
> > -client\target\ws-client.jar
> > [INFO] [install:install]
> > [INFO] Installing
> > C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
> > ient\target\ws-client.jar to C:\Documents and
> > Settings\slaws\.m2\repository\com\
> > example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 23 seconds
> > [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
> > [INFO] Final Memory: 17M/47M
> > [INFO]
> > ------------------------------------------------------------------------
> >
> > Does this look like I have done the right think. If so there may be some
> > environment difference between me an you that is causing you problems.
> >
> > Regards
> >
> > Simon
> >
>

I'm on the IBM JDK5.0..

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32dev-20070201
(SR4))

IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32
j9vmwi3223-2007020
1 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT  - 20070109_1805ifx1_r8
GC   - 200701_09)
JCL  - 20070131

I'll give it a try with a different JVM.

When I run with mvn -X this is the test classpath I see.

[DEBUG] Test Classpath :
[DEBUG]
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\classes
[DEBUG]
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-client\target\test-classes
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml-ws\1.3\tuscany-policy-xml-ws-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-xml\1.3\tuscany-contribution-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\wsdl4j\wsdl4j\1.6.2\wsdl4j-1.6.2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl-xml\1.3\tuscany-interface-wsdl-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd\1.3\tuscany-xsd-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-monitor\1.3\tuscany-monitor-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-embedded\1.3\tuscany-host-embedded-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-node\1.3\tuscany-implementation-node-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-impl\1.3\tuscany-node2-impl-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-databinding\1.3\tuscany-core-databinding-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\rampart\rampart-trust\1.3\rampart-trust-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-api\1.2.5\axiom-api-1.2.5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep-2.1_3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-xml\1.3\tuscany-policy-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-activation_1.1_spec\1.0-M1\geronimo-activation_1.1_spec-1.0-M1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\opensaml\opensaml\1.1\opensaml-1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\logkit\logkit\1.0.1\logkit-1.0.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core\1.3\tuscany-core-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\annogen\annogen\0.1.0\annogen-0.1.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb\1.3\axis2-adb-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-mtompolicy\1.3\axis2-mtompolicy-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb-axiom\1.3\tuscany-databinding-jaxb-axiom-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tomcat\catalina\6.0.14\catalina-6.0.14.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-java2wsdl\1.3\axis2-java2wsdl-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-nio\4.0-alpha5\httpcore-nio-4.0-alpha5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\rampart\rampart-core\1.3\rampart-core-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-commonj_1.1_spec\1.0\geronimo-commonj_1.1_spec-1.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\backport-util-concurrent\backport-util-concurrent\3.0\backport-util-concurrent-3.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-axis2\1.3\tuscany-binding-ws-axis2-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\xml\ws\jaxws-api\2.1\jaxws-api-2.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\com\sun\xml\bind\jaxb-impl\2.1.7\jaxb-impl-2.1.7.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java\1.3\tuscany-interface-java-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy\1.3\tuscany-policy-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xsd\1.3\tuscany-assembly-xsd-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\rampart\rampart-policy\1.3\rampart-policy-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore-niossl\4.0-alpha5\httpcore-niossl-4.0-alpha5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tomcat\annotations-api\6.0.14\annotations-api-6.0.14.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-java\1.3\tuscany-contribution-java-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\jvnet\jaxb\reflection\jaxb2-reflection\2.1.4\jaxb2-reflection-2.1.4.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security\1.3\tuscany-policy-security-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions-xml\1.3\tuscany-definitions-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\activation\activation\1.1\activation-1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-policy-security-ws\1.3\tuscany-policy-security-ws-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface\1.3\tuscany-interface-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-javamail_1.4_spec\1.0-M1\geronimo-javamail_1.4_spec-1.0-M1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca-xml\1.3\tuscany-binding-sca-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\avalon-framework\avalon-framework\4.1.3\avalon-framework-4.1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\com\example\ws-common\1.0-SNAPSHOT\ws-common-1.0-SNAPSHOT.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tomcat\coyote\6.0.14\coyote-6.0.14.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-io\commons-io\1.2\commons-io-1.2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-dom\1.2.5\axiom-dom-1.2.5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\jws\jsr181-api\1.0-MR1\jsr181-api-1.0-MR1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-definitions\1.3\tuscany-definitions-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\ws\commons\schema\XmlSchema\1.3.2\XmlSchema-1.3.2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-jaxws\1.3\tuscany-interface-java-jaxws-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\woden\woden\1.0-incubating-M7b\woden-1.0-incubating-M7b.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\xerces\xercesImpl\2.8.1\xercesImpl-2.8.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\geronimo\specs\geronimo-jms_1.1_spec\1.1\geronimo-jms_1.1_spec-1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-codec\commons-codec\1.3\commons-codec-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\asm\asm-all\3.1\asm-all-3.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\ws\security\wss4j\1.5.3\wss4j-1.5.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-endpoint\1.3\tuscany-endpoint-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-node2-api\1.3\tuscany-node2-api-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-tomcat\1.3\tuscany-host-tomcat-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\bouncycastle\bcprov-jdk15\132\bcprov-jdk15-132.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-runtime\1.3\tuscany-implementation-java-runtime-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\dom4j\dom4j\1.6.1\dom4j-1.6.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-kernel\1.3\axis2-kernel-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\xml\bind\jaxb-api\2.1\jaxb-api-2.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\httpcomponents\httpcore\4.0-alpha5\httpcore-4.0-alpha5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-resource\1.3\tuscany-contribution-resource-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-wsdlgen\1.3\tuscany-binding-ws-wsdlgen-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\junit\junit\4.4\junit-4.4.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tomcat\juli\6.0.14\juli-6.0.14.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-fileupload\commons-fileupload\1.1.1\commons-fileupload-1.1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly-xml\1.3\tuscany-assembly-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-host-http\1.3\tuscany-host-http-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-httpclient\commons-httpclient\3.0.1\commons-httpclient-3.0.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-axiom\1.3\tuscany-databinding-axiom-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\xalan\xalan\2.7.0\xalan-2.7.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-wsdl\1.3\tuscany-interface-wsdl-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-xsd-xml\1.3\tuscany-xsd-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\xml\stream\stax-api\1.0-2\stax-api-1.0-2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-assembly\1.3\tuscany-assembly-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-adb-codegen\1.3\axis2-adb-codegen-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-interface-java-xml\1.3\tuscany-interface-java-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\ws\commons\axiom\axiom-impl\1.2.5\axiom-impl-1.2.5.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws\1.3\tuscany-binding-ws-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java\1.3\tuscany-implementation-java-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\commons-discovery\commons-discovery\0.2\commons-discovery-0.2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\neethi\neethi\2.0.2\neethi-2.0.2.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-sca\1.3\tuscany-binding-sca-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-core-spi\1.3\tuscany-core-spi-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-binding-ws-xml\1.3\tuscany-binding-ws-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-extensibility\1.3\tuscany-extensibility-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-implementation-java-xml\1.3\tuscany-implementation-java-xml-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding\1.3\tuscany-databinding-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\santuario\xmlsec\1.4.0\xmlsec-1.4.0.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\jaxen\jaxen\1.1.1\jaxen-1.1.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-namespace\1.3\tuscany-contribution-namespace-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution\1.3\tuscany-contribution-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-contribution-impl\1.3\tuscany-contribution-impl-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\log4j\log4j\1.2.12\log4j-1.2.12.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\javax\mail\mail\1.4\mail-1.4.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\axis2\axis2-codegen\1.3\axis2-codegen-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\codehaus\woodstox\wstx-asl\3.2.1\wstx-asl-3.2.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\stax\stax-api\1.0.1\stax-api-1.0.1.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-sca-api\1.3\tuscany-sca-api-1.3.jar
[DEBUG]   C:\Documents and
Settings\slaws\.m2\repository\org\apache\tuscany\sca\tuscany-databinding-jaxb\1.3\tuscany-databinding-jaxb-1.3.jar

Simon

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Hey Simon,

This was required for our services with 1.2.1 when not running in a
1.6 JVM - to allow access to the javax.jws.* classes.  But anyway, the
webapp isn't really required to prove this...

That execution looks fine to me, so I'm baffled that it's failing...
What JDK are you executing this with?  I've tried both the Sun and IBM
1.5 JDKs, but both result in the same issue - do you have any ideas
what else could be causing these failures?

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 12:16 PM, Simon Laws <si...@googlemail.com> wrote:
>
>
> On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <da...@gmail.com>
> wrote:
>>
>> Hey Simon,
>>
>> This has been the case with 1.3 RC1 and RC2.
>>
>> Dave.
>>
>> --
>> Dave Sowerby MEng MBCS
>>
>>
>>
>> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws <si...@googlemail.com>
>> wrote:
>> >
>> >
>> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <da...@gmail.com>
>> > wrote:
>> >>
>> >> Hey Ant,
>> >>
>> >> We're targetting our next release (due in a matter of weeks) at 1.3,
>> >> so ideally this fix would be included in the 1.3 release.
>> >>
>> >> What are the generally time scales for the releases of 1.3 and 1.3.1?
>> >>
>> >> Cheers,
>> >>
>> >> Dave.
>> >>
>> >> --
>> >> Dave Sowerby MEng MBCS
>> >>
>> >>
>> >>
>> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
>> >> wrote:
>> >> > How important is it to you that this gets fixed in the 1.3 release or
>> >> > could
>> >> > it wait for a later release? There's already been some mention of
>> >> > having
>> >> > a
>> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
>> >> >
>> >> >    ...ant
>> >> >
>> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby
>> >> > <da...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> All,
>> >> >>
>> >> >> I've created TUSCANY-2512 for this, with full stacks and the example
>> >> >> client - this is still an issue with RC2.
>> >> >>
>> >> >> Dave.
>> >> >>
>> >> >> --
>> >> >> Dave Sowerby MEng MBCS
>> >> >>
>> >> >>
>> >> >>
>> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby
>> >> >> <da...@gmail.com>
>> >> >> wrote:
>> >> >> > Hi All,
>> >> >> >
>> >> >> > I'm getting an Exception whilst attempting to get a client
>> >> >> > component
>> >> >> > node using the following code:
>> >> >> >
>> >> >> > node =
>> >> >> >
>> >> >> >
>> >> >> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>> >> >> > new SCAContribution("test", "target/classes"));
>> >> >> >
>> >> >> > The composite contains a reference to a locally hosted web
>> >> >> > service:
>> >> >> >
>> >> >> > <binding.ws
>> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>> >> >> >
>> >> >> > When I execute my client I get the following NPE, which it appears
>> >> >> > to
>> >> >> > be throwing whilst trying to add an operation to the wsdl based
>> >> >> > upon
>> >> >> > the interface (I'm using interface.java).
>> >> >> >
>> >> >> > The signature of the interface that causes it to die is:
>> >> >> >
>> >> >> > public void throwException throws WSException();
>> >> >> >
>> >> >> > And the Exception is:
>> >> >> >
>> >> >> > Caused by: java.lang.NullPointerException
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>> >> >> >        at
>> >> >> >
>> >> >> >
>> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>> >> >> >        at
>> >> >> >
>> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>> >> >> >        ... 26 more
>> >> >> >
>> >> >> > Does anyone have any ideas what would be causing this issue?
>> >> >> >
>> >> >> > Cheers,
>> >> >> >
>> >> >> > Dave.
>> >> >> >
>> >> >> > --
>> >> >> > Dave Sowerby MEng MBCS
>> >> >> >
>> >> >
>> >> >
>> >
>> > Hi Dave
>> >
>> > I've done some preliminary testing by just adding the signature that
>> > seems
>> > to be causing problems for you to a local test I already have set up to
>> > run
>> > against 1.3 but it works fine. So I'll  try and run your test as is. Can
>> > you
>> > tell me what version of Tuscany you were running against when you
>> > captured
>> > these stack traces.
>> >
>> > Simon
>> >
>
> Hi Dave
>
> I just ran the sample as provided...
>
> It downloaded the 1.3RC2 tuscany artifacts
> I have to comment out
>         <!--dependency>
>             <groupId>javax.jws</groupId>
>             <artifactId>jsr181</artifactId>
>             <version>1.0</version>
>         </dependency-->
> in ws-webapp/pom/xml as I don't have this in my local repo (I do though have
> jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting as the
> wsdlgen uses jaxws under the covers so this may be interesting to look at
> further
> I ran up the web app in tomcat (and adjusted the reference uri to take
> account of the different context root).
> Here's the result.
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running com.example.ws.client.WSServiceTest
> 29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
> INFO: Creating node: ws-client.composite
> 29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
> INFO: Loading contribution:
> file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
> sca-1.3/ws/ws-client/target/classes/
> 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
> INFO: Loading composite:
> file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
> -1.3/ws/ws-client/target/classes/ws-client.composite
> 29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
> INFO: Starting node: ws-client.composite
> sayHello: Hello WS Client!
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281 sec
>
> Results :
>
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
> -client\target\ws-client.jar
> [INFO] [install:install]
> [INFO] Installing
> C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
> ient\target\ws-client.jar to C:\Documents and
> Settings\slaws\.m2\repository\com\
> example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 23 seconds
> [INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
> [INFO] Final Memory: 17M/47M
> [INFO]
> ------------------------------------------------------------------------
>
> Does this look like I have done the right think. If so there may be some
> environment difference between me an you that is causing you problems.
>
> Regards
>
> Simon
>

Re: Exception during Client node lookup.

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jul 29, 2008 at 11:52 AM, Dave Sowerby <da...@gmail.com>wrote:

> Hey Simon,
>
> This has been the case with 1.3 RC1 and RC2.
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws <si...@googlemail.com>
> wrote:
> >
> >
> > On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <da...@gmail.com>
> > wrote:
> >>
> >> Hey Ant,
> >>
> >> We're targetting our next release (due in a matter of weeks) at 1.3,
> >> so ideally this fix would be included in the 1.3 release.
> >>
> >> What are the generally time scales for the releases of 1.3 and 1.3.1?
> >>
> >> Cheers,
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com>
> wrote:
> >> > How important is it to you that this gets fixed in the 1.3 release or
> >> > could
> >> > it wait for a later release? There's already been some mention of
> having
> >> > a
> >> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
> >> >
> >> >    ...ant
> >> >
> >> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <dave.sowerby@gmail.com
> >
> >> > wrote:
> >> >>
> >> >> All,
> >> >>
> >> >> I've created TUSCANY-2512 for this, with full stacks and the example
> >> >> client - this is still an issue with RC2.
> >> >>
> >> >> Dave.
> >> >>
> >> >> --
> >> >> Dave Sowerby MEng MBCS
> >> >>
> >> >>
> >> >>
> >> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <
> dave.sowerby@gmail.com>
> >> >> wrote:
> >> >> > Hi All,
> >> >> >
> >> >> > I'm getting an Exception whilst attempting to get a client
> component
> >> >> > node using the following code:
> >> >> >
> >> >> > node =
> >> >> >
> >> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> >> > new SCAContribution("test", "target/classes"));
> >> >> >
> >> >> > The composite contains a reference to a locally hosted web service:
> >> >> >
> >> >> > <binding.ws
> >> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >> >> >
> >> >> > When I execute my client I get the following NPE, which it appears
> to
> >> >> > be throwing whilst trying to add an operation to the wsdl based
> upon
> >> >> > the interface (I'm using interface.java).
> >> >> >
> >> >> > The signature of the interface that causes it to die is:
> >> >> >
> >> >> > public void throwException throws WSException();
> >> >> >
> >> >> > And the Exception is:
> >> >> >
> >> >> > Caused by: java.lang.NullPointerException
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >> >        at
> >> >> >
> >> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >> >        at
> >> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >> >        ... 26 more
> >> >> >
> >> >> > Does anyone have any ideas what would be causing this issue?
> >> >> >
> >> >> > Cheers,
> >> >> >
> >> >> > Dave.
> >> >> >
> >> >> > --
> >> >> > Dave Sowerby MEng MBCS
> >> >> >
> >> >
> >> >
> >
> > Hi Dave
> >
> > I've done some preliminary testing by just adding the signature that
> seems
> > to be causing problems for you to a local test I already have set up to
> run
> > against 1.3 but it works fine. So I'll  try and run your test as is. Can
> you
> > tell me what version of Tuscany you were running against when you
> captured
> > these stack traces.
> >
> > Simon
> >
>

Hi Dave

I just ran the sample as provided...

It downloaded the 1.3RC2 tuscany artifacts
I have to comment out
        <!--dependency>
            <groupId>javax.jws</groupId>
            <artifactId>jsr181</artifactId>
            <version>1.0</version>
        </dependency-->
in ws-webapp/pom/xml as I don't have this in my local repo (I do though have
jsr181-api-1.0-MR1.jar). Why did you need this?. This is interesting as the
wsdlgen uses jaxws under the covers so this may be interesting to look at
further
I ran up the web app in tomcat (and adjusted the reference uri to take
account of the different context root).
Here's the result.
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.example.ws.client.WSServiceTest
29-Jul-2008 12:11:09 org.apache.tuscany.sca.node.impl.NodeImpl <init>
INFO: Creating node: ws-client.composite
29-Jul-2008 12:11:10 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading contribution:
file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-
sca-1.3/ws/ws-client/target/classes/
29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl configureNode
INFO: Loading composite:
file:/C:/simon/tuscany/release/sca-r1.3-rc2/tuscany-sca
-1.3/ws/ws-client/target/classes/ws-client.composite
29-Jul-2008 12:11:12 org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: ws-client.composite
sayHello: Hello WS Client!
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.281 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] Building jar:
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws
-client\target\ws-client.jar
[INFO] [install:install]
[INFO] Installing
C:\simon\tuscany\release\sca-r1.3-rc2\tuscany-sca-1.3\ws\ws-cl
ient\target\ws-client.jar to C:\Documents and
Settings\slaws\.m2\repository\com\
example\ws-client\1.0-SNAPSHOT\ws-client-1.0-SNAPSHOT.jar
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Tue Jul 29 12:11:16 BST 2008
[INFO] Final Memory: 17M/47M
[INFO]
------------------------------------------------------------------------

Does this look like I have done the right think. If so there may be some
environment difference between me an you that is causing you problems.

Regards

Simon

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Hey Simon,

This has been the case with 1.3 RC1 and RC2.

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 11:46 AM, Simon Laws <si...@googlemail.com> wrote:
>
>
> On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <da...@gmail.com>
> wrote:
>>
>> Hey Ant,
>>
>> We're targetting our next release (due in a matter of weeks) at 1.3,
>> so ideally this fix would be included in the 1.3 release.
>>
>> What are the generally time scales for the releases of 1.3 and 1.3.1?
>>
>> Cheers,
>>
>> Dave.
>>
>> --
>> Dave Sowerby MEng MBCS
>>
>>
>>
>> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com> wrote:
>> > How important is it to you that this gets fixed in the 1.3 release or
>> > could
>> > it wait for a later release? There's already been some mention of having
>> > a
>> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
>> >
>> >    ...ant
>> >
>> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>
>> > wrote:
>> >>
>> >> All,
>> >>
>> >> I've created TUSCANY-2512 for this, with full stacks and the example
>> >> client - this is still an issue with RC2.
>> >>
>> >> Dave.
>> >>
>> >> --
>> >> Dave Sowerby MEng MBCS
>> >>
>> >>
>> >>
>> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
>> >> wrote:
>> >> > Hi All,
>> >> >
>> >> > I'm getting an Exception whilst attempting to get a client component
>> >> > node using the following code:
>> >> >
>> >> > node =
>> >> >
>> >> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>> >> > new SCAContribution("test", "target/classes"));
>> >> >
>> >> > The composite contains a reference to a locally hosted web service:
>> >> >
>> >> > <binding.ws
>> >> > uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>> >> >
>> >> > When I execute my client I get the following NPE, which it appears to
>> >> > be throwing whilst trying to add an operation to the wsdl based upon
>> >> > the interface (I'm using interface.java).
>> >> >
>> >> > The signature of the interface that causes it to die is:
>> >> >
>> >> > public void throwException throws WSException();
>> >> >
>> >> > And the Exception is:
>> >> >
>> >> > Caused by: java.lang.NullPointerException
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>> >> >        at
>> >> >
>> >> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>> >> >        at
>> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>> >> >        ... 26 more
>> >> >
>> >> > Does anyone have any ideas what would be causing this issue?
>> >> >
>> >> > Cheers,
>> >> >
>> >> > Dave.
>> >> >
>> >> > --
>> >> > Dave Sowerby MEng MBCS
>> >> >
>> >
>> >
>
> Hi Dave
>
> I've done some preliminary testing by just adding the signature that seems
> to be causing problems for you to a local test I already have set up to run
> against 1.3 but it works fine. So I'll  try and run your test as is. Can you
> tell me what version of Tuscany you were running against when you captured
> these stack traces.
>
> Simon
>

Re: Exception during Client node lookup.

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <da...@gmail.com>wrote:

> Hey Ant,
>
> We're targetting our next release (due in a matter of weeks) at 1.3,
> so ideally this fix would be included in the 1.3 release.
>
> What are the generally time scales for the releases of 1.3 and 1.3.1?
>
> Cheers,
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com> wrote:
> > How important is it to you that this gets fixed in the 1.3 release or
> could
> > it wait for a later release? There's already been some mention of having
> a
> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
> >
> >    ...ant
> >
> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>
> > wrote:
> >>
> >> All,
> >>
> >> I've created TUSCANY-2512 for this, with full stacks and the example
> >> client - this is still an issue with RC2.
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
> >> wrote:
> >> > Hi All,
> >> >
> >> > I'm getting an Exception whilst attempting to get a client component
> >> > node using the following code:
> >> >
> >> > node =
> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> > new SCAContribution("test", "target/classes"));
> >> >
> >> > The composite contains a reference to a locally hosted web service:
> >> >
> >> > <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent
> "/>
> >> >
> >> > When I execute my client I get the following NPE, which it appears to
> >> > be throwing whilst trying to add an operation to the wsdl based upon
> >> > the interface (I'm using interface.java).
> >> >
> >> > The signature of the interface that causes it to die is:
> >> >
> >> > public void throwException throws WSException();
> >> >
> >> > And the Exception is:
> >> >
> >> > Caused by: java.lang.NullPointerException
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >        at
> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >        at
> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >        at
> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >        ... 26 more
> >> >
> >> > Does anyone have any ideas what would be causing this issue?
> >> >
> >> > Cheers,
> >> >
> >> > Dave.
> >> >
> >> > --
> >> > Dave Sowerby MEng MBCS
> >> >
> >
> >
>

Hi Dave

I've done some preliminary testing by just adding the signature that seems
to be causing problems for you to a local test I already have set up to run
against 1.3 but it works fine. So I'll  try and run your test as is. Can you
tell me what version of Tuscany you were running against when you captured
these stack traces.

Simon

Re: Exception during Client node lookup.

Posted by ant elder <an...@apache.org>.
I'm making an 1.3 RC3 right now for voting today and was hoping that would
be the last RC, but now that this has come up I'll hold off on RC3 for now
to try to get the fix in 1.3 for you.

   ...ant

On Tue, Jul 29, 2008 at 11:33 AM, Dave Sowerby <da...@gmail.com>wrote:

> Hey Ant,
>
> We're targetting our next release (due in a matter of weeks) at 1.3,
> so ideally this fix would be included in the 1.3 release.
>
> What are the generally time scales for the releases of 1.3 and 1.3.1?
>
> Cheers,
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com> wrote:
> > How important is it to you that this gets fixed in the 1.3 release or
> could
> > it wait for a later release? There's already been some mention of having
> a
> > 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
> >
> >    ...ant
> >
> > On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>
> > wrote:
> >>
> >> All,
> >>
> >> I've created TUSCANY-2512 for this, with full stacks and the example
> >> client - this is still an issue with RC2.
> >>
> >> Dave.
> >>
> >> --
> >> Dave Sowerby MEng MBCS
> >>
> >>
> >>
> >> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
> >> wrote:
> >> > Hi All,
> >> >
> >> > I'm getting an Exception whilst attempting to get a client component
> >> > node using the following code:
> >> >
> >> > node =
> >> >
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> >> > new SCAContribution("test", "target/classes"));
> >> >
> >> > The composite contains a reference to a locally hosted web service:
> >> >
> >> > <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent
> "/>
> >> >
> >> > When I execute my client I get the following NPE, which it appears to
> >> > be throwing whilst trying to add an operation to the wsdl based upon
> >> > the interface (I'm using interface.java).
> >> >
> >> > The signature of the interface that causes it to die is:
> >> >
> >> > public void throwException throws WSException();
> >> >
> >> > And the Exception is:
> >> >
> >> > Caused by: java.lang.NullPointerException
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >> >        at
> >> >
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >> >        at
> >> >
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >> >        at
> >> >
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >> >        at
> >> >
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >> >        at
> >> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >> >        ... 26 more
> >> >
> >> > Does anyone have any ideas what would be causing this issue?
> >> >
> >> > Cheers,
> >> >
> >> > Dave.
> >> >
> >> > --
> >> > Dave Sowerby MEng MBCS
> >> >
> >
> >
>

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
Hey Ant,

We're targetting our next release (due in a matter of weeks) at 1.3,
so ideally this fix would be included in the 1.3 release.

What are the generally time scales for the releases of 1.3 and 1.3.1?

Cheers,

Dave.

--
Dave Sowerby MEng MBCS



On Tue, Jul 29, 2008 at 10:16 AM, ant elder <an...@gmail.com> wrote:
> How important is it to you that this gets fixed in the 1.3 release or could
> it wait for a later release? There's already been some mention of having a
> 1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.
>
>    ...ant
>
> On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>
> wrote:
>>
>> All,
>>
>> I've created TUSCANY-2512 for this, with full stacks and the example
>> client - this is still an issue with RC2.
>>
>> Dave.
>>
>> --
>> Dave Sowerby MEng MBCS
>>
>>
>>
>> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
>> wrote:
>> > Hi All,
>> >
>> > I'm getting an Exception whilst attempting to get a client component
>> > node using the following code:
>> >
>> > node =
>> > SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
>> > new SCAContribution("test", "target/classes"));
>> >
>> > The composite contains a reference to a locally hosted web service:
>> >
>> > <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>> >
>> > When I execute my client I get the following NPE, which it appears to
>> > be throwing whilst trying to add an operation to the wsdl based upon
>> > the interface (I'm using interface.java).
>> >
>> > The signature of the interface that causes it to die is:
>> >
>> > public void throwException throws WSException();
>> >
>> > And the Exception is:
>> >
>> > Caused by: java.lang.NullPointerException
>> >        at
>> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>> >        at
>> > org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>> >        at
>> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>> >        at
>> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>> >        at
>> > org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>> >        at
>> > org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>> >        at
>> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>> >        at
>> > org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>> >        at
>> > org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>> >        at
>> > org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>> >        at
>> > org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>> >        at
>> > org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>> >        ... 26 more
>> >
>> > Does anyone have any ideas what would be causing this issue?
>> >
>> > Cheers,
>> >
>> > Dave.
>> >
>> > --
>> > Dave Sowerby MEng MBCS
>> >
>
>

Re: Exception during Client node lookup.

Posted by ant elder <an...@gmail.com>.
How important is it to you that this gets fixed in the 1.3 release or could
it wait for a later release? There's already been some mention of having a
1.3.1 soon after 1.3 so it shouldn't be too long if you can wait.

   ...ant

On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>wrote:

> All,
>
> I've created TUSCANY-2512 for this, with full stacks and the example
> client - this is still an issue with RC2.
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
> wrote:
> > Hi All,
> >
> > I'm getting an Exception whilst attempting to get a client component
> > node using the following code:
> >
> > node =
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> > new SCAContribution("test", "target/classes"));
> >
> > The composite contains a reference to a locally hosted web service:
> >
> > <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >
> > When I execute my client I get the following NPE, which it appears to
> > be throwing whilst trying to add an operation to the wsdl based upon
> > the interface (I'm using interface.java).
> >
> > The signature of the interface that causes it to die is:
> >
> > public void throwException throws WSException();
> >
> > And the Exception is:
> >
> > Caused by: java.lang.NullPointerException
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >        at
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >        at
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >        at
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >        at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >        ... 26 more
> >
> > Does anyone have any ideas what would be causing this issue?
> >
> > Cheers,
> >
> > Dave.
> >
> > --
> > Dave Sowerby MEng MBCS
> >
>

Re: Exception during Client node lookup.

Posted by Simon Laws <si...@googlemail.com>.
On Tue, Jul 29, 2008 at 8:46 AM, Dave Sowerby <da...@gmail.com>wrote:

> All,
>
> I've created TUSCANY-2512 for this, with full stacks and the example
> client - this is still an issue with RC2.
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>
>
>
> On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com>
> wrote:
> > Hi All,
> >
> > I'm getting an Exception whilst attempting to get a client component
> > node using the following code:
> >
> > node =
> SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> > new SCAContribution("test", "target/classes"));
> >
> > The composite contains a reference to a locally hosted web service:
> >
> > <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>
> >
> > When I execute my client I get the following NPE, which it appears to
> > be throwing whilst trying to add an operation to the wsdl based upon
> > the interface (I'm using interface.java).
> >
> > The signature of the interface that causes it to die is:
> >
> > public void throwException throws WSException();
> >
> > And the Exception is:
> >
> > Caused by: java.lang.NullPointerException
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
> >        at
> org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
> >        at
> org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
> >        at
> org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
> >        at
> org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
> >        at
> org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
> >        at
> org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
> >        ... 26 more
> >
> > Does anyone have any ideas what would be causing this issue?
> >
> > Cheers,
> >
> > Dave.
> >
> > --
> > Dave Sowerby MEng MBCS
> >
>

Thanks Dave, hadn't spotted your previous mail. I'll take a look.

Regards

Simon

Re: Exception during Client node lookup.

Posted by Dave Sowerby <da...@gmail.com>.
All,

I've created TUSCANY-2512 for this, with full stacks and the example
client - this is still an issue with RC2.

Dave.

--
Dave Sowerby MEng MBCS



On Mon, Jul 21, 2008 at 4:05 PM, Dave Sowerby <da...@gmail.com> wrote:
> Hi All,
>
> I'm getting an Exception whilst attempting to get a client component
> node using the following code:
>
> node = SCANode2Factory.newInstance().createSCANode("target/classes/client.composite",
> new SCAContribution("test", "target/classes"));
>
> The composite contains a reference to a locally hosted web service:
>
> <binding.ws uri="http://localhost:8080/example-ws/WSServiceComponent"/>
>
> When I execute my client I get the following NPE, which it appears to
> be throwing whilst trying to add an operation to the wsdl based upon
> the interface (I'm using interface.java).
>
> The signature of the interface that causes it to die is:
>
> public void throwException throws WSException();
>
> And the Exception is:
>
> Caused by: java.lang.NullPointerException
>        at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generateOperation(Interface2WSDLGenerator.java:527)
>        at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.generate(Interface2WSDLGenerator.java:232)
>        at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLInterfaceContract(BindingWSDLGenerator.java:306)
>        at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.createWSDLDocument(BindingWSDLGenerator.java:204)
>        at org.apache.tuscany.sca.binding.ws.wsdlgen.BindingWSDLGenerator.generateWSDL(BindingWSDLGenerator.java:162)
>        at org.apache.tuscany.sca.binding.ws.xml.BindingBuilderImpl.build(BindingBuilderImpl.java:48)
>        at org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.buildReferenceBindings(ComponentReferenceBindingBuilderImpl.java:65)
>        at org.apache.tuscany.sca.assembly.builder.impl.ComponentReferenceBindingBuilderImpl.build(ComponentReferenceBindingBuilderImpl.java:47)
>        at org.apache.tuscany.sca.assembly.builder.impl.CompositeBuilderImpl.build(CompositeBuilderImpl.java:142)
>        at org.apache.tuscany.sca.host.embedded.impl.ReallySmallRuntime.buildComposite(ReallySmallRuntime.java:234)
>        at org.apache.tuscany.sca.node.impl.NodeImpl.configureNode(NodeImpl.java:359)
>        at org.apache.tuscany.sca.node.impl.NodeImpl.<init>(NodeImpl.java:203)
>        ... 26 more
>
> Does anyone have any ideas what would be causing this issue?
>
> Cheers,
>
> Dave.
>
> --
> Dave Sowerby MEng MBCS
>