• Post Reply Bookmark Topic Watch Topic
  • New Topic

exception adding validator plug-in  RSS feed

 
Sivarama Krishna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I'm getting the below exception when I try to add the validator plug-in into struts-config.xml. validation.xml file is there in the WEB-INF folder. Here is the plug-in declaration..

<plug-in classname="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/org/apache/struts/validator/validator-rules.xml, /WEB-INF/validation.xml" />
</plug-in>

And the exception is ....
<Sep 10, 2008 5:23:33 PM IST> <Error> <ServletContext-/icap-audit-webapp> <00000
0> <Struts: null
java.lang.NullPointerException
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:261)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClass
Loader.java:158)
Truncated. see log file for complete stacktrace
>
<Sep 10, 2008 5:23:33 PM IST> <Error> <HTTP> <BEA-101216> <Servlet: "Struts" fai
led to preload on startup in Web application: "icap-audit-webapp".
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
t.java:880)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(St
ubSecurityHelper.java:274)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
Truncated. see log file for complete stacktrace
>

Please help...
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is you validator-rules.xml file located ? Ideally It should be at /WEB-INF directory , so that correct entry ll be ;

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!