aspose file tools*
The moose likes Tomcat and the fly likes Its strange..my servlet not getting invoked.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Its strange..my servlet not getting invoked.." Watch "Its strange..my servlet not getting invoked.." New topic
Author

Its strange..my servlet not getting invoked..

satyendra adhikari
Ranch Hand

Joined: Aug 17, 2001
Posts: 52
hello!
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();
urlconn.setUseCaches(false);
urlconn.setDefaultUseCaches(false);
urlconn.setDoInput(true);
urlconn.setDoOutput(true);
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..
thankx...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

What are you writing out to "pw"?


Customer surveys are for companies who didn't pay proper attention to begin with.
satyendra adhikari
Ranch Hand

Joined: Aug 17, 2001
Posts: 52
hello!
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 problem..so 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
 
Consider Paul's rocket mass heater.
 
subject: Its strange..my servlet not getting invoked..