Benedikt Ritter | 7 Apr 08:40 2015
Picon

[ANNOUNCE] Apache Commons Lang 3.4 released!

The Apache Commons Team is pleased to announce the release of Apache
Commons Lang 3.4.

Apache Commons Lang, a package of Java utility classes for the classes that
are in java.lang's hierarchy, or are considered to be so standard as to
justify existence in java.lang.

3.4 is binary compatible to the last release 3.3.2. However there has been
a change to the value of the constant
org.apache.commons.lang3.time.DurationFormatUtils.ISO_EXTENDED_FORMAT_PATTERN
which may affect clients. More information about this, as well as the full
details of all the changes in 3.4 see the release notes:
https://dist.apache.org/repos/dist/release/commons/lang/RELEASE-NOTES.txt
The minimum required JDK version for this release is 1.6.

Source and binary distributions are available for download from the Apache
Commons download site:
  http://commons.apache.org/proper/commons-lang/download_lang.cgi

When downloading, please verify signatures using the KEYS file available at
the above location.

Alternatively the release can be pulled via maven:
<dependency>
  <groupId>org.apache.commons</groupId>
  <artifactId>commons-lang3</artifactId>
  <version>3.4</version>
</dependency>

For complete information on Commons Lang, including instructions on how to
(Continue reading)

Jeff Shaver | 31 Mar 22:08 2015

[daemon] jsvc -stop Fails

I have a daemon via jsvc that refuses to obey the -stop command after the process has been running for about
8-9 days.  This is repeatable.  Has this problem been seen before?

OS: Redhat 5 update 6
Commons-daemon: 1.0.15

Thanks,
Jeff
Helge Waastad | 25 Mar 17:48 2015

[vfs] FileSystemException: Could not load VFS configuration

Hi,
I'm developing a VFS Resource Adapter and testing it out on TomEE
(1.7.1)

If I bundle the commons-vfs2 (2.1-SNAPSHOT/2.0) with the rar I get then
exception:
FileSystemException: Could not load VFS configuration from
"jar:file:/home/helge/Skrivebord/jca-parent/acme-war/target/apache-tomee/apps/acme-ra-1.0-SNAPSHOT/commons-vfs2-2.1-SNAPSHOT.jar!/org/apache/commons/vfs2/impl/providers.xml"

If I add vfs2-commons to tomee/lib and provided in my rar, then its
working OK.

Is this how it's supposed to work?

PS, the rar has dependencies to a jar having adapter/specs/dependencies
etc.

br hw

Kervin Pierre | 24 Mar 21:49 2015

[vfs] announcing an Azure Blob Storage Provider

Hi,

I'd like to briefly announce a VFS Provider I've been looking into
periodically for the last few weeks.

https://github.com/kervinpierre/vfs-azure


Microsoft's SDK can be found at...
https://github.com/Azure/azure-storage-java


If anyone uses Azure Storage and would like to help test this, I'd
appreciate it.  As I'd like to get it to production quality as soon as
possible.

Best regards,
Kervin
Gary Gregory | 19 Mar 21:04 2015
Picon

ApacheCon in Austin, Texas

Dear Apache Commons enthusiast,

In just a few weeks, we'll be holding ApacheCon in Austin, Texas, and we'd
love to have you in attendance. You can save $300 on admission by
registering NOW, since the early bird price ends on the 21st.

Register at http://s.apache.org/acna2015-reg

ApacheCon this year celebrates the 20th birthday of the Apache HTTP Server,
and we'll have Brian Behlendorf, who started this whole thing, keynoting
for us, and you'll have a chance to meet some of the original Apache Group,
who will be there to celebrate with us.

We've got 7 tracks of great talks, as well as BOFs, the Apache BarCamp,
project-specific hack events, and evening events where you can deepen your
connection with the larger Apache community. See the full schedule at
http://apacheconna2015.sched.org/

And if you have any questions, comments, or just want to hang out with us
before and during the event, follow us on Twitter -  <at> apachecon - or drop by
#apachecon on the Freenode IRC network.

Hope to see you in Austin!

--

-- 
E-Mail: garydgregory <at> gmail.com | ggregory <at> apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
(Continue reading)

Geoff Watters | 16 Mar 12:07 2015
Picon

[vfs] vsf2.2.0: non-ascii chars in file name are not handled by createFolder()

All

I am using*commons-vfs2-2.0.jar* and am running into problems when file 
names contain non-ascii characters. According to 
https://issues.apache.org/jira/browse/VFS-305 this has been 
fixed/shipped in 2.0. In my environment I am able to create such file 
names when using ftp on the command-line (Red Hat Enterprise Linux 
Server release 5.8 (Tikanga)).

When I execute the following sample code, I get the output shown below.

public class FtpTest {
     public static void main(String[] args) throws FileSystemException
     {
         String host="hhh";
         String user = "uuu";
         String password = "ppp";
         String destDir = "/tmp";
         FileSystemOptions opts = new FileSystemOptions();
FtpFileSystemConfigBuilder.getInstance().setControlEncoding(opts, "UTF-8");

         DefaultFileSystemManager manager = new DefaultFileSystemManager();
         manager.addProvider("ftp", new FtpFileProvider());
         manager.init();

         String root="ftp://"+user+":"+password+" <at> "+host+destDir;
         // Specify a number of directories that should be created under 
destDir
         String[] lRoots = new String[4];
         lRoots[0]= root+"/ftpDebug";
(Continue reading)

KARR, DAVID | 13 Mar 18:02 2015
Picon

[commons-io] FileUtils.openOutputStream(file) doesn't create the file

I'm confused by the FileUtils.openOutputStream(File) method in commons-io.

The javadoc for this method says this: "The file will be created if it does not exist."  That doesn't seem
ambiguous.  However, I noticed while stepping through new code that is calling this for a path that doesn't
exist yet, I find that the parent directory has been created, but it's not creating the file.

In fact, it's even getting this exception:

Caused by: java.io.FileNotFoundException: .... (The system cannot find the path specified)
	at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:367)

The implementation of this method makes it pretty clear:
----------------------
    public static FileOutputStream openOutputStream(File file, boolean append) throws IOException {
        if (file.exists()) {
            if (file.isDirectory()) {
                throw new IOException("File '" + file + "' exists but is a directory");
            }
            if (file.canWrite() == false) {
                throw new IOException("File '" + file + "' cannot be written to");
            }
        } else {
            File parent = file.getParentFile();
            if (parent != null) {
                if (!parent.mkdirs() && !parent.isDirectory()) {
                    throw new IOException("Directory '" + parent + "' could not be created");
                }
            }
        }
        return new FileOutputStream(file, append);
(Continue reading)

arnout cator | 10 Mar 23:12 2015
Picon

can # sometimes be ignored by JCS

Hi, I have the situation that I have 10+ web apps using JCS. I have this in
cache.ccf:

 ###################################################################
# Stylesheet settings
###################################################################
#disable disk caching if WAS doesn't provide serialized dom
#jcs.region.stylesheet=
jcs.region.stylesheet=DC
jcs.region.stylesheet.cacheattributes.MaxObjects=128
###################################################################

I have no issues with all other regions defined, but I have a problem that
sometimes amongst the 10 web apps, not consistently the same web apps, the
stylesheet cache is not invalidated when I do a code release to the 10
apps. I get over it by removing all disk cache files and restarting the app
server.

I wondered if it is possible that JCS sometimes reads the # line. Can that
be causing this?
If not, why would just the stylesheet disk cache file not be invalidated
sometimes? Did anyone in JCS user world see a similar event?
Tom Dworzanski | 8 Mar 19:31 2015

[daemon] Can systemd replace JSVC?

Hello all,

I'm learning systemd on CentOS 7/RHEL 7 although this is applicable to many
Linux distros as systemd is starting to be widely replace System V. I'm
wondering if it's a replacement for JSVC. I posted a detailed question with
some sample configuration on a StackOverflow question:

http://stackoverflow.com/questions/28894008/what-benefit-do-i-get-from-jsvc-
over-just-using-systemd

There weren't any answers so now I set it up with a 50 point bounty. 24
hours since the bounty still nothing.

I'm writing to draw someone with knowledge of both to the question in hopes
of getting an answer on this list or the site.

Thank you in advance for anyone experienced enough to help.

Tom Dworzanski

[configuration]

I have a hierarchy of property files which are available in various folders in my file system. The file names
are same but the folders are named based on the base group and specific group id and.

I have a requirement of creating group based configurations of all the available property files. Based on
the user login I need load their respective group and if not available at that level it would go to the base
group and get the key.

I am trying use the
MultiFileConfigurationBuilder<http://commons.apache.org/proper/commons-configuration/xref/org/apache/commons/configuration2/builder/combined/MultiFileConfigurationBuilder.html>
and trying to set the pattern to combine the configurations. To the pattern I would set the group id and get
the configuration and merge with that of the base group.

But the pattern does not seem to be working. Is it possible to load and merge the configurations just only
using the config.xml files?

Please let me know if you have a better approach.

Parameters params = new Parameters();
           MultiFileBuilderParameters multiParam = params.multiFile().setFilePattern("${GROUP_ID}/ app_settings.properties").setManagedBuilderParameters(params.fileBased().setBasePath("C:/a_container/MyApp/"));
           MultiFileConfigurationBuilder<PropertiesConfiguration> builder = new MultiFileConfigurationBuilder(
                     PropertiesConfiguration.class).configure(multiParam);
     Map<String, Object> params1 = new HashedMap<String, Object>();
           params1.put("GROUP_ID", "987987");
           builder.setParameters(params1);
           Configuration conf = builder.getConfiguration();
           sopAllKeys((FileBasedConfiguration) conf);

Regards,
Ashok

(Continue reading)

sky Chen | 1 Mar 12:54 2015
Picon

Fwd: [digester] declare plugin in xml rule file

There is nothing like Plugin-create-rule in digester-rules.dtd. The doc
says a class used as a plugin may dynamically add its own rules to the
digester by providing an xmlrules file which defines the associated parsing
rules. But there is no example showing how to define "associated parsing
rules".

Suppose I want to create an instance of plugin "SteelBar" which implements
"Bar" interface with this config.xml:

<foo>
   <plugin id="SteelBar" class="SteelBar" />

   <bar plugin-id="SteelBar" name="spam"/>
</foo>

I would like to write my rule.xml as:

<digester-rules>
    <pattern value="foo">
         <object-create-rule classname="Foo"/>
         <set-properties-rule/>

        <pattern value="bar">
            <plugin-create-rule classname="Bar"
include="SteelBar_rule.xml"/>
            <set-next-rule methodname="addBar"/>
        </pattern>
    </pattern>
</digester-rules>

(Continue reading)


Gmane