File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts 2.1.6 filter startup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2.1.6 filter startup problem" Watch "Struts 2.1.6 filter startup problem" New topic

Struts 2.1.6 filter startup problem

Lynn Keeling

Joined: Jan 16, 2009
Posts: 1
I recently ran into a problem with Struts but discovered the problem had been fixed in 2.1.6 so I started upgrading. Little did I know that annotation handling had chnaged so dramatically. I converted my code to use the new conventions plugin but now the filter won't start. I've gone as far as commenting out all of my annotations and the exception still gets thrown. Anyone else seen this error before?

SEVERE: Exception starting filter struts2
java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.determi
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildCo
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildAc
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(C
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContai
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
at org.apache.struts2.dispatcher.Dispatcher.init(

here is my filter setup. nothing special. it worked fine before:



David Newton

Joined: Sep 29, 2008
Posts: 12617

Did you follow the directions for Converting a Codebehind based application to Convention? I'd start there, there's a bit more at Converting application from Codebehind to Convention Plugin.
I agree. Here's the link:
subject: Struts 2.1.6 filter startup problem
It's not a secret anymore!