• 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: Session Problem for J2ee deployment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session Problem for J2ee deployment


  • Subject: Re: Session Problem for J2ee deployment
  • From: Farrukh Ijaz <email@hidden>
  • Date: Mon, 21 Jun 2010 10:45:43 +0300

After spending sometime, I've come to know that the problem occurs if I use rewrite rules for direct actions. Below is the code:

public WOActionResults linkManagerAction() {
if (!hasSession()) {
return blankPage();
}
return pageWithName(LinkPopupPage.class);
}

protected boolean hasSession() {
return (getSessionIDForRequest(request()) != null) && (existingSession() != null);
}

Now if I call the direct action using /Application/WebObjects/Application.woa/wa/linkManager, it gets the session.
But if a use /app/wa/linkManager, the session is null.

The rewrite rule is as follows:

RewriteRule ^/app/wa/(.*)$ /Application/WebObjects/Application.woa/wa/$1 [P]

Any ideas please?

Farrukh

On 2010-06-20, at 6:01 PM, Farrukh Ijaz wrote:

Hi,

I am facing quite a strange problem. I've an application which I've deployed on GlassFish on port 28080. Everything seems to work fine. When I use Apache mod_jk or mod_proxy_ajp module, I am getting null session for direct actions.

Is this something related to Apache or WebObjects J2ee deployment?

Thanks,

Farrukh

Sent from my iPad
 _______________________________________________
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

  • Follow-Ups:
    • Re: Session Problem for J2ee deployment
      • From: Chuck Hill <email@hidden>
References: 
 >inline bindings and valid... (From: Theodore Petrosky <email@hidden>)
 >Re: inline bindings and valid... (From: Mike Schrag <email@hidden>)
 >Session Problem for J2ee deployment (From: Farrukh Ijaz <email@hidden>)

  • Prev by Date: Re: embedding frameworks?
  • Next by Date: deployment with tomcat
  • Previous by thread: Session Problem for J2ee deployment
  • Next by thread: Re: Session Problem for J2ee deployment
  • Index(es):
    • Date
    • Thread