users@glassfish.java.net

Re: GlassFish ignoring my context-root?

From: Collins, Russell <rcollins_at_corelogic.com>
Date: Wed, 29 Jun 2011 10:40:43 -0500

I have had this same problem so I am kind of glad I am not the only one. The only way around it that I have scene is to specify the context root using the deployment command. This is definitely a bug and needs to be corrected in the application server.

-----Original Message-----
From: forums_at_java.net <forums_at_java.net<mailto:%22forums_at_java.net%22%20%3cforums_at_java.net%3e>>
Reply-to: "forums_at_java.net" <forums_at_java.net>
To: users_at_glassfish.dev.java.net<mailto:users_at_glassfish.dev.java.net>
Subject: GlassFish ignoring my context-root?
Date: Tue, 28 Jun 2011 06:24:41 -0500



Hi,

I have a Web-Application: testApp that I want to be available under
/testApp/rpc/ (Background: I want Apache to serve static pages from /testApp
and GlassFish the dynamic part in /testApp/rpc/)

So what I did, was while deploying the app I entered: testApp/rpc/ in the
Context-Root field.

Unfortunately, GlassFish seems to ignore this, I can only access the files of
the app under: /testApp not /testApp/rpc/

Am I missing something?

Oh, and while looking for a solution, I put in a glassfish-web.xml with the
following:

<glassfish-web-app>
  <context-root>/testApp/rpc/</context-root>
</glassfish-web-app>

But this didn't help...

Can anybody help me with this? thanks!

Regards


--

[Message sent by forum member 'MohamzJava']

View Post: http://forums.java.net/node/816671



******************************************************************************************
This message may contain confidential or proprietary information intended only for the use of the
addressee(s) named above or may contain information that is legally privileged. If you are
not the intended addressee, or the person responsible for delivering it to the intended addressee,
you are hereby notified that reading, disseminating, distributing or copying this message is strictly
prohibited. If you have received this message by mistake, please immediately notify us by
replying to the message and delete the original message and any copies immediately thereafter.

Thank you.
******************************************************************************************
CLLD