Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 50C24200C39 for ; Thu, 16 Mar 2017 16:24:15 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4F68F160B7A; Thu, 16 Mar 2017 15:24:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2A17B160B78 for ; Thu, 16 Mar 2017 16:24:14 +0100 (CET) Received: (qmail 86104 invoked by uid 500); 16 Mar 2017 15:24:13 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 86092 invoked by uid 99); 16 Mar 2017 15:24:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2017 15:24:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 62170C18C4 for ; Thu, 16 Mar 2017 15:24:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.899 X-Spam-Level: * X-Spam-Status: No, score=1.899 tagged_above=-999 required=6.31 tests=[DC_PNG_UNO_LARGO=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uIfnZKxp--Jp for ; Thu, 16 Mar 2017 15:24:10 +0000 (UTC) Received: from sonic331-56.consmr.mail.ne1.yahoo.com (sonic331-56.consmr.mail.ne1.yahoo.com [66.163.190.237]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A56395FD3B for ; Thu, 16 Mar 2017 15:24:09 +0000 (UTC) X-YMail-OSG: uGFG0N8VM1lqG51C6enBFWIp.0shHF6Jcnf.oEJigj8_TvwNLENJt6zkT0MD.76 mqdF_V7lueeoHkI_U5ozbkBUqZqSzak0zPQLeUKnatDvWGoe7Ej_2nw2r6SmZS40g.3mcqy33Dry aEivv3ZjBeSY8NCz1CQ4Yzm6UgEIsuwwKNg5nHDZUXTRaqs48wSue4jjJOvPEf9JORLMprgmLL8U 2I6eb31MYUb0J2i_Z1mgeivtksIK4A8n8lJr5dcuUJSuw36K3eUQrOk7pxExfQemDyLjyR0lXIy2 ynxT3sXysiFHQh33bldM0nn9Sx2XBKhZCWh4uoZVlyDA5hApbjblF6lEE8gN4Thw234cTDCfVzfU rAln6loSUucZAQJsrhCvMbjWUZWxtm11nIOQ8znVvL8kPMaHB6v4uH3BTGZP643XwNmCp243oelP 0noyuviZAlmD6c4XScz1Pfb7TEsv6DQxVQMX2Tr0UbQeXZiG4KmURfspIAqvRAso8bHSOVuF5vDn tUjXWtgpSDq6ayXpkwdwTQx3cbZOjHh6M.FVZwQM- Received: from sonic.gate.mail.ne1.yahoo.com by sonic331.consmr.mail.ne1.yahoo.com with HTTP; Thu, 16 Mar 2017 15:24:09 +0000 Date: Thu, 16 Mar 2017 15:11:56 +0000 (UTC) From: Venu Gopalan Reply-To: Venu Gopalan To: "users@tiles.apache.org" Message-ID: <342941754.1422890.1489677116123@mail.yahoo.com> Subject: Struts 1 / Tile 2 integration issue MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1422889_1058349582.1489677116123" References: <342941754.1422890.1489677116123.ref@mail.yahoo.com> archived-at: Thu, 16 Mar 2017 15:24:15 -0000 ------=_Part_1422889_1058349582.1489677116123 Content-Type: multipart/alternative; boundary="----=_Part_1422888_1565027995.1489677116120" ------=_Part_1422888_1565027995.1489677116120 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable My ultimate goal is to migrate an application to spring 4.1.4, Hibernate 4.= 3. But this was resulting to migrate Tiles 1.x to Tiles 2.x. But this inter= n was creating issues with Struts 1. With the help of Tiles user community,= I was able to get the=C2=A0struts-tiles2-1.4.0-SNAPSHOT.jar library and I'm trying to migrate a small sample application from Strits 1/= Tiles 1 to Struts 1/Tiles 2. After making changes according to the suggesti= ons in=C2=A0https://feima2011.wordpress.com/2011/04/27/struts-1-and-tiles-2= -integration/=C2=A0, I'm getting the following error while running the appl= ication in the browser. |=20 Error 500--Internal Server Error | | java.lang.NullPointerException =09at org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(D= efaultAttributeResolver.java:42) =09at org.apache.tiles.template.InsertAttributeModel.resolveAttribute(Inser= tAttributeModel.java:187) =09at org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeM= odel.java:107) =09at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeT= ag.java:306) =09at jsp_servlet.__index._jspService(__index.java:93) =09at weblogic.servlet.jsp.JspBase.service(JspBase.java:34) =09at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run= (StubSecurityHelper.java:227) =09at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri= tyHelper.java:125) =09at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav= a:300) =09at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) =09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja= va:60) =09at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119) =09at java.security.AccessController.doPrivileged(Native Method) =09at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:32= 4) =09at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt= il.java:460) =09at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav= a:103) =09at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1= 71) =09at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) =09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja= va:60) =09at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:16= 3) =09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja= va:60) =09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio= n.wrapRun(WebAppServletContext.java:3729) =09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio= n.run(WebAppServletContext.java:3695) =09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate= dSubject.java:321) =09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:= 120) =09at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS= ervletContext.java:2285) =09at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC= ontext.java:2184) =09at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j= ava:1459) =09at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) =09at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)In the tiles-d= efs.xml, I made the changes as below: (PUT changed to put-attribute) (defin= ition path TO definition template) etc =20 In Jsp's I changed the tag TO Also in struts-config file,AND I do have the following jar in my WEB-INF/lib and classpathstruts-core-1.4.= 0-SNAPSHOT.jar struts-tiles2-1.4.0-SNAPSHOT.jar struts-extras-1.4.0-SNAPSHOT.jar struts-scripting-1.4.0-SNAPSHOT.jar struts-taglib-1.4.0-SNAPSHOT.jar struts-tiles-1.4.0-SNAPSHOT.jar tiles-api-2.2.1.jar tiles-jsp-2.2.1.jar tiles-servlet-2.2.1.jar tiles-template-2.2.0.jar log4j-1.2.16.jar slf4j-api-1.7.7.jar slf4j-log4j12-1.7.7.jar jakarta-oro.jar I have removed the struts.jar earlier, but with and without struts.jar, I'm= getting the same error.Can any friends be a help on this issue? I am unabl= e to attach the ZIP of the application. Thank YouVenu | ------=_Part_1422888_1565027995.1489677116120 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
<= div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1489675048083_63468">My ultimate go= al is to migrate an application to spring 4.1.4, Hibernate 4.3. But this wa= s resulting to migrate Tiles 1.x to Tiles 2.x. But this intern was creating= issues with Struts 1. With the help of Tiles user community, I was able to= get the struts-tiles2-1.4.0-SNAPSHOT.jar

library and I'm trying to m= igrate a small sample application from Strits 1/Tiles 1 to Struts 1/Tiles 2= . After making changes according to the suggestions in https://feima2011.wordpress.com/201= 1/04/27/struts-1-and-tiles-2-integration/ , I'm getting the follow= ing error while running the application in the browser.

Error 500--Internal Server Error

=
java=
.lang.NullPointerException
=09at org.apache.tiles.template.DefaultAttributeResolver.computeAttribute(D=
efaultAttributeResolver.java:42)
=09at org.apache.tiles.template.InsertAttributeModel.resolveAttribute(Inser=
tAttributeModel.java:187)
=09at org.apache.tiles.template.InsertAttributeModel.start(InsertAttributeM=
odel.java:107)
=09at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeT=
ag.java:306)
=09at jsp_servlet.__index._jspService(__index.java:93)
=09at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
=09at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run=
(StubSecurityHelper.java:227)
=09at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri=
tyHelper.java:125)
=09at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav=
a:300)
=09at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
=09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja=
va:60)
=09at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
=09at java.security.AccessController.doPrivileged(Native Method)
=09at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:32=
4)
=09at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUt=
il.java:460)
=09at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.jav=
a:103)
=09at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:1=
71)
=09at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
=09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja=
va:60)
=09at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:16=
3)
=09at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja=
va:60)
=09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio=
n.wrapRun(WebAppServletContext.java:3729)
=09at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio=
n.run(WebAppServletContext.java:3695)
=09at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate=
dSubject.java:321)
=09at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:=
120)
=09at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS=
ervletContext.java:2285)
=09at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC=
ontext.java:2184)
=09at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j=
ava:1459)
=09at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
=09at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
In the tiles-defs.xml, I made th=
e changes as below: (PUT changed to put-attribute) (definition path TO defi=
nition template) etc
    <definition name=3D"baseLayout" template=3D"/baseLayout.jsp">
        <put-attribute name=3D"title"  value=3D"Tiles Example" />
        <put-attribute name=3D"header" value=3D"/header.jsp" />
        <put-attribute name=3D"menu"   value=3D"/menu.jsp" />
        <put-attribute name=3D"body"   value=3D"/body.jsp" />
        <put-attribute name=3D"footer" value=3D"/footer.jsp" />      =
 =20
    </definition>
    <definition name=3D"friends" extends=3D"baseLayout">
        <put-attribute name=3D"title" value=3D"Friends" />
        <put-attribute name=3D"body" value=3D"/friends.jsp" />
    </definition>
    <definition name=3D"office" extends=3D"baseLayout">
        <put-attribute name=3D"title" value=3D"The Office" />
        <put-attribute name=3D"body" value=3D"/office.jsp" />
    </definition>

In Jsp's I changed the tag  <tiles:insert name=3D"header" ignore=
=3D"true" /> TO <=
tiles:insertAttribute name=3D"header" ignore=3D"true" />

Also =
in struts-config file,
<controller processorClass=3D"org.apache.struts.tiles2.TilesRequestProcessor"/>
AND
<plug-in className=3D"org.apache.struts.tiles2.TilesPlugin" ><=
br id=3D"yui_3_16_0_ym19_1_1489675048083_63504">

I do have the fo=
llowing jar in my WEB-INF/lib and classpath
struts-core-1.4.0-SNAPSHOT.jar
struts-tiles2-1.4.0-SNAPSHOT.jar
stru=
ts-extras-1.4.0-SNAPSHOT.jar
struts-scripting-=
1.4.0-SNAPSHOT.jar
struts-taglib-1.4.0-SNAPSHO= T.jar
struts-tiles-1.4.0-SNAPSHOT.jar
tiles-api-2.2.1.jar
tiles=
-jsp-2.2.1.jar
tiles-servlet-2.2.1.jar
tiles-template-2.2.0.jar
log4j-1.2.16.jar
<= pre id=3D"yui_3_16_0_ym19_1_1489675048083_63530">slf4j-api-1.7.7.jar
slf4j-log4j12-1.7.7.jar
jakarta-oro.jar

I have removed the struts.jar earlier, but with and without struts.jar, I=
'm getting the same error.
Can any friends be a help on this issue? I am unable to attach the Z=
IP of the application.
3D"Inline


Thank You
Ve=
nu
------=_Part_1422888_1565027995.1489677116120-- ------=_Part_1422889_1058349582.1489677116123--