jPOS-EE icon indicating copy to clipboard operation
jPOS-EE copied to clipboard

Change DTD used from the SourceForge one to the hibernate one

Open chhil opened this issue 2 years ago • 1 comments

Change https://github.com/jpos/jPOS-EE/blob/1f857edcd47f1330daf14c4efb9e530ddf7bfcda/modules/status/src/main/resources/org/jpos/ee/status/Status.hbm.xml#L21

and https://github.com/jpos/jPOS-EE/blob/1f857edcd47f1330daf14c4efb9e530ddf7bfcda/modules/status/src/main/resources/org/jpos/ee/status/StatusTag.hbm.xml#L21

from

<!DOCTYPE hibernate-mapping
  SYSTEM "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

to

<!DOCTYPE hibernate-mapping 
  SYSTEM "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">

chhil avatar Jul 04 '22 03:07 chhil

Not that easy - see https://github.com/jpos/jPOS-EE/runs/7183459332?check_suite_focus=true#step:7:3843

[org.xml.sax.SAXParseException; cvc-complex-type.3.2.2: Attribute 'generated' is not allowed to appear in element 'property'.]
            at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.handleStreamException(UnmarshallerImpl.java:396)
            at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:377)
            at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:350)
            at org.hibernate.boot.cfgxml.internal.JaxbCfgProcessor.unmarshal(JaxbCfgProcessor.java:127)

ar avatar Jul 04 '22 21:07 ar

Only Status.hbm.xml and StatusTag.hbm.xml are using the sourceforge DTD All other entities in all other jPOS-EE modules are using http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd and it seems to work, or at least they don't give that error.

barspi avatar Dec 14 '22 14:12 barspi

Can you send a PR @barspi ?

ar avatar Dec 16 '22 23:12 ar

Sent #273

barspi avatar Dec 17 '22 02:12 barspi