• 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

Running struts under tomcat 5

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
struts version 1.2.4 (latest)
Tomcat version 5.0.28
Windows XP

When file struts-examples.war (or struts-blank.war or whatever)
is put into webapps directory - the subdirectory struts-examples
gets created, however, this application is not available
and this is what LOG file says:

Oct 18, 2004 4:49:10 PM org.apache.catalina.core.StandardHostDeployer install
INFO: Installing web application at context path /struts-examples from URL file :/Tomcat5.0/webapps/struts-examples
Oct 18, 2004 4:49:10 PM org.apache.catalina.startup.HostConfig deployWARs
SEVERE: Exception while expanding web application archive struts-examples.war
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
........... end snippet .............

All system variables are defined (CATALINA_HOME and JAVA_HOME).

Are there any special configurations required for tomcat or struts?

Thanks,
Nik
 
Nik Karasev
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I have to back off - it was all my fault - I put some *.jar
files (from struts distribution) into JAVA_HOME\jre\lib\ext
thinking it will let me avoid having struts files in every web-app.
I was wrong. After removing un-needed stuff from extention directory
all worked like a charm.

Regards.
Nik
reply
    Bookmark Topic Watch Topic
  • New Topic