/conf directory. It can be copyed and
+# customized in JONAS_BASE/conf directory
+######################
+
+# Enable the Security context propagation (for jrmp)
+# In case of Jeremie, this has no effect : You should modify jonathan.xml
+jonas.security.propagation true
+
+# Enable the Security manager
+# default value is true (if not set)
+# Setting this to false implies a colocated registry and setting in carol.properties:
+# carol.jvm.rmi.local.registry=true
+jonas.security.manager true
+
+# Enable csiv2
+jonas.csiv2.propagation true
+
+# Enable the Transaction context propagation
+jonas.transaction.propagation true
+
+# Set the name of log configuration file
+jonas.log.configfile trace
+
+# Set the list of the services launched in the JOnAS Server.
+# Possible services are: registry,jmx,thread,security,jtm,db,mail,dbm,resource,jms,ejb,ws,web,ear,ha,discovery
+# registry,jmx,jtm,ejb are mandatory
+# (registry and jmx are automatically started even if not present in the list)
+# Order in the list is important (see 'Configuring JOnAS services' in JOnAS documentation)
+#
+jonas.services registry,jmx,jtm,db,dbm,security,resource,ejb,ws,web,ear
+
+#
+###################### JOnAS Registry service configuration
+#
+# Set the name of the implementation class of the Registry service
+jonas.service.registry.class org.objectweb.jonas.registry.RegistryServiceImpl
+
+# Set the Registry launching mode
+# If set to 'automatic', the registry is launched in the same JVM as Application Server,
+# if it's not already started.
+# If set to 'collocated', the registry is launched in the same JVM as Application Server
+# If set to 'remote', the registry has to be launched before in a separate JVM
+jonas.service.registry.mode collocated
+
+#
+###################### JOnAS JMX service configuration
+#
+# Set the name of the implementation class of the jmx service
+jonas.service.jmx.class org.objectweb.jonas.jmx.JmxServiceImpl
+
+
+#
+###################### JOnAS EJB Container service configuration
+#
+# Set the name of the implementation class of the ejb service
+jonas.service.ejb.class org.objectweb.jonas.container.EJBServiceImpl
+
+# Set the list of directories that contains ejbjars that must be deployed by
+# the JOnAS Server at launch time.
+# Here should be given a coma-separated list of directories.
+# If the directory has a relative path, this path is relative from where the
+# Application Server is launched.
+# If the directory is not found it will be searched in JONAS_BASE/ejbjars/
+# directory.
+jonas.service.ejb.autoloaddir autoload
+
+# Set the list of ejbjars that must be deployed by the JOnAS Server at launch time.
+# Here should be given a coma-separated list of ejb-jar files names or standard XML deployment
+# descriptors files names.
+# If the file name has a relative path, this path is relative from where the
+# Application Server is launched.
+jonas.service.ejb.descriptors
+
+# Set the XML deployment descriptors parsing mode (with or without validation)
+jonas.service.ejb.parsingwithvalidation true
+
+# Set the size of the worker thread pool
+jonas.service.ejb.minworkthreads 3
+
+# Set the maximun size of the worker thread pool
+jonas.service.ejb.maxworkthreads 80
+
+# Set the max # of seconds that a thread will wait for work
+# This is used to shrink the worker thread pool back to minimum
+jonas.service.ejb.threadwaittimeout 60
+
+
+# If enabled, the GenIC tool will be called if :
+# - JOnAS version of the ejb-jar is not the same version than the running JOnAS instance
+# - Stubs/Skels stored in the ejb-jar are not the same than the JOnAS current protocols.
+# By default, this is enabled
+jonas.service.ejb.auto-genic true
+
+# Arguments for the auto GenIC
+#jonas.service.ejb.auto-genic.args.0 -invokecmd
+#jonas.service.ejb.auto-genic.args.1 -verbose
+
+
+#
+###################### JOnAS Web container service configuration
+#
+# Set the name of the implementation class of the web container service.
+jonas.service.web.class @cargo.jonas.webcontainer.class.name@
+
+# Set the list of directories that contains wars that must be deployed by
+# the JOnAS Server at launch time.
+# Here should be given a coma-separated list of directories.
+# If the directory has a relative path, this path is relative from where the
+# Application Server is launched.
+# If the directory is not found it will be searched in JONAS_BASE/webapps/
+# directory.
+jonas.service.web.autoloaddir autoload
+
+# Set the list of wars that must be depoyed by the JOnAS Server at launch time.
+# Here should be given a coma-separated list of war files names.
+# If the file name has a relative path, this path is relative from where the
+# Application Server is launched.
+jonas.service.web.descriptors
+
+# Set the XML deployment descriptors parsing mode for the WEB container
+# service (with or without validation).
+jonas.service.web.parsingwithvalidation true
+
+###################### JOnAS WebServices service configuration
+#
+# Set the name of the implementation class of the WebServices service.
+jonas.service.ws.class org.objectweb.jonas.ws.axis.AxisWSServiceImpl
+
+# Set the JServiceFactory to use
+jonas.service.ws.factory.class org.objectweb.jonas.ws.axis.JAxisServiceFactory
+
+# Set the XML deployment descriptors parsing mode for the WebServices
+# service (with or without validation).
+jonas.service.ws.parsingwithvalidation true
+
+# Set the WSDL Handler list for WSDL publication
+# A minimum of 1 WSDLHandler is required !
+# This property is set with a coma-separated list of WSDLHandler properties
+# file names (without the '.properties' suffix).
+# Ex: file1,uddi (while the properties file names are
+# file1.properties and uddi.properties)
+jonas.service.ws.wsdlhandlers file1
+
+# Set the Generator to use with wsgen
+jonas.service.ws.wsgen.generator.factory org.objectweb.jonas_ws.wsgen.generator.ews.EWSGeneratorFactory
+
+# Set the prefix that will be used to compute URL endpoints for web services
+#jonas.service.ws.url-prefix http://www.mydomain.com:8888
+
+# Set automatic WsGen mode on/off
+# If set to 'true', WsGen will automatically be applied to all deployed archives (EjbJars, Webapps, Applications)
+# default to 'true'
+#jonas.service.ws.auto-wsgen.engaged false
+
+#
+###################### JOnAS JAXR service configuration (Deprecated)
+#
+# Set the name of the implementation class of the Registry service
+#jonas.service.jaxr.class org.objectweb.jonas.jaxr.JAXRServiceImpl
+
+# Set the jonas jaxr factories.
+# This property is set with a coma-separated list of JAXRFactory properties
+# file names (without the '.properties' suffix).
+# Ex: jaxr,jaxr2 (while the properties file names are
+# jaxr.properties and jaxr2.properties)
+#jonas.service.jaxr.factories jaxr
+
+#
+###################### JOnAS EAR service configuration
+#
+# Set the name of the implementation class of the ear service.
+jonas.service.ear.class org.objectweb.jonas.ear.EarServiceImpl
+
+# Set the list of directories that contains ears that must be deployed by
+# the JOnAS Server at launch time.
+# Here should be given a coma-separated list of directories.
+# If the directory has a relative path, this path is relative from where the
+# Application Server is launched.
+# If the directory is not found it will be searched in JONAS_BASE/apps/
+# directory.
+jonas.service.ear.autoloaddir autoload
+
+# Set the list of ears that must be depoyed by the JOnAS Server at launch time.
+# Here should be given a coma-separated list of ear files names.
+# If the file name has a relative path, this path is relative from where the
+# Application Server is launched.
+jonas.service.ear.descriptors
+
+# Set the XML deployment descriptors parsing mode for the EAR service
+# (with or without validation).
+jonas.service.ear.parsingwithvalidation true
+
+#
+###################### JOnAS DBM Database service configuration
+#
+# Set the name of the implementation class of the dbm service
+jonas.service.dbm.class org.objectweb.jonas.dbm.DataBaseServiceImpl
+
+# Set the jonas DataSources. This enables the JOnAS server to load
+# the data dources, to load related jdbc drivers, and to register the data
+# sources into JNDI.
+# This property is set with a coma-separated list of Datasource properties
+# file names (without the '.properties' suffix).
+# Ex: Oracle1,InstantDB1 (while the Datasources properties file names are
+# Oracle1.properties and InstantDB1.properties)
+jonas.service.dbm.datasources @cargo.jonas.datasources.name@
+
+#
+###################### JOnAS Mail service configuration
+#
+# Set the name of the implementation class of the mail service
+jonas.service.mail.class org.objectweb.jonas.mail.MailServiceImpl
+
+# Set the jonas mail factories.
+# This property is set with a coma-separated list of MailFactory properties
+# file names (without the '.properties' suffix).
+# Ex: MailSession1,MailMimePartDS1 (while the properties file names are
+# MailSession1.properties and MailMimePartDS1.properties)
+jonas.service.mail.factories
+
+#
+###################### JOnAS JTM Transaction service configuration
+#
+
+# Set the name of the implementation class of the jtm service
+jonas.service.jtm.class org.objectweb.jonas.jtm.TransactionServiceImpl
+
+# Set the Transaction Manager launching mode.
+# If set to 'true', TM is remote: TM must be already launched in an other JVM.
+# If set to 'false', TM is local: TM is going to run into the same JVM
+# than the jonas Server.
+jonas.service.jtm.remote false
+
+# Set the default transaction timeout, in seconds.
+jonas.service.jtm.timeout 60
+
+
+#
+###################### JOnAS SECURITY service configuration
+#
+# Set the name of the implementation class of the security service
+jonas.service.security.class org.objectweb.jonas.security.JonasSecurityServiceImpl
+
+# Realm used for CsiV2 authentication
+jonas.service.security.csiv2.realm @cargo.jonas.realm.name@
+
+# Realm used for Web Service authentication
+jonas.service.security.ws.realm @cargo.jonas.realm.name@
+
+# Registration of realm resources into JNDI
+# Disable by default so configuration is not available with clients
+jonas.service.security.realm.jndi.registration false
+
+# Enable security context check on Remote Login Module
+jonas.security.context.check false
+
+# Path to the keystore file
+jonas.security.context.check.keystoreFile /tmp/keystore
+
+# Pass used for the keystore file
+jonas.security.context.check.keystorePass keystorepass
+
+# Alias (stored in the keystore)
+jonas.security.context.check.alias FB
+
+#
+###################### JOnAS JMS service configuration
+#
+# Set the name of the implementation class of the jms service
+jonas.service.jms.class org.objectweb.jonas.jms.JmsServiceImpl
+
+# Indicates the Jms service must be started with this class for administering the mom
+jonas.service.jms.mom org.objectweb.jonas_jms.JmsAdminForJoram
+
+# Set the Jms Server launching mode
+# If set to 'true' it is launched in the same JVM as Application Server
+# If set to 'false' Jms Server is launched in a separate JVM
+jonas.service.jms.collocated true
+
+# Set to the url connexion when the Jms server is not collocated
+#jonas.service.jms.url joram://localhost:16010
+
+# Set the list of administered objects topics to be created at Application Server launching time
+# Note : When using resource service (default configuration), topics should go in joram-admin.cfg file
+jonas.service.jms.topics sampleTopic
+
+# Set the list of administered objecst queuess to be created at Application Server launching time
+# Note : When using resource service (default configuration), queues should go in joram-admin.cfg file
+jonas.service.jms.queues sampleQueue
+
+#
+###################### JOnAS J2CA resource service configuration
+#
+# Set the name of the implementation class of the J2CA resource service
+jonas.service.resource.class org.objectweb.jonas.resource.ResourceServiceImpl
+
+# Set the list of directories that contains rars that must be deployed by
+# the JOnAS Server at launch time.
+# Here should be given a comma-separated list of directories.
+# If the directory has a relative path, this path is relative from where the
+# Application Server is launched.
+# If the directory is not found it will be searched in JONAS_BASE/rars/
+# directory.
+jonas.service.resource.autoloaddir autoload
+
+# Set the XML connector deployment descriptors parsing mode (with or without validation)
+jonas.service.resource.parsingwithvalidation true
+
+# Set the min size of the worker thread pool used for all J2CA 1.5 Resource Adapters deployed
+jonas.service.resource.minworkthreads 5
+
+# Set the max size of the worker thread pool used for all J2CA 1.5 Resource Adapters deployed
+jonas.service.resource.maxworkthreads 80
+
+# Set the max # of seconds that a thread will wait for work
+# This is used to shrink the worker thread pool back to minimum
+jonas.service.resource.threadwaittimeout 60
+
+# Set the max # of seconds of execution time for a work object
+# This functionality may not be supported by all Resource Adapter
+jonas.service.resource.execworktimeout 0
+
+# Set the list of Resource Adapter to be used.
+# This enables the JOnAS server to configure the resource adapter and register it into JNDI.
+# This property is set with a coma-separated list of rar file names
+# (with/without the '.rar' suffix).
+# Ex: XXXX,YYYY (while the rar file names are XXXX.rar and YYYY.rar)
+jonas.service.resource.resources
+
+###################### JOnAS DB service configuration
+#
+# Set the name of the implementation class of the db service (hsql for example)
+jonas.service.db.class org.objectweb.jonas.db.hsqldb.HsqlDBServiceImpl
+jonas.service.db.port 9001
+jonas.service.db.dbname db_jonas
+jonas.service.db.user1 jonas:jonas
+#jonas.service.db.user2 login:password
+
+###################### JOnAS Discovery service
+#
+# The server is not a master, unless this ligne is uncommented
+#jonas.service.discovery.master = true
+# For master servers, configure the client source port with this property
+jonas.service.discovery.source.port=9888
+#
+# Set the name of the implementation class and initialization parameters
+jonas.service.discovery.class=org.objectweb.jonas.discovery.DiscoveryServiceImpl
+jonas.service.discovery.ttl=1
+jonas.service.discovery.multicast.address=224.224.224.224
+jonas.service.discovery.multicast.port=9080
+
+# A multicast greeting message is sent out when discovery service is started.
+# The starting server listens at the port jonas.service.discovery.greeting.port
+# (default 9899) for a response for jonas.service.discovery.greeting.timeout miliseconds
+# (default 1000 ms). If a pre-existing server has the same server name as this one,
+# this server's discovery service will be terminated.
+
+#jonas.service.discovery.greeting.port=9899
+#jonas.service.discovery.greeting.timeout=1000
+
+###################### JOnAS HA service configuration
+#
+# Set the name of the implementation class of the HA service.
+jonas.service.ha.class org.objectweb.jonas.ha.HaServiceImpl
+
+# Set the group communication framework to use
+jonas.service.ha.gcl jgroups
+
+# Set the JGroups configuration file name
+jonas.service.ha.jgroups.conf jgroups-ha.xml
+
+# Set the JGroups group name
+jonas.service.ha.jgroups.groupname jonas-rep
+
+# Set the SFSB backup info timeout. The info stored in the backup node is removed when the timer expires.
+jonas.service.ha.timeout 600
+
+# Set the datasource for the tx table
+jonas.service.ha.datasource jdbc_1
+
+###################### JOnAS Thread Service
+#
+# Set the name of the implementation class of the thread service
+#
+jonas.service.thread.class org.objectweb.area.jonas.AreaService
+jonas.service.thread.file jonas_areas.xml
+jonas.service.thread.ejbareaname EJB
\ No newline at end of file
Index: containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/domain.xml
===================================================================
--- containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/domain.xml (revision 0)
+++ containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/domain.xml (revision 0)
@@ -0,0 +1,46 @@
+
+
+ jonas
+ A domain named jonas
+
+
+
+
+
+
+
+
\ No newline at end of file
Index: containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jonas-realm.xml
===================================================================
--- containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jonas-realm.xml (revision 0)
+++ containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jonas-realm.xml (revision 0)
@@ -0,0 +1,137 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @cargo.servlet.users.role@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ @cargo.servlet.users.user@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/trace.properties
===================================================================
--- containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/trace.properties (revision 0)
+++ containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/trace.properties (revision 0)
@@ -0,0 +1,311 @@
+# -----------------------------------------------------------------------
+# This is a default configuration file for monolog.
+#
+# 2 handlers have been defined : tty (System.out) and logf (file)
+#
+# Patterns for each handler may include these possible values :
+# %h the thread name
+# %O{1} the Class name (basename only)
+# %M the method name
+# %L the line number
+# %d the date
+# %l the level
+# %m the message itself
+# %n a new line
+#
+# A list of predefined loggers is given at the end of the file.
+# Each logger inherits from its parent for properties not defined.
+# The root logger is "root". It must always be defined.
+#
+# Each logger is associated with a level that can be one of :
+# ERROR | WARN | INFO | DEBUG
+#
+# -> More info on http://www.objectweb.org/monolog/doc.html
+# -----------------------------------------------------------------------
+
+# -----------------------------------------------------------------------
+# Define which wrapper to use (= javaLog)
+# -----------------------------------------------------------------------
+# For Log4j you need to add log4j.jar
+# log.config.classname org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory
+log.config.classname org.objectweb.util.monolog.wrapper.javaLog.LoggerFactory
+
+# -----------------------------------------------------------------------
+# tty : console handler
+# The switch attribute is used to log either on System.out or System.err
+# depending of the level of the log.
+# -----------------------------------------------------------------------
+handler.tty.type Console
+handler.tty.output Switch
+handler.tty.pattern %d : %O{1}.%M : %m%n
+
+# -----------------------------------------------------------------------
+# mesonly : console handler without header
+# -----------------------------------------------------------------------
+handler.mesonly.type Console
+handler.mesonly.output Switch
+handler.mesonly.pattern %m%n
+
+# -----------------------------------------------------------------------
+# logf : file handler
+# -----------------------------------------------------------------------
+handler.logf.type File
+handler.logf.output automatic
+handler.logf.pattern %d : %l : %h : %O{1}.%M : %m%n
+
+# -----------------------------------------------------------------------
+# wsdl : file handler
+# -----------------------------------------------------------------------
+handler.wsdl.type File
+handler.wsdl.output jonas_wsdls.log
+handler.wsdl.pattern %d : %l : %h : %O{1}.%M : %m%n
+
+# -----------------------------------------------------------------------
+# jmxHandler : jmx handler
+# -----------------------------------------------------------------------
+#handler.jmxHandler.type jmx
+#handler.jmxHandler.output System.out
+#handler.jmxHandler.pattern %m%n
+
+
+# -----------------------------------------------------------------------
+# logf : rolling file handler
+# -----------------------------------------------------------------------
+#handler.logf.type RollingFile
+#handler.logf.output jonas.log
+#handler.logf.pattern %d : %l : %h : %O{1}.%M : %m%n
+#handler.logf.fileNumber 2
+#handler.logf.maxSize 10000
+
+# -----------------------------------------------------------------------
+# logger definitions
+# -----------------------------------------------------------------------
+logger.root.handler.0 tty
+logger.root.handler.1 logf
+#logger.root.handler.2 jmxHandler
+
+logger.root.level @cargo.logging@
+
+logger.org.objectweb.level @cargo.logging@
+
+#-------
+# JOnAS
+#-------
+logger.org.objectweb.jonas.genic.handler.0 mesonly
+logger.org.objectweb.jonas.genic.additivity false
+logger.org.objectweb.jonas.genic.level @cargo.logging@
+#logger.org.objectweb.jonas.genic.level DEBUG
+logger.org.objectweb.jonas.genic.velocity.level ERROR
+#logger.org.objectweb.jonas_ejb.dd.level DEBUG
+#logger.org.objectweb.jonas_ejb.mijorm.level DEBUG
+
+logger.org.objectweb.jonas_ws.wsgen.handler.0 mesonly
+logger.org.objectweb.jonas_ws.wsgen.additivity false
+logger.org.objectweb.jonas_ws.wsgen.level @cargo.logging@
+logger.org.objectweb.jonas_lib.genbase.level @cargo.logging@
+logger.org.objectweb.jonas_lib.genclientstub.level @cargo.logging@
+
+
+logger.org.objectweb.jonas.publication.handler.0 wsdl
+logger.org.objectweb.jonas.publication.additivity false
+
+#logger.org.objectweb.common.level DEBUG
+
+#logger.org.objectweb.jonas.level DEBUG
+#logger.org.objectweb.jonas.admin.level DEBUG
+#logger.org.objectweb.jonas.db.level DEBUG
+#logger.org.objectweb.jonas.dbm.level DEBUG
+#logger.org.objectweb.jonas.discovery.level DEBUG
+#logger.org.objectweb.jonas.ear.level DEBUG
+#logger.org.objectweb.jonas.genic.level DEBUG
+#logger.org.objectweb.jonas.jca.level DEBUG
+#logger.org.objectweb.jonas.jca.process.level DEBUG
+#logger.org.objectweb.jonas.jca.pool.level DEBUG
+#logger.org.objectweb.jonas.jca.setter.level DEBUG
+#logger.org.objectweb.jonas.jca.management.level DEBUG
+#logger.org.objectweb.jonas.jdbc.level DEBUG
+#logger.org.objectweb.jonas.jdbc.RA.level DEBUG
+logger.org.objectweb.jonas.jdbc.sql.level DEBUG
+#logger.org.objectweb.jonas.jmx.level DEBUG
+#logger.org.objectweb.jonas.loader.level DEBUG
+#logger.org.objectweb.jonas.mail.level DEBUG
+#logger.org.objectweb.jonas.management.level DEBUG
+#logger.org.objectweb.jonas.domain.management.level DEBUG
+#logger.org.objectweb.jonas.management.j2eemanagement.level DEBUG
+#logger.org.objectweb.jonas.management.j2eemanagement.event.level DEBUG
+#logger.org.objectweb.jonas.naming.level DEBUG
+#logger.org.objectweb.jonas.registry.level DEBUG
+#logger.org.objectweb.jonas.security.level DEBUG
+#logger.org.objectweb.jonas.security.jacc.level DEBUG
+#logger.org.objectweb.jonas.security.ws.level DEBUG
+#logger.org.objectweb.jonas.security.csiv2.level DEBUG
+#logger.org.objectweb.jonas.security.csiv2_details.level DEBUG
+#logger.org.objectweb.jonas.server.level DEBUG
+#logger.org.objectweb.jonas.web.level DEBUG
+#logger.org.objectweb.jonas.webapp.jadmin.servlet.level DEBUG
+#logger.org.objectweb.jonas.ws.level DEBUG
+#logger.org.objectweb.jonas.jaxr.level DEBUG
+
+#logger.org.objectweb.jonas_core.level DEBUG
+
+#logger.org.objectweb.jonas_ejb.level DEBUG
+#logger.org.objectweb.jonas_ejb.coherence.level DEBUG
+#logger.org.objectweb.jonas_ejb.context.level DEBUG
+#logger.org.objectweb.jonas_ejb.dd.level DEBUG
+#logger.org.objectweb.jonas_ejb.factory.level DEBUG
+#logger.org.objectweb.jonas_ejb.genclass.level DEBUG
+#logger.org.objectweb.jonas_ejb.interp.level DEBUG
+#logger.org.objectweb.jonas_ejb.mdb.level DEBUG
+#logger.org.objectweb.jonas_ejb.mijorm.level DEBUG
+#logger.org.objectweb.jonas_ejb.query.level DEBUG
+#logger.org.objectweb.jonas_ejb.security.level DEBUG
+#logger.org.objectweb.jonas_ejb.ssfpool.level DEBUG
+#logger.org.objectweb.jonas_ejb.swapper.level DEBUG
+#logger.org.objectweb.jonas_ejb.synchro.level DEBUG
+#logger.org.objectweb.jonas_ejb.thread.level DEBUG
+#logger.org.objectweb.jonas_ejb.tx.level DEBUG
+logger.org.objectweb.jonas_ejb.deployment.digester.level FATAL
+#logger.org.objectweb.jonas_ejb.svc.level DEBUG
+#logger.org.objectweb.jonas_jms.level DEBUG
+#logger.org.objectweb.jonas_lib.deployment.work.level DEBUG
+
+#logger.org.objectweb.jonas_timer.level DEBUG
+
+#-------
+# JOTM
+#-------
+logger.org.objectweb.jotm.level @cargo.logging@
+#logger.org.objectweb.jotm.jta.level INFO
+#logger.org.objectweb.jotm.tm.level INFO
+#logger.org.objectweb.jotm.recovery.level INFO
+
+#-------
+# MEJB
+#-------
+#logger.org.objectweb.jonas.mejb.level DEBUG
+
+#-------
+# CAROL
+#-------
+logger.org.objectweb.carol.level @cargo.logging@
+#logger.org.objectweb.carol.rmi.level INFO
+#logger.org.objectweb.carol.jndi.level INFO
+#logger.org.objectweb.carol.cmi.level INFO
+#logger.org.objectweb.carol.cmi.des.level INFO
+#logger.org.objectweb.carol.cmi.jndi.level INFO
+#logger.org.objectweb.carol.cmi.registry.level INFO
+#logger.org.objectweb.carol.cmi.ha.level INFO
+#logger.org.objectweb.carol.cmi.stub.level INFO
+
+#-------
+# JORM
+#-------
+logger.org.objectweb.jorm.level WARN
+#logger.org.objectweb.jorm.compiler.level INFO
+#logger.org.objectweb.jorm.xml2mi.level DEBUG
+#logger.org.objectweb.jorm.mi2xml.level DEBUG
+#logger.org.objectweb.jorm.metainfo.level DEBUG
+#logger.org.objectweb.jorm.generator.level DEBUG
+logger.org.objectweb.jorm.generator.velocity.level ERROR
+#logger.org.objectweb.jorm.mapper.rdb.generator.level DEBUG
+
+#-------
+# MEDOR
+#-------
+logger.org.objectweb.medor.level WARN
+#logger.org.objectweb.medor.level DEBUG
+#logger.org.objectweb.medor.optim.rule.level DEBUG
+#logger.org.objectweb.medor.optim.rewriter.level DEBUG
+#logger.org.objectweb.medor.eval.rdb.level DEBUG
+
+#-------
+# JORAM
+#-------
+logger.fr.dyade.aaa.level ERROR
+#logger.fr.dyade.aaa.agent.Agent.level DEBUG
+#logger.fr.dyade.aaa.agent.Engine.level DEBUG
+#logger.fr.dyade.aaa.agent.Service.level DEBUG
+#logger.org.objectweb.joram.mom.Destination.level DEBUG
+#logger.org.objectweb.joram.mom.Proxy.level DEBUG
+#logger.org.objectweb.joram.client.jms.Client.level DEBUG
+#logger.org.objectweb.joram.client.connector.Adapter.level DEBUG
+
+#-------
+# SPEEDO
+#-------
+logger.org.objectweb.speedo.level WARN
+## GENERATION
+logger.org.objectweb.speedo.generation.SpeedoCompiler.level @cargo.logging@
+## RUN TIME
+logger.org.objectweb.speedo.level WARN
+logger.org.objectweb.speedo.init.level @cargo.logging@
+#logger.org.objectweb.speedo.po-manager-factory.level DEBUG
+#logger.org.objectweb.speedo.po-manager-switch.level DEBUG
+#logger.org.objectweb.speedo.po-manager-pool.level DEBUG
+#logger.org.objectweb.speedo.po-manager-instanciator.level DEBUG
+#logger.org.objectweb.speedo.po-manager.level DEBUG
+#logger.org.objectweb.speedo.po-manager.query.level DEBUG
+#logger.org.objectweb.speedo.mapper.level DEBUG
+#logger.org.objectweb.speedo.mapper.mapper.level DEBUG
+#logger.org.objectweb.speedo.mapper.mapper.sql.level DEBUG
+#logger.org.objectweb.speedo.mapper.jorm-factory.level INFO
+logger.org.objectweb.speedo.mapper.jorm-factory.class-properties.level @cargo.logging@
+#logger.org.objectweb.speedo.mapper.pool.level DEBUG
+#logger.org.objectweb.speedo.mapper.storage-manager.level DEBUG
+#logger.org.objectweb.speedo.memory-instance-manager.level DEBUG
+#logger.org.objectweb.speedo.workingset-manager.level DEBUG
+#logger.org.objectweb.speedo.naming-manager-factory.level DEBUG
+#logger.org.objectweb.speedo.transaction.level DEBUG
+#logger.org.objectweb.speedo.tpm.level DEBUG
+#logger.org.objectweb.speedo.tpm.transactional-persistence-manager.level DEBUG
+#logger.org.objectweb.speedo.tpm.cache-manager.level DEBUG
+#logger.org.objectweb.speedo.tpm.cache-manager.bgcleaner.level DEBUG
+#logger.org.objectweb.speedo.tpm.concurrency-manager.level DEBUG
+#logger.org.objectweb.speedo.query-manager.level DEBUG
+#logger.org.objectweb.speedo.query-manager.compiled-query.level DEBUG
+#logger.org.objectweb.speedo.query-manager.compiled-query.allocator.level DEBUG
+#logger.org.objectweb.speedo.query-manager.compiled-query.parser.level DEBUG
+#logger.org.objectweb.speedo.query-manager.compiled-query.parser.variable.level DEBUG
+#logger.org.objectweb.speedo.query-manager.compiled-query.parser.filter.level DEBUG
+#logger.org.objectweb.speedo.compiled-query-cache.level DEBUG
+#logger.org.objectweb.speedo.jca.level DEBUG
+#logger.org.objectweb.speedo.txStatistic.level DEBUG
+#logger.org.objectweb.speedo.jmx.level DEBUG
+
+# Struts
+logger.org.apache.struts.util.level WARN
+
+#------------------------------
+# Tomcat 5.5 - Catalina logging
+#------------------------------
+#logger.org.apache.catalina.core.ContainerBase.[jonas].level DEBUG
+#logger.org.apache.catalina.core.ContainerBase.[jonas].[localhost].level DEBUG
+#logger.org.apache.catalina.core.ContainerBase.[jonas].[localhost].[path].level DEBUG
+### example for jonasAdmin ###
+#logger.org.apache.catalina.core.ContainerBase.[jonas].[localhost].[jonasAdmin].level DEBUG
+
+#-----------------------------
+# Jetty 5 (Avoid log of MBean registration (info level)
+#-----------------------------
+logger.org.mortbay.util.jmx.ModelMBeanImpl.level ERROR
+
+# -----------------------------------------------------------------------
+# MX4J - also need to set system proprty mx4j.log.priority to the corresponding level
+# (fatal, error, warn, info, debug, trace)
+# -----------------------------------------------------------------------
+#logger.mx4j.level DEBUG
+
+#---------
+# JGroups
+#---------
+logger.org.jgroups.level FATAL
+
+# -----------------------------------------------------------------------
+# For Log file (tests)
+# -----------------------------------------------------------------------
+handler.logtest.type File
+handler.logtest.output jonas_tests.log
+handler.logtest.pattern %d : %l : %h : %O{1}.%M : %m%n
+logger.org.objectweb.jonas_tests.history.level @cargo.logging@
+logger.org.objectweb.jonas_tests.history.handler.0 logtest
+logger.org.objectweb.jonas_tests.history.additivity false
Index: containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jacorb.properties
===================================================================
--- containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jacorb.properties (revision 0)
+++ containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/jacorb.properties (revision 0)
@@ -0,0 +1,737 @@
+##
+## JacORB configuration options
+##
+
+########################################
+# #
+# Initial references configuration #
+# #
+########################################
+
+#
+# URLs where IORs are stored (used in orb.resolve_initial_service())
+# DO EDIT these! (Only those that you are planning to use,
+# of course ;-).
+#
+# The ORBInitRef references are created on ORB startup time. In the
+# cases of the services themselves, this may lead to exceptions being
+# displayed (because the services aren't up yet). These exceptions
+# are handled properly and cause no harm!
+
+#ORBInitRef.NameService=corbaloc::160.45.110.41:38693/StandardNS/NameServer-POA/_root
+#ORBInitRef.NameService=file:/c:/NS_Ref
+#ORBInitRef.NameService=http://www.x.y.z/~user/NS_Ref
+#ORBInitRef.TradingService=http://www.x.y.z/~user/TraderRef
+
+
+########################################
+# #
+# Export of corbaloc IORs #
+# #
+########################################
+
+# allow for more readable corbaloc URLs by mapping the
+# actual object key to an arbitrary string. The mapping
+# below would permit clients of a name service to
+# access it using corbaloc::ipaddress:portnum/NameService
+# Note: it is NOT necessary to define this property for
+# the name service here because this is done already in the
+# code of the ns implementation.
+# This mapping can be altered programatically by the proprietary
+# function ORB::addObjectKey(NameService, file:/home/rnc/NameSingleton.ior)
+#
+# The property also accepts the following mappings:
+# IOR, resource, jndi, URL (e.g. file, http)
+# examples:
+# jacorb.orb.objectKeyMap.NameService=StandardNS/NameServer-POA/_root
+# jacorb.orb.objectKeyMap.NameService=file:/home/rnc/NameSingleton.ior
+
+##################################
+# #
+# ORB version number output #
+# #
+##################################
+
+# if on, the ORB's version number and a copyright statement is printed
+# any time the ORB is initialized
+jacorb.orb.print_version=on
+
+##################################
+# #
+# Default Logging configuration #
+# #
+##################################
+
+# Name of the factory class that plugs in a given log kit
+# The default value is JacORB's own factory for the Apache
+# LogKit. Only edit (or uncomment) if you want a different
+# log kit.
+#jacorb.log.loggerFactory=org.jacorb.util.LogKitLoggerFactory
+
+# log levels:
+#
+# 0 = fatal errors only = "almost off" (FATAL ERRORS)
+# 1 = non-fatal errors and exceptions (ERROR)
+# 2 = important messages (WARN)
+# 3 = informational messages and exceptions (INFO)
+# 4 = debug-level output (DEBUG) (may confuse the unaware user :-)
+# NOTE: the name of this property has changed from jacorb.verbosity!!
+jacorb.log.default.verbosity=2
+
+# where does output go? Terminal is default
+#jacorb.logfile=LOGFILEPATH
+
+# If logging to file whether to append to existing file or overwrite
+jacorb.logfile.append=off
+
+# If jacorb.logfile.append is on, set rolling log size in kilobytes.
+# A value of 0 implies no rolling log
+jacorb.logfile.maxLogSize=0
+
+# hexdump outgoing messages
+jacorb.debug.dump_outgoing_messages=off
+
+# hexdump incoming messages
+jacorb.debug.dump_incoming_messages=off
+
+jacorb.util.tpool.log.verbosity=0
+
+##################################################
+# #
+# WARNING: The following properties should #
+# only be edited by the expert user. They #
+# can be left untouched in most cases! #
+# #
+##################################################
+
+
+
+################################
+# #
+# Basic ORB Configuration #
+# #
+################################
+
+# the GIOP minor version number to use for newly created IORs
+jacorb.giop_minor_version=2
+
+# number of retries if connection cannot directly be established
+jacorb.retries=1
+
+# how many msecs. do we wait between retries
+jacorb.retry_interval=500
+
+# log2 of maximum buffer size managed by the internal
+# buffer manager.
+#
+# This is NOT the maximum buffer size that
+# can be used, but just the largest size of buffers that
+# will be kept and managed. This value will be added to
+# an internal constant of 5, so the real value in bytes
+# is 2**(5+maxManagedBufSize-1). You only need to increase this
+# value if you are dealing with LOTS of LARGE data structures.
+# You may decrease it to make the buffer manager release large
+# buffers immediately rather than keeping them for later
+# reuse.
+jacorb.maxManagedBufSize=18
+
+# If this value is 0 an extra unlimited size buffer cache is created
+# for the CDROutputStreams. If this value is > 0 then the cache will
+# be purged every x msecs. If this value is -1 no caching of these
+# buffers will take place. This will reduce memory footprint at the
+# cost of decreased performance handling large data structures.
+# This value defaults to 0 if not set.
+#jacorb.bufferManagerMaxFlush=-1
+
+# Normally, a jacorb server will close the TCP/IP connection right
+# after sending a CloseConnection message. However, it may
+# occasionally happen that the client sends a message into the closed
+# connection because it hasn't handled the CloseConnection yet. To
+# avoid this situation, closing of the TCP/IP connection can be delayed.
+#jacorb.connection.delay_close=on
+#jacorb.connection.timeout_after_closeconnection=20000
+
+# Initial timeout for establishing a connection.
+#jacorb.connection.client.connect_timeout=0
+
+# Wait the specified number of msecs for a reply to a request. If
+# exceeded, a org.omg.CORBA.TIMEOUT exception will be thrown
+#jacorb.connection.client.pending_reply_timeout=0
+
+# client-side connection idle timeout, set no non-zero to stop
+# close the connection after so many msecs.
+#jacorb.connection.client.idle_timeout=0
+
+# shall the orb ignore pending messages when a connection idle timeout
+# is detected? If "on", the connection is closed and all pending
+# messages are cancelled. Default is "off"
+#jacorb.connection.client.timeout_ignores_pending_messages=off
+
+# whenever a network failure is detected, the orb can either
+# (infinitely) retry all pending requests, or propagate a COMM_FAILURE
+# back into the client code. Default is "off", i.e. throw a
+# COMM_FAILURE
+#jacorb.connection.client.retry_on_failure=off
+
+# max time (msecs) a server keeps a connection open if nothing happens
+#jacorb.connection.server.timeout=10000
+
+# Max no of accepted connections on the server.
+#jacorb.connection.max_server_connections=
+
+# The number of msecs that are waited until the next attempt to find
+# an idle connection is made (i.e. do not continuously spin)
+#jacorb.connection.wait_for_idle_interval=500
+
+# The class name of the SelectionStrategy class
+#jacorb.connection.selection_strategy_class=
+
+# The class name of the StatisticsProvider class
+#jacorb.connection.statistics_provider_class=
+
+#jacorb.reference_caching=off
+
+#
+# The following property specifies the class which is used for
+# reference caching. WeakHashtable uses WeakReferences, so entries
+# get gc'ed if only the Hashtable has a reference to them. This
+# is useful if you have many references to short-living non-persistent
+# CORBA objects. It is only available for java 1.2 and above.
+#
+# On the other hand the standard Hashtable keeps the references until
+# they are explicitely deleted by calling _release(). This is useful
+# for persistent and long-living CORBA objects.
+#
+#jacorb.hashtable_class=org.jacorb.util.WeakHashtable
+#
+jacorb.hashtable_class=java.util.Hashtable
+
+# use GIOP 1.2 byte order markers (since CORBA 2.4-5)
+jacorb.use_bom=off
+
+# add additional IIOP 1.0 profiles even if we are using IIOP 1.2
+jacorb.giop.add_1_0_profiles=off
+
+# Use DNS names in IORs
+jacorb.dns.enable=off
+
+# Compact Typecodes (0 - off, 1 - partial (not member_names), 2 - all)
+jacorb.compactTypecodes=0
+
+# Cache typecode on read
+jacorb.cacheTypecodes=off
+
+# Cache poa names
+jacorb.cachePoaNames=off
+
+###########################################
+# #
+# Interoperability #
+# #
+###########################################
+
+# Turn off indirection encoding for repeated typecodes. This fixes
+# interoperability with certain broken ORB's eg. Orbix2000
+jacorb.interop.indirection_encoding_disable=off
+
+# Iona Comet CORBA/COM bridge can incorrectly encode buffer lengths.
+# Enabling this property adds additional length checking and adjustment
+# for interoperability with Comet.
+jacorb.interop.comet=off
+
+# Some ORBs do not set a byte value of 1 as a CDR encoded boolean true
+# value. Enabling this property interprets any non zero CDR encoded
+# boolean value as true.
+jacorb.interop.lax_boolean_encoding=off
+
+# Control whether the method create_abstract_interface_tc performs
+# a validity check on the name parameter or not. Turning this check
+# off circumvents a bug in Sun's implementation of javax.rmi.CORBA.ValueHander,
+# which occasionally passes an invalid name (an empty string) to
+# ORBSingleton.create_abstract_interface_tc. If you are using RMI valuetypes,
+# you should turn this property off.
+jacorb.interop.strict_check_on_tc_creation=off
+
+# Custom-marshalled RMI valuetypes should be encoded as chunks, but some
+# ORBs are not able to decode chunked values. Disable this property for
+# interoperability with the ORB in Sun's JDK 1.4.2.
+jacorb.interop.chunk_custom_rmi_valuetypes=off
+###########################################
+# #
+# Socket Factories #
+# #
+###########################################
+
+# A factory design pattern is used for the creation of sockets and server
+# sockets.
+# The jacorb.net.socket_factory property can be used to configure
+# a socket factory that must implement the operations defined in the
+# interface org.jacorb.orb.factory.SocketFactory.
+# The jacorb.net.server_socket_factory property can be used to configure a
+# server socket factory that must implement the operations defined in the
+# interface org.jacorb.orb.factory.ServerSocketFactory.
+#
+#jacorb.net.socket_factory=org.jacorb.orb.factory.DefaultSocketFactory
+#jacorb.net.server_socket_factory=org.jacorb.orb.factory.DefaultServerSocketFactory
+#jacorb.net.socket_factory=org.jacorb.orb.factory.PortRangeSocketFactory
+#jacorb.net.server_socket_factory=org.jacorb.orb.factory.PortRangeServerSocketFactory
+#
+# Additional socket factores are supported that allow for the configuration
+# of maximum and minimum port numbers that can be used. This can be used to
+# enable firewall traversal via a fixed port range. To use these socket factories
+# configure one or both of the following property pairs. The first property pair
+# configures the client socket factory and the second pair the server socket
+# factory.
+#
+#jacorb.net.socket_factory.port.min
+#jacorb.net.socket_factory.port.max
+#jacorb.net.server_socket_factory.port.min
+#jacorb.net.server_socket_factory.port.max
+
+###########################################
+# #
+# BiDirectional GIOP #
+# #
+###########################################
+
+# uncomment this initializer if you want to use BiDirectional GIOP
+
+#org.omg.PortableInterceptor.ORBInitializerClass.bidir_init=org.jacorb.orb.giop.BiDirConnectionInitializer
+
+
+###########################################
+# #
+# Proxy address in IOR #
+# #
+###########################################
+
+#
+# with these two properties it is possible to
+# tell the ORB what IP/port IORs should contain,
+# if the ServerSockets IP/port can't be used
+# (e.g. for traffic through a firewall).
+#
+# WARNING: this is just "dumb" replacing, so you
+# have to take care of your configuration!
+#
+
+#jacorb.ior_proxy_host=1.2.3.4
+#jacorb.ior_proxy_port=4711
+
+
+###########################################
+# #
+# The Object Adapter Internet Address #
+# #
+###########################################
+
+# IP address on multi-homed host (this gets encoded in
+# object references). NOTE: Adresses like 127.0.0.X
+# will only be accessible from the same machine!
+#OAIAddr=1.2.3.4
+#OAPort=4711
+
+
+############################
+# #
+# Default Interceptors #
+# Please leave them in! #
+# #
+############################
+org.omg.PortableInterceptor.ORBInitializerClass.standard_init=org.jacorb.orb.standardInterceptors.IORInterceptorInitializer
+
+
+
+###############################################
+# #
+# Implementation Repository Configuration #
+# #
+###############################################
+# Switch off to avoid contacting the ImR on every server start-up
+jacorb.use_imr=off
+
+# Switch off if you don't want to write the ImR address into server IORs
+# (ignored if jacorb.use_imr=off)
+jacorb.use_imr_endpoint=on
+
+# if set to "on", servers that don't already have an entry on their
+# first call to the imr, will get automatically registered. Otherwise,
+# an UnknownServer exception is thrown.
+jacorb.imr.allow_auto_register=off
+
+# if set to "on", the imr will try to "ping" every object reference,
+# that it is going to return. If the reference is not alive, TRANSIENT
+# is thrown.
+jacorb.imr.check_object_liveness=off
+
+ORBInitRef.ImplementationRepository=http://www.x.y.z/~user/ImR_Ref
+
+jacorb.imr.table_file=Z:\table.dat
+jacorb.imr.backup_file=z:\backup.dat
+jacorb.imr.ior_file=/home/bwana/brose/public_html/ImR_Ref
+# Time (msecs) that the implementation will wait for a started server to register.
+jacorb.imr.timeout=
+
+# Host for ImR endpoint
+jacorb.imr.endpoint_host=
+# Port number for IMR endpoint
+jacorb.imr.endpoint_port_number=
+
+# how many millisecs should the imr wait, until a connection from an
+# application client is terminated. Default is 2000.
+jacorb.imr.connection_timeout=2000
+
+# the implementation name, should be set to a different
+# name in the code of persistent servers
+jacorb.implname=StandardImplName
+
+#
+# This is supposed to be a generic startup string for everything
+# that calls Runtime.exec(). Might be replaced by jaco[.bat].
+#
+jacorb.java_exec=java -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
+
+# with these two properties it is possible to
+# tell the ORB what IP / hostname and port the IMR IOR and IMRified server IORs should
+# contain, if the ServerSockets IP/port can't be used
+# (e.g. for traffic through a firewall).
+#
+# WARNING: this is just "dumb" replacement, so you
+# have to take care of your configuration!
+#
+#jacorb.imr.ior_proxy_host=1.2.3.4
+#jacorb.imr.ior_proxy_port=4711
+
+
+#########################
+# #
+# SSL Configuration #
+# #
+#########################
+
+#
+# The port number used by SSL, will be dynmically assigned
+# by default
+#
+
+# This interceptor must be set if programs need access to
+# certificates using the CORBA Security API, SSL works also
+# without this interceptor
+
+#org.omg.PortableInterceptor.ORBInitializerClass.ForwardInit=org.jacorb.security.ssl.SecurityServiceInitializer
+#org.omg.PortableInterceptor.ORBInitializerClass.ForwardInit=org.jacorb.security.ssl.iaik.SecurityServiceInitializer
+
+# qualified classname of access decision object
+jacorb.security.access_decision=org.jacorb.security.level2.AccessDecisionImpl
+
+# list of qualified classnames of principal authenticator objects,
+# separated by commas (no whitespaces!). The first entry (that can
+# be successfully created) will be available through the
+# principal_authenticator property.
+jacorb.security.principal_authenticator=org.jacorb.security.level2.PrincipalAuthenticatorImpl
+
+# the qualified classname of the ssl socket factory class
+jacorb.ssl.socket_factory=org.jacorb.security.ssl.sun_jsse.SSLSocketFactory
+#jacorb.ssl.socket_factory=org.jacorb.security.ssl.iaik.SSLSocketFactory
+
+# the qualified classname of the ssl server socket factory class
+jacorb.ssl.server_socket_factory=org.jacorb.security.ssl.sun_jsse.SSLServerSocketFactory
+#jacorb.ssl.server_socket_factory=org.jacorb.security.ssl.iaik.SSLServerSocketFactory
+
+# IIOP/SSL parameters (numbers are hex values, without the leading "0x"):
+# NoProtection = 1
+# EstablishTrustInClient = 40
+# EstablishTrustInTarget = 20
+# mutual authentication = 60
+# please see the programming guide for more explanation
+
+jacorb.security.support_ssl=off
+
+jacorb.security.ssl.client.supported_options=60
+jacorb.security.ssl.client.required_options=0
+
+jacorb.security.ssl.server.supported_options=60
+jacorb.security.ssl.server.required_options=0
+
+#
+# If set, the following two values will be placed in the IOR, if
+# "corbaloc:ssliop" ssliop.
+#
+# If not set, only EstablishTrustInTarget is used for both supported
+# and required options. EstablishTrustInClient is not set, and the
+# rest of the Association Options aren't currently used anyway.
+#jacorb.security.ssl.corbaloc_ssliop.supported_options=0
+#jacorb.security.ssl.corbaloc_ssliop.required_options=0
+
+# The name and location of the keystore. This may be absolute or
+# relative to the home directory.
+#
+# NOTE (for Sun JSSE users): The "javax.net.ssl.trustStore[Password]"
+# properties don't seem to take effect, so you may want to add trusted
+# certificates to "normal" keystores. In this case, please set the
+# property "jacorb.security.jsse.trustees_from_ks"is to "on", so trusted
+# certificates are taken from the keystore instead of a dedicated
+# truststore.
+jacorb.security.keystore=
+jacorb.security.keystore_password=
+
+#
+# IAIK specific settings
+#
+
+
+# files with public key certs of trusted CAs
+#
+# WARNING: If no CA certs are present, the IAIK chain verifier will
+# accept ALL otherwise valid chains!
+#
+jacorb.security.trustees=
+
+# the name of the default key alias to look up in the keystore
+jacorb.security.default_user=
+jacorb.security.default_password=
+
+# have iaiks ssl classes print debug output to stdout
+jacorb.security.iaik_debug=off
+
+#
+# Sun JSSE specific settings
+#
+# Use the keystore to take trusted certs from.
+jacorb.security.jsse.trustees_from_ks=on
+
+# A comma-separated (no whitespaces!) list of cipher suite names. See
+# the JSSE docs on how to obtain the correct cipher suite strings
+jacorb.security.ssl.server.cipher_suites=
+jacorb.security.ssl.client.cipher_suites=
+
+# Csiv2 interceptor will add this component( as it is based on EJB XML specific descriptor)
+jacorb.security.ssl_components_added_by_ior_interceptor=on
+
+
+#########################
+# #
+# POA Configuration #
+# #
+#########################
+
+# displays a GUI monitoring tool for servers
+jacorb.poa.monitoring=off
+
+# POA log levels:
+# 0 = fatal errors only = "almost off" (FATAL ERRORS)
+# 1 = non-fatal errors and exceptions (ERROR)
+# 2 = important messages (WARN)
+# 3 = informational messages and exceptions (INFO)
+# 4 = debug-level output (DEBUG) (may confuse the unaware user :-)
+jacorb.poa.log.verbosity=2
+
+# thread pool configuration for request processing
+jacorb.poa.thread_pool_max=20
+jacorb.poa.thread_pool_min=5
+
+# if set, request processing threads in thePOA
+# will run at this priority. If not set or invalid,
+# MAX_PRIORITY will be used.
+#jacorb.poa.thread_priority=
+
+# Properties controlling the POA's request queue. If queue_wait is off,
+# then if there are more than queue_max requests in the queue, the
+# client gets TRANSIENT exceptions for any requests. If queue_wait is on,
+# then the call blocks at the server side until no more than queue_min
+# requests are left in the queue. The new request is then delivered as usual.
+jacorb.poa.queue_wait=off
+jacorb.poa.queue_max=100
+jacorb.poa.queue_min=10
+
+# Set this to on for server-side checking of expired ReplyEndTimePolicy.
+# (This also applies to RelativeRoundtripTimeoutPolicy.) When this is on,
+# the clocks of the server and client machine need to be synchronized.
+#jacorb.poa.check_reply_end_time=off
+
+
+###################################
+# #
+# Transport Layer Configuration #
+# #
+###################################
+
+# Names of the factories classes for all installed transport plug-ins
+# (comma-separated list).
+
+#jacorb.transport.factories=org.jacorb.orb.iiop.IIOPFactories
+
+# ProfileId tags of all installed transports that should actually
+# listen on the server side. This is a comma-separated list of numbers,
+# each number must correspond to one ProfileId tag from a factory in
+# jacorb.transport.factories. In IORs produced by the server, the transport
+# profiles will appear in the order indicated by this list.
+
+#jacorb.transport.server.listeners=0
+
+# Name of a class that selects the transport profile to use on the
+# client side.
+
+#jacorb.transport.client.selector=org.jacorb.orb.DefaultProfileSelector
+
+
+##################################
+# #
+# Name Service Configuration #
+# #
+##################################
+
+# log levels:
+# 0 = fatal errors only = "almost off" (FATAL ERRORS)
+# 1 = non-fatal errors and exceptions (ERROR)
+# 2 = important messages (WARN)
+# 3 = informational messages and exceptions (INFO)
+# 4 = debug-level output (DEBUG) (may confuse the unaware user :-)
+
+jacorb.naming.log.verbosity=3
+
+#
+# name of the logger factory. Implement your own subclass of
+# org.jacorb.util.LoggerFactory and enter class name here to
+# customize logging behavior. Built-in default is org.jacorb.util.LogKitLoggerFactory
+#jacorb.log.loggerFactory=
+
+# Whether non active references are purged from name service
+# when list operation is invoked.
+
+jacorb.naming.purge=on
+
+# Whether resolve should return references without trying to
+# ping them to see if they're still alive first.
+
+jacorb.naming.noping=on
+
+# The file where the name server drops its IOR
+#jacorb.naming.ior_filename=c:/NS_Ref
+
+########################################
+# #
+# Trader configuration, please see #
+# src/trading/README.PROPERTIES for #
+# explanation #
+# #
+########################################
+
+jtrader.util.max_threads=10
+jtrader.util.min_threads=1
+jtrader.util.query_timeout=5000
+jtrader.impl.cache_max=100
+
+# boolean values, e.g. true / false
+#jtrader.modifiable_properties=
+#jtrader.dynamic_properties=
+#jtrader.proxy_offers=
+
+jtrader.debug=false
+jtrader.debug_verbosity=3
+
+#integer values
+jtrader.def_search_card=
+jtrader.max_search_card=
+jtrader.def_match_card=
+jtrader.max_match_card=
+jtrader.def_return_card=
+jtrader.max_return_card=
+jtrader.max_list=
+jtrader.def_hop_count=
+jtrader.max_hop_count=
+
+#FollowOptions
+#always=2
+#if_no_local=1
+#local_only=0
+jtrader.def_follow_policy=
+jtrader.max_follow_policy=
+jtrader.max_link_follow_policy=
+
+########################################################
+# #
+# Notification Service configuration, please see #
+# the JacORB ProgrammingGuide for a explanation #
+# #
+########################################################
+
+jacorb.notification.filter.thread_pool_size = 2
+
+jacorb.notification.proxyconsumer.thread_pool_size = 2
+
+jacorb.notification.proxysupplier.thread_pool_size = 4
+
+jacorb.notification.supplier.poll_intervall = 1000
+
+jacorb.notification.max_batch_size = 1
+
+jacorb.notification.max_events_per_consumer = 100
+
+jacorb.notification.order_policy = PriorityOrder
+
+jacorb.notification.discard_policy = PriorityOrder
+
+jacorb.notification.consumer.backout_interval = 5000
+
+jacorb.notification.consumer.error_threshold = 3
+
+# valid values: ThreadPool, ThreadPerProxy
+jacorb.notification.proxysupplier.threadpolicy = ThreadPool
+
+jacorb.notification.default_filter_factory = builtin
+
+# jacorb.notification.supplier.max_number = 10
+
+# jacorb.notification.start_time_supported = 10
+
+jacorb.notification.stop_time_supported = on
+
+jacorb.notification.proxy.destroy_causes_disconnect = on
+
+# Notification Service log levels:
+org.jacorb.notification.log.verbosity = INFO
+
+########################################
+# #
+# SAS configuration #
+# #
+########################################
+
+#commented (Uses JOnAS csiv2)
+
+# Use stateless mode (JOnAS)
+#jacorb.security.sas.stateful=false
+
+#jacorb.SAS.log.verbosity=INFO
+#jacorb.SAS.CSS.log.verbosity=INFO
+#jacorb.SAS.TSS.log.verbosity=INFO
+
+# This option defines the specific SAS context generator/validator
+# Currently supported contexts include:
+# NullContext - Sends a NULL SAS Context
+# GssUpContext - Uses GSSUP security
+# KerberosContext - uses Kerberos security
+# At least one context must be selected for SAS support
+#jacorb.security.sas.contextClass=org.jacorb.security.sas.NullContext
+#jacorb.security.sas.contextClass=org.jacorb.security.sas.GssUpContext
+#jacorb.security.sas.contextClass=org.jacorb.security.sas.KerberosContext
+
+# This initializer installs the SAS interceptors
+# Comment out this line if you do not want SAS support
+#org.omg.PortableInterceptor.ORBInitializerClass.SAS=org.jacorb.security.sas.SASInitializer
+
+# This option is used for GSSUP security and sets up the GSS Provider
+# Comment out this line if you are not using GSS UP authentication
+#org.omg.PortableInterceptor.ORBInitializerClass.GSSUPProvider=org.jacorb.security.sas.GSSUPProviderInitializer
+
+########################################
+# #
+# Custom configuration #
+# #
+########################################
+
+
+# any other custom properties can be added here.
+
+jacorb.config.log.verbosity=2
\ No newline at end of file
Index: containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/carol.properties
===================================================================
--- containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/carol.properties (revision 0)
+++ containers/jonas/src/main/resources/org/codehaus/cargo/container/internal/resources/jonas4x/carol.properties (revision 0)
@@ -0,0 +1,149 @@
+# Copyright (C) 2002-2005 ObjectWeb
+#
+# CAROL: Common Architecture for RMI ObjectWeb Layer
+#
+# This library is developed inside the ObjectWeb Consortium,
+# http://www.objectweb.org
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+#
+# --------------------------------------------------------------------------
+# $Id: carol.properties 8010 2006-02-13 16:54:11 +0000 (Mon, 13 Feb 2006) pelletib $
+# --------------------------------------------------------------------------
+
+# jonas rmi activation (iiop, irmi, jrmp, jeremie, cmi)
+carol.protocols=jrmp
+
+# RMI IRMI URL
+carol.irmi.url=rmi://localhost:1098
+
+# RMI JRMP URL
+carol.jrmp.url=rmi://localhost:@cargo.rmi.port@
+
+# RMI JEREMIE URL
+carol.jeremie.url=jrmi://localhost:2000
+
+# RMI IIOP URL
+carol.iiop.url=iiop://localhost:2001
+
+
+######################################################################
+# Configuration for CMI (clustering)
+######################################################################
+
+# java.naming.provider.url property
+# For a server : the URL on which the registry will be started
+# For clients : lists the registries available
+carol.cmi.url=cmi://localhost:2002
+
+# JGroups configuration file
+carol.cmi.jgroups.conf=jgroups-cmi.xml
+
+# Multicast address used by the registries in the cluster
+# !!! Deprecated - Not used if carol.cmi.jgroups.conf is set
+#carol.cmi.multicast.address=224.0.0.35:35467
+
+# IP address or network mask of the local network interface to use to send
+# multicast messages
+# Needed only when the server has several network interfaces and the multicast
+# messages do not go through to interface you want them to use
+# Works only on JDK 1.4
+# !!! Deprecated - Not used if carol.cmi.jgroups.conf is set
+#carol.cmi.multicast.itf 192.168.25.0/24
+
+# Groupname for Javagroups. No need to change if don't know.
+carol.cmi.multicast.groupname=G1
+
+# Factor used for this server in wheighted round robin algorithms
+carol.cmi.rr.factor=100
+
+# If enabled, cluster stubs will print messages on some error cases
+carol.cmi.stub.debug=false
+
+
+######################################################################
+# Advanced Configuration for IRMI
+######################################################################
+# Exported objects will listen on this port for remote method
+# invocations.
+#A value of 0 will cause a random port to be selected.
+# This is the default value.
+# Warning : if the port is set (not 0) with the value 'n', be aware that
+# the port 'n + 1' will be used by the JMX server.
+# So, for the firewall configuration, you have to open the port numbers 'n'
+# and 'n+1'.
+carol.irmi.server.port=0
+
+# Use only a single interface when creating the registry
+# (specified in carol.irmi.url property)
+# Use all interfaces available [default configuration = false]
+carol.irmi.interfaces.bind.single=false
+
+######################################################################
+# Advanced Configuration for JRMP
+######################################################################
+# If true, local call with jrmp are optimized. If you get "ClassCastException
+# with 2 beans in different jars, you should set it at "false".
+carol.jvm.rmi.local.call=false
+
+# If true a local Naming context is used (to be used only with a collocated registry)
+carol.jvm.rmi.local.registry=false
+
+# The value of this port is used to set the port of the objects listener.
+# This allow to use this port for a firewall configuration.
+# If registry and server are on same host, the two ports to open are the following and the registry port.
+# 0 means random port [default configuration = 0]
+carol.jrmp.server.port=0
+
+# Use only a single interface when creating the registry
+# (specified in carol.jrmp.url property)
+# Use all interfaces available [default configuration = false]
+carol.jrmp.interfaces.bind.single=false
+
+
+######################################################################
+# Advanced Configuration for Jeremie
+######################################################################
+# The value of this port is used to set the port of the objects listener.
+# This allow to use this port for a firewall configuration.
+# If registry and server are on same host, the two ports to open are the following and the registry port.
+# 0 means random port [default configuration = 0]
+carol.jeremie.server.port=0
+
+######################################################################
+# Advanced Configuration for IIOP
+######################################################################
+# The value of this port is used to set the port of the objects listener.
+# This allow to use this port for a firewall configuration.
+# If registry and server are on same host, the two ports to open are the following and the registry port.
+# 0 means random port [default configuration = 0]
+carol.iiop.server.port=0
+
+# The value of this port is used to set the SSL port of the objects listener.
+# Note that this port musn't not be set to 0 as it is used for CsiV2.
+# but this port is used only if SSL mode is enable.
+# So by default, there is no listener on this port
+# [default configuration = not used]
+carol.iiop.server.sslport=2003
+
+# Delegate used by JOnAS for rmi-iiop protocol
+carol.iiop.PortableRemoteObjectClass=org.objectweb.jonas_lib.naming.JacORBPRODelegate
+
+
+######################################################################
+# Advanced JNDI Configuration
+######################################################################
+carol.jndi.java.naming.factory.url.pkgs=org.objectweb.jonas.naming
Index: containers/jonas/pom.xml
===================================================================
--- containers/jonas/pom.xml (revision 0)
+++ containers/jonas/pom.xml (revision 0)
@@ -0,0 +1,70 @@
+
+
+
+
+ 4.0.0
+
+ org.codehaus.cargo
+ cargo-core-containers
+ 1.0-SNAPSHOT
+
+ cargo-core-container-jonas
+ Cargo Core Jonas Container
+ jar
+ Core API implementation for Jonas containers
+
+
+
+ org.codehaus.cargo
+ cargo-core-api-generic
+ ${version}
+ test
+
+
+
+ org.apache.geronimo.specs
+ geronimo-j2ee-management_1.0_spec
+ 1.1
+
+
+
+ org.apache.geronimo.specs
+ geronimo-ejb_2.1_spec
+ 1.1
+
+
+
+
+
+
+ 1.4
+
+
+
+ mx4j
+ mx4j
+ 3.0.2
+
+
+ mx4j
+ mx4j-remote
+ 3.0.2
+
+
+
+
+
Index: api/container/src/main/java/org/codehaus/cargo/container/internal/util/ResourceUtils.java
===================================================================
--- api/container/src/main/java/org/codehaus/cargo/container/internal/util/ResourceUtils.java (revision 1492)
+++ api/container/src/main/java/org/codehaus/cargo/container/internal/util/ResourceUtils.java (working copy)
@@ -31,12 +31,14 @@
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
+import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLDecoder;
import java.util.Vector;
import org.apache.tools.ant.filters.util.ChainReaderHelper;
import org.apache.tools.ant.types.FilterChain;
+import org.codehaus.cargo.util.FileHandler;
import org.codehaus.cargo.util.log.LoggedObject;
/**
@@ -52,6 +54,7 @@
* @param resourceName The name of the resource
* @param destFile The file to which the contents of the resource should be copied
* @throws IOException If an I/O error occurs while copying the resource
+ * @deprecated use {@link #copyResource(String, String, FileHandler)} instead
*/
public void copyResource(String resourceName, File destFile) throws IOException
{
@@ -84,14 +87,52 @@
}
/**
+ * Copies a container resource from the JAR into the specified file.
+ *
+ * @param resourceName The name of the resource
+ * @param destFile The file to which the contents of the resource should be copied
+ * @param handler The file handler to use
+ * @throws IOException If an I/O error occurs while copying the resource
+ */
+ public void copyResource(String resourceName, String destFile, FileHandler handler) throws IOException
+ {
+ InputStream in = ResourceUtils.class.getResourceAsStream(resourceName);
+ if (in == null)
+ {
+ throw new IOException("Resource [" + resourceName + "] not found");
+ }
+
+ OutputStream out = null;
+ try
+ {
+ out = handler.getOutputStream( destFile );
+
+ byte[] buf = new byte[4096];
+ int numBytes;
+ while ((numBytes = in.read(buf)) > 0)
+ {
+ out.write(buf, 0, numBytes);
+ }
+ }
+ finally
+ {
+ in.close();
+ if (out != null)
+ {
+ out.close();
+ }
+ }
+ }
+
+ /**
* Copies a container resource from the JAR into the specified file, thereby applying the
* specified filters.
*
- * @param resourceName The name of the resource, relative to the
- * org.apache.cactus.integration.ant.container package
+ * @param resourceName The name of the resource package
* @param destFile The file to which the contents of the resource should be copied
* @param filterChain The ordered list of filter readers that should be applied while copying
* @throws IOException If an I/O error occurs while copying the resource
+ * @deprecated use {@link #copyResource(String, String, FileHandler, FilterChain)} instead
*/
public void copyResource(String resourceName, File destFile, FilterChain filterChain)
throws IOException
@@ -144,6 +185,68 @@
}
/**
+ * Copies a container resource from the JAR into the specified file, thereby applying the
+ * specified filters.
+ *
+ * @param resourceName The name of the resource package
+ * @param destFile The file to which the contents of the resource should be copied
+ * @param handler The file handler to be used for file copy
+ * @param filterChain The ordered list of filter readers that should be applied while copying
+ * @throws IOException If an I/O error occurs while copying the resource
+ */
+ public void copyResource(String resourceName, String destFile, FileHandler handler, FilterChain filterChain)
+ throws IOException
+ {
+ InputStream resource = ResourceUtils.class.getResourceAsStream(resourceName);
+ if (resource == null)
+ {
+ throw new IOException("Resource [" + resourceName + "] not found");
+ }
+
+ BufferedReader in = null;
+ BufferedWriter out = null;
+ try
+ {
+ ChainReaderHelper helper = new ChainReaderHelper();
+ helper.setBufferSize(8192);
+ helper.setPrimaryReader(new BufferedReader(new InputStreamReader(resource)));
+ Vector filterChains = new Vector();
+ filterChains.add(filterChain);
+ helper.setFilterChains(filterChains);
+ in = new BufferedReader(helper.getAssembledReader());
+
+ out = new BufferedWriter(new OutputStreamWriter(handler.getOutputStream(destFile)));
+
+ String line;
+ while ((line = in.readLine()) != null)
+ {
+ if (line.length() == 0)
+ {
+ out.newLine();
+ }
+ else
+ {
+ out.write(line);
+ out.newLine();
+ }
+ }
+ }
+ finally
+ {
+ if (in != null)
+ {
+ in.close();
+ }
+ if (out != null)
+ {
+ out.close();
+ }
+ }
+ }
+
+
+
+ /**
* Search for the given resource and return the directory or archive that contains it.
*
* Doesn't work for archives in JDK 1.1 as the URL returned by getResource doesn't contain
Index: api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerFactory.java
===================================================================
--- api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerFactory.java (revision 1492)
+++ api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerFactory.java (working copy)
@@ -91,6 +91,11 @@
registerContainer("jo1x", ContainerType.INSTALLED,
"org.codehaus.cargo.container.jo.Jo1xInstalledLocalContainer");
+ registerContainer("jonas4x", ContainerType.REMOTE,
+ "org.codehaus.cargo.container.jonas.Jonas4xRemoteContainer");
+ registerContainer("jonas4x", ContainerType.INSTALLED,
+ "org.codehaus.cargo.container.jonas.Jonas4xInstalledLocalContainer");
+
registerContainer("oc4j9x", ContainerType.INSTALLED,
"org.codehaus.cargo.container.orion.Oc4j9xInstalledLocalContainer");
Index: api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerCapabilityFactory.java
===================================================================
--- api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerCapabilityFactory.java (revision 1492)
+++ api/generic/src/main/java/org/codehaus/cargo/generic/DefaultContainerCapabilityFactory.java (working copy)
@@ -66,6 +66,9 @@
registerContainerCapability("jo1x",
"org.codehaus.cargo.container.internal.ServletContainerCapability");
+
+ registerContainerCapability("jonas4x",
+ "org.codehaus.cargo.container.jonas.internal.JonasContainerCapability");
registerContainerCapability("oc4j9x",
"org.codehaus.cargo.container.internal.J2EEContainerCapability");
Index: api/generic/src/main/java/org/codehaus/cargo/generic/deployer/DefaultDeployerFactory.java
===================================================================
--- api/generic/src/main/java/org/codehaus/cargo/generic/deployer/DefaultDeployerFactory.java (revision 1492)
+++ api/generic/src/main/java/org/codehaus/cargo/generic/deployer/DefaultDeployerFactory.java (working copy)
@@ -84,6 +84,11 @@
registerDeployer("jo1x", DeployerType.INSTALLED,
"org.codehaus.cargo.container.jo.Jo1xInstalledLocalDeployer");
+
+ registerDeployer("jonas4x", DeployerType.REMOTE,
+ "org.codehaus.cargo.container.jonas.Jonas4xJsr160RemoteDeployer");
+ registerDeployer("jonas4x", DeployerType.INSTALLED,
+ "org.codehaus.cargo.container.jonas.Jonas4xInstalledLocalDeployer");
registerDeployer("resin2x", DeployerType.INSTALLED,
"org.codehaus.cargo.container.resin.ResinInstalledLocalDeployer");
Index: api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationFactory.java
===================================================================
--- api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationFactory.java (revision 1492)
+++ api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationFactory.java (working copy)
@@ -94,6 +94,15 @@
registerConfiguration("jo1x", ContainerType.INSTALLED, ConfigurationType.STANDALONE,
"org.codehaus.cargo.container.jo.Jo1xStandaloneLocalConfiguration");
+ registerConfiguration("jonas4x", ContainerType.REMOTE, ConfigurationType.RUNTIME,
+ "org.codehaus.cargo.container.jonas.JonasRuntimeConfiguration");
+ registerConfiguration("jonas4x", ContainerType.INSTALLED, ConfigurationType.EXISTING,
+ "org.codehaus.cargo.container.jonas.JonasExistingLocalConfiguration");
+ registerConfiguration("jonas4x", ContainerType.INSTALLED, ConfigurationType.STANDALONE,
+ "org.codehaus.cargo.container.jonas.JonasStandaloneLocalConfiguration");
+ registerConfiguration("jonas4x", ContainerType.REMOTE, ConfigurationType.STANDALONE,
+ "org.codehaus.cargo.container.jonas.JonasStandaloneLocalConfiguration");
+
registerConfiguration("orion1x", ContainerType.INSTALLED, ConfigurationType.STANDALONE,
"org.codehaus.cargo.container.orion.OrionStandaloneLocalConfiguration");
registerConfiguration("orion2x", ContainerType.INSTALLED, ConfigurationType.STANDALONE,
Index: api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationCapabilityFactory.java
===================================================================
--- api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationCapabilityFactory.java (revision 1492)
+++ api/generic/src/main/java/org/codehaus/cargo/generic/configuration/DefaultConfigurationCapabilityFactory.java (working copy)
@@ -93,6 +93,16 @@
registerConfigurationCapability("jo1x", ContainerType.INSTALLED,
ConfigurationType.STANDALONE, "org.codehaus.cargo.container.jo.internal."
+ "Jo1xStandaloneLocalConfigurationCapability");
+
+ registerConfigurationCapability("jonas4x", ContainerType.REMOTE,
+ ConfigurationType.RUNTIME, "org.codehaus.cargo.container.jonas.internal."
+ + "JonasRuntimeConfigurationCapability");
+ registerConfigurationCapability("jonas4x", ContainerType.INSTALLED,
+ ConfigurationType.EXISTING, "org.codehaus.cargo.container.jonas.internal."
+ + "JonasExistingLocalConfigurationCapability");
+ registerConfigurationCapability("jonas4x", ContainerType.INSTALLED,
+ ConfigurationType.STANDALONE, "org.codehaus.cargo.container.jonas.internal."
+ + "JonasStandaloneLocalConfigurationCapability");
registerConfigurationCapability("orion1x", ContainerType.INSTALLED,
ConfigurationType.STANDALONE, "org.codehaus.cargo.container.orion.internal."
Index: api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandler.java
===================================================================
--- api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandler.java (revision 1492)
+++ api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandler.java (working copy)
@@ -109,6 +109,32 @@
}
}
+ public String createDirectory(String parent, String file)
+ {
+ if (file == null)
+ {
+ file = "";
+ }
+
+ if (parent!= null && !parent.endsWith("/") &&
+ !file.startsWith("/"))
+ {
+ parent += "/";
+ }
+
+ String filename = parent == null ? file : parent + file;
+ try
+ {
+ FileObject fileObject = getFileSystemManager().resolveFile(filename);
+ fileObject.createFolder();
+ return fileObject.toString();
+ }
+ catch (FileSystemException e)
+ {
+ throw new CargoException("Failed to create folder [" + filename + "]", e);
+ }
+ }
+
public boolean exists(String path)
{
boolean result;
Index: api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandlerTest.java
===================================================================
--- api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandlerTest.java (revision 1492)
+++ api/util/src/test/java/org/codehaus/cargo/util/VFSFileHandlerTest.java (working copy)
@@ -20,6 +20,7 @@
package org.codehaus.cargo.util;
import junit.framework.TestCase;
+
import org.apache.commons.vfs.FileObject;
import org.apache.commons.vfs.impl.StandardFileSystemManager;
@@ -104,4 +105,23 @@
assertEquals(1, children.length);
assertEquals("ram:///some/directory/file.txt", children[0]);
}
+
+ public void testCreateDirectory()
+ {
+
+ this.fileHandler.createDirectory("ram://test", "test");
+ assertTrue(this.fileHandler.exists("ram:///test/test"));
+
+ this.fileHandler.createDirectory("ram://test2/", "test");
+ assertTrue(this.fileHandler.exists("ram:///test2/test"));
+
+ this.fileHandler.createDirectory("ram://test3", "/test");
+ assertTrue(this.fileHandler.exists("ram:///test3/test"));
+
+ this.fileHandler.createDirectory(null, "ram://test4");
+ assertTrue(this.fileHandler.exists("ram:///test4"));
+
+ this.fileHandler.createDirectory("ram://test5", null);
+ assertTrue(this.fileHandler.exists("ram:///test5"));
+ }
}
Index: api/util/src/main/java/org/codehaus/cargo/util/DefaultFileHandler.java
===================================================================
--- api/util/src/main/java/org/codehaus/cargo/util/DefaultFileHandler.java (revision 1492)
+++ api/util/src/main/java/org/codehaus/cargo/util/DefaultFileHandler.java (working copy)
@@ -154,8 +154,8 @@
public String createDirectory(String parentDir, String name)
{
File dir = new File(parentDir, name);
- dir.mkdirs();
- if (!dir.isDirectory())
+ boolean created = dir.mkdirs();
+ if (!created || !dir.isDirectory())
{
throw new CargoException("Couldn't create directory " + dir.getAbsolutePath());
}
Index: pom.xml
===================================================================
--- pom.xml (revision 1486)
+++ pom.xml (working copy)
@@ -30,7 +30,7 @@
pom
Cargo Core
- 0.9.1
+ ${version}
scm:svn:http://svn.codehaus.org/cargo/core/trunk
@@ -47,10 +47,16 @@
jmock
jmock
- 1.0.1
+ 1.2.0
test
+ jmock
+ jmock-cglib
+ 1.2.0
+ test
+
+
commons-vfs
commons-vfs
1.0