Originally posted by Slavko Glisic: Please, can any body help me with this servlet:
Are you sure that an exception is not being thrown by your code in init? Althought normally I would expect any exceptions thrown to show up on the logs, try adding some logging statements (System.out.println) before the throw statements.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Now that I think about Sonny's suggestion - the only way you can get a not available message that I know of is if the NotAvailableException is thrown. So it is likely that your web.xml is not providing the addressfile parameter. Trying to debug servlets that are not put in packages is a hopeless task - thats what years of experience on this and other forums has shown. Just go ahead and bite the bullet - learn how to use packages and pay close attention to the correct form of web.xml. Also - do NOT use the /servlet/ form of URL addressing that requires the use of the "invoker" servlet. Bill
Joined: Jul 04, 2005
Thanks Sonny, Bill Really I'm still new in servlets and I really want to bite the bullet, I don't expect to somebody make job for me, any way this is just one example what I trying to work... I know that is best way for learning is go inside and try to fix what is the problem, but like I'm said all the other servlet behave normal except this one... b.t.w. this how looks my web.xml Regards!