Hi, thank you for the reply. That with the webserver is a good idea, i am gonna try it out. I also wondor that, why the struts-config and tiles-config is working. just for a try i removed the network cable and this time it throws exception only from validator module ie. struts and tiles are not require any internet connection at all. as you reqested i am adding the config files. <-----------------config file--------------------------> <?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE form-validation PUBLIC "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN" "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"> <!-- TODO: form-validation statt action-validation. wuerde das file halbieren... --> <form-validation> <global> <constant> </constant> </global> <formset> <form name="/daten/datenpflege/dosuche"> <field property="zeitraumVon" depends="required"> <arg0 key="fdb.admin.daten.datenpflege.suche.von"/> </field> <field property="zeitraumBis" depends="required"> <arg0 key="fdb.admin.daten.datenpflege.suche.bis"/> </field> <field property="kategorie" depends="required"> <arg0 key="fdb.admin.daten.datenpflege.suche.kategorie"/> </field> </form> ...................... ....................... <------------------end------------------> thanks in advance, Alvin ________________________________________________________________ Alvin Antony Software Engineer Ludwig-Maximilians-Universitaet München Zentrale Universitaetsverwaltung Referat IIIA 3 (Anwendungs Entwicklung) Theresienstr. 37 / 2. Stock Zi. 249 80333 Muenchen phone +49 (089) 2180 - 4005 mail [EMAIL PROTECTED] web http://informationstechnik.verwaltung.uni-muenchen.de ________________________________________________________________ Alvin Antony Software Engineer Ludwig-Maximilians-Universitaet München Zentrale Universitaetsverwaltung Referat IIIA 3 (Anwendungs Entwicklung) Theresienstr. 37 / 2. Stock Zi. 249 80333 Muenchen phone +49 (089) 2180 - 4005 mail [EMAIL PROTECTED] web http://informationstechnik.verwaltung.uni-muenchen.de >>> [EMAIL PROTECTED] 07/05/04 12:16 PM >>> You could always put the DTD on a webserver your machine actually can get to and avoid the pathname issue that way. But if the choice is between deploying your project with the same DTD that is in the Struts build, or the project requiring a modification to (and then having to maintain) a custom "non-validating against the validator dtd" incarnation of struts, I wouldn't even have to think twice on it. Anyway, the DOCTYPE's in the Struts config and validation xml files point to the same host name (jakarta.apache.org). Since you say you only get the error on the validator, I'm wondering if maybe you have a typo in your validation.xml's DOCTYPE declaration. Mind posting it's contents? HTH, -Joe > -----Original Message----- > From: Alvin Antony [mailto:[EMAIL PROTECTED] > Sent: Monday, July 05, 2004 5:14 AM > To: [EMAIL PROTECTED] > Subject: problem using Commons Validator. please Help > > > Hi friends, > > I am running out of ideas. I already ask about this here but > with out success. I tried it also on mailing list for > jakarta-commons but got rdirected to again here. I repeat > the problem once again , when I starts the application > everythings works fine except the validator, it sucks with an > error socketException connection refused (a detiled error > massage given below). I replace now the references to online > DTDs with a local one inside WEB-INF folder. this works but > i am not an absolute fan of absolute paths on a config > file(or can i use relative path there?). > what makes me unhappy with this is, i couldn't figure out the > actual problem, i tried to dig into the src code for > validator but with out success. > > if the problem is unknown :'), how i can turn off validating > the xml files against DTD? i set on the struts-config init > property validate--> false. but didn't work. > > thanks a lot, > alvin > > > > >>> [EMAIL PROTECTED] 07/02/04 7:35 PM >>> > Alvin Antony wrote: > > Thank you for your response. yes the problem is on my workstation > and has an Internet access, > > through a proxy server indeed. The same setup loads without > problems > > on the server.How can i > > configure the parser not to validate for schema any > otherway to push > this error back. I also have > > Tiles definitions and they get loaded normaly. > > You probably should try the Struts mailing list with this one. From > what I can see, Struts uses Validator, > which uses Digester, so I'm unsure at which level this > setting must be > added. > > > > > >>>>[EMAIL PROTECTED] 01.07.04 18.29 >>> > > > > It looks like an XML parser is trying to load a DTD, and failing. > > Does > > your Tomcat server have outside internet access? > > > > > > > > > > Alvin Antony wrote: > > > >>Hi Friends, > >> i get a connecton error when i start the struts > >>application which uses validation module . The error > message which i > >>get is given below. > >> > >>ERROR org.apache.struts.validator.ValidatorPlugIn - > Connection reset > >>by peer: connect > >>java.net.SocketException: Connection reset by peer: connect > >> at java.net.PlainSocketImpl.socketConnect(Native Method) > >> > >> at java.net.URL.openStream(Unknown Source) > >> at > org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown > >>Source) > >> > >> at > org.apache.commons.digester.Digester.parse(Digester.java:1562) > >> at > org.apache.commons.validator.ValidatorResourcesInitializer.ini > tialize(ValidatorResourcesInitializer.java:256) > >> at > org.apache.struts.validator.ValidatorPlugIn.initResources(Vali > datorPlugIn.java:224) > >> at > org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlug > In.java:167) > >> at > org.apache.struts.action.ActionServlet.initModulePlugIns(Actio > nServlet.java:1105) > >> at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:481) > >> at javax.servlet.GenericServlet.init(GenericServlet.java:256) > >> at > >>org.apache.catalina.core.StandardWrapper.loadServlet(Standar > dWrapper.j > >>ava:935) > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > ________________________________________________________________ > Alvin Antony > Software Engineer > > Ludwig-Maximilians-Universitaet München > Zentrale Universitaetsverwaltung > Referat IIIA 3 (Anwendungs Entwicklung) > Theresienstr. 37 / 2. Stock Zi. 249 > 80333 Muenchen > > phone +49 (089) 2180 - 4005 > > mail [EMAIL PROTECTED] > web http://informationstechnik.verwaltung.uni-muenchen.de > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]