commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsoftware.com>
Subject RE: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception
Date Thu, 11 Aug 2011 14:31:48 GMT
3.x is not a drop-in replacement for 2.x. So it only makes sense to ADD 3.x if you are coding
to the 3.x API.

Gary

-----Original Message-----
From: Christian Grobmeier [mailto:grobmeier@gmail.com] 
Sent: Thursday, August 11, 2011 10:28 AM
To: Commons Users List; emilu@encs.concordia.ca
Subject: Re: [lang] java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils Exception

Emi,

I think you need both lang jars in your classpath

Cheers
Christian

On Thu, Aug 11, 2011 at 4:25 PM, Emi Lu <emilu@encs.concordia.ca> wrote:
> Hi Gary,
>
>> https://commons.apache.org/lang/article3_0.html
>
> It clearly shows lang -> lang3.
>
> But could you tell me which jar cause the dependence exception please? 
> Is it "org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)"?
>
> Or struts2, or xwork?
>
> I do want to know which jar cause the dependence?
>
> Thanks a lot!
> Emi
>
>
>
>>
>> -----Original Message-----
>> From: Emi Lu [mailto:emilu@encs.concordia.ca]
>> Sent: Thursday, August 11, 2011 9:47 AM
>> To: user@commons.apache.org
>> Subject: [lang] java.lang.NoClassDefFoundError:
>> org/apache/commons/lang/StringUtils Exception
>>
>> Good morning,
>>
>> After I downloaded commons-lang.3.0.1, I got the following exceptions:
>>
>> java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils
>>        at
>>
>> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.reg
>> ister(XmlConfigurationProvider.java:198)
>>        at
>>
>> org.apache.struts2.config.StrutsXmlConfigurationProvider.register(Str
>> utsXmlConfigurationProvider.java:101)
>>        at
>>
>> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContai
>> ner(DefaultConfiguration.java:180)
>>        at
>>
>> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
>> ConfigurationManager.java:66)
>>        at
>>
>> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Di
>> spatcher.java:380)
>>        at
>> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:424)
>>        at
>>
>> org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOp
>> erations.java:69)
>>        at
>>
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>> .init(StrutsPrepareAndExecuteFilter.java:51)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicatio
>> nFilterConfig.java:295)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
>> tionFilterConfig.java:422)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFi
>> lterConfig.java:115)
>>        at
>>
>> org.apache.catalina.core.StandardContext.filterStart(StandardContext.
>> java:4071)
>>        at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4
>> 725)
>>        at
>> org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:
>> 1276)
>>        at
>>
>> org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServl
>> et.java:625)
>>        at
>>
>> org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServl
>> et.java:136)
>>        at 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>        at 
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> icationFilterChain.java:290)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilterChain.java:206)
>>        at
>>
>> org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPrevent
>> ionFilter.java:186)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>> icationFilterChain.java:235)
>>        at
>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
>> ilterChain.java:206)
>>        at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
>> alve.java:233)
>>        at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
>> alve.java:191)
>>        at
>>
>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
>> torBase.java:563)
>>        at
>>
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
>> ava:127)
>>        at
>>
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
>> ava:102)
>>        at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
>> ve.java:109)
>>        at
>>
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
>> a:298)
>>        at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
>> :859)
>>        at
>>
>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
>> ss(Http11Protocol.java:588)
>>        at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
>> 9)
>>        at java.lang.Thread.run(Thread.java:662)
>> Caused by: java.lang.ClassNotFoundException:
>> org.apache.commons.lang.StringUtils
>>        at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>> der.java:1680)
>>        at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
>> der.java:1526)
>>        ... 34 more
>> Aug 11, 2011 9:43:14 AM org.apache.catalina.core.StandardContext 
>> start
>>
>> Could someone help?
>>
>> thank you,
>> Emi
>>
>>
>
>
> --
> Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 
> emilu@encs.concordia.ca        +1 514 848-2424 x5884
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>



--
http://www.grobmeier.de

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

Mime
View raw message