Summary: | dev-java/jaxme-0.5.2 cannot compile without active Internet conection | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | João <jaoneto> |
Component: | [OLD] Development | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | petr.pisar |
Priority: | High | ||
Version: | 10.0 | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Strip DTD declaration from src/webapp/web.xml |
Description
João
2009-12-21 17:01:09 UTC
(In reply to comment #0) > If you have not a active Internet connection, and try 'emerge jaxme' the > following error is returned: > > urllib2.URLError: <urlopen error [Errno -3] Temporary failure in name > resolution> > also very annoying when a proxy with authentication is in place. To be a bit more specific, that error happens while rewriting src/webapp/web.xml (at least for the first time). I can't find out what it's looking for; anyone any idea? It seems to be blocking Netbeans 6.8, which is annoying. I suspect external DTD of processed XML. But its just a random guess, no evidences. Yep, this is it: GET http://java.sun.com/dtd/web-app_2_3.dtd HTTP/1.1 Accept-Encoding: identity Host: java.sun.com Connection: close User-Agent: Python-urllib/2.6 Someone should explain the parser not to fetch external DTDs or install required DTD as compile-time dependency at first (and populate local catalogue under /etc/xml). Created attachment 219133 [details, diff]
Strip DTD declaration from src/webapp/web.xml
Or strip problematic DTD reference when it's not used at all (the java-ant_bsfix_one() remove it either, but calls tool which loads the DTD).
Fixed (by not calling bsfix on web.xml at all, because it's pointless, there should've been build.xml instead). |