Ron,
The application has to load web server resources from inside the JAR files. You
can use this [1] custom WOResourceRequestHandler to do this.
You must also register the custom request handler in your application
constructor:
if (isDirectConnectEnabled()) {
registerRequestHandler(new JarResourceRequestHandler(), "_wr_");
if (ERXApplication.isWO54()) {
registerRequestHandler(new JarResourceRequestHandler(), "wr");
}
}
[1]https://gist.github.com/hprange/1068523
Cheers,
Henrique
On 26/12/2013, at 21:01, Ron X <[email protected]> wrote:
> sorry path was:
> http://localhost:8080/WebObjects/myapp.woa/WebServerResources/images/x.jpg
>
>
> WebRep
>
> Overall rating
>
>
>
>
>
> WebRep
>
> Overall rating
>
>
>
>
>
>
>
> 2013/12/27 Ron X <[email protected]>
> Hello!
>
> I need to make WAR-file with out-off-the-box settings.
> When I set in web.xml "deployment" I have an error with the paths:
>
> my app in Jetty:
>
> http://localhost:8080/myapp/WebObjects/myapp.woa/
> but no resources was loaded (images, css)
> firebug shows:
> no image found at
> http://localhost:8080/WebObjects/myapp.woa/
>
> how can i set true paths in the deployment mode?
> i do not use any webserver - i need to make deployment into jetty with
> war-file without any externals.
> thanks!
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]