Scope object factory not registered for scope [UNDEFINED]
---------------------------------------------------------

                 Key: TUSCANY-970
                 URL: http://issues.apache.org/jira/browse/TUSCANY-970
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Core
            Reporter: Lou Amodeo


I have a component that is using a componentType side file.  The component does 
not specify a SCOPE.  During runtime I recieve a  Scope object factory not 
registered for scope [UNDEFINED].   Remove the sidefile and the problem goes 
away.  
It appears that a default scope is not being established when a componentType 
sidefile is found.   


[INFO] [tuscany-itest:start {execution: start}]
[INFO] Starting Tuscany...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Scope object factory not registered for scope [UNDEFINED]
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.tuscany.spi.component.ScopeNotFoundException: Scope object factory no
t registered for scope [UNDEFINED]
        at org.apache.tuscany.core.component.scope.ScopeRegistryImpl.getScopeCon
tainer(ScopeRegistryImpl.java:65)
        at org.apache.tuscany.core.implementation.java.JavaComponentBuilder.buil
d(JavaComponentBuilder.java:76)
        at org.apache.tuscany.core.implementation.java.JavaComponentBuilder.buil
d(JavaComponentBuilder.java:53)
        at org.apache.tuscany.core.builder.BuilderRegistryImpl.build(BuilderRegi
stryImpl.java:115)
        at org.apache.tuscany.core.implementation.composite.CompositeBuilder.bui
ld(CompositeBuilder.java:93)
        at org.apache.tuscany.core.builder.BuilderRegistryImpl.build(BuilderRegi
stryImpl.java:115)
        at org.apache.tuscany.core.deployer.DeployerImpl.build(DeployerImpl.java
:115)
        at org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.jav
a:81)
        at org.apache.tuscany.core.runtime.AbstractRuntime.deployApplicationScdl
(AbstractRuntime.java:136)
        at org.apache.tuscany.sca.plugin.itest.MavenEmbeddedRuntime.initialize(M
avenEmbeddedRuntime.java:85)
        at org.apache.tuscany.sca.plugin.itest.TuscanyStartMojo.execute(TuscanyS
tartMojo.java:102)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Dec 04 15:32:39 EST 2006
[INFO] Final Memory: 6M/22M
[INFO] ------------------------------------------------------------------------

C:\Tuscany\LousTestCases\testing\sca\itest\test-CallBackCType>

<?xml version="1.0" encoding="ASCII"?>
<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0"; >
  <service name="CallBackCTypeService">
     <interface.java 
interface="org.apache.tuscany.sca.test.CallBackCTypeService" 
         
callbackInterface="org.apache.tuscany.sca.test.CallBackCTypeCallBack"/> 
  </service>
</componentType>              
       

-- 
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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to