perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r5751 - in trunk/perfsonar-java-trs: . src src/main src/main/resources src/main/resources/perfsonar src/main/resources/perfsonar/conf src/main/webapp src/main/webapp/META-INF src/main/webapp/WEB-INF src/main/webapp/WEB-INF/conf src/main/webapp/WEB-INF/logs src/main/webapp/WEB-INF/modules src/test
Subject: perfsonar development work
List archive
[pS-dev] [GEANT/SA2/ps-java-services] r5751 - in trunk/perfsonar-java-trs: . src src/main src/main/resources src/main/resources/perfsonar src/main/resources/perfsonar/conf src/main/webapp src/main/webapp/META-INF src/main/webapp/WEB-INF src/main/webapp/WEB-INF/conf src/main/webapp/WEB-INF/logs src/main/webapp/WEB-INF/modules src/test
Chronological Thread
- From:
- To:
- Subject: [pS-dev] [GEANT/SA2/ps-java-services] r5751 - in trunk/perfsonar-java-trs: . src src/main src/main/resources src/main/resources/perfsonar src/main/resources/perfsonar/conf src/main/webapp src/main/webapp/META-INF src/main/webapp/WEB-INF src/main/webapp/WEB-INF/conf src/main/webapp/WEB-INF/logs src/main/webapp/WEB-INF/modules src/test
- Date: Wed, 15 Sep 2010 15:41:27 +0100
Author: psnc.giertych
Date: 2010-09-15 15:41:27 +0100 (Wed, 15 Sep 2010)
New Revision: 5751
Added:
trunk/perfsonar-java-trs/.project
trunk/perfsonar-java-trs/pom.xml
trunk/perfsonar-java-trs/src/
trunk/perfsonar-java-trs/src/main/
trunk/perfsonar-java-trs/src/main/java/
trunk/perfsonar-java-trs/src/main/resources/
trunk/perfsonar-java-trs/src/main/resources/log4j.xml
trunk/perfsonar-java-trs/src/main/resources/perfsonar/
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/configuration.xml
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/trsmetadata.xml
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/webAdminConfig.xml
trunk/perfsonar-java-trs/src/main/webapp/
trunk/perfsonar-java-trs/src/main/webapp/META-INF/
trunk/perfsonar-java-trs/src/main/webapp/META-INF/MANIFEST.MF
trunk/perfsonar-java-trs/src/main/webapp/META-INF/services.xml
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/conf/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/conf/axis2.xml
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/lib/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/logs/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/logs/empty
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/addressing-1.41.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/mex-1.41.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/modules.list
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/ping-1.41.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/scripting-1.41.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/smtpfault.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/soapmonitor-1.41.mar
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/services/
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/web.xml
trunk/perfsonar-java-trs/src/main/webapp/index.jsp
trunk/perfsonar-java-trs/src/test/
trunk/perfsonar-java-trs/src/test/java/
Modified:
trunk/perfsonar-java-trs/
Log:
project structure with Base2, WebAdmin, .war file build,
Property changes on: trunk/perfsonar-java-trs
___________________________________________________________________
Name: svn:ignore
+ .settings
.classpath
target
Added: trunk/perfsonar-java-trs/.project
===================================================================
--- trunk/perfsonar-java-trs/.project (rev 0)
+++ trunk/perfsonar-java-trs/.project 2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>trs</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/perfsonar-java-trs/pom.xml
===================================================================
--- trunk/perfsonar-java-trs/pom.xml (rev 0)
+++ trunk/perfsonar-java-trs/pom.xml 2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,140 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>net.geant.perfsonar</groupId>
+ <artifactId>perfsonar-java-trs</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>war</packaging>
+
+
+ <name>Perfsonar Transformation Service for Alarms</name>
+ <url>http://www.perfsonar.net</url>
+
+ <properties>
+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+
+ <organization>
+ <name>Poznań Supercomputing and Networking Center</name>
+ <url>http://www.psnc.pl</url>
+ </organization>
+
+ <developers>
+ <developer>
+ <id>mikus</id>
+ <name>Michał Giertych</name>
+
<email></email>
+ <organization>Poznan Supercomputing and Networking
Center</organization>
+
<organizationUrl>http://man.poznan.pl/</organizationUrl>
+ <timezone>1</timezone>
+ <properties>
+ <skype>michalgiertych</skype>
+ </properties>
+ <roles>
+ <role>designer</role>
+ <role>developer</role>
+ </roles>
+ </developer>
+ </developers>
+
+ <issueManagement>
+ <system>JIRA</system>
+ <url>http://issues.geant.net/</url>
+ </issueManagement>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.1</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <encoding>UTF-8</encoding>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-aar</id>
+ <phase>prepare-package</phase>
+ <configuration>
+ <tasks>
+ <property
name="aar.name" value="${project.build.finalName}" />
+ <mkdir
dir="${project.build.directory}/META-INF" />
+ <copy
todir="${project.build.directory}/META-INF">
+
<fileset file="${basedir}/src/main/webapp/META-INF/services.xml" />
+ </copy>
+ <jar
destfile="${project.build.directory}/${aar.name}.aar"
+
update="true" basedir="${project.build.directory}"
includes="META-INF/services.xml">
+ </jar>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <webResources>
+ <resource>
+
<directory>${project.build.directory}</directory>
+ <includes>
+
<include>**/*.aar</include>
+ </includes>
+
<targetPath>WEB-INF/services</targetPath>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
+ <!-- <plugin>
<artifactId>maven-assembly-plugin</artifactId> <executions>
+ <execution> <id>perfsonar-java-trs</id>
<phase>package</phase> <goals> <goal>single</goal>
+ </goals> </execution> </executions>
<configuration> <appendAssemblyId>false</appendAssemblyId>
+ <finalName>perfsonar-java-trs</finalName>
</configuration> </plugin> -->
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>perfsonar</groupId>
+ <artifactId>perfsonar-web-admin</artifactId>
+ <version>1.4</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpcore</artifactId>
+ <version>4.0.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>net.geant.perfsonar</groupId>
+ <artifactId>ps-mdm-base2</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.16</version>
+ </dependency>
+
+ </dependencies>
+</project>
Added: trunk/perfsonar-java-trs/src/main/resources/log4j.xml
===================================================================
--- trunk/perfsonar-java-trs/src/main/resources/log4j.xml
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/resources/log4j.xml 2010-09-15
14:41:27 UTC (rev 5751)
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!-- FIXME if doctype is set the web admin crashes
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+-->
+
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
+ <appender name="out" class="org.apache.log4j.RollingFileAppender">
+ <!-- The maximum size the log file can reach before it replaces the
oldest backup file and a new log file is started. -->
+ <param name="MaxFileSize" value="500KB"/>
+ <!-- The maximum number of backup log files to create. -->
+ <param name="MaxBackupIndex" value="11"/>
+ <!-- The path to the log file, including the log file's name. -->
+ <param name="File" value="logs/perfsonar-java-trs.log" />
+ <!-- The log message format.
+ For more information see
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html
-->
+ <layout class="org.apache.log4j.PatternLayout">
+ <param name="ConversionPattern" value="%d %p %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- Logs for the service code -->
+ <category name="org.perfsonar" additivity="false">
+ <level value="info" />
+ <appender-ref ref="out" />
+ </category>
+
+ <!-- Logs for the libraries that the service uses -->
+ <root>
+ <priority value="info" />
+ <appender-ref ref="out" />
+ </root>
+</log4j:configuration>
Added:
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/configuration.xml
===================================================================
---
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/configuration.xml
(rev 0)
+++
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/configuration.xml
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,116 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<configuration xmlns="http://service.perfsonar.org/ns/config/base/0.9/">
+ <service name="trs">
+ <lookupInformation>
+ <option name="accessPoint"
value="http://localhost:8080/perfsonar-java-trs/services/TrS"/>
+ <option name="serviceName" value="Geant3 JAVA - Transformation Service
for Alarms"/>
+ <option name="serviceType" value="MP"/>
+ </lookupInformation>
+
+ <!-- Message Handlers - message types and service engines -->
+
+ <messageHandler>
+
+ <message type="EchoRequest"
+
handler="org.perfsonar.base2.service.messages.GenericMessageHandler">
+ <option name="ServiceEngine"
+
value="org.perfsonar.base2.service.requesthandler.EchoServiceEngine" />
+ <option name="authN" value="no" />
+ </message>
+
+ <!--
+ <message type="MetadataKeyRequest"
+
handler="org.perfsonar.base2.service.messages.GenericMessageHandler">
+ <option name="ServiceEngine"
+
value="org.perfsonar.service.measurementPoint.ServiceCapabilitiesEngine" />
+ <option name="authN" value="no" />
+ </message>
+
+ <message type="SetupDataRequest"
+
handler="org.perfsonar.base2.service.messages.GenericMessageHandler">
+ <option name="ServiceEngine"
+
value="org.perfsonar.service.measurementPoint.SetupDataServiceEngine" />
+ <option name="authN" value="no" />
+ </message>
+ -->
+ </messageHandler>
+
+ <!-- Additional auxiliary components -->
+
+ <auxiliaryComponents>
+ <component name="XMLDB"
className="org.perfsonar.base2.service.storage.xml.XMLDBComponent">
+ <option name="dataStorageClassName"
value="org.perfsonar.base2.service.storage.xml.exist.ExistHTTPDataStorage" />
+ <option name="uri"
value="http://localhost:8080/exist/rest/db"/>
+ <option name="username" value="trsuser"/>
+ <option name="password" value="trspass"/>
+ </component>
+
+ <!-- auth configuration -->
+ <component name="auth"
className="org.perfsonar.base2.service.authn.component.wssec.WSSecAuthNComponent">
+ <option name="as_endpoint"
value="http://homer.rediris.es:8080/geant2-java-as-1.2/services/SimpleService"/>
+ <option name="comp_id" value="urn:compId"/>
+ </component>
+
+ <!-- Scheduler -->
+ <component name="scheduling"
className="org.perfsonar.base2.service.scheduler.SchedulingComponent">
+ <option name="schedulerClassName"
value="org.perfsonar.base2.service.scheduler.SimpleScheduler"/>
+ <option name="interval" value="60"/>
+
+ <actions>
+ <action name="registration"
className="org.perfsonar.base2.service.registration.LSRegistrationAction">
+ <option name="status" value="on" />
+ <option name="interval" value="600" />
+ <option name="registerDataSource"
value="org.perfsonar.base2.service.registration.MetadataExistDBRegisterDataSource"/>
+ <option name="registerEventType"
value="http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/registration/summary/2.0"/>
+ <option name="registrator"
value="org.perfsonar.base2.service.registration.GenericLSRegistrator"/>
+ <option name="lsAddress-1"
value="http://localhost:8080/geant2-java-xml-ls/services/LookupService"/>
+ <option name="lsAddress-2"
value="http://localhost:8380/perfsonar-java-xml-ls/services/LookupService"/>
+ </action>
+
+ </actions>
+ </component>
+ </auxiliaryComponents>
+
+ <extension name="registerExtension-registerDataSource">
+ <option name="exist-config" value="XMLDB" />
+ </extension>
+
+ <!--
....................................................................................
-->
+
+ <!-- Protocol mappings, XML elements and their bingings -->
+
+ <protocolMappings>
+
+
+ <!-- default mapping -->
+
+
+ <!-- general mappings -->
+ <element name="{*}message"
+ mapping="org.perfsonar.base2.xml.nmwg.Message"/>
+ <element name="{*}metadata"
+ mapping="org.perfsonar.base2.xml.nmwg.Metadata"/>
+ <element name="{*}eventType"
+ mapping="org.perfsonar.base2.xml.nmwg.EventType"/>
+ <element name="{*}data"
+ mapping="org.perfsonar.base2.xml.nmwg.Data"/>
+ <element name="{*}subject"
+ mapping="org.perfsonar.base2.xml.nmwg.Subject"/>
+ <element name="{*}parameters"
+ mapping="org.perfsonar.base2.xml.nmwg.Parameters"/>
+ <element name="{*}parameter"
+ mapping="org.perfsonar.base2.xml.nmwg.Parameter"/>
+ <element name="*"
+ mapping="org.perfsonar.base2.xml.Element"/>
+ <element
name="{http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/}subject"
+ mapping="org.perfsonar.base2.xml.TextElement"/>
+
+
+ </protocolMappings>
+
+
+ </service>
+
+
+</configuration>
Added:
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/trsmetadata.xml
===================================================================
---
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/trsmetadata.xml
(rev 0)
+++
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/trsmetadata.xml
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<nmwg:store xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+
+<!-- Empty metadata file. -->
+
+</nmwg:store>
+
Added:
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/webAdminConfig.xml
===================================================================
---
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/webAdminConfig.xml
(rev 0)
+++
trunk/perfsonar-java-trs/src/main/resources/perfsonar/conf/webAdminConfig.xml
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,334 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<wa:interface
xmlns:wa="http://webadmin.perfsonar.org/base2/waschema/v20090201">
+
+ <!-- service information cosists of name nad version (only for
displaying
+ purpose) and accessPoint - selfTest -->
+ <wa:serviceInformation>
+
<wa:accessPoint>http://localhost:8080/perfsonar-java-trs/services/TrS
+ </wa:accessPoint>
+ <wa:serviceName>perfsonar-java-trs</wa:serviceName>
+ <wa:version>0.0.1-SNAPSHOT</wa:version>
+ </wa:serviceInformation>
+
+ <!-- credential for WA -->
+ <wa:credential>
+ <wa:username>perfsonaruser</wa:username>
+ <wa:password>perfsonarpass</wa:password>
+ </wa:credential>
+
+ <wa:basiclink>
+ <wa:pageId>basic</wa:pageId> <!-- page identifier -->
+ <wa:title>Service settings</wa:title>
+ </wa:basiclink>
+
+ <wa:basiclink>
+ <wa:pageId>changePassword</wa:pageId> <!-- page identifier -->
+ <wa:title>Change WA password</wa:title>
+ </wa:basiclink>
+
+ <wa:advancedlink>
+ <wa:pageId>advanced</wa:pageId> <!-- page identifier -->
+ <wa:title>Advanced Service Settings</wa:title>
+ </wa:advancedlink>
+
+ <wa:advancedlink>
+ <wa:pageId>logging</wa:pageId> <!-- page identifier -->
+ <wa:title>Logging Settings</wa:title>
+ </wa:advancedlink>
+
+ <wa:advancedlink>
+ <wa:redirectTo>/exist/admin/admin.xql</wa:redirectTo>
+ <wa:title>Exist configuration</wa:title>
+ </wa:advancedlink>
+
+ <wa:map>
+
<wa:url>http://service.perfsonar.org/ns/config/base/0.9/</wa:url>
+ <wa:ns>ns1</wa:ns>
+ </wa:map>
+
+ <wa:map>
+ <wa:url>http://webadmin.perfsonar.org/base2/waschema/v20090201
+ </wa:url>
+ <wa:ns>webAdmin</wa:ns>
+ </wa:map>
+
+ <wa:map>
+ <wa:url>http://jakarta.apache.org/log4j/</wa:url>
+ <wa:ns>log4j</wa:ns>
+ </wa:map>
+
+ <wa:page>
+ <wa:pageId>
+ <wa:text>changePassword</wa:text>
+ </wa:pageId>
+ <wa:title>
+ <wa:text>Change Password</wa:text>
+ </wa:title>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/webAdminConfig.xml")//webAdmin:interface/webAdmin:credential/webAdmin:username
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>username</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:password>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/webAdminConfig.xml")//webAdmin:interface/webAdmin:credential/webAdmin:password
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>password</wa:text>
+ </wa:title>
+ </wa:password>
+ </wa:plain>
+ </wa:page>
+
+ <wa:page>
+ <wa:pageId>
+ <wa:text>basic</wa:text>
+ </wa:pageId>
+ <wa:title>
+ <wa:text>Basic service settings</wa:text>
+ </wa:title>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:lookupInformation/ns1:option[@name="accessPoint"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Access point</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:lookupInformation/ns1:option[@name="serviceName"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Service name</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:lookupInformation/ns1:option[@name="serviceType"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Service type</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:radio>
+ <wa:default>
+
<wa:xpath>doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="scheduling"]/ns1:actions/ns1:action[@name="registration"]/ns1:option[@name="status"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>LS registration</wa:text>
+ </wa:title>
+ <wa:values>
+ <wa:text>on,off</wa:text>
+ </wa:values>
+ </wa:radio>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+
<wa:xpath>doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="scheduling"]/ns1:actions/ns1:action[@name="registration"]/ns1:option[@name="lsAddress-1"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Lookup Service url</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+
+
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="XMLDB"]/ns1:option[@name="uri"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Exist DB uri</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="XMLDB"]/ns1:option[@name="username"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Exist DB username</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+
+ <wa:plain>
+ <wa:password>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="XMLDB"]/ns1:option[@name="password"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Exist DB password</wa:text>
+ </wa:title>
+ </wa:password>
+ </wa:plain>
+
+ </wa:page>
+
+ <wa:page>
+ <wa:pageId>
+ <wa:text>advanced</wa:text>
+ </wa:pageId>
+ <wa:title>
+ <wa:text>Advanced Service Settings</wa:text>
+ </wa:title>
+
+ <wa:plain>
+ <wa:radio>
+ <wa:default>
+
<wa:xpath>doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:messageHandler/ns1:message[@type="EchoRequest"]/ns1:option[@name="authN"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>EchoRequest
Authentication?</wa:text>
+ </wa:title>
+ <wa:values>
+ <wa:text>yes,no</wa:text>
+ </wa:values>
+ </wa:radio>
+ </wa:plain>
+
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="auth"]/ns1:option[@name="as_endpoint"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Authentication Service
endpoint</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+
+
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/perfsonar/conf/configuration.xml")//ns1:configuration/ns1:service[@name="trs"]/ns1:auxiliaryComponents/ns1:component[@name="scheduling"]/ns1:actions/ns1:action[@name="registration"]/ns1:option[@name="interval"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Lookup Service registration
interval (in seconds)
+ </wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+
+ </wa:page>
+
+ <wa:page>
+ <wa:pageId>
+ <wa:text>logging</wa:text>
+ </wa:pageId>
+ <wa:title>
+ <wa:text>Logging Settings</wa:text>
+ </wa:title>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/log4j.xml")/log4j:configuration/appender[@name="out"]/param[@name="File"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>The path to the log file,
including the log file's name
+ </wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/log4j.xml")/log4j:configuration/appender[@name="out"]/param[@name="MaxFileSize"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>The maximum size the log
file can reach before it replaces
+ the oldest backup file and a
new log file is started</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:textbox>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/log4j.xml")/log4j:configuration/appender[@name="out"]/param[@name="MaxBackupIndex"]/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>The maximum number of backup
log files to create</wa:text>
+ </wa:title>
+ </wa:textbox>
+ </wa:plain>
+ <wa:plain>
+ <wa:dropdown>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/log4j.xml")/log4j:configuration/category[@name="org.perfsonar"]/level/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Log level for the
service</wa:text>
+ </wa:title>
+ <wa:values>
+
<wa:text>all,debug,info,warn,error,fatal,off</wa:text>
+ </wa:values>
+ </wa:dropdown>
+ </wa:plain>
+ <wa:plain>
+ <wa:dropdown>
+ <wa:default>
+ <wa:xpath>
+
doc("classes/log4j.xml")/log4j:configuration/root/priority/@value
+ </wa:xpath>
+ </wa:default>
+ <wa:title>
+ <wa:text>Log level for the libraries
used by the service</wa:text>
+ </wa:title>
+ <wa:values>
+
<wa:text>all,debug,info,warn,error,fatal,off</wa:text>
+ </wa:values>
+ </wa:dropdown>
+ </wa:plain>
+ </wa:page>
+</wa:interface>
Added: trunk/perfsonar-java-trs/src/main/webapp/META-INF/MANIFEST.MF
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/META-INF/MANIFEST.MF
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/perfsonar-java-trs/src/main/webapp/META-INF/services.xml
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/META-INF/services.xml
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/META-INF/services.xml
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,9 @@
+<service name="TrS" scope="application">
+ <description>
+ perfSONAR Transformation Service
+ </description>
+ <operation name="message">
+ <messageReceiver
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </operation>
+ <parameter
name="ServiceClass">org.perfsonar.base2.service.axis2interface.PerfsonarService</parameter>
+</service>
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/conf/axis2.xml
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/conf/axis2.xml
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/conf/axis2.xml
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,489 @@
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you 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.
+ -->
+
+<axisconfig name="AxisJava2.0">
+ <!-- ================================================= -->
+ <!-- Parameters -->
+ <!-- ================================================= -->
+ <parameter name="hotdeployment">true</parameter>
+ <parameter name="hotupdate">false</parameter>
+ <parameter name="enableMTOM">false</parameter>
+ <parameter name="enableSwA">false</parameter>
+
+ <!--Uncomment if you want to enable file caching for attachments -->
+ <!--parameter name="cacheAttachments">true</parameter>
+ <parameter name="attachmentDIR"></parameter>
+ <parameter name="sizeThreshold">4000</parameter-->
+
+ <!--Uncomment if you want to plugin your own attachments lifecycle
implementation -->
+ <!--<attachmentsLifecycleManager
class="org.apache.axiom.attachments.lifecycle.impl.LifecycleManagerImpl"/>-->
+
+
+ <!--Uncomment if you want to enable the reduction of the in-memory cache
of WSDL definitions -->
+ <!--In some server environments, the available memory heap is limited
and can fill up under load -->
+ <!--Since in-memory copies of WSDL definitions can be large, some steps
can be taken-->
+ <!--to reduce the memory needed for the cached WSDL definitions. -->
+ <!--parameter name="reduceWSDLMemoryCache">true</parameter-->
+
+ <!--This will give out the timout of the configuration contexts, in
milliseconds-->
+ <parameter name="ConfigContextTimeoutInterval">30000</parameter>
+
+ <!--During a fault, stack trace can be sent with the fault message. The
following flag will control -->
+ <!--that behavior.-->
+ <parameter name="sendStacktraceDetailsWithFaults">false</parameter>
+
+ <!--If there aren't any information available to find out the fault
reason, we set the message of the exception-->
+ <!--as the faultreason/Reason. But when a fault is thrown from a service
or some where, it will be -->
+ <!--wrapped by different levels. Due to this the initial exception
message can be lost. If this flag-->
+ <!--is set, then Axis2 tries to get the first exception and set its
message as the faultreason/Reason.-->
+ <parameter name="DrillDownToRootCauseForFaultReason">false</parameter>
+
+ <parameter name="userName">admin</parameter>
+ <parameter name="password">axis2</parameter>
+
+ <!--To override repository/services you need to uncomment following
parameter and value SHOULD be absolute file path.-->
+ <!--ServicesDirectory only works on the following cases-->
+ <!---File based configurator and in that case the value should be a file
URL (http:// not allowed)-->
+ <!---When creating URL Based configurator with URL file:// -->
+ <!--- War based configurator with expanded case , -->
+
+ <!--All the other scenarios it will be ignored.-->
+ <!--<parameter name="ServicesDirectory">service</parameter>-->
+ <!--To override repository/modules you need to uncomment following
parameter and value SHOULD be absolute file path-->
+ <!--<parameter name="ModulesDirectory">modules</parameter>-->
+
+
+
+ <!--Following params will set the proper context paths for invocations.
All the endpoints will have a commons context-->
+ <!--root which can configured using the following contextRoot
parameter-->
+ <!--<parameter name="contextRoot">axis2</parameter>-->
+
+ <!--Our HTTP endpoints can handle both REST and SOAP. Following
parameters can be used to distinguiush those endpoints-->
+ <!--In case of a servlet, if you change this you have to manually change
the settings of your servlet container to map this -->
+ <!--context path to proper Axis2 servlets-->
+ <!--<parameter name="servicePath">services</parameter>-->
+ <!--<parameter name="restPath">rest</parameter>-->
+
+ <!-- Following parameter will completely disable REST handling in
Axis2-->
+ <parameter name="disableREST" locked="false">false</parameter>
+
+ <!-- Following parameter will suppress generation of SOAP 1.2 bindings
in auto-generated WSDL files -->
+ <parameter name="disableSOAP12" locked="true">false</parameter>
+
+ <!--POJO deployer , this will alow users to drop .class file and make
that into a service-->
+ <deployer extension=".class" directory="pojo"
class="org.apache.axis2.deployment.POJODeployer"/>
+ <deployer extension=".jar" directory="servicejars"
class="org.apache.axis2.jaxws.framework.JAXWSDeployer"/>
+
+ <!--<deployer extension=".jsa" directory="rmiservices"
class="org.apache.axis2.rmi.deploy.RMIServiceDeployer"/>-->
+
+
+ <!-- Following parameter will set the host name for the epr-->
+ <!--<parameter name="hostname" locked="true">myhost.com</parameter>-->
+
+ <!-- If you have a front end host which exposes this webservice using a
different public URL -->
+ <!-- use this parameter to override autodetected url -->
+ <!--<parameter
name="httpFrontendHostUrl">https://someotherhost/context</parameter>-->
+
+
+ <!-- The way of adding listener to the system-->
+ <!-- <listener class="org.apache.axis2.ObserverIMPL">-->
+ <!-- <parameter name="RSS_URL">http://127.0.0.1/rss</parameter>-->
+ <!-- </listener>-->
+
+ <threadContextMigrators>
+ <threadContextMigrator listId="JAXWS-ThreadContextMigrator-List"
class="org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator"/>
+ </threadContextMigrators>
+
+ <!-- ================================================= -->
+ <!-- Message Receivers -->
+ <!-- ================================================= -->
+ <!--This is the deafult MessageReceiver for the system , if you want to
have MessageReceivers for -->
+ <!--all the other MEP implement it and add the correct entry to here ,
so that you can refer from-->
+ <!--any operation -->
+ <!--Note : You can ovrride this for a particular service by adding the
same element with your requirement-->
+ <messageReceivers>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
+
class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
+
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-only"
+
class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
+ <messageReceiver mep="http://www.w3.org/2006/01/wsdl/in-out"
+
class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ </messageReceivers>
+
+ <!-- ================================================= -->
+ <!-- Message Formatter -->
+ <!-- ================================================= -->
+ <!--Following content type to message formatter mapping can be used to
implement support for different message -->
+ <!--format serialization in Axis2. These message formats are expected
to be resolved based on the content type. -->
+ <messageFormatters>
+ <messageFormatter contentType="application/x-www-form-urlencoded"
+
class="org.apache.axis2.transport.http.XFormURLEncodedFormatter"/>
+ <messageFormatter contentType="multipart/form-data"
+
class="org.apache.axis2.transport.http.MultipartFormDataFormatter"/>
+ <messageFormatter contentType="application/xml"
+
class="org.apache.axis2.transport.http.ApplicationXMLFormatter"/>
+ <messageFormatter contentType="text/xml"
+
class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
+ <messageFormatter contentType="application/soap+xml"
+
class="org.apache.axis2.transport.http.SOAPMessageFormatter"/>
+ </messageFormatters>
+
+ <!-- ================================================= -->
+ <!-- Message Builders -->
+ <!-- ================================================= -->
+ <!--Following content type to builder mapping can be used to implement
support for different message -->
+ <!--formats in Axis2. These message formats are expected to be resolved
based on the content type. -->
+ <messageBuilders>
+ <messageBuilder contentType="application/xml"
+
class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
+ <messageBuilder contentType="application/xml"
+
class="org.apache.axis2.builder.ApplicationXMLBuilder"/>
+ <messageBuilder contentType="application/x-www-form-urlencoded"
+
class="org.apache.axis2.builder.XFormURLEncodedBuilder"/>
+ <messageBuilder contentType="multipart/form-data"
+
class="org.apache.axis2.builder.MultipartFormDataBuilder"/>
+ </messageBuilders>
+
+ <!-- ================================================= -->
+ <!-- Transport Ins -->
+ <!-- ================================================= -->
+ <transportReceiver name="http"
+
class="org.apache.axis2.transport.http.SimpleHTTPServer">
+ <parameter name="port">8080</parameter>
+ <!-- Here is the complete list of supported parameters (see example
settings further below):
+ port: the port to listen on (default 6060)
+ hostname: if non-null, url prefix used in reply-to endpoint
references (default null)
+ originServer: value of http Server header in outgoing messages
(default "Simple-Server/1.1")
+ requestTimeout: value in millis of time that requests can wait
for data (default 20000)
+ requestTcpNoDelay: true to maximize performance and minimize
latency (default true)
+ false to minimize bandwidth consumption by
combining segments
+ requestCoreThreadPoolSize: number of threads available for
request processing (unless queue fills up) (default 25)
+ requestMaxThreadPoolSize: number of threads available for
request processing if queue fills up (default 150)
+ note that default queue never fills
up: see HttpFactory
+ threadKeepAliveTime: time to keep threads in excess of core
size alive while inactive (default 180)
+ note that no such threads can exist with
default unbounded request queue
+ threadKeepAliveTimeUnit: TimeUnit of value in
threadKeepAliveTime (default SECONDS) (default SECONDS)
+ -->
+ <!-- <parameter name="hostname">http://www.myApp.com/ws</parameter>
-->
+ <!-- <parameter name="originServer">My-Server/1.1</parameter>
-->
+ <!-- <parameter name="requestTimeout">10000</parameter>
-->
+ <!-- <parameter name="requestTcpNoDelay">false</parameter>
-->
+ <!-- <parameter name="requestCoreThreadPoolSize">50</parameter>
-->
+ <!-- <parameter name="requestMaxThreadPoolSize">100</parameter>
-->
+ <!-- <parameter name="threadKeepAliveTime">240000</parameter>
-->
+ <!-- <parameter
name="threadKeepAliveTimeUnit">MILLISECONDS</parameter> -->
+ </transportReceiver>
+
+ <!--Uncomment this and configure as appropriate for JMS transport
support, after setting up your JMS environment (e.g. ActiveMQ)
+ <transportReceiver name="jms"
class="org.apache.axis2.transport.jms.JMSListener">
+ <parameter name="myTopicConnectionFactory">
+ <parameter
name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+ <parameter
name="java.naming.provider.url">tcp://localhost:61616</parameter>
+ <parameter
name="transport.jms.ConnectionFactoryJNDIName">TopicConnectionFactory</parameter>
+ </parameter>
+
+ <parameter name="myQueueConnectionFactory">
+ <parameter
name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+ <parameter
name="java.naming.provider.url">tcp://localhost:61616</parameter>
+ <parameter
name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
+ </parameter>
+
+ <parameter name="default">
+ <parameter
name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter>
+ <parameter
name="java.naming.provider.url">tcp://localhost:61616</parameter>
+ <parameter
name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter>
+ </parameter>
+ </transportReceiver>-->
+
+ <!-- ================================================= -->
+ <!-- Non-blocking http/s Transport Listener -->
+
+ <!-- the non blocking http transport based on HttpCore + NIO extensions
+ <transportReceiver name="http"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOListener">
+ <parameter name="port" locked="false">9000</parameter>
+ <parameter name="non-blocking" locked="false">true</parameter>
+ </transportReceiver>-->
+
+ <!-- the non blocking https transport based on HttpCore + SSL-NIO
extensions
+ <transportReceiver name="https"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLListener">
+ <parameter name="port" locked="false">9002</parameter>
+ <parameter name="non-blocking" locked="false">true</parameter>
+ <parameter name="keystore" locked="false">
+ <KeyStore>
+ <Location>identity.jks</Location>
+ <Type>JKS</Type>
+ <Password>password</Password>
+ <KeyPassword>password</KeyPassword>
+ </KeyStore>
+ </parameter>
+ <parameter name="truststore" locked="false">
+ <TrustStore>
+ <Location>trust.jks</Location>
+ <Type>JKS</Type>
+ <Password>password</Password>
+ </TrustStore>
+ </parameter>-->
+ <!--<parameter name="SSLVerifyClient">require</parameter>
+ supports optional|require or defaults to none -->
+ <!--</transportReceiver>-->
+
+ <!-- ================================================= -->
+ <!-- Mail Transport Listener -->
+ <!-- This is a sample configuration. It assumes a mail server running in
localhost.
+ Listener pops messages that comes to the email address
red@localhost.
Users
+ password is red. Listener connect to the server every 3000
milliseconds.
+ Parameters with "transport." prefix is Axis2 specific. Others are
all from Java Mail API.
+ http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html
+ -->
+ <!-- ================================================= -->
+ <!--<transportReceiver name="mailto"
class="org.apache.axis2.transport.mail.SimpleMailListener">
+ <parameter name="mail.pop3.host">localhost</parameter>
+ <parameter name="mail.pop3.user">red</parameter>
+ <parameter name="mail.store.protocol">pop3</parameter>
+ <parameter name="transport.mail.pop3.password">red</parameter>
+ <parameter
name="transport.mail.replyToAddress">red@localhost</parameter>
+ <parameter name="transport.listener.interval">3000</parameter>
+ </transportReceiver>-->
+
+ <!--Uncomment if you want to have TCP transport support-->
+ <!--transportReceiver name="tcp"
+ class="org.apache.axis2.transport.tcp.TCPServer">
+ <parameter name="port">6060</parameter-->>
+ <!--If you want to give your own host address for EPR generation-->
+ <!--uncomment the following paramter , and set it as you required.-->
+ <!--<parameter name="hostname">tcp://myApp.com/ws</parameter>-->
+ <!-- /transportReceiver -->
+
+ <!-- ================================================= -->
+ <!-- Transport Outs -->
+ <!-- ================================================= -->
+
+ <transportSender name="tcp"
+
class="org.apache.axis2.transport.tcp.TCPTransportSender"/>
+ <transportSender name="local"
+
class="org.apache.axis2.transport.local.LocalTransportSender"/>
+ <transportSender name="http"
+
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+ <parameter name="PROTOCOL">HTTP/1.1</parameter>
+ <parameter name="Transfer-Encoding">chunked</parameter>
+
+ <!-- If following is set to 'true', optional action part of the
Content-Type will not be added to the SOAP 1.2 messages -->
+ <!-- <parameter name="OmitSOAP12Action">true</parameter> -->
+ </transportSender>
+
+ <transportSender name="https"
+
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+ <parameter name="PROTOCOL">HTTP/1.1</parameter>
+ <parameter name="Transfer-Encoding">chunked</parameter>
+ </transportSender>
+
+ <!-- Please enable this if you need the java transport -->
+ <!-- <transportSender name="java"
+
class="org.apache.axis2.transport.java.JavaTransportSender"/> -->
+
+ <!--<transportSender name="jms"-->
+
<!--class="org.apache.axis2.transport.jms.JMSSender"/>-->
+
+ <!-- ================================================= -->
+ <!-- Non-blocking http/s Transport Sender -->
+
+ <!-- the non-blocking http transport sender based on HttpCore + NIO
extensions
+ <transportSender name="http"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSender">
+ <parameter name="non-blocking" locked="false">true</parameter>
+ </transportSender>-->
+
+ <!-- the non-blocking https transport sender based on HttpCore + NIO SSL
extensions
+ <transportSender name="https"
class="org.apache.axis2.transport.nhttp.HttpCoreNIOSSLSender">
+ <parameter name="non-blocking" locked="false">true</parameter>
+ <parameter name="keystore" locked="false">
+ <KeyStore>
+ <Location>identity.jks</Location>
+ <Type>JKS</Type>
+ <Password>password</Password>
+ <KeyPassword>password</KeyPassword>
+ </KeyStore>
+ </parameter>
+ <parameter name="truststore" locked="false">
+ <TrustStore>
+ <Location>trust.jks</Location>
+ <Type>JKS</Type>
+ <Password>password</Password>
+ </TrustStore>
+ </parameter>-->
+ <!--<parameter
name="HostnameVerifier">DefaultAndLocalhost</parameter>
+ supports Strict|AllowAll|DefaultAndLocalhost or the default if
none specified -->
+ <!--</transportSender>-->
+
+ <!-- ================================================= -->
+ <!-- Mail Transport Sender -->
+ <!--Only need to uncomment the sender. Configuration is achieved with
every client.
+ At any instant mail host should be given. Sample configuration has
been given.
+ http://people.apache.org/~pzf/SMTPBase64Binding-0.2.html
+ -->
+ <!-- ================================================= -->
+ <!--<transportSender name="mailto"
class="org.apache.axis2.transport.mail.MailTransportSender">
+ <parameter name="mail.smtp.host">localhost</parameter>
+ </transportSender>-->
+
+ <!-- ================================================= -->
+ <!-- Global Modules -->
+ <!-- ================================================= -->
+ <!-- Comment this to disable Addressing -->
+
+ <!--
+
+
+ If this module is used, in envelope header is included ws-addreasing
elements,
+ wsa:to wsa:messageId wsa:action which must be correct set. If you
don't want to use this elements, comment this module.
+ If the module is used and this header elements are not correct
setted, the exception is thrown.
+ In axis stand-alone server this module don't cause any problems.
Problems occures in tomcat.
+ -->
+
+ <!--
+ <module ref="addressing"/>
+ -->
+
+ <!--Configuring module , providing parameters for modules whether they
refer or not-->
+ <!--<moduleConfig name="addressing">-->
+ <!--<parameter name="addressingPara">N/A</parameter>-->
+ <!--</moduleConfig>-->
+
+ <!-- ================================================= -->
+ <!-- Clustering -->
+ <!-- ================================================= -->
+ <!-- Configure and uncomment following for preparing Axis2 to a
clustered environment -->
+ <!--
+ <cluster class="org.apache.axis2.cluster.tribes.TribesClusterManager">
+ <parameter name="param1">value1</parameter>
+ <parameter name="domain">apache.axis2.domain</parameter>
+ <parameter name="synchronizeAll">true</parameter>
+ <parameter name="maxRetries">10</parameter>
+ <configurationManager
class="org.apache.axis2.cluster.configuration.TribesConfigurationManager">
+ <listener
class="org.apache.axis2.cluster.configuration.DefaultConfigurationManagerListener"/>
+ </configurationManager>
+ <contextManager
class="org.apache.axis2.cluster.context.TribesContextManager">
+ <listener
class="org.apache.axis2.cluster.context.DefaultContextManagerListener"/>
+ </contextManager>
+ </cluster>
+ -->
+
+ <!-- ================================================= -->
+ <!-- Phases -->
+ <!-- ================================================= -->
+ <phaseOrder type="InFlow">
+ <!-- System predefined phases -->
+ <phase name="Transport">
+ <handler name="RequestURIBasedDispatcher"
+
class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher">
+ <order phase="Transport"/>
+ </handler>
+ <handler name="SOAPActionBasedDispatcher"
+
class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher">
+ <order phase="Transport"/>
+ </handler>
+ </phase>
+ <phase name="Addressing">
+ <handler name="AddressingBasedDispatcher"
+
class="org.apache.axis2.dispatchers.AddressingBasedDispatcher">
+ <order phase="Addressing"/>
+ </handler>
+ </phase>
+ <phase name="Security"/>
+ <phase name="PreDispatch"/>
+ <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+ <handler name="RequestURIBasedDispatcher"
+
class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+ <handler name="SOAPActionBasedDispatcher"
+
class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
+ <handler name="RequestURIOperationDispatcher"
+
class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+ <handler name="SOAPMessageBodyBasedDispatcher"
+
class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+ <handler name="HTTPLocationBasedDispatcher"
+
class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
+ <handler name="GenericProviderDispatcher"
+
class="org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher"/>
+ <handler name="MustUnderstandValidationDispatcher"
+
class="org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher"/>
+ </phase>
+ <phase name="RMPhase"/>
+ <!-- System predefined phases -->
+ <!-- After Postdispatch phase module author or service author can
add any phase he want -->
+ <phase name="OperationInPhase">
+ <handler name="MustUnderstandChecker"
+
class="org.apache.axis2.jaxws.dispatchers.MustUnderstandChecker">
+ <order phase="OperationInPhase"/>
+ </handler>
+ </phase>
+ <phase name="soapmonitorPhase"/>
+ </phaseOrder>
+ <phaseOrder type="OutFlow">
+ <!-- user can add his own phases to this area -->
+ <phase name="soapmonitorPhase"/>
+ <phase name="OperationOutPhase"/>
+ <!--system predefined phase-->
+ <!--these phase will run irrespective of the service-->
+ <phase name="RMPhase"/>
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ <phase name="Security"/>
+ </phaseOrder>
+ <phaseOrder type="InFaultFlow">
+ <phase name="Addressing">
+ <handler name="AddressingBasedDispatcher"
+
class="org.apache.axis2.dispatchers.AddressingBasedDispatcher">
+ <order phase="Addressing"/>
+ </handler>
+ </phase>
+ <phase name="Security"/>
+ <phase name="PreDispatch"/>
+ <phase name="Dispatch" class="org.apache.axis2.engine.DispatchPhase">
+ <handler name="RequestURIBasedDispatcher"
+
class="org.apache.axis2.dispatchers.RequestURIBasedDispatcher"/>
+ <handler name="SOAPActionBasedDispatcher"
+
class="org.apache.axis2.dispatchers.SOAPActionBasedDispatcher"/>
+ <handler name="RequestURIOperationDispatcher"
+
class="org.apache.axis2.dispatchers.RequestURIOperationDispatcher"/>
+ <handler name="SOAPMessageBodyBasedDispatcher"
+
class="org.apache.axis2.dispatchers.SOAPMessageBodyBasedDispatcher"/>
+ <handler name="HTTPLocationBasedDispatcher"
+
class="org.apache.axis2.dispatchers.HTTPLocationBasedDispatcher"/>
+ <handler name="GenericProviderDispatcher"
+
class="org.apache.axis2.jaxws.dispatchers.GenericProviderDispatcher"/>
+ <handler name="MustUnderstandValidationDispatcher"
+
class="org.apache.axis2.jaxws.dispatchers.MustUnderstandValidationDispatcher"/>
+ </phase>
+ <phase name="RMPhase"/>
+ <!-- user can add his own phases to this area -->
+ <phase name="OperationInFaultPhase"/>
+ <phase name="soapmonitorPhase"/>
+ </phaseOrder>
+ <phaseOrder type="OutFaultFlow">
+ <!-- user can add his own phases to this area -->
+ <phase name="soapmonitorPhase"/>
+ <phase name="OperationOutFaultPhase"/>
+ <phase name="RMPhase"/>
+ <phase name="PolicyDetermination"/>
+ <phase name="MessageOut"/>
+ <phase name="Security"/>
+ </phaseOrder>
+</axisconfig>
+
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/logs/empty
===================================================================
Added:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/addressing-1.41.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/addressing-1.41.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/mex-1.41.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/mex-1.41.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/modules.list
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/modules.list
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/modules.list
2010-09-15 14:41:27 UTC (rev 5751)
@@ -0,0 +1,23 @@
+#
+ # Licensed to the Apache Software
Foundation (ASF) under one
+ # or more contributor license
agreements. See the NOTICE file
+ # distributed with this work for
additional information
+ # regarding copyright ownership. The ASF
licenses this file
+ # to you 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.
+ #
+ soapmonitor-1.41.mar
+ addressing-1.41.mar
+ ping-1.41.mar
+ mex-1.41.mar
+ scripting-1.41.mar
\ No newline at end of file
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/ping-1.41.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/ping-1.41.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/scripting-1.41.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/scripting-1.41.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/smtpfault.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/smtpfault.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/soapmonitor-1.41.mar
===================================================================
(Binary files differ)
Property changes on:
trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/modules/soapmonitor-1.41.mar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/web.xml
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/WEB-INF/web.xml 2010-09-15
14:41:27 UTC (rev 5751)
@@ -0,0 +1,78 @@
+<!DOCTYPE web-app PUBLIC
+ "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd" >
+
+<web-app>
+ <servlet>
+ <servlet-name>AxisServlet</servlet-name>
+ <display-name>Apache-Axis Servlet</display-name>
+
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <servlet>
+ <servlet-name>AxisAdminServlet</servlet-name>
+ <display-name>Apache-Axis AxisAdmin Servlet (Web
Admin)</display-name>
+ <servlet-class>
+ org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/servlet/AxisServlet</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>*.jws</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisServlet</servlet-name>
+ <url-pattern>/services/*</url-pattern>
+ </servlet-mapping>
+
+ <servlet-mapping>
+ <servlet-name>AxisAdminServlet</servlet-name>
+ <url-pattern>/axis2-admin/*</url-pattern>
+ </servlet-mapping>
+
+ <mime-mapping>
+ <extension>inc</extension>
+ <mime-type>text/plain</mime-type>
+ </mime-mapping>
+
+ <!-- WebAdmin section -->
+ <!-- pS Config Servlet Admin -->
+ <servlet>
+ <servlet-name>BasicConfiguration</servlet-name>
+ <servlet-class>
+
org.perfsonar.webadmin.base2.servlet.BasicConfigurationServlet
+ </servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>BasicConfiguration</servlet-name>
+ <url-pattern>
+ /config
+ </url-pattern>
+ </servlet-mapping>
+
+ <!-- SelfTest servlet -->
+ <servlet>
+ <servlet-name>SelfTestServlet</servlet-name>
+ <servlet-class>
+ org.perfsonar.webadmin.base2.servlet.SelfTestServlet
+ </servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>SelfTestServlet</servlet-name>
+ <url-pattern>
+ /selfTest
+ </url-pattern>
+ </servlet-mapping>
+
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
Added: trunk/perfsonar-java-trs/src/main/webapp/index.jsp
===================================================================
--- trunk/perfsonar-java-trs/src/main/webapp/index.jsp
(rev 0)
+++ trunk/perfsonar-java-trs/src/main/webapp/index.jsp 2010-09-15 14:41:27
UTC (rev 5751)
@@ -0,0 +1,70 @@
+<%@page
import="org.perfsonar.webadmin.base2.servlet.util.ConfigurationServletHelper"%>
+<%@page
import="org.perfsonar.webadmin.base2.config.HTMLGenerator"%>
+
+<html>
+ <head>
+ <title>perfSONAR Service Web Administration page</title>
+ <link rel="stylesheet" type="text/css" href="wa/styles/main.css"/>
+ <link rel="stylesheet" type="text/css" href="wa/styles/default.css"/>
+ <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
+ <script src="wa/scripts/Service_Admin.js"></script>
+ </head>
+ <body>
+ <script src="wa/scripts/wz_tooltip.js"></script>
+ <%
+ HTMLGenerator htmlGenerator=new HTMLGenerator();
+ org.perfsonar.webadmin.base2.config.ObjectMap map =
ConfigurationServletHelper.objectMap(getServletContext());
+ String[] menuBasicLinks=htmlGenerator.getBasicLinks(map,false);
+ String[] menuAdvancedLinks=htmlGenerator.getAdvancedLinks(map,false);
+ String[] mainBasicLinks=htmlGenerator.getBasicLinks(map,true);
+ String[] mainAdvancedLinks=htmlGenerator.getAdvancedLinks(map,true);
+ String serviceName=htmlGenerator.getServiceName(map);
+ String serviceVersion=htmlGenerator.getVersion(map);
+ %>
+
+ <div class="adminPanel">
+ <div class="banner">
+
<%@include
file="wa/views/banner.jsp"%>
+ </div>
+ <div class="mainWindow">
+ <div class="sidebar">
+
<%@include
file="wa/views/sideBar.jsp"%>
+ </div>
+ <div class="centerWindow">
+ <%
+ String pageParam =
request.getParameter("page");
+ if(map==null){
+ %>
+ <jsp:include page="wa/views/error.jsp"/>
+
+ <%
+ }else if(pageParam != null &&
pageParam.equals("save")){
+ %>
+
+ <% if(request.getParameter("ok")!=null){ %>
+ <jsp:include
page="wa/views/configurationSaved.jsp"/>
+ <% }else { %>
+ <jsp:include
page="wa/views/savedFailed.jsp"/>
+ <% } %>
+
+ <%
+ }else if(pageParam != null &&
pageParam.equals("form")){
+
out.println(request.getAttribute("form"));
+ }else if(pageParam != null &&
pageParam.equals("selfTest")){
+ %>
+
<%@include
file="wa/views/selfTest.jsp" %>
+ <%
+ }else{
+ %>
+
<%@include
file="wa/views/welcome.jsp" %>
+ <%
+ }
+ %>
+ </div>
+ </div>
+ <div class="footer">
+ <jsp:include page="wa/views/footer.jsp"/>
+ </div>
+ </div>
+ </body>
+</html>
- [pS-dev] [GEANT/SA2/ps-java-services] r5751 - in trunk/perfsonar-java-trs: . src src/main src/main/resources src/main/resources/perfsonar src/main/resources/perfsonar/conf src/main/webapp src/main/webapp/META-INF src/main/webapp/WEB-INF src/main/webapp/WEB-INF/conf src/main/webapp/WEB-INF/logs src/main/webapp/WEB-INF/modules src/test, svn-noreply, 09/15/2010
Archive powered by MHonArc 2.6.16.