Jerret Halter

Ranch Hand
+ Follow
since Feb 03, 2006
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jerret Halter


I am currently using JBoss 4.2.3 and have a configuration question. For my application I have a folder with a several XML and PDF files that are used by the application. These files need to be in a different folder then where JBoss is installed. With my currently knowledge of JBoss I will have to place these files inside \JBOSS_HOME\bin\. Is there anyway to configure JBoss to look in the folder where I have my XML and PDF files or will I need to end up placing them in \JBOSS_HOME\bin\?

Thanks in advance!
12 years ago
I am attempting to use the ant ear task in order to create an EAR for my project. All of my libraries are in a folder called "lib" and I also have a simple JAR, WAR, and EJB. When I look at the EAR after I have ran my current ear ant task all the my libraries are put inside the root folder of that EAR. For example

So if this is extracted to a folder it will look exactly like:

When it should really look like:

Any ideas?

12 years ago
I noticed in the "dist" for spring-framework-1.2.9 that there is a spring.jar file and a spring-1.2.8.jar file. Does anyone know if spring.jar is 1.2.9 and spring-1.2.8.jar the spring framework 1.2.8?
[ February 04, 2008: Message edited by: Jerret Halter ]
The web application I am developing has several locales, which I am currently using CookieLocaleResolver to keep track of the locale the user selected. However this will only work if the user has cookies enabled. Is there any way to fall back on the SessionLocaleResolver if the user has their cookies disable besides using the LocaleChangeInterceptor?

Thanks in advance.
I was wondering is it possible to retrieve the DispatcherServlet? What I am trying to do is go through a filter first, then servlet that uses DispatcherServlet. For example from my web.xml

I need to use RequestContextUtils in ServletPathLocaleChangeFilter in order to reterive local information.
I am having troubles retrieving the servlet path in a filter I wrote. Within the doFilter() method I cast the ServletRequest to a HttpServletRequest then call getServletRequest() on it and store what is returned into a String, but it is only returning the name of the servlet. For example.

http://localhost/contextRoot/foo/bar/servlet.jsp will only return

servlet.jsp instead of


My configurations in my web.xml are correct.

Any ideas?
14 years ago
Ah, very nice, and ArrayList are much nicer :-)
So what you are saying is that I can use Arrays.asList() it will build a List, however I can only add to the Array?
I am trying to preform the following:

But the following exception is thrown when I try to run it:

Exception in thread "main" java.lang.UnsupportedOperationException
at java.util.AbstractList.add(Unknown Source)
at java.util.AbstractList.add(Unknown Source)
at learning.about.collection.Fubar.main(

I only have Java 1.5 on my machine, so what is going wrong here?

Thanks in advance :-)
Fantastic :-) Thank you for the help
I am trying to work with deleting files and directories in Java 5 but have been unsuccessful. With the following code below a file and directory is created but I cannot delete them. Is there something I am doing wrong?

Okay, but why in Head First EJB page 318 they have concrete methods for the virtual persistent fieldss?
I am trying to compile my entity bean I wrote and I am getting the following error: getFirstName() is already defined in CustomerBean
public abstract String getFirstName();
^ setFirstName(java.lang.String) is already defined in CustomerBean
public abstract void setFirstName(String firstName);
^ getLastName() is already defined in CustomerBean
public abstract String getLastName();
3 errors

Here is my code:

I have set my JAVA_HOME variable to ver 1.4
I have set my J2EE_HOME variable to ver 1.3.1
I have also set my CLASS_PATH variable to to the correct j2ee.jar