-
1. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
2725299 Dec 4, 2014 3:36 AM (in response to Fabricio_Jorge)1 person found this helpful<IfModule mod_weblogic.c>
WebLogicHost 192.168.0.123
WebLogicPort 7006
MatchExpression *
WLLogFile /tmp/wl-proxy.log
</IfModule>
<Location /benefits>
SetHandler weblogic-handler
PathTrim /benefits
PathPrepend /benefits
</Location>
Please try this.
-
2. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Fabricio_Jorge Dec 6, 2014 3:04 AM (in response to 2725299)Hi,
thanks for the help. Unfortunately the suggestion didn't solve my problem. With the change, i was unable to even access the apache test page (localhost:8080).
Any other suggestions?
Again, thanks for you attention.
-
3. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Fabricio_Jorge Dec 17, 2014 2:11 AM (in response to 2725299)Hi,
any other suggestions? Still trying to figure out how to solve this problem.
Thanks...
-
4. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Luz Mestre-Oracle Dec 17, 2014 2:45 AM (in response to Fabricio_Jorge)1 person found this helpfulWe have seen this issue when there is a firewall / security software like SELinux is preventing the connection:
You can try installing apache in the same box to narrow down the issue
Best Regards
Luz
-
5. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
2725299 Dec 17, 2014 5:51 AM (in response to Fabricio_Jorge)1 person found this helpfulAs per Luz's reply, you can try setting SElinux to permissive or disabled.
-
6. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Fabricio_Jorge Dec 19, 2014 12:05 AM (in response to Luz Mestre-Oracle)Hi all,
I had some progress... i disabled the firewall (SELinux) on the Apache server. Before, i had just disabled the firewall from the Weblogic Server. Now, when i access the apache server, it redirects (sometimes, actually) the request to my Weblogic Cluster. Let's say that 50% of the time it works and the other 50% i get the error informed previously.
I am using the apache user and the ulimit of this user is:
[apache@vm-apache conf]$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 15915
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
From the Apache server (192.168.0.149), when i execute the "culr" command, i get the following message:
[apache@vm-apache conf]$ curl http://192.168.0.123:7006/benefits
<html><head><title>302 Moved Temporarily</title></head>
<body bgcolor="#FFFFFF">
<p>This document you requested has moved temporarily.</p>
<p>It's now at <a href="http://192.168.0.123:7006/benefits/">http://192.168.0.123:7006/benefits/</a>.</p>
</body></html>
The message above represents a OK situation or a problematic one?
Below you can see the last few lines of my Error Log and Access Log:
### error log ###
[Thu Dec 18 20:54:16 2014] [error] [client 192.168.0.123] <340514189468553> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID[Thu Dec 18 20:54:16 2014] [error] [client 192.168.0.123] <340314189468563> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID
[Thu Dec 18 20:54:17 2014] [error] [client 192.168.0.123] File does not exist: /var/www/html/favicon.ico
[Thu Dec 18 20:54:17 2014] [error] [client 192.168.0.123] File does not exist: /var/www/html/favicon.ico
[Thu Dec 18 20:54:21 2014] [error] [client 192.168.0.123] <340114189468603> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID, referer: http://192.168.0.149:8080/benefits/
[Thu Dec 18 20:54:44 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID
[Thu Dec 18 20:54:44 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: initJVMID: parseClusterServerList failure
[Thu Dec 18 20:54:45 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: parseJVMID: could not resolve hostname '-1062731653'. Returning NULL from parseJVMID, referer: http://192.168.0.149:8080/benefits/servlet
[Thu Dec 18 20:54:45 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: initJVMID: parseClusterServerList failure, referer: http://192.168.0.149:8080/benefits/servlet
[Thu Dec 18 20:54:56 2014] [error] [client 192.168.0.149] <339814189468792> weblogic: request [/benefits/welcome.html] did NOT process successfully..................
[Thu Dec 18 20:54:57 2014] [error] [client 192.168.0.123] <339914189468844> weblogic: request [/benefits/welcome.html] did NOT process successfully.................., referer:http://192.168.0.149:8080/benefits/servlet
### access log ###
192.168.0.123 - - [18/Dec/2014:20:54:15 -0300] "GET /benefits HTTP/1.1" 302 267 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"192.168.0.123 - - [18/Dec/2014:20:54:16 -0300] "GET /benefits/ HTTP/1.1" 200 5832 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:17 -0300] "GET /favicon.ico HTTP/1.1" 404 290 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:17 -0300] "GET /favicon.ico HTTP/1.1" 404 290 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:20 -0300] "POST /benefits/servlet HTTP/1.1" 200 492 "http://192.168.0.149:8080/benefits/" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.149 - - [18/Dec/2014:20:54:39 -0300] "GET /benefits/welcome.html HTTP/1.1" 503 250 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
192.168.0.123 - - [18/Dec/2014:20:54:44 -0300] "GET /benefits/welcome.html HTTP/1.1" 503 250 "http://192.168.0.149:8080/benefits/servlet" "Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120605 Firefox/10.0.5"
Is there any additional or recommended configuration for this solution to work properly?
Thanks again for the attention and pacience.
-
7. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Luz Mestre-Oracle Dec 19, 2014 12:38 AM (in response to Fabricio_Jorge)Could you please try with the latest 11g plugin?
http://www.oracle.com/technetwork/middleware/webtier/downloads/index-jsp-156711.html
How long does the weblogic server take to respond (without using apache?
Best Regards
Luz
-
8. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
user1105208 Dec 29, 2014 10:29 PM (in response to Fabricio_Jorge)Hi All,
I have the same problem, did you resolve the issue?
Thank you,
-
9. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
user1105208 Dec 30, 2014 7:58 AM (in response to Fabricio_Jorge)Hi All,
I solved the error, including the parameter: DynamicServerList OFF
Anybody knows why is that?
Obviuosly, my configuration is for a clustered Weblogic environment.
Thank you.
-
10. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Luz Mestre-Oracle Dec 30, 2014 5:48 PM (in response to user1105208)Glad to hear that!
DynamicServerList keeps the list of servers in the cluster up to date.
If the application is not prepared to work in a cluster (session replication and failover) and you have small and intermittent outages, DynamicServerList OFF could help.
References:
https://docs.oracle.com/middleware/1212/webtier/PLGWL/plugin_params.htm#PLGWL473
Here is an example of an application that can be used with failover
WebLogic Server: Webapp Sample for Testing Different Types of Session Persistence/Failover (Memory, In-Memory, File, JDBC & Cookie-Based Persistence) (Doc ID 1157842.1)
Best Regards
Luz
-
11. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
user1105208 Dec 30, 2014 8:47 PM (in response to Luz Mestre-Oracle)Thank you Luz for the info, I'll try the tests for the session persistence.
Is there someway to mark a managed server as "quiesce"? I mean, no admit new incoming petitions, but stay running while finishing current petitions... That would be a nice feature that I currently use with mod_jk and Glassfish.
Kind regards,
Juanjo.
-
12. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Luz Mestre-Oracle Dec 30, 2014 8:59 PM (in response to user1105208)Hi Juanjo
Glad to help!
Similar feature is the Graceful Shut down.
References:
Administration Console Online Help
http://docs.oracle.com/cd/E23943_01/web.1111/e13754/rolling_upgrade.htm#WLUPG259
Best Regards
Luz
-
13. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
user1105208 Dec 30, 2014 9:30 PM (in response to Luz Mestre-Oracle)Thank you Luz, that will be useful, but what I have in mind is to manage this from the Apache LB plugin, i.e. stop sending new petitions to a managed server, just to rebalance traffic between machines or because a developer needs to attach to debug...
And, in these cases, the parameter DynamicServerList set to OFF may affect negatively?
Juanjo.
-
14. Re: Error NO_RESOURCES when using Apache Plug-in for Weblogic
Luz Mestre-Oracle Dec 30, 2014 10:42 PM (in response to user1105208)DynamicServerList set to ON can be used with stop "When work completes:"
References:
Administration Console Online Help
and yes, DynamicServerList set to OFF may affect negatively as even the server is bad, request will be sent there.
Best Regards
Luz