Rob Chung

Ranch Hand
+ Follow
since Oct 15, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rob Chung

I think tomcat is not picking up the <servlet> tag in the shtml and I don't know why. I found this because the shtml continue to display the page without invoking the (SSI) servlet.
Pls help.
20 years ago
I have also tried adding codebase in my shtml :
<servlet codebase="/ap1/WEB-INF/classes" code="CurrentTime.class">
and still doesn't work. Any ideas?
Thanks!
20 years ago
Yes, I did. As well as uncommenting the SSI related nodes in the Tomcat home/conf/web.xml, I also tried to move these nodes to my working folder's web.xml and neither worked.
20 years ago
Hi
I am new to servlet and Tomcat. I am trying to do the SSI CurrentTime simple sample. Tomcat 5.0.19 release note says that if I uncomment the SSI related details in the web.xml, SSI should work. The shtml file ran with no error but does not seem to acknowledge the servlet. I went to the servlet direct on the url and I could see the servlet fine. So my guess is that the shtml side is not working. I have looked on the web for answers however most similar questions dealt with earlier versions of Tomcat which do not support SSI.
Any ideas?
Thanks!
Rob
20 years ago
Thanks for your reply.
I found that with the ms JDBC driver, it required 3000+ connections to the database! (I checked the log and looked into the performance statistic on connections.) Whereas the Avenir driver used about 40 connections as expected. I switched the drivers a few times to confirm this is the case.
Any idea why?
Can anyone recommend some jdbc drivers which work well with ms 2000 sql server?
Thanks in advance!
Our aplpication has been using
driver=net.avenir.jdbc2.Driver
url=jdbc:AvenirDriver://ourWeb:1433/ourDB
We are using MicroSoft 2000 SQL Server and we are trying to switch to the Microsoft JDBC driver.
driver=com.microsoft.jdbc.sqlserver.SQLServerDriver,
url=jdbc:microsoft:sqlserver://ourWeb:1433;DATABASENAME=ourDB
I downloaded the driver and put the jar files in the classpath. No code changes.
I have the following error. Please help if you have any idea. Thanks in advance!
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Software caused connection abort: recv failed
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at com.microsoft.jdbc.sqlserver.SQLServerImplConnection.open(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getNewImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.getImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.setupImplConnection(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.<init>(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.<init>(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.prepareStatement(Unknown Source)
After the last import Thawte generated certificate problem (Failed to establish chain from reply), I now seemed to have gone pass that and moved onto the next problem:
I imported Thawte's public certificate and Thawte generated certificate into IE6 and then export the generated certificate in.p7b format. I then tried to import this .p7b format into my keystore and I have this error:
keytool error: java.lang.Exception: Certificate chain in reply does not verify: Signature does not match.
Any ideas please?!
Thanks in advance!
21 years ago
Thanks for replying.
The public cert. I got was :
-----BEGIN CERTIFICATE-----
MIICkTCCAfqgAwIBAgIDRCYnMA0GCSqGSIb3DQEBBAUAMIGHMQswCQYDVQQGEwJa
QTEiMCAGA1UECBMZRk9SIFRFU1RJTkcgUFVSUE9TRVMgT05MWTEdMBsGA1UEChMU
VGhhd3RlIENlcnRpZmljYXRpb24xFzAVBgNVBAsTDlRFU1QgVEVTVCBURVNUMRww
GgYDVQQDExNUaGF3dGUgVGVzdCBDQSBSb290MB4XDTAzMDExMzEzNTUxMloXDTAz
MDIwMzEzNTUxMlowbDELMAkGA1UEBhMCR0IxDzANBgNVBAgTBkxvbmRvbjEPMA0G
A1UEBxMGTG9uZG9uMRIwEAYDVQQKEwlQcm9jQ3liZXIxEjAQBgNVBAsTCVByb2ND
eWJlcjETMBEGA1UEAxMKSGVsZW4gU2h1bTCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
gYkCgYEAwEhoUIJZfYgRtWzRjNfAozJd+yvNPoWUYXvPVWUzDC9qGjV+f+iEw7+3
7D0TYTrDVaYbMcnrttJCmANr2Du9QpzNVYRtle5I0Gs5lHwz+Y31815q9WFVO9JE
SdfCrY0afO0CVVBBvCR9A0/pfK3vivtKM/vLAJE064x6HbQ9og0CAwEAAaMlMCMw
EwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQF
AAOBgQAIwkV2bx4RsnHJR/OTsj/K7eHkPMfMzAaKcE7XMavFvw02JbMRaQuujdU9
27Nu3y5GrfLqLlk9tuSJor3YE/q4VkUOFs/Qq9iEhPIm3NIYrHpckh4hYsqxfeFK
PLrdYpl6sKnpX83wgRvsZZrvx8xrvBHWToV8ZWdCV23sMd/NEQ==
-----END CERTIFICATE-----
I did convert it to other formats through the use of IE6, Tool>Internet Options>Content to import the certificate and export it as other format, then tried importing this converted-format cert. into my keystore. I still have the same error.
I searched the net for days and am still stuck with this same error.
21 years ago
Any more ideas please?
Thanks in advance!
21 years ago
Hi,
My application contains the following code:
SocketChannel s = SocketChannel.open();
s.connect(.....);
s.configureBlocking(false);
s.socket().setKeepAlive(true);
It seemed to me that the socket related to the SocketChannel gets timed out after an hour if no traffic is using this socket.
Does anyone know the default timeout of a socket?
And how to keep it alive constantly?
Thanks in advance!
I have tried the jurisdiction jar files. Still same error.
Please do post more ideas if any come up.
Thanks!
21 years ago
Lewin,
Thank you very much for your quick reply.
I did checked that Thawte is one of the trusted entried in my cacerts file. But because I kept having the chain problem, I thought its worth a try to put that into my keystore (which didn't help to solve my problem anyway).
I am using 1.4. Will look into the unlimited jurisdiction policy files now.
21 years ago
I created a keystore through the use of keytool.
I then created a .csr request file through keytool.
I then went to the Thawte site and pasted in the data from the .csr file in order to get a temp. certificate from Thawte.
I then cut the certificate data generated from Thawte and pasted into a notepad file .cer.
I tried to import this .cer file into the keystore I created.
I kept having this error: keytool error: java.lang.Exception: Failed to establish chain from reply
I then obtained Thawte's own public certificate and saved theat in a .cer file, and imported it into IE6 through tool>internet options>content>Certificates>other People and then export it in other format so that I can import the Thawte's own cert. as trusted certificate into my keystore. This import worked. But the initial import continued to have the failed to eastablich chain problem.
Please can someone give me some ideas?
Thanks in advance!
21 years ago
On the sun's website http://suned.sun.com/GB/certification/java/certification_details.html#developer for purchasing the developer exam voucher, it says:
Prerequisite: Submission of the programming assignment
So I am not sure if you can purchase the vouchure BEFORE you upload your assignment anyway.
As I understand, signed certificates can come in varies formats. The standard format is X.509. It sounds as if the certificate you tried to import was not in X.509 format.
21 years ago