-
1. Re: "Not a valid struts config file" and "host jakarta.apache.org is unreachable" - what am I doing wrong?
scabanovich Jun 19, 2012 5:53 PM (in response to benglar)Please, check doctype section in your struts config file. JBoss dev studio supports
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://struts.apache.org/dtds/struts-config_1_2.dtd">
We do not support config of version 1.3. For an unsupported version, the same warning is showed at web.xml as for an invalid public id. You may turn off that validation rule in Preferences -> JBoss Tools -> Web -> Verification --> Struts Rules -> Check Web Descriptor.
Besides, public id "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" is not added to the XML Catalog (Preferences -> XML -> XML Catalog) - that is why Eclipse connects jakarta.apache.org and may fail; you can prevent that by adding the public id to the catalog manually, linking it to a local dtd file.
-
2. Re: "Not a valid struts config file" and "host jakarta.apache.org is unreachable" - what am I doing wrong?
benglar Jun 19, 2012 7:14 PM (in response to scabanovich)The two fixes resolved my problem. Thanks for the very quick reply, Vlacheslav!