You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by Ioa Kiss <ik...@ezuce.com> on 2011/11/16 17:54:35 UTC

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).

I was wondering if anyone tried the same thing - run rave on Jetty, instead
of Tomcat?

Note: in case I provide wrong user name/password I get proper message in the
login page.

 

Thanks,

  Ioan


RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" 200 31093 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" 200 13088 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" 200 13303 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" 200 19159 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462 
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333 
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972 
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936 
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" 500 11982

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com] 
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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 
> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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. 
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


RE: Rave using Jetty, instead of Tomcat

Posted by "Ciancetta, Jesse E." <jc...@mitre.org>.
If /rpc is returning 404's then it sounds like Shindig didn't initialize properly.

This looks like a snippet from a request log -- do you have any kind of server logs that contains output from the Java console?

>-----Original Message-----
>From: Ioa Kiss [mailto:ikiss@ezuce.com]
>Sent: Thursday, November 17, 2011 12:57 PM
>To: rave-dev@incubator.apache.org
>Subject: RE: Rave using Jetty, instead of Tomcat
>
>Hi Jasha,
>  This is what I have in Jetty/logs
>127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
>0
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
>HTTP/1.1" 200 14546
>127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
>127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
>HTTP/1.1" 200 14546
>127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
>717
>127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
>127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
>127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
>/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
>HTTP/1.1" 200 2940
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
>/portal/script/rave_forms.js HTTP/1.1" 200 2603
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
>HTTP/1.1" 200 31093
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
>HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
>5802
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404
>3572
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_opensocial.js HTTP/1.1" 200 13088
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_wookie.js HTTP/1.1" 200 1887
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
>HTTP/1.1" 200 13303
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_layout.js HTTP/1.1" 200 19159
>127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
>/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611
>127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
>/portal/script/rave_store.js HTTP/1.1" 200 3462
>127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
>127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
>127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
>127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
>127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
>HTTP/1.1" 500 11982
>
>It appears the /rpc is not available.
>
>Ioan.
>
>-----Original Message-----
>From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
>Sent: Thursday, November 17, 2011 7:50 PM
>To: rave-dev@incubator.apache.org
>Subject: RE: Rave using Jetty, instead of Tomcat
>
>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" <ik...@ezuce.com> 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.handle
>> Error(
>> DefaultResponseErrorHandler.java:75)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.handleResponseError(RestTe
>> mplate
>> .java:486)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
>> a:443)
>>
>>
>>
>>
>> org.springframework.web.client.RestTemplate.execute(RestTemplate.java:
>> 401)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.postForObject(RestTemplate.j
>ava:
>> 279)
>>
>>
>>
>>
>>
>> org.apache.rave.provider.opensocial.repository.impl.ShindigGadgetMetad
>> ataRep
>> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>>
>>
>>
>>
>>
>> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
>> ice.ge
>> tGadgetMetadata(DefaultOpenSocialService.java:39)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.ge
>> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.re
>> nder(OpenSocialWidgetRenderer.java:94)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.re
>> nder(OpenSocialWidgetRenderer.java:45)
>>
>>
>>
>>
>>
>> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
>> efault
>> RenderService.java:68)
>>
>>
>>
>>
>>
>> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
>> Tag.ja
>> va:54)
>>
>>
>>
>>
>>
>>
>org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1
>wi
>> dget_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.a
>p
>> ache.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_gene
>ric
>> _page_
>> 0(org.apache.jsp.WEB_002dINF.views.home_jsp:174)
>>
>>
>>
>>
>>
>>
>org.apache.jsp.WEB_002dINF.views.home_jsp._jspService(org.apache.jsp.W
>> EB_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:48
>> 6)
>>
>>
>>
>>
>> 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:40
>> 1)
>>
>>
>>
>>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
>> :216)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
>> 2)
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
>> 5)
>>
>>
>>
>>
>>
>org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:45
>0)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.view.InternalResourceView.renderMerged
>> Output
>> Model(InternalResourceView.java:238)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
>> java:2
>> 50)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
>> vlet.j
>> ava:1047)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
>> rServl
>> et.java:817)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
>> Servle
>> t.java:719)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
>w
>> orkSer
>> vlet.java:644)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
>e
>> t.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(ServletH
>> andler
>> .java:1221)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> 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.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.access.ExceptionTranslationFilter.doF
>> ilter(
>> ExceptionTranslationFilter.java:97)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.session.SessionManagementFilter.doFil
>> ter(Se
>> ssionManagementFilter.java:100)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.authentication.AnonymousAuthenticatio
>> nFilte
>> r.doFilter(AnonymousAuthenticationFilter.java:78)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.authentication.rememberme.Remember
>MeA
>> uthent
>> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.servletapi.SecurityContextHolderAware
>> Reques
>> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
>> doFilt
>> er(RequestCacheAwareFilter.java:35)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.www.BasicAuthenticatio
>> nFilte
>> r.doFilter(BasicAuthenticationFilter.java:177)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.AbstractAuthentication
>> Proces
>> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.AbstractAuthentication
>> Proces
>> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.logout.LogoutFilter.do
>> Filter
>> (LogoutFilter.java:105)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.context.SecurityContextPersistenceFil
>> ter.do
>> Filter(SecurityContextPersistenceFilter.java:79)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
>> java:169)
>>
>>
>>
>>
>>
>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
>> legati
>> ngFilterProxy.java:237)
>>
>>
>>
>>
>>
>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
>> ngFilt
>> erProxy.java:167)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
>> andler
>> .java:1212)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
>> 9)
>>
>>
>>
>>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
>> :216)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
>> 2)
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
>> 5)
>>
>>
>>
>>
>>
>org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:45
>0)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
>> erColl
>> ection.java:230)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
>> ava:11
>> 4)
>>
>>
>>
>>
>>
>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
>> 2)
>>
>>
>>
>>                org.mortbay.jetty.Server.handle(Server.java:326)
>>
>>
>>
>>
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
>> )
>>
>>
>>
>>
>>
>>
>org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
>n
>> nectio
>> 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.jav
>> a:410)
>>
>>
>>
>>
>>
>>
>org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.
>ja
>> va:582
>> )
>>
>>
>>
>> Thanks,
>>
>>  Ioan
>>
>>
>>
>> From: Ioan Kiss [mailto:ikiss@ezuce.com]
>> Sent: Thursday, November 17, 2011 11:16 AM
>> To: rave-dev@incubator.apache.org
>> 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
>> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
>> > Sent: Thursday, November 17, 2011 3:09 AM
>> > To: rave-dev@incubator.apache.org
>> > 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:ikiss@ezuce.com]
>> > > Sent: Wednesday, November 16, 2011 11:59 PM
>> > > To: rave-dev@incubator.apache.org
>> > > 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:raminderjsingh@gmail.com]
>> > > Sent: Wednesday, November 16, 2011 11:55 PM
>> > > To: rave-dev@incubator.apache.org
>> > > 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:j.joachimsthal@onehippo.com]
>> > >> Sent: Wednesday, November 16, 2011 7:56 PM
>> > >> To: rave-dev@incubator.apache.org
>> > >> 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.
>> > >> <mf...@mitre.org>
>> > > wrote:
>> > >>
>> > >>>> -----Original Message-----
>> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
>> > >>>> To: rave-dev@incubator.apache.org
>> > >>>> 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
>> > >>>
>> > >>>
>> > >>
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>>


RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Hi Ioa

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig.


I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well
c:\Software\jetty-6.1.26\webapps>dir
Directory of c:\Software\jetty-6.1.26\webapps

11/17/2011  01:23 PM    <DIR>          .
11/17/2011  01:23 PM    <DIR>          ..
11/17/2011  01:23 PM    <DIR>          portal
11/10/2010  11:32 PM               697 README.TXT
11/17/2011  01:14 PM    <DIR>          root
               1 File(s)            697 bytes
               4 Dir(s)  58,304,794,624 bytes free





Let me know whether it works.


-Venkat






From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Venkat,
I am still getting the same error. What version of Jetty are you using?

  I created an root.xml file in the contexts folder
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>
</Configure>

Looks like it is not valid - as I receive an error while loading it (the root app is not found).
2011-11-17 22:41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root
2011-11-17 22:41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root}
java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root
                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)
                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)
                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
                at org.mortbay.jetty.Server.doStart(Server.java:224)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.mortbay.start.Main.invokeMain(Main.java:194)
                at org.mortbay.start.Main.start(Main.java:534)
                at org.mortbay.start.Main.start(Main.java:441)
                at org.mortbay.start.Main.main(Main.java:119)

I also replaced "/webapps/root" with "/webapps/root.war". In this case the xml was properly handled, but I still get the error in Rave.

Ioan

From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat


Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" [Description: Image removed by sender.] 200 31093<tel:200%2031093>
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" [Description: Image removed by sender.] 200 13088<tel:200%2013088>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" [Description: Image removed by sender.] 200 13303<tel:200%2013303>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" [Description: Image removed by sender.] 200 19159<tel:200%2019159>
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" [Description: Image removed by sender.] 200 21611<tel:200%2021611>
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" [Description: Image removed by sender.] 500 11982<tel:500%2011982>

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com>> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> 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
> <j....@onehippo.com>> 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> [Description: Image removed by sender.] +1 877 414 4776<tel:+1%20877%20414%204776>
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com<http://www.onehippo.com>
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com>> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >> 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> [Description: Image removed by sender.] +1 877 414 4776<tel:+1%20877%20414%204776>
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com<http://www.onehippo.com>
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
Well, it is good that you found the solution/issue.

Thanks again,

  Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:51 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Maybe that is one of the features in 7.5.x J

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 4:33 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Good catch. Yes, it is working.

In Jetty 7.5.x test.xml is there, but it is still working.

 

Thanks,

  Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:27 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

I think I know what the problem is….

 

Do you still have the test.xml in the contexts folder? If so this is the culprit. The text.xml file already defines it as the root context so we cant have 2 apps under the root context.

 

test.xml

<Set name="contextPath">/</Set>

 

 

So try removing test.xml file from the context folder. You can add back the root.war to webapps.

 

Let me know..

 

-Venkat

 

 

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 4:15 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Thanks for updates. Yes, it is working on my side too if I exploded the war files. This might be an issue with Jetty 6 version as it is working fine from war files in Jetty 7.5.x.

Thanks again,

Ioan

 

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:07 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Sorry its test.xml (not text.xml)

 

 

 

From: Mahadevan, Venkat 
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Ioa

 

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig. 

 

 

I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well

c:\Software\jetty-6.1.26\webapps>dir

Directory of c:\Software\jetty-6.1.26\webapps

 

11/17/2011  01:23 PM    <DIR>          .

11/17/2011  01:23 PM    <DIR>          ..

11/17/2011  01:23 PM    <DIR>          portal

11/10/2010  11:32 PM               697 README.TXT

11/17/2011  01:14 PM    <DIR>          root

               1 File(s)            697 bytes

               4 Dir(s)  58,304,794,624 bytes free

 

 

 

 

 

Let me know whether it works.

 

 

-Venkat

 

 

 

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Venkat,

I am still getting the same error. What version of Jetty are you using?

 

  I created an root.xml file in the contexts folder

<?xml version="1.0"  encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<Set name="contextPath">/</Set>

<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>

</Configure>

 

Looks like it is not valid – as I receive an error while loading it (the root app is not found).

Description: Image removed by sender.2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root

Description: Image removed by sender.2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root} <mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d> 

java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root

                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)

                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)

                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)

                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.Server.doStart(Server.java:224)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.mortbay.start.Main.invokeMain(Main.java:194)

                at org.mortbay.start.Main.start(Main.java:534)

                at org.mortbay.start.Main.start(Main.java:441)

                at org.mortbay.start.Main.main(Main.java:119)

 

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the xml was properly handled, but I still get the error in Rave.

 

Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" Description: Description: Image removed by sender.200 31093 <tel:200%2031093> 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2013088> Description: Image removed by sender.200 13088 <tel:200%2013088> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" Description: Description: Image removed by sender.200 13303 <tel:200%2013303> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2019159> Description: Image removed by sender.200 19159 <tel:200%2019159> 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2021611> Description: Image removed by sender.200 21611 <tel:200%2021611> 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" Description: Description: Image removed by sender.500 11982 <tel:500%2011982> 

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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
> <j....@onehippo.com> 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> Description: Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> Description: Image removed by sender.877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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> Description: Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> Description: Image removed by sender.877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Maybe that is one of the features in 7.5.x ☺



From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 4:33 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Good catch. Yes, it is working.
In Jetty 7.5.x test.xml is there, but it is still working.

Thanks,
  Ioan

From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 11:27 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

I think I know what the problem is….

Do you still have the test.xml in the contexts folder? If so this is the culprit. The text.xml file already defines it as the root context so we cant have 2 apps under the root context.

test.xml
<Set name="contextPath">/</Set>


So try removing test.xml file from the context folder. You can add back the root.war to webapps.

Let me know..

-Venkat





From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 4:15 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Thanks for updates. Yes, it is working on my side too if I exploded the war files. This might be an issue with Jetty 6 version as it is working fine from war files in Jetty 7.5.x.
Thanks again,
Ioan


From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 11:07 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Sorry its test.xml (not text.xml)



From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig.


I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well
c:\Software\jetty-6.1.26\webapps>dir
Directory of c:\Software\jetty-6.1.26\webapps

11/17/2011  01:23 PM    <DIR>          .
11/17/2011  01:23 PM    <DIR>          ..
11/17/2011  01:23 PM    <DIR>          portal
11/10/2010  11:32 PM               697 README.TXT
11/17/2011  01:14 PM    <DIR>          root
               1 File(s)            697 bytes
               4 Dir(s)  58,304,794,624 bytes free





Let me know whether it works.


-Venkat






From: Ioa Kiss [mailto:ikiss@ezuce.com]<mailto:[mailto:ikiss@ezuce.com]>
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Venkat,
I am still getting the same error. What version of Jetty are you using?

  I created an root.xml file in the contexts folder
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>
</Configure>

Looks like it is not valid – as I receive an error while loading it (the root app is not found).
[Description: Image removed by sender.]2011-11-17 22<tel:2011-11-17%2022>:41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root
[Description: Image removed by sender.]2011-11-17 22<tel:2011-11-17%2022>:41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root}<mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d>
java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root
                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)
                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)
                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
                at org.mortbay.jetty.Server.doStart(Server.java:224)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.mortbay.start.Main.invokeMain(Main.java:194)
                at org.mortbay.start.Main.start(Main.java:534)
                at org.mortbay.start.Main.start(Main.java:441)
                at org.mortbay.start.Main.main(Main.java:119)

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the xml was properly handled, but I still get the error in Rave.

Ioan

From: Mahadevan, Venkat [mailto:venkatm@mitre.org]<mailto:[mailto:venkatm@mitre.org]>
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat


Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" [Description: Description: Image removed by sender.] 200 31093<tel:200%2031093>
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2013088> 200 13088<tel:200%2013088>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" [Description: Description: Image removed by sender.] 200 13303<tel:200%2013303>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2019159> 200 19159<tel:200%2019159>
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2021611> 200 21611<tel:200%2021611>
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" [Description: Description: Image removed by sender.] 500 11982<tel:500%2011982>

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com>> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> 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
> <j....@onehippo.com>> 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> [Description: Description: Image removed by sender.] +1 [Description: Image removed by sender.] <tel:+1%20877%20414%204776> 877 414 4776<tel:877%20414%204776>
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com<http://www.onehippo.com>
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com>> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >> 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> [Description: Description: Image removed by sender.] +1 [Description: Image removed by sender.] <tel:+1%20877%20414%204776> 877 414 4776<tel:877%20414%204776>
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com<http://www.onehippo.com>
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
Good catch. Yes, it is working.

In Jetty 7.5.x test.xml is there, but it is still working.

 

Thanks,

  Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:27 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

I think I know what the problem is….

 

Do you still have the test.xml in the contexts folder? If so this is the culprit. The text.xml file already defines it as the root context so we cant have 2 apps under the root context.

 

test.xml

<Set name="contextPath">/</Set>

 

 

So try removing test.xml file from the context folder. You can add back the root.war to webapps.

 

Let me know..

 

-Venkat

 

 

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 4:15 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Thanks for updates. Yes, it is working on my side too if I exploded the war files. This might be an issue with Jetty 6 version as it is working fine from war files in Jetty 7.5.x.

Thanks again,

Ioan

 

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:07 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Sorry its test.xml (not text.xml)

 

 

 

From: Mahadevan, Venkat 
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Ioa

 

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig. 

 

 

I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well

c:\Software\jetty-6.1.26\webapps>dir

Directory of c:\Software\jetty-6.1.26\webapps

 

11/17/2011  01:23 PM    <DIR>          .

11/17/2011  01:23 PM    <DIR>          ..

11/17/2011  01:23 PM    <DIR>          portal

11/10/2010  11:32 PM               697 README.TXT

11/17/2011  01:14 PM    <DIR>          root

               1 File(s)            697 bytes

               4 Dir(s)  58,304,794,624 bytes free

 

 

 

 

 

Let me know whether it works.

 

 

-Venkat

 

 

 

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Venkat,

I am still getting the same error. What version of Jetty are you using?

 

  I created an root.xml file in the contexts folder

<?xml version="1.0"  encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<Set name="contextPath">/</Set>

<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>

</Configure>

 

Looks like it is not valid – as I receive an error while loading it (the root app is not found).

Description: Image removed by sender.2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root

Description: Image removed by sender.2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root} <mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d> 

java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root

                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)

                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)

                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)

                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.Server.doStart(Server.java:224)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.mortbay.start.Main.invokeMain(Main.java:194)

                at org.mortbay.start.Main.start(Main.java:534)

                at org.mortbay.start.Main.start(Main.java:441)

                at org.mortbay.start.Main.main(Main.java:119)

 

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the xml was properly handled, but I still get the error in Rave.

 

Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" Description: Description: Image removed by sender.200 31093 <tel:200%2031093> 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2013088> Description: Image removed by sender.200 13088 <tel:200%2013088> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" Description: Description: Image removed by sender.200 13303 <tel:200%2013303> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2019159> Description: Image removed by sender.200 19159 <tel:200%2019159> 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" Description: Description: Image removed by sender. <tel:200%2021611> Description: Image removed by sender.200 21611 <tel:200%2021611> 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" Description: Description: Image removed by sender.500 11982 <tel:500%2011982> 

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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
> <j....@onehippo.com> 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> Description: Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> Description: Image removed by sender.877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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> Description: Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> Description: Image removed by sender.877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
I think I know what the problem is….

Do you still have the test.xml in the contexts folder? If so this is the culprit. The text.xml file already defines it as the root context so we cant have 2 apps under the root context.

test.xml
<Set name="contextPath">/</Set>


So try removing test.xml file from the context folder. You can add back the root.war to webapps.

Let me know..

-Venkat





From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 4:15 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Thanks for updates. Yes, it is working on my side too if I exploded the war files. This might be an issue with Jetty 6 version as it is working fine from war files in Jetty 7.5.x.
Thanks again,
Ioan


From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 11:07 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Sorry its test.xml (not text.xml)



From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig.


I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well
c:\Software\jetty-6.1.26\webapps>dir
Directory of c:\Software\jetty-6.1.26\webapps

11/17/2011  01:23 PM    <DIR>          .
11/17/2011  01:23 PM    <DIR>          ..
11/17/2011  01:23 PM    <DIR>          portal
11/10/2010  11:32 PM               697 README.TXT
11/17/2011  01:14 PM    <DIR>          root
               1 File(s)            697 bytes
               4 Dir(s)  58,304,794,624 bytes free





Let me know whether it works.


-Venkat






From: Ioa Kiss [mailto:ikiss@ezuce.com]<mailto:[mailto:ikiss@ezuce.com]>
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Venkat,
I am still getting the same error. What version of Jetty are you using?

  I created an root.xml file in the contexts folder
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>
</Configure>

Looks like it is not valid – as I receive an error while loading it (the root app is not found).
[Description: Image removed by sender.]2011-11-17 22<tel:2011-11-17%2022>:41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root
[Description: Image removed by sender.]2011-11-17 22<tel:2011-11-17%2022>:41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root}<mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d>
java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root
                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)
                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)
                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
                at org.mortbay.jetty.Server.doStart(Server.java:224)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.mortbay.start.Main.invokeMain(Main.java:194)
                at org.mortbay.start.Main.start(Main.java:534)
                at org.mortbay.start.Main.start(Main.java:441)
                at org.mortbay.start.Main.main(Main.java:119)

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the xml was properly handled, but I still get the error in Rave.

Ioan

From: Mahadevan, Venkat [mailto:venkatm@mitre.org]<mailto:[mailto:venkatm@mitre.org]>
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat


Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" [Description: Description: Image removed by sender.] 200 31093<tel:200%2031093>
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2013088> 200 13088<tel:200%2013088>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" [Description: Description: Image removed by sender.] 200 13303<tel:200%2013303>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2019159> 200 19159<tel:200%2019159>
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" [Description: Description: Image removed by sender.] [Description: Image removed by sender.] <tel:200%2021611> 200 21611<tel:200%2021611>
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" [Description: Description: Image removed by sender.] 500 11982<tel:500%2011982>

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com>> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> 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
> <j....@onehippo.com>> 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> [Description: Description: Image removed by sender.] +1 [Description: Image removed by sender.] <tel:+1%20877%20414%204776> 877 414 4776<tel:877%20414%204776>
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com<http://www.onehippo.com>
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com>> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >> 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> [Description: Description: Image removed by sender.] +1 [Description: Image removed by sender.] <tel:+1%20877%20414%204776> 877 414 4776<tel:877%20414%204776>
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com<http://www.onehippo.com>
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
Thanks for updates. Yes, it is working on my side too if I exploded the war files. This might be an issue with Jetty 6 version as it is working fine from war files in Jetty 7.5.x.

Thanks again,

Ioan

 

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 11:07 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Sorry its test.xml (not text.xml)

 

 

 

From: Mahadevan, Venkat 
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Ioa

 

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig. 

 

 

I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well

c:\Software\jetty-6.1.26\webapps>dir

Directory of c:\Software\jetty-6.1.26\webapps

 

11/17/2011  01:23 PM    <DIR>          .

11/17/2011  01:23 PM    <DIR>          ..

11/17/2011  01:23 PM    <DIR>          portal

11/10/2010  11:32 PM               697 README.TXT

11/17/2011  01:14 PM    <DIR>          root

               1 File(s)            697 bytes

               4 Dir(s)  58,304,794,624 bytes free

 

 

 

 

 

Let me know whether it works.

 

 

-Venkat

 

 

 

 

 

 

From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Hi Venkat,

I am still getting the same error. What version of Jetty are you using?

 

  I created an root.xml file in the contexts folder

<?xml version="1.0"  encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<Set name="contextPath">/</Set>

<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>

</Configure>

 

Looks like it is not valid – as I receive an error while loading it (the root app is not found).

  <file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.png> 2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root

  <file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.png> 2011-11-17 22 <tel:2011-11-17%2022> :41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root} <mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d> 

java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root

                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)

                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)

                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)

                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.Server.doStart(Server.java:224)

                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.mortbay.start.Main.invokeMain(Main.java:194)

                at org.mortbay.start.Main.start(Main.java:534)

                at org.mortbay.start.Main.start(Main.java:441)

                at org.mortbay.start.Main.main(Main.java:119)

 

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the xml was properly handled, but I still get the error in Rave.

 

Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" Description: Image removed by sender.200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" Description: Image removed by sender.200 31093 <tel:200%2031093> 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" Description: Image removed by sender. <tel:200%2013088> 200 13088 <tel:200%2013088> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" Description: Image removed by sender.200 13303 <tel:200%2013303> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" Description: Image removed by sender. <tel:200%2019159> 200 19159 <tel:200%2019159> 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" Description: Image removed by sender. <tel:200%2021611> 200 21611 <tel:200%2021611> 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" Description: Image removed by sender.500 11982 <tel:500%2011982> 

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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
> <j....@onehippo.com> 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> Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> 877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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> Description: Image removed by sender.+1  <tel:+1%20877%20414%204776> 877 414 4776 <tel:877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Sorry its test.xml (not text.xml)



From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 4:03 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I am using jetty-6.1.26.  Attaching root.xml. I basically copied the text.xml and replaced it for shindig.


I did one more thing, I exploded the shindig.war under root folder under webapps. Which you can try it out as well
c:\Software\jetty-6.1.26\webapps>dir
Directory of c:\Software\jetty-6.1.26\webapps

11/17/2011  01:23 PM    <DIR>          .
11/17/2011  01:23 PM    <DIR>          ..
11/17/2011  01:23 PM    <DIR>          portal
11/10/2010  11:32 PM               697 README.TXT
11/17/2011  01:14 PM    <DIR>          root
               1 File(s)            697 bytes
               4 Dir(s)  58,304,794,624 bytes free





Let me know whether it works.


-Venkat






From: Ioa Kiss [mailto:ikiss@ezuce.com]<mailto:[mailto:ikiss@ezuce.com]>
Sent: Thursday, November 17, 2011 3:42 PM
To: Mahadevan, Venkat; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Venkat,
I am still getting the same error. What version of Jetty are you using?

  I created an root.xml file in the contexts folder
<?xml version="1.0"  encoding="ISO-8859-1"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>
</Configure>

Looks like it is not valid - as I receive an error while loading it (the root app is not found).
2011-11-17 22:41:14.540:WARN::Web application not found E:\Programs\jetty-6.1.26RC0/webapps/root
2011-11-17 22:41:14.540:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0/webapps/root}<mailto:org.mortbay.jetty.webapp.WebAppContext@1d4c61c%7b/,E:\Programs\jetty-6.1.26RC0/webapps/root%7d>
java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root
                at org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)
                at org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)
                at org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62)
                at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
                at org.mortbay.jetty.Server.doStart(Server.java:224)
                at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
                at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                at org.mortbay.start.Main.invokeMain(Main.java:194)
                at org.mortbay.start.Main.start(Main.java:534)
                at org.mortbay.start.Main.start(Main.java:441)
                at org.mortbay.start.Main.main(Main.java:119)

I also replaced "/webapps/root" with "/webapps/root.war". In this case the xml was properly handled, but I still get the error in Rave.

Ioan

From: Mahadevan, Venkat [mailto:venkatm@mitre.org]<mailto:[mailto:venkatm@mitre.org]>
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat


Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" [Description: Image removed by sender.] 200 14546<tel:200%2014546>
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" [Description: Image removed by sender.] 200 31093<tel:200%2031093>
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" [Description: Image removed by sender.] 200 13088<tel:200%2013088>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" [Description: Image removed by sender.] 200 13303<tel:200%2013303>
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" [Description: Image removed by sender.] 200 19159<tel:200%2019159>
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" [Description: Image removed by sender.] 200 21611<tel:200%2021611>
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" [Description: Image removed by sender.] 500 11982<tel:500%2011982>

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com>> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> 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
> <j....@onehippo.com>> 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> [Description: Image removed by sender.] +1 877 414 4776<tel:+1%20877%20414%204776>
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com<http://www.onehippo.com>
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com>> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >> 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> [Description: Image removed by sender.] +1 877 414 4776<tel:+1%20877%20414%204776>
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com<http://www.onehippo.com>
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org<ma...@incubator.apache.org>
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
Hi Venkat,

I am still getting the same error. What version of Jetty are you using?

 

  I created an root.xml file in the contexts folder

<?xml version="1.0"  encoding="ISO-8859-1"?>

<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN"
"http://jetty.mortbay.org/configure.dtd">

<Configure class="org.mortbay.jetty.webapp.WebAppContext">

<Set name="contextPath">/</Set>

<Set name="war"><SystemProperty name="jetty.home"
default="."/>/webapps/root</Set>

</Configure>

 

Looks like it is not valid – as I receive an error while loading it (the
root app is not found).

2011-11-17 22:41:14.540:WARN::Web application not found
E:\Programs\jetty-6.1.26RC0/webapps/root

2011-11-17 22:41:14.540:WARN::Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@1d4c61c{/,E:\Programs\jetty-6.1.26RC0
/webapps/root}

java.io.FileNotFoundException: E:\Programs\jetty-6.1.26RC0/webapps/root

                at
org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:997)

                at
org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832)

                at
org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConf
iguration.java:62)

                at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489)

                at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)

                at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCol
lection.java:156)

                at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:1
52)

                at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)

                at org.mortbay.jetty.Server.doStart(Server.java:224)

                at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

                at
org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

                at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)

                at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.mortbay.start.Main.invokeMain(Main.java:194)

                at org.mortbay.start.Main.start(Main.java:534)

                at org.mortbay.start.Main.start(Main.java:441)

                at org.mortbay.start.Main.main(Main.java:119)

 

I also replaced “/webapps/root” with “/webapps/root.war”. In this case the
xml was properly handled, but I still get the error in Rave.

 

Ioan

 

From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 9:08 PM
To: Ioa Kiss; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

 

Looks like Jetty needs a root.xml in the contexts folder even though the war
file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context
defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home"
default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org]
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com]
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 14546 <tel:200%2014546> 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 31093 <tel:200%2031093> 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 13088 <tel:200%2013088> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 13303 <tel:200%2013303> 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 19159 <tel:200%2019159> 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 200 21611 <tel:200%2021611> 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1"
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> 500 11982 <tel:500%2011982> 

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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
> <j....@onehippo.com> 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>
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> +1 877 414 4776 <tel:+1%20877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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>
<file:///d:\eZuce\toolbar\openUCToolbarInstaller\Files\StatusImages\phone.pn
g> +1 877 414 4776 <tel:+1%20877%20414%204776> 
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>




RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Looks like Jetty needs a root.xml in the contexts folder even though the war file is named as root.war under webapps.



-----Original Message-----
From: Mahadevan, Venkat 
Sent: Thursday, November 17, 2011 2:05 PM
To: 'Ioa Kiss'; rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" 200 31093 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" 200 13088 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" 200 13303 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" 200 19159 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462 
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333 
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972 
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936 
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" 500 11982

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com] 
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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 
> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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. 
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>



RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
Hi Ioa

I was able to resolve this.

Add a root.xml to the contexts folder which will have a simple context defined for shindig which will have this entry....


  <Set name="contextPath">/</Set>
  <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/root</Set>


Venkat


-----Original Message-----
From: Mahadevan, Venkat [mailto:venkatm@mitre.org] 
Sent: Thursday, November 17, 2011 1:33 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Is it possible that Shindig was not deployed correctly?


-----Original Message-----
From: Ioa Kiss [mailto:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 12:57 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" 200 31093 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" 200 13088 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" 200 13303 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" 200 19159 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462 
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333 
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972 
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936 
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" 500 11982

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com] 
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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 
> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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. 
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>



RE: Rave using Jetty, instead of Tomcat

Posted by "Mahadevan, Venkat" <ve...@mitre.org>.
I am also having the  same problem. Looks like Shindig was not loaded properly....

25236  ravePersistenceUnit  TRACE  [529236451@qtp-868206906-7] openjpa.jdbc.SQL - <t 529236451, conn 1712365503> [0 ms] spent
25295  ravePersistenceUnit  WARN   [529236451@qtp-868206906-7] openjpa.Runtime - Query "SELECT pp FROM PortalPreference pp" is removed from cache  excluded permanently. Q
uery "SELECT pp FROM PortalPreference pp" is not cached because it generates multiple SQL statements. A query can be cached only when it corresponds to a single SQL state
ment.  .
WARN : org.springframework.web.client.RestTemplate - POST request for "http://localhost:8080/rpc" resulted in 503 (Service Unavailable); invoking error handler


-Venkat


-----Original Message-----
From: Ciancetta, Jesse E. [mailto:jcian@mitre.org] 
Sent: Thursday, November 17, 2011 1:12 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

If /rpc is returning 404's then it sounds like Shindig didn't initialize properly.

This looks like a snippet from a request log -- do you have any kind of server logs that contains output from the Java console?

>-----Original Message-----
>From: Ioa Kiss [mailto:ikiss@ezuce.com]
>Sent: Thursday, November 17, 2011 12:57 PM
>To: rave-dev@incubator.apache.org
>Subject: RE: Rave using Jetty, instead of Tomcat
>
>Hi Jasha,
>  This is what I have in Jetty/logs
>127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
>0
>127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
>HTTP/1.1" 200 14546
>127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656
>127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
>HTTP/1.1" 200 14546
>127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
>717
>127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657
>127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609
>127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
>HTTP/1.1" 304 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611
>127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
>12986
>127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
>/portal/login.jsp?authfail=form HTTP/1.1" 200 2670
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
>HTTP/1.1" 200 2940
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
>/portal/script/rave_forms.js HTTP/1.1" 200 2603
>127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
>HTTP/1.1" 200 31093
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
>HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
>HTTP/1.1" 200 2589
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
>/portal/j_spring_security_check HTTP/1.1" 302 0
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
>5802
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404
>3572
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_opensocial.js HTTP/1.1" 200 13088
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_wookie.js HTTP/1.1" 200 1887
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
>HTTP/1.1" 200 13303
>127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
>/portal/script/rave_layout.js HTTP/1.1" 200 19159
>127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
>/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611
>127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
>/portal/script/rave_store.js HTTP/1.1" 200 3462
>127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333
>127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972
>127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
>/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936
>127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611
>127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
>HTTP/1.1" 500 11982
>
>It appears the /rpc is not available.
>
>Ioan.
>
>-----Original Message-----
>From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com]
>Sent: Thursday, November 17, 2011 7:50 PM
>To: rave-dev@incubator.apache.org
>Subject: RE: Rave using Jetty, instead of Tomcat
>
>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" <ik...@ezuce.com> 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.handle
>> Error(
>> DefaultResponseErrorHandler.java:75)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.handleResponseError(RestTe
>> mplate
>> .java:486)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
>> a:443)
>>
>>
>>
>>
>> org.springframework.web.client.RestTemplate.execute(RestTemplate.java:
>> 401)
>>
>>
>>
>>
>>
>>
>org.springframework.web.client.RestTemplate.postForObject(RestTemplate.j
>ava:
>> 279)
>>
>>
>>
>>
>>
>> org.apache.rave.provider.opensocial.repository.impl.ShindigGadgetMetad
>> ataRep
>> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>>
>>
>>
>>
>>
>> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
>> ice.ge
>> tGadgetMetadata(DefaultOpenSocialService.java:39)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.ge
>> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.re
>> nder(OpenSocialWidgetRenderer.java:94)
>>
>>
>>
>>
>>
>>
>org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
>> rer.re
>> nder(OpenSocialWidgetRenderer.java:45)
>>
>>
>>
>>
>>
>> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
>> efault
>> RenderService.java:68)
>>
>>
>>
>>
>>
>> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
>> Tag.ja
>> va:54)
>>
>>
>>
>>
>>
>>
>org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1
>wi
>> dget_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.a
>p
>> ache.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_gene
>ric
>> _page_
>> 0(org.apache.jsp.WEB_002dINF.views.home_jsp:174)
>>
>>
>>
>>
>>
>>
>org.apache.jsp.WEB_002dINF.views.home_jsp._jspService(org.apache.jsp.W
>> EB_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:48
>> 6)
>>
>>
>>
>>
>> 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:40
>> 1)
>>
>>
>>
>>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
>> :216)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
>> 2)
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
>> 5)
>>
>>
>>
>>
>>
>org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:45
>0)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.view.InternalResourceView.renderMerged
>> Output
>> Model(InternalResourceView.java:238)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
>> java:2
>> 50)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
>> vlet.j
>> ava:1047)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
>> rServl
>> et.java:817)
>>
>>
>>
>>
>>
>> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
>> Servle
>> t.java:719)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.FrameworkServlet.processRequest(Frame
>w
>> orkSer
>> vlet.java:644)
>>
>>
>>
>>
>>
>>
>org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServl
>e
>> t.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(ServletH
>> andler
>> .java:1221)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> 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.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.access.ExceptionTranslationFilter.doF
>> ilter(
>> ExceptionTranslationFilter.java:97)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.session.SessionManagementFilter.doFil
>> ter(Se
>> ssionManagementFilter.java:100)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.authentication.AnonymousAuthenticatio
>> nFilte
>> r.doFilter(AnonymousAuthenticationFilter.java:78)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.authentication.rememberme.Remember
>MeA
>> uthent
>> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.servletapi.SecurityContextHolderAware
>> Reques
>> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
>> doFilt
>> er(RequestCacheAwareFilter.java:35)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.www.BasicAuthenticatio
>> nFilte
>> r.doFilter(BasicAuthenticationFilter.java:177)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.AbstractAuthentication
>> Proces
>> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.AbstractAuthentication
>> Proces
>> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.authentication.logout.LogoutFilter.do
>> Filter
>> (LogoutFilter.java:105)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>> org.springframework.security.web.context.SecurityContextPersistenceFil
>> ter.do
>> Filter(SecurityContextPersistenceFilter.java:79)
>>
>>
>>
>>
>>
>> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
>> oFilte
>> r(FilterChainProxy.java:380)
>>
>>
>>
>>
>>
>>
>org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
>> java:169)
>>
>>
>>
>>
>>
>> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
>> legati
>> ngFilterProxy.java:237)
>>
>>
>>
>>
>>
>> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
>> ngFilt
>> erProxy.java:167)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
>> andler
>> .java:1212)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
>> 9)
>>
>>
>>
>>
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
>> :216)
>>
>>
>>
>>
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
>> 2)
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
>> 5)
>>
>>
>>
>>
>>
>org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:45
>0)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
>> erColl
>> ection.java:230)
>>
>>
>>
>>
>>
>> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
>> ava:11
>> 4)
>>
>>
>>
>>
>>
>org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
>> 2)
>>
>>
>>
>>                org.mortbay.jetty.Server.handle(Server.java:326)
>>
>>
>>
>>
>> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
>> )
>>
>>
>>
>>
>>
>>
>org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCo
>n
>> nectio
>> 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.jav
>> a:410)
>>
>>
>>
>>
>>
>>
>org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.
>ja
>> va:582
>> )
>>
>>
>>
>> Thanks,
>>
>>  Ioan
>>
>>
>>
>> From: Ioan Kiss [mailto:ikiss@ezuce.com]
>> Sent: Thursday, November 17, 2011 11:16 AM
>> To: rave-dev@incubator.apache.org
>> 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
>> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
>> > Sent: Thursday, November 17, 2011 3:09 AM
>> > To: rave-dev@incubator.apache.org
>> > 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:ikiss@ezuce.com]
>> > > Sent: Wednesday, November 16, 2011 11:59 PM
>> > > To: rave-dev@incubator.apache.org
>> > > 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:raminderjsingh@gmail.com]
>> > > Sent: Wednesday, November 16, 2011 11:55 PM
>> > > To: rave-dev@incubator.apache.org
>> > > 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:j.joachimsthal@onehippo.com]
>> > >> Sent: Wednesday, November 16, 2011 7:56 PM
>> > >> To: rave-dev@incubator.apache.org
>> > >> 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.
>> > >> <mf...@mitre.org>
>> > > wrote:
>> > >>
>> > >>>> -----Original Message-----
>> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
>> > >>>> To: rave-dev@incubator.apache.org
>> > >>>> 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
>> > >>>
>> > >>>
>> > >>
>> > >
>> > >
>> > >
>> >
>> >
>> >
>>
>>
>>
>>



RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
Hi Jasha,
  This is what I have in Jetty/logs
127.0.0.1 -  -  [17/Nov/2011:17:07:51 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:07:57 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /favicon.ico HTTP/1.1" 304
0 
127.0.0.1 -  -  [17/Nov/2011:17:07:58 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:08:05 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:04 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:08:38 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "POST /rpc HTTP/1.1" 404 4656 
127.0.0.1 -  -  [17/Nov/2011:17:08:41 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:10:05 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:06 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:10:07 +0000] "GET /portal/css/default.css
HTTP/1.1" 200 14546 
127.0.0.1 -  -  [17/Nov/2011:17:10:09 +0000] "GET /favicon.ico HTTP/1.1" 200
717 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:10:20 +0000] "POST /rpc HTTP/1.1" 404 4657 
127.0.0.1 -  -  [17/Nov/2011:17:10:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:11:55 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:11:59 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:09 +0000] "POST /rpc HTTP/1.1" 404 4609 
127.0.0.1 -  -  [17/Nov/2011:17:12:08 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:19 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "POST /rpc HTTP/1.1" 404 4610 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:12:23 +0000] "GET /portal/css/default.css
HTTP/1.1" 304 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:07 +0000] "GET /portal/ HTTP/1.1" 500
12986 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:20 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:22 +0000] "GET
/portal/login.jsp?authfail=form HTTP/1.1" 200 2670 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/app/newaccount.jsp
HTTP/1.1" 200 2940 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET
/portal/script/rave_forms.js HTTP/1.1" 200 2603 
127.0.0.1 -  -  [17/Nov/2011:17:22:25 +0000] "GET /portal/script/rave.js
HTTP/1.1" 200 31093 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "POST /portal/app/newaccount
HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/ HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:35 +0000] "GET /portal/login.jsp
HTTP/1.1" 200 2589 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "POST
/portal/j_spring_security_check HTTP/1.1" 302 0 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/ HTTP/1.1" 200
5802 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/gadgets/js/container.js?c=1&container=default&debug=1 HTTP/1.1" 404 3572 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_opensocial.js HTTP/1.1" 200 13088 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_wookie.js HTTP/1.1" 200 1887 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET /portal/script/rave_api.js
HTTP/1.1" 200 13303 
127.0.0.1 -  -  [17/Nov/2011:17:22:40 +0000] "GET
/portal/script/rave_layout.js HTTP/1.1" 200 19159 
127.0.0.1 -  -  [17/Nov/2011:17:22:46 +0000] "GET
/portal/app/store?referringPageId=15 HTTP/1.1" 200 21611 
127.0.0.1 -  -  [17/Nov/2011:17:22:47 +0000] "GET
/portal/script/rave_store.js HTTP/1.1" 200 3462 
127.0.0.1 -  -  [17/Nov/2011:17:22:50 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 1333 
127.0.0.1 -  -  [17/Nov/2011:17:22:53 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 972 
127.0.0.1 -  -  [17/Nov/2011:17:22:55 +0000] "POST
/portal/app/api/rpc/page/15/widget/add HTTP/1.1" 200 936 
127.0.0.1 -  -  [17/Nov/2011:17:22:59 +0000] "POST /rpc HTTP/1.1" 404 4611 
127.0.0.1 -  -  [17/Nov/2011:17:22:58 +0000] "GET /portal/app/page/view/15
HTTP/1.1" 500 11982

It appears the /rpc is not available.

Ioan.

-----Original Message-----
From: Jasha Joachimsthal [mailto:j.joachimsthal@onehippo.com] 
Sent: Thursday, November 17, 2011 7:50 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

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" <ik...@ezuce.com> 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.handle
> Error(
> DefaultResponseErrorHandler.java:75)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.handleResponseError(RestTe
> mplate
> .java:486)
>
>
>
>
>
> org.springframework.web.client.RestTemplate.doExecute(RestTemplate.jav
> a: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.ShindigGadgetMetad
> ataRep
> ository.getGadgetMetadata(ShindigGadgetMetadataRepository.java:95)
>
>
>
>
>
> org.apache.rave.provider.opensocial.service.impl.DefaultOpenSocialServ
> ice.ge
> tGadgetMetadata(DefaultOpenSocialService.java:39)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.ge
> tWidgetScript(OpenSocialWidgetRenderer.java:113)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:94)
>
>
>
>
>
> org.apache.rave.provider.opensocial.web.renderer.OpenSocialWidgetRende
> rer.re
> nder(OpenSocialWidgetRenderer.java:45)
>
>
>
>
>
> org.apache.rave.portal.web.renderer.impl.DefaultRenderService.render(D
> efault
> RenderService.java:68)
>
>
>
>
>
> org.apache.rave.portal.web.tag.RegionWidgetTag.doStartTag(RegionWidget
> Tag.ja
> va:54)
>
>
>
>
>
> org.apache.jsp.WEB_002dINF.views.home_jsp._jspx_meth_portal_render$1wi
> dget_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.ap
> ache.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.W
> EB_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:48
> 6)
>
>
>
>
> 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:40
> 1)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> 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.renderMerged
> Output
> Model(InternalResourceView.java:238)
>
>
>
>
>
> org.springframework.web.servlet.view.AbstractView.render(AbstractView.
> java:2
> 50)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.render(DispatcherSer
> vlet.j
> ava:1047)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServl
> et.java:817)
>
>
>
>
>
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servle
> t.java:719)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkSer
> vlet.java:644)
>
>
>
>
>
> org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServle
> t.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(ServletH
> andler
> .java:1221)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> 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.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(
> ExceptionTranslationFilter.java:97)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.session.SessionManagementFilter.doFil
> ter(Se
> ssionManagementFilter.java:100)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AnonymousAuthenticatio
> nFilte
> r.doFilter(AnonymousAuthenticationFilter.java:78)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthent
> icationFilter.doFilter(RememberMeAuthenticationFilter.java:119)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.servletapi.SecurityContextHolderAware
> Reques
> tFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.savedrequest.RequestCacheAwareFilter.
> doFilt
> er(RequestCacheAwareFilter.java:35)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.www.BasicAuthenticatio
> nFilte
> r.doFilter(BasicAuthenticationFilter.java:177)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.AbstractAuthentication
> Proces
> singFilter.doFilter(AbstractAuthenticationProcessingFilter.java:187)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.authentication.logout.LogoutFilter.do
> Filter
> (LogoutFilter.java:105)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.do
> Filter(SecurityContextPersistenceFilter.java:79)
>
>
>
>
>
> org.springframework.security.web.FilterChainProxy$VirtualFilterChain.d
> oFilte
> r(FilterChainProxy.java:380)
>
>
>
>
>
>
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.
> java:169)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legati
> ngFilterProxy.java:237)
>
>
>
>
>
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilt
> erProxy.java:167)
>
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletH
> andler
> .java:1212)
>
>
>
>
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:39
> 9)
>
>
>
>
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java
> :216)
>
>
>
>
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:18
> 2)
>
>
>
>
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:76
> 5)
>
>
>
>
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
>
>
>
>
>
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandl
> erColl
> ection.java:230)
>
>
>
>
>
> org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.j
> ava:11
> 4)
>
>
>
>
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:15
> 2)
>
>
>
>                org.mortbay.jetty.Server.handle(Server.java:326)
>
>
>
>
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542
> )
>
>
>
>
>
> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpCon
> nectio
> 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.jav
> a:410)
>
>
>
>
>
> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.ja
> va:582
> )
>
>
>
> Thanks,
>
>  Ioan
>
>
>
> From: Ioan Kiss [mailto:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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 
> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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. 
> > >> <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>


RE: Rave using Jetty, instead of Tomcat

Posted by Jasha Joachimsthal <j....@onehippo.com>.
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" <ik...@ezuce.com> 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:ikiss@ezuce.com]
> Sent: Thursday, November 17, 2011 11:16 AM
> To: rave-dev@incubator.apache.org
> 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
> <j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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. <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
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:ikiss@ezuce.com] 
Sent: Thursday, November 17, 2011 11:16 AM
To: rave-dev@incubator.apache.org
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
<j....@onehippo.com> 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 <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> Sent: Thursday, November 17, 2011 3:09 AM
> To: rave-dev@incubator.apache.org
> 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:ikiss@ezuce.com]
> > Sent: Wednesday, November 16, 2011 11:59 PM
> > To: rave-dev@incubator.apache.org
> > 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:raminderjsingh@gmail.com]
> > Sent: Wednesday, November 16, 2011 11:55 PM
> > To: rave-dev@incubator.apache.org
> > 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:j.joachimsthal@onehippo.com]
> >> Sent: Wednesday, November 16, 2011 7:56 PM
> >> To: rave-dev@incubator.apache.org
> >> 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. <mf...@mitre.org>
> > wrote:
> >>
> >>>> -----Original Message-----
> >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> >>>> To: rave-dev@incubator.apache.org
> >>>> 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
> >>>
> >>>
> >>
> >
> >
> >
>
>
>

 


Re: Rave using Jetty, instead of Tomcat

Posted by Ioan Kiss <ik...@ezuce.com>.
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 <
j.joachimsthal@onehippo.com> 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
> US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll
> free)
>
> www.onehippo.com
>
>
> On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> > Sent: Thursday, November 17, 2011 3:09 AM
> > To: rave-dev@incubator.apache.org
> > 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:ikiss@ezuce.com]
> > > Sent: Wednesday, November 16, 2011 11:59 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:raminderjsingh@gmail.com]
> > > Sent: Wednesday, November 16, 2011 11:55 PM
> > > To: rave-dev@incubator.apache.org
> > > 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:j.joachimsthal@onehippo.com]
> > >> Sent: Wednesday, November 16, 2011 7:56 PM
> > >> To: rave-dev@incubator.apache.org
> > >> 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 - +1 877 414 4776 (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
> > > wrote:
> > >>
> > >>>> -----Original Message-----
> > >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> > >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> > >>>> To: rave-dev@incubator.apache.org
> > >>>> 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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>

Re: Rave using Jetty, instead of Tomcat

Posted by Jasha Joachimsthal <j....@onehippo.com>.
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
US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll free)

www.onehippo.com


On 17 November 2011 07:26, Ioa Kiss <ik...@ezuce.com> 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:raminderjsingh@gmail.com]
> Sent: Thursday, November 17, 2011 3:09 AM
> To: rave-dev@incubator.apache.org
> 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:ikiss@ezuce.com]
> > Sent: Wednesday, November 16, 2011 11:59 PM
> > To: rave-dev@incubator.apache.org
> > 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:raminderjsingh@gmail.com]
> > Sent: Wednesday, November 16, 2011 11:55 PM
> > To: rave-dev@incubator.apache.org
> > 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:j.joachimsthal@onehippo.com]
> >> Sent: Wednesday, November 16, 2011 7:56 PM
> >> To: rave-dev@incubator.apache.org
> >> 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 - +1 877 414 4776 (toll
> >> free)
> >>
> >> www.onehippo.com
> >>
> >>
> >> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
> > wrote:
> >>
> >>>> -----Original Message-----
> >>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
> >>>> Sent: Wednesday, November 16, 2011 11:55 AM
> >>>> To: rave-dev@incubator.apache.org
> >>>> 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
> >>>
> >>>
> >>
> >
> >
> >
>
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
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:raminderjsingh@gmail.com] 
Sent: Thursday, November 17, 2011 3:09 AM
To: rave-dev@incubator.apache.org
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:ikiss@ezuce.com]
> Sent: Wednesday, November 16, 2011 11:59 PM
> To: rave-dev@incubator.apache.org
> 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:raminderjsingh@gmail.com]
> Sent: Wednesday, November 16, 2011 11:55 PM
> To: rave-dev@incubator.apache.org
> 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:j.joachimsthal@onehippo.com]
>> Sent: Wednesday, November 16, 2011 7:56 PM
>> To: rave-dev@incubator.apache.org
>> 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 - +1 877 414 4776 (toll
>> free)
>> 
>> www.onehippo.com
>> 
>> 
>> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
> wrote:
>> 
>>>> -----Original Message-----
>>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>>>> Sent: Wednesday, November 16, 2011 11:55 AM
>>>> To: rave-dev@incubator.apache.org
>>>> 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
>>> 
>>> 
>> 
> 
> 
> 



Re: Rave using Jetty, instead of Tomcat

Posted by Raminderjeet Singh <ra...@gmail.com>.
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:ikiss@ezuce.com] 
> Sent: Wednesday, November 16, 2011 11:59 PM
> To: rave-dev@incubator.apache.org
> 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:raminderjsingh@gmail.com]
> Sent: Wednesday, November 16, 2011 11:55 PM
> To: rave-dev@incubator.apache.org
> 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:j.joachimsthal@onehippo.com]
>> Sent: Wednesday, November 16, 2011 7:56 PM
>> To: rave-dev@incubator.apache.org
>> 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 - +1 877 414 4776 (toll
>> free)
>> 
>> www.onehippo.com
>> 
>> 
>> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
> wrote:
>> 
>>>> -----Original Message-----
>>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>>>> Sent: Wednesday, November 16, 2011 11:55 AM
>>>> To: rave-dev@incubator.apache.org
>>>> 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
>>> 
>>> 
>> 
> 
> 
> 


RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
  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:ikiss@ezuce.com] 
Sent: Wednesday, November 16, 2011 11:59 PM
To: rave-dev@incubator.apache.org
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:raminderjsingh@gmail.com]
Sent: Wednesday, November 16, 2011 11:55 PM
To: rave-dev@incubator.apache.org
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:j.joachimsthal@onehippo.com]
> Sent: Wednesday, November 16, 2011 7:56 PM
> To: rave-dev@incubator.apache.org
> 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 - +1 877 414 4776 (toll
> free)
> 
> www.onehippo.com
> 
> 
> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
wrote:
> 
>>> -----Original Message-----
>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>>> Sent: Wednesday, November 16, 2011 11:55 AM
>>> To: rave-dev@incubator.apache.org
>>> 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
>> 
>> 
> 




RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
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:raminderjsingh@gmail.com] 
Sent: Wednesday, November 16, 2011 11:55 PM
To: rave-dev@incubator.apache.org
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:j.joachimsthal@onehippo.com]
> Sent: Wednesday, November 16, 2011 7:56 PM
> To: rave-dev@incubator.apache.org
> 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 - +1 877 414 4776 (toll 
> free)
> 
> www.onehippo.com
> 
> 
> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org>
wrote:
> 
>>> -----Original Message-----
>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>>> Sent: Wednesday, November 16, 2011 11:55 AM
>>> To: rave-dev@incubator.apache.org
>>> 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
>> 
>> 
> 



Re: Rave using Jetty, instead of Tomcat

Posted by Raminderjeet Singh <ra...@gmail.com>.
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:j.joachimsthal@onehippo.com] 
> Sent: Wednesday, November 16, 2011 7:56 PM
> To: rave-dev@incubator.apache.org
> 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 - +1 877 414 4776 (toll free)
> 
> www.onehippo.com
> 
> 
> On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org> wrote:
> 
>>> -----Original Message-----
>>> From: Ioa Kiss [mailto:ikiss@ezuce.com]
>>> Sent: Wednesday, November 16, 2011 11:55 AM
>>> To: rave-dev@incubator.apache.org
>>> 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
>> 
>> 
> 


RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
  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:j.joachimsthal@onehippo.com] 
Sent: Wednesday, November 16, 2011 7:56 PM
To: rave-dev@incubator.apache.org
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 - +1 877 414 4776 (toll free)

www.onehippo.com


On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org> wrote:

> >-----Original Message-----
> >From: Ioa Kiss [mailto:ikiss@ezuce.com]
> >Sent: Wednesday, November 16, 2011 11:55 AM
> >To: rave-dev@incubator.apache.org
> >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
>
>


Re: Rave using Jetty, instead of Tomcat

Posted by Jasha Joachimsthal <j....@onehippo.com>.
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 - +1 877 414 4776 (toll free)

www.onehippo.com


On 16 November 2011 18:31, Franklin, Matthew B. <mf...@mitre.org> wrote:

> >-----Original Message-----
> >From: Ioa Kiss [mailto:ikiss@ezuce.com]
> >Sent: Wednesday, November 16, 2011 11:55 AM
> >To: rave-dev@incubator.apache.org
> >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
>
>

RE: Rave using Jetty, instead of Tomcat

Posted by Ioa Kiss <ik...@ezuce.com>.
I was trying with Jetty 6.1, Jetty 7 version. I got the same behavior on
both versions.
Thanks,
  Ioan

-----Original Message-----
From: Franklin, Matthew B. [mailto:mfranklin@mitre.org] 
Sent: Wednesday, November 16, 2011 7:32 PM
To: rave-dev@incubator.apache.org
Subject: RE: Rave using Jetty, instead of Tomcat

>-----Original Message-----
>From: Ioa Kiss [mailto:ikiss@ezuce.com]
>Sent: Wednesday, November 16, 2011 11:55 AM
>To: rave-dev@incubator.apache.org
>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



RE: Rave using Jetty, instead of Tomcat

Posted by "Franklin, Matthew B." <mf...@mitre.org>.
>-----Original Message-----
>From: Ioa Kiss [mailto:ikiss@ezuce.com]
>Sent: Wednesday, November 16, 2011 11:55 AM
>To: rave-dev@incubator.apache.org
>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