David,
This may work, but it is very slow and unnecessary. As long as
weblogic/classes is in your classpath when you start ant, ejbjar will be
able to find and use a local copy of the ejb DTD. I would like to remove
this requirement for weblogic/classes to be in your classpath prior to
running ant, but it requires either running ejbjar in a separate VM or
using a classloader, which has problems all its own.
Cheers
Conor
----- Original Message -----
From: "Ventimiglia, David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 13, 2001 8:41 AM
Subject: FW: ejbjar fails when behind firewall/proxy server
> Hi,
>
> You can also supply the proxy server name and server port to the VM used
to
> run ant by setting the JAVACMD environment variable as follows:
>
> export JAVACMD=${JAVA_HOME}/bin/java.exe -Dhttp.proxyHost=PROXY
> -Dhttp.proxyPort=PORT (this is a Bash example....NT will be similar)
>
> where PROXY is the name or IP address of your proxy server and PORT the
port
> on which the proxy service is listening.
>
> This works pretty well, though on slow connections (eg. DSL or dial-up),
the
> latency can kill. :)
>
> Cheers
> David
>
> -----Original Message-----
> From: Andrew Goodnough [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: ejbjar fails when behind firewall/proxy server
>
>
> 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 <[EMAIL PROTECTED]> 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;${cla
s
> > 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/