Petals ESB Container

The server parameter 'petals.topology.url' does not work

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.1
  • Fix Version/s: 4.2.0
  • Component/s: Launcher
  • Security Level: Public
  • Description:
    Hide

    If:
    1) I move the file topology.xml from PETALS_HOME/conf to PETALS_HOME,
    2) I configure in the file server.properties the parameter 'petals.topology.url' to 'file:///PETALS_HOME/topology.xml'

    I get the following erreur when launching Petals:
    [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,941 Kernel Web service 'ServiceAssemblyStateService' has been added and is available at 'http://localhost:7600/petals/ws/ServiceAssemblyStateService'
    [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,972 Kernel Web service 'RuntimeService' has been added and is available at 'http://localhost:7600/petals/ws/RuntimeService'
    [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,987 Kernel Web service 'InformationService' has been added and is available at 'http://localhost:7600/petals/ws/InformationService'

    PEtALS ESB platform distribution successfully started - 25/08/10 09:37
    Command processing error : start
    java.io.IOException: Failed to reach the resource '/topology.xml'
    at org.ow2.petals.launcher.PlatformLauncher.getJMXClient(PlatformLauncher.java:85)
    at org.ow2.petals.launcher.AbstractLauncher.start(AbstractLauncher.java:191)
    at org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:147)
    at org.ow2.petals.distribution.platform.Main.main(Main.java:42)

    Show
    If: 1) I move the file topology.xml from PETALS_HOME/conf to PETALS_HOME, 2) I configure in the file server.properties the parameter 'petals.topology.url' to 'file:///PETALS_HOME/topology.xml' I get the following erreur when launching Petals: [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,941 Kernel Web service 'ServiceAssemblyStateService' has been added and is available at 'http://localhost:7600/petals/ws/ServiceAssemblyStateService' [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,972 Kernel Web service 'RuntimeService' has been added and is available at 'http://localhost:7600/petals/ws/RuntimeService' [Petals.Tools.WebServiceManagerImpl]-INFO 2010-08-25 09:37:11,987 Kernel Web service 'InformationService' has been added and is available at 'http://localhost:7600/petals/ws/InformationService' PEtALS ESB platform distribution successfully started - 25/08/10 09:37 Command processing error : start java.io.IOException: Failed to reach the resource '/topology.xml' at org.ow2.petals.launcher.PlatformLauncher.getJMXClient(PlatformLauncher.java:85) at org.ow2.petals.launcher.AbstractLauncher.start(AbstractLauncher.java:191) at org.ow2.petals.launcher.AbstractLauncher.launch(AbstractLauncher.java:147) at org.ow2.petals.distribution.platform.Main.main(Main.java:42)
  • Environment:
    Windows

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Thu, 31 Jan 2013 - 16:18:06 +0100

With the last version of Petals (4.1.0), the error is:

___   ____ __   ___    __    ____   ____ ____ ___  
    / _ \ / __// /_ / _ |  / /   / __/  / __// __// _ ) 
   / ___// _/ / __// __ | / /__ _\ \   / _/ _\ \ / _  | 
  /_/   /___/ \__//_/ |_|/____//___/  /___//___//____/  

Initializing server ...
Starting server ...
2013/01/31 16:16:06,678 GMT+0100 SEVERE [Petals.ConfigurationService] : Failed to start configuration service
org.ow2.petals.kernel.configuration.ConfigurationException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.loadTopology(ConfigurationServiceImpl.java:493)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.createConfiguration(ConfigurationServiceImpl.java:609)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:671)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
org.objectweb.fractal.api.control.IllegalLifeCycleException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java:0)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
Problem while starting PEtALS, try to stop PEtALS cleanly...
ERROR: null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
Caused by: org.ow2.petals.kernel.api.server.PetalsException: Failed to start PEtALS
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:194)
	... 6 more
Caused by: org.objectweb.fractal.api.control.IllegalLifeCycleException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java:0)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	... 6 more
Show
Christophe DENEUX added a comment - Thu, 31 Jan 2013 - 16:18:06 +0100 With the last version of Petals (4.1.0), the error is:
___   ____ __   ___    __    ____   ____ ____ ___  
    / _ \ / __// /_ / _ |  / /   / __/  / __// __// _ ) 
   / ___// _/ / __// __ | / /__ _\ \   / _/ _\ \ / _  | 
  /_/   /___/ \__//_/ |_|/____//___/  /___//___//____/  

Initializing server ...
Starting server ...
2013/01/31 16:16:06,678 GMT+0100 SEVERE [Petals.ConfigurationService] : Failed to start configuration service
org.ow2.petals.kernel.configuration.ConfigurationException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.loadTopology(ConfigurationServiceImpl.java:493)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.createConfiguration(ConfigurationServiceImpl.java:609)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:671)
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
org.objectweb.fractal.api.control.IllegalLifeCycleException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java:0)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
Problem while starting PEtALS, try to stop PEtALS cleanly...
ERROR: null
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.ow2.petals.launcher.PetalsLauncher.launchPetalsServer(PetalsLauncher.java:106)
	at org.ow2.petals.launcher.PetalsLauncher.main(PetalsLauncher.java:202)
Caused by: org.ow2.petals.kernel.api.server.PetalsException: Failed to start PEtALS
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:194)
	... 6 more
Caused by: org.objectweb.fractal.api.control.IllegalLifeCycleException: Can copy topology file from 'file:///home/cdeneux/workspace/PETALSESBCONT-209/petals-esb/target/petals-esb-4.2-SNAPSHOT/petals-esb-4.2-SNAPSHOT/conf/topology.xml'
	at org.ow2.petals.kernel.configuration.ConfigurationServiceImpl.startFc(ConfigurationServiceImpl.java:0)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcContentState(BasicControllerMixin.java:8128)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcStarted(BasicControllerMixin.java:8068)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.setFcStarted(INTERFACE[LifeCycleCoordinator])
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.setFcState(BasicControllerMixin.java:3105)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc$$0(BasicControllerMixin.java:4125)
	at org.objectweb.fractal.julia.generated.Cbd2013d7_0.startFc(BasicControllerMixin.java:7095)
	at org.objectweb.fractal.julia.generated.C18c4c884_0.startFc(INTERFACE[LifeCycleCoordinator])
	at org.ow2.petals.kernel.server.FractalHelper.startComponent(FractalHelper.java:360)
	at org.ow2.petals.kernel.server.PetalsServerImpl.startPetalsComposite(PetalsServerImpl.java:356)
	at org.ow2.petals.kernel.server.PetalsServerImpl.start(PetalsServerImpl.java:168)
	... 6 more
Hide
Christophe DENEUX added a comment - Thu, 31 Jan 2013 - 17:04:39 +0100 - edited

In fact the error of the previous comment is due to an error in the configured URL. With the right value, no error occurs, and the container correctly starts.

Please keep the stack trace on error to know its cause

PETALSESBCONT-53 is no more required to fix this issue

Show
Christophe DENEUX added a comment - Thu, 31 Jan 2013 - 17:04:39 +0100 - edited In fact the error of the previous comment is due to an error in the configured URL. With the right value, no error occurs, and the container correctly starts. Please keep the stack trace on error to know its cause PETALSESBCONT-53 is no more required to fix this issue
Hide
Christophe DENEUX added a comment - Fri, 1 Feb 2013 - 10:04:46 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Fri, 1 Feb 2013 - 10:04:46 +0100 Fixed in trunk
Hide
Christophe DENEUX added a comment - Wed, 6 Feb 2013 - 16:05:11 +0100

This issue is reopenned because if the topology is configured with an URL, an error occurs trying to stop the petals container with the script 'petals-esb.sh'

Show
Christophe DENEUX added a comment - Wed, 6 Feb 2013 - 16:05:11 +0100 This issue is reopenned because if the topology is configured with an URL, an error occurs trying to stop the petals container with the script 'petals-esb.sh'
Hide
Christophe DENEUX added a comment - Wed, 6 Feb 2013 - 17:10:10 +0100

Fixed in trunk

Show
Christophe DENEUX added a comment - Wed, 6 Feb 2013 - 17:10:10 +0100 Fixed in trunk

People

Dates

  • Created:
    Wed, 25 Aug 2010 - 09:49:18 +0200
    Updated:
    Wed, 6 Feb 2013 - 17:10:10 +0100
    Resolved:
    Wed, 6 Feb 2013 - 17:10:10 +0100