That, plus reordering the filter mappings to look more like Appfuse did the trick.
Thanks!!!!! - Matt [EMAIL PROTECTED] > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt > Raible > Sent: Tuesday, March 13, 2007 3:32 PM > To: [email protected] > Subject: Re: [appfuse-user] RE: <SCL3.4>Re: [appfuse-user] How to remove > DB connection dependency in 2.x? > > I believe you need the struts-cleanup filter in web.xml. > > Matt > > On 3/13/07, Stine, Matt <[EMAIL PROTECTED]> wrote: > > I don't know if you'll consider this better: > > > > An Error has occurred in this application. > > > > java.lang.NullPointerException > > at > > org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTag > > Support.java:50) > > at > > org.apache.jsp.decorators.default_jsp._jspx_meth_s_005fif_005f0(default_ > > jsp.java:413) > > at > > org.apache.jsp.decorators.default_jsp._jspService(default_jsp.java:183) > > at > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja > > va:384) > > at > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > > at > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:290) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:206) > > at > > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc > > her.java:687) > > at > > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp > > atcher.java:590) > > at > > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat > > cher.java:505) > > at > > com.opensymphony.module.sitemesh.filter.PageFilter.applyDecorator(PageFi > > lter.java:156) > > at > > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j > > ava:59) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:235) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:206) > > at org.appfuse.web.MessageFilter.doFilter(MessageFilter.java:32) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:235) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:206) > > at > > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal( > > CharacterEncodingFilter.java:78) > > at > > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequ > > estFilter.java:77) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica > > tionFilterChain.java:235) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt > > erChain.java:206) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv > > e.java:228) > > at > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv > > e.java:175) > > at > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java > > :128) > > at > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java > > :104) > > at > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. > > java:109) > > at > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:2 > > 16) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:84 > > 4) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > Http11Protocol.java:634) > > at > > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445) > > at java.lang.Thread.run(Thread.java:619) > > > > - Matt > > [EMAIL PROTECTED] > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt > > > Raible > > > Sent: Tuesday, March 13, 2007 2:28 PM > > > To: [email protected] > > > Subject: <SCL3.4>Re: [appfuse-user] How to remove DB connection > > dependency > > > in 2.x? > > > > > > If you drop the WAR in Tomcat, do you get a better error message? > > > > > > Matt > > > > > > On 3/13/07, Stine, Matt <[EMAIL PROTECTED]> wrote: > > > > Ok, so I know you're not fixing Equinox right now, but maybe you can > > > > give me a clue as to what's going on. I upgraded Struts to 2.0.6 by > > > > adding the following to pom.xml: > > > > > > > > <dependency> > > > > <groupId>org.apache.struts</groupId> > > > > <artifactId>struts2-core</artifactId> > > > > <version>2.0.6</version> > > > > </dependency> > > > > <dependency> > > > > <groupId>org.apache.struts</groupId> > > > > <artifactId>struts2-spring-plugin</artifactId> > > > > <version>2.0.6</version> > > > > <exclusions> > > > > <exclusion> > > > > <groupId>org.springframework</groupId> > > > > <artifactId>spring-beans</artifactId> > > > > </exclusion> > > > > <exclusion> > > > > <groupId>org.springframework</groupId> > > > > <artifactId>spring-context</artifactId> > > > > </exclusion> > > > > <exclusion> > > > > > > > > <groupId>org.springframework</groupId> > > > > <artifactId>spring-core</artifactId> > > > > </exclusion> > > > > <exclusion> > > > > <groupId>org.springframework</groupId> > > > > <artifactId>spring-web</artifactId> > > > > </exclusion> > > > > </exclusions> > > > > </dependency> > > > > > > > > Now when I go to the users.html page in Jetty, I get the following > > > > stacktrace: > > > > > > > > 2007-03-13 14:01:05.968::WARN: /proteomicsLite/users.html: > > > > java.lang.IllegalStateException: STREAM > > > > at org.mortbay.jetty.Response.getWriter(Response.java:502) > > > > at > > > > > > org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:15 > > > > 4) > > > > at > > > > > > org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.jav > > > > a:141) > > > > at > > > > > > org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.jav > > > > a:208) > > > > at > > > > > > org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(J > > > > spFactoryImpl.java:134) > > > > at > > > > > > org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactor > > > > yImpl.java:89) > > > > at > > > > > > org.apache.jsp.decorators.default_jsp._jspService(org.apache.jsp.deco > > > > rators.default_jsp:252) > > > > at > > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111) > > > > at > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > at > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper > > > > .java:358) > > > > at > > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:4 > > > > > > > > Any ideas? > > > > > > > > Thanks. > > > > > > > > - Matt > > > > [EMAIL PROTECTED] > > > > > > > > > -----Original Message----- > > > > > From: Stine, Matt [mailto:[EMAIL PROTECTED] > > > > > Sent: Tuesday, March 13, 2007 12:40 PM > > > > > To: [email protected] > > > > > Subject: RE: [appfuse-user] How to remove DB connection dependency > > in > > > > 2.x? > > > > > > > > > > Sounds good. I'll take a look at Spring-Kickstart, and also see if > > > > > everything is happy w/ Struts 2.0.6. > > > > > > > > > > Thanks for the answers - my boss was satisfied. :-) > > > > > > > > > > - Matt > > > > > [EMAIL PROTECTED] > > > > > > > > > > > -----Original Message----- > > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > > Matt > > > > > > Raible > > > > > > Sent: Tuesday, March 13, 2007 12:33 PM > > > > > > To: [email protected] > > > > > > Subject: Re: [appfuse-user] How to remove DB connection > > dependency > > > > in > > > > > 2.x? > > > > > > > > > > > > On 3/13/07, Stine, Matt <[EMAIL PROTECTED]> wrote: > > > > > > > I've thought about using equinox for these projects, but of > > course > > > > I > > > > > > > have to make the case to my boss for using two different > > > > frameworks. > > > > > > > Let me ask you a couple of questions to see if I have a leg to > > > > stand > > > > > on: > > > > > > > > > > > > > > 1) Does equinox use the CSS framework? If not, how easy would > > it > > > > be > > > > > to > > > > > > > plug it in? > > > > > > > > > > > > Not too difficult - I did it in the Spring-Kickstart project. > > > > > > > > > > > > http://code.google.com/p/spring-kickstart/ > > > > > > > > > > > > Demo at http://demo.appfuse.org/spring-kickstart. > > > > > > > > > > > > > > > > > > > > 2) Is the same testing infrastructure (dbunit, base classes, > > etc.) > > > > > > > available in equinox? > > > > > > > > > > > > No, but it wouldn't be hard to add. Equinox is more about > > > > simplicity > > > > > > so its tests populate the database before running the tests. > > > > > > > > > > > > > > > > > > > > 3) Should we need to bring Acegi back into the picture, is > > that > > > > > going to > > > > > > > be very difficult? We've just been commenting it out rather > > than > > > > > > > actually removing it from AppFuse as I previously stated. > > > > > > > > > > > > Equinox has basic Acegi integration now. > > > > > > > > > > > > > > > > > > > > 4) Should a junior developer who's familiar with basic > > development > > > > > w/ > > > > > > > AppFuse have little trouble translating his/her skills to > > Equinox? > > > > > > > > > > > > Yes. > > > > > > > > > > > > > > > > > > > > At any rate, I've been tinkering w/ > > equinox-struts2-ibatis-1.7. I > > > > > > > noticed that "ant new" failed out b/c it couldn't find > > > > struts-2.0.2. > > > > > I > > > > > > > switched the version to 2.0.6 and it seemed to be happy. Will > > > > this > > > > > be > > > > > > > ok? > > > > > > > > > > > > Sounds like a bug. I don't want to start fixing up Equinox > > before > > > > > > finishing AppFuse 2.0 because that will likely anger folks (why > > > > don't > > > > > > you finish AppFuse first!). However, I do plan on importing > > Equinox > > > > > > into AppFuse's SVN repo and renaming it AppFuse Light > > (appfuse-light > > > > > > in SVN). Since the communities are pretty much merged, it makes > > > > > > sense. I don't expect other AppFuse developers to work on > > Equinox, > > > > > > but the opportunity is there if they need it. Once AppFuse 2.0 > > is > > > > > > released, I'll start working on AppFuse Light 2.0 and likely > > align > > > > the > > > > > > two frameworks more closely. > > > > > > > > > > > > Matt > > > > > > > > > > > > > > > > > > > > Thanks! > > > > > > > > > > > > > > - Matt > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > > Of > > > > > Matt > > > > > > > > Raible > > > > > > > > Sent: Tuesday, March 13, 2007 11:29 AM > > > > > > > > To: [email protected] > > > > > > > > Subject: Re: [appfuse-user] How to remove DB connection > > > > dependency > > > > > in > > > > > > > 2.x? > > > > > > > > > > > > > > > > You could probably do this with exclusions on your appfuse > > > > > > > > dependencies. However, since you're removing most of the > > guts, > > > > > why > > > > > > > > don't you just use AppFuse Light (Equinox)? Or start with a > > > > > Struts 2 > > > > > > > > archetype (or whatever web framework you're using). If > > you're > > > > > ripping > > > > > > > > out all the features, it's probably easier to start with > > > > something > > > > > > > > else and copy the stuff from AppFuse into it. > > > > > > > > > > > > > > > > Matt > > > > > > > > > > > > > > > > On 3/13/07, Stine, Matt <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I know this may sound like a strange request, but how > > would > > > > one > > > > > > > > completely > > > > > > > > > remove any dependency on the database from AppFuse 2.x? > > Some > > > > of > > > > > the > > > > > > > > > applications we build w/ AppFuse make use of an > > established > > > > SOA > > > > > for > > > > > > > > their > > > > > > > > > backend, so there is no need for any persistence > > (including > > > > the > > > > > user > > > > > > > > > management features) in the web app. In 1.9.x I would > > simply > > > > > remove > > > > > > > the > > > > > > > > > session factory, all DAO's and managers, and the model > > > > classes. > > > > > I > > > > > > > would > > > > > > > > > only leave one DAO/Manager with an iBATIS implementation > > > > should > > > > > I > > > > > > > need > > > > > > > > some > > > > > > > > > quick and dirty SQL. How can I do something similar in > > 2.x? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _____________________________________ > > > > > > > > > > > > > > > > > > Matt Stine > > > > > > > > > > > > > > > > > > Senior Software Engineer > > > > > > > > > > > > > > > > > > Hartwell Center for Bioinformatics and Biotechnology > > > > > > > > > > > > > > > > > > St. Jude Children's Research Hospital > > > > > > > > > > > > > > > > > > 332 N. Lauderdale St. > > > > > > > > > > > > > > > > > > Memphis, TN 38105 > > > > > > > > > > > > > > > > > > Voice: 901.495.4602 > > > > > > > > > > > > > > > > > > Fax: 901.495.5108 > > > > > > > > > > > > > > > > > > Pgr: 901.495.3578 #1314 > > > > > > > > > > > > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > http://www.hartwellcenter.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > http://raibledesigns.com > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > > > > > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > http://raibledesigns.com > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > http://raibledesigns.com > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
