Using private key installed on Sun One web server in java code.

Hi,
I am digitally signing an XML string. I have been able to successfully do this using the .keystore and the JSSE API.
I need to run this code in the SUN ONE Web server, hence I have installed a self signed cert in the web server, using the web console.
I need to load the .keystore that is being maintained by the Sun One Web Server in my Java program as a �KeyStore� object
Presently I am using the following JSSE calls:
KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
// Load the keystore contents
FileInputStream in = new FileInputStream(keystoreFile);
keystore.load(in, keystorePassword);
in.close();
Now how do I access the keystore and the certs that I have added in the web server? Is there any SUN API for this?
Any help will be appreciated!
Regards,
Nandan
Message was edited by:
NANDAN

The global zone should offer no services to the network except services required to administer the system. SSH from known IPs. Put everything in zones for the security of the system. Zones have no performance penalty so there is no advantage to running on the host system in the global zone.
Sun's Java Enterprise server software webserver, directory server, etc required a full zone due to Solaris Package issues or conflicts; writing stuff in /usr; or both. A whole root for this software should not be a big deal. I create zones 9 at a time numbered in sequence. Zone 8 and 9 are whole root zones for requirements such as this.
I'll leave to others to alert us if the whole root zone requirement changes for Sun's Java Enterprise Server software.
Message was edited by:
jgmarce

Similar Messages

  • Core dump when stop sun one web server 6.1 SP6

    Hi all,
    I install the sun one web server 6.1 sp6 and run as FastCGI mode. Each time i stop the web server, the "core" file is generated. The following is the steps which I setup the web server:
    Server Path: /i03_01/SUNTest
    1. Install Sun One Web Server 6.1 SP6
    2. Install FastCGI library
    3. Install php4.4.2
    ./configure prefix=/i03_01/php-fcgi enable-fastcgi
    make
    make install
    4. copy the php binrary to /i03_01/SUNTest/bin
    5. vi magnus.conf
    Init fn=load-modules shlib="/i03_01/fastcgisp4/plugins/fastcgi/libfastcgi.so"
    6. vi mime.types
    type=magnus-internal/fastcgi exts=php
    7. vi obj.conf
    <Object name="default">
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    app-path="/i03_01/SUNTest/bin/php"
    max-procs="20"
    app-env="PHP_FCGI_CHILDREN=2"
    app-env="PHP_FCGI_MAX_REQUEST=1000"
    restart-interval="60"
    app-env="PHPRC=/i03_01/SUNTest/https-www/config"
    </Object
    8. Start the Web Server
    9. Open the browser, run any php programs. (the php process will be created at this time)
    10. Stop the web server (* core file is generated at /i03_01/SUNTest/https-www/config)
    Here are the error logs:
    1. /var/adm/messages
    Dec 15 15:05:54 hkpu30 genunix: [ID 603404 kern.notice] NOTICE: core_log: Fastcgistub[17146] core dumped: /var/cores/Fastcgistub.hkpu30.17146.core
    2. Fastcgistub.log
    <<<<<< ERROR LOG >>>>>>
    Fastcgistub - version (1)
    created child - 17492
    clean stub
    stopping child exit handler
    stopping monitoring
    terminating child - 17492
    3. pstack core file
    core 'core' of 17491: Fastcgistub -b /tmp/https-hkpu30.polyu.edu.hk-e7343eaa/Fastcgistub_174
    fee07f70 fprintf (0, 18ef0, fee43a54, ffbef3c0, 0, 49db8) + 34
    000172d4 __1cNserveRequests6F_v_ (9c, 0, 4c, 18ebc, 18f02, 0) + 260
    00017aec main (bc, ffbef624, 0, 299bc, 18f35, 299b8) + 4f8
    00012f34 _start   (0, 0, 0, 0, 0, 0) + 108
    Any one can help me?
    Thanks.

    This has been fixed. But the plugin whch contains the fix (as part of Web Server 6.1) is not available for download yet.
    Meanwhile, you can try using the FastCGI plugin bundled with Web Server 7.0 Techonology Preview ( http://www.sun.com/download/products.xml?id=446518d5 )

  • Sun ONE Web Server & Remote User field

    Hi,
    I look for a tip to my Sun ONE Web Server 6.1 SP2 configuration.
    I have:
    - OS: Sun Solaris 8
    - Apache 1.3 (listen port :80)
    - Sun ONE Web Server 6.1 SP2 (listen port :81)
    - Weblogic 8.1 SP4 (listen port :8001)
    The 3 applications are in the same server.
    My first configuration works:
    - Apache works with basic authentification by password file (generate with htpasswd) and communicates with Weblogic
    - Weblogic listens http requests and work with the remote user id (use method HttpServletRequest.getRemoteUser())
    My second configuration doesn't work:
    - Apache works with basic authentification by password file (generate with htpasswd) + reverse proxy mode (use VirtuaHost) and communicates with Sun ONE Web Server
    - Sun ONE Web Server works with no authentification mode and communicates with Weblogic
    - Weblogic listens http requests and works with the remote user id (use method HttpServletRequest.getRemoteUser())
    The HttpServletRequest.getRemoteUser() returns null in my second configuration.
    How I can configure my Sun ONE Web Server to foward the remote user id ?
    Thank you.
    Christophe.

    Can you send your obj.conf?
    I do not have a 6.1 Web Server installed, by guess work try
    NameTrans fn="redirect" from="/index.html" url="/"
    Also remove find-index or any such SAFs if you have in your obj.conf
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"Why do you need this?

  • Struts & Sun ONE Web Server Enterprise Edition 6.1

    Is there a web page that explains how to install struts and Tiles so that all web pages on the server use the information. I am trying to install on Sun ONE Web Server Enterprise Edition 6.1.
    I would like to do a company web site with one location for layouts, images, etc and then all later installed web applications can use this information.

    Hi,
    Its wise to use Oracle THIN client, unless you will need any OCI specific features.
    Oracle OCI driver requires that your client must have a Oracle Client installation to connect using OCI, but the thin driver only requires classes12.jar in the client host to connect.
    You can browse thru the Oracle JDBC Developers guide for more info.
    http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/toc.htm
    Elango.

  • Sun ONE Web Server 6.1 and Beans

    Hello,
    I am learning JSP and I have a new install of Sun ONE Web Server Enterprise Edition 6.1. I have a some java code (a class) I would like to use in my JSP page via <jsp:useBean...>.
    Where do I put my .java (or compiled .class) file?
    For example: UserData.class
    Thanks,
    Michael

    Thanks for the reply.
    Under my <appdir> I created a WEB-INF and classes directries. I copied my .class file to it but still get the message in the Sun One 6.1 error log:
    C:\Sun\WebServer6.1\https-titan\ClassCache\https-titan\default-webapp\_jsps\_apps\_bean1\_SaveName_jsp.java:66: package user does not exist
         user = (user.UserData) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "user.UserData");
         ^
    I am so new - what else can you recommend?
    Thanks again,
    Michael

  • Sun One web server 6.0 Authentication

    Does anyone know if it is possible to use form based authentication under Sun One Web Server 6.0, that checks the user authentication on a proprietary API. I need to use a JAVA library to authenticate users and i would like to use it under the form based authentication method inside the web server. Is it possible to write a plug-in for web server authentication mechanism?
    Thank you

    I have almost identical problem (topic �iPlanet 6.0 stops responding�). Since than I made some serious testing and found out that NSAPI does not produce problem. There are two types of delays: the shortest last from 10 to 20 seconds and usually there is �Error accepting connection (The semaphore timeout period has expired.� message in error log. The longest sometimes last more than 10 minutes.
    This is short cut from my response time log (in miliseconds):
    10:30:18 Response:    15
    10:30:28 Response:    32
    10:30:38 Response:    47
    10:30:48 Response:    31
    10:31:06 Response:  8265
    10:31:17 Response:   188
    10:31:27 Response:    31
    10:31:37 Response:    16
    10:31:47 Response:    16
    10:31:57 Response:    31
    10:32:07 Response:    32
    10:32:17 Response:    31
    10:32:37 Response: 10578
    10:32:47 Response:    31
    10:32:57 Response:    31
    10:33:07 Response:    32
    10:33:17 Response:    47
    10:33:27 Response:    31
    10:33:38 Response:   266
    10:33:48 Response:    62
    10:33:58 Response:    31
    10:34:08 Response:    47
    10:34:18 Response:    47
    10:34:28 Response:    31
    10:34:49 Response: 11047
    10:34:59 Response:    31
    10:35:10 Response:    93
    10:35:20 Response:    32
    10:35:30 Response:    46
    10:35:40 Response:    32
    10:35:50 Response:    47
    10:36:00 Response:    46
    10:36:10 Response:    32
    10:36:20 Response:    62
    10:36:30 Response:    47
    10:36:40 Response:    31
    10:36:50 Response:   391
    10:37:01 Response:   297and Connection statistics from Admin web at delay
    Total Number Of Connections:  31644 
    Maximum Number Of Queued Connections: 4096 
    Peak Number Of Queued Connections: 285 
    Current Number Of Queued Connections: 285 
    Number Of Processes:  1 Configuration is Sun One Web Server 6.0.6, Win2K Advanced Server with SP4, Single Processor Machine (Compaq DL360).

  • Unable to start Sun One Web Server 6.1 SP5 64bits on Solaris 10

    Hello,
    I installed the Sun One Web Server 6.1 SP5 64bits successfully on a Solaris 10 machine, but was unable to started up the web server application:
    The error message is below,
    # pwd
    /app/SUNWwbsvr61sp5/https-admserv
    # ls
    ClassCache config restart SessionData stop
    conf_bk logs rotate start webapps
    # ./start
    Sun ONE Web Server 6.1SP5 (64-Bit) B12/02/2005 04:37
    failure: CORE3170: Configuration initialization failed: Error running init function load-modules: dlopen of /app/SUNWwbsvr61sp5/bin/https/lib/libj2eeplugin.so failed (ld.so.1: webservd: fatal: libjvm.so: open failed: No such file or directory)
    I have searched the forum and found some what similar case but it was for SP4.
    Please if anyone had experienced with this please advise how to resolve this issue.
    I greatly appreciated,
    Thank you
    Edited by: n2sun on Jun 12, 2008 10:15 AM

    just check the env file for the user who is starting or running that.
    say if it is cshell, you can see the following variables in the .cshrc which will be under the user's home directory
    setenv JAVAHOME  WS_Root/jdk
    setenv LD_LIBRARY_PATH  WS_Root/lib: /libnow source that file
    source .cshrcthen start the webserver.

  • Help for Installing PHP and Sun One Web Server

    Hi
    I tried to install PHP 5.1.4 and Sun One Web Server 6.1. I am not able to complete this and got stuck. All the available materials in net seems to flow above my head.
    It will be very helpful if someone could let me know the step by step configuration a bit brief for the same.
    Thanks in advance
    Kathirvel Balakrishnan

    Hi Craig
    I am following these steps,
    1st step : Installing PHP on the WindowsNT server (NT users only)
    Copy the php files on your server
    Get the php zip file
    Copy the php files under a directory (for example : d:php4)
    (be careful don't use c:Program Filesphp because of the space between Program and Files
    copy php4ts.dll to c:winnt and msvcrt.dll if you don't already have it on your system
    Edit php.ini-dist
    rename php.ini-dist to php.ini
    Edit php.ini : Indicate in which directory you have copied youre php files. (extension_dir = d:php4extensions ; directory in which the loadable extensions (modules) reside.)
    copy php.ini in winnt directory (php.ini is parsed in my config)
    Matthias Kramer told me that he had to move php.ini to <path-to-netscape-server>/https-servername/config for it to be parsed
    Make a file association under Windows NT
    In a DOS Window, type assoc .php=PHPScript
    ftype PHPScript=d:php4php.exe %1 %*
    Test the 1st step
    Create a C:test.php file with a single line like <? echo("Nothing to write"); ?>
    Create a C:test.bat file with 2 lines test.php
    pause
    double-clic on test.bat
    If you see something like X-Powered-By: PHP/4.0.3
    Content-type: text/html
    Nothing to write
    then the NT association works!!
    2nd step : Configuring Netscape Enterprise Server or iPlanet for PHP4 with nsapi (NT & UNIX)
    Unix users only
    Compile PHP as follows: ./configure --with-nsapi=/usr/local/netscape/server4 --enable-libgcc
    make
    make install
    Add LD_LIBRARY_PATH=<libdir> to your Netscape server startup script
    where <libdir> is the full path to the directory where libstdc++.so.2.10.0 is located (usually /usr/local/lib)
    Add a mime-type to the Netscape Server
    In the Netscape Administration console chose Preferences|Mime Types
    Add a new type called magnus-internal/x-httpd-php for exts=php
    Click here for screenshot
    Stop your Web Server
    Make a copy of obj.conf located in: <path-to-netscape-server>/https-servername/config
    Modify obj.conf
    There are several section in obj.conf
    At the end of the Init section of obj.conf (necessarely after mime type init),
    place this two lines For NT users
    Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="d:/php4/sapi/php4nsapi.dll"
    Init fn="php4_init" errorString="Failed to initialise PHP!"
    For Unix users
    Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/usr/local/netscape/server4/bin/libphp4.so"
    Init fn="php4_init" errorString="Failed to initialise PHP!"
    In The < Object name="default" > section,
    place this line (necessarely after all 'ObjectType' and before all 'AddLog' lines) Service fn="php4_execute" type="magnus-internal/x-httpd-php"
    Add a new object called x-httpd-php <Object name="x-httpd-php">
    ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
    Service fn=php4_execute
    </Object>
    Restart your Web Server
    Test the 2nd step
    Put the test.php file in the document root of your server
    Then type http://server/test.php
    If you can see "nothing to write" in your browser then it works!
    AS mentioned in step 1,
    I am not getting the PHP message.
    I am installing it in my laptop, it has no IP, is that has to do something with this.
    Please guide me from here.
    Thanks in advance
    Kathirvel

  • Sun One Web Server 6.1 | Install wildcard certificate

    Hello everyone. I am new to this forum. I'll start off by saying that I am very "green" with the Sun One Web Server as well.
    My question/problem pertains to installing a wildcard certificate on our server. I am not able to find good documentation on this, so I am hoping that some of you could provide some guidance or, better yet, a link to documentation specifically for the Sun One Web Server 6.1.

    There is no difference with installing a wildcard or any other certificate. You simply create a CSR and specify an asterix instead of the hostname followed by a . and your domainname for the subject, send it to a CA and get back a certificate that you import.

  • NetBeans and Sun ONE Web Server 6.1

    I have a JSP / Beans / Servlet Web application working in Tomcat on my local machine, a Macintosh laptop. I used NetBeans to create it all, and everything works fine there. I have tried to upload everything to another computer (Solaris based) which is running Sun ONE Web Server 6.1, but am having problems.
    I uploaded the WAR file that NetBeans created, and uploaded the 'web' directory that NetBeans created. I can access HTML files from that web folder, but when I ask it to go to the first page, index.jsp, it has a problem with the beans. In my JSP file I do:
    <jsp:useBean id="db" class="drc.database" scope="session" />
    It seems to be having problems loading that class. What do I need to do? Here is the error code:
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, ntrans-j2ee reports: mapped uri "/index.jsp" in context "" to resource "jsp"
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: context = StandardEngine[null].StandardHost[drc].StandardContext[]
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: contextPath =
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: wrapper = StandardEngine[null].StandardHost[drc].StandardContext[].StandardWrapper[jsp]
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: servletPath = /index.jsp
    [04/Aug/2005:17:15:36] fine (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: pathInfo = null
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): JspEngine --> /index.jsp
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): ServletPath: /index.jsp
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): PathInfo: null
    [04/Aug/2005:17:15:36] fine (15708):      for host 0.0.0.0 trying to GET /index.jsp, ntrans-j2ee reports: mapped uri "/index.jsp" in context "" to resource "jsp"
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): RealPath: /www/html/drc/index.jsp
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): RequestURI: /index.jsp
    [04/Aug/2005:17:15:36] info (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: WEB2798: [] ServletContext.log(): QueryString: null
    [04/Aug/2005:17:15:36] failure (15708):      for host 129.147.40.215 trying to GET /index.jsp, service-j2ee reports: StandardWrapperValve[jsp]: WEB2792: Servlet.service() for servlet jsp threw exception
         org.apache.jasper.JasperException: WEB4000: Unable to compile class for JSPWEB4124:
         An error occurred at line: 3 in the JSP file: /index.jsp
         WEB4126: Generated servlet error:
         /opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:66: package drc does not exist
         drc.database db = null;
         ^
         WEB4124:
         An error occurred at line: 3 in the JSP file: /index.jsp
         WEB4126: Generated servlet error:
         /opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:69: package drc does not exist
         db= (drc.database)
         ^
         WEB4124:
         An error occurred at line: 3 in the JSP file: /index.jsp
         WEB4126: Generated servlet error:
         /opt/SUNWwbsvr/https-kesin.Central.Sun.COM/ClassCache/drc/default-webapp/_jsps/_index_jsp.java:74: package drc does not exist
         db = (drc.database) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "drc.database");
         ^
         3 errors
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:764)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.access$000(JspServlet.java:624)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:412)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:363)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:578)

    it is certifying / authenticating that the secured
    web site is owned by the genune party and the
    transactions with the party is doing through a
    encrypted format.
    Am i correct up to this???Correct, that is what SSL/certificates are for.
    >
    Then my dowt is that
    Is it possible to make my server SSL enabled with
    h out using any certificate ????( the documents you
    are given is telling about certificates)No it is not possible - the whole idea behind SSL communication is that it is based on TRUSTED secure communication. If a client can not check validity of server's certificate it is not trusted any more.
    It might not seem to be the case when you create a self-signed certificate, but it really is so. In case of a self signed certificate you(i.e your browser) trust yourself with whatever you do with your application on your webserver.
    After all can I install some certificates lateron ??
    If you really need SSL with your webserver you have to either create a self signed certificate, see this: http://sial.org/howto/openssl/self-signed/
    or request a test certificate from www.verisign.com or www.thawtee.com

  • Problem with maxprocs 1 on Sun One Web server 6.1

    I am using sun one web server on Unix with maxprocs set to 3.
    This means that there are 3 jvms running my application under 1 instance. However I have certain components like an application cache that I would like to share between these 3 processes.
    Additionally is there a way to configure the server so that requests from 1 session are served by 1 process only.
    I am really stuck here. Have searched in all the documentation, but in vain. Would really help if some one of the Sun Developers could answer this.
    Thanks
    Chetan

    Elving,
    It is great to hear that there is no predefined limit on number of sessions but if that's the case why the webserver always starts with 1000 allowed by default. Are there any potential performance reasons behind it?
    I have your link open in my browser for a few days now as a reference because I am experimenting with different Session Managers. I am trying to find a solution for BheegaChicken to be able to accomodate several thousand simultaneous sessions for his application.
    We use V6.0SP2 and SP6 and for BheegaChicken's app specifically V6.1SP2...
    I have spent some time in the past looking for the answers how to handle higher then 1000 sessions capacity on one instance and that was even before V6.1 was out. I have found the following reco that talks about optimal performance for sites using threads:
    http://docs.sun.com/source/816-5690-10/perf6.htm#17580
    *** start qoute
    Multi-Process Mode
    You can configure the server to handle requests using multiple processes with multiple threads in each process. This flexibility provides optimal performance for sites using threads, and also provides backward compatibility to sites running legacy applications that are not ready to run in a threaded environment. Because applications on Windows NT generally already take advantage of multi-thread considerations, this feature applies to Unix/Linux platforms.
    The advantage of multiple processes is that legacy applications that are not thread-aware or thread safe can be run more effectively in iPlanet Web Server. However, because all the Netscape/iPlanet extensions are built to support a single-process threaded environment, they may not run in the multi-process mode, and the Search plug-ins will fail on startup if the server is in multi-process mode.
    In the multi-process mode, the server spawns multiple server processes at startup. Each process contains one or more threads (depending on the configuration) which receive incoming requests. Since each process is completely independent, each one has its own copies of global variables, caches, and other resources. Using multiple processes requires more resources from your system. Also, if you try to install an application which requires shared state, it has to synchronize that state across multiple processes. NSAPI provides no helper functions for implementing cross-process synchronization.
    If you are not running any NSAPI in your server, you should use the default settings: one process and many threads. If you are running an application which is not scalable in a threaded environment, you should use a few processes and many threads, for example, 4 or 8 processes and 128 or 512 threads per process.
    MaxProcs (Unix/Linux)
    Use this directive to set your Unix/Linux server in multi-process mode, which may allow for higher scalability on multi-processor machines. If you set the value to less than 1, it will be ignored and the default value of 1 will be used.
    Tuning
    You can set the value for MaxProcs by:
    Editing the MaxProcs parameter in magnus.conf
    Setting or changing the MaxProcs value in the Magnus Editor of the Server Manager
    Note      You will receive duplicate startup messages when running your server in MaxProcs mode.
    *** end quote
    If it is not relevant anymore please explane.
    I am still interested to understand which of the SessionManagers is recommended by Sun to have optimal performance for sites with high number of sessions and using threads. It is not really obvious from http://docs.sun.com/source/817-6251/pwasessn.html. On top of this that's documented just for V6.1. What about V6.0?
    Thank you very much for your cooperation!
    Sasha aka ttalex

  • Sun One Web Server 6.1 SP4 crashes when filters are built with CC ver. 5.6

    Hi All
    We are using NSAPI interfaces to develop the filter for Sun ONE 6.1 SP4 Web Server. Filter was working perfectly fine when it was built using Sun WorkShop 6.0, CC Compiler ver 5.2.
    After we upgarded to Sun WorkShop 9.0, CC Compiler ver. 5.6, it no longer works. The web server crashes with Core. Please see the snippet below. There was however no change of code required for the upgrade.
    Please let me know if some specific compiler/linker flags has to be used for building filters with CC Compiler ver. 5.6.
    bash-2.03$ ./start
    Sun ONE Web Server 6.1SP4 B01/20/2005 17:43
    warning: CORE3283: stderr: 6950: CSemCounter created a semaphore with ID 25 using key 990470909.
    warning: CORE3283: stderr: [10/Nov/2005:18:50:35] [Information] Agent
    warning: CORE3283: stderr: Agent is enabled.
    warning: CORE3283: stderr: 6950: Cache - created semaphore 26 using key 487154429
    warning: CORE3283: stderr: 6950: ResourceCache - created semaphore 27 using key 772367101
    warning: CORE3283: stderr: 6950: Cache - created semaphore 28 using key 503931645
    warning: CORE3283: stderr: 6950: Cache - created semaphore 29 using key 520708861
    info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun Microsystems Inc.]
    catastrophe: CORE3260: Server crash detected (signal SIGBUS)
    info: CORE3262: Crash occurred in function realloc from module /usr/lib/libc.so.1
    Back Trace of Core
    #0 0xfe042974 in t_splay () from /usr/lib/libc.so.1
    (gdb) bt
    #0 0xfe042974 in t_splay () from /usr/lib/libc.so.1
    #1 0xfe0427e0 in t_delete () from /usr/lib/libc.so.1
    #2 0xfe0423e4 in realfree () from /usr/lib/libc.so.1
    #3 0xfe041f48 in mallocunlocked () from /usr/lib/libc.so.1
    #4 0xfe041ce0 in malloc () from /usr/lib/libc.so.1
    #5 0xfe04f568 in strdup () from /usr/lib/libc.so.1
    #6 0xff1c3038 in INTsystem_strdup_perm ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #7 0xff1c84c8 in INTvs_get_doc_root ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #8 0xfdb57f4c in __1cKJ2EERunnerIcreateVS6FpkcpknNConfiguration_pnRJ2EEVirtualServer__i_ ()
    from /home/porting/project/sunone/bin/https/lib/libj2eeplugin.so
    #9 0xfdb528bc in j2ee_vs_create ()
    from /home/porting/project/sunone/bin/https/lib/libj2eeplugin.so
    #10 0xff1c9444 in __1cPNSAPIVSListenerGinitVS6MpnNVirtualServer_pk1_nIPRStatus__ () from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #11 0xff2273e4 in __1cXVSConfigurationListenerQsetConfiguration6MpnNConfiguration_pk1_nIPRStatus__ ()
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #12 0xff225dc8 in __1cUConfigurationManagerQsetConfiguration6FpnNConfiguration__2_ () from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #13 0xff245b30 in __1cJWebServerDRun6F_nIPRStatus__ ()
    ---Type <return> to continue, or q <return> to quit---
    from /home/porting/project/sunone/bin/https/lib/libns-httpd40.so
    #14 0x10ab8 in main ()
    Thanks

    I could trace down the problem to the fact that if I don't use the map file (which is passed to the linker using -M mapfile), the plugin works perfectly fine. Further to this if I comment out the local part of the mapfile, it starts working.
    mapfile :
    NSAPIPlugin.so {
    global:
    symbol1;
    symbol2;
    symbol3;
    # local:
    Is there is any specific linker flag that I have to pass along with -M mapfile with the sun studio 9. What are possibe consequencies if I go ahead with this workaround of commenting out the local directive.

  • Error message upgrading Sun One Web Server

    We currently use Sun One Web Server SP 4. I have a RSA Cleartrust Agent to install that specifies SP 5. I downloaded SP 7. When I try to install it I receive the following message - "A previous release of the Web Server has been detected in the server root. Please select a different server root." I tried stoppping all the services, then installing, same result. The documentation says to run the install, it would detect the previous version and install. Do I have to uninstall the previous version? I do not want to do that. Thanks in advance.
    Jim

    admin.inf
    [General]
    Name=Administration Services
    Components=admin,admin-client
    Checked=TRUE
    Description=Server Administration Services used by system administrators to manage all iPlanet Servers.
    [admin]
    DefaultAcceptLanguage=en
    Vendor=Sun | Netscape Alliance
    Name=iPlanet Administration Server
    NickName=admin
    Description=Provides services to other server products.
    Dependencies=base/5.1
    Version=5.1
    Revision=
    Compatible=4.0
    Security=domestic
    BuildNumber=2002.158.2342
    Registration=FALSE
    Checked=TRUE
    IsAdmin=TRUE
    UseLDAP=TRUE
    BackupFiles=/admin-serv/config/adm.conf
    Mandatory=FALSE
    #install files for admin
    System32Archive=
    Archive=admin.z
    #plugin dll section
    PlugIn=insadm.dll
    ReadInf=ADM_ReadComponentInf
    PreInstall=ADM_PreInstall
    AskOptions=ADM_AskOptions
    GetSummary=ADM_GetSummary
    WriteGlobalCache=ADM_WriteGlobalCache
    WriteLocalCache=ADM_WriteLocalCache
    ReadGlobalCache=ADM_ReadGlobalCache
    ReadLocalCache=ADM_ReadLocalCache
    PostInstall=ADM_PostInstall
    PostUnInstall=ADM_PostUnInstall
    PreUnInstall=ADM_PreUnInstall
    [admin-client]
    Dependencies=base-client/5.1
    Name=Management Console
    Description=Used by system administrators to manage other server products.
    Version=5.1
    Compatible=4.0
    BuildNumber=2002.158.2342
    IsMCC=TRUE
    Checked=TRUE
    Mandatory=FALSE
    Security=domestic
    #install files admin-client component
    Archive=console.z
    #plugin dll section
    PlugIn=insadm.dll
    PreInstall=CON_PreInstall
    PostInstall=CON_PostInstall
    PostUnInstall=CON_PostUnInstall
    PreUnInstall=CON_PreUnInstall
    WebServer.inf
    [General]
    Name=iPlanet Web Server, Enterprise Edition
    Plugin=WebServer\WebServer.dll
    Description=iPlanet Web Server, Enterprise Edition
    Checked=True
    Components=NESCore,JRE,Java,Search,SNMP,I18N,CleanUp
    [NESCore]
    Vendor=Sun Netscape Alliance
    Name=Server Core
    Description=iPlanet Web Server Core
    Nickname=nescore
    Version=6.0
    BuildNumber=2
    Compatible=4.0
    Dependencies=svrcore/4.2
    DefaultAcceptLanguage=en
    Expires=0
    Registration=FALSE
    Security=domestic
    Checked=TRUE
    Mandatory=TRUE
    IsAdmin=FALSE
    UseLdap=FALSE
    SourcePath=WebServer
    Archive=nescore.zip
    System32Archive=nescore32.zip
    Plugin=WebServer\WebServer.dll
    PreInstall=SvrCore_PreInstall
    AskOptions=SvrCore_AskOptions
    WriteGlobalCache=SvrCore_ReadGlobalCache
    ReadGlobalCache=SvrCore_ReadGlobalCache
    ReadLocalCache=SvrCore_ReadLocalCache
    WriteLocalCache=SvrCore_WriteLocalCache
    GetSummary=SvrCore_GetSummary
    PostInstall=SvrCore_PostInstall
    PostUnInstall=SvrCore_PostUninstall
    [JRE]
    Name=Java Runtime Environment
    Description=Java Runtime Environment
    Nickname=JRE
    Version=1.1
    BuildNumber=2
    Compatible=1.1
    Expires=0
    Registration=FALSE
    Security=domestic
    Checked=TRUE
    Mandatory=True
    SourcePath=WebServer
    Archive=jre.zip
    PlugIn=WebServer\WebServer.dll
    PreInstall=JVM_PreInstall
    AskOptions=JVM_AskOptions
    GetSummary=JVM_GetSummary
    PostInstall=JVM_PostInstall
    [Java]
    Name=Java and Servlets
    Description=iPlanet Web Server Java and Servlets Support
    Nickname=java
    Version=6.0
    BuildNumber=2
    Compatible=4.0
    Expires=0
    Registration=FALSE
    Security=domestic
    Checked=TRUE
    Mandatory=True
    SourcePath=WebServer
    Archive=java.zip
    PlugIn=WebServer\WebServer.dll
    PreInstall=Java_PreInstall
    GetSummary=Java_GetSummary
    WriteLocalCache=Java_WriteLocalCache
    ReadLocalCache=Java_ReadLocalCache
    PostInstall=Java_PostInstall
    [Search]
    Name=Search and Indexing
    Description=iPlanet Web Server Search and Indexing Support
    Nickname=search
    Version=6.0
    BuildNumber=1
    Compatible=4.0
    Expires=0
    Registration=False
    Security=domestic
    Checked=True
    Mandatory=False
    SourcePath=WebServer
    Archive=search.zip,searchdata.zip
    PlugIn=WebServer\WebServer.dll
    PreInstall=WebPub_PreInstall
    WriteLocalCache=WebPub_WriteLocalCache
    PostInstall=WebPub_PostInstall
    [SNMP]
    Name=SNMP
    Description=iPlanet Web Server SNMP Support
    Nickname=snmp
    Version=6.0
    BuildNumber=1
    Compatible=4.0
    Expires=0
    Registration=False
    Security=domestic
    Checked=True
    Mandatory=False
    SourcePath=WebServer
    Archive=snmp.zip
    PlugIn=WebServer\WebServer.dll
    PreInstall=SNMP_PreInstall
    PostInstall=SNMP_PostInstall
    [I18N]
    Nickname=i18n
    Name=I18N Support
    Version=6.0
    Compatible=4.0
    Expires=0
    Checked=True
    Mandatory=True
    Visible=False
    SourcePath=WebServer
    Archive=i18n-core.zip
    UseLDAP=False
    Description=iPlanet Web Server Internationalization Support
    Registration=FALSE
    Plugin=WebServer\WebServer.dll
    PreInstall=I18N_PreInstall
    AskOptions=I18N_AskOptions
    WriteLocalCache=I18N_WriteLocalCache
    GetSummary=I18N_GetSummary
    PostInstall=I18N_PostInstall
    defLang=en,ja
    en=�p��
    ja=���{��
    [CleanUp]
    Name=Upgrade Files
    Description=iPlanet Web Server Upgrade Files
    Nickname=cleanup
    Version=6.0
    Compatible=4.0
    Expires=0
    Registration=False
    Security=domestic
    Checked=True
    Mandatory=True
    Visible=False
    SourcePath=WebServer
    Archive=nescore.zip
    PlugIn=WebServer\WebServer.dll
    PreInstall=Cleanup_PreInstall
    AskOptions=Cleanup_AskOptions
    GetSummary=Cleanup_GetSummary
    WriteLocalCache=Cleanup_WriteLocalCache
    PostInstall=Cleanup_PostInstall

  • How to deploy .war on Sun ONE Web Server 6.0?

    Hi Everyone
    I have been trying unsuccessfully to deploy a .war application using Sun One Web Server 6.0.
    I only installed Sun ONE for the first time this morning and don't know much about web servers - yet.
    I deployed the web application from the web-based admin console. I'm not sure exactly what to put in the URI field. I just deployed it on the only existing "virtual server". I don't really know anything about virtual servers.
    Also: I installed with the defaults, what port should I try to access my app from?
    The documentation doesn't help much - so please don't give me a URL to some docs i won't understand.
    I miss the autodeploy offered by other tools. I have deployed this app before on other servers.
    thanks in advance

    The URI is the "virtual path" at which the web application is accessible. For example, if you deploy a web application at the URI /foo, you would access the web application by requesting http://server.example.com:port/foo/.
    Unfortunately, I can't tell you what port your Web Server instance is listening on as that's configured at install time. If you don't remember the port you selected, check the server.xml configuration file. The port is recorded in that file.

  • Sun ONE Web Server 6.0 AND jre 1.6

    I am using Sun ONE Web Server 6.0 Service Pack 11. Can I upgrade my JRE version to 1.6? Currently I am using 1.5. Your response will be much appreciated?

    I am using external JRE. I have already installed it.
    When I type java -version on /usr/iplanet/servers/bin/https/jre/bin, I am getting Java(TM) SE Runtime Environment (build 1.6.0_16-b01). My question is, will it cause any issues when I run my application? Has sun specified like JRE 1.6 should be used on Sun ONE Web Server 6.1 onwards only?

Maybe you are looking for

  • SSRS get dates in parameters

    Hello All, I've a SSRS monthly sales report with the sales details for current year and last year. I've 4 paramaters in the report. StartDate1, EndDate1, StartDate2 (hidden), EndDate2 (hidden). For  StartDate1 - Beginning of Last month -  DateAdd(Dat

  • HP Envy m6 - getting error while recovery of my OS. Detect some error during PININST_BBV

    I am receiving the following error while reinstalling my OS using the HP recovery Discs. I get this window with no close button except for Save , Details or Retry. [ 2:37:49.82] ChkErrBB.CMD : Detect some error during PININST_BBV. [ 2:37:49.82] ChkEr

  • Commitment balances vs GL balances

    Hi, Subsequent to FMVT I got down to verifying the Fund balances to that of GL balances. Below are the reports which I intermittently used : 1) FMRP reports - FMRP_RFFMTO10X(total records) / FMRP_RFFMEP1AX(Line Items) 2) FAGLL03 / FAGLB03 - for GL ba

  • Compilation problem when switching databases.

    it looks like oracle reports need recompilation everytime in order to run on other databases otherthan database where it compiled.Otherwise Oracle reports says "Unable to load program units.Do you want to load source copy only?".If you say Yes,it wor

  • Change report into ALV format

    Hi Experts I am new in ALV ...... How can I make this report in ALV Grid Format, please help to change it and revert me back if possible I need the top of page which should shows parameters also regards Piroz REPORT Z_ESLP_ZROLE LINE-SIZE  90 LINE-CO