jakarta

How to inject a Jakarta enums in a Spring application context ?

I have a class which constructor takes a Jakarta enums. I'm trying to find how I can easily inject it via an Spring XML aplicationContext. For example : The enum : public class MyEnum extends org.apache.commons.lang.enums.Enum { public static final MyEnum MY_FIRST_VALUE = new MyEnum("MyFirstValue"); public static final MyEnum ...

How do I set the format of toString methods with ToStringBuilder in commons-lang?

how do I configure the setting of the format for toString ...

IIS -> Isapi_Redirect -> Tomcat

I've been trying for days to get Tomcat up and running through IIS via the Jakarta Connector. I've followed all of Microsoft's instructions -- put the connector .dll in %tomcatdir%\bin\win32\i386\, added the registry entry, added a filter (pointing to the .dll) to the default web site... and yet, any time I try to access a Tomcat web ap...

Using generics with jakarta commons collections Buffer

This code compiles fine in Java <= 1.4. Java 1.6 bitches and moans with the warning: "The method add(Object) belongs to the raw type Collection. References to generic type Collection should be parameterized" import org.apache.commons.collections.Buffer; import org.apache.commons.collections.BufferUtils; import org.apache.commons.collec...

Is there something in j2se or Jakarta commons thats converts a number to an array of digits?

I hate to code what is already available. I can't seem to find in Jakarta commons a method that would to the following: long x= 12345; int[] digits = toDigitsArray(x); //[1,2,3,4,5] So before I code my own toDigitsArray() method does anyone know if the equivalent exists either in j2se or in commons? ...

JMeter - how to log the full request for a failed response?

Hi folks, i'm using JMeter command line to stress test our website api. Now, here's a sample result i'm getting back: Creating summariser <summary> Created the tree successfully using street_advisor.jmx Starting the test @ Sat Oct 03 15:22:59 PDT 2009 (1254608579848) Waiting for possible shutdown message on port 4445 summary + 1 in...

why does tomcat take time to recognize the folder on shutting down and restarting it?

I work on a folder and tomcat recognizes the folder. But, when I shutdown and restart tomcat it is taking time to recognize the same folder. Can anybody tell me why? I see the error report in catalina.out. It gives a list of errors but finally says Nov 22, 2009 2:08:58 PM org.apache.catalina.startup.Catalina start INFO: Server startup i...

Configuration reload with Jakarta Commons Daemon

Using Jakarta Commons Daemon is it possible to have my Java application perform an action (reload a configuration) when a SIGHUP signal is sent to the jsvc process? If not - what are my other options for reloading the configuration with this library - without stopping the process? I have looked at the documentation but didn't find it tha...

What part of Apache Commons saves you the most time?

Community wiki'ed already, folks. What part of Apache Commons saves you the most time? I'm curious to get together a list of these to browse and see what I don't know about, or what I should be using more often than not. ...

Jakarta Regexp 1.5 Backreferences?

Why does this match: String str = "099.9 102.2" + (char) 0x0D; RE re = new RE("^([0-9]{3}.[0-9]) ([0-9]{3}.[0-9])\r$"); System.out.println(re.match(str)); But this does not: String str = "099.9 102.2" + (char) 0x0D; RE re = new RE("^([0-9]{3}.[0-9]) \1\r$"); System.out.println(re.match(str)); The back references do...

Using Windows Integrated Auth & Anonymous after jakarta redirect on IIS7

I have an application we bought that I need to integrate, and it uses jakarta connection to get to the application from IIS. So, the basic operation is: user goes to the url Gets redirected to the application SSO is enabled, so redirected back to IIS for fetching of domain credentials Back to application If username is blank show lo...

How do I do this using guava?

Is there a way of achieving the below using Guava? //anything better than using Files.append() in a loop? org.apache.commons.io.FileUtils.writeLines(File file, Collection lines, String lineEnding); //gives a byte[] that is fed to Files.write(byte[] from, File to) org.apache.commons.lang.SerializationUtils.serialize(Serializable obj) ...

Good alternate for Jakarta Taglibs?

We use Jakarta Taglibs to ouput some basic HTML form elements like selects. It appears this library has been retired.. are there any good alternates? Looking for something simple that will take a Java Map and output it to HTML. ...