Hi

Please always respond to the list, så that others may benefit. 

Hermod

-----Opprinnelig melding-----
Fra: Hariharan Manoharan01 [mailto:[EMAIL PROTECTED] 
Sendt: 15. oktober 2007 12:19
Til: [EMAIL PROTECTED]
Emne: RE: initializing commons validator for rule type "mask"

Hi,

Thanks for helping me out. The problem got solved.

Thanks & Regards,



Hariharan Manoharan


-----Original Message-----
From: Hermod Opstvedt [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 13, 2007 5:25 PM
To: user@shale.apache.org
Subject: SV: initializing commons validator for rule type "mask"

Hi

The answer is in your stacktrace :

Caused by: java.lang.NoClassDefFoundError:
org.apache.oro.text.perl.Perl5UtilHi

You need oro in your classpath.

Hermod

-----Opprinnelig melding-----
Fra: Hariharan Manoharan01 [mailto:[EMAIL PROTECTED]
Sendt: 13. oktober 2007 11:47
Til: user@shale.apache.org
Emne: initializing commons validator for rule type "mask"


  Hi,

This is the code used

      <h:inputText value="" id="connectionName">
                              <f:validateLength minimum="1"
maximum="50"></f:validateLength>
                              <val:commonsValidator type="mask"
                                    message="errorMessages.no_data_found"
                                    server="true">
                        <val:validatorVar name="mask"
value="^[a-zA-Z0-9]+$"/>
                        </val:commonsValidator>
                  </h:inputText>

Value attribute left blank intentionally.

I've both shale-validator and common-validator jars in my lib folder. I get
the following exception trace. Kindly help me.


com.sun.faces.lifecycle.ProcessValidationsPhase execute Error initializing
commons validator for rule type "mask" on component id "connectionName".
java.lang.RuntimeException: Error initializing commons validator for rule
type "mask" on component id "connectionName".
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:8
21)
      at javax.faces.component.UIInput.validateValue(UIInput.java:781)
      at javax.faces.component.UIInput.validate(UIInput.java:645)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:849)
      at javax.faces.component.UIInput.processValidators(UIInput.java:412)
      at javax.faces.component.UIForm.processValidators(UIForm.java:170)
      at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java
:946)
      at
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:373)
      at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPh
ase.java:80)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
      at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
66)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:478)
      at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:463)
      at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:92)
      at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
tpInboundLink.java:465)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
tpInboundLink.java:394)
      at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea
dCallback.java:102)
      at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
dCompletionListener.java:152)
      at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
:213)
      at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFutu
re.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
      at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741
)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64
)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:7
99)
      ... 29 more
Caused by: java.lang.NoClassDefFoundError:
org.apache.oro.text.perl.Perl5Util
      at
org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.j
ava:65)
      ... 34 more

[10/13/07 14:55:42:161 IST] 0000001f ServletWrappe E   SRVE0068E: Uncaught
exception thrown in one of the service methods of the servlet: Faces
Servlet. Exception thrown : javax.servlet.ServletException: Error
initializing commons validator for rule type "mask" on component id
"connectionName".
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:209)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
66)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:478)
      at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:463)
      at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:92)
      at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
tpInboundLink.java:465)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
tpInboundLink.java:394)
      at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea
dCallback.java:102)
      at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
dCompletionListener.java:152)
      at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
:213)
      at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFutu
re.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
      at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741
)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
---- Begin backtrace for Nested Throwables
java.lang.RuntimeException: Error initializing commons validator for rule
type "mask" on component id "connectionName".
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:8
21)
      at javax.faces.component.UIInput.validateValue(UIInput.java:781)
      at javax.faces.component.UIInput.validate(UIInput.java:645)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:849)
      at javax.faces.component.UIInput.processValidators(UIInput.java:412)
      at javax.faces.component.UIForm.processValidators(UIForm.java:170)
      at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java
:946)
      at
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:373)
      at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPh
ase.java:80)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
      at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
66)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:478)
      at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:463)
      at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:92)
      at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
tpInboundLink.java:465)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
tpInboundLink.java:394)
      at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea
dCallback.java:102)
      at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
dCompletionListener.java:152)
      at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
:213)
      at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFutu
re.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
      at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741
)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64
)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:7
99)
      ... 29 more
Caused by: java.lang.NoClassDefFoundError:
org.apache.oro.text.perl.Perl5Util
      at
org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.j
ava:65)
      ... 34 more

[10/13/07 14:55:42:208 IST] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl initialize FFDC0009I: FFDC opened
incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv01\logs\ffdc\server1_337033
70_07.10.13_14.55.42_0.txt
[10/13/07 14:55:42:224 IST] 0000001f ServiceLogger I
com.ibm.ws.ffdc.IncidentStreamImpl resetIncidentStream FFDC0010I: FFDC
closed incident stream file C:\Program
Files\IBM\SDP70\runtimes\base_v61\profiles\AppSrv01\logs\ffdc\server1_337033
70_07.10.13_14.55.42_0.txt
[10/13/07 14:55:42:239 IST] 0000001f WebApp        E   [Servlet
Error]-[Faces Servlet]: java.lang.RuntimeException: Error initializing
commons validator for rule type "mask" on component id "connectionName".
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:8
21)
      at javax.faces.component.UIInput.validateValue(UIInput.java:781)
      at javax.faces.component.UIInput.validate(UIInput.java:645)
      at javax.faces.component.UIInput.executeValidate(UIInput.java:849)
      at javax.faces.component.UIInput.processValidators(UIInput.java:412)
      at javax.faces.component.UIForm.processValidators(UIForm.java:170)
      at
javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java
:946)
      at
javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:373)
      at
com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPh
ase.java:80)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
      at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:9
66)
      at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.
java:478)
      at
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrappe
r.java:463)
      at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServl
etWrapper.java:92)
      at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
      at
com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
      at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(Ht
tpInboundLink.java:465)
      at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(Ht
tpInboundLink.java:394)
      at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLRea
dCallback.java:102)
      at
com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioRea
dCompletionListener.java:152)
      at
com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java
:213)
      at
com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFutu
re.java:195)
      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
      at
com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741
)
      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64
)
      at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:43)
      at java.lang.reflect.Method.invoke(Method.java:615)
      at
org.apache.shale.validator.CommonsValidator.validate(CommonsValidator.java:7
99)
      ... 29 more
Caused by: java.lang.NoClassDefFoundError:
org.apache.oro.text.perl.Perl5Util
      at
org.apache.commons.validator.GenericValidator.matchRegexp(GenericValidator.j
ava:65)
      ... 34 more

Thanks & Regards,

Hariharan Manoharan ,




**************** CAUTION - Disclaimer ***************** This e-mail contains
PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the
addressee(s). If you are not the intended recipient, please notify the
sender by e-mail and delete the original message. Further, you are not to
copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is
not liable for any damage you may sustain as a result of any virus in this
e-mail. You should carry out your own virus checks before opening the e-mail
or attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***


Reply via email to