Forums Register Login

is not available

+Pie Number of slices to send: Send
Please, can any body help me with this servlet:



By the way I'm using Eclipse 3.0.2 and Tomcat 5.5, and with the rest of the servlets in the same package I don't have any problem.
Thanks!
+Pie Number of slices to send: Send
 

Originally posted by Slavko Glisic:
Please, can any body help me with this servlet:

...

By the way I'm using Eclipse 3.0.2 and Tomcat 5.5, and with the rest of the servlets in the same package I don't have any problem.
Thanks!



What problem are you having with this servlet?
+Pie Number of slices to send: Send
It shows that Servlet does not exist:
HTTP Status 404 - Servlet ListManagerServlet is not available
but I set everything same like for the other servlets from the package(I mean web.xml)
+Pie Number of slices to send: Send
That is a very general error, check your tomcat logs to see what is going on.
+Pie Number of slices to send: Send
Tim thanks for your reply, but I still don't found out what is going on!
I've found in log smthg like "INFO: Marking servlet ListManagerServlet as unavailable".
+Pie Number of slices to send: Send
 

"INFO: Marking servlet ListManagerServlet as unavailable".



What about before that? The container is marking the servlet as unavailable for a reason -- usually because an exception was thrown while loading it.
+Pie Number of slices to send: Send
But I realy cannot find it :-((!

This is all what it show me:

Jul 6, 2005 5:15:05 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 6, 2005 5:15:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2714 ms
Jul 6, 2005 5:15:06 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 6, 2005 5:15:06 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Jul 6, 2005 5:15:06 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 6, 2005 5:15:07 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 6, 2005 5:15:07 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 6, 2005 5:15:07 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/80 config=null
Jul 6, 2005 5:15:07 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 6, 2005 5:15:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2023 ms
Jul 6, 2005 5:15:26 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Associated with Deployer 'Catalina:type=Deployer,host=localhost'
Jul 6, 2005 5:15:26 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: init: Global resources are available
Jul 6, 2005 5:15:26 PM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
Jul 6, 2005 5:15:49 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet ListManagerServlet as unavailable
+Pie Number of slices to send: Send
But, thanx anyway!
+Pie Number of slices to send: Send
Your servlet is not in a package - this is probably preventing the class file from being found.
Bill
+Pie Number of slices to send: Send
Thks Bill, but I think that's not a problem 'coz all other works well from the same package(default package), and I was set it in web.xml file, like the others...
i feel sicK!
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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!

+Pie Number of slices to send: Send
 


filename = config.getInitParameter("addressfile");



where is init-param for parameter addressfile in your web.xml ???

Shailesh
+Pie Number of slices to send: Send
That's it Shailesh, thanks a lot.
I must learn more about servlet deploying...
Just another question why in the log file this doesn't show me that exception is thrown?
I promise I will be the best, most loyal friend ever! All for this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1685 times.
Similar Threads
what methods of HttpServlet are abstract?
storing textfield values
Please try to execute this???
Replacing html tags in servlet code with a html file name ??
[IMP]Whydoes it give 403 Method not found exception..??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:54:40.