You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Scott Kurz (JIRA)" <tu...@ws.apache.org> on 2006/04/26 20:25:02 UTC

[jira] Created: (TUSCANY-235) EntryPoint name must match wired-to Service name

EntryPoint name must match wired-to Service name
------------------------------------------------

         Key: TUSCANY-235
         URL: http://issues.apache.org/jira/browse/TUSCANY-235
     Project: Tuscany
        Type: Bug

  Components: Java SCA Core  
 Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
    Reporter: Scott Kurz
    Priority: Minor


With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.

So, for example, in the HelloWorld WS sample's sca.module file, you have:

    <entryPoint name="HelloWorldService">
        <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
        <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
        <reference>HelloWorldServiceComponent/HelloWorldService</reference>
    </entryPoint>

You should be able to rename the entryPoint as:

    <entryPoint name="HelloWorldServiceEP">

but be able to keep the reference as:

    <reference>HelloWorldServiceComponent/HelloWorldService</reference>

But when I tried this recently in Tomcat I had this problem.

SEVERE: Error deploying web application archive helloworldws.war
org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Re: [jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by Scott Kurz <sc...@gmail.com>.
I didn't look at the code you mentioned, but I did pull the repo today and
the problem seems to have gone away.  I made the change to BigBank using an
EP name of "AccountServiceEP" and it ran fine.

Thanks, maybe I'll try one more time as a sanity check tomorrow and then
close out the JIRA.

On 4/26/06, Jim Marino (JIRA) <tu...@ws.apache.org> wrote:
>
>     [
> http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376607]
>
> Jim Marino commented on TUSCANY-235:
> ------------------------------------
>
> I haven't had time to reproduce this but looking at the latest repo
> revision it appears as if the target name on the SourceWireFactory
> (retrieved through getConfiguration() ) has the incorrect service name. The
> target component name is valid since the target context is returned (there
> is a null check for that) but the service name appears to be set to the
> entry point name (cf. line 584 AbstractComponentContext).
>
> I'm going to be out tomorrow so can someone please look at this? Either
> the model is not being loaded properly, it is not setting correct
> relationships, or the runtime builder is using the model erroneously.  In
> the latter case, DefaultWireFactoryService.createSourceFactory(..) is the
> palce to look to see if the model is being used improperly.  This seems kind
> of strange since we do have unit tests where the ep is named differently
> than the target service.
>
> It also may be good to do a sanity check against the latest version since
> a lot of changes were introduced into core lately.
>
> Jim
>
>
>
> > EntryPoint name must match wired-to Service name
> > ------------------------------------------------
> >
> >          Key: TUSCANY-235
> >          URL: http://issues.apache.org/jira/browse/TUSCANY-235
> >      Project: Tuscany
> >         Type: Bug
>
> >   Components: Java SCA Core
> >  Environment: Ran after pulling SVN contents April 17th  in Tomcat on
> Windows
> >     Reporter: Scott Kurz
> >     Priority: Minor
>
> >
> > With a WS binding you currently need to match the EntryPoint name with
> the name of the Service it is wired to via the <references> tag.
> > So, for example, in the HelloWorld WS sample's sca.module file, you
> have:
> >     <entryPoint name="HelloWorldService">
> >         <interface.wsdl interface="
> http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
> >         <binding.ws port="
> http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
> >
> <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> >     </entryPoint>
> > You should be able to rename the entryPoint as:
> >     <entryPoint name="HelloWorldServiceEP">
> > but be able to keep the reference as:
> >     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> > But when I tried this recently in Tomcat I had this problem.
> > SEVERE: Error deploying web application archive helloworldws.war
> > org.apache.tuscany.core.context.ContextInitException: No proxy factory
> found for service [HelloWorldServiceEP]
> > Context stack trace: [tuscany.root
> ][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(
> AbstractCompositeContext.java:568)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(
> AbstractCompositeContext.java:149)
> >       at
> org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory
> (CompositeScopeContext.java:95)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration
> (AbstractCompositeContext.java:457)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject
> (AbstractCompositeContext.java:404)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(
> TuscanyContextListener.java:133)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(
> TuscanyContextListener.java:85)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent
> (TuscanyContextListener.java:71)
> >       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
> >       at org.apache.catalina.core.StandardContext.start(
> StandardContext.java:4119)
> >       at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:759)
> >       at org.apache.catalina.core.ContainerBase.addChild(
> ContainerBase.java:739)
> >       at org.apache.catalina.core.StandardHost.addChild(
> StandardHost.java:524)
> >       at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java
> :117)
> >       at org.apache.catalina.startup.HostConfig.deployWAR(
> HostConfig.java:809)
> >       at org.apache.catalina.startup.HostConfig.deployWARs(
> HostConfig.java:698)
> >       at org.apache.catalina.startup.HostConfig.deployApps(
> HostConfig.java:472)
> >       at org.apache.catalina.startup.HostConfig.start(HostConfig.java
> :1122)
> >       at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> HostConfig.java:310)
> >       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
> >       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1021)
> >       at org.apache.catalina.core.StandardHost.start(StandardHost.java
> :718)
> >       at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java
> :60)
> >       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1013)
> >       at org.apache.catalina.core.StandardEngine.start(
> StandardEngine.java:442)
> >       at org.apache.catalina.core.StandardService.start(
> StandardService.java:450)
> >       at org.apache.catalina.core.StandardServer.start(
> StandardServer.java:709)
> >       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >       at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:64)
> >       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:615)
> >       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> >       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>

Re: [jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by Scott Kurz <sc...@gmail.com>.
Yes..  I thought one week might be "recent" enough but lesson learned.
Thanks for looking at this.

On 4/27/06, Jim Marino (JIRA) <tu...@ws.apache.org> wrote:
>
>     [
> http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376658]
>
> Jim Marino commented on TUSCANY-235:
> ------------------------------------
>
> O.K. thanks, that's probably why I couldn't reproduce the problem right
> away :-) There is an integration test case we have which exercises this in
> Java and it didn't seem to be a problem but the issue could have been with
> the way SCDL is loaded by the axis binding. We'll need to add a test case
> there as well for this.
>
> Thanks for checking this out - let us know if it or something else comes
> up. Also, it may be a good idea at this stage to sync once a day, or at
> least when you do run into something as we are working on a number of things
> towards the JavaOne milestone release.  Once that is out, things should
> stabilize a bit.
>
>
>
> > EntryPoint name must match wired-to Service name
> > ------------------------------------------------
> >
> >          Key: TUSCANY-235
> >          URL: http://issues.apache.org/jira/browse/TUSCANY-235
> >      Project: Tuscany
> >         Type: Bug
>
> >   Components: Java SCA Core
> >  Environment: Ran after pulling SVN contents April 17th  in Tomcat on
> Windows
> >     Reporter: Scott Kurz
> >     Priority: Minor
>
> >
> > With a WS binding you currently need to match the EntryPoint name with
> the name of the Service it is wired to via the <references> tag.
> > So, for example, in the HelloWorld WS sample's sca.module file, you
> have:
> >     <entryPoint name="HelloWorldService">
> >         <interface.wsdl interface="
> http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
> >         <binding.ws port="
> http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
> >
> <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> >     </entryPoint>
> > You should be able to rename the entryPoint as:
> >     <entryPoint name="HelloWorldServiceEP">
> > but be able to keep the reference as:
> >     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> > But when I tried this recently in Tomcat I had this problem.
> > SEVERE: Error deploying web application archive helloworldws.war
> > org.apache.tuscany.core.context.ContextInitException: No proxy factory
> found for service [HelloWorldServiceEP]
> > Context stack trace: [tuscany.root
> ][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(
> AbstractCompositeContext.java:568)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(
> AbstractCompositeContext.java:149)
> >       at
> org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory
> (CompositeScopeContext.java:95)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration
> (AbstractCompositeContext.java:457)
> >       at
> org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject
> (AbstractCompositeContext.java:404)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(
> TuscanyContextListener.java:133)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(
> TuscanyContextListener.java:85)
> >       at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent
> (TuscanyContextListener.java:71)
> >       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
> >       at org.apache.catalina.core.StandardContext.start(
> StandardContext.java:4119)
> >       at org.apache.catalina.core.ContainerBase.addChildInternal(
> ContainerBase.java:759)
> >       at org.apache.catalina.core.ContainerBase.addChild(
> ContainerBase.java:739)
> >       at org.apache.catalina.core.StandardHost.addChild(
> StandardHost.java:524)
> >       at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java
> :117)
> >       at org.apache.catalina.startup.HostConfig.deployWAR(
> HostConfig.java:809)
> >       at org.apache.catalina.startup.HostConfig.deployWARs(
> HostConfig.java:698)
> >       at org.apache.catalina.startup.HostConfig.deployApps(
> HostConfig.java:472)
> >       at org.apache.catalina.startup.HostConfig.start(HostConfig.java
> :1122)
> >       at org.apache.catalina.startup.HostConfig.lifecycleEvent(
> HostConfig.java:310)
> >       at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> LifecycleSupport.java:119)
> >       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1021)
> >       at org.apache.catalina.core.StandardHost.start(StandardHost.java
> :718)
> >       at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java
> :60)
> >       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java
> :1013)
> >       at org.apache.catalina.core.StandardEngine.start(
> StandardEngine.java:442)
> >       at org.apache.catalina.core.StandardService.start(
> StandardService.java:450)
> >       at org.apache.catalina.core.StandardServer.start(
> StandardServer.java:709)
> >       at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >       at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:64)
> >       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >       at java.lang.reflect.Method.invoke(Method.java:615)
> >       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> >       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
>    http://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see:
>    http://www.atlassian.com/software/jira
>
>

[jira] Resolved: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-235?page=all ]
     
Jean-Sebastien Delfino resolved TUSCANY-235:
--------------------------------------------

    Resolution: Fixed

If I understand correctly this issue is now resolved. Please reopen if it's not the case. Thanks.

> EntryPoint name must match wired-to Service name
> ------------------------------------------------
>
>          Key: TUSCANY-235
>          URL: http://issues.apache.org/jira/browse/TUSCANY-235
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core
>  Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
>     Reporter: Scott Kurz
>     Priority: Minor

>
> With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.
> So, for example, in the HelloWorld WS sample's sca.module file, you have:
>     <entryPoint name="HelloWorldService">
>         <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
>         <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
>         <reference>HelloWorldServiceComponent/HelloWorldService</reference>
>     </entryPoint>
> You should be able to rename the entryPoint as:
>     <entryPoint name="HelloWorldServiceEP">
> but be able to keep the reference as:
>     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> But when I tried this recently in Tomcat I had this problem.
> SEVERE: Error deploying web application archive helloworldws.war
> org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
> Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
> 	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376658 ] 

Jim Marino commented on TUSCANY-235:
------------------------------------

O.K. thanks, that's probably why I couldn't reproduce the problem right away :-) There is an integration test case we have which exercises this in Java and it didn't seem to be a problem but the issue could have been with the way SCDL is loaded by the axis binding. We'll need to add a test case there as well for this.

Thanks for checking this out - let us know if it or something else comes up. Also, it may be a good idea at this stage to sync once a day, or at least when you do run into something as we are working on a number of things towards the JavaOne milestone release.  Once that is out, things should stabilize a bit.



> EntryPoint name must match wired-to Service name
> ------------------------------------------------
>
>          Key: TUSCANY-235
>          URL: http://issues.apache.org/jira/browse/TUSCANY-235
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core
>  Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
>     Reporter: Scott Kurz
>     Priority: Minor

>
> With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.
> So, for example, in the HelloWorld WS sample's sca.module file, you have:
>     <entryPoint name="HelloWorldService">
>         <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
>         <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
>         <reference>HelloWorldServiceComponent/HelloWorldService</reference>
>     </entryPoint>
> You should be able to rename the entryPoint as:
>     <entryPoint name="HelloWorldServiceEP">
> but be able to keep the reference as:
>     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> But when I tried this recently in Tomcat I had this problem.
> SEVERE: Error deploying web application archive helloworldws.war
> org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
> Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
> 	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by "Scott Kurz (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376523 ] 

Scott Kurz commented on TUSCANY-235:
------------------------------------

I might have picked a bad name for the JIRA.    The phrase, "EntryPoint name must match wired-to Service name" is the problem, not the solution needed.  The solution would be to eliminate this requirement.

Sorry, 
Scott

> EntryPoint name must match wired-to Service name
> ------------------------------------------------
>
>          Key: TUSCANY-235
>          URL: http://issues.apache.org/jira/browse/TUSCANY-235
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core
>  Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
>     Reporter: Scott Kurz
>     Priority: Minor

>
> With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.
> So, for example, in the HelloWorld WS sample's sca.module file, you have:
>     <entryPoint name="HelloWorldService">
>         <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
>         <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
>         <reference>HelloWorldServiceComponent/HelloWorldService</reference>
>     </entryPoint>
> You should be able to rename the entryPoint as:
>     <entryPoint name="HelloWorldServiceEP">
> but be able to keep the reference as:
>     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> But when I tried this recently in Tomcat I had this problem.
> SEVERE: Error deploying web application archive helloworldws.war
> org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
> Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
> 	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by "Scott Kurz (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376728 ] 

Scott Kurz commented on TUSCANY-235:
------------------------------------

Sorry.. still learning JIRA.... and I replied to the list but not  added a JIRA comment.

I'd said that the problem went away when I pulled the repo on 4/26, as I tweaked BigBank to test my issue.

So, I don't think I have the power to close the JIRA I opened, but I'm OK with doing so.        

And, like Jim suggested...I'll test with today's repository before the milestone release when hitting future problems.

> EntryPoint name must match wired-to Service name
> ------------------------------------------------
>
>          Key: TUSCANY-235
>          URL: http://issues.apache.org/jira/browse/TUSCANY-235
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core
>  Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
>     Reporter: Scott Kurz
>     Priority: Minor

>
> With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.
> So, for example, in the HelloWorld WS sample's sca.module file, you have:
>     <entryPoint name="HelloWorldService">
>         <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
>         <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
>         <reference>HelloWorldServiceComponent/HelloWorldService</reference>
>     </entryPoint>
> You should be able to rename the entryPoint as:
>     <entryPoint name="HelloWorldServiceEP">
> but be able to keep the reference as:
>     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> But when I tried this recently in Tomcat I had this problem.
> SEVERE: Error deploying web application archive helloworldws.war
> org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
> Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
> 	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (TUSCANY-235) EntryPoint name must match wired-to Service name

Posted by "Jim Marino (JIRA)" <tu...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/TUSCANY-235?page=comments#action_12376607 ] 

Jim Marino commented on TUSCANY-235:
------------------------------------

I haven't had time to reproduce this but looking at the latest repo revision it appears as if the target name on the SourceWireFactory (retrieved through getConfiguration() ) has the incorrect service name. The target component name is valid since the target context is returned (there is a null check for that) but the service name appears to be set to the entry point name (cf. line 584 AbstractComponentContext).

I'm going to be out tomorrow so can someone please look at this? Either the model is not being loaded properly, it is not setting correct relationships, or the runtime builder is using the model erroneously.  In the latter case, DefaultWireFactoryService.createSourceFactory(..) is the palce to look to see if the model is being used improperly.  This seems kind of strange since we do have unit tests where the ep is named differently than the target service.

It also may be good to do a sanity check against the latest version since a lot of changes were introduced into core lately.

Jim

 

> EntryPoint name must match wired-to Service name
> ------------------------------------------------
>
>          Key: TUSCANY-235
>          URL: http://issues.apache.org/jira/browse/TUSCANY-235
>      Project: Tuscany
>         Type: Bug

>   Components: Java SCA Core
>  Environment: Ran after pulling SVN contents April 17th  in Tomcat on Windows 
>     Reporter: Scott Kurz
>     Priority: Minor

>
> With a WS binding you currently need to match the EntryPoint name with the name of the Service it is wired to via the <references> tag.
> So, for example, in the HelloWorld WS sample's sca.module file, you have:
>     <entryPoint name="HelloWorldService">
>         <interface.wsdl interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
>         <binding.ws port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
>         <reference>HelloWorldServiceComponent/HelloWorldService</reference>
>     </entryPoint>
> You should be able to rename the entryPoint as:
>     <entryPoint name="HelloWorldServiceEP">
> but be able to keep the reference as:
>     <reference>HelloWorldServiceComponent/HelloWorldService</reference>
> But when I tried this recently in Tomcat I had this problem.
> SEVERE: Error deploying web application archive helloworldws.war
> org.apache.tuscany.core.context.ContextInitException: No proxy factory found for service [HelloWorldServiceEP]
> Context stack trace: [tuscany.root][/helloworldws][/helloworldws][HelloWorldServiceEP][HelloWorldServiceComponent]
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.wireSource(AbstractCompositeContext.java:568)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.start(AbstractCompositeContext.java:149)
> 	at org.apache.tuscany.core.context.scope.CompositeScopeContext.registerFactory(CompositeScopeContext.java:95)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerConfiguration(AbstractCompositeContext.java:457)
> 	at org.apache.tuscany.core.context.impl.AbstractCompositeContext.registerModelObject(AbstractCompositeContext.java:404)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.loadContext(TuscanyContextListener.java:133)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.startContext(TuscanyContextListener.java:85)
> 	at org.apache.tuscany.tomcat.TuscanyContextListener.lifecycleEvent(TuscanyContextListener.java:71)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4119)
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> 	at org.apache.tuscany.tomcat.TuscanyHost.addChild(TuscanyHost.java:117)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
> 	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
> 	at org.apache.tuscany.tomcat.TuscanyHost.start(TuscanyHost.java:60)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:450)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:615)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira