About weblogic proxy call weblogic cluster's servlet error
I use weblogic server 5.1, configruation tow weblogic cluster server and a weblogic
web server, through weblogic web server received browser's http request only,
weblogic cluster server do with jsp and servlet, now html&jsp is ok but servlet
can not do with, if through weblogic cluster server do with jsp and servlet direct,
it's ok.
this is my weblogic.properties section:
weblogic.httpd.register.*.html=\
weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.*.html=\
defaultServers=132.147.35.221:7001|132.147.35.222:7001
weblogic.httpd.register.*.jsp=\
weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.*.jsp=\
defaultServers=132.147.35.221:7001|132.147.35.222:7001
weblogic.httpd.register.*.servlet=\
weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.*.servlet=\
defaultServers=132.147.35.221:7001|132.147.35.222:7001
these are weblogic server as proxy webserver errors:
星期一 八月 20 17:42:38 GMT+08:00 2001:<I> <ServletContext-General>
helloWorld: init
星期一 八月 20 17:42:38 GMT+08:00 2001:<E> <ServletContext-General>
Servlet failed with Exception
java.lang.NullPointerException
at weblogic.servlet.internal.HttpClusterServlet.init(HttpClusterServlet.java:99)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:499)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java,
Compiled Code)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:442)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:200)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:115)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:922)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:886)
at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
tell me a right configuration please ,thanks.
############### Cluster Proxy Configuration ########################
weblogic.httpd.register.cluster=weblogic.servlet.internal.HttpClusterServlet
weblogic.httpd.initArgs.cluster=defaultServers=132.147.35.221:7001|132.147.3
5.222:7001
weblogic.httpd.defaultServlet=cluster
weblogic.allow.execute.weblogic.clustler=everyone
"chris" <[email protected]> wrote in message
news:[email protected]...
>
> I use weblogic server 5.1, configruation tow weblogic cluster server and
a weblogic
> web server, through weblogic web server received browser's http request
only,
> weblogic cluster server do with jsp and servlet, now html&jsp is ok but
servlet
> can not do with, if through weblogic cluster server do with jsp and
servlet direct,
> it's ok.
>
> this is my weblogic.properties section:
> -----------------------------------------------------------------
> weblogic.httpd.register.*.html=\
> weblogic.servlet.internal.HttpClusterServlet
> weblogic.httpd.initArgs.*.html=\
> defaultServers=132.147.35.221:7001|132.147.35.222:7001
> weblogic.httpd.register.*.jsp=\
> weblogic.servlet.internal.HttpClusterServlet
> weblogic.httpd.initArgs.*.jsp=\
> defaultServers=132.147.35.221:7001|132.147.35.222:7001
> weblogic.httpd.register.*.servlet=\
> weblogic.servlet.internal.HttpClusterServlet
> weblogic.httpd.initArgs.*.servlet=\
> defaultServers=132.147.35.221:7001|132.147.35.222:7001
> -----------------------------------------------------------------
>
>
>
> these are weblogic server as proxy webserver errors:
> -----------------------------------------------------------------
> 星期一 八月 20 17:42:38 GMT+08:00 2001:<I>
<ServletContext-General>
> helloWorld: init
> 星期一 八月 20 17:42:38 GMT+08:00 2001:<E>
<ServletContext-General>
> Servlet failed with Exception
> java.lang.NullPointerException
> at
weblogic.servlet.internal.HttpClusterServlet.init(HttpClusterServlet.java:99
> at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java
:499)
> at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.ja
va,
> Compiled Code)
> at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
a:442)
> at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:20
0)
> at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:115)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:922)
> at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
l.java:886)
> at
weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
Manager.java:269)
> at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:380)
> at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:268)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled
Code)
> -----------------------------------------------------------------
>
> tell me a right configuration please ,thanks.
Similar Messages
-
Hi
The advantage of JAAS is that you can specify different login modules to utilise
different types of authentication. However authentication to a weblogic server
will only work by calling weblogic.security.auth.Authenticate.authenticate (due
to weblogic's own implementation of the javax.security.auth. classes), thus only
one loginmodule is available.
Regards
rangaHi jerry
i already got that problem solved by removing jaas.jar file
from class path.
i don'nt how it is working with out in classpath...?
Jerry <[email protected]> wrote:
Hi Nivas,
I think that the problem you are seeing has something to do with the
placement of jaas.jar in your classpath
On WebLogic server, put jaas.jar in the classpath after weblogic.jar.
I would bet that you have it placed before weblogic.jar right now.
I don't think the exception that you're seeing right now has anything
to do with your weblogic.policy file right now, so I think it is
safe to not worry about it right now.
Hope this helps,
Joe Jerry -
Consumer Proxy - calling a webservice - XML transformation error
Hi
I had 3consumer proxy's of 3 wsdl's provided by 3 different 3rd party systems.
No issues with 2systems when i called from my se38 program, i am getting result set back.
but when calling 3rd proxy, no exceptions has been thrown by SAP, but result set is blank. I kept a break-point at call transformation (m_transformation) in method CL_SXMLP_DATA_STIF_SXML_SERIALIZABLEDESERIALIZE.
After call transformation, my OUTPUT structure does not get mapped from the response. Its empty.
But for the other 2 proxy's, at this point OUTPUT is mapped properly.
All the 3 proxy's are taking same request and giving same response(for example, if i send a Business Partner number, retunrning Address Details).
I am not sure whos problem is and i can see the response in SMICM(trace file) and SOAPUI is working fine.
Many thanks for any quick turnoutnd..
RamsHi,
what does the service?
XString listens to binary data.... With services you exchange xml messages (SOAP)... -> String
Maybe you have to convert your binary data into string?
I have created an email service... the attachments must be converted into a base64-String that a service can handle this issue.
regards -
Hardware Load Balancers and Cluster WebLogic Proxy Plug-in setting
Documentation states that we need to enable the Cluster WebLogic Proxy Plug-in setting when there is a proxy plugin or HttpClusterServlet configured.
We used to have Weblogic Proxy plugin and the setting is still there, also the proxy was replaced by the hardware loadbalancer. Everything works normally and no one complained, but I would assume that WebLogic Proxy Plug-in setting should not be applicable any longer.
Is it possibly harmful to have that setting there? Does it mean that the loadbalancer emulates WebLogic Proxy Plug-in and also need this set?
Thank youThe Weblogic Proxy Plug-in Enabled flag only affects the behavior of a WL proxy module (such as if you were using Apache to proxy to WL via the mod_wl.so module). The value controls what IP address is returned when you call request.getRemoteAddr() from your application. If not enabled, you will get the IP address of the web server that proxied the request. If enabled, you will get the remote client IP address (instead of the proxy IP address) facilitated by the WL-Proxy-Client-IP header. If you are no longer using a plug-in module, the setting will have no affect. Hope this helps...
-
I'm creating a servlet filter that filters the content of resources that are proxied
by the Weblogic Proxy servlet (weblogic.servlet.proxy.HttpProxyServlet)
The filtering of the content is working but getting the filtering of incoming
and outgoing headers is a problem.
I get ClasscastExceptions if I try to implement my own request wrapper in WL 7
SP2 (incoming headers). And filtering headers in the response wrapper (outgoing
headers) causes a IndexOutOfBoundsException. This is caused by a call to response.setHeader
in the wrapper.
Has someone managed to get header filtering to work?
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
at java.io.DataInputStream.read(DataInputStream.java:108)
at weblogic.servlet.proxy.GenericProxyServlet.sendResponse(GenericProxyServlet.java:595)
This looks like a bug in the ProxyServlet. I would report this to support.
Sam
Sven Andersson wrote:
> I'm creating a servlet filter that filters the content of resources that are proxied
> by the Weblogic Proxy servlet (weblogic.servlet.proxy.HttpProxyServlet)
>
> The filtering of the content is working but getting the filtering of incoming
> and outgoing headers is a problem.
>
> I get ClasscastExceptions if I try to implement my own request wrapper in WL 7
> SP2 (incoming headers). And filtering headers in the response wrapper (outgoing
> headers) causes a IndexOutOfBoundsException. This is caused by a call to response.setHeader
> in the wrapper.
>
> Has someone managed to get header filtering to work?
>
> java.lang.IndexOutOfBoundsException
> at java.io.BufferedInputStream.read(BufferedInputStream.java:270)
> at java.io.DataInputStream.read(DataInputStream.java:108)
> at weblogic.servlet.proxy.GenericProxyServlet.sendResponse(GenericProxyServlet.java:595)
-
IP address lost in Weblogic proxy plugin
Hi,
We have 4 web servers that forward requests for jsps to 10 weblogic instances
working in a cluster. The web servers have IPlanet with weblogic proxy plugin.
One of the jsps has logic to retrieve the client's IP address and then return
the name of the country to which the IP address belongs. But since the jsp always
receives requests from one of the 4 web servers on the same LAN, it gets only
the internal IP address of the web server and returns no country code. To retrieve
the IP address of the caller in the jsp, I'm using
ipAddress = request.getRemoteAddr();
How can I make my jsp know the actual source IP address of the client (i.e the
end user)?
Any help would be appreciated.
Dipak Jha
Try increasing the "AcceptBackLog" settings on the weblogic server and then verify for any changed behavior.
Raise the Accept Backlog value from the default by 25 percent. Continue increasing the value by 25 percent until the messages cease to appear.
Link :[http://e-docs.bea.com/wls/docs81/perform/WLSTuning.html#1136287] -
Weblogic proxy plugin closes keep-alive connections to clients randomly
In short we have following arhitecture:
clients ---> wl proxy plugin 1 ----> weblogic 1
clients ---> wl proxy plugin 2 ----> weblogic 2
Beacuse of the application/installation specific requirements, we are not using failover, one wl proxy always forwards requests to one weblogic (simple configuration).
Application is TR-069 protocol based (SOAP over HTTP) so it very much relays on persistence TCP connections (Connection: keep-alive). This TCP persistence has to work correctly in order that TR-069 messages are exchanged in required order, otherwise we have a error on application layer.
Here and there we've noticed applications errors which suggest that we have some problems in TCP connection between the client and the weblogic server. After sniffing, we've noticed that weblogic proxy plugin (Apache) randomly, or because of some other reason we do not know, decides to close TCP connection to client, even app on weblogic did not request so ???
As a result, client opens new connection to the server with new TR-069 session and it gets bounced beacuse it allready has one open on weblogic server.
We've sniffed, traced everything we could, we were searching for patterns in time, etc... but we can not find the reason why proxy plugin decides to close the connection to the client (not to the weblogic server).
Trace (replaced sensitive information):
Thu Apr 29 15:05:50 2010 <958012725463463784> URL::parseHeaders: CompleteStatusLine set to [HTTP/1.1 200 OK]
Thu Apr 29 15:05:50 2010 <958012725463463784> URL::parseHeaders: StatusLine set to [200 OK]
Thu Apr 29 15:05:50 2010 <958012725463463784> parsed all headers OK
Thu Apr 29 15:05:50 2010 <958012725463463784> sendResponse() : r->status = '200'
Thu Apr 29 15:05:50 2010 <958012725463463784> canRecycle: conn=1 status=200 isKA=1 clen=545 isCTE=0
Thu Apr 29 15:05:50 2010 <958012725463463784> closeConn: pooling for '$IP$/$PORT$'
Thu Apr 29 15:05:50 2010 <958012725463463784> request [$URL$] processed successfully..................
!!!! Now it closes the TCP connection and inserts "Connection: close" HTTP header !!!
WL proxy plugin conf params are:
WebLogicCluster $IP$:$PORT$
DynamicServerList OFF
KeepAliveTimeout 90
MaxKeepAliveRequests 0
KeepAliveSecs 55
Apache worker configuration is:
<IfModule mpm_worker_module>
PidFile var/run/httpd-worker.pid
LockFile var/run/accept-worker.lock
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 200
ThreadsPerChild 200
MaxClients 2000
MaxRequestsPerChild 0
AcceptMutex pthread
</IfModule>
Why weblogic proxy plugin ignores Keep-alive directive and decides to close connection to the client by itself?
Any help?If a WebLogic Server instance listed in either the WebLogicCluster parameter or a dynamic cluster list returned from WebLogic Server fails, the failed server is marked as "bad" and the plug-in attempts to connect to the next server in the list.
MaxSkipTime sets the amount of time after which the plug-in will retry the server marked as "bad." The plug-in attempts to connect to a new server in the list each time a unique request is received (that is, a request without a cookie).
Note: The MaxSkips parameter has been deprecated as the MaxSkipTime parameter.
See also here: http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs81/plugins/plugin_params.html
You said the problem arises under significant load. Maybe, it is wise to tune the number file descriptor's on your operating system. HTTP connections are nothing more than TCP sockets on the operating system. All modern operating systems treat sockets as a specialized form of file access and use data structures called file descriptors to track open sockets and files for an operating system process. To control resource usage for processes on the machine, the operating system restricts the number of open file descriptors per process. You should be aware that all TCP connections that have been gracefully closed by an application will go into what is known as the TIME_WAIT state before being discarded by the operating system.
On most unix systems you can use netstat -a | grep TIME_WAIT | wc -l to detemine the number of socket in time_wait state. You have to check with your system adminstrator how to tune the tcp_time_wait_interval. On solaris you can use: /usr/sbin/ndd -set /dev/tcp tcp_time_wait_interval 60000 -
Can't get IIS to WebLogic Proxying to Work
Hi all,
It seems this post adds to many similar ones - the issue being that of successfully
deploying iisproxy.dll, iisforward.dll and iisproxy.ini. I have IIS 4.0 running
on NT 4.0 Server, and WebLogic 6.0 SP1 running on a seperate machine under Windows
2000.
I can proxy by file type no problem, it's proxying by path/proxying servlets that's
biting me.
I have followed the instructions at http://e-docs.bea.com/wls/docs60/adminguide/isapi.html#100367.
Here are the instructions and what I've done in response to them:
"1. Place the iisforward.dll file in the same directory as the iisproxy.dll file
and add the iisforward.dll file as a filter service in IIS"
I copied iisforward.dll and iisproxy.dll from my weblogic machine to C:\WINNT\system32\inetsrv
on the IIS machine.
I added iisforward.dll as a filter service in MS Management Console by choosing
properties > ISAPI FIlters tab > Add. Here I browsed to iisforward.dll and named
the filter WebLogic Filter Servlet (The name is not important, right?)
"2. Register .wlforward as a special file type to be handled by iisproxy.dll."
So, in MS Management Console I chose properties > home directory > Configuration
Add and browsed to iisproxy.dll and registered it with the file type .wlforward."3. Define the property WlForwardPath in iisproxy.ini. WlForwardPath defines the
path that is proxied to WebLogic Server."
So I added the following line to iisproxy.ini on the WebLogic machine AND on the
IIS machine:
WLForwardPath=/CIM2WebApplication
My web app is in exploded directory form at E:\bea\wlserver6.0sp1\config\terrance\applications\CIM2WebApplication
(where CIM2WebApplication is the root directory of the app in which WEB_INF and
my jsps and html files are located.)
In addition, in web.xml, I have defined a servlet as follows:
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>net.companyname.cimsweb.RegisterUser</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>
(Excuse all this the verbosity, but hopefully no-one will wonder what exactly
I did!)
When I use the following URL http://iiserverip/CIMS2WebApplication/register I
get a 404 from IIS (i.e. nothing at all is getting proxied to WL, not even a wrong
url)
OK, I've finished! If someone would like to catch their breath and help me out
I'd be extremely grateful! Thanks so much.
TerranceI think we honor both WLForwardPath and WlForwardPath in the latest 5.1 service
pack and 61 release.
thanks
Jong
"Nasir" <[email protected]> wrote:
>
I have had similar problems, there is an error in the documentation,
WlForwardPath
needs to be spelled with a lower case "l".
Nasir
WLForwardPath=/CIM2WebApplication
"Anurag Wakhlu" <[email protected]> wrote:
Hi,
I have a similar problem. (WLS sp8, win2k, IIS)
Proxy by path does not work. Proxy by extension works.
AW
"Jong Lee" <[email protected]> wrote in message
news:[email protected]...
Did you try to request the servlet without IIS proxy?
Please feel free to contact customer support to help you with thissetup
step-by-step.
thanks
Jong
"Terrance Goldman" <[email protected]> wrote:
Hi all,
It seems this post adds to many similar ones - the issue being that
of
successfully
deploying iisproxy.dll, iisforward.dll and iisproxy.ini. I have IIS4.0
running
on NT 4.0 Server, and WebLogic 6.0 SP1 running on a seperate machine
under Windows
2000.
I can proxy by file type no problem, it's proxying by path/proxyingservlets
that's
biting me.
I have followed the instructions at
http://e-docs.bea.com/wls/docs60/adminguide/isapi.html#100367.
Here are the instructions and what I've done in response to them:
"1. Place the iisforward.dll file in the same directory as theiisproxy.dll
file
and add the iisforward.dll file as a filter service in IIS"
I copied iisforward.dll and iisproxy.dll from my weblogic machineto
C:\WINNT\system32\inetsrv
on the IIS machine.
I added iisforward.dll as a filter service in MS Management Consoleby
choosing
properties > ISAPI FIlters tab > Add. Here I browsed to iisforward.dll
and named
the filter WebLogic Filter Servlet (The name is not important, right?)
"2. Register .wlforward as a special file type to be handled byiisproxy.dll."
So, in MS Management Console I chose properties > home directoryConfiguration
Add and browsed to iisproxy.dll and registered it with the filetype
.wlforward.
"3. Define the property WlForwardPath in iisproxy.ini. WlForwardPath
defines the
path that is proxied to WebLogic Server."
So I added the following line to iisproxy.ini on the WebLogic machine
AND on the
IIS machine:
WLForwardPath=/CIM2WebApplication
My web app is in exploded directory form atE:\bea\wlserver6.0sp1\config\terrance\applications\CIM2WebApplication
(where CIM2WebApplication is the root directory of the app in whichWEB_INF
and
my jsps and html files are located.)
In addition, in web.xml, I have defined a servlet as follows:
<servlet>
<servlet-name>register</servlet-name>
<servlet-class>net.companyname.cimsweb.RegisterUser</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>register</servlet-name>
<url-pattern>/register</url-pattern>
</servlet-mapping>
(Excuse all this the verbosity, but hopefully no-one will wonder
what
exactly
I did!)
When I use the following URL
http://iiserverip/CIMS2WebApplication/register
I
get a 404 from IIS (i.e. nothing at all is getting proxied to WL,not
even a wrong
url)
OK, I've finished! If someone would like to catch their breath andhelp
me out
I'd be extremely grateful! Thanks so much.
Terrance -
I am attempting to cluster two instances of WebLogic 5.1 using a third
instance of WebLogic 5.1 as the proxy. Each instance resides on its own
box. "The box" is NT today, Solaris in production.
Can I have an SSL connection between the WebLogic Proxy and the Webloguc
Cluster? Seems like I can, but I cannot verify this in the docs nor find an
example of how to configure it.
Can anyone show me how to do it?
Bob Kiep
Diamond Technology Partners
Thanks for verifying the feature set. We are using Checkpoint as the
firewall, so we can use their secure connection add-on to ensure the web-app
server connection is secure - it takes encryption load off of the app sever
and web server CPU's anyway....
Bob
"Robert Patrick" <[email protected]> wrote in message
news:[email protected]..
> Bob,
>
> This is not currently supported. If you need this today, you can use a
third
> party tool like SafePassage by C2.net or a hardware-based solution. This
is
> something that will be supported in future versions of the server.
>
> Hope this helps,
> Robert
>
> Bob Kiep wrote:
>
> > I am attempting to cluster two instances of WebLogic 5.1 using a third
> > instance of WebLogic 5.1 as the proxy. Each instance resides on its own
> > box. "The box" is NT today, Solaris in production.
> >
> > Can I have an SSL connection between the WebLogic Proxy and the Webloguc
> > Cluster? Seems like I can, but I cannot verify this in the docs nor
find an
> > example of how to configure it.
> >
> > Can anyone show me how to do it?
> >
> > Bob Kiep
> > Diamond Technology Partners
>
-
About the proxy servlet!!!!!
Hi there,
I need to us the proxy servlet to redirect requests that cannot be served by
my weblogic server to another server. I'm using the following configuration
parameters in my weblogic.properties file:
weblogic.httpd.defaultServlet=proxy
weblogic.httpd.register.proxy=weblogic.t3.srvr.HttpProxyServlet
weblogic.httpd.initArgs.proxy=redirectURL=http://www.abc.com
The problem that I'm facing is that instead of redirecting requests that
cannot be satisfied by my server to www.abc.com, the proxy servlet is
redirecting all the requests to www.abc.com...
Any help would be appreciated..
Thanks
Gaurav
Gaurav:
The proxy servlet documentation is wrong.
If the HttpProxyServlet registration is made the default servlet then, all
request for servlet aliases that WebLogic cannot resolve it will proxy. This
does not include files.
I have filed an issue to:
1. fix the documentation
2. provide an enhancement to provide for the feature you desire.
The only workaround currently is to also register (or maybe instead) whatever
URI or mime-types you know you want proxied to the HttpProxyServlet.
Cheers
Mark G.
Gaurav wrote:
> Hi there,
>
> I need to us the proxy servlet to redirect requests that cannot be served by
> my weblogic server to another server. I'm using the following configuration
> parameters in my weblogic.properties file:
>
> weblogic.httpd.defaultServlet=proxy
> weblogic.httpd.register.proxy=weblogic.t3.srvr.HttpProxyServlet
> weblogic.httpd.initArgs.proxy=redirectURL=http://www.abc.com
>
> The problem that I'm facing is that instead of redirecting requests that
> cannot be satisfied by my server to www.abc.com, the proxy servlet is
> redirecting all the requests to www.abc.com...
>
> Any help would be appreciated..
>
> Thanks
> Gaurav
=====================================================
Reply to the newsgroup. Don't reply to this mail
alias. This is used only for answering posts on
WebLogic Newsgroups.
=====================================================
[att1.html]
-
Unable to find .so file for Apache proxy in Weblogic 92
Hi,
I'm trying to configure Apache as a proxy for Weblogic 9.2 cluster on HP - Itanium. Apache and Weblogic are installed, configured and running. I used the jar file installer to install Weblogic.
Now i'm unable to find the Apache plugin anywhere in my weblogic directory. Any ideas how I can get one ??
Thanks in advance,
Anup.Hi,
Thank you both for your help. Installed the plugins and now the proxy is running very nicely. Configuration was really very simple.
Would like to ask one nore thing. The system i'm configuring now is supposed to cater a very heavy load in terms of connections. We know the application can take it as right now the Weblogic HTTP proxy is what is failing and that's when we decided on Apache. Any recomendations on the Apache side ??
Thanks once more,
Anup. -
Netscape SSL Proxy to Weblogic 6.0 SSL port doesn't work.
Has anyone tried Netscape iPlanet Proxying to Weblogic 6.0 port 7002 using SSL? I'm getting an error reponse when I look at the Netscape error log file. The message: "[12/Apr/2001:15:37:15] failure (29375): for host 191.162.18.16 trying to GET /Login.jsp, wl-proxy reports: Error reading WebLogic Response from 191.162.18.16:7002 at line 764 of proxy.cpp, errMsg='File not found'", but if I use port 7001, it works fine.This is my obj.conf:Service fn="wl-proxy" WebLogicHost="191.162.18.16" WebLogicPort="7002" SecureProxy="ON" TrustedCAFile="/opt/bea_weblogic/wlserver6.0/config/myserver/democert.pem" RequireSSLHostMatch="FALSE"
The server was stopped at 5:52 pm cst....
Dec 30, 2008 5:52:40 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-12080
This is the log at start-up at 8:30 pm cst...
Dec 30, 2008 8:26:06 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\j2sdk1.4.2_13
Dec 30, 2008 8:26:06 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-12080
Dec 30, 2008 8:26:06 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1098 ms
Dec 30, 2008 8:26:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2008 8:26:06 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Dec 30, 2008 8:26:11 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 30, 2008 8:26:11 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [GADXML] startup failed due to previous errors
Dec 30, 2008 8:26:13 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-12080
Dec 30, 2008 8:26:13 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 30, 2008 8:26:13 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/187 config=null
Dec 30, 2008 8:26:13 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7488 ms -
WebLogic proxy plugin: getPooledConn: No more connections in the pool
Hi,
We have weblogic proxy plugin installed in Sun One web server. but frequently we are getting following errors in proxy log:
<1670612410085901> attempt #0 out of a max of 5
<1670612410085901> Trying a pooled connection for '<IP>/<port>/<port>'
<1670612410085901> getPooledConn: No more connections in the pool for Host [<IP>] Port[<port>] SecurePort[<port>]
Can anybody please tell how this proxy plugin manages connection pools? I don't find any minimum / maximum number of conection to mention anywhere or how exactly it works?Try increasing the "AcceptBackLog" settings on the weblogic server and then verify for any changed behavior.
Raise the Accept Backlog value from the default by 25 percent. Continue increasing the value by 25 percent until the messages cease to appear.
Link :[http://e-docs.bea.com/wls/docs81/perform/WLSTuning.html#1136287] -
Sunone webserver(proxy) --SSL- weblogic
In our environment we are using Sunone webserver 7.0.9 as a proxy server to forward the request to the weblogic server 10.3.3. Now the requirement is to secure the communication between the proxy and weblogic server. As a standard way we can configure the proxy server to use SSL in obj.conf as below:
<Object name=”weblogic” ppath=”*/DefaultWebApp/*”>
Service fn=wl_proxy WebLogicHost=”myIP WebLogicPort=”mySSLPort SecureProxy=”ON” Debug=”ALL” WLLogFile=”/home/support/IPlanet60SP5/server/logsupport.txt” TrustedCAFile=”/home/support/IPlanet60SP5/TrustedCA.pem” RequireSSLHostMatch=”true”
</Object>
My question is when we have installed a self signed certificate on weblogic, how do we trust that certificate in the proxy server. If it was a third party certificate we can get the root CA certificate that can be added as trust entry in the obj.conf. But in self signed case we do not have a intermediate or root certificate. So how do we trust the self signed server certificate in the proxy server.851935 wrote:
In our environment we are using Sunone webserver 7.0.9 as a proxy server to forward the request to the weblogic server 10.3.3. Now the requirement is to secure the communication between the proxy and weblogic server. As a standard way we can configure the proxy server to use SSL in obj.conf as below:
<Object name=”weblogic” ppath=”*/DefaultWebApp/*”>
Service fn=wl_proxy WebLogicHost=”myIP WebLogicPort=”mySSLPort SecureProxy=”ON” Debug=”ALL” WLLogFile=”/home/support/IPlanet60SP5/server/logsupport.txt” TrustedCAFile=”/home/support/IPlanet60SP5/TrustedCA.pem” RequireSSLHostMatch=”true”
</Object>
My question is when we have installed a self signed certificate on weblogic, how do we trust that certificate in the proxy server. If it was a third party certificate we can get the root CA certificate that can be added as trust entry in the obj.conf. But in self signed case we do not have a intermediate or root certificate. So how do we trust the self signed server certificate in the proxy server.Just import the self signed cert as trusted. -
Help: I'm sure it is a Bug in JNI calling WebLogic EJB
Help me! I'm using jni to call weblogic EJB from a Com+ component,here is the code:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include "stdafx.h"
#pragma unmanaged
#include <windows.h>
#include <jni.h>
#include <process.h>
#include <stdio.h>
#define USER_CLASSPATH "C:\\myClasses;C:\\j2sdk1.4.0\\lib\\tools.jar;Z:\\wlserver6.1\\lib\\weblogic.jar;"
/* where Prog.class is */
JavaVM *jvm;
* Function GetJNIEnv(void) returns the java environment pointer
* in case we are executing on a thread other than the one the
* jvm was created on.
JNIEnv* GetJNIEnv(void){
JNIEnv *env = NULL;
jint nRet = jvm->GetEnv((void **)&env, JNI_VERSION_1_2);
if(nRet == JNI_EDETACHED){
jvm->AttachCurrentThread((void **)&env, NULL);
return env;
* Function DoJNDI(void *arg) uses the Java Invocation API to
* execute the following Java code:
* Hashtable prop = new Hashtable();
* prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"
* prop.put( Context.PROVIDER_URL, "t3://192.168.40.137:7001" );
* ctxInitial = new InitialDirContext( prop );
void DoJNDI(void *arg){
jclass clsHash, clsInitDirCx;
jmethodID mHashInit, mHashPut, mInitDirCxInit;
jobject objHash, objInitDirCx;
JNIEnv *env = GetJNIEnv(); // Get the environment if on a different thread
clsHash = env->FindClass("java/util/Hashtable");
mHashInit = env->GetMethodID(clsHash, "<init>", "()V");
objHash = env->NewObject(clsHash, mHashInit);
mHashPut = env->GetMethodID(clsHash, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
jstring jstrICxFactoryPut = env->NewStringUTF("java.naming.factory.initial");
jstring jstrICxFactoryVal = env->NewStringUTF("weblogic.jndi.WLInitialContextFactory");
env->CallObjectMethod(objHash, mHashPut, jstrICxFactoryPut,jstrICxFactoryVal);
jstring jstrProviderUrlPut = env->NewStringUTF("java.naming.provider.url");
jstring jstrProviderUrlVal = env->NewStringUTF("t3://192.168.40.137:7001");
env->CallObjectMethod(objHash, mHashPut, jstrProviderUrlPut,jstrProviderUrlVal);
clsInitDirCx = env->FindClass("javax/naming/InitialContext");
mInitDirCxInit = env->GetMethodID(clsInitDirCx, "<init>", "(Ljava/util/Hashtable;)V");
objInitDirCx = env->NewObject(clsInitDirCx, mInitDirCxInit, objHash);
if(objInitDirCx == NULL){
printf("%s test FAILED:\n\n", (char*)arg);
else{
printf("%s test PASSED\n\n", (char*)arg);
jvm->DetachCurrentThread();
* Function main(void) creates a JVM, and calls DoJNDI twice:
* Once as a regular function call, and once as a spun off thread.
void main() {
JavaVMInitArgs vm_args;
JavaVMOption options[5];
options[0].optionString = "-client";
options[1].optionString =
"-cp " USER_CLASSPATH;
options[2].optionString =
"-Djava.class.path=" USER_CLASSPATH;
//options[3].optionString =
// "-Xbootclasspath:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;z:\\wlserver6.1\\lib\\weblogic.jar;";
options[3].optionString =
"-Xbootclasspath/a:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;";
options[4].optionString =
"-Xbootclasspath/p:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;";
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 5;
vm_args.ignoreUnrecognized = JNI_TRUE;
JNIEnv *env;
jint res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
// *** Make the magic calls! (Both lines should do the same thing) ***
DoJNDI((void*)"Function call");
_beginthread(DoJNDI,0,(void *)"Thread call");
/* wait for thread(s) to finish */
Sleep(5000);
jvm->DestroyJavaVM();
But it always send me a Exception like below:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory.
Root exception is java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
when I search this problem in java.sun.com,an article announce that it is a bug that
JNDI not support multi-threads call,and it is fixed is JDK1.4 beta. The link is:
http://developer.java.sun.com/developer/bugParade/bugs/4307751.html
It seems that weblogic's JNDI is not support multi-thread call. what can i do?Try adding the following code before instantiating your initial context:
Thread.currentThread().setContextClassLoader( ClassLoader.getSystemClassLoader()
This fixed the problem for me.
-Brian
"Edward Lu" <[email protected]> wrote:
>
Help me! I'm using jni to call weblogic EJB from a Com+ component,here is
the code:
// This is the main project file for VC++ application project
// generated using an Application Wizard.
#include "stdafx.h"
#pragma unmanaged
#include <windows.h>
#include <jni.h>
#include <process.h>
#include <stdio.h>
#define USER_CLASSPATH "C:\\myClasses;C:\\j2sdk1.4.0\\lib\\tools.jar;Z:\\wlserver6.1\\lib\\weblogic.jar;"
/* where Prog.class is */
JavaVM *jvm;
* Function GetJNIEnv(void) returns the java environment pointer
* in case we are executing on a thread other than the one the
* jvm was created on.
JNIEnv* GetJNIEnv(void){
JNIEnv *env = NULL;
jint nRet = jvm->GetEnv((void **)&env, JNI_VERSION_1_2);
if(nRet == JNI_EDETACHED){
jvm->AttachCurrentThread((void **)&env, NULL);
return env;
* Function DoJNDI(void *arg) uses the Java Invocation API to
* execute the following Java code:
* Hashtable prop = new Hashtable();
* prop.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"
* prop.put( Context.PROVIDER_URL, "t3://192.168.40.137:7001" );
* ctxInitial = new InitialDirContext( prop );
void DoJNDI(void *arg){
jclass clsHash, clsInitDirCx;
jmethodID mHashInit, mHashPut, mInitDirCxInit;
jobject objHash, objInitDirCx;
JNIEnv *env = GetJNIEnv(); // Get the environment if on a different thread
clsHash = env->FindClass("java/util/Hashtable");
mHashInit = env->GetMethodID(clsHash, "<init>", "()V");
objHash = env->NewObject(clsHash, mHashInit);
mHashPut = env->GetMethodID(clsHash, "put", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;");
jstring jstrICxFactoryPut = env->NewStringUTF("java.naming.factory.initial");
jstring jstrICxFactoryVal = env->NewStringUTF("weblogic.jndi.WLInitialContextFactory");
env->CallObjectMethod(objHash, mHashPut, jstrICxFactoryPut,jstrICxFactoryVal);
jstring jstrProviderUrlPut = env->NewStringUTF("java.naming.provider.url");
jstring jstrProviderUrlVal = env->NewStringUTF("t3://192.168.40.137:7001");
env->CallObjectMethod(objHash, mHashPut, jstrProviderUrlPut,jstrProviderUrlVal);
clsInitDirCx = env->FindClass("javax/naming/InitialContext");
mInitDirCxInit = env->GetMethodID(clsInitDirCx, "<init>", "(Ljava/util/Hashtable;)V");
objInitDirCx = env->NewObject(clsInitDirCx, mInitDirCxInit, objHash);
if(objInitDirCx == NULL){
printf("%s test FAILED:\n\n", (char*)arg);
else{
printf("%s test PASSED\n\n", (char*)arg);
jvm->DetachCurrentThread();
* Function main(void) creates a JVM, and calls DoJNDI twice:
* Once as a regular function call, and once as a spun off thread.
void main() {
JavaVMInitArgs vm_args;
JavaVMOption options[5];
options[0].optionString = "-client";
options[1].optionString =
"-cp " USER_CLASSPATH;
options[2].optionString =
"-Djava.class.path=" USER_CLASSPATH;
//options[3].optionString =
// "-Xbootclasspath:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;z:\\wlserver6.1\\lib\\weblogic.jar;";
options[3].optionString =
"-Xbootclasspath/a:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;";
options[4].optionString =
"-Xbootclasspath/p:c:\\j2sdk1.4.0\\lib\\tools.jar;z:\\wlserver6.1\\lib\\weblogic_sp.jar;";
vm_args.version = 0x00010002;
vm_args.options = options;
vm_args.nOptions = 5;
vm_args.ignoreUnrecognized = JNI_TRUE;
JNIEnv *env;
jint res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
// *** Make the magic calls! (Both lines should do the same thing) ***
DoJNDI((void*)"Function call");
_beginthread(DoJNDI,0,(void *)"Thread call");
/* wait for thread(s) to finish */
Sleep(5000);
jvm->DestroyJavaVM();
But it always send me a Exception like below:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory.
Root exception is java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:207)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:649)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
when I search this problem in java.sun.com,an article announce that it is
a bug that
JNDI not support multi-threads call,and it is fixed is JDK1.4 beta. The
link is:
http://developer.java.sun.com/developer/bugParade/bugs/4307751.html
It seems that weblogic's JNDI is not support multi-thread call. what can
i do?
Maybe you are looking for
-
Plz help!!!! what is hibernation and how do we turn it off?
i phoned apple cuz my ipod sometimes doesnt turn on when i press a button and apple said turn off hibernation .
-
Replaceregexp tag in build.xml to pass the value dynamically
Hi, First of all I apologizes as this is not a java question, but sure you guys can help me out. In my build.xml, i have some thing like this:- <target name="all" depends="compile,clean_classes,replaceTemplates"/> <target name="compile" depends=" cre
-
ImageElement Event Inconsistencies
This is a followup from a post I made 2 weeks ago titled: "perfect time to capture image size" Filed bug: FM-301 All I'm trying to do is find the ONE event that will give me a consistent width and height for the current imageElement, so I can run
-
I am trying to setup oracle dataguard(10g) in logical standby mode and i'm getting this error. Could anyone please help me with this SQL> alter database create logical standby controlfile 2 AS 'D:\oradata\PRIMARYDB\STANDYCTL.ctl'; alter database crea
-
Hi, We did a client copy from our R/3 Production System to our R/3 test system, which is the source for our BW development system. If I try to activate the source system for the R/3 test system in BW, it termintaes with a number of problems like "BW