• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Validator Error

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am using struts1.1 for my web application.
I want to use validator plug-in for performing some validation task,for that, i added plug-in tag into struts-config.xml file as shown below

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

but after adding plug-in tag ,i get following error,

ERROR validator.ValidatorPlugIn - Tried all :'1' addresses, but could not connect over Http to server: 'jakarta.apache.org',port:'80'
java.net.ConnectionException Tried all :'1' addresses, but could not connect over Http to server: 'jakarta.apache.org',port:'80'

what is this error?
since last few days i searched for this error but could'nt get any solution for this ,
the files validator-rules.xml and validation.xml are also present in WEB-INF directory.
If anybody faced such problem and got solution for it,please let me know.

regards,
ekta.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try putting a space after the comma in the pathnames:

value="/WEB-INF/validator-rules.xml, /WEB-INF/validation.xml">
 
Ekta Matani
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Merrill,
i tried this ,still it is giving same error.

It seems file is not being validated as there is connection error.
after playing with code, i found one new thing,
as validation.xml & validator-rules.xml contains declaration for validator.dtd whose url is "http://jakarta.apache.org/commons/dtds/validator_1_0.dtd"

if i change this url to "validator_1_0.dtd" (validator_1_0.dtd file is present in WEB-INF dir),
i get different error,
which is :
ERROR validator.ValidatiorPlugIn -
C:\bea\WEBLOG~1\samples\domains\workshop\validator_1_0.dtd
(The System cannot find the file specified)
java.io.FileNotFoundException

afterwards i copied validator_1_0.dtd and paste it into C:\bea\WEBLOG~1\samples\domains\workshop,
the problem gets solved ,i dont get any error and validation plu-in is also working fine.
but i dont know why the server demanded to paste file into workshop directory.
In normal case as i tried long before with jboss server i never had such problem,
are there any known issues for weblogic8.1 with struts?

regards,
ekta.
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic