You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominik Dahlem <Do...@cs.tcd.ie> on 2004/04/20 17:20:57 UTC
UnknownHostException on Windows
Hi all,
I'm having a problem running maven on windows. Actually, I think it is
not a maven problem but has rather something to do with xerces.
I'm wrecking my head over this problem and I'm sure I already solved it
some time ago (when I encountered it with maven). Has anyone of you seen
this stacktrace below. I'd be more than happy for any pointers.
Cheers,
Dominik
java.net.UnknownHostException: D
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.NetworkClient.openServer(NetworkClient.java:118)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
at sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
at
sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.ja
va:175)
at
sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnec
tion.java:257)
at java.net.URL.openStream(URL.java:913)
at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
urce)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityRefer
ence(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at
org.apache.commons.digester.Digester.parse(Digester.java:1527)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:201)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:161)
at
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
:324)
at
org.apache.maven.MavenSession.initialize(MavenSession.java:234)
at org.apache.maven.cli.App.doMain(App.java:535)
at org.apache.maven.cli.App.main(App.java:1113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
Total time: 7 seconds
Finished at: Tue Apr 20 16:17:34 BST 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: UnknownHostException on Windows
Posted by Nicolas De Loof <ni...@capgemini.com>.
Xerces is trying to open an URL that seems to use a windows path D:\...
Check for syntax in your XML files to use a full URL ("file:///D:/foo")
----- Original Message -----
From: "Dominik Dahlem" <Do...@cs.tcd.ie>
To: <us...@maven.apache.org>
Sent: Tuesday, April 20, 2004 5:20 PM
Subject: UnknownHostException on Windows
> Hi all,
>
> I'm having a problem running maven on windows. Actually, I think it is
> not a maven problem but has rather something to do with xerces.
> I'm wrecking my head over this problem and I'm sure I already solved it
> some time ago (when I encountered it with maven). Has anyone of you seen
> this stacktrace below. I'd be more than happy for any pointers.
>
> Cheers,
> Dominik
>
>
> java.net.UnknownHostException: D
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
> at java.net.Socket.connect(Socket.java:452)
> at java.net.Socket.connect(Socket.java:402)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
> at sun.net.NetworkClient.openServer(NetworkClient.java:118)
> at sun.net.ftp.FtpClient.openServer(FtpClient.java:423)
> at sun.net.ftp.FtpClient.<init>(FtpClient.java:692)
> at
> sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.ja
> va:175)
> at
> sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnec
> tion.java:257)
> at java.net.URL.openStream(URL.java:913)
> at
> org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
> urce)
> at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
> Source)
> at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
> Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityRefer
> ence(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
> Dispatcher.dispatch(Unknown Source)
> at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
> known Source)
> at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
> Source)
> at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> at
> org.apache.commons.digester.Digester.parse(Digester.java:1527)
> at org.apache.maven.MavenUtils.getProject(MavenUtils.java:201)
> at org.apache.maven.MavenUtils.getProject(MavenUtils.java:161)
> at
> org.apache.maven.MavenSession.initializeRootProject(MavenSession.java
> :324)
> at
> org.apache.maven.MavenSession.initialize(MavenSession.java:234)
> at org.apache.maven.cli.App.doMain(App.java:535)
> at org.apache.maven.cli.App.main(App.java:1113)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at com.werken.forehead.Forehead.run(Forehead.java:551)
> at com.werken.forehead.Forehead.main(Forehead.java:581)
> Total time: 7 seconds
> Finished at: Tue Apr 20 16:17:34 BST 2004
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: UnknownHostException on Windows
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Tuesday 20 April 2004 23:20, Dominik Dahlem wrote:
> Hi all,
>
> I'm having a problem running maven on windows. Actually, I think it is
> not a maven problem but has rather something to do with xerces.
> I'm wrecking my head over this problem and I'm sure I already solved it
> some time ago (when I encountered it with maven). Has anyone of you seen
> this stacktrace below. I'd be more than happy for any pointers.
I would guess that you have an external entity ref somewhere, with a SYSTEM
value something like;
file://D:/abc/def/some.thing
That would be interpreted to FTP transfer (or NFS sometimes) to host D.
Try to locate such place and see if it works with one more slash in the
beginning.
Niclas
--
+---------//-------------------+
| http://www.bali.ac |
| http://niclas.hedhman.org |
+------//----------------------+
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org