You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Charbel Abdul-Massih <ca...@soundbite.com> on 2007/06/13 22:31:26 UTC

[S2] Tiles plugin on 1.4

Do I need to do something special to get tiles plugin working on JDK
1.4???

 

I'm getting the following error in weblogic startup

 

UnsupportedClassVersionError:
org/apache/struts2/tiles/StrutsTilesListener (Unsupported major.minor
version 49.0


Re: [S2] Tiles plugin on 1.4

Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/13, Charbel Abdul-Massih <ca...@soundbite.com>:
>
> /web/layout/topMenu.jsp(1): Error in using tag library
> uri='http://tiles.apache.org/tags-tiles' prefix='tiles': The Tag class
> 'org.apache.tiles.taglib.definition.DefinitionTag' has no setter method
> corresponding to TLD declared attribute 'scope', (JSP 1.1 spec, 5.4.1)



In fact it is a (resolved) bug:
https://issues.apache.org/struts/browse/TILES-187
Notice that the "scope" attribute has been removed:
http://tiles.apache.org/migration/tags.html
(go to "Other changes" section).
Anyway, I noticed that you are using an old version of Tiles, so I suppose
that you are using an old version of Struts 2. My suggestion is to update to
Struts 2.0.8 ASAP (that uses Tiles 2.0.3).

Antonio

Re: [S2] Tiles plugin on 1.4

Posted by Antonio Petrelli <an...@gmail.com>.
2007/6/14, Charbel Abdul-Massih <ca...@soundbite.com>:
>
> java.lang.ClassNotFoundException:
> org.apache.tiles.jsp.context.JspTilesContextFactory



Whoops! Maybe we need to add it in the assembly. For the moment, you can add
it manually:
http://www.apache.org/dyn/closer.cgi/tiles/v2.0.3/

Thanks a lot!
Antonio

RE: [S2] Tiles plugin on 1.4

Posted by Charbel Abdul-Massih <ca...@soundbite.com>.
I upgraded to the latest version of struts 2.0.8 which comes with a
newer version of tiles...

I am using JDK 1.4, so I had to reto-translate the following jars on top
of the struts2 j4 distribution 

struts2-tiles-plugin-2.0.8.jar
tiles-api-2.0.3.jar
tiles-core-2.0.3.jar

On weblogic 8.1, on startup, I am getting the following exception

java.lang.ClassNotFoundException:
org.apache.tiles.jsp.context.JspTilesContextFactory

I looked in the tiles jars, and I did not find that class...Is this a
bug or is there a workaround for this??

Thanks,
Charbel

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Laurie Harper
Sent: Thursday, June 14, 2007 1:23 AM
To: user@struts.apache.org
Subject: Re: [S2] Tiles plugin on 1.4

Dave Newton wrote:
> --- Charbel Abdul-Massih wrote:
>> I did run retro-translator on the tiles-plugin
>> jars...I was able to get
>> weblogic 8.1 started on jdk 1.4.2 without any
>> issues, so I moved a step
>> closer...However, when I try to access my action,
>> and it returns a tiles
>> result, I get the following jsp error in the
>> browser:
> 
> Ah, yes.
> 
> http://struts.apache.org/2.x/docs/weblogic-81.html
> 
> I don't know if this has been fixed in 2.0.8, but IIRC
> up to 2.0.6 I had to fix the TLD files to run under
> WL8.1SP5.
> 
> I unpacked the jars, modified the TLDs and repacked;
> there may be other ways around it, I may have
> mis-diagnosed the issue, or... something else
> entirely. That page might not be complete, either; I
> did that a long time ago.

For that particular error, though, I believe the problem is that the tag

implementation is missing a setScope() method, which would be a bug in 
Tiles.

Charbel, I would suggest raising that on the Tiles lists and probably 
filing it in Tiles' bug tracker too.

L.


---------------------------------------------------------------------
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] Tiles plugin on 1.4

Posted by Laurie Harper <la...@holoweb.net>.
Dave Newton wrote:
> --- Charbel Abdul-Massih wrote:
>> I did run retro-translator on the tiles-plugin
>> jars...I was able to get
>> weblogic 8.1 started on jdk 1.4.2 without any
>> issues, so I moved a step
>> closer...However, when I try to access my action,
>> and it returns a tiles
>> result, I get the following jsp error in the
>> browser:
> 
> Ah, yes.
> 
> http://struts.apache.org/2.x/docs/weblogic-81.html
> 
> I don't know if this has been fixed in 2.0.8, but IIRC
> up to 2.0.6 I had to fix the TLD files to run under
> WL8.1SP5.
> 
> I unpacked the jars, modified the TLDs and repacked;
> there may be other ways around it, I may have
> mis-diagnosed the issue, or... something else
> entirely. That page might not be complete, either; I
> did that a long time ago.

For that particular error, though, I believe the problem is that the tag 
implementation is missing a setScope() method, which would be a bug in 
Tiles.

Charbel, I would suggest raising that on the Tiles lists and probably 
filing it in Tiles' bug tracker too.

L.


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


RE: [S2] Tiles plugin on 1.4

Posted by Dave Newton <ne...@yahoo.com>.
--- Charbel Abdul-Massih wrote:
> I did run retro-translator on the tiles-plugin
> jars...I was able to get
> weblogic 8.1 started on jdk 1.4.2 without any
> issues, so I moved a step
> closer...However, when I try to access my action,
> and it returns a tiles
> result, I get the following jsp error in the
> browser:

Ah, yes.

http://struts.apache.org/2.x/docs/weblogic-81.html

I don't know if this has been fixed in 2.0.8, but IIRC
up to 2.0.6 I had to fix the TLD files to run under
WL8.1SP5.

I unpacked the jars, modified the TLDs and repacked;
there may be other ways around it, I may have
mis-diagnosed the issue, or... something else
entirely. That page might not be complete, either; I
did that a long time ago.

d.



      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 

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


RE: [S2] Tiles plugin on 1.4

Posted by Charbel Abdul-Massih <ca...@soundbite.com>.
Dave,

I did run retro-translator on the tiles-plugin jars...I was able to get
weblogic 8.1 started on jdk 1.4.2 without any issues, so I moved a step
closer...However, when I try to access my action, and it returns a tiles
result, I get the following jsp error in the browser:

/web/layout/topMenu.jsp(1): Error in using tag library
uri='http://tiles.apache.org/tags-tiles' prefix='tiles': The Tag class
'org.apache.tiles.taglib.definition.DefinitionTag' has no setter method
corresponding to TLD declared attribute 'scope', (JSP 1.1 spec, 5.4.1)

Any ideas???

Thanks,
Charbel

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Wednesday, June 13, 2007 4:42 PM
To: Struts Users Mailing List
Subject: Re: [S2] Tiles plugin on 1.4

--- Charbel Abdul-Massih wrote:
> Do I need to do something special to get tiles
> plugin working on JDK 1.4???

You need to retro-translate them, just like the S2 J4
jars.

d.



 
________________________________________________________________________
____________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

---------------------------------------------------------------------
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] Tiles plugin on 1.4

Posted by Dave Newton <ne...@yahoo.com>.
--- Charbel Abdul-Massih wrote:
> Do I need to do something special to get tiles
> plugin working on JDK 1.4???

You need to retro-translate them, just like the S2 J4
jars.

d.



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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