What I am doing now to make shindig work as non-root app is to modify
configuration files *shindig.properties* and *container.js* to add context
path in all related urls.
In you case, I think you just modified *container.js*, not *
shindig.properties*.

Gerald

On Mon, Mar 2, 2009 at 7:12 AM, <[email protected]> wrote:

> Hi,
>
>
>
> I'm not able to find a way to configure the URI of concatenation servlet
> correctly.
>
>
>
> Shindig, by default, rewrites all references to external javascript in
> gadget XML from
>
>
>
> <script src="http://localhost/xyz.js";></script>
>
>
>
> to
>
>
>
> <script
> src="/gadgets/concat?rewriteMime=text/javascript&gadget=url_to_gadget_xm
> l&fp=-182800334&1=http%3A%2F%2Flocalhost%2Fxyz.js"></script>
>
>
>
> Since I've deployed shindig as a non-root app on Apache Tomcat, I'm
> getting a 404.
>
>
>
>
>
> I've prefixed URLs in
> shindig\WEB-INF\classes\containers\default\container.js with "/shindig"
> so opensocial & makeRequest calls work without a glitch. How do I get
> Shindig to rewrite URI as /shindig/gadgets/concat?....
>
>
>
> Here are some things I have already tried to make it work:-
>
>
>
> 1)      Use
>
>  document.write('<scr'+'ipt src=" http://localhost/test.js";></scr' +
> 'ipt>');
>
>
>
> instead of
>
>
>
> <script src="http://localhost/xyz.js";></script>.
>
>
>
> This works fine, but I'm not sure if it breaks something else J.
>
>
>
> 2)      Add "/shindig" forcefully by modifying  line 81 of
> HTMLConterntRewriter.java as follows
>
> this.concatBaseNoGadget = "/shindig"+concatBaseNoGadget;
>
>
>
>
>
> Please suggest if there is a better way to configure HTMLContentRewriter
> to prefix automatically (like we do for opensocial & makeRequest in
> container.js). Any help is greatly appreciated.
>
>
>
> Thanks,
>
> Vinod
>
>
>
>
> Please do not print this email unless it is absolutely necessary.
>
> The information contained in this electronic message and any attachments to
> this message are intended for the exclusive use of the addressee(s) and may
> contain proprietary, confidential or privileged information. If you are not
> the intended recipient, you should not disseminate, distribute or copy this
> e-mail. Please notify the sender immediately and destroy all copies of this
> message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>

Reply via email to