Hi Chris,
Depends whether the source jar contains just the source, or the source and binaries. Why do you feel the need to put the source files in the run-time directory? It just takes up more time and memory for the JVM to parse the indexes of useless jar files.
To browse source codes and for simplification, I just loaded both jars into eclipse. I will probably pointing to my local source jars in eclipse.
Thank you, Emi
On Tue, Jul 19, 2011 at 10:57 AM, Emi Lu <em...@encs.concordia.ca <mailto:em...@encs.concordia.ca>> wrote: Probably because of what the exception says; try removing the extra jar file. You are Right Dave! I loaded both struts2-jquery-plugin-3.1.0.__jar and struts2-jquery-plugin-3.1.0-__source.jar into the project. The system complained about this. After I remove the source jar. Compiled successfully. Normally, loaded both the .jar and the source jar should not be a problem, shouldn't it? Emi On Jul 19, 2011 12:12 PM, "Emi Lu" <em...@encs.concordia.ca <mailto:em...@encs.concordia.ca> <mailto:emilu@encs.concordia.__ca <mailto:em...@encs.concordia.ca>>> wrote: > Hello List, > > I got the following exception, could someone tell me what cause it? > > I am using struts2.2.3 + tiles2.2.2 + springframework3.05 + ognl3.0.2 + > freemarker2.3.18 > > Thanks alot! > Emi > > -- > > SEVERE: Exception starting filter struts2 > Unable to load configuration. - bean - > jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 > at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:437) > at > org.apache.struts2.dispatcher.__ng.InitOperations.__initDispatcher(InitOperations.__java:69) > at > org.apache.struts2.dispatcher.__ng.filter.__StrutsPrepareAndExecuteFilter.__init(__StrutsPrepareAndExecuteFilter.__java:51) > at > org.apache.catalina.core.__ApplicationFilterConfig.__getFilter(__ApplicationFilterConfig.java:__295) > at > org.apache.catalina.core.__ApplicationFilterConfig.__setFilterDef(__ApplicationFilterConfig.java:__422) > at > org.apache.catalina.core.__ApplicationFilterConfig.<init>__(ApplicationFilterConfig.java:__115) > at > org.apache.catalina.core.__StandardContext.filterStart(__StandardContext.java:4071) > at > org.apache.catalina.core.__StandardContext.start(__StandardContext.java:4725) > at > org.apache.catalina.manager.__ManagerServlet.start(__ManagerServlet.java:1276) > at > org.apache.catalina.manager.__HTMLManagerServlet.start(__HTMLManagerServlet.java:625) > at > org.apache.catalina.manager.__HTMLManagerServlet.doGet(__HTMLManagerServlet.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(__ApplicationFilterChain.java:__290) > at > org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) > at > org.apache.catalina.filters.__CsrfPreventionFilter.doFilter(__CsrfPreventionFilter.java:186) > at > org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__235) > at > org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__206) > at > org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:233) > at > org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:191) > at > org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:563) > at > org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:127) > at > org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:102) > at > org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:109) > at > org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:298) > at > org.apache.coyote.http11.__Http11Processor.process(__Http11Processor.java:859) > at > org.apache.coyote.http11.__Http11Protocol$__Http11ConnectionHandler.__process(Http11Protocol.java:__588) > at org.apache.tomcat.util.net <http://org.apache.tomcat.util.net>.__JIoEndpoint$Worker.run(__JIoEndpoint.java:489) > at java.lang.Thread.run(Thread.__java:662) > Caused by: Unable to load configuration. - bean - > jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 > at > com.opensymphony.xwork2.__config.ConfigurationManager.__getConfiguration(__ConfigurationManager.java:69) > at > org.apache.struts2.dispatcher.__Dispatcher.init___PreloadConfiguration(__Dispatcher.java:380) > at org.apache.struts2.dispatcher.__Dispatcher.init(Dispatcher.__java:424) > ... 28 more > Caused by: Unable to load bean: type:org.apache.struts2.views.__TagLibrary > class:com.jgeppert.struts2.__jquery.views.JqueryTagLibrary - bean - > jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 > at > com.opensymphony.xwork2.__config.providers.__XmlConfigurationProvider.__register(__XmlConfigurationProvider.java:__232) > at > org.apache.struts2.config.__StrutsXmlConfigurationProvider__.register(__StrutsXmlConfigurationProvider__.java:101) > at > com.opensymphony.xwork2.__config.impl.__DefaultConfiguration.__reloadContainer(__DefaultConfiguration.java:180) > at > com.opensymphony.xwork2.__config.ConfigurationManager.__getConfiguration(__ConfigurationManager.java:66) > ... 30 more > Caused by: Bean type interface org.apache.struts2.views.__TagLibrary with > the name sj has already been loaded by bean - > jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0-sources.__jar!/struts-plugin.xml:27:125 > - bean - > jar:file:/WEB-INF/lib/struts2-__jquery-plugin-3.1.0.jar!/__struts-plugin.xml:27:125 > at > com.opensymphony.xwork2.__config.providers.__XmlConfigurationProvider.__register(__XmlConfigurationProvider.java:__216) > ... 33 more > > ------------------------------__------------------------------__--------- > To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org <mailto:user-unsubscr...@struts.apache.org> <mailto:user-unsubscribe@__struts.apache.org <mailto:user-unsubscr...@struts.apache.org>> > For additional commands, e-mail: user-h...@struts.apache.org <mailto:user-h...@struts.apache.org> <mailto:user-help@struts.__apache.org <mailto:user-h...@struts.apache.org>> > -- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca <mailto:em...@encs.concordia.ca> +1 514 848-2424 x5884 <tel:%2B1%20514%20848-2424%20x5884> ------------------------------__------------------------------__--------- To unsubscribe, e-mail: user-unsubscribe@struts.__apache.org <mailto:user-unsubscr...@struts.apache.org> For additional commands, e-mail: user-h...@struts.apache.org <mailto:user-h...@struts.apache.org>
-- Emi Lu, ENCS, Concordia University, Montreal H3G 1M8 em...@encs.concordia.ca +1 514 848-2424 x5884 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org