[Mashup-dev] svn commit r18818 - in
trunk/mashup/java/modules/integration: . test-resources/conf
keith at wso2.com
keith at wso2.com
Thu Jul 3 02:04:46 PDT 2008
Author: keith
Date: Thu Jul 3 02:04:46 2008
New Revision: 18818
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18818
Log:
Adding a separate server.xml for the integration test. If not test failures occure due to a WSAS patch we put in. Cannot get maven to load the patches first.
Added:
trunk/mashup/java/modules/integration/test-resources/conf/
trunk/mashup/java/modules/integration/test-resources/conf/server.xml
Modified:
trunk/mashup/java/modules/integration/pom.xml
Modified: trunk/mashup/java/modules/integration/pom.xml
URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/integration/pom.xml?rev=18818&r1=18817&r2=18818&view=diff
==============================================================================
--- trunk/mashup/java/modules/integration/pom.xml (original)
+++ trunk/mashup/java/modules/integration/pom.xml Thu Jul 3 02:04:46 2008
@@ -229,6 +229,14 @@
<move file="${dist.dir}/conf/wso2wsas.hbm.xml" todir="target/test-classes" />
<move file="${dist.dir}/conf/wso2wsas.properties" todir="target/test-classes" />
+ <filter token="HTTP_PORT" value="${httpPort}"/>
+ <filter token="HTTPS_PORT" value="${httpsPort}"/>
+ <filter token="COMMAND_PORT" value="${commandPort}"/>
+ <filter token="JMX_PORT" value="${jmxPort}"/>
+ <delete file="${dist.dir}/conf/server.xml"/>
+ <copy toDir="${dist.dir}/conf" filtering="on">
+ <fileset dir="test-resources/conf"/>
+ </copy>
</tasks>
</configuration>
</execution>
Added: trunk/mashup/java/modules/integration/test-resources/conf/server.xml
URL: http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/integration/test-resources/conf/server.xml?pathrev=18818
==============================================================================
--- (empty file)
+++ trunk/mashup/java/modules/integration/test-resources/conf/server.xml Thu Jul 3 02:04:46 2008
@@ -0,0 +1,526 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!--
+ Copyright 2007 WSO2, Inc. http://wso2.com
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<!--
+ This is the main server configuration file
+
+ ${wso2wsas.home} represents the wso2wsas.home system property.
+ Other system properties can be specified in a similar manner.
+-->
+<Server xmlns="http://www.wso2.org/products/wsas">
+
+ <Name>WSO2 Mashup Server</Name>
+ <!--
+ The version of this WSO2 Mashup Server distribution
+ -->
+ <Version>@mashup_version@</Version>
+
+ <!--
+ Host name of the machine hosting this server
+ e.g. www.wso2.org
+ -->
+ <!--
+ <HostName>www.wso2.org</HostName>
+ -->
+
+ <!--
+ The host name or IP address which should be used by a node
+ when it is part of a cluster. This host name or IP address
+ will be used by a node to advertise itself when it joins a cluster.
+ -->
+ <!--
+ <ClusteringHostName>127.0.0.1</ClusteringHostName>
+ -->
+
+ <!--
+ Ports used by WSAS
+ -->
+ <Ports>
+ <!--
+ Uncomment this section and provide the correct HTTP port
+ in the case of a generic server installation
+ -->
+ <!--
+ <HTTP>9762</HTTP>
+ -->
+
+ <!--
+ Uncomment this section and provide the correct HTTPS port
+ in the case of a generic server installation
+ -->
+ <!--
+ <HTTPS>9443</HTTPS>
+ -->
+
+ <!--
+ The JMX Port
+ -->
+ <JMX>@JMX_PORT@</JMX>
+
+ <!--
+ Port for listening to external commands such as START, STOP, RESTART
+ -->
+ <CommandListener>@COMMAND_PORT@</CommandListener>
+ </Ports>
+
+ <!--
+ Axis2 related configurations
+ -->
+ <Axis2Config>
+ <!--
+ Location of the Axis2 Services & Modules repository
+
+ This can be a directory in the local file system, or a URL.
+
+ e.g.
+ 1. /home/wso2wsas/repository - An absolute path
+ 2. repository - In this case, the path is relative to WSO2WSAS_HOME
+ 3. file:///home/wso2wsas/repository
+ 4. http://wso2wsas/repository
+ -->
+ <RepositoryLocation>${wso2mashup.home}</RepositoryLocation>
+
+ <!--
+ Location of the main Axis2 configuration descriptor file, a.k.a. axis2.xml file
+
+ This can be a file on the local file system, or a URL
+
+ e.g.
+ 1. /home/wso2wsas/conf/axis2.xml - An absolute path
+ 2. conf/axis2.xml - In this case, the path is relative to WSO2WSAS_HOME
+ 3. file:///home/wso2wsas/conf/axis2.xml
+ 4. http://wso2wsas/conf/axis2.xml
+ -->
+ <ConfigurationFile>${wso2mashup.home}/conf/axis2.xml</ConfigurationFile>
+
+ <!--
+ ServiceGroupContextIdleTime, which will be set in ConfigurationContex
+ for multiple clients which are going to access the same ServiceGroupContext
+ Default Value is 30 Sec.
+ -->
+ <ServiceGroupContextIdleTime>30000</ServiceGroupContextIdleTime>
+ </Axis2Config>
+
+ <RegistryConfig>
+ <ConfigurationFile>${wso2mashup.home}/conf/registry.xml</ConfigurationFile>
+ </RegistryConfig>
+
+ <UsermanagerConfig>
+ <DataBaseConnection>
+ <driverClass>org.apache.derby.jdbc.EmbeddedDriver</driverClass>
+ <url>jdbc:derby:../database/WSO2USERMANAGER_DB</url>
+ <username>wso2mashupServer</username>
+ <password>wso2mashupServer</password>
+ </DataBaseConnection>
+ </UsermanagerConfig>
+
+ <!--Used to configure your default email account that will be used to send emails from mashups
+ using the Email host Object-->
+ <EmailConfig>
+ <host>smtp.gmail.com</host>
+ <port>25</port>
+ <username>username at gmail.com</username>
+ <password>password</password>
+ </EmailConfig>
+
+ <!--Used to onfigure default IM accounts. If no login creadentials are given to the login method the login details
+ will be taken from here.-->
+ <IMConfig>
+ <!--Account details of the Yahoo account that will be used to send IMs-->
+ <Yahoo>
+ <username>username</username>
+ <password>password</password>
+ </Yahoo>
+ <!--Account details of the MSN account that will be used to send IMs-->
+ <MSN>
+ <username>username</username>
+ <password>password</password>
+ </MSN>
+ <!--Account details of the AIM account that will be used to send IMs-->
+ <AIM>
+ <username>username</username>
+ <password>password</password>
+ </AIM>
+ <!--Account details of the ICQ account that will be used to send IMs-->
+ <ICQ>
+ <username>username</username>
+ <password>password</password>
+ </ICQ>
+ <!--Account details of the Jabber account that will be used to send IMs-->
+ <Jabber>
+ <username>username at jabberServer</username>
+ <password>password</password>
+ </Jabber>
+ </IMConfig>
+
+
+ <!--Used to configure session management attributes-->
+ <SessionManagement>
+ <!--The time period (in days) to remember a user session, when one selects 'Remember Me' in the UI.
+ -->
+ <RememberMePeriod>14</RememberMePeriod>
+ </SessionManagement>
+
+ <!-- Used to enable or disable the Captcha functionality -->
+ <Captcha>
+ <EnableCaptcha>true</EnableCaptcha>
+ </Captcha>
+
+ <!--User to setup the primary (admin) user account when browser based local setup is not possible-->
+ <PrimaryUserConfig>
+ <!--Set CreatePrimary to 'true' to activate option-->
+ <CreatePrimary>false</CreatePrimary>
+ <PrimaryUser>admin</PrimaryUser>
+ <PrimaryPassword>admin</PrimaryPassword>
+ </PrimaryUserConfig>
+ <!--
+ Functions related to the Management Console
+ -->
+ <Management>
+ <!--
+ Enable the Management Console, true/false
+ -->
+ <EnableConsole>true</EnableConsole>
+
+ <AllowHTTPAccess>true</AllowHTTPAccess>
+ </Management>
+
+ <!--
+ The default user roles which will be created when WSO2 WSAS
+ is started up for the first time.
+ -->
+ <ServiceUserRoles>
+ <Role>
+ <Name>admin</Name>
+ <Description>Default Administrator Role</Description>
+ </Role>
+ <Role>
+ <Name>user</Name>
+ <Description>Default User Role</Description>
+ </Role>
+ </ServiceUserRoles>
+
+ <!--
+ Security configurations
+ -->
+ <Security>
+ <!--
+ KeyStore which will be used for encrypting/decrypting passwords
+ and other sensitive information.
+ -->
+ <KeyStore>
+ <!-- Keystore file location-->
+ <Location>${wso2wsas.home}/conf/wso2is.jks</Location>
+ <!-- Keystore type (JKS/PKCS12 etc.)-->
+ <Type>JKS</Type>
+ <!-- Keystore password-->
+ <Password>wso2is</Password>
+ <!-- Private Key alias-->
+ <KeyAlias>localhost</KeyAlias>
+ <!-- Private Key password-->
+ <KeyPassword>wso2is</KeyPassword>
+ </KeyStore>
+
+ <!--
+ The directory under which all other KeyStore files will be stored
+ -->
+ <KeyStoresDir>${wso2wsas.home}</KeyStoresDir>
+ </Security>
+
+ <!--
+ The temporary work directory which will be created under WSO2WSAS_HOME
+ -->
+ <WorkDirectory>${wso2wsas.home}/work</WorkDirectory>
+
+ <!--
+ The Database configurations
+ -->
+ <Database>
+ <!--
+ The Apache-Derby database home directory. This is relative to
+ the derby.system.home System property. This is where
+ the derby.properties file should reside.
+ -->
+ <Home>${wso2wsas.home}/conf</Home>
+ </Database>
+
+ <!--
+ House-keeping configuration
+ -->
+ <HouseKeeping>
+
+ <!--
+ true - Start House-keeping thread on WSO2 WSAS startup
+ false - Do not start House-keeping thread on WSO2 WSAS startup.
+ The user will run it manually as and when he wishes.
+ -->
+ <AutoStart>true</AutoStart>
+
+ <!--
+ The interval in *minutes*, between house-keeping runs
+ -->
+ <Interval>10</Interval>
+
+ <!--
+ The maximum time in *minutes*, temp files are allowed to live
+ in the system. Files/directories which were modified more than
+ "MaxTempFileLifetime" minutes ago will be removed by the
+ house-keeping task
+ -->
+ <MaxTempFileLifetime>30</MaxTempFileLifetime>
+ </HouseKeeping>
+
+ <!--
+ Configuration for handling different types of file upload.
+
+ To map all actions to a particular FileUploadExecutor, use
+ <Action>*</Action>
+ -->
+ <FileUploadConfig>
+ <Mapping>
+ <Actions>
+ <Action>service</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.ServiceFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>ejbinterface</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.EJBInterfaceFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>module</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.ModuleFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>keystore</Action>
+ <Action>certificate</Action>
+ <Action>*</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.AnyFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>spring</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.SpringFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>wsdd</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.WSDDFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>pojo</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.POJOFileUploadExecutor</Class>
+ </Mapping>
+ <Mapping>
+ <Actions>
+ <Action>jarZip</Action>
+ </Actions>
+ <Class>org.wso2.wsas.transport.fileupload.JarZipUploadExecutor</Class>
+ </Mapping>
+ </FileUploadConfig>
+
+ <!--
+ Processors which process special HTTP GET requests such as ?wsdl, ?policy etc.
+
+ In order to plug in a processor to handle a special request, simply add an entry to this
+ section.
+
+ The value of the Item element is the first parameter in the query string(e.g. ?wsdl)
+ which needs special processing
+
+ The value of the Class element is a class which implements
+ org.wso2.wsas.transport.HttpGetRequestProcessor
+ -->
+ <HttpGetRequestProcessors>
+ <Processor>
+ <Item>policy</Item>
+ <Class>org.wso2.wsas.transport.util.PolicyProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>cert</Item>
+ <Class>org.wso2.wsas.transport.util.CertProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>xsd</Item>
+ <Class>org.wso2.mashup.requestprocessor.XsdProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>info</Item>
+ <Class>org.wso2.mashup.requestprocessor.InfoProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>wsdl2</Item>
+ <Class>org.wso2.mashup.requestprocessor.Wsdl20Processor</Class>
+ </Processor>
+ <Processor>
+ <Item>wsdl</Item>
+ <Class>org.wso2.mashup.requestprocessor.Wsdl11Processor</Class>
+ </Processor>
+ <Processor>
+ <Item>stub</Item>
+ <Class>org.wso2.mashup.requestprocessor.StubProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>tryit</Item>
+ <Class>org.wso2.mashup.requestprocessor.TryItProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>source</Item>
+ <Class>org.wso2.mashup.requestprocessor.SourceViewProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>doc</Item>
+ <Class>org.wso2.mashup.requestprocessor.DocProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>sig</Item>
+ <Class>org.wso2.mashup.requestprocessor.SigProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>download</Item>
+ <Class>org.wso2.mashup.requestprocessor.DownloadProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>gadget</Item>
+ <Class>org.wso2.mashup.requestprocessor.GadgetProcessor</Class>
+ </Processor>
+ <Processor>
+ <Item>template</Item>
+ <Class>org.wso2.mashup.requestprocessor.TemplateProcessor</Class>
+ </Processor>
+ </HttpGetRequestProcessors>
+
+ <!--
+ Server intializing code. DefaultServerInitializer will intialize the WSAS specific
+ Configurations. It should be the first. All other intializers should come after that.
+ Use <Initializer/> elements to add new intializers.
+ -->
+ <ServerInitializers>
+ <Initializer>org.wso2.wsas.DefaultServerInitializer</Initializer>
+ <!--This is where the deployers needed for all user folders are added-->
+ <Initializer>org.wso2.mashup.transport.MashupServerInitializer</Initializer>
+ </ServerInitializers>
+
+ <!--
+ Admin services filterd from Admin service view if listered.
+ -->
+ <SystemFilter>
+ <ServiceGroups>
+ <Name>archive-validator</Name>
+ <Name>wsdlconverter</Name>
+ <Name>wsdlview</Name>
+ <Name>wso2wsas-administration</Name>
+ <Name>wso2codegen</Name>
+ <Name>TryItMockServiceGroup</Name>
+ <Name>wso2mashup-scraperService</Name>
+ <Name>wso2mashup-coreservices-servicemetadatalister</Name>
+ <Name>wso2mashup-coreservices-servicesharinghelper</Name>
+ <Name>wso2mashup-coreservices-JSStubGeneratorService</Name>
+ <Name>wso2mashup-adminServices</Name>
+ </ServiceGroups>
+ <Modules>
+ <Name>wso2wsas-admin</Name>
+ <Name>wso2statistics</Name>
+ <Name>wso2tracer</Name>
+ <Name>wso2mashup-admin</Name>
+ </Modules>
+ </SystemFilter>
+
+ <!--List of EJB Application servers, used for EJB Provider configuration -->
+ <EJBApplicationServers>
+ <Server>
+ <Id>jboss</Id>
+ <Name>Jboss AS</Name>
+ <ProviderURL>jnp://localhost:1099</ProviderURL>
+ <JNDIContextClass>org.jnp.interfaces.NamingContextFactory</JNDIContextClass>
+ </Server>
+ <Server>
+ <Id>weblogic</Id>
+ <Name>Bea Weblogic</Name>
+ <ProviderURL>t3://localhost:7001</ProviderURL>
+ <JNDIContextClass>weblogic.jndi.WLInitialContextFactory</JNDIContextClass>
+ </Server>
+ <Server>
+ <Id>geronimo</Id>
+ <Name>Apache Geronimo</Name>
+ <ProviderURL>localhost:4201</ProviderURL>
+ <JNDIContextClass>org.openejb.client.JNDIContext</JNDIContextClass>
+ </Server>
+ <Server>
+ <Id>generic</Id>
+ <Name>Generic</Name>
+ <ProviderURL></ProviderURL>
+ <JNDIContextClass></JNDIContextClass>
+ </Server>
+ </EJBApplicationServers>
+
+ <!-- JDBC URL/Driver list of popular database servers. Used for Data Services. -->
+ <DatabaseServers>
+ <Server>
+ <Id>MySQL</Id>
+ <JdbcURL>jdbc:mysql://[machine-name/ip]:[port]/[database-name]</JdbcURL>
+ <DriverClass>com.mysql.jdbc.Driver</DriverClass>
+ </Server>
+ <Server>
+ <Id>Apache Derby</Id>
+ <JdbcURL>jdbc:derby:[path-to-data-file]</JdbcURL>
+ <DriverClass>org.apache.derby.jdbc.EmbeddedDriver</DriverClass>
+ </Server>
+ <Server>
+ <Id>Microsoft SQL Server</Id>
+ <JdbcURL>jdbc:microsoft:sqlserver://[HOST]:[PORT][;DatabaseName=[DB]]</JdbcURL>
+ <DriverClass>com.microsoft.jdbc.sqlserver.SQLServerDriver</DriverClass>
+ </Server>
+ <Server>
+ <Id>Oracle</Id>
+ <JdbcURL>jdbc:oracle:[drivertype]:[username/password]@[database]</JdbcURL>
+ <DriverClass>oracle.jdbc.driver.OracleDriver</DriverClass>
+ </Server>
+ <Server>
+ <Id>IBM DB2</Id>
+ <JdbcURL>jdbc:db2:[database]</JdbcURL>
+ <DriverClass>com.ibm.db2.jcc.DB2Driver</DriverClass>
+ </Server>
+ <Server>
+ <Id>HSQLDB</Id>
+ <JdbcURL>jdbc:hsqldb:[path]</JdbcURL>
+ <DriverClass>org.hsqldb.jdbcDriver</DriverClass>
+ </Server>
+ <Server>
+ <Id>Informix</Id>
+ <JdbcURL>jdbc:informix-sqli://[HOST]:[PORT]/[database]:INFORMIXSERVER=[server-name]
+ </JdbcURL>
+ <DriverClass>COM.ibm.db2.jdbc.app.DB2Driver</DriverClass>
+ </Server>
+ <Server>
+ <Id>Generic</Id>
+ <JdbcURL>Generic</JdbcURL>
+ <DriverClass>Generic</DriverClass>
+ </Server>
+ </DatabaseServers>
+</Server>
More information about the Mashup-dev
mailing list