This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Struts and the fly likes Strange Problem with struts2-convention-plugin- Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Strange Problem with struts2-convention-plugin-" Watch "Strange Problem with struts2-convention-plugin-" New topic

Strange Problem with struts2-convention-plugin-

Sam Rakshit

Joined: Jun 22, 2010
Posts: 8

I have a web application built on Struts2 framework. Lately, I have been using a custom filter which modifies the URL based on a pattern. This filter uses javax/servlet/http/HttpServletRequestWrapper to modify the url params. This filter works fine till now. But the moment I add the struts2-convention-plugin- into my WEB-INF/lib directory, I get the following error:

Could not load javax/servlet/http/HttpServletRequestWrapper.class - [unknown location]
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(
at com.opensymphony.xwork2.util.finder.ClassFinder.access$400(
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.extractSuperInterfaces(
at com.opensymphony.xwork2.util.finder.ClassFinder$InfoBuildingVisitor.visit(
at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source)
at org.objectweb.asm.xwork.ClassReader.accept(Unknown Source)
at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(
at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.findActions(
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
at org.apache.struts2.dispatcher.Dispatcher.init(
at org.apache.struts2.dispatcher.FilterDispatcher.init(
at org.mortbay.jetty.servlet.FilterHolder.doStart(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.jetty.servlet.ServletHandler.initialize(
at org.mortbay.jetty.servlet.Context.startContext(
at org.mortbay.jetty.webapp.WebAppContext.startContext(
at org.mortbay.jetty.handler.ContextHandler.doStart(
at org.mortbay.jetty.webapp.WebAppContext.doStart(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.jetty.handler.HandlerWrapper.doStart(
at org.mortbay.component.AbstractLifeCycle.start(
at org.mortbay.jetty.handler.HandlerWrapper.doStart(
at org.mortbay.jetty.Server.doStart(
at org.mortbay.component.AbstractLifeCycle.start(

Actually I want to use the Rest Plugin for struts2, and that requires this jar. Please note that I am using Google AppEngine platform to run the web application. Could this be a problem?? But then how does the filter work when I am not using the convention plugin? Please help me to solve this issue!

I agree. Here's the link:
subject: Strange Problem with struts2-convention-plugin-
It's not a secret anymore!