Thanks Olemis; I have this working now - the problem was that my
<applet ...> tag looked something like this:
<applet code="MyApplet" width="600" height="600">
</applet>
which means that the request for the applet is made relative to the
containing page, which is why the requested URL ends up being
something like "http://localhost/Projects/MyApplet.class", where
anything under "http://localhost/Projects" is Trac's problem as far as
Apache is concerned, and of course Trac doesn't know anything about
how to serve this applet. So a slightly crude solution is to have my
applet tag look like this:
<applet code="/MyApplet" width="600" height="600">
</applet>
(i.e. a forward slash at the start of the code path) and now Apache
looks for it in its own "C:\Program Files\Apache Software Foundation
\Apache2.2\htdocs" directory and once I've copied the .class file into
there it all works.
Would be nice to be able to just have the .class or .jar file inside
the .egg - are you saying that I can do this by implementing
ITemplateProvider? (in a plugin?).
Thanks for your help.
On Oct 4, 5:27 pm, Olemis Lang <[email protected]> wrote:
> On Mon, Oct 4, 2010 at 12:02 PM, irrumabo <[email protected]> wrote:
> > FreeMindMacro uses Flash, not an applet.
>
> > What I'm missing is whether this is a problem with my Apache
> > configuration, my Trac configuration, or both. The stack trace shows
> > that the JVM is looking for the applet here:
>
> >http://localhost/Projects/MyApplet.class
>
> > Now for everything else underhttp://localhost/Projects, Apache
> > handles the request via Trac - so presumably Trac has to know where to
> > find the applet class? Is there something that has to be set in Trac?
>
> If you want to make static files accessible to the outside world then
> you should :
>
> - Copy them in /path/to/trac/<env>/htdocs (e.g.
> /path/to/trac/env/htdocs/MyApplet.class)
> - Specify an URL
> likehttp://localhost/Projects/<env>/chrome/site/MyApplet.class
>
> or you could implement a whole new ITemplateProvider ...
>
> --
> Regards,
>
> Olemis.
>
> Blog ES:http://simelo-es.blogspot.com/
> Blog EN:http://simelo-en.blogspot.com/
>
> Featured article:
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-users?hl=en.