dhanunjaya kumar

+ Follow
since Sep 22, 2006
Merit badge: grant badges
For More
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 dhanunjaya kumar

I want to send a request to Tomcat server.
I am expecting a response (headers) from the tomcat server as follows, the header information is captured by ethereal.

How can i achieve this.

I am trying in the following way but could not achieve the result in the ethereal logs.

yes previously i do stop and start of tomcat .
only thing is i modified server.xml just added one Realm (JAASRealm).
and changed the JAVA_OPTS.
i even killed the tomcat4 process also. again i used to get the same message.
17 years ago
Hello all,
I am using tomcat4 ,now i am not able to shutdown my tomcat.
i added some context path in <context > tag.
when i tried to shutdown my tomcat i am getting the following message.

Stopping tomcat4: Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /usr/java/jdk
[GC 510K->146K(1984K), 0.0051750 secs]
[GC 658K->270K(1984K), 0.0033600 secs]
[GC 782K->323K(1984K), 0.0031600 secs]
[GC 835K->337K(1984K), 0.0019040 secs]
[GC 849K->360K(1984K), 0.0017900 secs]
[GC 870K->377K(1984K), 0.0018950 secs]
[GC 889K->384K(1984K), 0.0018080 secs]
[GC 896K->391K(1984K), 0.0014490 secs]
[GC 903K->385K(1984K), 0.0019590 secs]
[GC 897K->504K(1984K), 0.0032890 secs]
[GC 1016K->507K(1984K), 0.0015660 secs]
[GC 1019K->521K(1984K), 0.0019480 secs]
[GC 1033K->523K(1984K), 0.0010690 secs]
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at org.apache.catalina.startup.Catalina.stop(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
17 years ago
Hello All,
I want my Web application to use kerberos for authentication.
is it possible to configure tomcat,such that itself uses kerberos mechanism.
If possible ,please... let me know the procedure.

Thanks in Advance.
17 years ago
can any body help me how to configure context.xml and server.xml,where my application is running outside webapps folder and the tutorial that teach about context.xml and server.xml.
17 years ago
is it possible to login into a linux machine from java program,and i want execute linux commands from my java program.
i don't know wether this is the right place to post this question.
hi ,
i am continuosly reading mails from pop3 server.
to read continuosly i am using a thread with infinite loop.
while running in the tomcat it works fine .
when i shut down the tomcat i am getting an error like "failed to shut down".
this was caused due to the thread.this thread never dies off.
can any one suggest a good logic or the procedure to kill the thread while shut down of tomcat.
I developed a web application.
To access The Application I am using
http://localhost:8080/Application name.

is it possible to give a name instead of "localhost:8080"
17 years ago
i am reading data from a file using jsp.

FileInputStream fin=new FileInputStream("c:/program files/tomcat/project/book1.txt");

i want to remove this path "C:/......." and i want to use relative path like "/book1.txt" it was not working.

Even i went for java.io.File.getPath();but i did not succeeded
i am getting the path upto "c:/program files/tomcat/bin"

can any one help on this
17 years ago
I am,writing a servlet ,i want to run this servlet at specific intervals or at a given time it was not working.

i am using the following code
17 years ago
it is working now ,it is some other problem with the server,

Thankyou for your reply
17 years ago
is there any facility in java to connect to a linux machine
by using secure shell(ssh)
17 years ago
i am using the Authenticator

in the below code PopupAuthenticator is the Class which extends Authenticator

here is the code:
Authenticator auth = new PopupAuthenticator();// Pop
Session session =
Session.getDefaultInstance(props, auth);
17 years ago
i am trying to read the mails from my inbox through pop3 server,
the program was getting compiled ,
while running the program iam getting the

-ERR Logon failure: unknown user name or bad password.
17 years ago