View Single Post
  #7 (permalink)  
Old May 17th, 2007, 04:36 AM
Benjamin_zyl Benjamin_zyl is offline
Registered User
 
Join Date: Apr 2007
Location: shanghai, , China.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Benjamin_zyl
Default

Ch19-struts-base I go to http://localhost:8080/struts-base/index.jsp and finish ex2 ,input some things and submit get a ...


HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.NoClassDefFoundError: org/apache/oro/text/perl/Perl5Util
    org.apache.commons.validator.GenericValidator.matc hRegexp(GenericValidator.java:72)
    org.apache.struts.validator.FieldChecks.validateMa sk(FieldChecks.java:238)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    java.lang.reflect.Method.invoke(Method.java:324)
    org.apache.commons.validator.ValidatorAction.execu teValidationMethod(ValidatorAction.java:567)
    org.apache.commons.validator.Field.validateForRule (Field.java:827)
    org.apache.commons.validator.Field.validate(Field. java:906)
    org.apache.commons.validator.Form.validate(Form.ja va:174)
    org.apache.commons.validator.Validator.validate(Va lidator.java:367)
    org.apache.struts.validator.DynaValidatorForm.vali date(DynaValidatorForm.java:110)
    org.apache.struts.action.RequestProcessor.processV alidate(RequestProcessor.java:928)
    org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:204)
    org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1194)
    org.apache.struts.action.ActionServlet.doPost(Acti onServlet.java:432)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

what's happened?



Reply With Quote