BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
}Thanks for the reply Jos,
 Thanks the thing (I don't think I'm completely derranged)
 in my tomcat/webapps folder I have a folder called sling that
contained the webapp.
 So obviously the docroot is http://localhost:8080/sling/ [1]
 And if I go to http://localhost:8080/sling/system/console/bundles
[2] that works.
 And if I go to http://loclahost:8080/sling/content/tom.html, [3]
that also works.
 But I can either put an absolute path or relative path to the
sling.js file:
 and I can see in firebug that the file is loaded, but then the call
to info.sessioninfo.json fails because the url is wrong (missing the
/sling/)
 I know whatever it is, is something dumb, I just dunno what :)
 Thanks
 Tom
 On Fri 10/09/10  2:22 PM , Jos Snellings [email protected]
sent:
 Hi Tom,
 Just rename sling webapp to whatever you want the top of your webapp
to be.
 Tomcat will pick that up.
 your urls will look like:
 http://localhost:8080/{yourtopname}/{pathtoresource}
 Jos
 On 09/10/2010 02:51 PM, [email protected] [4] wrote:
 >    BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
}Hi
 > Guys,
 >   I've been playing around with sling on and off for a few weeks
and
 > in development jetty mode my app runs fine, but I want to deploy
to
 > tomcat where my sling install no longer resides on root.
 >   Is it possible to set a base url of some sort, so if I do import
 > sling.js in my esp it knows where to look for resources?
 >   At the moment when I import it it looks to the root :)
 >   http://localhost:8080/system/sling/info.sessionInfo.json
 >   Sorry, noob question, still trying to get my head around all of
 > this..
 >   Thanks
 >   Tom
 >
 >    


Links:
------
[1] http://localhost:8080/sling/
[2] http://localhost:8080/sling/system/console/bundles
[3] http://loclahost:8080/sling/content/tom.html,
[4] mailto:[email protected]

Reply via email to