just for kicks, put the embeddedjsp plugin in the shared dir, and see if it works.
On Thu, Oct 15, 2009 at 7:58 AM, Musachy Barroso <musa...@gmail.com> wrote: > yeah that is kind of strange. do you have any of the struts, or your > jars in the tomcat shared dir? even in that case it should not matter. > > musachy > > On Thu, Oct 15, 2009 at 1:10 AM, Obinna <obi...@gmail.com> wrote: >> There's another classloading issue with the embeddedJsp plugin. >> >> When deploying multiple webapps on the same tomcat server, both of which >> utilize the embeddedJsp plugin. After loading embeddJsp pages in on web app, >> attempting to load any embeddedJsp pages in the second webapp throws the >> following exception: >> >> java.lang.ClassCastException: >> org.apache.struts2.jasper.runtime.JspApplicationContextImpl cannot be cast >> to org.apache.struts2.jasper.runtime.JspApplicationContextImpl >> >> org.apache.struts2.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:76) >> >> org.apache.struts2.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:200) >> >> org.apache.struts2.jsp.com.test.service.reporting.jsp.alert_jsp._jspInit(alert_jsp.java >> from :31) >> org.apache.struts2.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52) >> org.apache.struts2.JSPLoader.createServlet(JSPLoader.java:112) >> org.apache.struts2.JSPLoader.load(JSPLoader.java:90) >> org.apache.struts2.ServletCache$1.call(ServletCache.java:46) >> org.apache.struts2.ServletCache$1.call(ServletCache.java:44) >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) >> java.util.concurrent.FutureTask.run(FutureTask.java:138) >> org.apache.struts2.ServletCache.get(ServletCache.java:53) >> org.apache.struts2.JSPRuntime.handle(JSPRuntime.java:63) >> org.apache.struts2.JSPRuntime.handle(JSPRuntime.java:45) >> >> org.apache.struts2.EmbeddedJSPResult.doExecute(EmbeddedJSPResult.java:32) >> >> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186). >> >> which is strange as i would have expected the JspApplicationContextImpl to >> be loaded and isolated by each web-application class loader. >> >> Also, subsequent attempts to load non-embedded jsp page then throw: >> >> org.apache.struts2.jasper.runtime.JspApplicationContextImpl cannot be cast >> to org.apache.struts2.jasper.runtime.JspApplicationContextImpl >> at >> org.apache.struts2.jasper.runtime.JspApplicationContextImpl.getInstance(JspApplicationContextImpl.java:76) >> at >> org.apache.struts2.jasper.runtime.JspFactoryImpl.getJspApplicationContext(JspFactoryImpl.java:200) >> >> >> - Eric >> >> >> >> >> On Mon, Sep 28, 2009 at 11:05 AM, Obinna <obi...@gmail.com> wrote: >> >>> Tested and work well. Couldn't resolve struts2-core.2.1.9-Snapshot maven >>> dependency so I used 2.1.8 though. >>> Closed jira ticket. >>> Thanks again!! I hope everyone realizes how significant/powerful a plugin >>> this is. >>> >>> - Eric >>> >>> >>> >>> On Mon, Sep 28, 2009 at 9:07 AM, Musachy Barroso <musa...@gmail.com>wrote: >>> >>>> I should have done it with jasper 6 since the beginning, but it seemed >>>> more difficult and my laziness took the best of me :) >>>> >>>> musachy >>>> >>>> On Sun, Sep 27, 2009 at 10:12 PM, Obinna <obi...@gmail.com> wrote: >>>> > Great!. Musachy, thanks a million for doing this so quickly. I'll give >>>> it a >>>> > test anon >>>> > >>>> > >>>> > On Mon, Sep 28, 2009 at 6:18 AM, Martin Gainty <mgai...@hotmail.com> >>>> wrote: >>>> > >>>> >> >>>> >> thanks for the headsup.. 2.1.8 builds now.. >>>> >> I had wrong version of commons-collections ListUtils not having >>>> >> isEqualList(collection,collection) >>>> >> <dependency> >>>> >> <groupId>org.apache.commons.collections</groupId> >>>> >> <artifactId>commons-collections</artifactId> >>>> >> <version>3.2.1</version> >>>> >> </dependency> >>>> >> pulls correct version >>>> >> >>>> >> seeing some failures in surefire..(too many to count on one hand will >>>> take >>>> >> a look tommorrow) >>>> >> thanks, >>>> >> Martin Gainty >>>> >> ______________________________________________ >>>> >> Standard Caveats apply >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> > Date: Sun, 27 Sep 2009 19:00:12 -0700 >>>> >> > Subject: Re: embeddedJsp plugin causing jsp compilation issues >>>> >> > From: musa...@gmail.com >>>> >> > To: dev@struts.apache.org >>>> >> > >>>> >> > a'right. The code is in trunk. To use the plugin with tomcat, just >>>> >> > build it and deploy it as usual. It works with Jetty 7+, which needs >>>> >> > the tomcat deps added to the application, adding this to your pom >>>> will >>>> >> > take care of it: >>>> >> > >>>> >> > <dependency> >>>> >> > <groupId>org.apache.tomcat</groupId> >>>> >> > <artifactId>jasper</artifactId> >>>> >> > <version>6.0.18</version> >>>> >> > </dependency> >>>> >> > >>>> >> > let me know if it works. >>>> >> > >>>> >> > musachy >>>> >> > >>>> >> > On Sun, Sep 27, 2009 at 6:34 PM, Musachy Barroso <musa...@gmail.com> >>>> >> wrote: >>>> >> > > it works on tomcat but now it breaks in jetty...oh joy. >>>> >> > > >>>> >> > > On Sun, Sep 27, 2009 at 2:35 PM, Musachy Barroso < >>>> musa...@gmail.com> >>>> >> wrote: >>>> >> > >> ok I got jasper 6 working. I will do some more testing (at least >>>> the >>>> >> > >> junits run fine), commit the jasper code, and then commit my >>>> changes. >>>> >> > >> (later on) >>>> >> > >> >>>> >> > >> musachy >>>> >> > >> >>>> >> > >> On Sun, Sep 27, 2009 at 12:56 PM, Musachy Barroso < >>>> musa...@gmail.com> >>>> >> wrote: >>>> >> > >>> yeah that would work if I could use it as a library, but jasper >>>> is >>>> >> not >>>> >> > >>> written with that in mind. I had to change a fairly amount of >>>> private >>>> >> > >>> code to get it to work. >>>> >> > >>> >>>> >> > >>> musachy >>>> >> > >>> >>>> >> > >>> On Sun, Sep 27, 2009 at 12:50 PM, Antonio Petrelli >>>> >> > >>> <antonio.petre...@gmail.com> wrote: >>>> >> > >>>> 2009/9/27 Musachy Barroso <musa...@gmail.com>: >>>> >> > >>>>> It is a missmatch between the jsp-apis. The internal jasper >>>> >> implements >>>> >> > >>>>> 2.0, while tomcat 6/jasper 6 implement 2.1, and in 2.1 there a >>>> new >>>> >> > >>>>> method called. It is not looking good. >>>> >> > >>>> >>>> >> > >>>> You might wish to use JarJar to repackage, to avoid conflicts >>>> like >>>> >> > >>>> this. Lots of people use them to avoid dependencies, like >>>> >> > >>>> commons-logging. >>>> >> > >>>> See: >>>> >> > >>>> http://docs.atlassian.com/jarjar-maven-plugin/ >>>> >> > >>>> >>>> >> > >>>> HTH >>>> >> > >>>> Antonio >>>> >> > >>>> >>>> >> > >>>> >>>> >> --------------------------------------------------------------------- >>>> >> > >>>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >>>> >> > >>>> For additional commands, e-mail: dev-h...@struts.apache.org >>>> >> > >>>> >>>> >> > >>>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> >>>> >> > >>> -- >>>> >> > >>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >> > >>> >>>> >> > >> >>>> >> > >> >>>> >> > >> >>>> >> > >> -- >>>> >> > >> "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >> > >> >>>> >> > > >>>> >> > > >>>> >> > > >>>> >> > > -- >>>> >> > > "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >> > > >>>> >> > >>>> >> > >>>> >> > >>>> >> > -- >>>> >> > "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >> > >>>> >> > --------------------------------------------------------------------- >>>> >> > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >>>> >> > For additional commands, e-mail: dev-h...@struts.apache.org >>>> >> > >>>> >> >>>> >> _________________________________________________________________ >>>> >> Lauren found her dream laptop. Find the PC that’s right for you. >>>> >> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290 >>>> > >>>> >>>> >>>> >>>> -- >>>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org >>>> For additional commands, e-mail: dev-h...@struts.apache.org >>>> >>>> >>> >> > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org