Access to Oracle 8i DB using iPlanet web server
Hi ,
I have been trying to implement Connection Pooling in my application using the built-in features of iPlanet App server 6.5 . For the same i have made the following entries:
1. web.xml
<resource-ref>
<description>Ptrade Entry</description>
<res-ref-name>jdbc/ptradeDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
2. ias-web.xml
<resource-ref>
<res-ref-name>jdbc/ptradeDataSource</ref-ref-name>
<jndi-name>jdbc/ptrade/ptradeDB</jndi-name>
</resource-ref>
3. Also my class tries to ge the context using
try {
InitialContext ic = new InitialContext();
ds = (DataSource)ic.lookup("java:comp/env/jdbc/ptradeDataSource");
catch (NamingException ne) {
System.out.println("Naming Exception" + ne);
Connection dbc = ds.getConnection();
return dbc;
However i am getting an javax.naming.NameNotfoundException: can't locate jdbc/ptradeDataSource.
Could somebody pls tell me what is wrong with my configuration and code?
Hi Rahul,
Thanks for bringing this page to my
notice..But there are still a few doubts which i
have...
. I have worked on JNDI so far, so could you please
tell me where exactly i need to define the namespace
of JNDI ? In which all configuration files would i
need to declare the database? more specifically,Would
i need to make any changes to server.xml?Probably web.xml and server.xml
2. Could you please share any xml files that would
give the additions that i need to make in my setup?I don't use iPlanet. Not many people do these days that I know of.
You could look at the Tomcat docs on how to set up a JNDI data source. That should help.
3. Would i need to explicitly close the DB
connections in my code?You should be already. If you're not, you're writing bad code. ResultSets and Statements need to be closed as well.
%
Similar Messages
-
Hi,
It is possible, But it has to be done through codes and iPlanet Web Server has nothing to do with it. But if you want to create the word document by ASP you have to install ASP plugin like ChilliASP (from Chilisoft) with iPlanet Web Server.Merging with database can be done through your code.
To know more abt creating word doc through ASP try this link
http://web.ukonline.co.uk/vance/code/aspworddoc.pdf
Regards,
T.Raghulan. -
Global data in a servlet using iPlanet Web Server
Our configuration is an Applet->Servlet->JNI->C/C++ code.
We have C code that does a number of lengthy mathematical calculations. This C code not only uses its own global variables but, it is also comprised of numerous subroutines that all call each other, reading and writing global C variables as they go. These globals are all isolated to the C code shareable object (.so) library that is included using the LoadLibrary call when the servlet is initialized.
The problem is that in a multi-user environment (3-5 simultaneous users) we need to have each user have their own "copy" of the servlet (and the C code) so that users will not be accessing each other's global data. We can NOT have only one copy of the C code and define it as synchronized because the calculations that are performed can take a very long time and we can not hold off user requests while the firs user finishes.
Our hope is that there is a way to configure the iPlanet Web server such that each new user that starts up a copy of the Applet/Servlet combination will get their own "space" so that they can work independently of any other user. We have at most 20 users of this system and only 3-5 simultaneous users so we should not have a problem with memory or CPU speed.
If anyone has a solution, I would greatly appreciate it!The C library is shareable. But you don't want it to be shared. That's your question summarized, isn't it?
You probably can't prevent it from being shared, so to prevent multiple use of it you would have to queue up the requests to be done one at a time. WynEaston's suggestion of having the servlet implement SingleThreadModel would help, but I believe the servlet spec allows servers to run multiple copies of a servlet that does that (as opposed to running a single copy in multiple threads).
Your other alternative is to rewrite the math in Java, or at least in some object-oriented language where you don't need global variables (which are the source of your problem). All right, I can already hear you saying "But that wouldn't be as fast!" Maybe not, but that isn't everything. Now you have a problem in queueing theory: do you want a single server that's fast, but jobs have to wait for it, or do you want multiple servers that aren't as fast, but jobs don't have to wait? That's a question you would have to evaluate based on the usage of your site, and it isn't an easy one. -
Hi all,
My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
for 120 seconds. This causes Weblogic to timeout after a while. The error I get
is as follows:
<Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:127)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
at weblogic.net.http.HttpClient.New(HttpClient.java:149)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
t.java:285)
at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
>
I get the same error when I added the following plug-in configuration parameters
(in obj.conf):
ConnectTimeoutSecs="170" ConnectRetrySecs="170".
What do I need to do to extend this timeout? Any help you can provide will be
greatly appreciated..
Thanks
ManishHi all,
My configuration is as follows: I have an iPlanet web-server that uses a WebLogic
6.1 (sp1) server to proxy requests to another HTTP server. The HTTP request runs
for 120 seconds. This causes Weblogic to timeout after a while. The error I get
is as follows:
<Aug 25, 2003 3:37:09 PM GMT+00:00> <Warning> <HttpClient> <Couldn't open connection
java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:127)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:194)
at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
at weblogic.net.http.HttpClient.New(HttpClient.java:149)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:109)
at com.db.gmr.dcm.DebtIssueServlet.getVectorFromConnection(DebtIssueServle
t.java:285)
at com.db.gmr.dcm.IssuesUSThread.run(IssuesUSThread.java:29)
>
I get the same error when I added the following plug-in configuration parameters
(in obj.conf):
ConnectTimeoutSecs="170" ConnectRetrySecs="170".
What do I need to do to extend this timeout? Any help you can provide will be
greatly appreciated..
Thanks
Manish -
Access pdf files on-line using iPlanet as server
We are using Sun One Web Server as server. Our system generate files in pdf fomat and this pdf format must be available online. We created a folder inside server machine directory e.g. /var/opt/generatedreports/ .. The pdf files will open once a user clicks on the link.
how could i check this directory-mapping?Ok, thanks. I think I will find a way to show the files. Maybe i'll use a jsp page instead. Thanks again.
-
Why should we use iPlanet Web Server compared to TomCat?
i seriously doubt you want to use wsdl4j unless you are doing really advanced webservice work. assuming you are developing this webservice from scratch, you basically want to use JAXWS: define an appropriate interface and your value classes, and let JAXWS do the rest. metro is the JAXWS implementation included in the oracle jdk and it has great tutorials and reference documentation online. i'd suggest you start here: http://metro.java.net/getting-started/
-
Hi,
In your iWS, Go to particular instance config directory
edit contexts.properties file
(eg:-/usr/netscape/server4/https-test/config/contexts.properties).
Do the below changes.
(uncomment
context.global.reloadInterval=5
"And"
context.global.isModifiedCheckAggressive=true).
Example:-
~~~~~~~~~~~
# Context properties:
# context.global.sessionmgr=com.netscape.server.http.session.SimpleSessionManager
# context.global.sessionmgr.initArgs=
# context.global.initArgs=initial=0
# context.global.realPathFromRequest=false
# context.global.respondCookieVersion=0
# context.global.sessionExpireOnClose=false
# context.global.includeTransparency=true
# context.global.tempDir=/tmp
context.global.reloadInterval=5
# context.global.javaBufferSize=0
# context.global.bufferSize=4096
# context.global.docRoot=/foo/bar
# context.global.inputStreamLengthCheck=true
# context.global.outputStreamFlushTimer=0
# context.global.uri=/
# context.global.host=
# context.global.ip=
# context.global.authdb=default
# context.global.classpath=
# context.global.singleClassLoader=false
# context.global.contentTypeIgnoreFromSSI=true
# context.global.parameterEncoding=utf8
# context.global.sessionCookie=NSES40Session
context.global.isModifiedCheckAggressive=true
I hope this will work for you.
Thanks,
Daks.
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support. -
Help required on iPlanet Web Server.
I am using iPlanet Web Server 4.1 to run my jsp' ans servlets. I need to know that if i write System.out.println("Hello World") statement in my Servlet, where it will get printed. Please let me know if theres some way for that. As this is very help full in knowing the prog flow.
In Jakarta-Tomcat a window popsup and System.out.println statments are printed there. Is there any way we can do with iPlanet.Hi,
You need to configure your web server.
FOllowing should help you to solve your problem.
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F4790&zone_110=4790%2A%20
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F4235&zone_110=4235%2A%20
http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsunone%2F4699&zone_110=4699%2A%20
-Amol -
Thai character problem - iPlanet Web Server 4.1. Please help!
Hi all,
I am experiencing a very annoying problem with iPlanet Web Server 4.1 running on Solaris 5.8. I have a web application with Thai character set encoding support. I have a JSP which is a data entry screen page (using FORM tag) and the data submission can contain Thai characters, however I get HTTP error 400 (bad request) when I submit the form using the client machine running Windows OS other than Windows 2000. I tested in Windows 98 and Windows XP, always get that HTTP error 400.
I have two boxes, Web server machine and App server machine. If I bypass the iPlanet Web Server directly connect to my application server (the app server software has built-in web server, but not suitable for production, that's why I use iPlanet Web Server 4.1) I don't get any problem at all. So I suspect something wrong with the iPlanet Web Server software. I also tested my web application in Linux environment with the same iPlanet Web Server 4.1, but the problem is not there.
Thus, did anyone ever experience the same thing? Can anyone shed some light to resolve this problem? Is the problem reside in the client machine or in the server environment?
Any help is highly appreciated.
Regards,
Jacky.Try using different values for StrictHttpHeaders in your magnus.conf. Valid values are:
StrictHttpHeaders on (default)
StrictHttpHeaders relaxed
StrictHttpHeaders off -
Getting Defunct processes while using Oracle iPlanet Web Server 7.0.9 in Solaris 10
Hi,
I have installed Oracle iPlanet Web Server 7.0.9 in our Solaris 10. \
Successfully Configured iPlanet web server using the manual and the application scripts are working fine with this iPlanet webserver.
Even if the application is working fine, the iPlanet webserver stop responding at a period of time and needs to be restart manually...
Found that lots of defunct processes(PPID of webservd) are created and these defuncts (zombies) leads to stop the services.
I am not good in iPlanet webserver configuration settings on the Solaris 10 OS.
Could anyone help me to fix this issue ?
Thanks,
Antony.Here is the truss output (last few lines before the application hungs...
/14: 2516.1065 0.0000 time() = 1428330724
/49: 2516.1382 0.0001 pollsys(0xFFFFFFFF71E3FB40, 1, 0xFFFFFFFF71E3FA80, 0x00000000) = 0
/49: 2516.1386 0.0000 lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/49: 2516.1389 0.0000 lwp_kill(66, SIG#0) Err#3 ESRCH
/49: 2516.1412 0.0022 munmap(0xFFFFFFFF70D00000, 262144) = 0
/49: 2516.1413 0.0000 lwp_exit()
/39: 2516.1553 0.0000 pollsys(0xFFFFFFFF7283FB40, 1, 0xFFFFFFFF7283FA80, 0x00000000) = 0
/39: 2516.1557 0.0000 lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/39: 2516.1559 0.0000 lwp_kill(75, SIG#0) Err#3 ESRCH
/39: 2516.1561 0.0001 munmap(0xFFFFFFFF70400000, 262144) = 0
/39: 2516.1562 0.0000 lwp_exit()
/25: 2516.1614 0.0000 lwp_park(0xFFFFFFFF73CFBA90, 0) Err#62 ETIME
/16: 2516.1671 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/35: 2516.2558 0.0000 lwp_park(0xFFFFFFFF72EFBA90, 0) Err#62 ETIME
/16: 2516.2673 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2516.3675 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/36: 2516.4317 0.0000 lwp_park(0xFFFFFFFF72CFBE60, 0) Err#62 ETIME
/15: 2516.4505 0.0000 lwp_park(0xFFFFFFFF7613F9D0, 0) Err#62 ETIME
/16: 2516.4677 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2516.5679 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/27: 2516.6533 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF7383FD20, 0x00000000) = 0
/16: 2516.6681 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/1: 2516.7105 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF7FFFA6A0, 0x00000000) = 0
/16: 2516.7684 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/34: 2516.8137 0.0000 lwp_park(0xFFFFFFFF730FBA70, 0) Err#62 ETIME
/16: 2516.8685 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2516.9686 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2517.0688 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/14: 2517.1057 0.0001 pollsys(0x00000000, 0, 0xFFFFFFFF744FBDA0, 0x00000000) = 0
/14: 2517.1061 0.0000 time() = 1428330725
/25: 2517.1618 0.0000 lwp_park(0xFFFFFFFF73CFBA90, 0) Err#62 ETIME
/16: 2517.1691 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/35: 2517.2561 0.0000 lwp_park(0xFFFFFFFF72EFBA90, 0) Err#62 ETIME
/16: 2517.2693 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2517.3695 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/36: lwp_park(0xFFFFFFFF72CFBE60, 0) (sleeping...)
/15: lwp_park(0xFFFFFFFF7613F9D0, 0) (sleeping...)
/16: 2517.4696 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/54: 2517.5362 0.0000 pollsys(0xFFFFFFFF7193FB40, 1, 0xFFFFFFFF7193FA80, 0x00000000) = 0
/54: 2517.5364 0.0000 lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/54: 2517.5367 0.0000 lwp_kill(53, SIG#0) Err#3 ESRCH
/54: 2517.5368 0.0001 munmap(0xFFFFFFFF71A00000, 262144) = 0
/54: 2517.5369 0.0000 lwp_exit()
/16: 2517.5697 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/27: pollsys(0x00000000, 0, 0xFFFFFFFF7383FD20, 0x00000000) (sleeping...)
/16: 2517.6699 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/1: 2517.7106 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF7FFFA6A0, 0x00000000) = 0
/1: 2517.7111 0.0001 close(26) = 0
/1: 2517.7113 0.0000 write(24, " 8", 1) = 1
/1: 2517.7115 0.0000 close(23) = 0
/1: 2517.7116 0.0000 close(24) = 0
/1: 2517.7118 0.0000 lwp_unpark(25) = 0
/25: 2517.7118 0.0000 lwp_park(0xFFFFFFFF73CFBA90, 0) = 0
/1: 2517.7120 0.0000 lwp_unpark(35) = 0
/35: 2517.7120 0.0000 lwp_park(0xFFFFFFFF72EFBA90, 0) = 0
/25: 2517.7121 0.0000 lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/25: 2517.7122 0.0000 lwp_kill(61, SIG#0) Err#3 ESRCH
/35: 2517.7123 0.0000 lwp_sigmask(SIG_SETMASK, 0xFFBFFEFF, 0x0000FFF7) = 0xFFBFFEFF [0x0000FFFF]
/25: 2517.7124 0.0001 munmap(0xFFFFFFFF71200000, 262144) = 0
/25: 2517.7125 0.0000 lwp_exit()
/1: 2517.7126 0.0000 lwp_wait(25, 0xFFFFFFFF7FFFA47C) = 0
/35: 2517.7127 0.0000 lwp_kill(52, SIG#0) Err#3 ESRCH
/35: 2517.7128 0.0001 munmap(0xFFFFFFFF71B00000, 262144) = 0
/35: 2517.7129 0.0000 lwp_unpark(1) = 0
/1: 2517.7129 0.0000 lwp_park(0x00000000, 0) = 0
/35: 2517.7130 0.0000 lwp_exit()
/1: 2517.7132 0.0000 lwp_wait(35, 0xFFFFFFFF7FFFA47C) = 0
/1: 2517.7134 0.0000 close(13) = 0
/16: 2517.7700 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/34: 2517.8141 0.0000 lwp_park(0xFFFFFFFF730FBA70, 0) Err#62 ETIME
/16: 2517.8702 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/16: 2517.9704 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/22: 2517.9743 0.0001 pollsys(0xFFFFFFFF73F3FA98, 1, 0xFFFFFFFF73F3F9D0, 0x00000000) = 0
/16: 2518.0706 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF742FBDD0, 0x00000000) = 0
/14: 2518.1063 0.0000 pollsys(0x00000000, 0, 0xFFFFFFFF744FBDA0, 0x00000000) = 0
/14: 2518.1073 0.0000 time() = 1428330726
/1: 2518.1082 0.0000 lseek(1, 0, SEEK_CUR) = 0
/1: 2518.1083 0.0000 lseek(2, 0, SEEK_CUR) = 4128
/1: 2518.1085 0.0000 lseek(2, 0, SEEK_CUR) = 4128
/1: 2518.1093 0.0000 lseek(1, 0, SEEK_CUR) = 0
/1: 2518.1094 0.0000 lseek(2, 0, SEEK_CUR) = 4128
/1: 2518.1095 0.0000 lseek(2, 0, SEEK_CUR) = 4128
/1: 2518.1102 0.0000 _exit(0) -
Basically, the latest release of iPlanet Web Server forces the user/group information source to be an LDAP database. Currently, the user accounts are in Active Directory, NT, Oracle and NetWare Directory Service in this heterogeneous environment.
What I am looking for is a meta-directory product which can do two things:
1-Single authentiation point for users in mulitple databases from iPlanet Web Server.
2-Single administration point for all of the databases listed above.
For example, can I add/modify/delete a user account at the meta-directory level and have this propagate to all of the databases listed above reducing the administration to one meta-directory product?With an Virtual Directory solution, you can authenticate Iplanet Web Server against nearly anything including any LDAPv3 Directory Server, Microsoft Active Directory, Windows NT Domains, Oracle RDBMS, IBM DB2 RDBMS, Microsoft SQL, and others.
All of this is done dynamically and doesn't require any heavyweight synchronization process. The Virtual Directory acts as a dynamic schema / DIT / data translation engine for different types of repositories.
OctetString's Virtual Directory Engine is one such example. You can download a 30 day evaluation copy at:
http://www.octetstring.com
It will take you all of 30 minutes to get iPlanet Web Server authenticated against and using groups from things like Oracle RDBMS, Windows NT Domains, or Active Directory. -
Kerberos Authentication DB in Oracle iPlanet Web Server
[Here is a blog about how to configure Kerberos Authentication Database in Oracle iPlanet Web Server on Solaris 10 update 8 |http://blogs.sun.com/meena/entry/using_kerberos_as_authentication_database]
As long as the application server that LCDS is deployed in is supported, it doesn't matter which webserver is being used.
HTH
Kumaran -
Livecycle can it be deployed in Oracle iPlanet Web Server
Hi,
Can we deploy livecycle in Oracle iPlanet Web Server ?
looking for an early reply
thanks
NadeeshaAs long as the application server that LCDS is deployed in is supported, it doesn't matter which webserver is being used.
HTH
Kumaran -
Using Struts Example in IPlanet web Server 6.0
Hai
i am new to struts and i was trying to run the example application shiped along with the binary distribution
in iplanet webserver 6.0.
I have extracted the struts-example.war file in to a folder named strutsexamples under my iplanetdocroot\servers\docs\ Using the
link DeployWebApplications in the admin side of the iplanet application.
By doing the above steps all the example files are extracted in to the folder iplanetdocroot\servers\docs\strutsexamples directory .
Problem 1: when i restarted the server i found the following error in the log file
[06/Apr/2003:19:58:03] info ( 394): successful server startup
[06/Apr/2003:19:58:03] info ( 394): iPlanet-WebServer-Enterprise/6.0SP1 B08/20/2001 01:49
[06/Apr/2003:19:58:05] info ( 394): Installing a new configuration
[06/Apr/2003:19:58:05] info ( 394): [LS ls1] http://gdcblr1596.gdcblr, port 80 ready to accept requests
[06/Apr/2003:19:58:05] info ( 394): A new configuration was successfully installed
[06/Apr/2003:19:58:09] info ( 394): Loading IWSSessionManager by default.
[06/Apr/2003:19:58:09] info ( 394): IWSSessionManager: Maximum number of sessions is 1000
[06/Apr/2003:19:58:10] info ( 394): Adding web application (/diva) at (E:/iPlanet/Servers/docs/diva)
[06/Apr/2003:19:58:10] info ( 394): Loading IWSSessionManager by default.
[06/Apr/2003:19:58:10] info ( 394): IWSSessionManager: Maximum number of sessions is 1000
[06/Apr/2003:19:58:10] info ( 394): Adding web application (/struts) at (E:/iPlanet/Servers/docs/struts)
[06/Apr/2003:19:58:10] info ( 394): Loading IWSSessionManager by default.
[06/Apr/2003:19:58:10] info ( 394): IWSSessionManager: Maximum number of sessions is 1000
[06/Apr/2003:19:58:10] info ( 394): Adding web application (/strutsexamples) at (E:/iPlanet/Servers/docs/strutsexamples)
[06/Apr/2003:19:58:10] info ( 394): Loading IWSSessionManager by default.
[06/Apr/2003:19:58:10] info ( 394): IWSSessionManager: Maximum number of sessions is 1000
[06/Apr/2003:19:58:11] info ( 394): vs(https-gdcblr1596.gdcblr)servlet 'action' class = 'org.apache.struts.action.ActionServlet' loaded in context = '/strutsexamples'
[06/Apr/2003:19:58:11] info ( 394): action: init
[06/Apr/2003:19:58:13] warning ( 394): vs(https-gdcblr1596.gdcblr)ServletException thrown in servlet.init; context = /strutsexamples, servlet = 'action'; stack tace: javax.servlet.UnavailableException: Parsing error processing resource path
at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java, Compiled Code)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java, Compiled Code)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.iplanet.server.http.servlet.WServletEntity.loadAndInitServlet(WServletEntity.java:98)
at com.iplanet.server.http.servlet.WebApplication.init(WebApplication.java, Compiled Code)
at com.iplanet.server.http.servlet.VirtualServer.init(VirtualServer.java, Compiled Code)
at com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:680)
, root cause:
[06/Apr/2003:19:58:13] info ( 394): Successfully initialized web application environment (web-apps.xml) for virtual server (https-gdcblr1596.gdcblr)
Problem 2: when i was trying to invoke the example by typing http://localhost/strutsexamples/ i am getting only the following errors .
[06/Apr/2003:20:03:17] info ( 394): vs(https-gdcblr1596.gdcblr)servlet 'jsp' class = 'org.apache.jasper.servlet.JspServlet' loaded in context = '/strutsexamples'
[06/Apr/2003:20:03:17] info ( 394): jsp: init
[06/Apr/2003:20:03:18] info ( 394): jsp: init
[06/Apr/2003:20:03:19] failure ( 394): Internal error: servlet service function had thrown ServletException (uri=/strutsexamples/): javax.servlet.ServletException, stack: javax.servlet.ServletException
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:453)
at jsps.index_jsp._jspService(_index_jsp.java, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:247)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:237)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:891)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1064)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:953)
, root cause: javax.servlet.jsp.JspException
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:975)
at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at jsps.index_jsp._jspService(_index_jsp.java, Compiled Code)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:247)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$6(JspServlet.java:237)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:520)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:891)
at com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1064)
at com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:953)
I have read all the FAQ and searched in web also and i am not able to find any answer to my problem .
Kindly if someone knows how to overcome the above problem do reply me to this id .
If any one has got the steps to be done to use struts in IplanetWebServer 6.0 do mail me also .
thanks and regards
Divakar.Renganathan
Associate Consultant
MascotSystems .
Bangalore.Hi,
Were you successful in getting the steps for incorporating struts with iPlanet Web Server 6.0 ?
If so, please email them to me as I am having similar problems.
Thanks
Harinder
[email protected] -
Hi, I am using HP11 and iPlanet web server. When trying to upload files over HTTP using FORM ENCTYPE="multipart/form-data" that are bigger than a few Kilobytes i get a 408 error. (client timeout). It is as if the server has decided that the client has timed out during the file upload. The default setting is 30 seconds for AcceptTimeout in the magnus.conf file. This should be ample to get the file across, even increasing this to 2 minutes just produces the same error after 2 minutes. Any help appreciated. Apologies if this is not the correct forum for this, I couldn't see one for iPlanet and Web, many thanks, Kieran.
Hi,
You didnt mention which version of IWS. follow these steps.
(1)Goto Web Server Administration Server, select the server you want to manage.
(2)Select Preference >> Perfomance Tuning.
(3)set HTTP Persistent Connection Timeout to your choice (eg 180 sec for three minutes)
(4) Apply changes and restart the server.
*Setting the timeout to a lower value, however, may prevent the transfer of large files as timeout does not refer to the time that the connection has been idle. For example, if you are using a 2400 baud modem, and the request timeout is set to 180 seconds, then the maximum file size that can be transferred before the connection is closed is 432000 bits (2400 multiplied by 180)
Regards
T.Raghulan
[email protected]
Maybe you are looking for
-
Sales order creation, standard event trigger is taking long time .
We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales orde
-
Fresh Windows 7 install on Satellite C75D-B7200
Hey Toshiba Forums, My laptop, the C75D-B7200 recently had some HDD hardware problems so I got a new one and decided to put windows 7 64 bit on it. After the installation process was finished and I logged in, I couldn't connect to the internet. Th
-
ColdFusion contact form by email - please help
Hello, I tried to create a contact form, using email to send, and I have some issues and questions: 1. I like to have a message "Your form has been sent", but it shows the blank after user submited the form. 2. If user enter her email address, this f
-
Using a vector in Java IDL...URGENT!
How can I use a vector in Java IDL? I am trying to have a function return a vector. From what I have read, I should use a sequence. Therefore I tried the following code: struct ItemDB { long ItemNumber; long Quantity;
-
Contribute3 cant edit subpages
I am using contribute3, In this site I can edit the top level pages by clicking on the "edit page" button. However I can't edit any pages under this top page using this same button. All that happens is that contribute says it's loading the page and i