You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by Andreas Veithen <an...@gmail.com> on 2011/03/21 17:53:09 UTC
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Reason?
Andreas
On Mon, Mar 21, 2011 at 17:46, <dk...@apache.org> wrote:
> Author: dkulp
> Date: Mon Mar 21 16:46:09 2011
> New Revision: 1083862
>
> URL: http://svn.apache.org/viewvc?rev=1083862&view=rev
> Log:
> Use slf4j instead of commons-logging
>
> Modified:
> webservices/commons/trunk/modules/neethi/pom.xml
> webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
>
> Modified: webservices/commons/trunk/modules/neethi/pom.xml
> URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/pom.xml?rev=1083862&r1=1083861&r2=1083862&view=diff
> ==============================================================================
> --- webservices/commons/trunk/modules/neethi/pom.xml (original)
> +++ webservices/commons/trunk/modules/neethi/pom.xml Mon Mar 21 16:46:09 2011
> @@ -19,143 +19,143 @@
> -->
>
> <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>
> + <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>org.apache</groupId>
> <artifactId>apache</artifactId>
> <version>8</version>
> </parent>
> - <groupId>org.apache.neethi</groupId>
> - <artifactId>neethi</artifactId>
> - <name>Apache Neethi</name>
> - <version>3.0.0-SNAPSHOT</version>
> + <groupId>org.apache.neethi</groupId>
> + <artifactId>neethi</artifactId>
> + <name>Apache Neethi</name>
> + <version>3.0.0-SNAPSHOT</version>
> <packaging>bundle</packaging>
> - <description>Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with latest WS Policy specification which was published in March 2006. This framework is specifically written to enable the Apache Web services stack to use WS Policy as a way of expressing it's requirements and capabilities.</description>
> - <url>http://ws.apache.org/commons/neethi/</url>
> - <issueManagement>
> - <url>http://issues.apache.org/jira/browse/NEETHI</url>
> - </issueManagement>
> + <description>Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with latest WS Policy specification which was published in March 2006. This framework is specifically written to enable the Apache Web services stack to use WS Policy as a way of expressing it's requirements and capabilities.</description>
> + <url>http://ws.apache.org/commons/neethi/</url>
> + <issueManagement>
> + <url>http://issues.apache.org/jira/browse/NEETHI</url>
> + </issueManagement>
>
> - <mailingLists>
> - <mailingList>
> - <name>WS Developers</name>
> - <subscribe>dev-subscribe@ws.apache.org</subscribe>
> - <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe>
> - <post>dev@ws.apache.org</post>
> - <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive>
> - </mailingList>
> - </mailingLists>
> - <inceptionYear>2004</inceptionYear>
> - <developers>
> - <developer>
> - <name>Sanjiva Weerawarana</name>
> - <id>sanjiva</id>
> - <organization>WSO2 Inc.</organization>
> - <email>sanjiva@opensource.lk</email>
> - </developer>
> - <developer>
> - <name>Davanum Srinivas</name>
> - <id>dims</id>
> - <organization>IBM</organization>
> - <email>dims@yahoo.com</email>
> - </developer>
> - <developer>
> - <name>Dittmann, Werner</name>
> - <id>werner</id>
> - <organization></organization>
> - <email>werner.dittmann@siemens.com</email>
> - </developer>
> - <developer>
> - <name>Sanka Samaranayake</name>
> - <id>sanka</id>
> - <organization>WSO2 Inc.</organization>
> - <email>sanka@apache.org</email>
> - </developer>
> + <mailingLists>
> + <mailingList>
> + <name>WS Developers</name>
> + <subscribe>dev-subscribe@ws.apache.org</subscribe>
> + <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe>
> + <post>dev@ws.apache.org</post>
> + <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive>
> + </mailingList>
> + </mailingLists>
> + <inceptionYear>2004</inceptionYear>
> + <developers>
> + <developer>
> + <name>Sanjiva Weerawarana</name>
> + <id>sanjiva</id>
> + <organization>WSO2 Inc.</organization>
> + <email>sanjiva@opensource.lk</email>
> + </developer>
> + <developer>
> + <name>Davanum Srinivas</name>
> + <id>dims</id>
> + <organization>IBM</organization>
> + <email>dims@yahoo.com</email>
> + </developer>
> + <developer>
> + <name>Dittmann, Werner</name>
> + <id>werner</id>
> + <organization></organization>
> + <email>werner.dittmann@siemens.com</email>
> + </developer>
> + <developer>
> + <name>Sanka Samaranayake</name>
> + <id>sanka</id>
> + <organization>WSO2 Inc.</organization>
> + <email>sanka@apache.org</email>
> + </developer>
> <developer>
> <name>Daniel Kulp</name>
> <id>dkulp</id>
> <email>dkulp@apache.org</email>
> </developer>
> - <developer>
> + <developer>
> <!-- Documentation -->
> - <name>Chatra Nakkawita</name>
> - <id>chatra</id>
> - <organization>WSO2 Inc.</organization>
> - <email>chatra@gmail.com</email>
> - </developer>
> - </developers>
> - <licenses>
> - <license>
> - <name>The Apache Software License, Version 2.0</name>
> - <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
> - <distribution>repo</distribution>
> - </license>
> - </licenses>
> - <scm>
> - <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/trunk/modules/neethi</connection>
> - <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/neethi</developerConnection>
> - <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules/neethi</url>
> - </scm>
> - <organization>
> - <name>The Apache Software Foundation</name>
> - <url>http://www.apache.org/</url>
> - </organization>
> - <build>
> + <name>Chatra Nakkawita</name>
> + <id>chatra</id>
> + <organization>WSO2 Inc.</organization>
> + <email>chatra@gmail.com</email>
> + </developer>
> + </developers>
> + <licenses>
> + <license>
> + <name>The Apache Software License, Version 2.0</name>
> + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
> + <distribution>repo</distribution>
> + </license>
> + </licenses>
> + <scm>
> + <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/trunk/modules/neethi</connection>
> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/neethi</developerConnection>
> + <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules/neethi</url>
> + </scm>
> + <organization>
> + <name>The Apache Software Foundation</name>
> + <url>http://www.apache.org/</url>
> + </organization>
> + <build>
> <resources>
> - <resource>
> - <directory>src/main/resources</directory>
> - </resource>
> + <resource>
> + <directory>src/main/resources</directory>
> + </resource>
> </resources>
> - <plugins>
> - <plugin>
> - <artifactId>maven-compiler-plugin</artifactId>
> - <configuration>
> - <source>1.5</source>
> - <target>1.5</target>
> - </configuration>
> - </plugin>
> - <plugin>
> - <artifactId>maven-surefire-plugin</artifactId>
> - <configuration>
> - <forkMode>once</forkMode>
> - <childDelegation>false</childDelegation>
> - <excludes>
> - <exclude>**/PolicyTestCase.java</exclude>
> - </excludes>
> - <includes>
> - <include>**/*Test*.java</include>
> - </includes>
> - </configuration>
> - </plugin>
> - <plugin>
> - <artifactId>maven-release-plugin</artifactId>
> - <configuration>
> - <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neethi</tagBase>
> - </configuration>
> - </plugin>
> - <plugin>
> - <artifactId>maven-assembly-plugin</artifactId>
> - <configuration>
> - <descriptors>
> - <descriptor>src/main/assembly/bin.xml</descriptor>
> - <descriptor>src/main/assembly/src.xml</descriptor>
> - </descriptors>
> - <tarLongFileMode>gnu</tarLongFileMode>
> - </configuration>
> - </plugin>
> - <plugin>
> - <artifactId>maven-source-plugin</artifactId>
> - <executions>
> - <execution>
> - <goals>
> - <goal>jar</goal>
> - </goals>
> - </execution>
> - </executions>
> - <configuration>
> - <attach>true</attach>
> - </configuration>
> - </plugin>
> + <plugins>
> + <plugin>
> + <artifactId>maven-compiler-plugin</artifactId>
> + <configuration>
> + <source>1.5</source>
> + <target>1.5</target>
> + </configuration>
> + </plugin>
> + <plugin>
> + <artifactId>maven-surefire-plugin</artifactId>
> + <configuration>
> + <forkMode>once</forkMode>
> + <childDelegation>false</childDelegation>
> + <excludes>
> + <exclude>**/PolicyTestCase.java</exclude>
> + </excludes>
> + <includes>
> + <include>**/*Test*.java</include>
> + </includes>
> + </configuration>
> + </plugin>
> + <plugin>
> + <artifactId>maven-release-plugin</artifactId>
> + <configuration>
> + <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neethi</tagBase>
> + </configuration>
> + </plugin>
> + <plugin>
> + <artifactId>maven-assembly-plugin</artifactId>
> + <configuration>
> + <descriptors>
> + <descriptor>src/main/assembly/bin.xml</descriptor>
> + <descriptor>src/main/assembly/src.xml</descriptor>
> + </descriptors>
> + <tarLongFileMode>gnu</tarLongFileMode>
> + </configuration>
> + </plugin>
> + <plugin>
> + <artifactId>maven-source-plugin</artifactId>
> + <executions>
> + <execution>
> + <goals>
> + <goal>jar</goal>
> + </goals>
> + </execution>
> + </executions>
> + <configuration>
> + <attach>true</attach>
> + </configuration>
> + </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> @@ -176,7 +176,7 @@
> <Import-Package>
> org.apache.axiom.*;resolution:=optional,
> javax.xml.stream;version="[0.0,2)",
> - org.apache.commons.logging,
> + org.slf4j*;resolution:=optional;version="[1.5,2)",
> *
> </Import-Package>
> <_failok>true</_failok>
> @@ -186,58 +186,58 @@
> </configuration>
> </plugin>
>
> - </plugins>
> - </build>
> - <profiles>
> - <profile>
> - <id>release</id>
> - <activation>
> - <property>
> - <name>release</name>
> - <value></value>
> - </property>
> - </activation>
> - <build>
> - <plugins>
> - <plugin>
> - <artifactId>maven-javadoc-plugin</artifactId>
> + </plugins>
> + </build>
> + <profiles>
> + <profile>
> + <id>release</id>
> + <activation>
> + <property>
> + <name>release</name>
> + <value></value>
> + </property>
> + </activation>
> + <build>
> + <plugins>
> + <plugin>
> + <artifactId>maven-javadoc-plugin</artifactId>
> <version>2.7</version>
> - <executions>
> - <execution>
> - <goals>
> - <goal>javadoc</goal>
> - </goals>
> - </execution>
> - </executions>
> - <configuration>
> - <attach>true</attach>
> - </configuration>
> - </plugin>
> - </plugins>
> - </build>
> - </profile>
> - </profiles>
> + <executions>
> + <execution>
> + <goals>
> + <goal>javadoc</goal>
> + </goals>
> + </execution>
> + </executions>
> + <configuration>
> + <attach>true</attach>
> + </configuration>
> + </plugin>
> + </plugins>
> + </build>
> + </profile>
> + </profiles>
>
>
> - <dependencies>
> - <dependency>
> - <groupId>org.apache.ws.commons.axiom</groupId>
> - <artifactId>axiom-api</artifactId>
> - <version>${axiom.version}</version>
> + <dependencies>
> + <dependency>
> + <groupId>org.apache.ws.commons.axiom</groupId>
> + <artifactId>axiom-api</artifactId>
> + <version>${axiom.version}</version>
> + <scope>provided</scope>
> + </dependency>
> + <dependency>
> + <groupId>org.apache.ws.commons.axiom</groupId>
> + <artifactId>axiom-impl</artifactId>
> + <version>${axiom.version}</version>
> <scope>provided</scope>
> - </dependency>
> - <dependency>
> - <groupId>org.apache.ws.commons.axiom</groupId>
> - <artifactId>axiom-impl</artifactId>
> - <version>${axiom.version}</version>
> - <scope>provided</scope>
> <exclusions>
> <exclusion>
> <groupId>org.codehaus.woodstox</groupId>
> <artifactId>wstx-asl</artifactId>
> </exclusion>
> </exclusions>
> - </dependency>
> + </dependency>
> <dependency>
> <groupId>org.apache.ws.commons.axiom</groupId>
> <artifactId>axiom-dom</artifactId>
> @@ -250,45 +250,57 @@
> </exclusion>
> </exclusions>
> </dependency>
> - <dependency>
> - <groupId>wsdl4j</groupId>
> - <artifactId>wsdl4j</artifactId>
> - <version>1.6.2</version>
> - </dependency>
> - <dependency>
> - <groupId>junit</groupId>
> - <artifactId>junit</artifactId>
> - <version>3.8.2</version>
> - <scope>test</scope>
> - </dependency>
> + <dependency>
> + <groupId>wsdl4j</groupId>
> + <artifactId>wsdl4j</artifactId>
> + <version>1.6.2</version>
> + </dependency>
> + <dependency>
> + <groupId>junit</groupId>
> + <artifactId>junit</artifactId>
> + <version>3.8.2</version>
> + <scope>test</scope>
> + </dependency>
> <dependency>
> <groupId>org.codehaus.woodstox</groupId>
> <artifactId>woodstox-core-asl</artifactId>
> <version>4.0.8</version>
> </dependency>
> - </dependencies>
> - <reporting>
> - <plugins>
> - <plugin>
> - <groupId>org.apache.maven.plugins</groupId>
> - <artifactId>maven-javadoc-plugin</artifactId>
> - <version>2.7</version>
> - </plugin>
> - <plugin>
> - <artifactId>maven-project-info-reports-plugin</artifactId>
> - </plugin>
> - </plugins>
> - </reporting>
> - <distributionManagement>
> - <site>
> - <id>website</id>
> - <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url>
> - </site>
> - </distributionManagement>
> - <properties>
> + <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-api</artifactId>
> + <version>${slf4j-version}</version>
> + </dependency>
> + <dependency>
> + <groupId>org.slf4j</groupId>
> + <artifactId>slf4j-jdk14</artifactId>
> + <version>${slf4j-version}</version>
> + <scope>provided</scope>
> + </dependency>
> + </dependencies>
> + <reporting>
> + <plugins>
> + <plugin>
> + <groupId>org.apache.maven.plugins</groupId>
> + <artifactId>maven-javadoc-plugin</artifactId>
> + <version>2.7</version>
> + </plugin>
> + <plugin>
> + <artifactId>maven-project-info-reports-plugin</artifactId>
> + </plugin>
> + </plugins>
> + </reporting>
> + <distributionManagement>
> + <site>
> + <id>website</id>
> + <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url>
> + </site>
> + </distributionManagement>
> + <properties>
> <axiom.version>1.2.11</axiom.version>
> <neethi.osgi.version>${project.version}</neethi.osgi.version>
> <bundle.plugin.version>2.1.0</bundle.plugin.version>
> + <slf4j-version>1.6.1</slf4j-version>
> <failIfNoTests>false</failIfNoTests>
> - </properties>
> + </properties>
> </project>
>
> Modified: webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java
> URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java?rev=1083862&r1=1083861&r2=1083862&view=diff
> ==============================================================================
> --- webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java (original)
> +++ webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi/PolicyBuilder.java Mon Mar 21 16:46:09 2011
> @@ -28,10 +28,10 @@ import javax.xml.stream.XMLStreamReader;
>
> import org.w3c.dom.Element;
>
> -import org.apache.commons.logging.Log;
> -import org.apache.commons.logging.LogFactory;
> import org.apache.neethi.builders.AssertionBuilder;
> import org.apache.neethi.builders.converters.ConverterRegistry;
> +import org.slf4j.Logger;
> +import org.slf4j.LoggerFactory;
>
> /**
> * PolicyBuilder provides set of methods to create a Policy object from an
> @@ -42,7 +42,7 @@ import org.apache.neethi.builders.conver
> */
> public class PolicyBuilder {
>
> - private static final Log LOG = LogFactory.getLog(PolicyBuilder.class);
> + private static final Logger LOG = LoggerFactory.getLogger(PolicyBuilder.class);
>
> protected AssertionBuilderFactory factory = new AssertionBuilderFactoryImpl(this);
> protected PolicyRegistry defaultPolicyRegistry;
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Andreas,
I agree with your points about having two different logging APIs and
also the dependency problems involving SLF4J. Take a look at the large
number of SLF4J exclusions in the WSS4J pom for the Opensaml
dependency ;-)
I also accept that the OSGi argument is irrelevant. The argument for
moving to SLF4J (for WSS4J) boils down to this then: WSS4J 1.6.0 has
dependencies on two logging APIs, because of the Opensaml dependency,
where we would only have one if Santuario was ported as well. It's
probably not enough of a reason to change the logging API of two
projects, so I think I will scrap this task.
Colm.
On Wed, Apr 6, 2011 at 9:22 PM, Andreas Veithen
<an...@gmail.com> wrote:
> Colm,
>
> The argument about OpenSAML may make sense for WSS4J, but it doesn't
> apply to Neethi. As pointed out by Dan, the argument about OSGi also
> "is irrelevant more or less". This leaves us with a single argument,
> namely that having Neethi depend on SLF4J instead of commons-logging
> is more convenient for CXF. However, if you look at the other
> downstream project, namely Axis2, it's exactly the other way round.
> The core Axis2 distribution has no dependency on SLF4J, but uses
> commons-logging itself and has several dependencies that use
> commons-logging. If we agree that we should not arbitrarily favor one
> or the other SOAP stack, then the conclusion right now is that there
> is no clear argument in favor of one or the other logging API (for
> Neethi).
>
> My opinion on the commons-logging vs. SLF4J question has always been
> that from an architectural perspective, SLF4J has some good points.
> However, there are two key issues with SLF4J that annihilate these
> advantages:
>
> 1) When commons-logging was created, it filled a gap that existed in
> the Java world, namely the need for a standard abstract logging API.
> However, since almost every project and library needs logging, there
> is simply not enough room in this space for two competing APIs. The
> mistake that SLF4J made was to create yet-another-logging-API instead
> of creating a drop-in replacement for commons-logging. By doing so,
> they didn't make Java a better place.
>
> 2) Whenever SLF4J appears in the dependencies of a (Maven) project,
> you almost inevitably get into a dependency hell. I explained the
> reasons for this in a blog post [1] some time ago. It is also worth
> reading the discussion after Woden started to use SLF4J [2] (they
> switched to commons-logging afterwards). BTW, OpenSAML is a good
> example of how you get into these issues. Here is part of the
> dependency tree of that library:
>
> [INFO] +- org.opensaml:opensaml:jar:2.2.3:compile
> [INFO] | +- org.opensaml:openws:jar:1.2.2:compile
> [INFO] | | \- org.opensaml:xmltooling:jar:1.2.0:compile
> [INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.5.5:compile
> [INFO] | | +- org.slf4j:log4j-over-slf4j:jar:1.5.5:compile
> [INFO] | | +- joda-time:joda-time:jar:1.5.2:compile
> [INFO] | | +- org.bouncycastle:bcprov-ext-jdk15:jar:1.40:compile
> [INFO] | | +- org.apache.commons.ssl:not-yet-commons-ssl:jar:0.3.9:compile
> [INFO] | | \- net.jcip:jcip-annotations:jar:1.0:compile
>
> Why on earth does this thing have a dependeny on jcl-over-slf4j and
> log4j-over-slf4j? I run into this type of problem in almost every
> project that somehow depends on SLF4J. Last time was just an hour ago
> in Rampart: see r1089599.
>
> Andreas
>
> [1] http://veithen.blogspot.com/2009/10/taming-beast-managing-slf4j.html
> [2] http://markmail.org/message/zujc7ci5aqwtzjn5
>
> On Fri, Apr 1, 2011 at 16:28, Colm O hEigeartaigh <co...@apache.org> wrote:
>> Hi Andreas,
>>
>> Could you let me know if Dan's mail satisfies your questions about
>> moving to SLF4J, or if you still have objections to it?
>>
>> Just to spell out the logging dependencies, WSS4J 1.6 currently has a
>> dependency on slf4j-api via the Opensaml2 dependency. It also has a
>> dependency on commons-logging, as this is the logging API that WSS4J
>> uses (as well as XML Security).
>>
>> If we move to use SLF4J, WSS4J 1.6 will have a dependency on slf4j-api
>> and on slf4j-jcl, which will be required because of the commons
>> logging dependency in XML Security. However, once XML Security 1.5
>> goes out with a switch to SLF4J, we should be in a position to drop
>> the slf4j-jcl dependency in WSS4J 1.6.x.
>>
>> Colm.
>>
>> On Mon, Mar 28, 2011 at 8:02 PM, Daniel Kulp <dk...@apache.org> wrote:
>>> On Monday 28 March 2011 2:40:15 PM Andreas Veithen wrote:
>>>> I think there is a flaw in the argument related to OSGi (or at least
>>>> something to clarify). You need to make a distinction between the API
>>>> against which you code and the actual implementation that you are
>>>> using at runtime. In addition to its own API, SLF4J also provides a
>>>> re-implementation of the commons-logging API. Therefore it seems to me
>>>> that even if SLF4J works better in an OSGi environment, that doesn't
>>>> necessary imply that you have to use the SLF4J API. If I understand
>>>> [1] correctly, that is the strategy they use for Spring(-DM).
>>>
>>> Well, with OSGi, it really depends on how you setup your OSGi container. For
>>> the most part, *I* would normally recomment using the pax-logging stuff which
>>> pretty much exposes all the various logging API's and funnels them into a
>>> common place. Thus, the argument is irrelevant more or less.
>>>
>>> If you setup your own OSGi container and want to strip it down to the VERY
>>> basics that are required, then it could be an issue. You would definitely
>>> need either commons-logging bundle or the jcl-over-slf4j bundle. That would
>>> be one additional bundle compared to just using on slf4j. Likely not a huge
>>> deal, but it is an addional dependency. You would still need slf4j-api and
>>> an slf4j implementation since the other deps would need it.
>>>
>>> In this case, I really do agree with Colm. If the two primary dependencies
>>> of WSS4J (XMLSec and Opensaml) use slf4j, everyone that uses wss4j are going
>>> to need slf4j anyway. However, they may not need commons-logging. Using
>>> slf4j in wss4j makes sense to me.
>>>
>>> For example, with CXF, I think the only two commonly used deps that use
>>> commons-logging now are Spring and wss4j. However, a bunch of deps now use
>>> slf4j. With 2.4.0, Spring is really quite optional. Thus, commons-logging
>>> usage is really just delegated to wss4j. If that could be eliminated, that
>>> would be a good thing. Again, helps with stripping down the runtime for the
>>> lighter weight, embedded use cases.
>>>
>>>
>>> Dan
>>>
>>>
>>>
>>>
>>>>
>>>> Andreas
>>>>
>>>> [1]
>>>> http://static.springsource.org/osgi/docs/1.0.2/reference/html/spring-osgi-
>>>> faq.html#logging
>>>>
>>>> On Thu, Mar 24, 2011 at 11:34, Colm O hEigeartaigh <co...@apache.org>
>>> wrote:
>>>> > I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
>>>> > it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
>>>> > uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
>>>> > months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
>>>> > will also move from commons logging to SLF4J. If the two most
>>>> > important dependencies of WSS4J are using SLF4J, it makes sense for
>>>> > WSS4J to use it as well, given that this is a major version change.
>>>> > Obviously, the other important reason is out of the box OSGi support
>>>> > for SLF4J.
>>>
>>>
>>> --
>>> Daniel Kulp
>>> dkulp@apache.org
>>> http://dankulp.com/blog
>>> Talend - http://www.talend.com
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: dev-help@ws.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Andreas Veithen <an...@gmail.com>.
Colm,
The argument about OpenSAML may make sense for WSS4J, but it doesn't
apply to Neethi. As pointed out by Dan, the argument about OSGi also
"is irrelevant more or less". This leaves us with a single argument,
namely that having Neethi depend on SLF4J instead of commons-logging
is more convenient for CXF. However, if you look at the other
downstream project, namely Axis2, it's exactly the other way round.
The core Axis2 distribution has no dependency on SLF4J, but uses
commons-logging itself and has several dependencies that use
commons-logging. If we agree that we should not arbitrarily favor one
or the other SOAP stack, then the conclusion right now is that there
is no clear argument in favor of one or the other logging API (for
Neethi).
My opinion on the commons-logging vs. SLF4J question has always been
that from an architectural perspective, SLF4J has some good points.
However, there are two key issues with SLF4J that annihilate these
advantages:
1) When commons-logging was created, it filled a gap that existed in
the Java world, namely the need for a standard abstract logging API.
However, since almost every project and library needs logging, there
is simply not enough room in this space for two competing APIs. The
mistake that SLF4J made was to create yet-another-logging-API instead
of creating a drop-in replacement for commons-logging. By doing so,
they didn't make Java a better place.
2) Whenever SLF4J appears in the dependencies of a (Maven) project,
you almost inevitably get into a dependency hell. I explained the
reasons for this in a blog post [1] some time ago. It is also worth
reading the discussion after Woden started to use SLF4J [2] (they
switched to commons-logging afterwards). BTW, OpenSAML is a good
example of how you get into these issues. Here is part of the
dependency tree of that library:
[INFO] +- org.opensaml:opensaml:jar:2.2.3:compile
[INFO] | +- org.opensaml:openws:jar:1.2.2:compile
[INFO] | | \- org.opensaml:xmltooling:jar:1.2.0:compile
[INFO] | | +- org.slf4j:jcl-over-slf4j:jar:1.5.5:compile
[INFO] | | +- org.slf4j:log4j-over-slf4j:jar:1.5.5:compile
[INFO] | | +- joda-time:joda-time:jar:1.5.2:compile
[INFO] | | +- org.bouncycastle:bcprov-ext-jdk15:jar:1.40:compile
[INFO] | | +- org.apache.commons.ssl:not-yet-commons-ssl:jar:0.3.9:compile
[INFO] | | \- net.jcip:jcip-annotations:jar:1.0:compile
Why on earth does this thing have a dependeny on jcl-over-slf4j and
log4j-over-slf4j? I run into this type of problem in almost every
project that somehow depends on SLF4J. Last time was just an hour ago
in Rampart: see r1089599.
Andreas
[1] http://veithen.blogspot.com/2009/10/taming-beast-managing-slf4j.html
[2] http://markmail.org/message/zujc7ci5aqwtzjn5
On Fri, Apr 1, 2011 at 16:28, Colm O hEigeartaigh <co...@apache.org> wrote:
> Hi Andreas,
>
> Could you let me know if Dan's mail satisfies your questions about
> moving to SLF4J, or if you still have objections to it?
>
> Just to spell out the logging dependencies, WSS4J 1.6 currently has a
> dependency on slf4j-api via the Opensaml2 dependency. It also has a
> dependency on commons-logging, as this is the logging API that WSS4J
> uses (as well as XML Security).
>
> If we move to use SLF4J, WSS4J 1.6 will have a dependency on slf4j-api
> and on slf4j-jcl, which will be required because of the commons
> logging dependency in XML Security. However, once XML Security 1.5
> goes out with a switch to SLF4J, we should be in a position to drop
> the slf4j-jcl dependency in WSS4J 1.6.x.
>
> Colm.
>
> On Mon, Mar 28, 2011 at 8:02 PM, Daniel Kulp <dk...@apache.org> wrote:
>> On Monday 28 March 2011 2:40:15 PM Andreas Veithen wrote:
>>> I think there is a flaw in the argument related to OSGi (or at least
>>> something to clarify). You need to make a distinction between the API
>>> against which you code and the actual implementation that you are
>>> using at runtime. In addition to its own API, SLF4J also provides a
>>> re-implementation of the commons-logging API. Therefore it seems to me
>>> that even if SLF4J works better in an OSGi environment, that doesn't
>>> necessary imply that you have to use the SLF4J API. If I understand
>>> [1] correctly, that is the strategy they use for Spring(-DM).
>>
>> Well, with OSGi, it really depends on how you setup your OSGi container. For
>> the most part, *I* would normally recomment using the pax-logging stuff which
>> pretty much exposes all the various logging API's and funnels them into a
>> common place. Thus, the argument is irrelevant more or less.
>>
>> If you setup your own OSGi container and want to strip it down to the VERY
>> basics that are required, then it could be an issue. You would definitely
>> need either commons-logging bundle or the jcl-over-slf4j bundle. That would
>> be one additional bundle compared to just using on slf4j. Likely not a huge
>> deal, but it is an addional dependency. You would still need slf4j-api and
>> an slf4j implementation since the other deps would need it.
>>
>> In this case, I really do agree with Colm. If the two primary dependencies
>> of WSS4J (XMLSec and Opensaml) use slf4j, everyone that uses wss4j are going
>> to need slf4j anyway. However, they may not need commons-logging. Using
>> slf4j in wss4j makes sense to me.
>>
>> For example, with CXF, I think the only two commonly used deps that use
>> commons-logging now are Spring and wss4j. However, a bunch of deps now use
>> slf4j. With 2.4.0, Spring is really quite optional. Thus, commons-logging
>> usage is really just delegated to wss4j. If that could be eliminated, that
>> would be a good thing. Again, helps with stripping down the runtime for the
>> lighter weight, embedded use cases.
>>
>>
>> Dan
>>
>>
>>
>>
>>>
>>> Andreas
>>>
>>> [1]
>>> http://static.springsource.org/osgi/docs/1.0.2/reference/html/spring-osgi-
>>> faq.html#logging
>>>
>>> On Thu, Mar 24, 2011 at 11:34, Colm O hEigeartaigh <co...@apache.org>
>> wrote:
>>> > I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
>>> > it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
>>> > uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
>>> > months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
>>> > will also move from commons logging to SLF4J. If the two most
>>> > important dependencies of WSS4J are using SLF4J, it makes sense for
>>> > WSS4J to use it as well, given that this is a major version change.
>>> > Obviously, the other important reason is out of the box OSGi support
>>> > for SLF4J.
>>
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://dankulp.com/blog
>> Talend - http://www.talend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: dev-help@ws.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Andreas,
Could you let me know if Dan's mail satisfies your questions about
moving to SLF4J, or if you still have objections to it?
Just to spell out the logging dependencies, WSS4J 1.6 currently has a
dependency on slf4j-api via the Opensaml2 dependency. It also has a
dependency on commons-logging, as this is the logging API that WSS4J
uses (as well as XML Security).
If we move to use SLF4J, WSS4J 1.6 will have a dependency on slf4j-api
and on slf4j-jcl, which will be required because of the commons
logging dependency in XML Security. However, once XML Security 1.5
goes out with a switch to SLF4J, we should be in a position to drop
the slf4j-jcl dependency in WSS4J 1.6.x.
Colm.
On Mon, Mar 28, 2011 at 8:02 PM, Daniel Kulp <dk...@apache.org> wrote:
> On Monday 28 March 2011 2:40:15 PM Andreas Veithen wrote:
>> I think there is a flaw in the argument related to OSGi (or at least
>> something to clarify). You need to make a distinction between the API
>> against which you code and the actual implementation that you are
>> using at runtime. In addition to its own API, SLF4J also provides a
>> re-implementation of the commons-logging API. Therefore it seems to me
>> that even if SLF4J works better in an OSGi environment, that doesn't
>> necessary imply that you have to use the SLF4J API. If I understand
>> [1] correctly, that is the strategy they use for Spring(-DM).
>
> Well, with OSGi, it really depends on how you setup your OSGi container. For
> the most part, *I* would normally recomment using the pax-logging stuff which
> pretty much exposes all the various logging API's and funnels them into a
> common place. Thus, the argument is irrelevant more or less.
>
> If you setup your own OSGi container and want to strip it down to the VERY
> basics that are required, then it could be an issue. You would definitely
> need either commons-logging bundle or the jcl-over-slf4j bundle. That would
> be one additional bundle compared to just using on slf4j. Likely not a huge
> deal, but it is an addional dependency. You would still need slf4j-api and
> an slf4j implementation since the other deps would need it.
>
> In this case, I really do agree with Colm. If the two primary dependencies
> of WSS4J (XMLSec and Opensaml) use slf4j, everyone that uses wss4j are going
> to need slf4j anyway. However, they may not need commons-logging. Using
> slf4j in wss4j makes sense to me.
>
> For example, with CXF, I think the only two commonly used deps that use
> commons-logging now are Spring and wss4j. However, a bunch of deps now use
> slf4j. With 2.4.0, Spring is really quite optional. Thus, commons-logging
> usage is really just delegated to wss4j. If that could be eliminated, that
> would be a good thing. Again, helps with stripping down the runtime for the
> lighter weight, embedded use cases.
>
>
> Dan
>
>
>
>
>>
>> Andreas
>>
>> [1]
>> http://static.springsource.org/osgi/docs/1.0.2/reference/html/spring-osgi-
>> faq.html#logging
>>
>> On Thu, Mar 24, 2011 at 11:34, Colm O hEigeartaigh <co...@apache.org>
> wrote:
>> > I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
>> > it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
>> > uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
>> > months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
>> > will also move from commons logging to SLF4J. If the two most
>> > important dependencies of WSS4J are using SLF4J, it makes sense for
>> > WSS4J to use it as well, given that this is a major version change.
>> > Obviously, the other important reason is out of the box OSGi support
>> > for SLF4J.
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> Talend - http://www.talend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi: pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Daniel Kulp <dk...@apache.org>.
On Monday 28 March 2011 2:40:15 PM Andreas Veithen wrote:
> I think there is a flaw in the argument related to OSGi (or at least
> something to clarify). You need to make a distinction between the API
> against which you code and the actual implementation that you are
> using at runtime. In addition to its own API, SLF4J also provides a
> re-implementation of the commons-logging API. Therefore it seems to me
> that even if SLF4J works better in an OSGi environment, that doesn't
> necessary imply that you have to use the SLF4J API. If I understand
> [1] correctly, that is the strategy they use for Spring(-DM).
Well, with OSGi, it really depends on how you setup your OSGi container. For
the most part, *I* would normally recomment using the pax-logging stuff which
pretty much exposes all the various logging API's and funnels them into a
common place. Thus, the argument is irrelevant more or less.
If you setup your own OSGi container and want to strip it down to the VERY
basics that are required, then it could be an issue. You would definitely
need either commons-logging bundle or the jcl-over-slf4j bundle. That would
be one additional bundle compared to just using on slf4j. Likely not a huge
deal, but it is an addional dependency. You would still need slf4j-api and
an slf4j implementation since the other deps would need it.
In this case, I really do agree with Colm. If the two primary dependencies
of WSS4J (XMLSec and Opensaml) use slf4j, everyone that uses wss4j are going
to need slf4j anyway. However, they may not need commons-logging. Using
slf4j in wss4j makes sense to me.
For example, with CXF, I think the only two commonly used deps that use
commons-logging now are Spring and wss4j. However, a bunch of deps now use
slf4j. With 2.4.0, Spring is really quite optional. Thus, commons-logging
usage is really just delegated to wss4j. If that could be eliminated, that
would be a good thing. Again, helps with stripping down the runtime for the
lighter weight, embedded use cases.
Dan
>
> Andreas
>
> [1]
> http://static.springsource.org/osgi/docs/1.0.2/reference/html/spring-osgi-
> faq.html#logging
>
> On Thu, Mar 24, 2011 at 11:34, Colm O hEigeartaigh <co...@apache.org>
wrote:
> > I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
> > it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
> > uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
> > months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
> > will also move from commons logging to SLF4J. If the two most
> > important dependencies of WSS4J are using SLF4J, it makes sense for
> > WSS4J to use it as well, given that this is a major version change.
> > Obviously, the other important reason is out of the box OSGi support
> > for SLF4J.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Andreas Veithen <an...@gmail.com>.
I think there is a flaw in the argument related to OSGi (or at least
something to clarify). You need to make a distinction between the API
against which you code and the actual implementation that you are
using at runtime. In addition to its own API, SLF4J also provides a
re-implementation of the commons-logging API. Therefore it seems to me
that even if SLF4J works better in an OSGi environment, that doesn't
necessary imply that you have to use the SLF4J API. If I understand
[1] correctly, that is the strategy they use for Spring(-DM).
Andreas
[1] http://static.springsource.org/osgi/docs/1.0.2/reference/html/spring-osgi-faq.html#logging
On Thu, Mar 24, 2011 at 11:34, Colm O hEigeartaigh <co...@apache.org> wrote:
> I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
> it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
> uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
> months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
> will also move from commons logging to SLF4J. If the two most
> important dependencies of WSS4J are using SLF4J, it makes sense for
> WSS4J to use it as well, given that this is a major version change.
> Obviously, the other important reason is out of the box OSGi support
> for SLF4J.
>
> Thoughts?
>
> Colm.
>
> On Mon, Mar 21, 2011 at 5:13 PM, Daniel Kulp <dk...@apache.org> wrote:
>> On Monday 21 March 2011 12:53:09 PM Andreas Veithen wrote:
>>> Reason?
>>
>> Well, 2.0.x didn't have any logging at all. Any logging framework is really
>> a new dependency for Neethi. slf4j generally works better than commons-
>> logging in OSGi (and every other environment) and, IMO, is a better option to
>> use going forward for Neethi. Thus, if we're going to introduce logging, I'd
>> wrather go with the better option.
>>
>>
>> If you don't want to go that route, I'd be more tempted to just remove the
>> logging entirely. There is only a single log statement in the code right now
>> anyway. Hardly worth it.
>>
>> Dan
>>
>>
>>
>>> Andreas
>>>
>>> On Mon, Mar 21, 2011 at 17:46, <dk...@apache.org> wrote:
>>> > Author: dkulp
>>> > Date: Mon Mar 21 16:46:09 2011
>>> > New Revision: 1083862
>>> >
>>> > URL: http://svn.apache.org/viewvc?rev=1083862&view=rev
>>> > Log:
>>> > Use slf4j instead of commons-logging
>>> >
>>> > Modified:
>>> > webservices/commons/trunk/modules/neethi/pom.xml
>>> >
>>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neeth
>>> > i/PolicyBuilder.java
>>> >
>>> > Modified: webservices/commons/trunk/modules/neethi/pom.xml
>>> > URL:
>>> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/po
>>> > m.xml?rev=1083862&r1=1083861&r2=1083862&view=diff
>>> > ========================================================================
>>> > ====== --- webservices/commons/trunk/modules/neethi/pom.xml (original)
>>> > +++ webservices/commons/trunk/modules/neethi/pom.xml Mon Mar 21 16:46:09
>>> > 2011 @@ -19,143 +19,143 @@
>>> > -->
>>> >
>>> > <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>
>>> > + <modelVersion>4.0.0</modelVersion>
>>> > <parent>
>>> > <groupId>org.apache</groupId>
>>> > <artifactId>apache</artifactId>
>>> > <version>8</version>
>>> > </parent>
>>> > - <groupId>org.apache.neethi</groupId>
>>> > - <artifactId>neethi</artifactId>
>>> > - <name>Apache Neethi</name>
>>> > - <version>3.0.0-SNAPSHOT</version>
>>> > + <groupId>org.apache.neethi</groupId>
>>> > + <artifactId>neethi</artifactId>
>>> > + <name>Apache Neethi</name>
>>> > + <version>3.0.0-SNAPSHOT</version>
>>> > <packaging>bundle</packaging>
>>> > - <description>Apache Neethi provides general framework for the
>>> > programmers to use WS Policy. It is compliant with latest WS Policy
>>> > specification which was published in March 2006. This framework is
>>> > specifically written to enable the Apache Web services stack to use WS
>>> > Policy as a way of expressing it's requirements and
>>> > capabilities.</description> -
>>> > <url>http://ws.apache.org/commons/neethi/</url>
>>> > - <issueManagement>
>>> > - <url>http://issues.apache.org/jira/browse/NEETHI</url>
>>> > - </issueManagement>
>>> > + <description>Apache Neethi provides general framework for the
>>> > programmers to use WS Policy. It is compliant with latest WS Policy
>>> > specification which was published in March 2006. This framework is
>>> > specifically written to enable the Apache Web services stack to use WS
>>> > Policy as a way of expressing it's requirements and
>>> > capabilities.</description> +
>>> > <url>http://ws.apache.org/commons/neethi/</url>
>>> > + <issueManagement>
>>> > + <url>http://issues.apache.org/jira/browse/NEETHI</url>
>>> > + </issueManagement>
>>> >
>>> > - <mailingLists>
>>> > - <mailingList>
>>> > - <name>WS Developers</name>
>>> > -
>>> > <subscribe>dev-subscribe@ws.apache.org</subscribe> -
>>> > <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe> -
>>> > <post>dev@ws.apache.org</post>
>>> > -
>>> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> -
>>> > </mailingList>
>>> > - </mailingLists>
>>> > - <inceptionYear>2004</inceptionYear>
>>> > - <developers>
>>> > - <developer>
>>> > - <name>Sanjiva Weerawarana</name>
>>> > - <id>sanjiva</id>
>>> > - <organization>WSO2 Inc.</organization>
>>> > - <email>sanjiva@opensource.lk</email>
>>> > - </developer>
>>> > - <developer>
>>> > - <name>Davanum Srinivas</name>
>>> > - <id>dims</id>
>>> > - <organization>IBM</organization>
>>> > - <email>dims@yahoo.com</email>
>>> > - </developer>
>>> > - <developer>
>>> > - <name>Dittmann, Werner</name>
>>> > - <id>werner</id>
>>> > - <organization></organization>
>>> > - <email>werner.dittmann@siemens.com</email>
>>> > - </developer>
>>> > - <developer>
>>> > - <name>Sanka Samaranayake</name>
>>> > - <id>sanka</id>
>>> > - <organization>WSO2 Inc.</organization>
>>> > - <email>sanka@apache.org</email>
>>> > - </developer>
>>> > + <mailingLists>
>>> > + <mailingList>
>>> > + <name>WS Developers</name>
>>> > + <subscribe>dev-subscribe@ws.apache.org</subscribe>
>>> > + <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe>
>>> > + <post>dev@ws.apache.org</post>
>>> > +
>>> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> +
>>> > </mailingList>
>>> > + </mailingLists>
>>> > + <inceptionYear>2004</inceptionYear>
>>> > + <developers>
>>> > + <developer>
>>> > + <name>Sanjiva Weerawarana</name>
>>> > + <id>sanjiva</id>
>>> > + <organization>WSO2 Inc.</organization>
>>> > + <email>sanjiva@opensource.lk</email>
>>> > + </developer>
>>> > + <developer>
>>> > + <name>Davanum Srinivas</name>
>>> > + <id>dims</id>
>>> > + <organization>IBM</organization>
>>> > + <email>dims@yahoo.com</email>
>>> > + </developer>
>>> > + <developer>
>>> > + <name>Dittmann, Werner</name>
>>> > + <id>werner</id>
>>> > + <organization></organization>
>>> > + <email>werner.dittmann@siemens.com</email>
>>> > + </developer>
>>> > + <developer>
>>> > + <name>Sanka Samaranayake</name>
>>> > + <id>sanka</id>
>>> > + <organization>WSO2 Inc.</organization>
>>> > + <email>sanka@apache.org</email>
>>> > + </developer>
>>> > <developer>
>>> > <name>Daniel Kulp</name>
>>> > <id>dkulp</id>
>>> > <email>dkulp@apache.org</email>
>>> > </developer>
>>> > - <developer>
>>> > + <developer>
>>> > <!-- Documentation -->
>>> > - <name>Chatra Nakkawita</name>
>>> > - <id>chatra</id>
>>> > - <organization>WSO2 Inc.</organization>
>>> > - <email>chatra@gmail.com</email>
>>> > - </developer>
>>> > - </developers>
>>> > - <licenses>
>>> > - <license>
>>> > - <name>The Apache Software License, Version
>>> > 2.0</name> -
>>> > <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> -
>>> > <distribution>repo</distribution>
>>> > - </license>
>>> > - </licenses>
>>> > - <scm>
>>> > -
>>> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/
>>> > trunk/modules/neethi</connection> -
>>> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservice
>>> > s/commons/trunk/modules/neethi</developerConnection> -
>>> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules
>>> > /neethi</url> - </scm>
>>> > - <organization>
>>> > - <name>The Apache Software Foundation</name>
>>> > - <url>http://www.apache.org/</url>
>>> > - </organization>
>>> > - <build>
>>> > + <name>Chatra Nakkawita</name>
>>> > + <id>chatra</id>
>>> > + <organization>WSO2 Inc.</organization>
>>> > + <email>chatra@gmail.com</email>
>>> > + </developer>
>>> > + </developers>
>>> > + <licenses>
>>> > + <license>
>>> > + <name>The Apache Software License, Version 2.0</name>
>>> > + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
>>> > + <distribution>repo</distribution>
>>> > + </license>
>>> > + </licenses>
>>> > + <scm>
>>> > +
>>> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons
>>> > /trunk/modules/neethi</connection> +
>>> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservic
>>> > es/commons/trunk/modules/neethi</developerConnection> +
>>> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/module
>>> > s/neethi</url> + </scm>
>>> > + <organization>
>>> > + <name>The Apache Software Foundation</name>
>>> > + <url>http://www.apache.org/</url>
>>> > + </organization>
>>> > + <build>
>>> > <resources>
>>> > - <resource>
>>> > - <directory>src/main/resources</directory>
>>> > - </resource>
>>> > + <resource>
>>> > + <directory>src/main/resources</directory>
>>> > + </resource>
>>> > </resources>
>>> > - <plugins>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-compiler-plugin</artifactId> -
>>> > <configuration>
>>> > - <source>1.5</source>
>>> > - <target>1.5</target>
>>> > - </configuration>
>>> > - </plugin>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-surefire-plugin</artifactId> -
>>> > <configuration>
>>> > - <forkMode>once</forkMode>
>>> > -
>>> > <childDelegation>false</childDelegation> -
>>> > <excludes>
>>> > -
>>> > <exclude>**/PolicyTestCase.java</exclude> -
>>> > </excludes>
>>> > - <includes>
>>> > -
>>> > <include>**/*Test*.java</include> -
>>> > </includes>
>>> > - </configuration>
>>> > - </plugin>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-release-plugin</artifactId> -
>>> > <configuration>
>>> > -
>>> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neeth
>>> > i</tagBase> - </configuration>
>>> > - </plugin>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-assembly-plugin</artifactId> -
>>> > <configuration>
>>> > - <descriptors>
>>> > -
>>> > <descriptor>src/main/assembly/bin.xml</descriptor> -
>>> >
>>> > <descriptor>src/main/assembly/src.xml</descriptor> -
>>> > </descriptors>
>>> > -
>>> > <tarLongFileMode>gnu</tarLongFileMode> -
>>> > </configuration>
>>> > - </plugin>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-source-plugin</artifactId> -
>>> > <executions>
>>> > - <execution>
>>> > - <goals>
>>> > - <goal>jar</goal>
>>> > - </goals>
>>> > - </execution>
>>> > - </executions>
>>> > - <configuration>
>>> > - <attach>true</attach>
>>> > - </configuration>
>>> > - </plugin>
>>> > + <plugins>
>>> > + <plugin>
>>> > + <artifactId>maven-compiler-plugin</artifactId>
>>> > + <configuration>
>>> > + <source>1.5</source>
>>> > + <target>1.5</target>
>>> > + </configuration>
>>> > + </plugin>
>>> > + <plugin>
>>> > + <artifactId>maven-surefire-plugin</artifactId>
>>> > + <configuration>
>>> > + <forkMode>once</forkMode>
>>> > + <childDelegation>false</childDelegation>
>>> > + <excludes>
>>> > + <exclude>**/PolicyTestCase.java</exclude>
>>> > + </excludes>
>>> > + <includes>
>>> > + <include>**/*Test*.java</include>
>>> > + </includes>
>>> > + </configuration>
>>> > + </plugin>
>>> > + <plugin>
>>> > + <artifactId>maven-release-plugin</artifactId>
>>> > + <configuration>
>>> > +
>>> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neet
>>> > hi</tagBase> + </configuration>
>>> > + </plugin>
>>> > + <plugin>
>>> > + <artifactId>maven-assembly-plugin</artifactId>
>>> > + <configuration>
>>> > + <descriptors>
>>> > +
>>> > <descriptor>src/main/assembly/bin.xml</descriptor> +
>>> > <descriptor>src/main/assembly/src.xml</descriptor> +
>>> > </descriptors>
>>> > + <tarLongFileMode>gnu</tarLongFileMode>
>>> > + </configuration>
>>> > + </plugin>
>>> > + <plugin>
>>> > + <artifactId>maven-source-plugin</artifactId>
>>> > + <executions>
>>> > + <execution>
>>> > + <goals>
>>> > + <goal>jar</goal>
>>> > + </goals>
>>> > + </execution>
>>> > + </executions>
>>> > + <configuration>
>>> > + <attach>true</attach>
>>> > + </configuration>
>>> > + </plugin>
>>> > <plugin>
>>> > <groupId>org.apache.felix</groupId>
>>> > <artifactId>maven-bundle-plugin</artifactId>
>>> > @@ -176,7 +176,7 @@
>>> > <Import-Package>
>>> > org.apache.axiom.*;resolution:=optional,
>>> > javax.xml.stream;version="[0.0,2)",
>>> > - org.apache.commons.logging,
>>> > +
>>> > org.slf4j*;resolution:=optional;version="[1.5,2)", *
>>> > </Import-Package>
>>> > <_failok>true</_failok>
>>> > @@ -186,58 +186,58 @@
>>> > </configuration>
>>> > </plugin>
>>> >
>>> > - </plugins>
>>> > - </build>
>>> > - <profiles>
>>> > - <profile>
>>> > - <id>release</id>
>>> > - <activation>
>>> > - <property>
>>> > - <name>release</name>
>>> > - <value></value>
>>> > - </property>
>>> > - </activation>
>>> > - <build>
>>> > - <plugins>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-javadoc-plugin</artifactId> + </plugins>
>>> > + </build>
>>> > + <profiles>
>>> > + <profile>
>>> > + <id>release</id>
>>> > + <activation>
>>> > + <property>
>>> > + <name>release</name>
>>> > + <value></value>
>>> > + </property>
>>> > + </activation>
>>> > + <build>
>>> > + <plugins>
>>> > + <plugin>
>>> > + <artifactId>maven-javadoc-plugin</artifactId>
>>> > <version>2.7</version>
>>> > - <executions>
>>> > - <execution>
>>> > - <goals>
>>> > -
>>> > <goal>javadoc</goal> -
>>> > </goals> -
>>> > </execution> -
>>> > </executions>
>>> > - <configuration>
>>> > -
>>> > <attach>true</attach> -
>>> > </configuration> - </plugin>
>>> > - </plugins>
>>> > - </build>
>>> > - </profile>
>>> > - </profiles>
>>> > + <executions>
>>> > + <execution>
>>> > + <goals>
>>> > + <goal>javadoc</goal>
>>> > + </goals>
>>> > + </execution>
>>> > + </executions>
>>> > + <configuration>
>>> > + <attach>true</attach>
>>> > + </configuration>
>>> > + </plugin>
>>> > + </plugins>
>>> > + </build>
>>> > + </profile>
>>> > + </profiles>
>>> >
>>> >
>>> > - <dependencies>
>>> > - <dependency>
>>> > - <groupId>org.apache.ws.commons.axiom</groupId>
>>> > - <artifactId>axiom-api</artifactId>
>>> > - <version>${axiom.version}</version>
>>> > + <dependencies>
>>> > + <dependency>
>>> > + <groupId>org.apache.ws.commons.axiom</groupId>
>>> > + <artifactId>axiom-api</artifactId>
>>> > + <version>${axiom.version}</version>
>>> > + <scope>provided</scope>
>>> > + </dependency>
>>> > + <dependency>
>>> > + <groupId>org.apache.ws.commons.axiom</groupId>
>>> > + <artifactId>axiom-impl</artifactId>
>>> > + <version>${axiom.version}</version>
>>> > <scope>provided</scope>
>>> > - </dependency>
>>> > - <dependency>
>>> > - <groupId>org.apache.ws.commons.axiom</groupId>
>>> > - <artifactId>axiom-impl</artifactId>
>>> > - <version>${axiom.version}</version>
>>> > - <scope>provided</scope>
>>> > <exclusions>
>>> > <exclusion>
>>> > <groupId>org.codehaus.woodstox</groupId>
>>> > <artifactId>wstx-asl</artifactId>
>>> > </exclusion>
>>> > </exclusions>
>>> > - </dependency>
>>> > + </dependency>
>>> > <dependency>
>>> > <groupId>org.apache.ws.commons.axiom</groupId>
>>> > <artifactId>axiom-dom</artifactId>
>>> > @@ -250,45 +250,57 @@
>>> > </exclusion>
>>> > </exclusions>
>>> > </dependency>
>>> > - <dependency>
>>> > - <groupId>wsdl4j</groupId>
>>> > - <artifactId>wsdl4j</artifactId>
>>> > - <version>1.6.2</version>
>>> > - </dependency>
>>> > - <dependency>
>>> > - <groupId>junit</groupId>
>>> > - <artifactId>junit</artifactId>
>>> > - <version>3.8.2</version>
>>> > - <scope>test</scope>
>>> > - </dependency>
>>> > + <dependency>
>>> > + <groupId>wsdl4j</groupId>
>>> > + <artifactId>wsdl4j</artifactId>
>>> > + <version>1.6.2</version>
>>> > + </dependency>
>>> > + <dependency>
>>> > + <groupId>junit</groupId>
>>> > + <artifactId>junit</artifactId>
>>> > + <version>3.8.2</version>
>>> > + <scope>test</scope>
>>> > + </dependency>
>>> > <dependency>
>>> > <groupId>org.codehaus.woodstox</groupId>
>>> > <artifactId>woodstox-core-asl</artifactId>
>>> > <version>4.0.8</version>
>>> > </dependency>
>>> > - </dependencies>
>>> > - <reporting>
>>> > - <plugins>
>>> > - <plugin>
>>> > -
>>> > <groupId>org.apache.maven.plugins</groupId> -
>>> > <artifactId>maven-javadoc-plugin</artifactId> -
>>> > <version>2.7</version>
>>> > - </plugin>
>>> > - <plugin>
>>> > -
>>> > <artifactId>maven-project-info-reports-plugin</artifactId> -
>>> > </plugin>
>>> > - </plugins>
>>> > - </reporting>
>>> > - <distributionManagement>
>>> > - <site>
>>> > - <id>website</id>
>>> > -
>>> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url> -
>>> > </site>
>>> > - </distributionManagement>
>>> > - <properties>
>>> > + <dependency>
>>> > + <groupId>org.slf4j</groupId>
>>> > + <artifactId>slf4j-api</artifactId>
>>> > + <version>${slf4j-version}</version>
>>> > + </dependency>
>>> > + <dependency>
>>> > + <groupId>org.slf4j</groupId>
>>> > + <artifactId>slf4j-jdk14</artifactId>
>>> > + <version>${slf4j-version}</version>
>>> > + <scope>provided</scope>
>>> > + </dependency>
>>> > + </dependencies>
>>> > + <reporting>
>>> > + <plugins>
>>> > + <plugin>
>>> > + <groupId>org.apache.maven.plugins</groupId>
>>> > + <artifactId>maven-javadoc-plugin</artifactId>
>>> > + <version>2.7</version>
>>> > + </plugin>
>>> > + <plugin>
>>> > +
>>> > <artifactId>maven-project-info-reports-plugin</artifactId> +
>>> > </plugin>
>>> > + </plugins>
>>> > + </reporting>
>>> > + <distributionManagement>
>>> > + <site>
>>> > + <id>website</id>
>>> > +
>>> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url>
>>> > + </site>
>>> > + </distributionManagement>
>>> > + <properties>
>>> > <axiom.version>1.2.11</axiom.version>
>>> > <neethi.osgi.version>${project.version}</neethi.osgi.version>
>>> > <bundle.plugin.version>2.1.0</bundle.plugin.version>
>>> > + <slf4j-version>1.6.1</slf4j-version>
>>> > <failIfNoTests>false</failIfNoTests>
>>> > - </properties>
>>> > + </properties>
>>> > </project>
>>> >
>>> > Modified:
>>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>>> > /PolicyBuilder.java URL:
>>> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/sr
>>> > c/main/java/org/apache/neethi/PolicyBuilder.java?rev=1083862&r1=1083861&r
>>> > 2=1083862&view=diff
>>> > ========================================================================
>>> > ====== ---
>>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>>> > /PolicyBuilder.java (original) +++
>>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>>> > /PolicyBuilder.java Mon Mar 21 16:46:09 2011 @@ -28,10 +28,10 @@ import
>>> > javax.xml.stream.XMLStreamReader;
>>> >
>>> > import org.w3c.dom.Element;
>>> >
>>> > -import org.apache.commons.logging.Log;
>>> > -import org.apache.commons.logging.LogFactory;
>>> > import org.apache.neethi.builders.AssertionBuilder;
>>> > import org.apache.neethi.builders.converters.ConverterRegistry;
>>> > +import org.slf4j.Logger;
>>> > +import org.slf4j.LoggerFactory;
>>> >
>>> > /**
>>> > * PolicyBuilder provides set of methods to create a Policy object from
>>> > an @@ -42,7 +42,7 @@ import org.apache.neethi.builders.conver
>>> > */
>>> > public class PolicyBuilder {
>>> >
>>> > - private static final Log LOG =
>>> > LogFactory.getLog(PolicyBuilder.class); + private static final Logger
>>> > LOG = LoggerFactory.getLogger(PolicyBuilder.class);
>>> >
>>> > protected AssertionBuilderFactory factory = new
>>> > AssertionBuilderFactoryImpl(this); protected PolicyRegistry
>>> > defaultPolicyRegistry;
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: dev-help@ws.apache.org
>>
>> --
>> Daniel Kulp
>> dkulp@apache.org
>> http://dankulp.com/blog
>> Talend - http://www.talend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: dev-help@ws.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi:
pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Colm O hEigeartaigh <co...@apache.org>.
I'm thinking about porting WSS4J 1.6 to use SLF4J as well. Currently
it uses Commons Logging. WSS4J 1.6 has a dependency on Opensaml2 which
uses SLF4J. I'm hoping to get XML Security 1.5.0 out in a couple of
months, which will be picked up by WSS4J 1.6.1 or 1.6.2, and which
will also move from commons logging to SLF4J. If the two most
important dependencies of WSS4J are using SLF4J, it makes sense for
WSS4J to use it as well, given that this is a major version change.
Obviously, the other important reason is out of the box OSGi support
for SLF4J.
Thoughts?
Colm.
On Mon, Mar 21, 2011 at 5:13 PM, Daniel Kulp <dk...@apache.org> wrote:
> On Monday 21 March 2011 12:53:09 PM Andreas Veithen wrote:
>> Reason?
>
> Well, 2.0.x didn't have any logging at all. Any logging framework is really
> a new dependency for Neethi. slf4j generally works better than commons-
> logging in OSGi (and every other environment) and, IMO, is a better option to
> use going forward for Neethi. Thus, if we're going to introduce logging, I'd
> wrather go with the better option.
>
>
> If you don't want to go that route, I'd be more tempted to just remove the
> logging entirely. There is only a single log statement in the code right now
> anyway. Hardly worth it.
>
> Dan
>
>
>
>> Andreas
>>
>> On Mon, Mar 21, 2011 at 17:46, <dk...@apache.org> wrote:
>> > Author: dkulp
>> > Date: Mon Mar 21 16:46:09 2011
>> > New Revision: 1083862
>> >
>> > URL: http://svn.apache.org/viewvc?rev=1083862&view=rev
>> > Log:
>> > Use slf4j instead of commons-logging
>> >
>> > Modified:
>> > webservices/commons/trunk/modules/neethi/pom.xml
>> >
>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neeth
>> > i/PolicyBuilder.java
>> >
>> > Modified: webservices/commons/trunk/modules/neethi/pom.xml
>> > URL:
>> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/po
>> > m.xml?rev=1083862&r1=1083861&r2=1083862&view=diff
>> > ========================================================================
>> > ====== --- webservices/commons/trunk/modules/neethi/pom.xml (original)
>> > +++ webservices/commons/trunk/modules/neethi/pom.xml Mon Mar 21 16:46:09
>> > 2011 @@ -19,143 +19,143 @@
>> > -->
>> >
>> > <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>
>> > + <modelVersion>4.0.0</modelVersion>
>> > <parent>
>> > <groupId>org.apache</groupId>
>> > <artifactId>apache</artifactId>
>> > <version>8</version>
>> > </parent>
>> > - <groupId>org.apache.neethi</groupId>
>> > - <artifactId>neethi</artifactId>
>> > - <name>Apache Neethi</name>
>> > - <version>3.0.0-SNAPSHOT</version>
>> > + <groupId>org.apache.neethi</groupId>
>> > + <artifactId>neethi</artifactId>
>> > + <name>Apache Neethi</name>
>> > + <version>3.0.0-SNAPSHOT</version>
>> > <packaging>bundle</packaging>
>> > - <description>Apache Neethi provides general framework for the
>> > programmers to use WS Policy. It is compliant with latest WS Policy
>> > specification which was published in March 2006. This framework is
>> > specifically written to enable the Apache Web services stack to use WS
>> > Policy as a way of expressing it's requirements and
>> > capabilities.</description> -
>> > <url>http://ws.apache.org/commons/neethi/</url>
>> > - <issueManagement>
>> > - <url>http://issues.apache.org/jira/browse/NEETHI</url>
>> > - </issueManagement>
>> > + <description>Apache Neethi provides general framework for the
>> > programmers to use WS Policy. It is compliant with latest WS Policy
>> > specification which was published in March 2006. This framework is
>> > specifically written to enable the Apache Web services stack to use WS
>> > Policy as a way of expressing it's requirements and
>> > capabilities.</description> +
>> > <url>http://ws.apache.org/commons/neethi/</url>
>> > + <issueManagement>
>> > + <url>http://issues.apache.org/jira/browse/NEETHI</url>
>> > + </issueManagement>
>> >
>> > - <mailingLists>
>> > - <mailingList>
>> > - <name>WS Developers</name>
>> > -
>> > <subscribe>dev-subscribe@ws.apache.org</subscribe> -
>> > <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe> -
>> > <post>dev@ws.apache.org</post>
>> > -
>> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> -
>> > </mailingList>
>> > - </mailingLists>
>> > - <inceptionYear>2004</inceptionYear>
>> > - <developers>
>> > - <developer>
>> > - <name>Sanjiva Weerawarana</name>
>> > - <id>sanjiva</id>
>> > - <organization>WSO2 Inc.</organization>
>> > - <email>sanjiva@opensource.lk</email>
>> > - </developer>
>> > - <developer>
>> > - <name>Davanum Srinivas</name>
>> > - <id>dims</id>
>> > - <organization>IBM</organization>
>> > - <email>dims@yahoo.com</email>
>> > - </developer>
>> > - <developer>
>> > - <name>Dittmann, Werner</name>
>> > - <id>werner</id>
>> > - <organization></organization>
>> > - <email>werner.dittmann@siemens.com</email>
>> > - </developer>
>> > - <developer>
>> > - <name>Sanka Samaranayake</name>
>> > - <id>sanka</id>
>> > - <organization>WSO2 Inc.</organization>
>> > - <email>sanka@apache.org</email>
>> > - </developer>
>> > + <mailingLists>
>> > + <mailingList>
>> > + <name>WS Developers</name>
>> > + <subscribe>dev-subscribe@ws.apache.org</subscribe>
>> > + <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe>
>> > + <post>dev@ws.apache.org</post>
>> > +
>> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> +
>> > </mailingList>
>> > + </mailingLists>
>> > + <inceptionYear>2004</inceptionYear>
>> > + <developers>
>> > + <developer>
>> > + <name>Sanjiva Weerawarana</name>
>> > + <id>sanjiva</id>
>> > + <organization>WSO2 Inc.</organization>
>> > + <email>sanjiva@opensource.lk</email>
>> > + </developer>
>> > + <developer>
>> > + <name>Davanum Srinivas</name>
>> > + <id>dims</id>
>> > + <organization>IBM</organization>
>> > + <email>dims@yahoo.com</email>
>> > + </developer>
>> > + <developer>
>> > + <name>Dittmann, Werner</name>
>> > + <id>werner</id>
>> > + <organization></organization>
>> > + <email>werner.dittmann@siemens.com</email>
>> > + </developer>
>> > + <developer>
>> > + <name>Sanka Samaranayake</name>
>> > + <id>sanka</id>
>> > + <organization>WSO2 Inc.</organization>
>> > + <email>sanka@apache.org</email>
>> > + </developer>
>> > <developer>
>> > <name>Daniel Kulp</name>
>> > <id>dkulp</id>
>> > <email>dkulp@apache.org</email>
>> > </developer>
>> > - <developer>
>> > + <developer>
>> > <!-- Documentation -->
>> > - <name>Chatra Nakkawita</name>
>> > - <id>chatra</id>
>> > - <organization>WSO2 Inc.</organization>
>> > - <email>chatra@gmail.com</email>
>> > - </developer>
>> > - </developers>
>> > - <licenses>
>> > - <license>
>> > - <name>The Apache Software License, Version
>> > 2.0</name> -
>> > <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> -
>> > <distribution>repo</distribution>
>> > - </license>
>> > - </licenses>
>> > - <scm>
>> > -
>> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/
>> > trunk/modules/neethi</connection> -
>> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservice
>> > s/commons/trunk/modules/neethi</developerConnection> -
>> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules
>> > /neethi</url> - </scm>
>> > - <organization>
>> > - <name>The Apache Software Foundation</name>
>> > - <url>http://www.apache.org/</url>
>> > - </organization>
>> > - <build>
>> > + <name>Chatra Nakkawita</name>
>> > + <id>chatra</id>
>> > + <organization>WSO2 Inc.</organization>
>> > + <email>chatra@gmail.com</email>
>> > + </developer>
>> > + </developers>
>> > + <licenses>
>> > + <license>
>> > + <name>The Apache Software License, Version 2.0</name>
>> > + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
>> > + <distribution>repo</distribution>
>> > + </license>
>> > + </licenses>
>> > + <scm>
>> > +
>> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons
>> > /trunk/modules/neethi</connection> +
>> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservic
>> > es/commons/trunk/modules/neethi</developerConnection> +
>> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/module
>> > s/neethi</url> + </scm>
>> > + <organization>
>> > + <name>The Apache Software Foundation</name>
>> > + <url>http://www.apache.org/</url>
>> > + </organization>
>> > + <build>
>> > <resources>
>> > - <resource>
>> > - <directory>src/main/resources</directory>
>> > - </resource>
>> > + <resource>
>> > + <directory>src/main/resources</directory>
>> > + </resource>
>> > </resources>
>> > - <plugins>
>> > - <plugin>
>> > -
>> > <artifactId>maven-compiler-plugin</artifactId> -
>> > <configuration>
>> > - <source>1.5</source>
>> > - <target>1.5</target>
>> > - </configuration>
>> > - </plugin>
>> > - <plugin>
>> > -
>> > <artifactId>maven-surefire-plugin</artifactId> -
>> > <configuration>
>> > - <forkMode>once</forkMode>
>> > -
>> > <childDelegation>false</childDelegation> -
>> > <excludes>
>> > -
>> > <exclude>**/PolicyTestCase.java</exclude> -
>> > </excludes>
>> > - <includes>
>> > -
>> > <include>**/*Test*.java</include> -
>> > </includes>
>> > - </configuration>
>> > - </plugin>
>> > - <plugin>
>> > -
>> > <artifactId>maven-release-plugin</artifactId> -
>> > <configuration>
>> > -
>> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neeth
>> > i</tagBase> - </configuration>
>> > - </plugin>
>> > - <plugin>
>> > -
>> > <artifactId>maven-assembly-plugin</artifactId> -
>> > <configuration>
>> > - <descriptors>
>> > -
>> > <descriptor>src/main/assembly/bin.xml</descriptor> -
>> >
>> > <descriptor>src/main/assembly/src.xml</descriptor> -
>> > </descriptors>
>> > -
>> > <tarLongFileMode>gnu</tarLongFileMode> -
>> > </configuration>
>> > - </plugin>
>> > - <plugin>
>> > -
>> > <artifactId>maven-source-plugin</artifactId> -
>> > <executions>
>> > - <execution>
>> > - <goals>
>> > - <goal>jar</goal>
>> > - </goals>
>> > - </execution>
>> > - </executions>
>> > - <configuration>
>> > - <attach>true</attach>
>> > - </configuration>
>> > - </plugin>
>> > + <plugins>
>> > + <plugin>
>> > + <artifactId>maven-compiler-plugin</artifactId>
>> > + <configuration>
>> > + <source>1.5</source>
>> > + <target>1.5</target>
>> > + </configuration>
>> > + </plugin>
>> > + <plugin>
>> > + <artifactId>maven-surefire-plugin</artifactId>
>> > + <configuration>
>> > + <forkMode>once</forkMode>
>> > + <childDelegation>false</childDelegation>
>> > + <excludes>
>> > + <exclude>**/PolicyTestCase.java</exclude>
>> > + </excludes>
>> > + <includes>
>> > + <include>**/*Test*.java</include>
>> > + </includes>
>> > + </configuration>
>> > + </plugin>
>> > + <plugin>
>> > + <artifactId>maven-release-plugin</artifactId>
>> > + <configuration>
>> > +
>> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neet
>> > hi</tagBase> + </configuration>
>> > + </plugin>
>> > + <plugin>
>> > + <artifactId>maven-assembly-plugin</artifactId>
>> > + <configuration>
>> > + <descriptors>
>> > +
>> > <descriptor>src/main/assembly/bin.xml</descriptor> +
>> > <descriptor>src/main/assembly/src.xml</descriptor> +
>> > </descriptors>
>> > + <tarLongFileMode>gnu</tarLongFileMode>
>> > + </configuration>
>> > + </plugin>
>> > + <plugin>
>> > + <artifactId>maven-source-plugin</artifactId>
>> > + <executions>
>> > + <execution>
>> > + <goals>
>> > + <goal>jar</goal>
>> > + </goals>
>> > + </execution>
>> > + </executions>
>> > + <configuration>
>> > + <attach>true</attach>
>> > + </configuration>
>> > + </plugin>
>> > <plugin>
>> > <groupId>org.apache.felix</groupId>
>> > <artifactId>maven-bundle-plugin</artifactId>
>> > @@ -176,7 +176,7 @@
>> > <Import-Package>
>> > org.apache.axiom.*;resolution:=optional,
>> > javax.xml.stream;version="[0.0,2)",
>> > - org.apache.commons.logging,
>> > +
>> > org.slf4j*;resolution:=optional;version="[1.5,2)", *
>> > </Import-Package>
>> > <_failok>true</_failok>
>> > @@ -186,58 +186,58 @@
>> > </configuration>
>> > </plugin>
>> >
>> > - </plugins>
>> > - </build>
>> > - <profiles>
>> > - <profile>
>> > - <id>release</id>
>> > - <activation>
>> > - <property>
>> > - <name>release</name>
>> > - <value></value>
>> > - </property>
>> > - </activation>
>> > - <build>
>> > - <plugins>
>> > - <plugin>
>> > -
>> > <artifactId>maven-javadoc-plugin</artifactId> + </plugins>
>> > + </build>
>> > + <profiles>
>> > + <profile>
>> > + <id>release</id>
>> > + <activation>
>> > + <property>
>> > + <name>release</name>
>> > + <value></value>
>> > + </property>
>> > + </activation>
>> > + <build>
>> > + <plugins>
>> > + <plugin>
>> > + <artifactId>maven-javadoc-plugin</artifactId>
>> > <version>2.7</version>
>> > - <executions>
>> > - <execution>
>> > - <goals>
>> > -
>> > <goal>javadoc</goal> -
>> > </goals> -
>> > </execution> -
>> > </executions>
>> > - <configuration>
>> > -
>> > <attach>true</attach> -
>> > </configuration> - </plugin>
>> > - </plugins>
>> > - </build>
>> > - </profile>
>> > - </profiles>
>> > + <executions>
>> > + <execution>
>> > + <goals>
>> > + <goal>javadoc</goal>
>> > + </goals>
>> > + </execution>
>> > + </executions>
>> > + <configuration>
>> > + <attach>true</attach>
>> > + </configuration>
>> > + </plugin>
>> > + </plugins>
>> > + </build>
>> > + </profile>
>> > + </profiles>
>> >
>> >
>> > - <dependencies>
>> > - <dependency>
>> > - <groupId>org.apache.ws.commons.axiom</groupId>
>> > - <artifactId>axiom-api</artifactId>
>> > - <version>${axiom.version}</version>
>> > + <dependencies>
>> > + <dependency>
>> > + <groupId>org.apache.ws.commons.axiom</groupId>
>> > + <artifactId>axiom-api</artifactId>
>> > + <version>${axiom.version}</version>
>> > + <scope>provided</scope>
>> > + </dependency>
>> > + <dependency>
>> > + <groupId>org.apache.ws.commons.axiom</groupId>
>> > + <artifactId>axiom-impl</artifactId>
>> > + <version>${axiom.version}</version>
>> > <scope>provided</scope>
>> > - </dependency>
>> > - <dependency>
>> > - <groupId>org.apache.ws.commons.axiom</groupId>
>> > - <artifactId>axiom-impl</artifactId>
>> > - <version>${axiom.version}</version>
>> > - <scope>provided</scope>
>> > <exclusions>
>> > <exclusion>
>> > <groupId>org.codehaus.woodstox</groupId>
>> > <artifactId>wstx-asl</artifactId>
>> > </exclusion>
>> > </exclusions>
>> > - </dependency>
>> > + </dependency>
>> > <dependency>
>> > <groupId>org.apache.ws.commons.axiom</groupId>
>> > <artifactId>axiom-dom</artifactId>
>> > @@ -250,45 +250,57 @@
>> > </exclusion>
>> > </exclusions>
>> > </dependency>
>> > - <dependency>
>> > - <groupId>wsdl4j</groupId>
>> > - <artifactId>wsdl4j</artifactId>
>> > - <version>1.6.2</version>
>> > - </dependency>
>> > - <dependency>
>> > - <groupId>junit</groupId>
>> > - <artifactId>junit</artifactId>
>> > - <version>3.8.2</version>
>> > - <scope>test</scope>
>> > - </dependency>
>> > + <dependency>
>> > + <groupId>wsdl4j</groupId>
>> > + <artifactId>wsdl4j</artifactId>
>> > + <version>1.6.2</version>
>> > + </dependency>
>> > + <dependency>
>> > + <groupId>junit</groupId>
>> > + <artifactId>junit</artifactId>
>> > + <version>3.8.2</version>
>> > + <scope>test</scope>
>> > + </dependency>
>> > <dependency>
>> > <groupId>org.codehaus.woodstox</groupId>
>> > <artifactId>woodstox-core-asl</artifactId>
>> > <version>4.0.8</version>
>> > </dependency>
>> > - </dependencies>
>> > - <reporting>
>> > - <plugins>
>> > - <plugin>
>> > -
>> > <groupId>org.apache.maven.plugins</groupId> -
>> > <artifactId>maven-javadoc-plugin</artifactId> -
>> > <version>2.7</version>
>> > - </plugin>
>> > - <plugin>
>> > -
>> > <artifactId>maven-project-info-reports-plugin</artifactId> -
>> > </plugin>
>> > - </plugins>
>> > - </reporting>
>> > - <distributionManagement>
>> > - <site>
>> > - <id>website</id>
>> > -
>> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url> -
>> > </site>
>> > - </distributionManagement>
>> > - <properties>
>> > + <dependency>
>> > + <groupId>org.slf4j</groupId>
>> > + <artifactId>slf4j-api</artifactId>
>> > + <version>${slf4j-version}</version>
>> > + </dependency>
>> > + <dependency>
>> > + <groupId>org.slf4j</groupId>
>> > + <artifactId>slf4j-jdk14</artifactId>
>> > + <version>${slf4j-version}</version>
>> > + <scope>provided</scope>
>> > + </dependency>
>> > + </dependencies>
>> > + <reporting>
>> > + <plugins>
>> > + <plugin>
>> > + <groupId>org.apache.maven.plugins</groupId>
>> > + <artifactId>maven-javadoc-plugin</artifactId>
>> > + <version>2.7</version>
>> > + </plugin>
>> > + <plugin>
>> > +
>> > <artifactId>maven-project-info-reports-plugin</artifactId> +
>> > </plugin>
>> > + </plugins>
>> > + </reporting>
>> > + <distributionManagement>
>> > + <site>
>> > + <id>website</id>
>> > +
>> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url>
>> > + </site>
>> > + </distributionManagement>
>> > + <properties>
>> > <axiom.version>1.2.11</axiom.version>
>> > <neethi.osgi.version>${project.version}</neethi.osgi.version>
>> > <bundle.plugin.version>2.1.0</bundle.plugin.version>
>> > + <slf4j-version>1.6.1</slf4j-version>
>> > <failIfNoTests>false</failIfNoTests>
>> > - </properties>
>> > + </properties>
>> > </project>
>> >
>> > Modified:
>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>> > /PolicyBuilder.java URL:
>> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/sr
>> > c/main/java/org/apache/neethi/PolicyBuilder.java?rev=1083862&r1=1083861&r
>> > 2=1083862&view=diff
>> > ========================================================================
>> > ====== ---
>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>> > /PolicyBuilder.java (original) +++
>> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
>> > /PolicyBuilder.java Mon Mar 21 16:46:09 2011 @@ -28,10 +28,10 @@ import
>> > javax.xml.stream.XMLStreamReader;
>> >
>> > import org.w3c.dom.Element;
>> >
>> > -import org.apache.commons.logging.Log;
>> > -import org.apache.commons.logging.LogFactory;
>> > import org.apache.neethi.builders.AssertionBuilder;
>> > import org.apache.neethi.builders.converters.ConverterRegistry;
>> > +import org.slf4j.Logger;
>> > +import org.slf4j.LoggerFactory;
>> >
>> > /**
>> > * PolicyBuilder provides set of methods to create a Policy object from
>> > an @@ -42,7 +42,7 @@ import org.apache.neethi.builders.conver
>> > */
>> > public class PolicyBuilder {
>> >
>> > - private static final Log LOG =
>> > LogFactory.getLog(PolicyBuilder.class); + private static final Logger
>> > LOG = LoggerFactory.getLogger(PolicyBuilder.class);
>> >
>> > protected AssertionBuilderFactory factory = new
>> > AssertionBuilderFactoryImpl(this); protected PolicyRegistry
>> > defaultPolicyRegistry;
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: dev-help@ws.apache.org
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> Talend - http://www.talend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org
Re: svn commit: r1083862 - in /webservices/commons/trunk/modules/neethi: pom.xml src/main/java/org/apache/neethi/PolicyBuilder.java
Posted by Daniel Kulp <dk...@apache.org>.
On Monday 21 March 2011 12:53:09 PM Andreas Veithen wrote:
> Reason?
Well, 2.0.x didn't have any logging at all. Any logging framework is really
a new dependency for Neethi. slf4j generally works better than commons-
logging in OSGi (and every other environment) and, IMO, is a better option to
use going forward for Neethi. Thus, if we're going to introduce logging, I'd
wrather go with the better option.
If you don't want to go that route, I'd be more tempted to just remove the
logging entirely. There is only a single log statement in the code right now
anyway. Hardly worth it.
Dan
> Andreas
>
> On Mon, Mar 21, 2011 at 17:46, <dk...@apache.org> wrote:
> > Author: dkulp
> > Date: Mon Mar 21 16:46:09 2011
> > New Revision: 1083862
> >
> > URL: http://svn.apache.org/viewvc?rev=1083862&view=rev
> > Log:
> > Use slf4j instead of commons-logging
> >
> > Modified:
> > webservices/commons/trunk/modules/neethi/pom.xml
> >
> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neeth
> > i/PolicyBuilder.java
> >
> > Modified: webservices/commons/trunk/modules/neethi/pom.xml
> > URL:
> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/po
> > m.xml?rev=1083862&r1=1083861&r2=1083862&view=diff
> > ========================================================================
> > ====== --- webservices/commons/trunk/modules/neethi/pom.xml (original)
> > +++ webservices/commons/trunk/modules/neethi/pom.xml Mon Mar 21 16:46:09
> > 2011 @@ -19,143 +19,143 @@
> > -->
> >
> > <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>
> > + <modelVersion>4.0.0</modelVersion>
> > <parent>
> > <groupId>org.apache</groupId>
> > <artifactId>apache</artifactId>
> > <version>8</version>
> > </parent>
> > - <groupId>org.apache.neethi</groupId>
> > - <artifactId>neethi</artifactId>
> > - <name>Apache Neethi</name>
> > - <version>3.0.0-SNAPSHOT</version>
> > + <groupId>org.apache.neethi</groupId>
> > + <artifactId>neethi</artifactId>
> > + <name>Apache Neethi</name>
> > + <version>3.0.0-SNAPSHOT</version>
> > <packaging>bundle</packaging>
> > - <description>Apache Neethi provides general framework for the
> > programmers to use WS Policy. It is compliant with latest WS Policy
> > specification which was published in March 2006. This framework is
> > specifically written to enable the Apache Web services stack to use WS
> > Policy as a way of expressing it's requirements and
> > capabilities.</description> -
> > <url>http://ws.apache.org/commons/neethi/</url>
> > - <issueManagement>
> > - <url>http://issues.apache.org/jira/browse/NEETHI</url>
> > - </issueManagement>
> > + <description>Apache Neethi provides general framework for the
> > programmers to use WS Policy. It is compliant with latest WS Policy
> > specification which was published in March 2006. This framework is
> > specifically written to enable the Apache Web services stack to use WS
> > Policy as a way of expressing it's requirements and
> > capabilities.</description> +
> > <url>http://ws.apache.org/commons/neethi/</url>
> > + <issueManagement>
> > + <url>http://issues.apache.org/jira/browse/NEETHI</url>
> > + </issueManagement>
> >
> > - <mailingLists>
> > - <mailingList>
> > - <name>WS Developers</name>
> > -
> > <subscribe>dev-subscribe@ws.apache.org</subscribe> -
> > <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe> -
> > <post>dev@ws.apache.org</post>
> > -
> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> -
> > </mailingList>
> > - </mailingLists>
> > - <inceptionYear>2004</inceptionYear>
> > - <developers>
> > - <developer>
> > - <name>Sanjiva Weerawarana</name>
> > - <id>sanjiva</id>
> > - <organization>WSO2 Inc.</organization>
> > - <email>sanjiva@opensource.lk</email>
> > - </developer>
> > - <developer>
> > - <name>Davanum Srinivas</name>
> > - <id>dims</id>
> > - <organization>IBM</organization>
> > - <email>dims@yahoo.com</email>
> > - </developer>
> > - <developer>
> > - <name>Dittmann, Werner</name>
> > - <id>werner</id>
> > - <organization></organization>
> > - <email>werner.dittmann@siemens.com</email>
> > - </developer>
> > - <developer>
> > - <name>Sanka Samaranayake</name>
> > - <id>sanka</id>
> > - <organization>WSO2 Inc.</organization>
> > - <email>sanka@apache.org</email>
> > - </developer>
> > + <mailingLists>
> > + <mailingList>
> > + <name>WS Developers</name>
> > + <subscribe>dev-subscribe@ws.apache.org</subscribe>
> > + <unsubscribe>dev-unsubscribe@ws.apache.org</unsubscribe>
> > + <post>dev@ws.apache.org</post>
> > +
> > <archive>http://mail-archives.apache.org/mod_mbox/ws-dev/</archive> +
> > </mailingList>
> > + </mailingLists>
> > + <inceptionYear>2004</inceptionYear>
> > + <developers>
> > + <developer>
> > + <name>Sanjiva Weerawarana</name>
> > + <id>sanjiva</id>
> > + <organization>WSO2 Inc.</organization>
> > + <email>sanjiva@opensource.lk</email>
> > + </developer>
> > + <developer>
> > + <name>Davanum Srinivas</name>
> > + <id>dims</id>
> > + <organization>IBM</organization>
> > + <email>dims@yahoo.com</email>
> > + </developer>
> > + <developer>
> > + <name>Dittmann, Werner</name>
> > + <id>werner</id>
> > + <organization></organization>
> > + <email>werner.dittmann@siemens.com</email>
> > + </developer>
> > + <developer>
> > + <name>Sanka Samaranayake</name>
> > + <id>sanka</id>
> > + <organization>WSO2 Inc.</organization>
> > + <email>sanka@apache.org</email>
> > + </developer>
> > <developer>
> > <name>Daniel Kulp</name>
> > <id>dkulp</id>
> > <email>dkulp@apache.org</email>
> > </developer>
> > - <developer>
> > + <developer>
> > <!-- Documentation -->
> > - <name>Chatra Nakkawita</name>
> > - <id>chatra</id>
> > - <organization>WSO2 Inc.</organization>
> > - <email>chatra@gmail.com</email>
> > - </developer>
> > - </developers>
> > - <licenses>
> > - <license>
> > - <name>The Apache Software License, Version
> > 2.0</name> -
> > <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> -
> > <distribution>repo</distribution>
> > - </license>
> > - </licenses>
> > - <scm>
> > -
> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons/
> > trunk/modules/neethi</connection> -
> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservice
> > s/commons/trunk/modules/neethi</developerConnection> -
> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/modules
> > /neethi</url> - </scm>
> > - <organization>
> > - <name>The Apache Software Foundation</name>
> > - <url>http://www.apache.org/</url>
> > - </organization>
> > - <build>
> > + <name>Chatra Nakkawita</name>
> > + <id>chatra</id>
> > + <organization>WSO2 Inc.</organization>
> > + <email>chatra@gmail.com</email>
> > + </developer>
> > + </developers>
> > + <licenses>
> > + <license>
> > + <name>The Apache Software License, Version 2.0</name>
> > + <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
> > + <distribution>repo</distribution>
> > + </license>
> > + </licenses>
> > + <scm>
> > +
> > <connection>scm:svn:http://svn.apache.org/repos/asf/webservices/commons
> > /trunk/modules/neethi</connection> +
> > <developerConnection>scm:svn:https://svn.apache.org/repos/asf/webservic
> > es/commons/trunk/modules/neethi</developerConnection> +
> > <url>http://svn.apache.org/viewcvs.cgi/webservices/commons/trunk/module
> > s/neethi</url> + </scm>
> > + <organization>
> > + <name>The Apache Software Foundation</name>
> > + <url>http://www.apache.org/</url>
> > + </organization>
> > + <build>
> > <resources>
> > - <resource>
> > - <directory>src/main/resources</directory>
> > - </resource>
> > + <resource>
> > + <directory>src/main/resources</directory>
> > + </resource>
> > </resources>
> > - <plugins>
> > - <plugin>
> > -
> > <artifactId>maven-compiler-plugin</artifactId> -
> > <configuration>
> > - <source>1.5</source>
> > - <target>1.5</target>
> > - </configuration>
> > - </plugin>
> > - <plugin>
> > -
> > <artifactId>maven-surefire-plugin</artifactId> -
> > <configuration>
> > - <forkMode>once</forkMode>
> > -
> > <childDelegation>false</childDelegation> -
> > <excludes>
> > -
> > <exclude>**/PolicyTestCase.java</exclude> -
> > </excludes>
> > - <includes>
> > -
> > <include>**/*Test*.java</include> -
> > </includes>
> > - </configuration>
> > - </plugin>
> > - <plugin>
> > -
> > <artifactId>maven-release-plugin</artifactId> -
> > <configuration>
> > -
> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neeth
> > i</tagBase> - </configuration>
> > - </plugin>
> > - <plugin>
> > -
> > <artifactId>maven-assembly-plugin</artifactId> -
> > <configuration>
> > - <descriptors>
> > -
> > <descriptor>src/main/assembly/bin.xml</descriptor> -
> >
> > <descriptor>src/main/assembly/src.xml</descriptor> -
> > </descriptors>
> > -
> > <tarLongFileMode>gnu</tarLongFileMode> -
> > </configuration>
> > - </plugin>
> > - <plugin>
> > -
> > <artifactId>maven-source-plugin</artifactId> -
> > <executions>
> > - <execution>
> > - <goals>
> > - <goal>jar</goal>
> > - </goals>
> > - </execution>
> > - </executions>
> > - <configuration>
> > - <attach>true</attach>
> > - </configuration>
> > - </plugin>
> > + <plugins>
> > + <plugin>
> > + <artifactId>maven-compiler-plugin</artifactId>
> > + <configuration>
> > + <source>1.5</source>
> > + <target>1.5</target>
> > + </configuration>
> > + </plugin>
> > + <plugin>
> > + <artifactId>maven-surefire-plugin</artifactId>
> > + <configuration>
> > + <forkMode>once</forkMode>
> > + <childDelegation>false</childDelegation>
> > + <excludes>
> > + <exclude>**/PolicyTestCase.java</exclude>
> > + </excludes>
> > + <includes>
> > + <include>**/*Test*.java</include>
> > + </includes>
> > + </configuration>
> > + </plugin>
> > + <plugin>
> > + <artifactId>maven-release-plugin</artifactId>
> > + <configuration>
> > +
> > <tagBase>https://svn.apache.org/repos/asf/webservices/commons/tags/neet
> > hi</tagBase> + </configuration>
> > + </plugin>
> > + <plugin>
> > + <artifactId>maven-assembly-plugin</artifactId>
> > + <configuration>
> > + <descriptors>
> > +
> > <descriptor>src/main/assembly/bin.xml</descriptor> +
> > <descriptor>src/main/assembly/src.xml</descriptor> +
> > </descriptors>
> > + <tarLongFileMode>gnu</tarLongFileMode>
> > + </configuration>
> > + </plugin>
> > + <plugin>
> > + <artifactId>maven-source-plugin</artifactId>
> > + <executions>
> > + <execution>
> > + <goals>
> > + <goal>jar</goal>
> > + </goals>
> > + </execution>
> > + </executions>
> > + <configuration>
> > + <attach>true</attach>
> > + </configuration>
> > + </plugin>
> > <plugin>
> > <groupId>org.apache.felix</groupId>
> > <artifactId>maven-bundle-plugin</artifactId>
> > @@ -176,7 +176,7 @@
> > <Import-Package>
> > org.apache.axiom.*;resolution:=optional,
> > javax.xml.stream;version="[0.0,2)",
> > - org.apache.commons.logging,
> > +
> > org.slf4j*;resolution:=optional;version="[1.5,2)", *
> > </Import-Package>
> > <_failok>true</_failok>
> > @@ -186,58 +186,58 @@
> > </configuration>
> > </plugin>
> >
> > - </plugins>
> > - </build>
> > - <profiles>
> > - <profile>
> > - <id>release</id>
> > - <activation>
> > - <property>
> > - <name>release</name>
> > - <value></value>
> > - </property>
> > - </activation>
> > - <build>
> > - <plugins>
> > - <plugin>
> > -
> > <artifactId>maven-javadoc-plugin</artifactId> + </plugins>
> > + </build>
> > + <profiles>
> > + <profile>
> > + <id>release</id>
> > + <activation>
> > + <property>
> > + <name>release</name>
> > + <value></value>
> > + </property>
> > + </activation>
> > + <build>
> > + <plugins>
> > + <plugin>
> > + <artifactId>maven-javadoc-plugin</artifactId>
> > <version>2.7</version>
> > - <executions>
> > - <execution>
> > - <goals>
> > -
> > <goal>javadoc</goal> -
> > </goals> -
> > </execution> -
> > </executions>
> > - <configuration>
> > -
> > <attach>true</attach> -
> > </configuration> - </plugin>
> > - </plugins>
> > - </build>
> > - </profile>
> > - </profiles>
> > + <executions>
> > + <execution>
> > + <goals>
> > + <goal>javadoc</goal>
> > + </goals>
> > + </execution>
> > + </executions>
> > + <configuration>
> > + <attach>true</attach>
> > + </configuration>
> > + </plugin>
> > + </plugins>
> > + </build>
> > + </profile>
> > + </profiles>
> >
> >
> > - <dependencies>
> > - <dependency>
> > - <groupId>org.apache.ws.commons.axiom</groupId>
> > - <artifactId>axiom-api</artifactId>
> > - <version>${axiom.version}</version>
> > + <dependencies>
> > + <dependency>
> > + <groupId>org.apache.ws.commons.axiom</groupId>
> > + <artifactId>axiom-api</artifactId>
> > + <version>${axiom.version}</version>
> > + <scope>provided</scope>
> > + </dependency>
> > + <dependency>
> > + <groupId>org.apache.ws.commons.axiom</groupId>
> > + <artifactId>axiom-impl</artifactId>
> > + <version>${axiom.version}</version>
> > <scope>provided</scope>
> > - </dependency>
> > - <dependency>
> > - <groupId>org.apache.ws.commons.axiom</groupId>
> > - <artifactId>axiom-impl</artifactId>
> > - <version>${axiom.version}</version>
> > - <scope>provided</scope>
> > <exclusions>
> > <exclusion>
> > <groupId>org.codehaus.woodstox</groupId>
> > <artifactId>wstx-asl</artifactId>
> > </exclusion>
> > </exclusions>
> > - </dependency>
> > + </dependency>
> > <dependency>
> > <groupId>org.apache.ws.commons.axiom</groupId>
> > <artifactId>axiom-dom</artifactId>
> > @@ -250,45 +250,57 @@
> > </exclusion>
> > </exclusions>
> > </dependency>
> > - <dependency>
> > - <groupId>wsdl4j</groupId>
> > - <artifactId>wsdl4j</artifactId>
> > - <version>1.6.2</version>
> > - </dependency>
> > - <dependency>
> > - <groupId>junit</groupId>
> > - <artifactId>junit</artifactId>
> > - <version>3.8.2</version>
> > - <scope>test</scope>
> > - </dependency>
> > + <dependency>
> > + <groupId>wsdl4j</groupId>
> > + <artifactId>wsdl4j</artifactId>
> > + <version>1.6.2</version>
> > + </dependency>
> > + <dependency>
> > + <groupId>junit</groupId>
> > + <artifactId>junit</artifactId>
> > + <version>3.8.2</version>
> > + <scope>test</scope>
> > + </dependency>
> > <dependency>
> > <groupId>org.codehaus.woodstox</groupId>
> > <artifactId>woodstox-core-asl</artifactId>
> > <version>4.0.8</version>
> > </dependency>
> > - </dependencies>
> > - <reporting>
> > - <plugins>
> > - <plugin>
> > -
> > <groupId>org.apache.maven.plugins</groupId> -
> > <artifactId>maven-javadoc-plugin</artifactId> -
> > <version>2.7</version>
> > - </plugin>
> > - <plugin>
> > -
> > <artifactId>maven-project-info-reports-plugin</artifactId> -
> > </plugin>
> > - </plugins>
> > - </reporting>
> > - <distributionManagement>
> > - <site>
> > - <id>website</id>
> > -
> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url> -
> > </site>
> > - </distributionManagement>
> > - <properties>
> > + <dependency>
> > + <groupId>org.slf4j</groupId>
> > + <artifactId>slf4j-api</artifactId>
> > + <version>${slf4j-version}</version>
> > + </dependency>
> > + <dependency>
> > + <groupId>org.slf4j</groupId>
> > + <artifactId>slf4j-jdk14</artifactId>
> > + <version>${slf4j-version}</version>
> > + <scope>provided</scope>
> > + </dependency>
> > + </dependencies>
> > + <reporting>
> > + <plugins>
> > + <plugin>
> > + <groupId>org.apache.maven.plugins</groupId>
> > + <artifactId>maven-javadoc-plugin</artifactId>
> > + <version>2.7</version>
> > + </plugin>
> > + <plugin>
> > +
> > <artifactId>maven-project-info-reports-plugin</artifactId> +
> > </plugin>
> > + </plugins>
> > + </reporting>
> > + <distributionManagement>
> > + <site>
> > + <id>website</id>
> > +
> > <url>scpexe://people.apache.org/www/ws.apache.org/commons/neethi</url>
> > + </site>
> > + </distributionManagement>
> > + <properties>
> > <axiom.version>1.2.11</axiom.version>
> > <neethi.osgi.version>${project.version}</neethi.osgi.version>
> > <bundle.plugin.version>2.1.0</bundle.plugin.version>
> > + <slf4j-version>1.6.1</slf4j-version>
> > <failIfNoTests>false</failIfNoTests>
> > - </properties>
> > + </properties>
> > </project>
> >
> > Modified:
> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
> > /PolicyBuilder.java URL:
> > http://svn.apache.org/viewvc/webservices/commons/trunk/modules/neethi/sr
> > c/main/java/org/apache/neethi/PolicyBuilder.java?rev=1083862&r1=1083861&r
> > 2=1083862&view=diff
> > ========================================================================
> > ====== ---
> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
> > /PolicyBuilder.java (original) +++
> > webservices/commons/trunk/modules/neethi/src/main/java/org/apache/neethi
> > /PolicyBuilder.java Mon Mar 21 16:46:09 2011 @@ -28,10 +28,10 @@ import
> > javax.xml.stream.XMLStreamReader;
> >
> > import org.w3c.dom.Element;
> >
> > -import org.apache.commons.logging.Log;
> > -import org.apache.commons.logging.LogFactory;
> > import org.apache.neethi.builders.AssertionBuilder;
> > import org.apache.neethi.builders.converters.ConverterRegistry;
> > +import org.slf4j.Logger;
> > +import org.slf4j.LoggerFactory;
> >
> > /**
> > * PolicyBuilder provides set of methods to create a Policy object from
> > an @@ -42,7 +42,7 @@ import org.apache.neethi.builders.conver
> > */
> > public class PolicyBuilder {
> >
> > - private static final Log LOG =
> > LogFactory.getLog(PolicyBuilder.class); + private static final Logger
> > LOG = LoggerFactory.getLogger(PolicyBuilder.class);
> >
> > protected AssertionBuilderFactory factory = new
> > AssertionBuilderFactoryImpl(this); protected PolicyRegistry
> > defaultPolicyRegistry;
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: dev-help@ws.apache.org
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org