You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Raghu Katrapalli (JIRA)" <ji...@apache.org> on 2007/01/12 23:18:27 UTC

[jira] Created: (GERONIMO-2731) Deployment fails when mime-type has "+" sign

Deployment fails when mime-type has "+" sign
--------------------------------------------

                 Key: GERONIMO-2731
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2731
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: deployment
    Affects Versions: 1.1.1
         Environment: Linux
            Reporter: Raghu Katrapalli


Looks like this is a limitation introduced in the new web-app xsd (version 2.4)
When one of the mime type entries has a PLUS sign, the deployment tool throws the below error -

Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-datatype-valid.1.1: string value 'application/srgs+xml' does not match pattern for mime-typeType in namespace http://java.sun.com/xml/ns/j2ee]
Descriptor: <web-app xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee">

The web.xml has the following a mime-type entry which has a PLUS sign (This is a standard format specified by the W3 organization for Voice XML to use the XML Grammars)
<mime-mapping>
    <extension>grxml</extension>
    <mime-type>application/srgs+xml</mime-type>
  </mime-mapping>.

I have no problem deploying the application with this extension in the earlier web-app versions (2.3 dtd).
Looks like this is introduced with the 2.4 XSD but, I tried to open this issue in the Sun site but couldn't get a location where I can open this issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira