Sun one web server 6.1 - connection pools

I can't seem to get a connection pool to work in WS 6.1. I added the pool, created a resource that points to the pool and added the jdbc driver to the classpath in server.xml. To test the pool, I added a resource reference to "default-web.xml" and tried to access the pool from a jsp page. What I am getting is a "Cannot create resource instance " exception.
Also, when I change the database login or password in the pool settings to non-valid values, I never see any errors in the logs, even with granularity set to "finest". It is just like the entire pool never gets instantiated.
So what am I missing here ?

Can you post the whole stack trace you get in the log files? It is probably a misconfiguration/missing resource, but it is hard to tell without more information

Similar Messages

  • Sun One Web Server connection pool goes stale after some time

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

    Hi all,
    I have a few web applications running on Sun One Web Server 6.1 (SP4). I configured a connection pool via the web admin of the web server. I do not know why the connections in the connection pool are never released after some time (this happened for 3 times with a couple of months in between). I need to reboot the web server to solve this problem everytime the connection pool goes stale. I have verified that the resources are released (stream and connection are closed) with proper programming logic. Even so, I think that the connections will be timed out (the setting is 5 minutes) by the web server as a bulletproof even if the resource is not released properly as implemented in the code logic. Can anybody help on this? I have been troubled by this problem by weeks.
    Thank you in advance.

  • Connecting to Oracle 9i with Sun One Web Server 6.1 SP4

    I have an application that connects to an Oracle 9i database. When I run iPlanet 4.1, I am able to login to the application and run it. Since I have migrated to Sun One Web Server 6.1 SP4, I have not been able to login. Through some built in error logging, I have been able to determine that my user validation routine is receiving a Null pointer when it trys to connect to the database. I have also determined that my login servlet is executing properly. When I receive the Null pointer error, I am redirected to a failed login page, which is what is supposed to happen in such a case. I believe that I do not have the web server configured properly to connect to the database and I am not sure how to do it! Below is an excerpt from my code where the database connection occurs and the exception is detected. Any help would be appreciated!
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
              oracleConnect = DriverManager.getConnection("jdbc:oracle:thin:@" + chost + ":" + cport + ":" + csid ,u,p);
         enable = true;
    oracleConnect.close();
    }catch(java.sql.SQLException e){processError.logError("validateUser Invalue user" + e.getMessage()); enable = false;}
    catch(java.io.FileNotFoundException e){processError.logError("validate User error" + e.getMessage());}
    catch(java.io.IOException e){processError.logError("evalidateUser rror File Error " + e.getMessage());}
    catch(java.lang.NullPointerException e){processError.logError("validateUser error Null Pointer " + e.getMessage());}

    You are not using the server's built in JDBC Connection pooling, so there is no special WebServer configuration needed to connect to a database.
    If in the other hand, you want to use the built in connection pooling, then refer to this page to see how to create a connection pool
    http://docs.sun.com/source/817-1831-10/agjava.html#wp1085593
    Samples on how to configure and use JDBC connection pooling can be found in the sample apps
    http://docs.sun.com/source/817-1833-10/pwawap.html#wp40108

  • Where is Sun One Web Server's equivalent to Tomcat's common/lib

    i'm new to sun one web server and i'm trying to set up a connection pool. i set up a resource using the server manager but when i try to run my app, it produces a
    java.lang.ClassNotFoundException: oracle.jdbc.pool.OracleDataSourcei have the oracle driver jar i just dn't know where to put it.
    can anyone help?

    No, the jars would not be picked up unless they are explicitely added to the server.xml classpathsuffix, or put in the web server instance lib directory.
    Ex 1: putting them in the instance lib dir (no need to add them to classpathsuffix):
    /opt/SUNWwbsvr/https-hostname.domainname/lib/
    Ex. 2: If you have a jar file in your home directory, for example:
    /home/username/lib/classes12.jar
    You could have to add it to the classpath prefix in server.xml:
    <JAVA ... classpathsuffix="/home/username/lib/classes12.jar" ... >
    In this case, you could have all three server pointing to the same jar.
    The nativelibrarypathprefix is for native lib files (platform specific files, not jars)

  • Sslext NOt working Sun ONE Web Server 6.0?

    Hi,
    I have implemented the sslext tag for dynamic switching of http to https.
    I am using ATG Dynamo Server ONLY in the Development Env. (using the default Web Server of ATG) for testing this and sslext tag works fine using the Plug-In of struts which is in sslext.jar.
    but in producation the ATG Dynamo Server 6.0 is configured with Sun ONE Web Server 6.0, as forwarding request throught the Web Server to the App Server.
    But here sslext stop working?? any guss why?
    Sun ONE Server 6.0 is configured with ATG Dynamo Server 6.0 as Connection Module.
    There are three ways a Connection Module can handle requests for files whose MIME type is text/html.
    1)You can choose to have the files served by the Sun ONE Web Server,
    2)by the Dynamo server,
    3)or by the Sun ONE Web Server (but also send requests to Dynamo for logging).
    we select the 3rd option.
    any Guess why this is happening???
    regards
    DJ

    Since removing the log settings from magnus.conf failed to fix the problem, the log settings are probably not the source of the problem.
    Did anything else - e.g. ColdFusion configuration changes - occur at about the same time you changed the log settings?

  • Poor Performance of Sun One Web Server 6.0 SP6

    We are running on an E450 with 2GB of memory, Solaris 8 2/02 with Recommended and Security Patch Cluster from 31 Jul 03, Sun One Web Server 6.0 SP6, Macromedia ColdFusion 5, JDK 1.4.1_02. We are seeing intermittent (three or four times a day) performance problems, extremely poor response time.
    A vanilla, �test� iPlanet web server was put up on port 2443 with https turned on and off. Repeated control tests on file operations (�copy link as�) showed similar results as those described in High Impact above. Changes to add KeepAlive parameters (in magnus.conf) showed no noticeable improvement.
    Tests were conducted -- on the test server -- accessing the same file from two clients, one a thin client (TC), the other a Unix workstation (UW).
    Results:
    1) Sometimes process TC was started first and continued normally while process UW hung up; when this happened, only one httpd process was building cpu time;
    2) Sometimes process UW was started first and continued normally while process TC hung up; when this happened, only one httpd process was building cpu time;
    3) Sometimes both process TC and process UW continued normally regardless of which was started first; when this happened, two different httpd processes were building cpu time together;
    Speculation on Process Management - speculation is that, in the case of the 3rd bullet above, iPlanet assigned different httpd processes to the two requests. In the case of the first two bullets, however, the belief is that iPlanet actually assigned the second request to the same process it had previously assigned the first request. In this case, the second request was left to wait. It appears that most of the work done by httpd children is performed by only two or three children, even when there are 10 available.
    Questions;
    Why are the other httpd children are not more fully utilized?
    What about changing the number of Acceptor Threads?
    Could turning on Native Polling help (UseNativePoll in magnus.conf)?
    Any other thoughts about what is going on or how to fix the issue?
    Thanks for any assistance
    Excerpt from /etc/system
    * Web Server and ColdFusion Setting
    set shmsys: shminfo_shmmax = 2147483647
    set shmsys: shminfo_shmmin = 1
    set shmsys: shminfo_shmmni = 100
    set shmsys: shminfo_shmseg = 50
    set semsys: seminfo_semmns = 1750
    set semsys: seminfo_semmni = 70
    set msgsys:msginfo_msgmax = 65535
    set msgsys:msginfo_msgmnb = 65535
    set msgsys:msginfo_msgseg = 8192
    set msgsys:msginfo_msgssz = 16
    * Default is 512, which handles several thousand connections
    *set tcp:tcp_conn_hash_size=262144
    * Do not set to 0 in solaris 8 on Production Systems
    *set sq_max_size=0
    set rlim_fd_max=8192
    set rlim_fd_cur=8192
    * END of Web / ColdFusion Settings
    Excerpt from /etc/rc2.d/S69inet
    ## Web Server and ColdFusion Settings
    # Comment out tcp_slow_start_initial, because default is 4
    #ndd -set /dev/tcp tcp_slow_start_initial 2
    ndd -set /dev/tcp tcp_xmit_hiwat 32768
    ndd -set /dev/tcp tcp_recv_hiwat 32768
    ndd -set /dev/tcp tcp_conn_req_max_q 1024
    ndd -set /dev/tcp tcp_conn_req_max_q0 4096
    ndd -set /dev/tcp tcp_time_wait_interval 60000
    ndd -set /dev/tcp tcp_keepalive_interval 900000
    # Comment out next 4 to accept default
    # - change only if tcp longer than 10 seconds expected
    #ndd -set /dev/tcp tcp_ip_abort_interval 60000
    #ndd -set /dev/tcp tcp_rexmit_interval_max 10000
    #ndd -set /dev/tcp tcp_rexmit_interval_initial 3000
    #ndd -set /dev/tcp tcp_rexmit_interval_min 3000
    # Left out changing ephemeral (short lived) port
    #ndd -set /dev/tcp tcp_smallest_anon_port 1024
    # Keep default of 1480576
    #ndd -set /dev/tcp tcp_cwnd_max 65535
    ## End of Web / ColdFusion Settings
    Excerpt from magnus.conf
    RqThrottle 1
    MaxProcs 10
    StackSize 131072
    ## Added for lightly loaded systems
    KeepAliveQueryMeanTime 1
    KeepAliveQueryMaxSleepTime 0

    Because the security context is set as a process context, the NSAPI thread locks the process prior to setting the security context. The older NASPI plugin that we are using is not reentrant, it will not work with the mulitthreading model. Under multithreading each thread would have access to the security context of each thread.

  • Deploying servlets in the Sun One Web Server 6.1

    Friends, Please let me know how to deploy servlets in the Sun One Web Server 6.1.
    Thanks in advance,
    Madan.

    You cannot get that behavior.
    When an SSL client and server negotiate the connection, the client sends a list of all the cipher suites it supports. From that list the server will pick the most secure cipher suite which it also supports (if the server doesn't support any of the cipher suites proposed by the client, the connection establishment will fail).
    RC4 (128bit) is more secure than 3DES (112 bit). Thus, a server will never pick 3DES above RC4_128 if both are valid options (i.e. when both client and server support both). If you really wanted to force use of 3DES you need to disable RC4_128 in the server (or all the clients; or both).

  • Integration of Sun One Web Server 6.0 with Sun One App Server 7.0

    Is it possible to integrate Sun One Web Server 6.0 with the Sun One App Server 7.0??
    Sun One App Server 7.0 comes with the in-built HTTP listener. But we want to know if there is a way by which we can use the Sun One Web Server 6.0 with the App Server 7.0 and not the in-bulit HTTP listener?

    As suggested by you, I have used Sun ONE Application Server 7's plugin to connect the Sun ONE Web Server 6.0 with Sun ONE Application Server 7 as per the information given in Sun ONE Application Server 7 Administrator's Guide.
    I have added the plugin package to the webserver and added the following into the magnus.conf:
    Init fn="load-modules" shlib="C:/iPlanet/Servers/plugins/passthrough/passthrough.dll" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    and to the obj.conf
    NameTrans fn="assign-name" from="(/A2P2Test|/A2P2Test/*)" name="passthrough"
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://<application server http listener>"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The webserver starts up without any errors but never forwards any requests what might I be doing wrong?

  • 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).

  • Cannot initialize CGI exec subsystem - Sun ONE Web Server 6.1

    Hello,
    I have a problem connecting to a running admin server on Solaris 9. Startup is as follows:
    (error log)
    [12/Mar/2004:11:06:43] info ( 2579): CORE1116: Sun ONE Web Server 6.1 B08/22/2003 12:37
    [12/Mar/2004:11:06:43] info ( 2580): CORE3016: daemon is running as super-user
    [12/Mar/2004:11:06:47] info ( 2580): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.1_03] from
    [Sun Microsystems Inc.]
    [12/Mar/2004:11:06:49] info ( 2580): WEB0100: Loading web module in virtual server [vs-admin] at [/admin-
    app]
    [12/Mar/2004:11:06:56] info ( 2580): HTTP3072: [LS ls1] http://lab1:84 ready to accept requests
    [12/Mar/2004:11:06:56] info ( 2580): CORE3274: successful server startup
    Then, when I try to connect to it with the browser it results with an error:
    [12/Mar/2004:11:09:31] failure ( 2580): cgi_init reports: HTTP4047: could not initialize CGI subsystem (Cgistub path ../../bin/https/bin/Cgistub), err fork() failure [Not enough space]
    [12/Mar/2004:11:09:31] failure ( 2580): for host 10.101.12.146 trying to GET /https-admserv/bin/index, cgi_start_exec reports: HTTP4066: cannot initialize CGI exec subsystem
    What is the meaning of '...not enough space' ?
    The port itself is still listening:
    *.84 *.* 0 0 49152 0 LISTEN
    I must add that the server itself has been already successfully installed, ealier tests with the admserv were fine. But all of a sudden I can't get rid of this error, I made no changes except several reboots.
    Regards Nick

    Hello trejo.cj,
    space in /tmp seems not to be the problem:
    ! root@lab1:/tmp# df -k
    Filesystem            kbytes    used   avail capacity  Mounted on
    /dev/dsk/c0t0d0s0     479872   99067  332818    23%    /
    /dev/dsk/c0t0d0s6    4031059  986895 3003854    25%    /usr
    /proc                      0       0       0     0%    /proc
    mnttab                     0       0       0     0%    /etc/mnttab
    fd                         0       0       0     0%    /dev/fd
    /dev/dsk/c0t0d0s4    1984564 1250344  674684    65%    /var
    swap                   43168      16   43152     1%    /var/run
    swap                   59064   15912   43152    27%    /tmp
    /dev/dsk/c0t0d0s5    8063580 4078907 3904038    52%    /opt
    /dev/dsk/c0t0d0s7    15119586 3999501 10968890    27%    /export/home
    ls -la /tmp
    prw-r-----   1 cics     cics           0 Mar 16 12:00 .LAB1REG.fifo
    drwxrwxr-x   2 root     root         104 Mar 16 11:28 .X11-pipe
    drwxrwxr-x   2 root     root         104 Mar 16 11:28 .X11-unix
    drwx--x--x   2 cics     cics         106 Mar 16 12:10 EFC1385
    drwx--x--x   2 Slab1    cics         106 Mar 16 12:00 EFS945
    drwx------   2 netlife  netlife      264 Mar 16 11:56 https-admintool-9d93b4d6
    drwx------   2 root     other        207 Mar 16 11:54 https-admserv-9d93b4d6
    drwx------   2 netlife  netlife      162 Mar 16 11:54 https-btv-9d93b4d6
    -r--r--r--   1 root     root           0 Mar 16 11:28 llbdbase.dat
    -rw-r--r--   1 root     other          0 Mar 16 11:52 lock.https-admintool.84
    -rw-r--r--   1 root     other          0 Mar 16 11:52 lock.https-admserv.84
    -rw-r--r--   1 root     other          0 Mar 16 11:52 lock.https-btv.84
    ! root@lab1:/tmp# cd https-admintool-9d93b4d6
    ! root@lab1:/tmp/https-admintool-9d93b4d6# ls -la
    srwxrwxrwx   1 netlife  netlife        0 Mar 16 11:56 .cgistub_676
    srwxrwxrwx   1 root     other          0 Mar 16 11:54 iwsadmin.675
    -rw-r--r--   1 root     other     720896 Mar 16 12:05 iwsstats.https-admintool
    srwxr-xr-x   1 root     other          0 Mar 16 11:54 iwswatchdog.674
    The file iwsstats.https-admintool is a binary. Are there any hints inside why the server gives this error? If yes, can it be displayed?
    I my case I have installed a virtual server named admintool, this is owned by user netlife.
    Now I changed in the Server Manager in the CGI settings > Listen Sockets the info about CGI user and CGI group according to the netlife user.
    Right now it works, so I will watch out for further occurences.
    Nick

  • Disable PUT and DELETE HTTP methods in Sun ONE Web Server 6.1

    Hello ,
    i want disable PUT and DELETE methods in SunOne 6.1 , i don't find the solution ...
    Thnaks to help me .
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS * HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 08:07:41 GMT
    Content-length: 0
    Allow: HEAD, GET, PUT, POST, DELETE, TRACE, OPTIONS, MOVE, INDEX, MKDIR, RMDIR
    Connection: close

    are you sure that it isn't a vulnerability ? if i understand you , OPTIONS * HTTP/1.0 list all the possible methods but they are not actived ?
    i have test with OPTIONS / HTTP/1.0 , is that the those possible methods : HEAD , GET ??
    thanks
    telnet www.mywebsite.com 80
    Trying 145.248.193.13...
    Connected to www.mywebsite.com.
    Escape character is '^]'.
    OPTIONS / HTTP/1.0
    HTTP/1.1 200 OK
    Server: Sun-ONE-Web-Server/6.1
    Date: Wed, 18 Jan 2006 11:11:07 GMT
    Content-length: 0
    Allow: HEAD, GET
    Connection: close

  • 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.

  • Update server classes without restarting sun one web server 6.1

    hi,
    I'm facing a problem in updating server classes on sun one web server 6.1. i did not deploy any application and we are using simple jdbc+jsp approach.i write a class for db connections and now whenever i made some changes in it i must have to restart web server for changes to take effect. I also delete class files from classcache folder but it doesn't work.
    my class is placed on /opt/ and this path is also placed in web server class paths.
    i do not want to restart web server again and again. can some one tell me how to solve this problem.
    Regards,
    Kashif.

    if you just change your jsp files, you don't need to restart WebServer. WS will automatically recompile your jsps when it find the changes.
    You may also use reconfig command to reload server.

  • Error while running Application on Sun One Web Server 6.1

    Can some one please explain me how can I run application on sun one web server 6.1 ?
    It is deployed .war file successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

    We need to deploy the application by next week end. any suggestions please

  • Error while running sample app HelloWorld on sun one web server 6.1

    I tried to deploy and run the HelloWorld - sample application on sun one web server 6.1. It's giving me following errrors.
    (1) , root cause: java.lang.NullPointerException
    (2) info ( 924): JSP11 Log:unable to load jsp class: jsps.index_jsp
    what's the solution for that?
    Thanks
    Naimesh

    Can You please explain me how can I deploy .war file of my application on sun one web server 6.1 ?
    It is deployed successfully. It only loads default.jsp and then fives following error:
    1) Package netscape.ldap not found in import.
    I imported this package to my java file.
    Thanks,

Maybe you are looking for

  • Unable to open java custom form in R12 instance

    Dear friends, I am unable to open java custom form from front end. Navigation as follows: SYSTEM ADMINISTRATOR --> UM_SHIPPING --> ORDERS LOOKUP. Can anyone please look into the issue please. The error as follows: Error page you have encountered an u

  • Using '(' and less than operator in an xsql page sql query

    Dear All, I tried to use left parenthesis '(' and less than operator in an sql query through an xsql page, it doesn't let to use them. Do you know how to use those in an xsql page? Thanks for your help. Mustafa

  • Select Data Source and Microsoft Security Issue

    Hi, Tool- Xcelsius 2008, QAaWS When I open dashboard, it gives message "Microsoft Office has identified a potential security concern" "Data Connection have been blocked. If you choose to enable data connection, your computer may no longer be secure.

  • How do I change icloud id but keep apps?

    I have just bought a new ipad and uploaded my data from icloud. My wife is going to have my old ipad, but wants her own data and emails etc.  How does she set up a new icloud acount on the old ipad and sync to her own emails?  Most importantly, she w

  • 1080p videos are not working

    Hi, I am facing issue with the video card and i am not able to see 1080p videos. Even i have downloaded all the drivers in hp official siteand installed in my system. Kindly help me out. This question was solved. View Solution.