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: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: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: Description: Image removed by sender.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" Description: Description: Image removed by sender.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" Description: Description: Image removed by sender.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" Description: Description: Image removed by sender.
Description: Image removed by sender.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" Description: Description: Image removed by sender.200 13303
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.200 19159
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.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" Description: Description: Image removed by sender.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" <ikiss@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.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 <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.877 414 4776
> <tel:+1%20877%20414%204776> (toll free)
>
> www.onehippo.com
>
>
>
> On 17 November 2011 07:26, Ioa Kiss <ikiss@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 Description: Image removed by sender.877 414 4776
> <tel:+1%20877%20414%204776> (toll
> > >> free)
> > >>
> > >> www.onehippo.com
> > >>
> > >>
> > >> On 16 November 2011 18:31, Franklin, Matthew B.
> > >> <mfranklin@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
> > >>>
> > >>>
> > >>
> > >
> > >
> > >
> >
> >
> >
>
>
>
>