You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Kuno Baeriswyl (JIRA)" <ji...@codehaus.org> on 2008/03/14 14:36:30 UTC
[jira] Created: (MECLIPSE-400) Invalid XML-Namspace definition for
RAD7
Invalid XML-Namspace definition for RAD7
----------------------------------------
Key: MECLIPSE-400
URL: http://jira.codehaus.org/browse/MECLIPSE-400
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Components: RAD support, WTP support
Affects Versions: 2.5
Environment: Windows XP, Java 5, RAD/
Reporter: Kuno Baeriswyl
Attachments: rad7_console.txt
Hello!
I'm using the eclipse:eclipse goal in order to generate the WTP 1.5 descriptors for RAD7. Unfortunately, the plugin generates invalid XML namespace definition:
Websphere rejects to deploy this definition.
<application id="Application_ID" xmlns:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4">
While following definition generated with the ear-plugin is working perfectly:
<application 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" version="1.4">
I also tried other goals. Eclipse:rad seams to generate descriptor for an older RAD version. And with eclipse:m2eclipse there were the dependend-modules missing.
So, eclipse:eclipse would work perfectly for me. Is it possible to fix it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-400) Invalid XML-Namspace definition
for RAD7
Posted by "Kuno Baeriswyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127222 ]
Kuno Baeriswyl commented on MECLIPSE-400:
-----------------------------------------
Hello again,
I've found the bug in the code. Seems that this special switch for websphere development is not working anymore:
Index: D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java
===================================================================
--- D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java (revision 637102)
+++ D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java (working copy)
@@ -249,7 +249,8 @@
// special case for development websphere's ....
String locationAttribute;
- if ( this.config.getWorkspaceConfiguration().getWebsphereVersion() != null )
+ boolean force = true; // force XSI schema location (See MECLIPSE-400)
+ if ( this.config.getWorkspaceConfiguration().getWebsphereVersion() != null || force)
{
locationAttribute = EclipseWtpApplicationXMLWriter.XSI_SCHEMA_LOCATION;
}
> Invalid XML-Namspace definition for RAD7
> ----------------------------------------
>
> Key: MECLIPSE-400
> URL: http://jira.codehaus.org/browse/MECLIPSE-400
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: RAD support, WTP support
> Affects Versions: 2.5
> Environment: Windows XP, Java 5, RAD/
> Reporter: Kuno Baeriswyl
> Attachments: rad7_console.txt
>
>
> Hello!
> I'm using the eclipse:eclipse goal in order to generate the WTP 1.5 descriptors for RAD7. Unfortunately, the plugin generates invalid XML namespace definition:
> Websphere rejects to deploy this definition.
> <application id="Application_ID" xmlns:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4">
> While following definition generated with the ear-plugin is working perfectly:
> <application 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" version="1.4">
> I also tried other goals. Eclipse:rad seams to generate descriptor for an older RAD version. And with eclipse:m2eclipse there were the dependend-modules missing.
> So, eclipse:eclipse would work perfectly for me. Is it possible to fix it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MECLIPSE-400) Invalid XML-Namspace definition for
RAD7
Posted by "Kuno Baeriswyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kuno Baeriswyl updated MECLIPSE-400:
------------------------------------
Attachment: workarround_patch.txt
> Invalid XML-Namspace definition for RAD7
> ----------------------------------------
>
> Key: MECLIPSE-400
> URL: http://jira.codehaus.org/browse/MECLIPSE-400
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: RAD support, WTP support
> Affects Versions: 2.5
> Environment: Windows XP, Java 5, RAD/
> Reporter: Kuno Baeriswyl
> Attachments: rad7_console.txt, workarround_patch.txt
>
>
> Hello!
> I'm using the eclipse:eclipse goal in order to generate the WTP 1.5 descriptors for RAD7. Unfortunately, the plugin generates invalid XML namespace definition:
> Websphere rejects to deploy this definition.
> <application id="Application_ID" xmlns:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4">
> While following definition generated with the ear-plugin is working perfectly:
> <application 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" version="1.4">
> I also tried other goals. Eclipse:rad seams to generate descriptor for an older RAD version. And with eclipse:m2eclipse there were the dependend-modules missing.
> So, eclipse:eclipse would work perfectly for me. Is it possible to fix it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MECLIPSE-400) Invalid XML-Namspace definition for
RAD7
Posted by "Kuno Baeriswyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kuno Baeriswyl closed MECLIPSE-400.
-----------------------------------
Resolution: Won't Fix
Has been solved by upgrading from WAS 6.1.0.9 to 6.1.0.15.
> Invalid XML-Namspace definition for RAD7
> ----------------------------------------
>
> Key: MECLIPSE-400
> URL: http://jira.codehaus.org/browse/MECLIPSE-400
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: RAD support, WTP support
> Affects Versions: 2.5
> Environment: Windows XP, Java 5, RAD/
> Reporter: Kuno Baeriswyl
> Attachments: rad7_console.txt, workarround_patch.txt
>
>
> Hello!
> I'm using the eclipse:eclipse goal in order to generate the WTP 1.5 descriptors for RAD7. Unfortunately, the plugin generates invalid XML namespace definition:
> Websphere rejects to deploy this definition.
> <application id="Application_ID" xmlns:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4">
> While following definition generated with the ear-plugin is working perfectly:
> <application 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" version="1.4">
> I also tried other goals. Eclipse:rad seams to generate descriptor for an older RAD version. And with eclipse:m2eclipse there were the dependend-modules missing.
> So, eclipse:eclipse would work perfectly for me. Is it possible to fix it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Issue Comment Edited: (MECLIPSE-400) Invalid XML-Namspace
definition for RAD7
Posted by "Kuno Baeriswyl (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_127222 ]
qnob edited comment on MECLIPSE-400 at 3/14/08 9:12 AM:
------------------------------------------------------------------
Hello again,
I've found the bug in the code. Seems that this special switch for websphere development is not working anymore. See attached workaround.
was (Author: qnob):
Hello again,
I've found the bug in the code. Seems that this special switch for websphere development is not working anymore:
Index: D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java
===================================================================
--- D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java (revision 637102)
+++ D:/sample-ear/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/writers/wtp/EclipseWtpApplicationXMLWriter.java (working copy)
@@ -249,7 +249,8 @@
// special case for development websphere's ....
String locationAttribute;
- if ( this.config.getWorkspaceConfiguration().getWebsphereVersion() != null )
+ boolean force = true; // force XSI schema location (See MECLIPSE-400)
+ if ( this.config.getWorkspaceConfiguration().getWebsphereVersion() != null || force)
{
locationAttribute = EclipseWtpApplicationXMLWriter.XSI_SCHEMA_LOCATION;
}
> Invalid XML-Namspace definition for RAD7
> ----------------------------------------
>
> Key: MECLIPSE-400
> URL: http://jira.codehaus.org/browse/MECLIPSE-400
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: RAD support, WTP support
> Affects Versions: 2.5
> Environment: Windows XP, Java 5, RAD/
> Reporter: Kuno Baeriswyl
> Attachments: rad7_console.txt, workarround_patch.txt
>
>
> Hello!
> I'm using the eclipse:eclipse goal in order to generate the WTP 1.5 descriptors for RAD7. Unfortunately, the plugin generates invalid XML namespace definition:
> Websphere rejects to deploy this definition.
> <application id="Application_ID" xmlns:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4">
> While following definition generated with the ear-plugin is working perfectly:
> <application 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" version="1.4">
> I also tried other goals. Eclipse:rad seams to generate descriptor for an older RAD version. And with eclipse:m2eclipse there were the dependend-modules missing.
> So, eclipse:eclipse would work perfectly for me. Is it possible to fix it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira