File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Its servlet not getting invoked.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Its servlet not getting invoked.." Watch "Its servlet not getting invoked.." New topic

Its servlet not getting invoked..

satyendra adhikari
Ranch Hand

Joined: Aug 17, 2001
Posts: 52
within a java programme i am trying to invoke a servlet with url..
URL url=new URL("http://satya:8080/des/servlet/LoginServlet");
URLConnection urlconn=url.openConnection();
pw =new ObjectOutputStream(urlconn.getOutputStream());
i have been using this for long but this time i dont know what is happening here..
i am getting this on tomcat
2002-01-11 01:11:11 - Ctx( ): 400 R( /) null
if i am typing servlet URL on browser it gets initiliased...
does someone please suggest what is the cause..
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17257

What are you writing out to "pw"?

An IDE is no substitute for an Intelligent Developer.
satyendra adhikari
Ranch Hand

Joined: Aug 17, 2001
Posts: 52
I am writing two objects typically DES key and Encrypted message objects and after that i just close down the pw and connection.But i have seen that if i read something from my servlet after writing to it it is working fine..and there is no is it necessary to get something from a servlet after giving it something??
and also i searched the web for this and at some places i found it mentioned as a bug in tomcat??
is it??
thank you for your help
I agree. Here's the link:
subject: Its servlet not getting invoked..
It's not a secret anymore!