Assume you are not running NAT or any other host/port re-assignment this sounds 
like a blocker.

I did not see the nonProxyHosts listed in tomcat-maven-plugin JIRA?

can you provide a URL for the JIRA/Bugzilla tomcat plugin bug and patch?


Thanks,
Martin 
                                                                                
                 


  


> From: [email protected]
> To: [email protected]
> Subject: RE: nonProxyHosts not working
> Date: Tue, 9 Sep 2014 13:26:26 +0000
> 
> Yes it was. I submitted a patch to the Tomcat Dev list last night.
> 
> Thanks
> 
> -----Original Message-----
> From: Olivier Lamy [mailto:[email protected]] 
> Sent: Monday, September 08, 2014 10:22 PM
> To: Maven Users List
> Subject: Re: nonProxyHosts not working
> 
> sounds more a tomcat maven plugin rather than a maven issue.
> Can you log an issue here: https://issues.apache.org/jira/browse/MTOMCAT
> 
> 
> On 9 September 2014 03:56, <[email protected]> wrote:
> > All,
> >
> > I've tried Maven 3.1.1 and 3.2.3 but can't get nonProxyHosts in 
> > settings.xml to work in some cases. I'm trying to deploy a war to Tomcat 
> > using the Tomcat Maven plugin version 2.3. It works fine if I set 
> > active=false in the proxy config.
> >
> > I think this works:
> >
> > <proxies>
> > <proxy>
> > <active>true</active>
> > <protocol>http</protocol>
> > <host>proxy.mycompany.com</host>
> > <port>80</port>
> > <nonProxyHosts>*.mycompany.com</nonProxyHosts>
> > </proxy>
> > </proxies>
> >
> > This does not:
> >
> > <proxies>
> > <proxy>
> > <active>true</active>
> > <protocol>http</protocol>
> > <host>proxy.mycompany.com</host>
> > <port>80</port>
> > <nonProxyHosts>localhost|*.mycompany.com</nonProxyHosts>
> > </proxy>
> > </proxies>
> >
> > Likewise, using just localhost, my machine name, and commas instead of 
> > pipes doesn't work, either. The plugin tries to upload the war to my 
> > company's proxy, which eventually responds with a 404 "The hostname 
> > "localhost" cannot be found. Please check the URL you are trying to reach 
> > to verify that it is spelled correctly."
> >
> > This is in the log:
> >
> > [INFO] Deploying war to http://localhost:8080/coherence-extend-web
> > Uploading: 
> > http://localhost:8080/manager/text/deploy?path=%2Fcoherence-extend-web
> > Uploaded: 
> > http://localhost:8080/manager/text/deploy?path=%2Fcoherence-extend-web 
> > (8409 KB at 3024.7 KB/sec)
> >
> > [ERROR] Tomcat return http status error: 404, Reason Phrase: Not Found
> >
> > That looks correct except the error isn't quite right because Tomcat isn't 
> > even being hit. I get the same error if Tomcat isn't running. It's the 
> > proxy server that is returning the error.
> >
> > I know everything else is correct because if I set active=false, the deploy 
> > succeeds.
> >
> > Thanks
> >
> > John
> >
> 
> 
> 
> -- 
> Olivier Lamy
> Ecetera: http://ecetera.com.au
> http://twitter.com/olamy | http://linkedin.com/in/olamy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
                                          

Reply via email to