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

Need help with web.xml and .war file

Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear java guru's
Need help with web.xml and .war file.
I am using tomcat 3.2. I made change in my server.xml in conf directory of tomcat by adding
following lines.
<Context path="/assess"
trusted="false" >
So now my context name is "assess".In this contest I created a package name "login".The structure of
it is like this
assess -->
Web-inf -->
The web.xml is the default xml I copied from tomcat conf directory and put it in web-inf
And some it is like this
<load-on-startup> -2147483646 </load-on-startup> </servlet> <servlet-mapping>
<servlet-name> invoker </servlet-name> <url-pattern> /servlet/*
</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name> jsp
</servlet-name> <url-pattern> *.jsp </url-pattern> </servlet-mapping>
<session-config> <session-timeout> 30 </session-timeout> </session-config>
Now for making .war file I run the following command.
from my contest assess> jar -cvf login.war *
then I delete all file from my context except login.war
Now when I run the following url http://localhost:8080/assess/login/index.jsp
I am getting this error
Error: 500
Location: /assess/login/index.jsp
Internal Servlet Error:
javax.servlet.ServletException: login/Retry
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)

Root cause:
java.lang.NoClassDefFoundError: login/Retry
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
login.Retry is first bean used in index.jsp
Now Help me where I am lagging
thanks in advance
payal sharma
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic