Re: xmlParserAPIs.jar and xml-apis.jar cause class loader issue.

2010-10-04 Thread Zhenhua Guo
I am curious about how you (and Paul) solved the problem. Geald On Mon, Oct 4, 2010 at 12:37 PM, Han Nguyen wrote: > Thanks Paul! > > > > From:   Paul Lindner > To:     dev@shindig.apache.org > Date:   10/03/2010 11:45 AM > Subject:        Re: xmlParserAPIs.jar and xml-apis.jar cause class load

gadget-to-gadget communication

2010-10-04 Thread Zhenhua Guo
It seems that shindig 2.0 implements OpenSocial 1.0. For rpc feature described on page http://opensocial-resources.googlecode.com/svn/spec/1.0/Core-Gadget.xml#gadgets.rpc, it says "Provides operations for making remote procedure calls for gadget-to-container, container-to-gadget, and gadget-to-

Re: Adding an html parser router (issue2119043)

2010-10-04 Thread gagan . goku
On 2010/10/05 01:02:01, chirag wrote: http://codereview.appspot.com/2119043/diff/63001/java/common/conf/shindig.properties File java/common/conf/shindig.properties (right): http://codereview.appspot.com/2119043/diff/63001/java/common/conf/shindig.properties#newcode155 java/common/conf/shindi

Re: Adding an html parser router (issue2119043)

2010-10-04 Thread Chirag Shah
Wouldn't Google Guice annotations[1] would solve this problem. Example Bind: bind(GadgetHtmlParser.class) .annotatedWith(Names.named("parser-accel")) .to(CajaHtmlParser.class); Inject: @Inject public Accel(@Named("parser-acce") GadgetHtmlParser parser, ... http://code.goog

Re: Adding an html parser router (issue2119043)

2010-10-04 Thread chiragshah1
http://codereview.appspot.com/2119043/diff/63001/java/common/conf/shindig.properties File java/common/conf/shindig.properties (right): http://codereview.appspot.com/2119043/diff/63001/java/common/conf/shindig.properties#newcode155 java/common/conf/shindig.properties:155: shindig.html.parser=neko

Re: Updated few checks in ConcatVisitor, to increase its coverage. (issue2085042)

2010-10-04 Thread gagan . goku
Build looks nice. Committed as r1004328 http://codereview.appspot.com/2085042/

Re: Forwarding all http request headers when fetching a resource via ProxyHandler (issue1987047)

2010-10-04 Thread zhoresh
I would argue that this break encapsulation. The idea is that ProxyHandler can be used by other services not just ProxyServlet (i.e. GadgetHandler). So the ProxyHandler should handle any User-Agent value, and if needed to pass more info down, then maybe ProxyUri is the place to change. http://c

Re: xmlParserAPIs.jar and xml-apis.jar cause class loader issue.

2010-10-04 Thread Han Nguyen
Thanks Paul! From: Paul Lindner To: dev@shindig.apache.org Date: 10/03/2010 11:45 AM Subject:Re: xmlParserAPIs.jar and xml-apis.jar cause class loader issue. I just committed a fix for this to trunk. I'll make sure it gets ported to 2.0.1 On Fri, Oct 1, 2010 at 8:34 PM, Ha

Re: Updated few checks in ConcatVisitor, to increase its coverage. (issue2085042)

2010-10-04 Thread MHarish Mnsatya
Thanks Paul. On 4 October 2010 21:39, Paul Lindner wrote: > k thx, ship it! > > > On Mon, Oct 4, 2010 at 8:49 AM, Gagandeep singh > wrote: > > > http://codereview.appspot.com/2085042/diff/27001/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java > > has nice tes

Re: Updated few checks in ConcatVisitor, to increase its coverage. (issue2085042)

2010-10-04 Thread Paul Lindner
k thx, ship it! On Mon, Oct 4, 2010 at 8:49 AM, Gagandeep singh wrote: > http://codereview.appspot.com/2085042/diff/27001/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.java > has nice tests for conditional and non conditional comments. > > On Mon, Oct 4, 2010 at

Re: Updated few checks in ConcatVisitor, to increase its coverage. (issue2085042)

2010-10-04 Thread Gagandeep singh
http://codereview.appspot.com/2085042/diff/27001/java/gadgets/src/test/java/org/apache/shindig/gadgets/rewrite/ConcatVisitorTest.javahas nice tests for conditional and non conditional comments. On Mon, Oct 4, 2010 at 9:05 PM, wrote: > lgtm, if you could add a follow-on test for conditional comme

Re: Updated few checks in ConcatVisitor, to increase its coverage. (issue2085042)

2010-10-04 Thread lindner
lgtm, if you could add a follow-on test for conditional comments I'd appreciate it. http://codereview.appspot.com/2085042/

Issue 1987047: Forwarding all http request headers when fetching a resource via ProxyHandler

2010-10-04 Thread Gagandeep singh
Reviewers: *...@shindig.apache.org*, Description: Currently ProxyHandler just takes in the proxyUri to fetch and totally ignores the http request headers like "User-Agent". This change passes on the HttpRequest object which has all the headers present in original request - Host and Content-Lengt

Issue 2119043: Adding an html parser router

2010-10-04 Thread Gagandeep singh
Reviewers: dev-remai...@shindig.apache.org, Description: Adding a GadgetHtmlParserRouter which can route to Caja / Neko parser based on how its is configured. This allows us to do stuff like: @Override public Document parseDomForEncodingDetection(String source) throws GadgetException { f

Re: Multiple hot deploys and shindig

2010-10-04 Thread Paul Lindner
Can you open a jira issue with this information so that it doesn't get forgotten. I'd like to see a solution, just don't have the time to tackle it myself at the moment. 2010/9/23 Pablo Graña : > Here is more info on the problem and the current status: > > http://code.google.com/p/guava-librarie

Issue 2164045: Enabling single resource concatenation

2010-10-04 Thread Kuntal Loya
Reviewers: *...@shindig.apache.org*, Description: Single JS/CSS resources should be able to concatenate with themselves. This behavior should be similar to ProxyingVisitor proxying single JS/CSS resources. This will be useful in cases when ScriptConcatContentRewriter and/or StyleConcatContentRew

Re: Debugging shindig in eclipse succeeded with problems

2010-10-04 Thread Gagandeep singh
On a side not, i have a pretty decent intellij workflow described here: https://docs.google.com/document/d/1uMf17Bli-CdOnfQGvJhpWED827noikrXBtrP5cb3b9s/edit?hl=en&pli=1# On Mon, Oct 4, 2010 at 1:25 PM, Paul Lindner wrote: > I've seen this in the past where Eclipse will reference the jar files >

Re: What's the status for the JPA sample?

2010-10-04 Thread Paul Lindner
It should be complete (we run the unit tests after all) If you get a runtime error could you file a bug at https://issues.apache.org/jira/ Thanks! 2010/9/29 王磊 : > Hi folks, > > I was trying to replace the default JSON db sample with the JPA sample > module which I checked out from svn, however

Re: Debugging shindig in eclipse succeeded with problems

2010-10-04 Thread Paul Lindner
I've seen this in the past where Eclipse will reference the jar files in the classpath instead of the workspace. I don't have a specific answer for you. As I recall I ended up having to build/deploy from Eclipse to solve this particular issue. Another option may be to use remote debugging with.

Re: Multiple hot deploys and shindig

2010-10-04 Thread Pablo Graña
I created ticket https://issues.apache.org/jira/browse/SHINDIG-1439 for the shutdown hook. I read a little bit more about thread locals, and I think that caching the DocumentBuilder in a ThreadLocal should not create a memory leak. See this blog post: http://blog.crazybob.org/2006/07/hard-core-jav

Re: [jira] Commented: (SHINDIG-1438) OpenAjaxHub upgrade to v2.0.5 for pubsub-2 gadgets refresh error

2010-10-04 Thread Paul Lindner
Hi Han, If you check it into trunk I can merge it to 2.0.x branch. (Still finalizing 2.0.1 release..) On Fri, Oct 1, 2010 at 9:12 PM, Han Nguyen (JIRA) wrote: > >    [ > https://issues.apache.org/jira/browse/SHINDIG-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&fo

Re: [Shindig] [Issue 2085042] Optimization: Updated few checks in ConcatVisitor, to increase its coverage.

2010-10-04 Thread MHarish Mnsatya
Description: Optimization: Updated few checks in ConcatVisitor, to increase its coverage. In getNextSibling() function: 1) We can be ignore are text node irrespective of their content. 2) We can ignore comment nodes expect for conditional comments. Please review this at http://codereview.appspot.