• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

wrong with my tomcat

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I don't know why my tomcat4.0 doesn't work well:
I can't read html files from browser.
It used to do well, but not now. Anyway, it still is fine with jsps and servlets.
Could someone tell me why?
Thanks,
 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tony
Could you be more specific about your problem, error codes (webserver - Apache/IIS)
I use Tomcat 3.X and 4.X in my production environments. Hope I can help you
Regards
--
Venkat
 
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I also have some strange problems with my Tomcat4.0.1. Every time I start up, I get
this error message:
ERROR reading java.io.ByteArrayInputStream@95a56
At Line 162 /web-app/servlet-mapping
I don't know where this error comes from. I checked web/xml, nothing relevant.
And I ran javaBeans examples under Tomcat several days ago with no problem, now I cannot run them well. I am wondering if the following URL is correct to run a date javaBean example:
http://localhost8080/examples/jsp/date.jsp
Or maybe just the way I put my URL is wrong?
Thanks.
Rick
 
Sita Kodali
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This happens when you upgrade from Tomcat 3.x to Tomcat 4.x. web.xml of both versions are not compatible. Try moving Tomcat4.x/conf/web.xml to <yourcontext>WEB-INF and restart.
Further, if you have any servlets in 3.x outside a package, they may not work.
HTH
--
Venkat
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sita kodali:
This happens when you upgrade from Tomcat 3.x to Tomcat 4.x. web.xml of both versions are not compatible. Try moving Tomcat4.x/conf/web.xml to <yourcontext>WEB-INF and restart.
Further, if you have any servlets in 3.x outside a package, they may not work.
HTH
--
Venkat


Thanks sita for your replay:
But I have never installed any previous verions of tomcat except 4.0.1. I can run servlets and ISPs smoothly, I just cannot run javaBean examples under tomcat now. Any more suggestions?
Thanks,
 
tony lee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Could you be more specific about your problem, error codes


The problem is:
When I type in http://localhost:8080/my.html into the browser, a window "Unknown File Type" is prompted. But I can open my.html as a common file
Thanks,
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rick you might have solved it already, but it sounds like your web.xml does not have the servlet-mapping closing tag, or some other closing tag, I did that yesterday, and that was my fix.
 
rick collette
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
Rick you might have solved it already, but it sounds like your web.xml does not have the servlet-mapping closing tag, or some other closing tag, I did that yesterday, and that was my fix.


Yes, I solved it. Thanks anyway, Mark.
Tell you the truth, this forum is not as active
as scjp forum, I miss that one already.
[ April 24, 2002: Message edited by: rick collette ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic