[
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