By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,115 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,115 IT Pros & Developers. It's quick & easy.

Struts automatic Validator issue

P: 3
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
Share this Question
Share on Google+
1 Reply


P: 3
hey,

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

Post your reply

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