struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <christal...@yahoo.fr>
Subject Re: /struts2examples/themes and Struts2-3-16
Date Sun, 15 Dec 2013 19:09:27 GMT
Hello, 

Sorry, I didn't find any solution.
Struts 2 Themes and Struts 2.3.16 are not working ( Netbeans 7 and Tomcat 7 )
I believe I have to stop my tests.

But old version ( Struts2 Themes before 2013-12-13 ) and Struts 2.3.15.3 only are working.


The new files checkboxlist.ftl and theme.properties are differents since  2013-12-13
and are not working with Struts2
==========================================================================
checkboxlist.ftl before 2013-12-13 
<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" />
<#include "/${parameters.templateDir}/KUTheme_simple/checkboxlist.ftl" />
<#include "/${parameters.templateDir}/xhtml/controlfooter.ftl" /><#nt/>

theme.properties  before 2013-12-13  
parent = xhtml
==========================================================================
checkboxlist.ftl   after 2013-12-13
<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
<#include "/${parameters.templateDir}/KUTheme_simple/checkboxlist.ftl" />
<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/

theme.properties  after 2013-12-13  
parent = KUTheme_simple 
==========================================================================


Sometimes, with Strut2.3.16, Apache log gives a loop like this one
2013-12-15 19:49:42,984 DEBUG com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.debug:72
- Entering nullPropertyValue [target=[org.apache.struts.edit.action.EditAction@10a6001, com.opensymphony.xwork2.DefaultTextProvider@1c68b6f],
property=org]
2013-12-15 19:49:43,328 DEBUG com.opensymphony.xwork2.ognl.accessor.XWorkMapPropertyAccessor.debug:72
- Entering getProperty (ognl.OgnlContext@44569547,AttributeMap {request={struts.request_uri=/st2_ex_14_themes/edit.action,
__cleanup_recursion_counter=1, javax.servlet.forward.request_uri=/st2_ex_14_themes/edit.action,
struts.valueStack=com.opensymphony.xwork2.ognl.OgnlValueStack@e00321, struts.actionMapping=ActionMapping{name='edit',
namespace='/', method='null', extension='action', params=null, result=null}, struts.view_uri=/edit.jsp,
javax.servlet.forward.servlet_path=/edit.action, javax.servlet.forward.context_path=/st2_ex_14_themes},
session={}, application={org.apache.jasper.compiler.ELInterpreter=org.apache.jasper.compiler.ELInterpreterFactory$DefaultELInterpreter@10ce397,
 org.apache.catalina.jsp_classpath=/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/classes/;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/asm-3.3.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/asm-commons-3.3.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/asm-tree-3.3.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/commons-fileupload-1.3.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/commons-io-2.2.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/commons-lang3-3.1.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/commons-logging-1.1.3.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_the
mes/build/web/WEB-INF/lib/freemarker-2.3.19.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/javassist-3.11.0.GA.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/log4j-1.2.17.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/ognl-3.0.6.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/struts2-core-2.3.16.jar;/D:/NetBeansProjects/struts-2.3.15.3/struts2examples.15.3/14_themes/build/web/WEB-INF/lib/xwork-core-2.3.16.jar;/C:/Program
Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/annotations-api.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/catalina-ant.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/catalina-ha.jar;/C:/Program
Files/Apache Software
 Foundation/apache-tomcat-7.0.39/lib/catalina-tribes.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/catalina.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/ecj-4.2.1.jar;/C:/Program
Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/el-api.jar;/C:/Program Files/Apache
Software Foundation/apache-tomcat-7.0.39/lib/jasper-el.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/jasper.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/jsp-api.jar;/C:/Program
Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/servlet-api.jar;/C:/Program Files/Apache
Software Foundation/apache-tomcat-7.0.39/lib/tomcat-api.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/tomcat-coyote.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/tomcat-dbcp.jar;/C:/Program
Files/Apache Software
 Foundation/apache-tomcat-7.0.39/lib/tomcat-i18n-es.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/lib/tomcat-i18n-fr.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/tomcat-i18n-ja.jar;/C:/Program
Files/Apache Software Foundation/apache-tomcat-7.0.39/lib/tomcat-jdbc.jar;/C:/Program Files/Apache
Software Foundation/apache-tomcat-7.0.39/lib/tomcat-util.jar;/C:/Program Files/Apache Software
Foundation/apache-tomcat-7.0.39/bin/bootstrap.jar;/C:/Program Files/Apache Software Foundation/apache-tomcat-7.0.39/bin/tomcat-juli.jar;/C:/Program
Files/Java/jdk1.6.0_20/jre/lib/ext/dnsns.jar;/C:/Program Files/Java/jdk1.6.0_20/jre/lib/ext/localedata.jar;/C:/Program
Files/Java/jdk1.6.0_20/jre/lib/ext/sunjce_provider.jar;/C:/Program Files/Java/jdk1.6.0_20/jre/lib/ext/sunmscapi.jar;/C:/Program
Files/Java/jdk1.6.0_20/jre/lib/ext/sunpkcs11.jar,
 org.apache.jasper.compiler.TldLocationsCache=org.apache.jasper.compiler.TldLocationsCache@1290ef4,
org.apache.jasper.runtime.JspApplicationContextImpl=org.apache.jasper.runtime.JspApplicationContextImpl@171ef98,
javax.servlet.context.tempdir=C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.39\work\Catalina\localhost\st2_ex_14_themes,
org.apache.tomcat.InstanceManager=org.apache.catalina.core.DefaultInstanceManager@169674,
org.apache.tomcat.util.scan.MergedWebXml=<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="2.4"
         metadata-complete="true">

  <display-name>Themes Struts 2</display-name>

  <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
    <async-supported>false</async-supported>
  </filter>

  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>


  <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
      <param-name>fork</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>xpoweredBy</param-name>
      <param-value>false</param-value>
    </init-param>
    <init-param>
      <param-name>mappedfile</param-name>
      <param-value>true</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>0</param-value>
    </init-param>
    <init-param>
      <param-name>listings</param-name>
      <param-value>false</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>jsp</servlet-name>
    <url-pattern>*.jspx</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
  </servlet-mapping>

  <session-config>
    <session-timeout>30</session-timeout>
    <cookie-config>
    </cookie-config>
  </session-config>




Le Dimanche 15 décembre 2013 10h59, Lukasz Lenart <lukaszlenart@apache.org> a écrit
:
 
Hi,

I cannot reproduce the problem, everything works as expected with my
changes to the themes example - tried with Jetty and Tomcat 7 and
JBoss 7.1 - works like charm.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message