You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by javaskull <Gr...@harcourt.com> on 2008/02/25 22:13:48 UTC

schemaLocation value ... must have even number of URI's.

org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value 
= 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even 
number of URI's.

Anyone know what this is about?  I deleted my validator-rules.xml file 
from web-inf because I didn't need to customize it and I have moved 
from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
Tiles 1.38.jar because I am using Tiles 2.

I also get 

org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to 
namespace "http://www.w3.org/2001/XMLSchema-instance" was already 
specified for element "web-app".

And it says it can't load web-inf.  Any ideas?


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: VTD-XML 2.3

Posted by Al Sutton <al...@alsutton.com>.
Have you got a solution for people spamming lists with unrelated product 
announcements?

----- Original Message ----- 
From: "jimmy Zhang" <cr...@comcast.net>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Tuesday, February 26, 2008 2:27 AM
Subject: Re: VTD-XML 2.3


> We are trying to reach out to people that have tons of problems related to 
> XML processing (memory, speed etc)
> ----- Original Message ----- 
> From: "Dave Newton" <ne...@yahoo.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Monday, February 25, 2008 5:10 PM
> Subject: Re: VTD-XML 2.3
>
>
>> --- jimmy Zhang <cr...@comcast.net> wrote:
>>> Not yet, VTD-XML is the newer generation, document-centric
>>> XML processing model...
>>
>> Oh, so it's not really related to Struts.
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: VTD-XML 2.3

Posted by jimmy Zhang <cr...@comcast.net>.
We are trying to reach out to people that have tons of problems related to 
XML processing (memory, speed etc)
----- Original Message ----- 
From: "Dave Newton" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, February 25, 2008 5:10 PM
Subject: Re: VTD-XML 2.3


> --- jimmy Zhang <cr...@comcast.net> wrote:
>> Not yet, VTD-XML is the newer generation, document-centric
>> XML processing model...
>
> Oh, so it's not really related to Struts.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: VTD-XML 2.3

Posted by Dave Newton <ne...@yahoo.com>.
--- jimmy Zhang <cr...@comcast.net> wrote:
> Not yet, VTD-XML is the newer generation, document-centric 
> XML processing model...

Oh, so it's not really related to Struts.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: VTD-XML 2.3

Posted by jimmy Zhang <cr...@comcast.net>.
Not yet, VTD-XML is the newer generation, document-centric XML processing 
model...
----- Original Message ----- 
From: "Dave Newton" <ne...@yahoo.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, February 25, 2008 4:58 PM
Subject: Re: VTD-XML 2.3


> Is this an S2 plugin, or...?
>
> --- jimmy Zhang <cr...@comcast.net> wrote:
>
>> VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the 
>> latest
>> version please visit
>>
> http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.
>>
>> Below is a list of new features and enhancements in this version.
>>
>> * VTDException is now introduced as the root class for all other 
>> VTD-XML's
>> exception classes (per suggestion of Max Rahder).
>> * Transcoding capability is now added for inter-document cut and paste. 
>> You
>> can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
>> UTF-16 encoded document and the output document is still well-formed.
>> * ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
>> ISO-8859-15 support has now been added
>> * Zero length Text node is now possible.
>> * Ability to dump in-memory copy of text is added.
>> * Various code cleanup, enhancement and bug fixes.
>>
>>
>> Below are some new articles related to VTD-XML
>>
>> *Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm
>>
>> *Manipulate XML content the Ximple Way
>> http://www.devx.com/xml/Article/36379
>>
>> * VTD-XML: A new vision of XML
>> http://www.developer.com/xml/article.php/3714051
>>
>> * VTD-XML: XML Processing for the future
>> http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx
>>
>> If you (or someone you know) like the concept of VTD-XML, think that it 
>> can
>> help solve enterprises' XML processing related issues (particularly those
>> related to SOA), and would like to directly influence and contribute to 
>> the
>> development of the future of Internet, please email me
>> (crackeur@comcast.net). We are looking for open source software 
>> developers
>> and project management people to take VTD-XML to the next level.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: VTD-XML 2.3

Posted by Dave Newton <ne...@yahoo.com>.
Is this an S2 plugin, or...?

--- jimmy Zhang <cr...@comcast.net> wrote:

> VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the latest
> version please visit
>
http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.
> 
> Below is a list of new features and enhancements in this version.
> 
> * VTDException is now introduced as the root class for all other VTD-XML's
> exception classes (per suggestion of Max Rahder).
> * Transcoding capability is now added for inter-document cut and paste. You
> can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
> UTF-16 encoded document and the output document is still well-formed.
> * ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
> ISO-8859-15 support has now been added
> * Zero length Text node is now possible.
> * Ability to dump in-memory copy of text is added.
> * Various code cleanup, enhancement and bug fixes.
> 
> 
> Below are some new articles related to VTD-XML
> 
> *Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm
> 
> *Manipulate XML content the Ximple Way
> http://www.devx.com/xml/Article/36379
> 
> * VTD-XML: A new vision of XML
> http://www.developer.com/xml/article.php/3714051
> 
> * VTD-XML: XML Processing for the future
> http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx
> 
> If you (or someone you know) like the concept of VTD-XML, think that it can
> help solve enterprises' XML processing related issues (particularly those
> related to SOA), and would like to directly influence and contribute to the
> development of the future of Internet, please email me
> (crackeur@comcast.net). We are looking for open source software developers
> and project management people to take VTD-XML to the next level.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


VTD-XML 2.3

Posted by jimmy Zhang <cr...@comcast.net>.
VTD-XML 2.3 (http://vtd-xml.sf.net) is now released. To download the latest
version please visit
http://sourceforge.net/project/showfiles.php?group_id=110612&package_id=120172.

Below is a list of new features and enhancements in this version.

* VTDException is now introduced as the root class for all other VTD-XML's
exception classes (per suggestion of Max Rahder).
* Transcoding capability is now added for inter-document cut and paste. You
can cut a chuck of bytes in a UTF-8 encoded document and paste it into a
UTF-16 encoded document and the output document is still well-formed.
* ISO-8859-10, ISO-8859-11, ISO-8859-12, ISO-8859-13, ISO-8859-14 and
ISO-8859-15 support has now been added
* Zero length Text node is now possible.
* Ability to dump in-memory copy of text is added.
* Various code cleanup, enhancement and bug fixes.


Below are some new articles related to VTD-XML

*Index XML documents with VTD-XML http://xml.sys-con.com/read/453082.htm

*Manipulate XML content the Ximple Way http://www.devx.com/xml/Article/36379

* VTD-XML: A new vision of XML
http://www.developer.com/xml/article.php/3714051

* VTD-XML: XML Processing for the future
http://www.codeproject.com/KB/cs/vtd-xml_examples.aspx

If you (or someone you know) like the concept of VTD-XML, think that it can
help solve enterprises' XML processing related issues (particularly those
related to SOA), and would like to directly influence and contribute to the
development of the future of Internet, please email me
(crackeur@comcast.net). We are looking for open source software developers
and project management people to take VTD-XML to the next level.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: schemaLocation value ... must have even number of URI's.

Posted by javaskull <Gr...@harcourt.com>.
Correst!  How on earty did you find out that was the problem?  I was 
pulling my hair out.

:>

-G

--- In struts@yahoogroups.com, Laurie Harper <la...@...> wrote:
>
> Your root element should be
> 
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
>           version="2.4">
> 
> You're missing the public identifier part in the schema location.
> 
> L.
> 
> Bishop, Gregory (HAR-ORL) wrote:
> > Here is the web.xml
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > 
> > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
id="WebApp_ID">
> > 
> >       <display-name>pss7</display-name>
> > 
> >       <welcome-file-list>
> > 
> >             <welcome-file>ViewHome.jsp</welcome-file>
> > 
> >       </welcome-file-list>
> > 
> >       <context-param>
> > 
> >             <param-name>supportOrganizationName</param-name>
> > 
> >             <param-value>Harcourt Help Desk</param-value>
> > 
> >       </context-param>
> > 
> >       <context-param>
> > 
> >             <param-name>supportPhoneNumber</param-name>
> > 
> >             <param-value>1-407-345-3333</param-value>
> > 
> >       </context-param>
> > 
> >       <context-param>
> > 
> >             <param-name>supportEmailAddress</param-name>
> > 
> >             <param-value>helpdesk@...</param-value>
> > 
> >       </context-param>
> > 
> >       <filter>
> > 
> >             <display-name>ResponseOverrideFilter</display-name>
> > 
> >             <filter-name>ResponseOverrideFilter</filter-name>
> > 
> >             <filter-
class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
> > 
> >       </filter>
> > 
> >       <filter-mapping>
> > 
> >             <filter-name>ResponseOverrideFilter</filter-name>
> > 
> >             <url-pattern>*.do</url-pattern>
> > 
> >       </filter-mapping>
> > 
> >       <filter-mapping>
> > 
> >             <filter-name>ResponseOverrideFilter</filter-name>
> > 
> >             <url-pattern>*.jsp</url-pattern>
> > 
> >       </filter-mapping>
> > 
> >       <servlet>
> > 
> >             <display-name>
> > 
> >             ApplicationDataServlet</display-name>
> > 
> >             <servlet-name>ApplicationDataServlet</servlet-name>
> > 
> >             <servlet-class>
> > 
> >             
com.harcourt.its.ecat.servlets.ApplicationDataServlet</servlet-class>
> > 
> >             <load-on-startup>1</load-on-startup>
> > 
> >       </servlet>
> > 
> >       <servlet>
> > 
> >             <display-name>
> > 
> >             TestServlet</display-name>
> > 
> >             <servlet-name>TestServlet</servlet-name>
> > 
> >             <servlet-class>
> > 
> >             com.harcourt.its.ecat.servlets.TestServlet</servlet-
class>
> > 
> >       </servlet>
> > 
> >       <servlet>
> > 
> >             <servlet-name>TilesServet</servlet-name>
> > 
> >             <servlet-
class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
> > 
> >             <init-param>
> > 
> >                   <param-name>definitions-config</param-name>
> > 
> >                   <param-value>/WEB-INF/tiles-defs.xml</param-
value>
> > 
> >             </init-param>
> > 
> >             <load-on-startup>3</load-on-startup>
> > 
> >       </servlet>
> > 
> >       <servlet>
> > 
> >             <description>
> > 
> >             Struts Action Servlet</description>
> > 
> >             <display-name>
> > 
> >             ActionServlet</display-name>
> > 
> >             <servlet-name>ActionServlet</servlet-name>
> > 
> >             <servlet-class>
> > 
> >             org.apache.struts.action.ActionServlet</servlet-class>
> > 
> >             <init-param>
> > 
> >                   <description>
> > 
> >                   </description>
> > 
> >                   <param-name>config</param-name>
> > 
> >                   <param-value>WEB-INF/struts-config.xml</param-
value>
> > 
> >             </init-param>
> > 
> >             <init-param>
> > 
> >                   <description>
> > 
> >                   </description>
> > 
> >                   <param-name>debug</param-name>
> > 
> >                   <param-value>2</param-value>
> > 
> >             </init-param>
> > 
> >             <init-param>
> > 
> >                   <description>
> > 
> >                   </description>
> > 
> >                   <param-name>detail</param-name>
> > 
> >                   <param-value>2</param-value>
> > 
> >             </init-param>
> > 
> >             <init-param>
> > 
> >                   <description>
> > 
> >                   </description>
> > 
> >                   <param-name>validate</param-name>
> > 
> >                   <param-value>true</param-value>
> > 
> >             </init-param>
> > 
> >             <load-on-startup>2</load-on-startup>
> > 
> >       </servlet>
> > 
> >       <servlet-mapping>
> > 
> >             <servlet-name>ApplicationDataServlet</servlet-name>
> > 
> >             <url-pattern>/applicationdataservlet</url-pattern>
> > 
> >       </servlet-mapping>
> > 
> >       <servlet-mapping>
> > 
> >             <servlet-name>TestServlet</servlet-name>
> > 
> >             <url-pattern>/TestServlet</url-pattern>
> > 
> >       </servlet-mapping>
> > 
> >       <servlet-mapping>
> > 
> >             <servlet-name>ApplicationDataServlet</servlet-name>
> > 
> >             <url-pattern>/ApplicationDataServlet</url-pattern>
> > 
> >       </servlet-mapping>
> > 
> >       <servlet-mapping>
> > 
> >             <servlet-name>ActionServlet</servlet-name>
> > 
> >             <url-pattern>*.do</url-pattern>
> > 
> >       </servlet-mapping>
> > 
> >       <error-page>
> > 
> >             <error-code>403</error-code>
> > 
> >             <location>/ViewAuthorizationError.jsp</location>
> > 
> >       </error-page>
> > 
> >       <jsp-config>
> > 
> >         <jsp-property-group> 
> > 
> >           <url-pattern>*.jsp</url-pattern>
> > 
> >           <el-ignored>false</el-ignored>
> > 
> >         </jsp-property-group>
> > 
> >       </jsp-config>
> > 
> >       <security-constraint>
> > 
> >             <web-resource-collection>
> > 
> >                   <web-resource-name>AuthorizedUsers</web-
resource-name>
> > 
> >                   <url-pattern>/protected/*</url-pattern>
> > 
> >                   <url-pattern>*.do</url-pattern>
> > 
> >             </web-resource-collection>
> > 
> >             <auth-constraint>
> > 
> >                   <role-name>HSG-App-ECATi1-User</role-name>
> > 
> >             </auth-constraint>
> > 
> >       </security-constraint>
> > 
> >       <login-config>
> > 
> >             <auth-method>FORM</auth-method>
> > 
> >             <form-login-config>
> > 
> >                   <form-login-page>/ViewLoginForm.jsp</form-login-
page>
> > 
> >                   <form-error-page>/ViewLoginError.jsp</form-
error-page>
> > 
> >             </form-login-config>
> > 
> >       </login-config>
> > 
> >       <security-role>
> > 
> >             <description>
> > 
> >             Allows access to the entire application.</description>
> > 
> >             <role-name>HSG-App-ECATi1-User</role-name>
> > 
> >       </security-role>
> > 
> >       <resource-ref id="ResourceRef_1202394815391">
> > 
> >             <description>Uncached datasource.</description>
> > 
> >             <res-ref-name>jdbc/ecatds</res-ref-name>
> > 
> >             <res-type>javax.sql.DataSource</res-type>
> > 
> >             <res-auth>Container</res-auth>
> > 
> >             <res-sharing-scope>Shareable</res-sharing-scope>
> > 
> >       </resource-ref>
> > 
> >       <resource-ref id="ResourceRef_1202394889594">
> > 
> >             <description>Cached datasource.</description>
> > 
> >             <res-ref-name>jdbc/ecatdsCached</res-ref-name>
> > 
> >             <res-type>javax.sql.DataSource</res-type>
> > 
> >             <res-auth>Container</res-auth>
> > 
> >             <res-sharing-scope>Shareable</res-sharing-scope>
> > 
> >       </resource-ref>
> > 
> > </web-app>
> > 
> >  
> > 
> > <?xml version="1.0" encoding="UTF-8"?>
> > 
> > Here is tha application.xml.
> > 
> > <application id="Application_ID" version="1.4" 
xmlns="http://java.sun.com/xml/ns/j2ee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
> > 
> >       <display-name>
> > 
> >       pss7EAR</display-name>
> > 
> >       <icon>
> > 
> >       </icon>
> > 
> >       <module id="WebModule_1203970969679">
> > 
> >             <web>
> > 
> >                   <web-uri>pss7.war</web-uri>
> > 
> >                   <context-root>pss</context-root>
> > 
> >             </web>
> > 
> >       </module>
> > 
> >       <security-role id="SecurityRole_1202326008024">
> > 
> >             <description>
> > 
> >             Allows access to the entire application.</description>
> > 
> >             <role-name>HSG-App-ECATi1-User</role-name>
> > 
> >       </security-role>
> > 
> > </application>
> > 
> > I noticed the name spaces are the same, is that ok?
> > 
> > Greg Bishop
> > Senior Technical Analyst
> > Publishing Technology
> > Houghton Mifflin Harcourt
> > 6277 Sea Harbor Drive
> > Orlando, Florida 32887
> > 407.345.3873 (work)
> > 321.276.8588 (cell)
> > 407.345.4308 (fax)
> > 
> > -----Original Message-----
> > From: Santiago Fernández [mailto:santif@...] 
> > Sent: Monday, February 25, 2008 4:20 PM
> > To: struts-user@...
> > Subject: Re: schemaLocation value ... must have even number of 
URI's.
> > 
> > Can u copy the content of your web.xml here?
> > 
> > On 2/25/08, javaskull <Gr...@...> wrote:
> >> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation 
value
> >> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have 
even
> >> number of URI's.
> >>
> >> Anyone know what this is about?  I deleted my validator-
rules.xml file
> >> from web-inf because I didn't need to customize it and I have 
moved
> >> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted 
Struts-
> >> Tiles 1.38.jar because I am using Tiles 2.
> >>
> >> I also get
> >>
> >> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound 
to
> >> namespace "http://www.w3.org/2001/XMLSchema-instance" was already
> >> specified for element "web-app".
> >>
> >> And it says it can't load web-inf.  Any ideas?
> >>
> >>
> >> -----------------------------------------------------------------
----
> >> To unsubscribe, e-mail: user-unsubscribe@...
> >> For additional commands, e-mail: user-help@...
> >>
> >>
> > 
> > 
> 
> 
> 
> --------------------------------------------------------------------
-
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: schemaLocation value ... must have even number of URI's.

Posted by Laurie Harper <la...@holoweb.net>.
Your root element should be

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
          version="2.4">

You're missing the public identifier part in the schema location.

L.

Bishop, Gregory (HAR-ORL) wrote:
> Here is the web.xml
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID">
> 
>       <display-name>pss7</display-name>
> 
>       <welcome-file-list>
> 
>             <welcome-file>ViewHome.jsp</welcome-file>
> 
>       </welcome-file-list>
> 
>       <context-param>
> 
>             <param-name>supportOrganizationName</param-name>
> 
>             <param-value>Harcourt Help Desk</param-value>
> 
>       </context-param>
> 
>       <context-param>
> 
>             <param-name>supportPhoneNumber</param-name>
> 
>             <param-value>1-407-345-3333</param-value>
> 
>       </context-param>
> 
>       <context-param>
> 
>             <param-name>supportEmailAddress</param-name>
> 
>             <param-value>helpdesk@harcourt.com</param-value>
> 
>       </context-param>
> 
>       <filter>
> 
>             <display-name>ResponseOverrideFilter</display-name>
> 
>             <filter-name>ResponseOverrideFilter</filter-name>
> 
>             <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>
> 
>       </filter>
> 
>       <filter-mapping>
> 
>             <filter-name>ResponseOverrideFilter</filter-name>
> 
>             <url-pattern>*.do</url-pattern>
> 
>       </filter-mapping>
> 
>       <filter-mapping>
> 
>             <filter-name>ResponseOverrideFilter</filter-name>
> 
>             <url-pattern>*.jsp</url-pattern>
> 
>       </filter-mapping>
> 
>       <servlet>
> 
>             <display-name>
> 
>             ApplicationDataServlet</display-name>
> 
>             <servlet-name>ApplicationDataServlet</servlet-name>
> 
>             <servlet-class>
> 
>             com.harcourt.its.ecat.servlets.ApplicationDataServlet</servlet-class>
> 
>             <load-on-startup>1</load-on-startup>
> 
>       </servlet>
> 
>       <servlet>
> 
>             <display-name>
> 
>             TestServlet</display-name>
> 
>             <servlet-name>TestServlet</servlet-name>
> 
>             <servlet-class>
> 
>             com.harcourt.its.ecat.servlets.TestServlet</servlet-class>
> 
>       </servlet>
> 
>       <servlet>
> 
>             <servlet-name>TilesServet</servlet-name>
> 
>             <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>
> 
>             <init-param>
> 
>                   <param-name>definitions-config</param-name>
> 
>                   <param-value>/WEB-INF/tiles-defs.xml</param-value>
> 
>             </init-param>
> 
>             <load-on-startup>3</load-on-startup>
> 
>       </servlet>
> 
>       <servlet>
> 
>             <description>
> 
>             Struts Action Servlet</description>
> 
>             <display-name>
> 
>             ActionServlet</display-name>
> 
>             <servlet-name>ActionServlet</servlet-name>
> 
>             <servlet-class>
> 
>             org.apache.struts.action.ActionServlet</servlet-class>
> 
>             <init-param>
> 
>                   <description>
> 
>                   </description>
> 
>                   <param-name>config</param-name>
> 
>                   <param-value>WEB-INF/struts-config.xml</param-value>
> 
>             </init-param>
> 
>             <init-param>
> 
>                   <description>
> 
>                   </description>
> 
>                   <param-name>debug</param-name>
> 
>                   <param-value>2</param-value>
> 
>             </init-param>
> 
>             <init-param>
> 
>                   <description>
> 
>                   </description>
> 
>                   <param-name>detail</param-name>
> 
>                   <param-value>2</param-value>
> 
>             </init-param>
> 
>             <init-param>
> 
>                   <description>
> 
>                   </description>
> 
>                   <param-name>validate</param-name>
> 
>                   <param-value>true</param-value>
> 
>             </init-param>
> 
>             <load-on-startup>2</load-on-startup>
> 
>       </servlet>
> 
>       <servlet-mapping>
> 
>             <servlet-name>ApplicationDataServlet</servlet-name>
> 
>             <url-pattern>/applicationdataservlet</url-pattern>
> 
>       </servlet-mapping>
> 
>       <servlet-mapping>
> 
>             <servlet-name>TestServlet</servlet-name>
> 
>             <url-pattern>/TestServlet</url-pattern>
> 
>       </servlet-mapping>
> 
>       <servlet-mapping>
> 
>             <servlet-name>ApplicationDataServlet</servlet-name>
> 
>             <url-pattern>/ApplicationDataServlet</url-pattern>
> 
>       </servlet-mapping>
> 
>       <servlet-mapping>
> 
>             <servlet-name>ActionServlet</servlet-name>
> 
>             <url-pattern>*.do</url-pattern>
> 
>       </servlet-mapping>
> 
>       <error-page>
> 
>             <error-code>403</error-code>
> 
>             <location>/ViewAuthorizationError.jsp</location>
> 
>       </error-page>
> 
>       <jsp-config>
> 
>         <jsp-property-group> 
> 
>           <url-pattern>*.jsp</url-pattern>
> 
>           <el-ignored>false</el-ignored>
> 
>         </jsp-property-group>
> 
>       </jsp-config>
> 
>       <security-constraint>
> 
>             <web-resource-collection>
> 
>                   <web-resource-name>AuthorizedUsers</web-resource-name>
> 
>                   <url-pattern>/protected/*</url-pattern>
> 
>                   <url-pattern>*.do</url-pattern>
> 
>             </web-resource-collection>
> 
>             <auth-constraint>
> 
>                   <role-name>HSG-App-ECATi1-User</role-name>
> 
>             </auth-constraint>
> 
>       </security-constraint>
> 
>       <login-config>
> 
>             <auth-method>FORM</auth-method>
> 
>             <form-login-config>
> 
>                   <form-login-page>/ViewLoginForm.jsp</form-login-page>
> 
>                   <form-error-page>/ViewLoginError.jsp</form-error-page>
> 
>             </form-login-config>
> 
>       </login-config>
> 
>       <security-role>
> 
>             <description>
> 
>             Allows access to the entire application.</description>
> 
>             <role-name>HSG-App-ECATi1-User</role-name>
> 
>       </security-role>
> 
>       <resource-ref id="ResourceRef_1202394815391">
> 
>             <description>Uncached datasource.</description>
> 
>             <res-ref-name>jdbc/ecatds</res-ref-name>
> 
>             <res-type>javax.sql.DataSource</res-type>
> 
>             <res-auth>Container</res-auth>
> 
>             <res-sharing-scope>Shareable</res-sharing-scope>
> 
>       </resource-ref>
> 
>       <resource-ref id="ResourceRef_1202394889594">
> 
>             <description>Cached datasource.</description>
> 
>             <res-ref-name>jdbc/ecatdsCached</res-ref-name>
> 
>             <res-type>javax.sql.DataSource</res-type>
> 
>             <res-auth>Container</res-auth>
> 
>             <res-sharing-scope>Shareable</res-sharing-scope>
> 
>       </resource-ref>
> 
> </web-app>
> 
>  
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> Here is tha application.xml.
> 
> <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
> 
>       <display-name>
> 
>       pss7EAR</display-name>
> 
>       <icon>
> 
>       </icon>
> 
>       <module id="WebModule_1203970969679">
> 
>             <web>
> 
>                   <web-uri>pss7.war</web-uri>
> 
>                   <context-root>pss</context-root>
> 
>             </web>
> 
>       </module>
> 
>       <security-role id="SecurityRole_1202326008024">
> 
>             <description>
> 
>             Allows access to the entire application.</description>
> 
>             <role-name>HSG-App-ECATi1-User</role-name>
> 
>       </security-role>
> 
> </application>
> 
> I noticed the name spaces are the same, is that ok?
> 
> Greg Bishop
> Senior Technical Analyst
> Publishing Technology
> Houghton Mifflin Harcourt
> 6277 Sea Harbor Drive
> Orlando, Florida 32887
> 407.345.3873 (work)
> 321.276.8588 (cell)
> 407.345.4308 (fax)
> 
> -----Original Message-----
> From: Santiago Fernández [mailto:santif@gmail.com] 
> Sent: Monday, February 25, 2008 4:20 PM
> To: struts-user@jakarta.apache.org
> Subject: Re: schemaLocation value ... must have even number of URI's.
> 
> Can u copy the content of your web.xml here?
> 
> On 2/25/08, javaskull <Gr...@harcourt.com> wrote:
>> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
>> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
>> number of URI's.
>>
>> Anyone know what this is about?  I deleted my validator-rules.xml file
>> from web-inf because I didn't need to customize it and I have moved
>> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
>> Tiles 1.38.jar because I am using Tiles 2.
>>
>> I also get
>>
>> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
>> namespace "http://www.w3.org/2001/XMLSchema-instance" was already
>> specified for element "web-app".
>>
>> And it says it can't load web-inf.  Any ideas?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: schemaLocation value ... must have even number of URI's.

Posted by "Bishop, Gregory (HAR-ORL)" <Gr...@harcourt.com>.
Here is the web.xml

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" id="WebApp_ID">

      <display-name>pss7</display-name>

      <welcome-file-list>

            <welcome-file>ViewHome.jsp</welcome-file>

      </welcome-file-list>

      <context-param>

            <param-name>supportOrganizationName</param-name>

            <param-value>Harcourt Help Desk</param-value>

      </context-param>

      <context-param>

            <param-name>supportPhoneNumber</param-name>

            <param-value>1-407-345-3333</param-value>

      </context-param>

      <context-param>

            <param-name>supportEmailAddress</param-name>

            <param-value>helpdesk@harcourt.com</param-value>

      </context-param>

      <filter>

            <display-name>ResponseOverrideFilter</display-name>

            <filter-name>ResponseOverrideFilter</filter-name>

            <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class>

      </filter>

      <filter-mapping>

            <filter-name>ResponseOverrideFilter</filter-name>

            <url-pattern>*.do</url-pattern>

      </filter-mapping>

      <filter-mapping>

            <filter-name>ResponseOverrideFilter</filter-name>

            <url-pattern>*.jsp</url-pattern>

      </filter-mapping>

      <servlet>

            <display-name>

            ApplicationDataServlet</display-name>

            <servlet-name>ApplicationDataServlet</servlet-name>

            <servlet-class>

            com.harcourt.its.ecat.servlets.ApplicationDataServlet</servlet-class>

            <load-on-startup>1</load-on-startup>

      </servlet>

      <servlet>

            <display-name>

            TestServlet</display-name>

            <servlet-name>TestServlet</servlet-name>

            <servlet-class>

            com.harcourt.its.ecat.servlets.TestServlet</servlet-class>

      </servlet>

      <servlet>

            <servlet-name>TilesServet</servlet-name>

            <servlet-class>org.apache.tiles.web.startup.TilesServlet</servlet-class>

            <init-param>

                  <param-name>definitions-config</param-name>

                  <param-value>/WEB-INF/tiles-defs.xml</param-value>

            </init-param>

            <load-on-startup>3</load-on-startup>

      </servlet>

      <servlet>

            <description>

            Struts Action Servlet</description>

            <display-name>

            ActionServlet</display-name>

            <servlet-name>ActionServlet</servlet-name>

            <servlet-class>

            org.apache.struts.action.ActionServlet</servlet-class>

            <init-param>

                  <description>

                  </description>

                  <param-name>config</param-name>

                  <param-value>WEB-INF/struts-config.xml</param-value>

            </init-param>

            <init-param>

                  <description>

                  </description>

                  <param-name>debug</param-name>

                  <param-value>2</param-value>

            </init-param>

            <init-param>

                  <description>

                  </description>

                  <param-name>detail</param-name>

                  <param-value>2</param-value>

            </init-param>

            <init-param>

                  <description>

                  </description>

                  <param-name>validate</param-name>

                  <param-value>true</param-value>

            </init-param>

            <load-on-startup>2</load-on-startup>

      </servlet>

      <servlet-mapping>

            <servlet-name>ApplicationDataServlet</servlet-name>

            <url-pattern>/applicationdataservlet</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

            <servlet-name>TestServlet</servlet-name>

            <url-pattern>/TestServlet</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

            <servlet-name>ApplicationDataServlet</servlet-name>

            <url-pattern>/ApplicationDataServlet</url-pattern>

      </servlet-mapping>

      <servlet-mapping>

            <servlet-name>ActionServlet</servlet-name>

            <url-pattern>*.do</url-pattern>

      </servlet-mapping>

      <error-page>

            <error-code>403</error-code>

            <location>/ViewAuthorizationError.jsp</location>

      </error-page>

      <jsp-config>

        <jsp-property-group> 

          <url-pattern>*.jsp</url-pattern>

          <el-ignored>false</el-ignored>

        </jsp-property-group>

      </jsp-config>

      <security-constraint>

            <web-resource-collection>

                  <web-resource-name>AuthorizedUsers</web-resource-name>

                  <url-pattern>/protected/*</url-pattern>

                  <url-pattern>*.do</url-pattern>

            </web-resource-collection>

            <auth-constraint>

                  <role-name>HSG-App-ECATi1-User</role-name>

            </auth-constraint>

      </security-constraint>

      <login-config>

            <auth-method>FORM</auth-method>

            <form-login-config>

                  <form-login-page>/ViewLoginForm.jsp</form-login-page>

                  <form-error-page>/ViewLoginError.jsp</form-error-page>

            </form-login-config>

      </login-config>

      <security-role>

            <description>

            Allows access to the entire application.</description>

            <role-name>HSG-App-ECATi1-User</role-name>

      </security-role>

      <resource-ref id="ResourceRef_1202394815391">

            <description>Uncached datasource.</description>

            <res-ref-name>jdbc/ecatds</res-ref-name>

            <res-type>javax.sql.DataSource</res-type>

            <res-auth>Container</res-auth>

            <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

      <resource-ref id="ResourceRef_1202394889594">

            <description>Cached datasource.</description>

            <res-ref-name>jdbc/ecatdsCached</res-ref-name>

            <res-type>javax.sql.DataSource</res-type>

            <res-auth>Container</res-auth>

            <res-sharing-scope>Shareable</res-sharing-scope>

      </resource-ref>

</web-app>

 

<?xml version="1.0" encoding="UTF-8"?>

Here is tha application.xml.

<application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">

      <display-name>

      pss7EAR</display-name>

      <icon>

      </icon>

      <module id="WebModule_1203970969679">

            <web>

                  <web-uri>pss7.war</web-uri>

                  <context-root>pss</context-root>

            </web>

      </module>

      <security-role id="SecurityRole_1202326008024">

            <description>

            Allows access to the entire application.</description>

            <role-name>HSG-App-ECATi1-User</role-name>

      </security-role>

</application>

I noticed the name spaces are the same, is that ok?

Greg Bishop
Senior Technical Analyst
Publishing Technology
Houghton Mifflin Harcourt
6277 Sea Harbor Drive
Orlando, Florida 32887
407.345.3873 (work)
321.276.8588 (cell)
407.345.4308 (fax)

-----Original Message-----
From: Santiago Fernández [mailto:santif@gmail.com] 
Sent: Monday, February 25, 2008 4:20 PM
To: struts-user@jakarta.apache.org
Subject: Re: schemaLocation value ... must have even number of URI's.

Can u copy the content of your web.xml here?

On 2/25/08, javaskull <Gr...@harcourt.com> wrote:
>
> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
> number of URI's.
>
> Anyone know what this is about?  I deleted my validator-rules.xml file
> from web-inf because I didn't need to customize it and I have moved
> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
> Tiles 1.38.jar because I am using Tiles 2.
>
> I also get
>
> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
> namespace "http://www.w3.org/2001/XMLSchema-instance" was already
> specified for element "web-app".
>
> And it says it can't load web-inf.  Any ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Santiago M. Fernández
BAIRES IT S.R.L.
Owner & Co-Founder

(+54) 011 - 15 6744 1133
santiago.fernandez@bairesit.com
www.bairesit.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: schemaLocation value ... must have even number of URI's.

Posted by Santiago Fernández <sa...@gmail.com>.
Can u copy the content of your web.xml here?

On 2/25/08, javaskull <Gr...@harcourt.com> wrote:
>
> org.xml.sax.SAXParseException: SchemaLocation: schemaLocation value
> = 'http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd' must have even
> number of URI's.
>
> Anyone know what this is about?  I deleted my validator-rules.xml file
> from web-inf because I didn't need to customize it and I have moved
> from Struts 1.1 to 1.3.  (That's OK right?)  I also deleted Struts-
> Tiles 1.38.jar because I am using Tiles 2.
>
> I also get
>
> org.xml.sax.SAXParseException: Attribute "schemaLocation" bound to
> namespace "http://www.w3.org/2001/XMLSchema-instance" was already
> specified for element "web-app".
>
> And it says it can't load web-inf.  Any ideas?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Santiago M. Fernández
BAIRES IT S.R.L.
Owner & Co-Founder

(+54) 011 - 15 6744 1133
santiago.fernandez@bairesit.com
www.bairesit.com