You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by bob <to...@excite.com> on 2007/01/31 02:14:20 UTC

[s2] multi part plugin




Hello.  I'm moving my application up to s2.04 ( from 2.0.1 ).  I'm getting an error from the struts filter that says it can't find the pell mulit part request class.  The odd thing is, I have verified that the correct jar is available and that it holds the correct class.  The problem seems to be that struts is looking for it under the wrong package.   Note the missing class name below.  The struts2-pell-multipart-plugin-2.0.4.jar does have the correct class, but its package is org.apache.struts2.dispatcher.multipart  

To me, it seems like the entry in the struts-plugin.xml file in the jar is just wrong.  Is this possible?  

 

17:57:10,918 ERROR [/artistSite]:3638 - Exception starting filter struts2
Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean - jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
        at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
        at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
        at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
        at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
        at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
        at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
        at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
        at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
        at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
        at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
        at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
        at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
        at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
        at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
        at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
        at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)


_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: [s2] multi part plugin

Posted by Dave Newton <ne...@yahoo.com>.
--- "Hartrich, James CTR USTRANSCOM J6" 
> And the same thing I reported last month. Corrected
> with a new FilterDispatcher class implementing
Filter
> & StrutsStatics.

Yikes; I just fixed the XML file and re-jarred it! :)

d.



 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: [s2] multi part plugin

Posted by "Hartrich, James CTR USTRANSCOM J6" <Ja...@ustranscom.mil>.
And the same thing I reported last month. Corrected with a new
FilterDispatcher class implementing Filter & StrutsStatics.

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Tuesday, January 30, 2007 7:40 PM
To: Struts Users Mailing List
Subject: Re: [s2] multi part plugin

Hrm, that's the same thing I reported last week
sometime.

--- Don Brown <do...@gmail.com> wrote:

> Fixed, thanks for bringing it up:
> 
> http://issues.apache.org/struts/browse/WW-1692
> 
> Don
> 
> On 1/30/07, bob <to...@excite.com> wrote:
> >
> >
> >
> >
> > Hello.  I'm moving my application up to s2.04 (
> from 2.0.1 ).  I'm getting an error from the struts
> filter that says it can't find the pell mulit part
> request class.  The odd thing is, I have verified
> that the correct jar is available and that it holds
> the correct class.  The problem seems to be that
> struts is looking for it under the wrong package.  
> Note the missing class name below.  The
> struts2-pell-multipart-plugin-2.0.4.jar does have
> the correct class, but its package is
> org.apache.struts2.dispatcher.multipart
> >
> > To me, it seems like the entry in the
> struts-plugin.xml file in the jar is just wrong.  Is
> this possible?
> >
> >
> >
> > 17:57:10,918 ERROR [/artistSite]:3638 - Exception
> starting filter struts2
> > Unable to load bean:
> type:org.apache.struts2.dispatcher.MultiPartRequest
>
class:org.apache.struts2.dispatcher.PellMultiPartRequest
> - bean -
>
jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/
struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138
>         at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.regist
er(XmlConfigurationProvider.java:209)
> >         at
>
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Struts
XmlConfigurationProvider.java:101)
> >         at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultC
onfiguration.java:130)
> >         at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(Con
figurationManager.java:52)
> >         at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispa
tcher.java:398)
> >         at
>
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
> >         at
>
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.jav
a:201)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:223)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
nFilterConfig.java:304)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
rConfig.java:77)
> >         at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
a:3634)
> >         at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217
)
> >         at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:759)
> >         at
>
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> >         at
>
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> >         at
>
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:9
04)
> >         at
>
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
> >         at
>
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
> >         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
> >         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
> >         at
> java.lang.reflect.Method.invoke(Method.java:585)
> >         at
>
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503
)
> >         at
>
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.j
ava:213)
> >         at
>
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >         at
>
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBea
nServerInterceptor.java:815)
> >         at
>
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >         at
>
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:137
7)
> >         at
>
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:81
4)
> >         at
>
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343
)
> >         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
> >
> >
> > _______________________________________________
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



 
________________________________________________________________________
____________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [s2] multi part plugin

Posted by Dave Newton <ne...@yahoo.com>.
Hrm, that's the same thing I reported last week
sometime.

--- Don Brown <do...@gmail.com> wrote:

> Fixed, thanks for bringing it up:
> 
> http://issues.apache.org/struts/browse/WW-1692
> 
> Don
> 
> On 1/30/07, bob <to...@excite.com> wrote:
> >
> >
> >
> >
> > Hello.  I'm moving my application up to s2.04 (
> from 2.0.1 ).  I'm getting an error from the struts
> filter that says it can't find the pell mulit part
> request class.  The odd thing is, I have verified
> that the correct jar is available and that it holds
> the correct class.  The problem seems to be that
> struts is looking for it under the wrong package.  
> Note the missing class name below.  The
> struts2-pell-multipart-plugin-2.0.4.jar does have
> the correct class, but its package is
> org.apache.struts2.dispatcher.multipart
> >
> > To me, it seems like the entry in the
> struts-plugin.xml file in the jar is just wrong.  Is
> this possible?
> >
> >
> >
> > 17:57:10,918 ERROR [/artistSite]:3638 - Exception
> starting filter struts2
> > Unable to load bean:
> type:org.apache.struts2.dispatcher.MultiPartRequest
>
class:org.apache.struts2.dispatcher.PellMultiPartRequest
> - bean -
>
jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138
>         at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
> >         at
>
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
> >         at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
> >         at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
> >         at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
> >         at
>
org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
> >         at
>
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
> >         at
>
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
> >         at
>
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
> >         at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
> >         at
>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
> >         at
>
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
> >         at
>
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
> >         at
>
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
> >         at
>
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
> >         at
>
org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
> >         at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >         at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >         at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >         at
> java.lang.reflect.Method.invoke(Method.java:585)
> >         at
>
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
> >         at
>
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> >         at
>
com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >         at
>
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> >         at
>
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >         at
>
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
> >         at
>
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
> >         at
>
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
> >         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> >         at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >         at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
> >
> >
> > _______________________________________________
> > Join Excite! - http://www.excite.com
> > The most personalized portal on the Web!
> >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



 
____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [s2] multi part plugin

Posted by Don Brown <do...@gmail.com>.
Fixed, thanks for bringing it up:

http://issues.apache.org/struts/browse/WW-1692

Don

On 1/30/07, bob <to...@excite.com> wrote:
>
>
>
>
> Hello.  I'm moving my application up to s2.04 ( from 2.0.1 ).  I'm getting an error from the struts filter that says it can't find the pell mulit part request class.  The odd thing is, I have verified that the correct jar is available and that it holds the correct class.  The problem seems to be that struts is looking for it under the wrong package.   Note the missing class name below.  The struts2-pell-multipart-plugin-2.0.4.jar does have the correct class, but its package is org.apache.struts2.dispatcher.multipart
>
> To me, it seems like the entry in the struts-plugin.xml file in the jar is just wrong.  Is this possible?
>
>
>
> 17:57:10,918 ERROR [/artistSite]:3638 - Exception starting filter struts2
> Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean - jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138         at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
>         at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
>         at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
>         at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
>         at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
>         at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
>         at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
>         at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
>         at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
>         at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
>         at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
>         at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
>         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
>         at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
>         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
>         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
>         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
>         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
>         at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
>         at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
>         at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>
>
> _______________________________________________
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org