ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ventimiglia, David" <David.Ventimig...@msdw.com>
Subject EjbJar
Date Mon, 16 Oct 2000 23:10:09 GMT
Hi,

I'm trying to use the EjbJar task to create an ejb for WebLogic, and am
getting an IOException while it tries to parse the deployment descriptors.
In particular, it claims that the descriptor doesn't exist, meaning it
probably can't find it.  Yet, the DirectoryScanner was able to find the two
descriptors.  For some reason, the parser seems to be looking in the wrong
place.  Has anyone gotten this to work?  Here's the target from my build.xml
file, and the stack trace that's generated.

Thanks!
David

Target:
~~~~~
  <target name="ejb-use-ejbjar" depends="init,ejb-classes">
    <echo message="Attempting to use EjbJar task to build bean"/>
    <echo message="including:  ${src}/${package}/*.xml"/>
    <ejbjar destdir="${src}"
            srcdir="${src}"
            includes="${package}/*.xml"/>
  </target>


Output & Stack Trace
~~~~~~~~~~~~~~~~
Attempting to use EjbJar task to build bean
including:  src/com/msdw/online/model/greeter/*.xml
   [ejbjar] 2 deployment descriptors located.

BUILD FAILED

build.xml:35: IOException while
parsing'com\msdw\online\model\greeter\ejb-jar.xml'.  This probably indicates
that the descriptor doesn't exist. Details:Host unreachable: no further
information
java.net.NoRouteToHostException: Host unreachable: no further information
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
	at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
	at java.net.Socket.<init>(Socket.java:269)
	at java.net.Socket.<init>(Socket.java:98)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:54)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:320)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:431)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:260)
	at sun.net.www.http.HttpClient.<init>(HttpClient.java:270)
	at sun.net.www.http.HttpClient.New(HttpClient.java:282)
	at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:3
72)
	at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:457)
	at com.sun.xml.parser.Resolver.createInputSource(Resolver.java:253)
	at
com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:49)
	at com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
	at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500)
	at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
	at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
	at com.sun.xml.parser.Parser.parse(Parser.java:283)
	at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
	at
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java,
Compiled Code)
	at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
	at org.apache.tools.ant.Project.runTarget(Project.java:717)
	at org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
Code)
	at org.apache.tools.ant.Project.executeTargets(Project.java,
Compiled Code)
	at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
	at org.apache.tools.ant.Main.main(Main.java:107)

Mime
View raw message