ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Craig <andre...@gmail.com>
Subject Re: Ant/Weblogic/EJB build question
Date Tue, 29 Jun 2004 13:06:56 GMT
The problem was probably that you could not connect to the BEA site at
the time to download the latest copy of the .dtd file for validation
purposes.

How I get around this issue in my builds is to have a local copy of 
http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd and add an
entry to the <ejbjar> task :

<dtd publicId="http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd"
location="(Path-to-)/weblogic-ejb-jar.dtd" />

This stops the ejbjar task having to go off to BEA's site every time
you do a build.

Andrew

On Tue, 29 Jun 2004 05:46:55 -0700 (PDT), Ken Pullin
<kpullin75@yahoo.com> wrote:
> 
> Hi - I'm using the <ejbjar> task with Ant 1.6.  I'm using Weblogic version 8.1.0.
 I'm compiling 3 Stateless Session Bean and 1 Entity Bean.  The 3 Stateless Session Beans
build correctly, but when it gets to the CMP Bean, I get the error message below.  I've read
that you shouldn't have to set up a proxy configuration because it will actually use the local
dtd.
> 
>    [ejbjar] 3 deployment descriptors located.
>    [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
> 1.1//EN to resource /weblogic/ejb20/dd/xml/ejb11-jar.dtd
>    [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
> 2.0//EN to resource /weblogic/ejb20/dd/xml/ejb20-jar.dtd
>    [ejbjar] Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN
>  to local resource /weblogic/ejb20/dd/xml/ejb20-jar.dtd
>    [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN to
> resource /weblogic/ejb20/dd/xml/weblogic510-ejb-jar.dtd
>    [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN to
> resource /weblogic/ejb20/dd/xml/weblogic600-ejb-jar.dtd
>    [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 7.0.0 EJB//EN to
> resource /weblogic/ejb20/dd/xml/weblogic700-ejb-jar.dtd
>    [ejbjar] Could not resolve ( publicId: -//BEA Systems, Inc.//DTD WebLogic 8.1
> .0 EJB//EN, systemId: http://www.bea.com/servers/wls810/dtd/weblogic-ejb-jar.dtd
> ) to a local entity
> BUILD FAILED
> file:C:/ngusBuild/build.xml:586: Exception while adding Vendor specific files: j
> ava.net.ConnectException: Connection refused: connect
>         at org.apache.tools.ant.taskdefs.optional.ejb.WeblogicDeploymentTool.add
> VendorFiles(WeblogicDeploymentTool.java:506)
>         at org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.proc
> essDescriptor(GenericDeploymentTool.java:446)
>         at org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java
> :592)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
>         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
> 
> 
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail is new and improved - Check it out!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message