Nathan wish I could... the joys of working for a big corporate company! They got hookwinked into using Weblogic integration 8.1 years back by some BEA salesmen scum :P
Been the fantastic technology that it is, it's actually not possible to migrate the WLI application from version 8.1 to version 9 (I could rant on forever about all the other amazing 'features') so my colleague and myself are slowly refactoring out the dependency on WLI (including the web app) so that we can actually upgrade the boxes and use better technology!! On Tue, Dec 16, 2008 at 7:25 PM, Nathan Maves <[email protected]> wrote: > Thank or just upgrade your app server :) > > On Dec 16, 2008, at 4:18 AM, Taras Puchko wrote: > > If you translate your application together with the Stripes jar, add the > following class to your sources and run Retrotranslator with > backport="javax.servlet.jsp.PageContext.include:mybackport.ExtendedPageContext.include" > > package mybackport; > import javax.servlet.jsp.PageContext; > import javax.servlet.ServletException; > import java.io.IOException; > > public class ExtendedPageContext { > public static void include(PageContext pageContext, String > relativeUrlPath, > boolean flush) throws IOException, > ServletException { > pageContext.include(relativeUrlPath); > } > } > > If you translate the Stripes jar separately, the compiled > ExtendedPageContext must be in classpath of the Retrotranslator during the > translation. > > For more information see http://retrotranslator.sourceforge.net/#extension > or ask me :) > > Cheers, > Taras > > > On Tue, Dec 16, 2008 at 12:26 PM, phil darley > <[email protected]> wrote: >> >> Thanks that worked a treat, however I have now hit another stumbling >> block that may not be possible to over come. Maybe I should post this >> under a new title, it's regarding JSP specification support... >> >> Stripes now falls over when calling >> pageContext.include(String,boolean), this is because it is a JSP 2.0 >> method and weblogic 8.1 sp6 only supports up to JSP 1.2. >> http://e-docs.bea.com/wls/docs81/notes/new.html#1184292 >> >> My initial workaround idea was to download the jsp 2.0 jar file from >> Apache and put this in the WEB-INF lib directory - this seems to have >> worked for classes not found in the classpath i.e. new classes >> introduced in version 2.0 however it seesm that JSP1.2 classes within >> the weblogic.jar take presidence over classes in the WEB-INF lib. >> >> Can stripes be supported in a JSP 1.2 Servlet container? Or is it >> possible to rebuild stripes without JSP 2.0 dependency? Or can a >> Servlet container be updated to support version 2.0? >> >> Cheers, >> Phil >> >> >> >> >> On Wed, Dec 10, 2008 at 6:14 PM, Taras Puchko <[email protected]> >> wrote: >> > Hi! >> > >> > I think Weblogic is following the JSP spec but Tomcat is more permissive >> > :) >> > Try replacing <type>java.lang.Boolean</type> with <type>boolean</type> >> > >> > Cheers, >> > Taras >> > >> > >> > On Wed, Dec 10, 2008 at 6:16 PM, phil darley >> > <[email protected]> >> > wrote: >> >> >> >> I've made the change, the weblogic.servlet.jsp.StandardTagLib class >> >> successfully parses that tag and then falls over when parsing >> >> net.sourceforge.stripes.tag.UseActionBeanTag's 'validate' property. >> >> It's moaning that the implementation class uses primitive boolean >> >> whereas the TLD states it's java.lang.Boolean. Parse error: >> >> >> >> Parsing of JSP File '/index.jsp' failed: /index.jsp(1): Error in using >> >> tag library uri='http://stripes.sourceforge.net/stripes-dynattr.tld' >> >> prefix='stripes': type mismatch for property 'validate', for Tag class >> >> 'net.sourceforge.stripes.tag.UseActionBeanTag': tld says >> >> java.lang.Boolean, implementation type is boolean >> >> probably occurred due to an error in /index.jsp line 1: >> >> <%@ taglib prefix="stripes" >> >> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%> >> >> >> >> Now I can't think of a way to reference primitive boolean in the TLD >> >> xml: >> >> >> >> <attribute> >> >> <description> >> >> Determines whether validation is run on this >> >> ActionBean. False by default. >> >> </description> >> >> >> >> >> >> >> >> <name>validate</name><required>false</required><rtexprvalue>true</rtexprvalue> >> >> <type>java.lang.Boolean</type> <--need to reference >> >> primitive >> >> here >> >> </attribute> >> >> >> >> So the only workaround I can think of is to change the src to take a >> >> Boolean parameter, however I'm reluctant to to do that as I think it's >> >> not addressing the root problem. >> >> >> >> It seems that the 1.4 complier is not capable of casting the object >> >> datatypes implicitly whereas the 1.5 complier is. Does this make >> >> sense? Has anybody managed to get Stripe tags working in 1.4 or had a >> >> similar issue? >> >> >> >> Cheers, >> >> Phil >> >> >> >> >> >> >> >> On Tue, Dec 9, 2008 at 7:29 PM, phil darley >> >> <[email protected]> wrote: >> >> > Hi Tim, >> >> > >> >> > I've just made the assumption it will fix it. I will make the changes >> >> > and get back to you with the results. >> >> > >> >> > Cheers, >> >> > Phil >> >> > >> >> > On Tue, Dec 9, 2008 at 5:47 PM, Tim Fennell <[email protected]> >> >> > wrote: >> >> >> Does changing the TLD fix the problem? If it does, it sounds to me >> >> >> like a minor bug that we should just fix in the TLD and be done >> >> >> with. >> >> >> -t >> >> >> >> >> >> On Dec 9, 2008, at 11:50 AM, phil darley wrote: >> >> >> >> >> >>> Hi, >> >> >>> >> >> >>> I'm attempting to get stripes to run on a 1.4 jee application >> >> >>> server, >> >> >>> specifically Weblogic 8.1 with service pack 6. >> >> >>> >> >> >>> - Stripes: 1.5 >> >> >>> - Retrotranslator: backport-util-concurrent-3.1.jar, >> >> >>> retrotranslator-runtime-1.2.7.jar & >> >> >>> retrotranslator-transformer-1.2.7.jar >> >> >>> - Ant: 1.7.0 >> >> >>> - JDK: I am using the default jdk for web modules, this is either >> >> >>> sun's jdk (142_11) or BEA JRockit(R) JDK 1.4.2_10 >> >> >>> >> >> >>> I have followed the instructions on >> >> >>> >> >> >>> http://www.stripesframework.org/display/stripes/Java+1.4+and+Stripes, >> >> >>> including removing 1.5 code from the .tld files. I am creating my >> >> >>> build using the Ant Tasks provided by retrotranslator Jar. >> >> >>> >> >> >>> The application deploys and the following error is displayed when >> >> >>> requesting index.jsp : >> >> >>> >> >> >>> Parsing of JSP File '/index.jsp' failed: >> >> >>> ________________________________ >> >> >>> /index.jsp(1): Error in using tag library >> >> >>> uri='http://stripes.sourceforge.net/stripes-dynattr.tld' >> >> >>> prefix='stripes': type mismatch for property 'value', for Tag class >> >> >>> 'net.sourceforge.stripes.tag.InputImageTag': tld says >> >> >>> java.lang.Object, implementation type is java.lang.String >> >> >>> probably occurred due to an error in /index.jsp line 1: >> >> >>> <%@ taglib prefix="stripes" >> >> >>> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%> >> >> >>> >> >> >>> Okay so the problem is that in stripes-dynattr.tld the Java >> >> >>> datatype >> >> >>> specified for the value property of class InputImageTag is >> >> >>> java.lang.Object, the datatype in the implemented class (and >> >> >>> interface) in the stripes jar is java.lang.String. The Jrockit or >> >> >>> Sun >> >> >>> Servlet complier does not like this. Anybody know why when this >> >> >>> clearly works deployed to a 1.5 environment? Obviously one fix >> >> >>> would >> >> >>> be to modify the .tld file to state the datatype specified for the >> >> >>> value property of class InputImageTag to 'java.lang.String' but I >> >> >>> don't believe I should have to! >> >> >>> >> >> >>> Does anybody understand what is happening here? >> >> >>> >> >> >>> Thanks in advance, >> >> >>> Phillip Darley >> >> >>> >> >> >>> >> >> >>> >> >> >>> ------------------------------------------------------------------------------ >> >> >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> >> >>> Nevada. >> >> >>> The future of the web can't happen without you. Join us at MIX09 >> >> >>> to >> >> >>> help >> >> >>> pave the way to the Next Web now. Learn more and register at >> >> >>> >> >> >>> >> >> >>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> >> >>> _______________________________________________ >> >> >>> Stripes-users mailing list >> >> >>> [email protected] >> >> >>> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> >> >> Nevada. >> >> >> The future of the web can't happen without you. Join us at MIX09 to >> >> >> help >> >> >> pave the way to the Next Web now. Learn more and register at >> >> >> >> >> >> >> >> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> >> >> _______________________________________________ >> >> >> Stripes-users mailing list >> >> >> [email protected] >> >> >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> >> >> >> >> > >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> >> Nevada. >> >> The future of the web can't happen without you. Join us at MIX09 to >> >> help >> >> pave the way to the Next Web now. Learn more and register at >> >> >> >> >> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> >> _______________________________________________ >> >> Stripes-users mailing list >> >> [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/stripes-users >> > >> > >> > >> > ------------------------------------------------------------------------------ >> > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> > Nevada. >> > The future of the web can't happen without you. Join us at MIX09 to >> > help >> > pave the way to the Next Web now. Learn more and register at >> > >> > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> > _______________________________________________ >> > Stripes-users mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/stripes-users >> > >> > >> >> >> ------------------------------------------------------------------------------ >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, >> Nevada. >> The future of the web can't happen without you. Join us at MIX09 to help >> pave the way to the Next Web now. Learn more and register at >> >> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ >> _______________________________________________ >> Stripes-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/stripes-users > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/_______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users > > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
