The following document contains the results of Rat (Release Audit Tool).
*****************************************************
Summary
-------
Generated at: 2017-03-12T00:00:56-05:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 14
Apache Licensed: 1
Generated Documents: 0
JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.
13 Unknown Licenses
*****************************************************
Files with unapproved licenses:
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/pom.xml
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertHelper.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertTypeComparator.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DAS4jBean.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DASHelper.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/Pair.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetMessageLogsByRange.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetRecentMessageLogs.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/StatusHelper.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.properties
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.xml
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest.java
C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest2.java
*****************************************************
*****************************************************
Files with Apache License headers will be marked AL
Binary files (which do not require any license headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc. will be marked N
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/pom.xml
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertHelper.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertTypeComparator.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DAS4jBean.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DASHelper.java
AL C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/OpStat.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/Pair.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetMessageLogsByRange.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetRecentMessageLogs.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/StatusHelper.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.properties
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.xml
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest.java
!????? C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest2.java
*****************************************************
Printing headers for text files without a valid license header...
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/pom.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
U.S. Government, Department of the Army
Army Materiel Command
Research Development Engineering Command
Communications Electronics Research Development and Engineering Center
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-server</artifactId>
<version>7.0.0</version>
</parent>
<artifactId>fgsms-data-access-service</artifactId>
<packaging>bundle</packaging>
<name>fgsms Data Access Service</name>
<description>Data Access Service</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-common-interfaces</artifactId>
<version>${project.parent.version}</version>
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertHelper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
import org.miloss.fgsms.services.interfaces.dataaccessservice.AlertType;
/**
*
* @author AO
*/
public class AlertHelper {
public long timestamp;
public String message;
public AlertType type;
public String url;
public String tid;
}
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/AlertTypeComparator.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
import java.io.Serializable;
import java.util.Comparator;
/**
*
* @author AO
*/
public class AlertTypeComparator implements Comparator, Serializable {
public int compare(Object o1, Object o2) {
AlertHelper x = (AlertHelper) o1;
AlertHelper y = (AlertHelper) o2;
if (x.timestamp > y.timestamp) {
return -1;
}
if (x.timestamp == y.timestamp) {
return 0;
}
return 1;
}
}
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DAS4jBean.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
import java.io.ByteArrayInputStream;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
import java.sql.*;
import java.util.*;
import javax.annotation.Resource;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.Unmarshaller;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.Duration;
import java.util.Calendar;
import javax.xml.stream.XMLInputFactory;
import javax.xml.stream.XMLStreamReader;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
import javax.xml.ws.WebServiceContext;
import javax.xml.ws.soap.MTOM;
import org.miloss.fgsms.common.AuditLogger;
import org.miloss.fgsms.common.DBSettingsLoader;
import org.miloss.fgsms.common.Constants;
import org.miloss.fgsms.common.UserIdentityUtil;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.common.*;
import org.miloss.fgsms.services.interfaces.dataaccessservice.*;
import org.miloss.fgsms.services.interfaces.faults.ServiceUnavailableFaultCodes;
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/DASHelper.java
=====================================================
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.miloss.fgsms.services.das.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.datatype.Duration;
import javax.xml.namespace.QName;
import javax.xml.ws.WebServiceContext;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.AuditLogger;
import org.miloss.fgsms.common.Constants;
import org.miloss.fgsms.common.DBUtils;
import org.miloss.fgsms.common.UserIdentityUtil;
import org.miloss.fgsms.common.Utility;
import static org.miloss.fgsms.services.das.impl.DAS4jBean.log;
import org.miloss.fgsms.services.interfaces.common.PolicyType;
import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ArrayOfServiceType;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetPerformanceAverageStatsResponseMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceType;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceUnavailableException;
import org.miloss.fgsms.services.interfaces.faults.ServiceUnavailableFaultCodes;
/**
*
* @author AO
*/
public class DASHelper {
protected static GetPerformanceAverageStatsResponseMsg getPerformanceAvgStatsFromDB(WebServiceContext ctx, String uri, String displayname, SecurityWrapper classification) {
Utility.validateClassification(classification);
/*
* 12-10-2011 if (timeRange == null) { throw new
* IllegalArgumentException("time range is null"); }
*/
if (Utility.stringIsNullOrEmpty(uri)) {
throw new IllegalArgumentException("uri is null");
}
String currentUser = UserIdentityUtil.getFirstIdentityToString(ctx);
AuditLogger.logItem(DAS4jBean.class.getCanonicalName(), "GetPerformanceAvgStatsFromDB", currentUser, uri, classification, ctx.getMessageContext());
GetPerformanceAverageStatsResponseMsg res = new GetPerformanceAverageStatsResponseMsg();
res.setClassification(classification);
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/Pair.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
/**
*
* @author AO
*/
class Pair {
String hostname;
String domainname;
Pair() {
}
}
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetMessageLogsByRange.java
=====================================================
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.miloss.fgsms.services.das.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.GregorianCalendar;
import javax.xml.ws.WebServiceContext;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.AuditLogger;
import org.miloss.fgsms.common.Constants;
import org.miloss.fgsms.common.DBUtils;
import org.miloss.fgsms.common.UserIdentityUtil;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.dataaccessservice.AccessDeniedException;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ArrayOfTransactionLog;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMessageLogsRequestMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMessageLogsResponseMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceUnavailableException;
import org.miloss.fgsms.services.interfaces.dataaccessservice.TransactionLog;
import org.miloss.fgsms.services.interfaces.faults.ServiceUnavailableFaultCodes;
import static org.miloss.fgsms.services.das.impl.DAS4jBean.log;
import static org.miloss.fgsms.services.das.impl.DAS4jBean.getCurrentClassificationLevel;
/**
*
* @author AO
*/
public class QueryGetMessageLogsByRange {
public static GetMessageLogsResponseMsg getMessageLogsByRange(
GetMessageLogsRequestMsg request, WebServiceContext ctx)
throws AccessDeniedException, ServiceUnavailableException {
String currentUser = UserIdentityUtil.getFirstIdentityToString(ctx);
boolean ga = false;
if (request == null) {
throw new IllegalArgumentException("request is null");
}
Utility.validateClassification(request.getClassification());
AuditLogger.logItem(DAS4jBean.class.getCanonicalName(), "getMessageLogs", currentUser, "", (request.getClassification()), ctx.getMessageContext());
if (request.getRange() == null || request.getRange().getEnd() == null || request.getRange().getStart() == null) {
throw new IllegalArgumentException("time range is null");
}
if (Utility.stringIsNullOrEmpty(request.getURL())) {
UserIdentityUtil.assertGlobalAdministratorRole(currentUser, "getMessageLogs", (request.getClassification()), ctx);
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/QueryGetRecentMessageLogs.java
=====================================================
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package org.miloss.fgsms.services.das.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.GregorianCalendar;
import javax.jws.WebParam;
import javax.xml.ws.WebServiceContext;
import org.apache.log4j.Level;
import org.miloss.fgsms.common.AuditLogger;
import org.miloss.fgsms.common.Constants;
import org.miloss.fgsms.common.DBUtils;
import org.miloss.fgsms.common.UserIdentityUtil;
import org.miloss.fgsms.common.Utility;
import static org.miloss.fgsms.services.das.impl.DAS4jBean.log;
import org.miloss.fgsms.services.interfaces.dataaccessservice.AccessDeniedException;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ArrayOfTransactionLog;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMessageLogsResponseMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetRecentMessageLogsRequestMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.ServiceUnavailableException;
import org.miloss.fgsms.services.interfaces.dataaccessservice.TransactionLog;
import org.miloss.fgsms.services.interfaces.faults.ServiceUnavailableFaultCodes;
/**
*
* @author AO
*/
public class QueryGetRecentMessageLogs {
public static GetMessageLogsResponseMsg getRecentMessageLogs(GetRecentMessageLogsRequestMsg request,
WebServiceContext ctx) throws AccessDeniedException, ServiceUnavailableException{
String currentUser = UserIdentityUtil.getFirstIdentityToString(ctx);
if (request == null) {
throw new IllegalArgumentException("request is null");
}
if (request.isFaultsOnly() && request.isSlaViolationsOnly()) {
throw new IllegalArgumentException("specifiy SLA Faults OR Faults Only, but not both");
}
//validate the request
if (Utility.stringIsNullOrEmpty(request.getAgentType())
&& Utility.stringIsNullOrEmpty(request.getMonitorhostname())
&& Utility.stringIsNullOrEmpty(request.getServicehostname())
&& Utility.stringIsNullOrEmpty(request.getURL())) {
throw new IllegalArgumentException("at least one of URL, Agent, Monitor hostname, Service hostname");
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/java/org/miloss/fgsms/services/das/impl/StatusHelper.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
/**
*
* @author AO
*/
class StatusHelper {
String msg;
boolean running;
// Calendar xcal;
}
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.properties
=====================================================
log4j.rootLogger=INFO, CONSOLE
log4j.appender.jaxws.JAXWSWebServiceMetaDataBuilder=ERROR,CONSOLE
log4j.appender.jaxws=ERROR,CONSOLE
log4j.appender.org.jboss.ws.metadata=ERROR,CONSOLE
log4j.appender.org.jboss.ws.metadata.builder=ERROR,CONSOLE
log4j.appender.org.jboss.ws.metadata.builder.MetaDataBuilder=ERROR,CONSOLE
log4j.appender.builder.MetaDataBuilder=ERROR,CONSOLE
log4j.appender.builder=ERROR,CONSOLE
log4j.appender.org.apache.cxf.service.factory.ReflectionServiceFactoryBean=ERROR,CONSOLE
log4j.appender.handler.HandlerChainExecutor=ERROR,CONSOLE
log4j.appender.handler=ERROR,CONSOLE
log4j.appender.soap.MessageContextAssociation=ERROR,CONSOLE
log4j.appender.httpclient.wire.content=WARN, CONSOLE
log4j.appender.httpclient.wire=WARN, CONSOLE
log4j.appender.org.apache.commons.httpclient=WARN, CONSOLE
log4j.appender.httpclient.wire.content=WARN, CONSOLE
log4j.appender.httpclient.wire=WARN, CONSOLE
log4j.appender.org.apache.commons.httpclient=WARN, CONSOLE
log4j.appender.umdm.EndpointMetaData==ERROR, CONSOLE
log4j.appender.handler.HandlerResolverImpl==ERROR, CONSOLE
log4j.appender.binding.BindingImpl==ERROR, CONSOLE
log4j.appender.jaxws.JAXWSWebServiceMetaDataBuilder==ERROR, CONSOLE
log4j.appender.utils.JBossWSEntityResolver==ERROR, CONSOLE
log4j.appender.fgsms.ServiceMixJMX=INFO,CONSOLE
log4j.appender.fgsms.Utility=INFO,CONSOLE
log4j.appender.fgsms.StatusBueller=INFO,CONSOLE
log4j.appender.fgsms.DataCollectorService=INFO,CONSOLE
log4j.appender.fgsms.DataAccessService=INFO,CONSOLE
log4j.appender.org.miloss.fgsms.common.AuditLogger=INFO,CONSOLE
log4j.appender.fgsms.UserIdentityUtil=INFO,CONSOLE
log4j.appender.fgsms.StatusBueller=INFO,CONSOLE
log4j.appender.fgsms.QpidPython=INFO,CONSOLE
log4j.appender.fgsms.QpidJMX=INFO,CONSOLE
log4j.appender.fgsms.DataPruner=INFO,CONSOLE
log4j.appender.fgsms.UDDIPublisher=INFO,CONSOLE
log4j.appender.fgsms.MulticastAlerting=INFO,CONSOLE
log4j.appender.fgsms.SLAProcessor=INFO,CONSOLE
#the following items are used for sending SLA Alerts to specific loggers. Configure them as necessary to pipe log output whereever you need it
log4j.appender.fgsms.SLAProcessor.SysLog=INFO,CONSOLE
log4j.appender.fgsms.SLAProcessor.UdpLog=INFO,CONSOLE
log4j.appender.fgsms.SLAProcessor.EventLog=INFO,CONSOLE
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/main/resources/META-INF/log4j.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : log4j.xml
Created on : October 18, 2011, 6:57 PM
Author : Administrator
Description:
Purpose of the document follows.
-->
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="false">
<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{dd/MM/yy hh:mm:ss:sss z}] %5p %c{2}: %m%n" />
</layout>
</appender>
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/application.log" />
<param name="MaxFileSize" value="1MB" />
<param name="MaxBackupIndex" value="100" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="[%d{dd/MM/yy hh:mm:ss:sss z}] %5p %c{2}: %m%n" />
</layout>
</appender>
<root>
<priority value="info" />
<appender-ref ref="CONSOLE" />
<appender-ref ref="FILE" />
</root>
</log4j:configuration>
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
import org.miloss.fgsms.services.das.impl.DAS4jBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
import org.miloss.fgsms.services.interfaces.dataaccessservice.*;
import org.miloss.fgsms.test.WebServiceBaseTests;
import static org.junit.Assert.*;
import org.junit.*;
import org.miloss.fgsms.services.interfaces.common.TimeRange;
import us.gov.ic.ism.v2.ClassificationType;
/**
*
* @author *
*/
public class DAS4jBeanTest extends WebServiceBaseTests {
public DAS4jBeanTest() throws Exception {
super();
url = "http://localhost:8180/jUnitTestCaseDAS";
Init();
}
=====================================================
== File: C:/projects/fgsms/fgsms-server/fgsms-data-access-service/src/test/java/org/miloss/fgsms/services/das/impl/DAS4jBeanTest2.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.services.das.impl;
import org.miloss.fgsms.services.das.impl.DAS4jBean;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.*;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import org.miloss.fgsms.common.Utility;
import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
import org.miloss.fgsms.services.interfaces.dataaccessservice.*;
import org.miloss.fgsms.test.WebServiceBaseTests;
import static org.junit.Assert.*;
import org.junit.*;
import org.miloss.fgsms.services.interfaces.common.TimeRange;
import static org.miloss.fgsms.test.WebServiceBaseTests.RemoveServicePolicy;
import static org.miloss.fgsms.test.WebServiceBaseTests.bobusername;
import us.gov.ic.ism.v2.ClassificationType;
/**
*
* @author *
*/
public class DAS4jBeanTest2 extends WebServiceBaseTests {
public DAS4jBeanTest2() throws Exception {
super();
url = "http://localhost:8180/jUnitTestCaseDAS";