• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WAR Deployment Paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WAR Deployment Paths


  • Subject: Re: WAR Deployment Paths
  • From: Henrique Prange <email@hidden>
  • Date: Mon, 30 Dec 2013 21:16:15 -0200

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@hidden> 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@hidden>
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@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WAR Deployment Paths (From: Ron X <email@hidden>)
 >Re: WAR Deployment Paths (From: Ron X <email@hidden>)

  • Prev by Date: NoSuchMethodError after wonder update
  • Next by Date: Re: Deployment WAR problem
  • Previous by thread: Re: WAR Deployment Paths
  • Next by thread: Nightmare of deployment again
  • Index(es):
    • Date
    • Thread