![]() It will have to deliver some static content but first and foremost, I need to get this thing up and running to load balance the JavaEE applications (servlets). ![]() The httpd server is supposed to serve as a load balancer and proxy to the tomcats. Only application that is working is /balancer-manager, obviously. Same for Tomcat root applications such as /manager/html or /host-manager. Whenever I try to call an application that's been deployed throughout the cluster, it gives me 404 not found. We have many enterprise web applications which we wanna load balance throughout a Tomcat farm. AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' AH00163: Apache/2.4.6 (CentOS) configured - resuming normal operations ![]() AH02282: No slotmem from mod_heartmonitor AH01757: generating secret for digest authentication. Set the 'ServerName' directive globally to suppress this message ![]() AH01574: module proxy_http_module is already loaded, skippingĪH00558: httpd: Could not reliably determine the server's fully qualified domain name, using fe80::50a0:e2ff:fe74:5294. AH01574: module proxy_balancer_module is already loaded, skipping AH01574: module proxy_ajp_module is already loaded, skipping AH01574: module proxy_module is already loaded, skipping AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) SELinux policy enabled httpd running as context system_u:system_r:httpd_t:s0 ProxyPassReverse / balancer://testcluster/ stickysession=JSESSIONID|jsessionidĮDIT: Apache error log (what it gives me after startup): AH00170: caught SIGWINCH, shutting down gracefully ProxyPass / balancer://testcluster/ stickysession=JSESSIONID|jsessionid # Exclude balancer-manager app to make it available on master + YES, I have read lots of things about this topic (official documentation, tutorials, etc.) already. + firewalld/iptables turned off on all nodes (testing environment) + port for shutdown different on every instance + path to watchDir / tempDir different, deployDir = webapps on every instance + jvmRoute value equals respective hostname on all instances + tcpListenerPort for NioReceiver different on every instance + port for AJP connector different on every instance + HTTP connector only for master node, not defined on slaves + watchEnabled: on master = "true", on slaves = "false" + 1 VM running 2 Tomcat instances on different ports Important things first: + 1 VM running HTTP server & 1 Tomcat instance (used for deployment, not answering requests) ![]() 升级到嵌入式 Tomcat 7.0.59 后,当我启动我的应用程序时,出现以下异常: Caused by: .IllegalStateException: WELD-001201: Error loading beans.xml jndi:/localhost/WEB-INF/beans.xmlĪt .BeansXmlParser.parse(BeansXmlParser.java:124)Īt .WeldBootstrap.parse(WeldBootstrap.java:131)Īt .(WebAppBeanArchiveScanner.java:78)Īt .(AbstractDiscoveryStrategy.java:83)Īt .(WeldServletLifecycle.java:230)Īt .(WeldServletLifecycle.java:120)Īt .(EnhancedListener.java:61)Īt .StandardContext.startInternal(StandardContext.java:5513)Īt .LifecycleBase.start(LifecycleBase.java:150)Ĭaused by: java.io.FileNotFoundException: jndi:/localhost/WEB-INF/beans.xmlĪt .DirContextURLConnection.getInputStream(DirContextURLConnection.java:384)Īt (URL.java:1037)Īt .BeansXmlParser.parse(BeansXmlParser.I have set up an Apache Tomcat Cluster with an Apache HTTP server and load balancing on CentOS 6.6 the following way: ![]()
0 Comments
Leave a Reply. |