• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

is not available

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Sheriff
Posts: 9109
12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is a very general error, check your tomcat logs to see what is going on.
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".
 
Sheriff
Posts: 67750
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"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.
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But, thanx anyway!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your servlet is not in a package - this is probably preventing the class file from being found.
Bill
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 1211
Mac IntelliJ IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!

 
Ranch Hand
Posts: 1087
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


filename = config.getInitParameter("addressfile");



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

Shailesh
 
Slavko Glisic
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
You've gotta fight it! Don't give in! Read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic