ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@ebinteractive.com.au>
Subject RE: ejbjar problems!
Date Wed, 10 Jan 2001 01:30:27 GMT
Saket,

You need to tell ejbjar which files are the deployment descriptor files. By
just specifying srcdir, you are telling ejbjar that all the files there are
descriptor files. This is why it is complaining about the .class file.

Try this

<ejbjar srcdir="${build.classes}/domain"
        destdir="junk">
  <include name="**/ejb-jar.xml"/>
  <exclude name="**/weblogic*.xml"/>
</ejbjar>

If you are not using weblogic, you can leave out the exclude clause. If you
are using weblogic, you'll probably want to add a <weblogic> element as
well. Check out the documentation for further info
http://jakarta.apache.org/ant/jakarta-ant/docs/ejb.html#ejbjar

Cheers
Conor


--
Conor MacNeill
conor@cortexebusiness.com.au
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Saket Raizada [mailto:Saket.Raizada@claimiq.com]
> Sent: Wednesday, 10 January 2001 12:12
> To: 'ant-user@jakarta.apache.org'
> Subject: ejbjar problems!
>
>
>
> hi,
>  i have a directory ${build.classes}/domain in which the .class files and
> deployment descriptors are kept
> the jar ordinarily compiles when used from simple ejbc etc...
> but when
> I use
>
> <ejbjar srcdir="${build.classes}/domain"
>  destdir="junk">
>  </ejbjar>
> it gives me this error..
> any insights??
>
>
>
> BUILD FAILED
>
> M:\build.xml:32: SAXException while parsing 'DomainTable.class'. This
> probably indicates badly-formed XML.  Details: Character conversion error
> encoding declaration missing?" (line number may be too low).
> org.xml.sax.SAXParseException: Character conversion error:
> "Malformed UTF-8
> char -- is an XML encoding declaration missing?" (line number may b
>         at com.sun.xml.parser.InputEntity.fatal(InputEntity.java:974)
>         at com.sun.xml.parser.InputEntity.fillbuf(InputEntity.java:946)
>         at com.sun.xml.parser.InputEntity.peek(InputEntity.java:777)
>         at com.sun.xml.parser.Parser.peek(Parser.java:2690)
>         at com.sun.xml.parser.Parser.maybeXmlDecl(Parser.java:980)
>         at com.sun.xml.parser.Parser.parseInternal(Parser.java:477)
>         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.GenericDeploymentTool.p
> rocessDesc
> riptor(GenericDeploymentTool.java, Compiled Code)
>         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:818)
>         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:149)
>
> thanks and regards
> -Saket
>


Mime
View raw message