[
http://mifosforge.jira.com/browse/MIFOS-4456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=63432#action_63432
]
Michael Vorburger commented on MIFOS-4456:
------------------------------------------
http://www.bileblog.org/2003/07/dtd-abuse/ ... ;-)
http://community.jboss.org/wiki/HibernateFAQ-CommonProblems#Hibernate_tries_to_connect_to_httphibernatesourceforgenet_at_startup
says: "Hibernate tries to connect to http://hibernate.sourceforge.net at
startup! Usually you use the wrong DTD declaration in your XML
mapping/configuration files. Or, this means that your XML parser does not
support the EntityResolver callback that Hibernate uses to resolve the mapping
DTD from inside hibernate3.jar. Either use a different XML parser, such as a
recent version of Xerces, or edit your mapping documents to use a SYSTEM id
instead of the PUBLIC id that we recommend in the documentation."
Getting Hibernate src JAR (not on Maven central?!), and stepping through and
breaking in org.hibernate.cfg.Configuration.doConfigure, should be useful,
org.hibernate.util.DTDEntityResolver looks interesting - why is it not doing
what it should be doing?
https://forum.hibernate.org/viewtopic.php?p=2372397 appears to use a
(non-JDK-standard) classpath:// prefix, good idea? The
org.hibernate.util.DTDEntityResolver uses that? It's the wrong approach - it
should simply trigger on the "-//Hibernate/Hibernate Mapping DTD 3.0//EN"..
http://issues.liferay.com/browse/LPS-2979 had the same issue, and wrote a
custom EntityResolver?
PS: Could Spring's
org.springframework.beans.factory.xml.DelegatingEntityResolver somehow be used
directly? How?
> Mifos currently requires an Internet connection to start-up
> -----------------------------------------------------------
>
> Key: MIFOS-4456
> URL: http://mifosforge.jira.com/browse/MIFOS-4456
> Project: mifos
> Issue Type: Bug
> Reporter: Michael Vorburger
> Priority: Major
> Attachments: MIFOS-4456_HibernateIsTra--lskdmcnawiunvwae.txt
>
>
> Mifos should not require an Internet connection to start-up - it should run
> e.g. on an Internet disconnected LAN (with a mysql server on another
> reachable, or same, host - obviously).
> Currently if it cannot connect to the Internet, the attached exception occurs
> at start-up (and Mifos fails to start).
> The typical cause for Internet accesses leading to such problems, and likely
> the culprit behind this exception (from a pre-cursory look), are that certain
> third-party libraries erroneously fetch XML Schema (or DTD) from the Internet
> to validate some configuration files (here, Hibernate). What such library,
> and Mifos own' code, must do instead is configure the XML parser / validation
> to use a schema (DTD) packaged on the application classpath.
> In this case, the QuestionGroupResponse.hbm.xml has a <!DOCTYPE
> hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD
> 3.0//EN" "http://hibernate.org/dtd/hibernate-configuration-3.0.dtd"> which
> looks like it's causing this.
> This bad for two reasons:
> a) In some "enterprise" environments, intranet (LAN) applications runs behind
> firewalls which do not permit applications to access the outside full
> Internet. This may be less of a concern for the typical Mifos target client?
> b) For application start-up performance, fetching files from the internet is
> less than ideal - depending on the uplink. This may be quite relevant for
> Mifos deployments in certain environments?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mifosforge.jira.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Mifos-issues mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mifos-issues