Tomcat 8 war deploy problem

58 views
Skip to first unread message

Gary W

unread,
Mar 4, 2015, 6:05:02 AM3/4/15
to membrane...@googlegroups.com
Hello Membrane, I've had much success gitting and building the 4.0.19. I most be doing something wrong when using on tomcat because the proxy doesn't bind the tcp ports. Have you seen this?

When i deploy the build zip and run it in windows with Out Of Box proxy.xml everything works as expected. Awesome!

When I deploy to tomcat 8 either directly or by eclipse the only thing that works is the monitor.

Any ideas?

attached please find 
1). membrane monitor for windows 9000
2). membrane monitor for tomcat 8080
3). tomcat proxy.xml config
4). netstat   - please note netstat doesn't show port 2002 being listening but monitor shows fine.

I turned off windows firewall.

Thanks
Gary 
log.txt
proxy.xml
tomcat.png
windows app.png

Thomas Bayer

unread,
Mar 4, 2015, 6:21:26 AM3/4/15
to membrane...@googlegroups.com
Hi Gary,
if you deploy Membrane into a Web Container the servletTransport is used to accept connections from the Web Container. So you can reach Membrane from the same port as the Tomcat server. Remove the port attribute from your serviceProxy and try to invoke it on the port of your Tomcat.

             
        <!-- Forwards HTTP requests on port 2001 to a local web container running on port 8080, maybe a Tomcat server. -->
        <serviceProxy port="2002" >
            <target host="localhost" port="8090"/>
        </serviceProxy>

Be careful about the URL. The proxy above will be reachable at:

http://server:port/<<Kontext of Membrane Web App>>/*

The idea of the servletTransport is to integrate Membrane with the Web Container. If you want to open ports yourself in the Web App, then use a normal proxies.xml without the servletTransport. Membrane will then use the HttpTransport that manages ports itself.

Cheers,
Thomas



Am 04.03.15 um 12:05 schrieb Gary W:
--
You received this message because you are subscribed to the Google Groups "membrane-monitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to membrane-monit...@googlegroups.com.
To post to this group, send email to membrane...@googlegroups.com.
Visit this group at http://groups.google.com/group/membrane-monitor.
For more options, visit https://groups.google.com/d/optout.

Tobias Polley

unread,
Mar 4, 2015, 6:47:18 AM3/4/15
to membrane...@googlegroups.com
Hi,



On Wednesday, March 4, 2015 at 12:21:26 PM UTC+1, Thomas Bayer wrote:
 Remove the port attribute from your serviceProxy and try to invoke it on the port of your Tomcat.

exactly, this is one option.

I think there is an alternative: Replace <web:servletTransport> by <transport> and then port 2002 should be opened. I'm not sure whether this currently works, though.

Best, Tobias
Reply all
Reply to author
Forward
0 new messages