Ok..so I believe I will use forward, but the question still remains can I have it exact match ONLY if it has nothing following the ".com", as in the http://hmisupport.hiw.com because if I forward anything else, the application wouldn't work. The regexp doc isn't clear on what all the special characters mean. Thx,
Steve Francis Technical Advisor - zSeries, zLinux, z/OS IHG Alpharetta Data Center Ph: 770-442-7157 Cell: 770-906-3122 IM: francisihg -----Original Message----- From: resin-interest-boun...@caucho.com [mailto:resin-interest-boun...@caucho.com] On Behalf Of resin-interest-requ...@caucho.com Sent: Thursday, August 19, 2010 10:55 AM To: resin-interest@caucho.com Subject: resin-interest Digest, Vol 50, Issue 20 Send resin-interest mailing list submissions to resin-interest@caucho.com To subscribe or unsubscribe via the World Wide Web, visit http://maillist.caucho.com/mailman/listinfo/resin-interest or, via email, send a message with subject or body 'help' to resin-interest-requ...@caucho.com You can reach the person managing the list at resin-interest-ow...@caucho.com When replying, please edit your Subject line so it is more specific than "Re: Contents of resin-interest digest..." Today's Topics: 1. Redirect or forwarding (Francis, Steve (IHG)) 2. ConcurrentModificationException when InjectManager.findByName (Wesley Wu) 3. Re: Redirect or forwarding (Riccardo Cohen) 4. JSP error page -- javax.servlet.error.exception not accessible? (Marcin Koziej) 5. Resin 4, maven plugin complains about session-config (Olaf Krische) ---------------------------------------------------------------------- Message: 1 Date: Wed, 18 Aug 2010 14:52:29 -0400 From: "Francis, Steve (IHG)" <steve.fran...@ihg.com> Subject: [Resin-interest] Redirect or forwarding To: <resin-interest@caucho.com> Message-ID: <c595e25cd30f3f4192918c5dfe51625901fa6...@hnatld1svrexg09.amer.corp.loca l> Content-Type: text/plain; charset="us-ascii" I'm not sure if I want a redirect of a forward here. I'll explain. I have a linux host with multpile IP addresses, and therefore, multiple DNS names. I'd like to be able to send requests for a base dns name with nothing after the .com to a specific application. http://hmisupportqa.hiw.com <http://hmisupportqa.hiw.com/> to http://hmisupportqa.hiw.com/support/SupportServer <http://hmisupportqa.hiw.com/support/SupportServer> and http://hmi-qa.hiw.com <http://hmi-qa.hiw.com/> to http://hmi-qa.hiw.com/mqsservlet/ViewHdxMsg <http://hmi-qa.hiw.com/mqsservlet/ViewHdxMsg> and still allow the standard website to be viewed via http://adczlnxhmiqa1.hiw.com <http://adczlnxhmiqa1.hiw.com/> What I don't want is a bad url that redirects other valid urls such as http://hmisupportqa.hiw.com/support/DisplayHotelStatus <http://hmisupportqa.hiw.com/support/DisplayHotelStatus> back to the http://hmisupportqa.hiw.com/support/SupportServer <http://hmisupportqa.hiw.com/support/SupportServer> as that would break the application. Is this possible? I couldn't really tell from the doc. Thanks, Steve Francis Technical Advisor - zSeries, zLinux, z/OS IHG Alpharetta Data Center Ph: 770-442-7157 Cell: 770-906-3122 IM: francisihg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://maillist.caucho.com/pipermail/resin-interest/attachments/20100818 /85d78442/attachment-0001.html ------------------------------ Message: 2 Date: Thu, 19 Aug 2010 17:20:14 +0800 From: Wesley Wu <wumen...@gmail.com> Subject: [Resin-interest] ConcurrentModificationException when InjectManager.findByName To: Resin <resin-interest@caucho.com> Message-ID: <aanlktimdjqq7g2mqp23h5i3p0+n4qaki7awgnzjpb...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Often happened at 30 seconds after appserver start. [10-08-19 17:11:44.378] {server://*:6801-487} java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:977) at java.util.HashMap$KeyIterator.next(HashMap.java:1012) at java.util.HashMap.buildCache(HashMap.java:590) at java.util.HashMap.resize(HashMap.java:576) at java.util.HashMap.addEntry(HashMap.java:939) at java.util.HashMap.put(HashMap.java:477) at com.caucho.config.inject.InjectManager.findByName(InjectManager.java:759 ) at com.caucho.config.inject.InjectManager.getBeans(InjectManager.java:1254) at com.caucho.config.inject.InjectManager.getReferenceFactory(InjectManager .java:1268) at com.caucho.config.el.CandiElResolver.getValue(CandiElResolver.java:125) at com.caucho.el.EnvironmentLevelELResolver.getValue(EnvironmentLevelELReso lver.java:154) at com.caucho.el.EnvironmentELResolver.getValue(EnvironmentELResolver.java: 151) at com.caucho.el.StackELResolver.getValue(StackELResolver.java:143) at com.caucho.jsp.InitPageContextImpl.resolveVariable(InitPageContextImpl.j ava:88) at com.caucho.jsp.PageContextImpl$PageVariableMapper.resolveVariable(PageCo ntextImpl.java:2183) at com.caucho.el.ELParser.parseSimpleTerm(ELParser.java:702) at com.caucho.el.ELParser.parseTerm(ELParser.java:460) at com.caucho.el.ELParser.parseExpr(ELParser.java:231) at com.caucho.el.ELParser.parseInterpolate(ELParser.java:194) at com.caucho.el.ELParser.parse(ELParser.java:113) at com.caucho.jsp.JspUtil.createExpr(JspUtil.java:69) at _jsp._WEB_22dINF._templates._default._home._album._view__jsp.caucho_init (_view__jsp.java:752) at com.caucho.jsp.JspManager.loadPage(JspManager.java:422) at com.caucho.jsp.JspManager.preload(JspManager.java:357) at com.caucho.jsp.JspManager.compile(JspManager.java:236) at com.caucho.jsp.JspManager.createPage(JspManager.java:191) at com.caucho.jsp.JspManager.createPage(JspManager.java:170) at com.caucho.jsp.PageManager.getPage(PageManager.java:339) at com.caucho.jsp.PageManager.getPage(PageManager.java:269) at com.caucho.jsp.PageManager.getPage(PageManager.java:252) at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295) at com.caucho.jsp.QServlet.getPage(QServlet.java:210) at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.j ava:237) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java :144) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j ava:287) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:289) -Wesley ------------------------------ Message: 3 Date: Thu, 19 Aug 2010 12:17:15 +0200 From: Riccardo Cohen <r...@architectedulogiciel.fr> Subject: Re: [Resin-interest] Redirect or forwarding To: General Discussion for the Resin application server <resin-interest@caucho.com> Message-ID: <4c6d04ab.6030...@architectedulogiciel.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed I'm doing url-rewriting in code and not in conf. What I do is write some servlet mapping : <servlet-mapping url-pattern="/fr/*" servlet-name="urlmanager"/> <servlet-mapping url-pattern="/en/*" servlet-name="urlmanager"/> In the urlmanager servlet, I'm able to redirect or forward any request based on the current context (request url and application configuration) To redirect : response.sendRedirect(page); To forward : request.getRequestDispatcher(page).forward(request,response); About the choice between forward or redirect, it depends only if you want the browser's url to change or not. This has also an effect on search engine optimization. On 18/08/10 20:52, Francis, Steve (IHG) wrote: > I'm not sure if I want a redirect of a forward here. I'll explain. I > have a linux host with multpile IP addresses, and therefore, multiple > DNS names. I'd like to be able to send requests for a base dns name > with nothing after the .com to a specific application. > http://hmisupportqa.hiw.com <http://hmisupportqa.hiw.com/> to > http://hmisupportqa.hiw.com/support/SupportServer > and > http://hmi-qa.hiw.com <http://hmi-qa.hiw.com/> to > http://hmi-qa.hiw.com/mqsservlet/ViewHdxMsg > and still allow the standard website to be viewed via > http://adczlnxhmiqa1.hiw.com <http://adczlnxhmiqa1.hiw.com/> What I > don't want is a bad url that redirects other valid urls such as > http://hmisupportqa.hiw.com/support/DisplayHotelStatus back to the > http://hmisupportqa.hiw.com/support/SupportServer as that would break > the application. > Is this possible? I couldn't really tell from the doc. > Thanks, > *Steve Francis* > *Technical Advisor - zSeries, zLinux, z/OS* IHG Alpharetta Data Center > Ph: 770-442-7157 > Cell: 770-906-3122 > IM: francisihg > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest -- Riccardo Cohen Architecte du Logiciel http://www.architectedulogiciel.fr +33 (0)6.09.83.64.49 Membre du r?seau http://www.reflexe-conseil-centre.org ------------------------------ Message: 4 Date: Thu, 19 Aug 2010 15:38:29 +0200 From: Marcin Koziej <d...@lolownia.org> Subject: [Resin-interest] JSP error page -- javax.servlet.error.exception not accessible? To: resin-interest@caucho.com Message-ID: <63e6f4fb-7977-4958-9d0b-d3980d00c...@lolownia.org> Content-Type: text/plain; charset=us-ascii Hello! I'm having trouble under resin 4.0.9, with something that was working with 4.0.7 I have an error page configured in web.xml: <error-page> <location>/jsp/error.jsp</location> </error-page> in which i want to access javax.servlet.error.exception property to display and log the error. After moving to Resin Pro 4.0.9, I get an error while doing this: [10-08-19 15:26:00.877] {http://*:80-10} javax.el.PropertyNotFoundException: 'servlet' is an unknown bean property of 'com.caucho.server.webbeans.ConversationContext__ResinScopeProxy' at javax.el.BeanELResolver.getValue(BeanELResolver.java:196) at com.caucho.jsp.el.PageContextELResolver.getValue(PageContextELResolver.j ava:181) at com.caucho.el.ArrayResolverExpr.getValue(ArrayResolverExpr.java:148) at com.caucho.el.ArrayResolverExpr.getValue(ArrayResolverExpr.java:139) at com.caucho.el.ArrayResolverExpr.getValue(ArrayResolverExpr.java:139) at com.caucho.el.PathExpr.getValue(PathExpr.java:142) at com.caucho.el.Expr.print(Expr.java:411) at com.caucho.config.el.CandiExpr.print(CandiExpr.java:219) at _jsp._jsp._error__jsp._jspService(_error__jsp.java:90) at _jsp._jsp._error__jsp._jspService(_error__jsp.java:38) at com.caucho.jsp.JavaPage.service(JavaPage.java:61) at com.caucho.jsp.Page.pageservice(Page.java:542) at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java :194) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j ava:286) at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcher Impl.java:287) at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherIm pl.java:136) at com.caucho.server.webapp.ErrorPageManager.sendServletErrorImpl(ErrorPage Manager.java:426) at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageMana ger.java:183) at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.ja va:185) at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java: 207) at com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterCh ain.java:92) at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.j ava:286) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:789) at com.caucho.network.listen.TcpSocketLink.dispatchRequest(TcpSocketLink.ja va:662) at com.caucho.network.listen.TcpSocketLink.handleRequestsImpl(TcpSocketLink .java:625) at com.caucho.network.listen.TcpSocketLink.handleRequests(TcpSocketLink.jav a:576) at com.caucho.network.listen.TcpSocketLink$AcceptTask.doTask(TcpSocketLink. java:1157) at com.caucho.network.listen.TcpSocketLink$ConnectionReadTask.runThread(Tcp SocketLink.java:1092) at com.caucho.network.listen.TcpSocketLink$AcceptTask.run(TcpSocketLink.jav a:1124) at com.caucho.env.thread.ResinThread.runTasks(ResinThread.java:169) The original exception object is lost. Is it a resin bug, or should I use a different method for accessing the exception object? Best regards, Marcin Koziej ------------------------------ Message: 5 Date: Thu, 19 Aug 2010 16:53:16 +0200 From: "Olaf Krische" <okris...@gmx.de> Subject: [Resin-interest] Resin 4, maven plugin complains about session-config To: resin-interest@caucho.com Message-ID: <20100819145316.57...@gmx.net> Content-Type: text/plain; charset="utf-8" Hello, is anybody else using the maven plugin (4.0-SNAPSHOT) for resin? I have three problems right now, but i start with this one: The plugin gets confused by the line session-config in the web.xml: $ mvn -e resin:jspc WEB-INF/web.xml:245: com.caucho.server.webapp.WebApp.createSessionConfig(): java.lang.IllegalStateException: Server is not active in this context EnvironmentClassLoader[web-app:] 243: </servlet-mapping> 244: 245: <session-config> 246: <session-timeout>30</session-timeout> 247: </session-config> Removing the lines solves the problem "for compiling". The web.xml uses: "http://java.sun.com/dtd/web-app_2_3.dtd" Can anybody verify this? -- GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 f?r nur 19,99 ?/mtl.!* http://portal.gmx.net/de/go/dsl ------------------------------ _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest End of resin-interest Digest, Vol 50, Issue 20 ********************************************** _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest