ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Goodnough <agoo...@yahoo.com>
Subject Re: ejbjar fails when behind firewall/proxy server
Date Fri, 12 Jan 2001 18:45:04 GMT
I was also going to post this problem.  I was able to get
around it by including %WL_HOME%/classes in my classpath
BEFORE running ant.  Nothing I did within the build script
seemed to get rid of the error (including putting
${wl.home}/classes in my classpath for running the ejbjar
task).  I'm sure there is some other way to get around this
but I'm just now getting familiar with Ant.  BTW, I am
compiling, ejbjar'ing, and deploying all locally - so the
proxy doesn't seem to be involved in my case.

Windows2000
JDK1.3
Ant1.2


Andy


--- Tim Dawson <tdawson@is.com> wrote:
> this works fine when working at one location, which
> doesn't use a proxy
> server...
> 
>     <ejbjar srcdir="${classes.source}"
>             descriptordir="source/com/wamnet/wap/server"
>             basejarname="wap-ejb">
> 
>       <weblogic destdir="${staging.dir}"
>  
>
classpath="${weblogic.home}/classes;${weblogic.home}/lib/weblogic.jar;${clas
> ses.source}"/>
>       <include name="ejb-jar.xml"/>
>       <exclude name="weblogic-ejb-jar.xml"/>
> 
> but from another location which DOES  use a proxy server,
> I get THIS:
> 
> BUILD FAILED
> 
> C:\Projects\WamNet-AssociatesProgram\system\build.xml:94:
> SAXException while
> par
> sing 'ejb-jar.xml'. This probably indicates badly-formed
> XML.  Details:
> External
>  entity not found:
> "http://java.sun.com/dtd/ejb-jar_2_0.dtd".
> org.xml.sax.SAXParseException: External entity not found:
> "http://java.sun.com/d
> td/ejb-jar_2_0.dtd".
>         at
> com.sun.xml.parser.Parser.fatal(Parser.java:2817)
>         at
>
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
>         at
>
com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
>         at
> com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
>         at
> com.sun.xml.parser.Parser.parse(Parser.java:284)
>         at
> javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
>         at
>
org.apache.tools.ant.taskdefs.optional.ejb.GenericDeploymentTool.proc
> essDescriptor(GenericDeploymentTool.java:244)
>         at
>
org.apache.tools.ant.taskdefs.optional.ejb.EjbJar.execute(EjbJar.java
> :273)
>         at
> org.apache.tools.ant.Target.execute(Target.java:142)
>         at
> org.apache.tools.ant.Project.runTarget(Project.java:818)
>         at
>
org.apache.tools.ant.Project.executeTarget(Project.java:532)
>         at
>
org.apache.tools.ant.Project.executeTargets(Project.java:506)
>         at
> org.apache.tools.ant.Main.runBuild(Main.java:420)
>         at org.apache.tools.ant.Main.main(Main.java:149)
> 
> Any ideas how I can get around this?
> 
> Thanks,
> 
> Tim


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

Mime
View raw message