Hi Ioa, if you look inside the log file, there's a line with "caused by" that reveals the real reason. What does it say?
Jasha Op 17 nov. 2011 18:30 schreef "Ioa Kiss" <[email protected]> het volgende: > Hi All, > > Working fine with Jetty 7.5.4. > > However with Jetty 6.1 I get the following error when the user page > contains > widgets > > > > Please bear with us while we fetch some ice cubes. In the meantime please > try reloading. > technical details > > > > 404 Not > > Foundorg.springframework.web.client.DefaultResponseErrorHandler.handleError( > DefaultResponseErrorHandler.java:75) > > > > > > org.springframework.web.client.RestTemplate.handleResponseError(RestTemplate > .java:486) > > > > > > org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:443) > > > > > org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401) > > > > > > org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java: > 279) > > > > > > org.apache.rave.provider.opensocial.repository.impl.ShindigGadgetMetadataRep > ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95) > > > > > > org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialService.ge > tGadgetMetadata(DefaultOpenSocialService.java:39) > > > > > > org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRenderer.ge > tWidgetScript(OpenSocialWidgetRenderer.java:113) > > > > > > org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRenderer.re > nder(OpenSocialWidgetRenderer.java:94) > > > > > > org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRenderer.re > nder(OpenSocialWidgetRenderer.java:45) > > > > > > org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(Default > RenderService.java:68) > > > > > > org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidgetTag.ja > va:54) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1widget_0 > (org.apache.jsp.WEB_002dINF.views.home_jsp:1353) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_c_forEach_2(org.apache. > jsp.WEB_002dINF.views.home_jsp:1052) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_c_forEach_1(org.apache. > jsp.WEB_002dINF.views.home_jsp:923) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp.access$8(org.apache.jsp.WEB_002dIN > F.views.home_jsp:903) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp$home_jspHelper.invoke0(org.apache. > jsp.WEB_002dINF.views.home_jsp:2233) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp$home_jspHelper.invoke(org.apache.j > sp.WEB_002dINF.views.home_jsp:2405) > > > > > > org.apache.jsp.tag.web.rave_005fgeneric_005fpage_tag.doTag(org.apache.jsp.ta > g.web.rave_005fgeneric_005fpage_tag:123) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_rave_rave_generic_page_ > 0(org.apache.jsp.WEB_002dINF.views.home_jsp:174) > > > > > > org.apache.jsp.WEB_002dINF.views.home_jsp._jspService(org.apache.jsp.WEB_002 > dINF.views.home_jsp:129) > > > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 > 89) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486) > > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > > > > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > > > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > > > > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > > > > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > > > > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > > > > > org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) > > > > > org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) > > > > > > org.springframework.web.servlet.view.InternalResourceView.renderMergedOutput > Model(InternalResourceView.java:238) > > > > > > org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:2 > 50) > > > > > > org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.j > ava:1047) > > > > > > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServl > et.java:817) > > > > > > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServle > t.java:719) > > > > > > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSer > vlet.java:644) > > > > > > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java > :549) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > > > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > > > > > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler > .java:1221) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:368) > > > > > > org.springframework.security.web.access.intercept.FilterSecurityInterceptor. > invoke(FilterSecurityInterceptor.java:109) > > > > > > org.springframework.security.web.access.intercept.FilterSecurityInterceptor. > doFilter(FilterSecurityInterceptor.java:83) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter( > ExceptionTranslationFilter.java:97) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.session.SessionManagementFilter.doFilter(Se > ssionManagementFilter.java:100) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.AnonymousAuthenticationFilte > r.doFilter(AnonymousAuthenticationFilter.java:78) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.rememberme.RememberMeAuthent > icationFilter.doFilter(RememberMeAuthenticationFilter.java:119) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.servletapi.SecurityContextHolderAwareReques > tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilt > er(RequestCacheAwareFilter.java:35) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.www.BasicAuthenticationFilte > r.doFilter(BasicAuthenticationFilter.java:177) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.AbstractAuthenticationProces > singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.AbstractAuthenticationProces > singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.authentication.logout.LogoutFilter.doFilter > (LogoutFilter.java:105) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.context.SecurityContextPersistenceFilter.do > Filter(SecurityContextPersistenceFilter.java:79) > > > > > > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilte > r(FilterChainProxy.java:380) > > > > > > org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy. > java:169) > > > > > > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(Delegati > ngFilterProxy.java:237) > > > > > > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilt > erProxy.java:167) > > > > > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler > .java:1212) > > > > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399) > > > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > > > > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > > > > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > > > > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > > > > > > org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerColl > ection.java:230) > > > > > > org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:11 > 4) > > > > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > > > > org.mortbay.jetty.Server.handle(Server.java:326) > > > > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > > > > > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnectio > n.java:929) > > > > org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > > > > > org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > > > > > org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > > > > > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410) > > > > > > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582 > ) > > > > Thanks, > > Ioan > > > > From: Ioan Kiss [mailto:[email protected]] > Sent: Thursday, November 17, 2011 11:16 AM > To: [email protected] > Subject: Re: Rave using Jetty, instead of Tomcat > > > > Thanks, it working fine for me also. > > Good that it was only a config issue and not something deeper. > > Thanks, > >  Ioan > > On Thu, Nov 17, 2011 at 10:52 AM, Jasha Joachimsthal > <[email protected]> wrote: > > By default Jetty uses the JspServlet for the welcome page: > http://docs.codehaus.org/display/JETTY/Welcome+files+not+working > We're using the Spring org.springframework.web.servlet.DispatcherServlet. > > In order to let Jetty use this servlet, modify the webdefault.xml: > Go to the servlet org.eclipse.jetty.servlet.DefaultServlet > Go to the init parameter welcomeServlets and change its value to true. Now > the Rave portal is shown if you go to http://localhost:8080 (or > http://localhost:8080/portal) > > > Jasha Joachimsthal > > Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 > <tel:%2B31%280%2920%20522%204466> > US - Boston - 1 Broadway, Cambridge, MA 02142 - > <tel:%2B1%20877%20414%204776> +1 877 414 4776 <tel:+1%20877%20414%204776> > (toll free) > > www.onehippo.com > > > > On 17 November 2011 07:26, Ioa Kiss <[email protected]> wrote: > > > Hi Raminder, > >  Thanks for looking into this. Looking forward to get news from you. > This > > would increase the Rave capabilities as solutions which already use Jetty > > will be able to use Rave with pretty small effort. > > Thanks, > >  Ioan > > > > -----Original Message----- > > From: Raminderjeet Singh [mailto:[email protected]] > > Sent: Thursday, November 17, 2011 3:09 AM > > To: [email protected] > > Subject: Re: Rave using Jetty, instead of Tomcat > > > > Hi Ioan, > > > > I just tried on jetty6 and i am having same problem. There is come > problem > > with controller to forward the request. I will look into the code > tomorrow. > > You can create a issue in rave jira. > > https://issues.apache.org/jira/browse/RAVE > > > > Thanks for finding this. Till we fix this you can use the in-built > tomcat. > > > > Thanks > > Raminder > > On Nov 16, 2011, at 6:24 PM, Ioa Kiss wrote: > > > > >  Here are the steps followed in running Rave on Jetty server 7.5.4 1. > > > Download Jetty 7.5.4 2.Download rave > > > (apache-rave-0.5-incubating-bin.zip) > > > 3. Copied portal.war, root.war and demogadgets.war in Jetty/webapps > > > folder 4. start jetty - did not noticed any errors during jetty > > > startup 5. open browser and type http://localhost:8080/portal/ 6. The > > > login page was displayed 7. Enter canonical/canonical and hit login > > > button 8. Directory view displayed (Directory: /portal/); in the jetty > > > console I found the following message (32646 > > > ravePersistenceUnit  WARN  [qtp31505416-12 - > > > /portal/j_spring_security_check] openjpa.Runtime - Query "select u > > > from User u where u.username = :username" is removed from cache  > excluded > > permanently. > > > Query "select u from User u where  u.username = :username" is not > > > cached because it generates multiple SQL statements. A query can be > > > cached only when it corresponds to a single SQL statement.) Not sure > > > if this is a problem or not. > > > > > > Thanks, > > >  Ioan > > > > > > -----Original Message----- > > > From: Ioa Kiss [mailto:[email protected]] > > > Sent: Wednesday, November 16, 2011 11:59 PM > > > To: [email protected] > > > Subject: RE: Rave using Jetty, instead of Tomcat > > > > > > Yes, I did that too (ROOT.war (this is shindig war) and > > > demogadgets.war) and the same thing. > > > Thanks, > > >  Ioan > > > > > > -----Original Message----- > > > From: Raminderjeet Singh [mailto:[email protected]] > > > Sent: Wednesday, November 16, 2011 11:55 PM > > > To: [email protected] > > > Subject: Re: Rave using Jetty, instead of Tomcat > > > > > > You need to copy ROOT.war (this is shindig war) and > > > demogadgets.war(optional:just have some sample gadgets in widget store > > > from > > > here.) to make Rave work.  If it does not work then we will debug > more. > > > > > > Thanks > > > Raminder > > > > > > > > > On Nov 16, 2011, at 4:48 PM, Ioa Kiss wrote: > > > > > >> I was running the portal.war while trying with Jetty. > > >> We tried running Rave with Jetty, because in our solution, we offer > > >> all other services using Jetty and switching them to Tomcat is not an > > >> easy task at this time. > > >> Thanks, > > >> Ioan > > >> > > >> -----Original Message----- > > >> From: Jasha Joachimsthal [mailto:[email protected]] > > >> Sent: Wednesday, November 16, 2011 7:56 PM > > >> To: [email protected] > > >> Subject: Re: Rave using Jetty, instead of Tomcat > > >> > > >> I tried but didn't try hard enough to make it work. The thing is that > > >> you need to run the portal war, shindig war and maybe also the demo > > > gadgets war. > > >> By default the portal does opensocial calls to shindig on > > >> localhost:8080, the same host and port as the portal. > > >> What's the reason you want to switch to Jetty? > > >> > > >> Jasha Joachimsthal > > >> > > >> Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 > > >> 4466 US > > >> - Boston - 1 Broadway, Cambridge, MA 02142 - > <tel:%2B1%20877%20414%204776> +1 877 414 4776 <tel:+1%20877%20414%204776> > (toll > > >> free) > > >> > > >> www.onehippo.com > > >> > > >> > > >> On 16 November 2011 18:31, Franklin, Matthew B. <[email protected]> > > > wrote: > > >> > > >>>> -----Original Message----- > > >>>> From: Ioa Kiss [mailto:[email protected]] > > >>>> Sent: Wednesday, November 16, 2011 11:55 AM > > >>>> To: [email protected] > > >>>> Subject: Rave using Jetty, instead of Tomcat > > >>>> > > >>>> Hi All, > > >>>> > > >>>>  I was trying to get rave running under Jetty, but had no luck so > far. > > >>>> The login page is displayed (I am also able to create new users), > > >>>> but > > >>> when I > > >>>> try to login I get the directory view, instead of the normal view > > >>>> (the one displaying user's widgets). > > >>> > > >>> What version of Jetty were you using? > > >>> > > >>>> > > >>>> I was wondering if anyone tried the same thing - run rave on Jetty, > > >>> instead > > >>>> of Tomcat? > > >>> > > >>> I haven't yet, but others may have > > >>> > > >>>> > > >>>> Note: in case I provide wrong user name/password I get proper > > >>>> message in the login page. > > >>>> > > >>>> > > >>>> > > >>>> Thanks, > > >>>> > > >>>> Ioan > > >>> > > >>> > > >> > > > > > > > > > > > > > > > > > > >
