Can SunOne Web Server get REMOTE_USER?
Scenario:
Users authenticate to Active Directory on Windows and browse an application from their IE browser to a web application hosted by SunOne Web Server 6.1.
Will the SunOne Web Server application be able to pick up the REMOTE_USER HTTP header?
Thanks in advance.
IE will not send user id in http headers. You can get the user id if you do NTLM authentication which the web server does not support. If your app is java based you can look into doing NTLM auth in Java and get the user id that way.
See:
http://www.rgagnon.com/javadetails/java-0441.html
Similar Messages
-
Problem running WebLogic as plugin for SunOne web server on Solaris
I tried to set up WebLogic (8.1) as plugin for SunONE (iPlanet) web server. I followed instraction from http://e-docs.bea.com/wls/docs81/plugins/nsapi.html#110496. SunONE server start up successfully. But I have problem to connect my web application, and SunONE web server returns following error:
"for host 172.23.54.5 trying to GET /arsys/home, wl-proxy reports: Neither 'WebLogicCluster' nor 'WebLogicHost' specified in parameters"
I tried both SunOne (6.1 sp3) and iPlanet (6.0), I saw same problem.
Can anyone help me on this?
Thanks
CharlieTo configure sunone to work with WLS, you need to make entires in the magnus.conf and the obj.conf.From the error, it seems as if u missed the entries in the obj.conf.
-
Memory leak on SunOne Web Server 6.1 on application reload
Hi!
I am pretty sure that i have found a memory management problem in
SunOne Web Server 6.1 .
It started with an OutOfMemory error we got under heavy load . After
some profiling with Jprofiler i didn't find any memory leaks in the
application.Even under heavy load (generated by myself) i can't find
anything ,more, i can't reproduce the error! The memory usage is
about 20Mb and does not go up .
However it is pretty simple to see the following behavior:
[1] Restart the server (to have a clear picture) and wait a little for
memory usage to stabilize.
[2] In the application dir. touch .reload or one of the classes:
The memory usage goes up by another 50Mb (huge amount of mem. taking
into account the fact that it used only 20Mb under any load befor).
Do this another time and another 20Mb gone etc..
The JProfiler marks the memory used by classes . And it can be
clearly seen the GC can't release most of it.
I AM sure this is not the application that takes all the memory.
Another hint : after making the server to reload application i can see
that the number of threads ON EVERY RELOAD is going up by ~10-20
threads .The # of threads goes lower over time but not the mem usage.
My system:
Sparc Solaris 9 ,Java 1.4.2_04-b05, Sun ONE Web Server 6.1SP5
Evgenymy guess is that - because of '.reload' , web container tries to
recompile all the classes that you use within your web application and
hence the memory growth is spiking up.What do you mean by "tries to recompile"?The classes in
Web-inf are already compiled! And i have only ~5 jsp's .
(the most part of the applic. is a complicated business logic)
If you are talking about reloading them ,yes,that's the purpose of .reload,
isn't it? :).But it seems that container uses the memory for it's own
classes: the usage of memory for my classes don't really grow
that much (if at all) after reload (according to profiler)
Also the real problem is that the memory usage grows to much for
too long (neither seen it going down) and thus ends with OutOfMemory.
if you are seeing the memory growth to be flat in stress environment,
then I am not sure that why do you think that there is a memory leak ?There is no memory leak in stress environment.
There is memory leak while reloading the application.
It is a memory hog for sure (~20-30Mb for every reload).
Memory leak?It seems that way because i can't see memory usage go
down and after a lot of reloads OutOfMemory is thrown.
also, what is jvm heap that you use ? did you try jvm tune options like -
XX:+AggressiveHeap ?256Mb.I can set it bigger ,but how do i know that it will not just delay
the problem ?
Thanks for response.
Evgeny -
Dear all,
I would like to install SunOne web server sp6 on Redhat 9.0 for evaluation.
I set some parameters as following.
* make libncurses.so.4 link file
* set LD_ASSUME_KERNEL=2.4.1
* change name from netscape to mozilla in startconsole.
* set firewall to pass port 80, etc
When I touch ./startconsole, admin server is displayed and I touch ID and password.
But browser display "The administration server was unable to fulfill your request."
If I install Sunone web server 6.1, I don't see this message and I can turn web service on.
If there is more set information on RH9.0, please give me advices.
Regards,
Masaaki KatoWS6.0 and 6.1 are not certified to run on RH9. They may behave in unexpected ways if you run them in that environment.
If you must run on RH9, I recommend that you only test/use WS6.1. -
NSAPI plugin has high CPU utilization on Sunone web server 6.0 SP5
Hi,
I am running WL 6.1 SP3 with pluginProxy SP03 on Sunone web server 6.0SP5 on Solaris.
Seeing very high CPU utilization with 3 threads running wl_proxy (about 33% each).
Any latest NSAPI pluginproxy patch I can use to fix this?
WalterI'm having the same problems as all the above posts. I run a colloborative tool which uses IPlanet as a directory server and I receive the Event ID:25 Source: WebServer 6.0 error as well as Event ID:0 Source:https-admnserv6.0 which gives "the local computer may not have the necessary registry information or message DLL files to display messages from a remote computer". I have 3 servers built and all exhibit the same errors.
-
Does URL Policy Agent of SunONE Web Server 6.1 works with Identity Server 6
Hi,
I'm using URL Policy Agent of SunONE Web Server 6.1, and using Identity Server 6.1 to configure policy to access web resource such as http://myweb.org.cn/test/*
After configyration, I try to access the resources http://myweb.org.cn/test/test.html
The redirection is ok, the IS login appear, but after login successfully, it still tell me that I don't have permission to view this web page.
Is this because of URL policy agent don't support IS 6.1?
Many thanks,Can anybody help me with the steps to generate core for this issue.. I followed the steps as said in http://blogs.sun.com/meena/entry/troubleshooting_server_crashes_enabling_core but I don't see any core generated when server crashes..
Setup Info:
- OS is RHEL 4.0
- Sun ONE Web Server 6.1SP7
- Policy Agent 2.2 -
SunOne Web Server (JSP & class)
I have tried to read the documentation but I am just not getting it. I have 2 files myjsp.jsp and mybean.class that I would like SunOne Web Server to display my jsp using the javabean. Where do I put the files? (I have seen all kinds of things on deploying a WAR file etc. I just want to place these two files on the web server and go.)
I have my jsp located at c:\iPlanet\Servers\docs\webdev and my class file located at[b] c:\iPlanet\Servers\docs\webdev\web-inf\classes. What do I need to tell the server how to load the javabean?Hi, elving
This is good information. Thanks very much.
Actually, I am not using SSL, just plain http connection with basic auth. It might be the cache-control header that causes the head ache. 6.0 response does not have the cache-control header, but 6.1 has.
The interesting thing is that adding a servlet mapping on 6.1 solves the problem.
I will take a further look tomorrow.
Cheers,
Harry
I doubt the problem has to do with the Content-Length
header.
I'd guess that you're using SSL. Are you? If so,
you're almost certainly bumping into a known bug (or,
as Microsoft describes it, a "feature") in Internet
Explorer. Microsoft article KB316431 at
http://support.microsoft.com/default.aspx?scid=316431h
as some information on the problem. As the article
points out, the problem occurs when Internet Explorer
needs to invoke an external application to handle a
file that was served over SSL with Cache-Control:
no-cache and/or Pragma: no-cache headers.
A work around would be force Web Server to send
Cache-Control and Pragma headers that don't include
the no-cache directive. For example, the following
lines could be added to the obj.conf configuration
file:<Object ppath="*.jnlp">
Output fn="set-variable" set-srvhdrs="Cache-Control:
private"
Output fn="set-variable" set-srvhdrs="Pragma:
private"
</Object>Fortunately, it sounds like you've already
found another viable work around. -
What the IP address does the Web Server get?
Hi all,
We have a scenario like this:
Client>Proxy(like squid)........>Web Server( 6.1 SP7)>Application
We know that the Web Server will get the remote IP address, and set as proxy-ip in HTTP Header.
But, what the exact remote IP address does the Web Server get? The IP of the Proxy? or The IP of the original client?
If we want to get the original client IP in the Application, what do we need to do?
Thanks!
ShenLook at the documentation for customized logging
http://docs.sun.com/app/docs/doc/821-1497/gdsxf?l=en&a=view
Basically, you configure a custom log file format in SJSWS
And instead of using the variable: %Ses->client.ip%
you will use something like the variable: %Req->headers.X-Forwarded-For% -
Access Control for SunOne Web Server 6.0.5 vs. 6.0.4
This question is about bypassing an appserver by specifying an alias without the appserver vitual host so as to download a class or jar file. With only the default ACL on the 6.0.4 version of the Sunone web server I found that .class and .jar files were not downloadable. However, on version 6.0.5 they are. For example, the URL:
https://myhost/appserv/alias/path/file.jsp
would return the html resulting from that file.jsp file being processed by my application server. But by contrast, the URL:
https://myhost/alias/path/file.jsp
will prompt the user as to where they want to save the file. Specifying the alias immediately after the hostname (omitting appserv) will allow free access to any files under that aliases target directory. This is a problem especially for .class and .jar files which contain server side programs. I have created an ACL as described in the administrators guide and this does solve the problem (thank goodness for that). My question is, why didn't I experience this problem before?To Disable directory listing : http://www.sun.com/bigadmin/features/hub_techtips/dir_list_web_srvr.jsp
-
SunONE Web Server 6.1 on linux: can't create a new server
Hi all
When we try to create a new server from the Admin server ("Add Server" button), and after fill the form and click OK, we get the following error in the "errors" log file of the admin server:
[23/Oct/2003:11:25:35] failure (14588): for host 10.95.4.28 trying to POST /https-admserv/bin/install, cgi_scan_headers reports: HTTP4044: the CGI program /opt/SUNWwbsvr/bin/https/admin/bin/install did not produce a valid header (program terminated without a valid CGI header. Check for core dump or other abnormal termination)
As I told in the subject, web server is installed on a linux (red hat) box
Is it a bug in the WebServer 6.1? for linux or for solaris too?
RegardsHmmmm, well stick with the 7.2 version and let's see if we can figure this out.
What version of perl is on the box?
--jb -
Getting errors while running jsp on sunone web server 6.1
While i created war file and delpoyed my application on web server6.1, it loads default jsp(welocme.jsp) page fine. but when I submit data it gives me following error.
[06/Oct/2003:09:17:53] info ( 600): Internal Info: loading servlet /custapprec/bonus.jsp
[06/Oct/2003:09:17:58] info ( 600): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:63: Class myBean.BonusBean not found.
myBean.BonusBean Bonus = null;
^
C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:65: Class myBean.BonusBean not found.
Bonus= (myBean.BonusBean)
^
C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:69: Class myBean.BonusBean not found.
Bonus = (myBean.BonusBean) Beans.instantiate(this.getClass().getClassLoader(), "myBean.BonusBean");
^
C:\iPlanet\Servers\https-NVS06S-W2K.abc.com\config\..\ClassCache\_jsps\_custapprec\_bonus_jsp.java:73: Variable Bonus may not have been initialized.
pageContext.setAttribute("Bonus", Bonus, PageContext.PAGE_SCOPE);
^
4 errors, 1 warning
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at com.iplanet.server.http.servlet.NSServletEntity.load(NSServletEntity.java:252)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:427)
[06/Oct/2003:09:17:58] warning ( 600): Internal error: Failed to get GenericServlet. (uri=/custapprec/bonus.jsp,SCRIPT_NAME=/custapprec/bonus.jsp)
anybody can please help me with this error?
ThanksYour stack trace indicates classes that are not part of Sun ONE Web Server 6.1 (e.g. com.iplanet.server.http.servlet.NSServletEntity) but are classes in earlier releases of the web server. It looks like your web application contains classes or .jar files that contain an older implementation of the JSP engine from a previous web server release. Remove these and give it another try.
-
Installing CGI on SunOne Web Server - Help!
I'm new to the SunOne WebServer and am trying to get CGI/Perl to work. I've tried all I know at the CGI directory page but still can't get Hello World to show up.
Running it as *.cgi shows a 405 - Method Not Allowed Error.
Running it as *.pl prompts me to save the file - you only get that when path to Perl is not correct, no?
What else do I need to know/change on the web server to get it to run?You have not indicated the web server version and OS that you are using. Anyway, the error that you report is probably because the CGI is not configured correctly on this server. Here are the docs for Web Server 6.1 to enable CGI:
http://docs.sun.com/source/819-0130/agprgrm.html#wp21207
Thanks
Manish -
Can I do automatic page refresh? How many of them can the web server take?
I'd like to ask this question in both short and (if you be so kind) in long form:
Short: Can a portion of my APEX page be set to refresh automatically ones every few minute? Not the whole page, just a portion. Would I have to use frames for that? Can they be invisible?
Long: I'd like to create a web interface, which would allow multiple users to track duration of some tasks. More importantly it has to allow other users to see each other's progress (which task somebody is on, how long he has been on it down to several minutes). I understand to server side of it. However, the client side presents a problem of information refresh. I want users to be able to sit without touching their mouses or keyboard and see changes for other users as they happen.
What do I mean by "as they happen?" Ideally, I'd like to present changes in real time. My brief research of Push HTTP technology, pointed toward Comet or Flash. However, I don't know much about web development and as of now, cannot commit too much time to learning new technologies.
The second best option, is to update information every couple of minutes. Two question arise here. First is the "short" question - please see above.
Let's say the page sections can be refreshed automatically. Then I have a question about the load. If I potentially get thousands of simultaneous users, each sending a refresh request every 2-3 minutes, how bad would be the load on the web server and on the network throughput. The amount of data passed can be small, but I am very concerned about the load on web server and the traffic. (I am planning to do virtual hosting with a web hosting company). Somehow I am not concerned about the load on the database (maybe I should be). All calculations will be put in a stored procedure, at least I can optimize it.
Any other suggestions on how to approach this client refresh issue?
Thanks a lot.These answers are helpful but I still need more info. The first answer suggests putting html refresh tag. But that would refresh the whole page, wouldn't it? I just need to refresh one region. Can it be done with html tag?
I reviewed the Javascript code in the example referenced in the second answer. It showed that I can refresh a region using Javascript. It looks very nice. However, I need to refresh with data pulled from the database. I am not familiar with AJAX (need to lear JavaScript first) and I know that JavaScript cannot query database on its own. So I am not sure that this example is relevant.
What I need is: Only 1 region of the page needs to be refreshed every 5 minutes. The rest should "stay put." Everytime the refresh is performed the database will be queried for new data by means of stored db procedure. Do I need to jump through hoops to do that or is it fairly straightforward thing to do?
Thank you for your time. -
External users can communicate web server, Internal users can't communicate
Hi All,
This Babu, I have Cisco - 1941 and ASA 5510, ISP was terminated on Router point ot point connectivity(10.10.10.0/30). Router isdie ip is Public ip
(49.49.49.1/28), firewall inside ip is 49.49.49.2 and i have done nating in firewall with private ip 192.168.1.0/24.
we have web server, this is also connected in Intranet, this internal ip was 192.168.1.13 nat with publi ip 49.49.49.13.
In this scenario all external users can communicate with web server ie www.example.com. but internal users can't communicate with www.example.com
All internal user able to ping the web server with 192.168.1.13 successfully and get the internet also.
Please help me, what is the problem...Hi Jereen,
my user tried the following :
- went to http://oraclepartnernetwork.oracle.com/
- at top of the page, click on the "Register / Sign In" link.
- entered user name [email protected], and password (he tried also with a reset system generated password)
- got "Invalid Login" Error
so it seems the issue is not with beehive online, but with SSO to start with...
my other sun.com users have the same issue. Could it be a restriction on Sun.com domain ?
I understand now my issue is not with beehive online, so don't hesitate to redirect me to the appropriate support team if necessary.
Thanks a lot for all your help
christian -
SunOne Web Server 6.1 and JSP response content-length
Hi,
I am looking for help for a problem in my previous post
http://swforum.sun.com/jive/thread.jspa?threadID=58612.
It seems to me the only significant difference of the response to the same jsp file from 6.0 and 6.1 server is the content-length header.
6.0 response has the content-length header;
6.1 response does not have the content-length header.
HttpUrlConnection::getContentLength() returns the actual content length of the 6.0 response;
HttpUrlConnection::getContentLength() returns -1 for the 6.1 response.
Here is the dump,
SunOne WebServer 6.0
allowUserInteraction? false
content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1eed786
contentEncoding? null
contentLength? 999
contentType? application/x-java-jnlp-file
Date? 1131378080000
DefaultAllowUserInteraction? false
DefaultUseCaches? true
DoInput? true
DoOutput? false
Expiration? Wed Dec 31 19:00:00 EST 1969
FileNameMap? java.net.URLConnection$1@1a1c887
lastModified? Wed Dec 31 19:00:00 EST 1969
requestMethod? GET
responseCode? 200
responseMessage? OK
HEADER::Set-cookie=[JSESSIONID=pkand013-1%253A436f75a0%253A5b909ee2e5bbe3bc;path=/]
HEADER::Date=[Mon, 07 Nov 2005 15:41:20 GMT]
HEADER::Server=[Netscape-Enterprise/6.0]
HEADER::null=[HTTP/1.1 200 OK]
HEADER::Content-length=[999]
HEADER::Content-type=[application/x-java-jnlp-file]
SunOne WebServer 6.1
allowUserInteraction? false
content? sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@1fee6fc
contentEncoding? null
contentLength? -1
contentType? application/x-java-jnlp-file
Date? Mon Nov 07 10:49:07 EST 2005
DefaultAllowUserInteraction? false
DefaultUseCaches? true
DoInput? true
DoOutput? false
Expiration? Wed Dec 31 14:00:00 EST 1969
FileNameMap? java.net.URLConnection$1@1503a3
lastModified? Wed Dec 31 19:00:00 EST 1969
requestMethod? GET
responseCode? 200
responseMessage? OK
HEADER::null=[HTTP/1.1 200 OK]
HEADER::Expires=[Wed, 31 Dec 1969 19:00:00 EST]
HEADER::Set-cookie=[JSESSIONID=44A318F4BC0802A4C70C27FD4AB1C115;Path=/]
HEADER::Transfer-encoding=[chunked]
HEADER::Date=[Mon, 07 Nov 2005 15:49:07 GMT]
HEADER::Pragma=[No-cache]
HEADER::Server=[Sun-ONE-Web-Server/6.1]
HEADER::Content-type=[application/x-java-jnlp-file]
HEADER::Cache-control=[no-cache]
In my test env, 6.0 and 6.1 are installed on the same machine (Win2K), using the same directory as web root, same http port. Browser runs on a different machine.
Thanks
HarryHi, elving
This is good information. Thanks very much.
Actually, I am not using SSL, just plain http connection with basic auth. It might be the cache-control header that causes the head ache. 6.0 response does not have the cache-control header, but 6.1 has.
The interesting thing is that adding a servlet mapping on 6.1 solves the problem.
I will take a further look tomorrow.
Cheers,
Harry
I doubt the problem has to do with the Content-Length
header.
I'd guess that you're using SSL. Are you? If so,
you're almost certainly bumping into a known bug (or,
as Microsoft describes it, a "feature") in Internet
Explorer. Microsoft article KB316431 at
http://support.microsoft.com/default.aspx?scid=316431h
as some information on the problem. As the article
points out, the problem occurs when Internet Explorer
needs to invoke an external application to handle a
file that was served over SSL with Cache-Control:
no-cache and/or Pragma: no-cache headers.
A work around would be force Web Server to send
Cache-Control and Pragma headers that don't include
the no-cache directive. For example, the following
lines could be added to the obj.conf configuration
file:<Object ppath="*.jnlp">
Output fn="set-variable" set-srvhdrs="Cache-Control:
private"
Output fn="set-variable" set-srvhdrs="Pragma:
private"
</Object>Fortunately, it sounds like you've already
found another viable work around.
Maybe you are looking for
-
Importing Invoices (A/R) Through DTW
Dear All, We need to upload Invoices (A/R inovice in that fields like discount , amount , customer, item no , item name, serial no. ) Some one has suggested us to do this by defining Service type invoice and Use UDF's to upload Item name , no, seria
-
How to call PL/SQL procedure from Jdeveloper
hai i am using JDeveloper 10g version 10.1.3. i am working on Web Application[JSF,ADF BC]. i had commit button in one form. when i click that button a PL/SQL procedure can be invoked.( the procedure is to check for primary key) how to do this thanks
-
I have 2 App Store accounts, one from MobileMe time and i want to know if it is possible to merge them as i'm having troubles updating some of my software? I have to sign in and out between one and the other constantly and i dont know what to do anym
-
Hello. I have a Sony Vaio laptop. My main computer is an iMac. Everything I have wirelessly connects to my airport extreme, except the Vaio. I can see my wireless network, but can't connect.
-
Polygonal Lasso tool issues in newly installed Photoshop CS6 on IOS X Lion 10.7.4
I'm using a new install of Photoshop CS6 (via creative cloud) on a new iMac and getting superb performance aside from constant issues with the polygonal lasso tool. All the other variants of the tool work fine without fault, but when using the polygo