Petals ESB Container

Handling configuration resources

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 3.0.5, 3.0.6, 3.1, 3.1.1, 4.0.0
  • Fix Version/s: 4.2.0
  • Component/s: Configuration
  • Security Level: Public
  • Description:
    Hide

    NOTE : I am currently working on Petals ESB extensibility and lighweight (in memory) mode and I think I will share in the JIRA as improvment entries some problems I encounter.

    In petals-kernel : org.ow2.petals.kernel.configuration.ConfigurationServiceImpl#start, the server.properties file is retrieved from the classloader, a File object is then created (File serverPropsFile = new File(serverPropsURL.toURI().normalize()) and the file is not used but a stream is created from it.
    This type of handling does not allow using a server.properties file elsewhere than in the conf folder, using a server.properties as JAR resource raise an exception :

    Caused by: org.objectweb.fractal.api.control.IllegalLifeCycleException: URI is not hierarchical

    Solution is to not create the file since it is not used, getting the input stream is enough.

    Show
    NOTE : I am currently working on Petals ESB extensibility and lighweight (in memory) mode and I think I will share in the JIRA as improvment entries some problems I encounter. In petals-kernel : org.ow2.petals.kernel.configuration.ConfigurationServiceImpl#start, the server.properties file is retrieved from the classloader, a File object is then created (File serverPropsFile = new File(serverPropsURL.toURI().normalize()) and the file is not used but a stream is created from it. This type of handling does not allow using a server.properties file elsewhere than in the conf folder, using a server.properties as JAR resource raise an exception : Caused by: org.objectweb.fractal.api.control.IllegalLifeCycleException: URI is not hierarchical Solution is to not create the file since it is not used, getting the input stream is enough.
  • Environment:
    *

Activity

Christophe DENEUX made changes - Tue, 12 Mar 2013 - 08:13:47 +0100
Field Original Value New Value
Assignee Admin [ rnaudin ]
Priority Major [ 3 ]
Component/s Configuration [ 10257 ]
Christophe DENEUX made changes - Tue, 12 Mar 2013 - 08:14:32 +0100
Status New [ 10000 ] Open [ 10002 ]
Assignee Christophe DENEUX [ cdeneux ]
Christophe DENEUX made changes - Tue, 12 Mar 2013 - 08:14:35 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Tue, 12 Mar 2013 - 08:16:19 +0100

Your problem has been fixed moving the read of the server.properties at the petals-launcher level. So you can write your own launcher according to your needs.

Show
Christophe DENEUX added a comment - Tue, 12 Mar 2013 - 08:16:19 +0100 Your problem has been fixed moving the read of the server.properties at the petals-launcher level. So you can write your own launcher according to your needs.
Christophe DENEUX made changes - Tue, 12 Mar 2013 - 08:16:19 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 4.2.0 [ 10356 ]
Resolution Won't Fix [ 2 ]
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
893d 16h 59m
1
Christophe DENEUX
Tue, 12 Mar 2013 - 08:14:32 +0100
Open Open In Progress In Progress
3s
1
Christophe DENEUX
Tue, 12 Mar 2013 - 08:14:35 +0100
In Progress In Progress Resolved Resolved
1m 44s
1
Christophe DENEUX
Tue, 12 Mar 2013 - 08:16:19 +0100



People

Dates

  • Created:
    Thu, 30 Sep 2010 - 16:14:40 +0200
    Updated:
    Tue, 12 Mar 2013 - 08:16:19 +0100
    Resolved:
    Tue, 12 Mar 2013 - 08:16:19 +0100