This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 73885

Summary: WebSphere specifid DDs can't be properly validated
Product: serverplugins Reporter: Alexander Kouznetsov <mrkam>
Component: WebSphereAssignee: Petr Hejl <phejl>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description Alexander Kouznetsov 2006-03-22 15:33:38 UTC
Steps to reproduce:
- Create any application targeted WebSphere server
- Open any server specific DDs under Configuration Files node
- Switch to XML mode
- Try to validate its XML
- RESULT: The following output is shown:

XML validation started.

Checking file:/.../EJBModuleDeploy/src/conf/ibm-ejb-jar-bnd.xmi...
cvc-elt.1: Cannot find the declaration of element 'ejbbnd:EJBJarBinding'. [1] 
XML validation finished.
Comment 1 dlipin 2006-03-23 10:28:55 UTC
Nowdays we have no *exact* schema for WebSphere DD (IBM doesn`t provide it in 
free access). 
We would create it manually on the basis of information collected from various 
sources.
Comment 2 dlipin 2006-03-23 10:29:06 UTC
Nowdays we have no *exact* schema for WebSphere DD (IBM doesn`t provide it in 
free access). 
We would create it manually on the basis of information collected from various 
sources.
Comment 3 Alexander Kouznetsov 2006-06-05 12:42:03 UTC
Let's do it later.
Comment 4 ats37 2008-04-08 17:56:55 UTC
By "in free access" I assume you mean they're not on the web or under a freely redistributable license?
Can't they just be loaded from the properties\schemas directory under the installation directory
selected when adding the app server to the Servers list?  Is it really all that much different
to the way the j2ee.jar is located for compiling the java code?

There's a whole bunch of .xsd files under
C:\Program Files\IBM\SDP70\runtimes\base_v6\properties\schemas on my machine, including
the webapp ext & bnd ones.  The advantage of locating these relative to the j2ee platform
settings is that if there are any incompatible changes in the schemas between WAS versions,
validation can be done with the appropriate set for the target environment.  The down side
is that changing to a different server type (e.g. Tomcat) means you can no longer validate
any existing ibm-web-bnd.xmi etc. files in the project, but that's no worse off than the
current situation.


Hmm... last updated Jun 5 2006.  Is it LATER yet? :-)
Comment 5 _ pcw 2008-08-26 15:52:55 UTC
By "free access", the issue is IBM's copyrights and what the distribution rights are.  Barring evidence to the contrary,
it is reasonable to assume that IBM does not grant free distribution rights to these files.

That said, it is possible to construct a server plugin that dynamically adds WebSphere's DTD's to the DTD Registry in
the IDE from a known location in a WebSphere install provided by the end user.