geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jay D. McHugh" <...@joyfulnoisewebdesign.com>
Subject Re: Build failure "Error parsing web.xml for ."
Date Fri, 08 Jun 2007 22:49:16 GMT
Hello all,

I tested this by building geronimo/applications a couple of times 
without 'clean'.

The web.xml files are being created correctly now - no more duplication.

(make sure you use 'mvn -U' at least once or delete your maven repo to 
get the new version of the plugin)

Jay

Jeff Genender wrote:
> Darn it!!!...Jason's slop once again, eh? ;-)
>
> Cool stuff. (I'm j.k) ;-)
>
> Jeff
>
> jason.dillon@gmail.com wrote:
>   
>> No it was appending to the generated file not overwriting. 
>>
>> I rewrote those bits in groovy and used:
>>
>>     file << string
>>
>> Instead of:
>>
>>     file.write(string)
>>
>> The latter being the correct behavior and the fix to this problem. 
>>
>> --jason
>>
>>
>> -----Original Message-----
>> From: Jeff Genender <jgenender@apache.org>
>>
>> Date: Fri, 08 Jun 2007 16:13:45 
>> To:dev@geronimo.apache.org
>> Subject: Re: Build failure "Error parsing web.xml for ."
>>
>>
>> Was it a cleanup issue?
>>
>> Jeff
>>
>> Jason Dillon wrote:
>>     
>>> There is nothing attached to this mail... but Paul has given me an
>>> example of the failure and I think I have fixed it with his help.
>>>
>>> Can you try the latest snapshot, with mvn -U?
>>>
>>> --jason
>>>
>>>
>>> On Jun 8, 2007, at 2:57 PM, Anita Kulshreshtha wrote:
>>>
>>>       
>>>>   I am attaching jspweb.xml (2 web-apps) from the target directory and
>>>> web.xml (3 web-apps) from
>>>> target/geronimo-ldap-demo-2.0-SNAPSHOT/WEB-INF/web.xml.
>>>>
>>>> Thanks
>>>> Anita
>>>>
>>>> --- Jason Dillon <jason@planet57.com> wrote:
>>>>
>>>>         
>>>>> Can you please paste me the full web.xml with the duplicates?
>>>>>
>>>>> --jason
>>>>>
>>>>>
>>>>> On Jun 8, 2007, at 12:04 PM, Anita Kulshreshtha wrote:
>>>>>
>>>>>           
>>>>>>   I can reproduce this on win XP. If I build geronimo-ldap-demo 3
>>>>>> times
>>>>>> w/o clean, I get 3 copies of <web-app>!!!
>>>>>>
>>>>>> Thanks
>>>>>> Anita
>>>>>>
>>>>>> --- Donald Woods <dwoods@apache.org> wrote:
>>>>>>
>>>>>>             
>>>>>>> Did you mvn clean before rebuilding?
>>>>>>>
>>>>>>> I'm still seeing weird behavior from the latest jspc-maven-plugin
>>>>>>>               
>>>>> on
>>>>>           
>>>>>>> Windows
>>>>>>> and SLED10 if I build individual modules by hand w/o running
mvn
>>>>>>> clean first,
>>>>>>> like its adding duplicate <webapp> sections to the web.xml....
>>>>>>>
>>>>>>> -Donald
>>>>>>>
>>>>>>> Sachin Patel wrote:
>>>>>>>               
>>>>>>>> I keep hitting the following build error on LDAP Demo for
Jetty,
>>>>>>>>                 
>>>>>>> even on
>>>>>>>               
>>>>>>>> a clean repo on mac os x.
>>>>>>>>
>>>>>>>> Error prasing web.xml for .
>>>>>>>>
>>>>>>>> Unexpected element: XML_DOC_OR_TEXT_DECL
>>>>>>>>
>>>>>>>> -sachin
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                 
>>>>>>
>>>>>>
>>>>>>             
>>>> ______________________________________________________________________
>>>>         
>>>>>> ______________
>>>>>> Choose the right car based on your needs.  Check out Yahoo! Autos
>>>>>> new Car Finder tool.
>>>>>> http://autos.yahoo.com/carfinder/
>>>>>>             
>>>>
>>>> ____________________________________________________________________________________
>>>>
>>>> Get the Yahoo! toolbar and be alerted to new email wherever you're
>>>> surfing.
>>>> http://new.toolbar.yahoo.com/toolbar/features/mail/index.php<?xml
>>>> version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app><?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app><?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app><?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app><?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app><?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <!--
>>>>     Licensed to the Apache Software Foundation (ASF) under one or more
>>>>     contributor license agreements.  See the NOTICE file distributed with
>>>>     this work for additional information regarding copyright ownership.
>>>>     The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>     (the "License"); you may not use this file except in compliance with
>>>>     the License.  You may obtain a copy of the License at
>>>>
>>>>        http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>     Unless required by applicable law or agreed to in writing, software
>>>>     distributed under the License is distributed on an "AS IS" BASIS,
>>>>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>     See the License for the specific language governing permissions and
>>>>     limitations under the License.
>>>> -->
>>>>
>>>> <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">
>>>>
>>>>     <!-- Welcome File List -->
>>>>     <welcome-file-list>
>>>>         <welcome-file>index.html</welcome-file>
>>>>     </welcome-file-list>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>Admin Role</web-resource-name>
>>>>         <url-pattern>/protect/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint>
>>>>         <role-name>content-administrator</role-name>
>>>>       </auth-constraint>
>>>>     </security-constraint>
>>>>
>>>>     <security-constraint>
>>>>       <web-resource-collection>
>>>>         <web-resource-name>No Access</web-resource-name>
>>>>         <url-pattern>/forbidden/*</url-pattern>
>>>>       </web-resource-collection>
>>>>       <auth-constraint/>
>>>>     </security-constraint>
>>>>
>>>>     <login-config>
>>>>       <auth-method>FORM</auth-method>
>>>>       <realm-name>MYREALM</realm-name>
>>>>       <form-login-config>
>>>>          <form-login-page>/auth/logon.html?param=test</form-login-page>
>>>>         
>>>> <form-error-page>/auth/logonError.html?param=test</form-error-page>
>>>>       </form-login-config>
>>>>     </login-config>
>>>>
>>>>   <security-role>
>>>>       <role-name>content-administrator</role-name>
>>>>   </security-role>
>>>>
>>>>
>>>> <!--
>>>> Automatically created by Apache Jakarta Tomcat JspC.
>>>> Place this fragment in the web.xml before all icon, display-name,
>>>> description, distributable, and context-param elements.
>>>> -->
>>>>
>>>> <!--
>>>> All session-config, mime-mapping, welcome-file-list, error-page, taglib,
>>>> resource-ref, security-constraint, login-config, security-role,
>>>> env-entry, and ejb-ref elements should follow this fragment.
>>>> -->
>>>>
>>>> </web-app>
>>>>         
>
>
>
>   

Mime
View raw message