Menu

#1 freebxmlbp_v1.0.4 doesn't even build

open
nobody
None
5
2007-11-14
2007-11-14
Anonymous
No

Hi,

i tried to use freebXML BP editor today, but the distribution doesn't even build.

I had a closer look at the code and found out the following:
The class tr.edu.metu.srdc.ebbp.EBBPFrame references class tr.edu.metu.srdc.ebbp.domainConfig.EBBPDomainsConfigType
which doesn't even seem to be included in the sources.

Apparently, this is not really a problem because this class is only used by the following code (included in EBBPFrame):

// ****************************** START OF CODE *******
/**
*
* @throws Exception e
*/
private static void initializeEBBPDomainsConfig() throws Exception {

JAXBContext jc =
JAXBContext.newInstance("tr.edu.metu.srdc.ebbp.domainConfig");

Unmarshaller u = jc.createUnmarshaller();

JAXBElement element = (JAXBElement)
u.unmarshal(new FileInputStream("conf/ebbp-domains-config.xml"));

ebBPDomainsConfig = (EBBPDomainsConfigType) element.getValue();
}

/**
*
* @return EBBDomainsConfigType
*/
public static EBBPDomainsConfigType getEbBPDomainsConfig() {

if (ebBPDomainsConfig == null) {

try {

initializeEBBPDomainsConfig();

} catch (Exception e) {

e.printStackTrace();
}
}

return ebBPDomainsConfig;
}

// ****************************** END OF CODE *******

So all you have to do to make your distribution build is uncommenting this code and of course uncommenting the import statement at the beginning.
It seems to me the developers didn't even try to build the application. Sometimes such things happen. But as far as I see, you uploaded the distribution on 2007-01-31 and it shouldn't take more than 8 months to make a distribution build, specially if the project is (co-)funded by the European Commission.

Let me note that the distribution only builds with Java 1.5 because in class tr.edu.metu.srdc.ebbp.xsdeditor.XmlStylist
the developers are referencing the SUN JDK 1.5 implementation class com.sun.org.apache.xerces.internal.impl.xs.dom.DOMParser

Let me note, that you NEVER EVER should reference these classes because they are NOT part of the official Java API. So it really is no wonder that freebXML BP editor doesn't build with Java 1.6.

Kind regards
Andreas

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I had the same problem.

     
  • Rikky Hasibuan

    Rikky Hasibuan - 2009-05-05

    What if we create the EBBPDomainsConfigType class in the package.
    What will be it looks like? I have the same problems too. Need your help.

     
  • Rikky Hasibuan

    Rikky Hasibuan - 2009-05-05

    What if we create the EBBPDomainsConfigType class in the package.
    What will be it looks like? I have the same problems too. Need your help.

     
  • Nobody/Anonymous

    I had the same problem

     

Log in to post a comment.