users@glassfish.java.net

Re: glassfish server behind a reverse proxy

From: Djohannot <david.johannot_at_heig-vd.ch>
Date: Mon, 21 Apr 2008 04:05:36 -0700 (PDT)

There is an issue with a working solution to the schema location problem.

The problem
https://glassfish.dev.java.net/servlets/ReadMsg?list=users&msgNo=2739

The solution
https://glassfish.dev.java.net/servlets/ReadMsg?list=users&msgNo=2753

Just call the service with your reverse proxy address, and your wsdl
generated will contains the right schema location adress (reverse proxy IP +
port).

Hope it could help,
regards,

David Johannot


Djohannot wrote:
>
> Hello all,
>
> I have like you the same problem and i haven't found a nice solution too.
> Have you some information about a solution, a issue on Glassfish?
>
> I have try to modify the httpListener alias and port name, cause it
> changes the Schema Location tag (who is THE problem), and define the
> targetNAmeSpace in my web services.
>
> This solution isn't a good one, and disturb the other services and web app
> installed on GlassFish.
>
> If some has a solution with annotation or with a configuration for
> glassfish, thanks a lot.
>
> David Johannot
>
> glassfish wrote:
>>
>> Hello tbls,
>>
>> I am just having exactly the same problem.
>> I am not able to find any help - so, let's try to share any information
>> we have.
>> What I am doing now is like this:
>> 1. I deploy the webservice, so I get the WSDL
>> 2. I take the WSDL and the XSD and I save them to files.
>> 3. Then I fix the URIs inside the WSDL to point to the reverse proxy host
>> name.
>> 4. Then I use @WebService(wsdlLocation in the java code in order to
>> suppres WSDL generation.
>>
>> It strange, how there is not any information on this topic??????
>> It is amazing, because there should be thousands of server, which a
>> running behind a reverse proxy - this is a very standard newtork/firewall
>> configuration for a production machine.
>>
>> It is strange and notbody from the GLASSFISH comunity is responding here!
>> I am really, really, amazed.
>>
>> On the other hand - the solution of this problem might, so simple that
>> nobody thinks it is worthy to respond to these question.
>>
>> You can use my 1,2,3,4 point, which is kind of workaround.
>> Please, share any information you have on the topic.
>>
>> Best regards,
>> Filip
>> [Message sent by forum member 'phiko6402' (phiko6402)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=236432
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
>

-- 
View this message in context: http://www.nabble.com/glassfish-server-behind-a-reverse-proxy-tp12592863p16807252.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.