Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Sri Nivas

Ranch Hand
+ Follow
since Apr 18, 2001
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sri Nivas

Hello Maulin,
Let me first thank you for the help and your time.
I am executing my jar like this
java -jar MyJar.jar
My looks like this.
Manifest-Version: 1.0
Main-Class: MyMain
Classpath: lib/log4j-1.2.8.jar
My classpath setting is like this:
19 years ago
Even if I keep log4j.jar in my classpath, I am getting this error.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
If I write all my application in a single java file, then it is working. But the moment I use a jar file, I get the above error.
19 years ago
I have an small application which has several classes. I have created a jar by combining all this classes and in the manifest file, made one of my classes as the main class.
All of my classes in my jar file, use some classes from an external jar log4j.jar.
I am not able to access the classes in the log4j.jar file. I get a NoClassDefFound error.
Is there any way I can solve this problem without writing my own class loader?
Do I need to change my
19 years ago
Use Forte 4.0. I think Sun has integrated Sun One App Server with it.
You do not need to repost to correct your message. Just use the edit icon.
I could solve it by adding the server certificate into my cacerts file in my jre directory.
I am including the debug output by using when I ran my client program.
Now I am using a secure ftp wrapper from on my windows 2000 ftp server.
Do I need to add the server's public key to my cacerts file? Do I need to have .keystore file?
How can I tell my client program to accept the key from the server always?
Any info is appreciated.
init context
trigger seeding of SecureRandom
done seeding SecureRandom
%% No cached client session
*** ClientHello, TLSv1
RandomCookie: GMT: 1018962994 bytes = { 117, 4, 105, 138, 146, 24, 91, 72, 159, 47, 1, 184, 140, 96, 44, 178, 41, 190, 232, 64, 118, 39, 169, 20, 6, 209, 103, 18 }
Session ID: {}
Compression Methods: { 0 }
main, WRITE: TLSv1 Handshake, length = 59
main, WRITE: SSLv2 client hello message, length = 77
main, READ: TLSv1 Handshake, length = 684
*** ServerHello, TLSv1
RandomCookie: GMT: 1018962994 bytes = { 26, 193, 82, 201, 155, 60, 230, 112, 253, 6, 69, 177, 177, 104, 94, 58, 104, 164, 187, 24, 139, 20, 13, 31, 214, 152, 199, 110 }
Session ID: {61, 188, 36, 50, 18, 82, 137, 97, 172, 213, 112, 123, 98, 15, 248, 127, 141, 124, 175, 185, 25, 149, 40, 144, 60, 42, 15, 198, 40, 13, 229, 27}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
%% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
*** Certificate chain
chain [0] = [
Version: V1
Subject: CN=, OU=Secure FTP Wrapper, O=Org, L=Location, ST=CA, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Validity: [From: Sat Oct 26 17:42:51 PDT 2002,
To: Tue Oct 25 17:42:51 PDT 2005]
Issuer: CN=, OU=Secure FTP Wrapper, O=Org, L=Location, ST=CA, C=US
SerialNumber: [ 3dbb368b]
Algorithm: [MD5withRSA]
0000: 6B 60 7F 17 5A B1 86 83 A1 35 D0 45 85 1E D9 D6 k`..Z....5.E....
0010: 90 5E 09 32 C1 FC 77 78 C6 2C 9B 08 64 D7 0E 38 .^.2..wx.,..d..8
0020: 6E 34 C9 DC 44 B4 9D 30 A2 F1 38 25 D9 7E 98 7F n4..D..0..8%....
0030: CB 30 2B C0 29 8A 3D B4 EF 63 11 E7 14 49 BB 0B .0+.).=..c...I..
0040: 20 8A 42 CC 38 F2 D2 17 7D 4B BE E5 82 CB 9B 67 .B.8....K.....g
0050: 45 B8 F2 89 18 69 84 BD 5E 52 C0 56 48 4B BD 66 E....i..^R.VHK.f
0060: A2 16 B5 A5 B3 A0 13 71 5F B0 74 CF 31 99 5E 6E .......q_.t.1.^n
0070: C1 12 73 DC 9D 77 B5 02 6A 6F 12 1E 70 E8 1C 7D
main, SEND TLSv1 ALERT: fatal, description = certificate_unknown
main, WRITE: TLSv1 Alert, length = 2
main, called closeSocket()
main, handling exception: Couldn't find trusted certificate Couldn't find trusted certificate
main, called close()
main, called closeInternal(true)
main, called close()
main, called closeInternal(true)
[ October 27, 2002: Message edited by: Sri Nivas ]
Peter, thanks for the reply.
I am getting the following exception.
I am using j2sdk 1.4.1 on windows 2000 and I am connecting to a Solaris 2.6 running ProFTPD with TLS enabled running as a standalone service.
Do I need to add the ftp server's public key or certificate in my 'cacerts' file?
Any help is appreciated.
-------------------------------------------------- Co
uldn't find trusted certificate
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(
at FTPConnection.getFullServerReply(
at FTPConnection.getServerReply(
at FTPConnection.connect(
at ftpclient.main(
Caused by: Couldn't find trusted certif
... 18 more
[ October 25, 2002: Message edited by: Sri Nivas ]
I am using the (Bret Taylor's) which I found on Now I want to make it work using SSL. I have a SSL enabled FTP Server and I want to upload and download files from this server using SSL.
I have read some stuff about SSL but I need some suggestions/ideas on how to start.
For example, instead of using Socket class, I need to use SSLSocket(from Sun's JSSE Package) class to connect to the server. And before I send USER command, I need to send AUTH SSL command
etc. But I do not know how the SSL handshake takes place, and how to code it.
Can anybody help?
May be you should use some source code control software like CVS.
19 years ago
This is a beginner question. Where do I specify classpath for WebSphere? If I have a new jar file where should I place this?
20 years ago
How do I specify the version of JDK WebSphere uses? When you do a typical installation, WebSphere uses IBM JDK, but if I want to change it to Sun's JDK afterwards, how do I do it?
I am using IBM WebSphere Application Server 3.5.0.
20 years ago
I need to solve this asap. Any help is appreciated. I am using Windows 2000 Professional, IBM WebSphere Application Server 3.5, JDK 1.2.2
Unhandled error! You might want to consider having an error page to report such errors more gracefully
com.sun.jsp.JspException: Compilation failed
at javax.servlet.ServletException.(
at com.sun.jsp.JspException.(
at com.sun.jsp.compiler.Main.compile(
at com.sun.jsp.runtime.JspLoader.compile(
at com.sun.jsp.runtime.JspLoader.loadJSP(
at com.sun.jsp.runtime.JspServlet$JspServletWrapper.loadIfNecessary(
at com.sun.jsp.runtime.JspServlet$JspServletWrapper.service(
at com.sun.jsp.runtime.JspServlet.serviceJspFile(
at com.sun.jsp.runtime.JspServlet.service(
at javax.servlet.http.HttpServlet.service(
Source code : (Just trying to insert two rows of data into a table, Note: I removed the percentage characters)

[This message has been edited by Srini Madgula (edited December 04, 2001).]
20 years ago
Try to learn to take some criticism. The language you use speaks a lot about you. Looks like you are pissed off by the truth.
20 years ago
I just wanted to inform my Indian/American friends who think that USA is the only country which is 100% responsible for everything good on this earth like technology, innovations, inventions etc. I think each and every country is full of creative people who have contributed and made this planet worth living.
We Indians are the wealthiest among all ethnic groups in America,
even faring better than the whites and the natives.
There are 3.22 millions of Indians in USA (1.5% of population). YET,
Q. Who is the co-founder of Sun Microsystems?
A. Vinod Khosla
Q. Who is the creator of Pentium chip (needs no introduction as 90% of the today's computers run on it)?
A. Vinod Dahm
Q. Who are the founder and creator of Hotmail (Hotmail is world's
No.1 web based email program)?
A. Sabeer Bhatia
Q. Who is the president of AT & T-Bell Labs (AT & T-Bell Labs is the creator of program languages such as C, C++, Unix to name a few)?
A. Arun Netravalli
Q. Who is the GM of Hewlett Packard?
A. Rajiv Gupta
Q. Who is the new MTD (Microsoft Testing Director) of Windows 2000, responsible to iron out all initial problems?
A. Sanjay Tejwrika
Q. Who are the Chief Executives of CitiBank, Mckensey & Stanchart?
A. Victor Menezes, Rajat Gupta, and Rana Talwar.
You may know some of the following facts. These facts were recently published in a German magazine, which deals with WORLD HISTORY FACTS ABOUT INDIA.
1.India never invaded any country in her last 1000 years of
2.India invented the Number system. Aryabhatta invented `zero.'
3.The world's first University was established in Takshila in
700BC. More than 10,500 students from all over the world studied more than 60 subjects. The University of Nalanda built in the 4th century BC was one of the greatest achievements of ancient India in the field of education.
4.According to the Forbes magazine, Sanskrit is the most
suitable language for computer software.
5.Ayurveda is the earliest school of medicine known to humans.
6.Although western media portray modern images of India as
poverty striken and underdeveloped through political corruption,
India was once the richest empire on earth.
7.The art of navigation was born in the river Sindh 5000 years
ago. The very word "Navigation" is derived from the Sanskrit word
8.The value of pi was first calculated by Budhayana, and he
explained the concept of what is now known as the Pythagorean
Theorem. British scholars have last year (1999) officially published that Budhayan's works dates to the 6th Century, which is long before the European mathematicians.
9.Algebra, trigonometry and calculus came from Inida. Quadratic
equations were by Sridharacharya in the 11th Century; the largest
numbers the Greeks and the Romans used were 106 whereas Indians used numbers as big as 1053.
10.According to the Gemological Institute of America, up until
1896, India was the only source of diamonds to the world.
11.USA based IEEE has proved what has been a century-old
suspicion amongst academics that the pioneer of wireless
communication was Professor Jagdeesh Bose and not Marconi.
12.The earliest reservoir and dam for irrigation was built in
13.Sushruta is the father of surgery. 2600 years ago he and
health scientists of his time conducted surgeries like cesareans,
cataract, fractures and urinary stones. Usage of anaesthesia was well known in ancient India.
14.When many cultures in the world were only nomadic forest
dwellers over 5000 years ago, Indians established Harappan culture in Sindhu Valley (Indus Valley Civilisation).
15.The place value system, the decimal system was developed in
India in 100 BC.
Quotes about India.
We owe a lot to the Indians, who taught us how to count, without
which no worthwhile scientific discovery could have been made.
Albert Einstein.
India is the cradle of the human race, the birthplace of human
speech, the mother of history, the grandmother of legend and the
great grand mother of tradition.
Mark Twain.
If there is one place on the face of earth where all dreams of living men have found a home from the very earliest days when man began the dream of existence, it is India.
Frech scholar Romain Rolland.
India conquered and dominated China culturally for 20 centuries
without ever having to send a single soldier across her border.
Hu Shih.
(Former Chinese ambassador to USA)
20 years ago