473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Struts automatic Validator issue

hi,

When I add the following in struts-config.xml, I am getting the below mentioned error while starting the server.

/***********************Struts entry**********************/

<plug-in className="org.apache.struts.validator.ValidatorPl ugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
/***********************END of Struts entry**********************/

I have not done any changes other than the above. Before adding this code to the struts-config.xml, the application was starting without any errors and application works fine.

Please advice.



/*********************ERROR while starting server********************/
11:10:43,836 INFO [ValidatorPlugIn] Loading validation rules file from '/WEB-INF/validation.xml'
11:11:05,164 ERROR [ValidatorPlugIn] Connection timed out: connect
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl .java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSoc ketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.j ava:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java :157)
at sun.net.www.http.HttpClient.openServer(HttpClient. java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient. java:477)
at sun.net.www.http.HttpClient.<init>(HttpClient.java :214)
at sun.net.www.http.HttpClient.New(HttpClient.java:28 7)
at sun.net.www.http.HttpClient.New(HttpClient.java:29 9)
at sun.net.www.protocol.http.HttpURLConnection.getNew HttpClient(HttpURLConnection.java:792)
at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(HttpURLConnection.java:744)
at(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
at org.apache.catalina.core.StandardContext.init(Stan dardContext.java:5005)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.commons.modeler.BaseModelMBean.invoke(B aseModelMBean.java:503)
at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDy namicInvoker.java:150)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDep loyInternal(TomcatDeployer.java:274)
at org.jboss.web.tomcat.tc5.TomcatDeployer.performDep loy(TomcatDeployer.java:91)
at org.jboss.web.AbstractWebDeployer.start(AbstractWe bDeployer.java:357)
at org.jboss.web.WebModule.startModule(WebModule.java :68)
at org.jboss.web.WebModule.startService(WebModule.jav a:46)
at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanSupport.java:272)
at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMBeanSupport.java:222)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceController.java:897)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:418)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknow n Source)
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer .java:273)
at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:964)
at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:775)
at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:738)
at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:722)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractInterceptor.java:121)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelMBeanOperationInterceptor.java:1 27)
at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerI mpl.java:434)
at org.jboss.system.server.ServerImpl.start(ServerImp l.java:315)
at org.jboss.Main.boot(Main.java:195)
at org.jboss.Main$1.run(Main.java:463)
at java.lang.Thread.run(Thread.java:595)
11:11:15,211 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/D:/HSI/JBoss/jboss-4.0.2/server/default/deploy/jmx-console.war/
11:11:15,477 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
11:11:15,586 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
11:11:15,602 INFO [JkMain] Jk running ID=0 time=0/31 config=null
11:11:15,617 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 2m:3s:469ms

/*********************END of ERROR**********************************/


regards
prasanth
Oct 18 '06 #1
1 1831
hey,

this problem is solved. thanks
Oct 19 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: James | last post by:
Running on Xp with WSAD5.0.1 (acts the same in 5.1) an action class is simply not being called when it is configured identically with others called in the same manner. It never gets into the...
5
by: Alex M | last post by:
I'm trying to use the jakarta struts client side javascript validators and the validators are working, but they are not showing the popup messages. I have the message keys defined in the...
9
by: Russ Perry Jr | last post by:
I'm using "ID" and "Value" in the generic sense here... Let's say one page I had a <html:select> with a collection like this: <html:options collection="items" property="key"...
4
by: nc | last post by:
My iterator can find my collection when my Action class calls my jsp directly, however when my Action class calls an html file that is set up with IFrames (one of which is loading that same jsp), I...
7
by: svilen | last post by:
hello again. i'm now into using python instead of another language(s) for describing structures of data, including names, structure, type-checks, conversions, value-validations, metadata etc....
1
by: nithiya sri | last post by:
i am new to struts.I try running struts application in Eclipse with the tomcat plug in .. it shows the following error:; please help me in this... SEVERE: Error loading WebappClassLoader ...
2
by: PaulCarmo | last post by:
Hello, I'm validating a form containing various types of data. One of the fields to be validated is an amount which must be between 0.01 and 999999.99. The code for this field validation in the...
1
by: shrik | last post by:
hi everybody. I have following problem. There are two pages. index.jsp and main.jsp in my application Index.jsp contains logging interface in . It submits password and userid to loginform bean. ...
1
by: NamelessNumberheadMan | last post by:
I can't seem to get Struts 2 validations to work. I have been converting from Strust 1 to Struts 2. So far I've refactored all the code (for this particular module) on the back end, rewrote the jsp...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.