You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Monosij Dutta-Roy <mo...@gmail.com> on 2011/05/26 20:54:57 UTC

duplicate component exception on AIX 64

I had posted this as a reply to another error but did not get a response. I
thought maybe it was overlooked so am posting this again.

I am getting a duplicate component exception on trying to run under mvn
jetty. Compiles fine.

mvn clean and such did not help and I tried cleaning out the m2 repo
manually when I got this error but did not help. I tried looking for this
under this user-list emails but did not find anything.

It is running on an AIX 64 bit box on Java6_64.

[imracif [stm] @ cchit_aix] /home/imracif/qm.01/qmAppSCA01 <> mvn jetty:run
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model
for org.rd.qm:qmAppSCA01:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 165,
column 12
[WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-eclipse-plugin is missing. @ line 181, column
12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]

[INFO]
------------------------------------------------------------------------
[INFO] Building qmAppSCA01 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> maven-jetty-plugin:6.1.26:run (default-cli) @ qmAppSCA01 >>>
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @
qmAppSCA01 ---
[WARNING] Using platform encoding (ISO8859-1 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/imracif/qm.01/qmAppSCA01/src/main/resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
qmAppSCA01 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-dependency-plugin:2.1:copy (copy) @ qmAppSCA01 ---
[INFO] Configured Artifact: com.bca.pearl:domainBCA:1.0-SNAPSHOT:jar
[INFO] Configured Artifact: org.rd.qm:qmController:1.0-SNAPSHOT:jar
[INFO] com.bca.pearl:domainBCA:1.0-SNAPSHOT:jar already exists in
/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions
[INFO] org.rd.qm:qmController:1.0-SNAPSHOT:jar already exists in
/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-testResources) @ qmAppSCA01 ---
[WARNING] Using platform encoding (ISO8859-1 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory
/home/imracif/qm.01/qmAppSCA01/src/test/java
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @
qmAppSCA01 ---
[INFO] No sources to compile
[INFO]
[INFO] <<< maven-jetty-plugin:6.1.26:run (default-cli) @ qmAppSCA01 <<<
[INFO]
[INFO] --- maven-jetty-plugin:6.1.26:run (default-cli) @ qmAppSCA01 ---
[INFO] Configuring Jetty for project: qmAppSCA01
[INFO] Webapp source directory =
/home/imracif/qm.01/qmAppSCA01/src/main/webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = /home/imracif/qm.01/qmAppSCA01/target/classes
2011-05-22 22:56:45.543:INFO::Logging to STDERR via
org.mortbay.log.StdErrLog
[INFO] Context path = /qmAppSCA01
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file =
/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = /home/imracif/qm.01/qmAppSCA01/src/main/webapp
[INFO] Starting jetty 6.1.26 ...
2011-05-22 22:56:45.695:INFO::jetty-6.1.26
2011-05-22 22:56:46.006:INFO::No Transaction manager found - if your webapp
requires one, please configure one.
May 22, 2011 10:56:46 PM
org.apache.tuscany.sca.host.webapp.TuscanyContextListener contextInitialized
INFO: BCA Query Module WebAPP is starting.
May 22, 2011 10:56:46 PM
org.apache.tuscany.sca.host.webapp.WebAppServletHost initContextPath
INFO: ContextPath: /qmAppSCA01
May 22, 2011 10:56:46 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: webapp domain: default
May 22, 2011 10:56:46 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/
May 22, 2011 10:56:48 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA-1.0-SNAPSHOT.jar
May 22, 2011 10:56:48 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA.jar
May 22, 2011 10:56:48 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController-1.0-SNAPSHOT.jar
May 22, 2011 10:56:48 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController.jar
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryComposerComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryExecutorComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.host.webapp.TuscanyContextListener contextInitialized
SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
Throwable occurred: java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
       at
org.apache.tuscany.sca.host.webapp.TuscanyContextListener.contextInitialized(TuscanyContextListener.java:39)
       at
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
       at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
       at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
       at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
       at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
       at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:202)
       at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:314)
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:124)
       ... 44 more
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: webapp domain: default
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA-1.0-SNAPSHOT.jar
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA.jar
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController-1.0-SNAPSHOT.jar
May 22, 2011 10:56:49 PM org.apache.tuscany.sca.node.impl.NodeFactoryImpl
loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController.jar
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryComposerComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}]
(DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryExecutorComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter init
SEVERE: org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
Throwable occurred: java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
       at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
       at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
       at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
       at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
       at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
       at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
       at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.analyzeProblems(NodeFactoryImpl.java:202)
       at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.java:314)
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:124)
       ... 46 more
2011-05-22
22:56:49.600:WARN:/qmAppSCA01:org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001]
Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001]
Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
       at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
       at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
       at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
       at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
       at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
       at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
       at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-05-22 22:56:49.609:WARN::failed tuscany.qmAppSCA01:
javax.servlet.ServletException: java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
2011-05-22 22:56:49.610:WARN::Failed startup of context
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@24432443
{/qmAppSCA01,/home/imracif/qm.01/qmAppSCA01/src/main/webapp}
javax.servlet.ServletException: java.lang.IllegalStateException:
org.oasisopen.sca.ServiceRuntimeException: [Composite: {
http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001] Duplicate
component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:67)
       at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
       at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
       at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
       at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
       at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
       at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-05-22 22:56:49.614:WARN::Nested in javax.servlet.ServletException:
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001]
Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent:
java.lang.IllegalStateException: org.oasisopen.sca.ServiceRuntimeException:
[Composite: {http://docs.oasis-open.org/ns/opencsa/sca/200912}] - [ASM50001]
Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
       at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:169)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.createAndStartNode(WebAppHelper.java:272)
       at
org.apache.tuscany.sca.host.webapp.WebAppHelper.init(WebAppHelper.java:226)
       at
org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(TuscanyServletFilter.java:63)
       at
org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
       at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
       at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
       at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
       at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
       at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:115)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
       at org.mortbay.jetty.Server.doStart(Server.java:224)
       at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
       at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:132)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:454)
       at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:396)
       at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:210)
       at
org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:184)
       at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
       at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
       at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
       at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
       at java.lang.reflect.Method.invoke(Method.java:611)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
       at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
2011-05-22 22:56:49.690:INFO::Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server

Re: duplicate component exception on AIX 64

Posted by Monosij Dutta-Roy <mo...@gmail.com>.
Simon -

Thanks for your response.

I have to tell you I am quite stumped myself. I moved the codebase that
compiles/deploys fine under Ubuntu with Maven - to the AIX box and try the
same Maven compile/deploy - which gives this error on 'mvn jetty:run'.

This is quite a basic app that I haven been working on (with help from you
all) and just needed to show its working scenario on the AIX box. In saying
that the AIX box has been set up (not by me) with various incarns of Java
and the environment is out of my control (to a certain extent it has been
made challenging). But like I mentioned Java6-64 is on it and Maven runs
fine on the Java 6 - its on deploy that I get this error.

I tried to see if another Jetty was or Tomcat was running on it but that is
not the error anyway. If there is anything I can check pls let me know and I
can send you necessary files as well. Do you need the composites? Also was
wondering if there was any issue to consider on deploying to a 64 bit
machine? Meaning does any option need to be set on Maven so as to download
the right binaries?

Thanks.

monosij

On Fri, May 27, 2011 at 8:18 AM, Simon Laws <si...@googlemail.com>wrote:

> Hi
>
> It's difficult to tell what going on without seeing the composite
> files. If this error is being validly reported it means that more than
> one component with the same name have been added to the domain level
> composite. Could this be the case?
>
> Regards
>
> Simon
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>

Re: duplicate component exception on AIX 64

Posted by Monosij Dutta-Roy <mo...@gmail.com>.
Thanks for your response. Yes I noticed that in the qmAppSCA01.war file it
was including the qmController.jar and also qmController-1.0-SNAPSHOT.jar.
And the error is in duplicate component exception there.

I don't understand why its suddenly including 2 jars as no changes has been
made between now and 4 weeks ago when I had stopped on this.

All I had done is upgrade my Ubuntu to 11.04. On the AIX it has been giving
this error from the time I deployed.

The Maven build script remains the same as is the rest of app.

I will recheck it again.

Thanks.

monosij

On Tue, Jun 21, 2011 at 5:12 AM, ant elder <an...@gmail.com> wrote:

> On Tue, Jun 21, 2011 at 9:45 AM, Simon Nash <na...@apache.org> wrote:
> > Monosij Dutta-Roy wrote:
> >>
> >> hi Simon -
> >> Attached are the composite files. The qmAppSCA01 is the webapp that
> calls
> >> the qmController which then uses domainBCA objects to return results.
> >>
> >> It gives the errors in duplicate components for QueryOrchestrator,
> >> QueryComposer, QueryExecutor which are in qmController composite. As you
> >> will see in the qmController composite each has been defined only once.
> >>
> >> Again this is only happening on the AIX box and not on Ubuntu.
> >>
> >> Please let me know anything else you need or may want me to try. I have
> >> been out for a while so took me some to get back with proper details.
> >>
> >> Thanks for your help.
> >>
> >> monosij
> >> ....
> >>
> >> SEVERE: [ASM50001] Duplicate component name: Composite =
> >> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> >> QueryOrchestratorComponent
> >> May 22, 2011 10:56:49 PM
> >> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
> >> [Composite: {http://docs.oasisopen.
> >> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
> >> SEVERE: [ASM50001] Duplicate component name: Composite =
> >> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> >> QueryComposerComponent
> >> May 22, 2011 10:56:49 PM
> >> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
> >> [Composite: {http://docs.oasisopen.
> >> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
> >> SEVERE: [ASM50001] Duplicate component name: Composite =
> >> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> >>
> >>
> >>
> >> On Fri, May 27, 2011 at 8:18 AM, Simon Laws <simonslaws@googlemail.com
> >> <ma...@googlemail.com>> wrote:
> >>
> >>    Hi
> >>
> >>    It's difficult to tell what going on without seeing the composite
> >>    files. If this error is being validly reported it means that more
> than
> >>    one component with the same name have been added to the domain level
> >>    composite. Could this be the case?
> >>
> >>    Regards
> >>
> >>    Simon
> >>
> >>    --
> >>    Apache Tuscany committer: tuscany.apache.org
> >> <http://tuscany.apache.org>
> >>    Co-author of a book about Tuscany and SCA: tuscanyinaction.com
> >>    <http://tuscanyinaction.com>
> >>
> >>
> > Hi Monosij,
> > As this is now happening on another system (as described in your private
> > email to me), I can only suggest that you have accidentally changed
> > something in your application and this is causing the qmController
> composite
> > to be deployed twice.  You might be able to work around it by removing
> the
> > qmController composite and putting the components from that composite
> > into one of your other composites that isn't reporting the duplicate
> > component problem.
> >
> >  Simon
> >
> >
>
> I had a quick look back in the logs you had in one of the earlier
> emails about this and can see this:
>
> May 22, 2011 10:56:46 PM
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> INFO: Loading contribution:
> file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/
> May 22, 2011 10:56:48 PM
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> INFO: Loading contribution:
>
> file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA-1.0-SNAPSHOT.jar
> May 22, 2011 10:56:48 PM
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> INFO: Loading contribution:
>
> file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA.jar
> May 22, 2011 10:56:48 PM
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> INFO: Loading contribution:
>
> file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController-1.0-SNAPSHOT.jar
> May 22, 2011 10:56:48 PM
> org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
> INFO: Loading contribution:
>
> file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController.jar
>
> See in there its loading the contributions domainBCA-1.0-SNAPSHOT.jar
> and domainBCA.jar, as well as qmController-1.0-SNAPSHOT.jar and
> qmController.jar. Those look like duplicates or each other don't they
> as its including jars with and without the version 1.0-SNAPSHOT? Could
> the problem be something in the build script with they way its
> assembling the .war and including the contributions?
>
>   ...ant
>

Re: duplicate component exception on AIX 64

Posted by ant elder <an...@gmail.com>.
On Tue, Jun 21, 2011 at 9:45 AM, Simon Nash <na...@apache.org> wrote:
> Monosij Dutta-Roy wrote:
>>
>> hi Simon -
>> Attached are the composite files. The qmAppSCA01 is the webapp that calls
>> the qmController which then uses domainBCA objects to return results.
>>
>> It gives the errors in duplicate components for QueryOrchestrator,
>> QueryComposer, QueryExecutor which are in qmController composite. As you
>> will see in the qmController composite each has been defined only once.
>>
>> Again this is only happening on the AIX box and not on Ubuntu.
>>
>> Please let me know anything else you need or may want me to try. I have
>> been out for a while so took me some to get back with proper details.
>>
>> Thanks for your help.
>>
>> monosij
>> ....
>>
>> SEVERE: [ASM50001] Duplicate component name: Composite =
>> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
>> QueryOrchestratorComponent
>> May 22, 2011 10:56:49 PM
>> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
>> [Composite: {http://docs.oasisopen.
>> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
>> SEVERE: [ASM50001] Duplicate component name: Composite =
>> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
>> QueryComposerComponent
>> May 22, 2011 10:56:49 PM
>> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
>> [Composite: {http://docs.oasisopen.
>> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
>> SEVERE: [ASM50001] Duplicate component name: Composite =
>> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
>>
>>
>>
>> On Fri, May 27, 2011 at 8:18 AM, Simon Laws <simonslaws@googlemail.com
>> <ma...@googlemail.com>> wrote:
>>
>>    Hi
>>
>>    It's difficult to tell what going on without seeing the composite
>>    files. If this error is being validly reported it means that more than
>>    one component with the same name have been added to the domain level
>>    composite. Could this be the case?
>>
>>    Regards
>>
>>    Simon
>>
>>    --
>>    Apache Tuscany committer: tuscany.apache.org
>> <http://tuscany.apache.org>
>>    Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>>    <http://tuscanyinaction.com>
>>
>>
> Hi Monosij,
> As this is now happening on another system (as described in your private
> email to me), I can only suggest that you have accidentally changed
> something in your application and this is causing the qmController composite
> to be deployed twice.  You might be able to work around it by removing the
> qmController composite and putting the components from that composite
> into one of your other composites that isn't reporting the duplicate
> component problem.
>
>  Simon
>
>

I had a quick look back in the logs you had in one of the earlier
emails about this and can see this:

May 22, 2011 10:56:46 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution: file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/
May 22, 2011 10:56:48 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA-1.0-SNAPSHOT.jar
May 22, 2011 10:56:48 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/domainBCA.jar
May 22, 2011 10:56:48 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController-1.0-SNAPSHOT.jar
May 22, 2011 10:56:48 PM
org.apache.tuscany.sca.node.impl.NodeFactoryImpl loadContributions
INFO: Loading contribution:
file:/home/imracif/qm.01/qmAppSCA01/src/main/webapp/WEB-INF/sca-contributions/qmController.jar

See in there its loading the contributions domainBCA-1.0-SNAPSHOT.jar
and domainBCA.jar, as well as qmController-1.0-SNAPSHOT.jar and
qmController.jar. Those look like duplicates or each other don't they
as its including jars with and without the version 1.0-SNAPSHOT? Could
the problem be something in the build script with they way its
assembling the .war and including the contributions?

   ...ant

Re: duplicate component exception on AIX 64

Posted by Simon Nash <na...@apache.org>.
Monosij Dutta-Roy wrote:
> hi Simon - 
> 
> Attached are the composite files. The qmAppSCA01 is the webapp that 
> calls the qmController which then uses domainBCA objects to return results.
> 
> It gives the errors in duplicate components for QueryOrchestrator, 
> QueryComposer, QueryExecutor which are in qmController composite. As you 
> will see in the qmController composite each has been defined only once.
> 
> Again this is only happening on the AIX box and not on Ubuntu.
> 
> Please let me know anything else you need or may want me to try. I have 
> been out for a while so took me some to get back with proper details.
> 
> Thanks for your help.
> 
> monosij
> ....
> 
> SEVERE: [ASM50001] Duplicate component name: Composite = 
> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> QueryOrchestratorComponent
> May 22, 2011 10:56:49 PM 
> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl 
> [Composite: {http://docs.oasisopen.
> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
> SEVERE: [ASM50001] Duplicate component name: Composite = 
> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> QueryComposerComponent
> May 22, 2011 10:56:49 PM 
> org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl 
> [Composite: {http://docs.oasisopen.
> org/ns/opencsa/sca/200912}] (DuplicateComponentName)
> SEVERE: [ASM50001] Duplicate component name: Composite = 
> {http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
> 
> 
> 
> On Fri, May 27, 2011 at 8:18 AM, Simon Laws <simonslaws@googlemail.com 
> <ma...@googlemail.com>> wrote:
> 
>     Hi
> 
>     It's difficult to tell what going on without seeing the composite
>     files. If this error is being validly reported it means that more than
>     one component with the same name have been added to the domain level
>     composite. Could this be the case?
> 
>     Regards
> 
>     Simon
> 
>     --
>     Apache Tuscany committer: tuscany.apache.org <http://tuscany.apache.org>
>     Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>     <http://tuscanyinaction.com>
> 
> 
Hi Monosij,
As this is now happening on another system (as described in your private
email to me), I can only suggest that you have accidentally changed
something in your application and this is causing the qmController composite
to be deployed twice.  You might be able to work around it by removing the
qmController composite and putting the components from that composite
into one of your other composites that isn't reporting the duplicate
component problem.

   Simon


Re: duplicate component exception on AIX 64

Posted by Monosij Dutta-Roy <mo...@gmail.com>.
hi Simon -

Attached are the composite files. The qmAppSCA01 is the webapp that calls
the qmController which then uses domainBCA objects to return results.

It gives the errors in duplicate components for QueryOrchestrator,
QueryComposer, QueryExecutor which are in qmController composite. As you
will see in the qmController composite each has been defined only once.

Again this is only happening on the AIX box and not on Ubuntu.

Please let me know anything else you need or may want me to try. I have been
out for a while so took me some to get back with proper details.

Thanks for your help.

monosij
....

SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryOrchestratorComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasisopen.
org/ns/opencsa/sca/200912}] (DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =
QueryComposerComponent
May 22, 2011 10:56:49 PM
org.apache.tuscany.sca.builder.impl.CompositeComponentTypeBuilderImpl
[Composite: {http://docs.oasisopen.
org/ns/opencsa/sca/200912}] (DuplicateComponentName)
SEVERE: [ASM50001] Duplicate component name: Composite = {
http://docs.oasis-open.org/ns/opencsa/sca/200912} Component =



On Fri, May 27, 2011 at 8:18 AM, Simon Laws <si...@googlemail.com>wrote:

> Hi
>
> It's difficult to tell what going on without seeing the composite
> files. If this error is being validly reported it means that more than
> one component with the same name have been added to the domain level
> composite. Could this be the case?
>
> Regards
>
> Simon
>
> --
> Apache Tuscany committer: tuscany.apache.org
> Co-author of a book about Tuscany and SCA: tuscanyinaction.com
>

Re: duplicate component exception on AIX 64

Posted by Simon Laws <si...@googlemail.com>.
Hi

It's difficult to tell what going on without seeing the composite
files. If this error is being validly reported it means that more than
one component with the same name have been added to the domain level
composite. Could this be the case?

Regards

Simon

-- 
Apache Tuscany committer: tuscany.apache.org
Co-author of a book about Tuscany and SCA: tuscanyinaction.com