ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Saket Raizada <>
Subject ejbjar weblogic problems!
Date Wed, 10 Jan 2001 19:53:06 GMT
hi ,
thanks to you people and esp Conor I have came a long way but
Now a new problem

I have source classes in $build.classes and XML's (3 of them 1 for
ejb-jar.xml and 2 for weblogic(weblogic-ejb-jar.xml and weblogic-cmp...) 
Now  i want to generate a deployable jar from them!

<ejbjar srcdir="${build.classes}"
 destdir="junk" >
generates 2 jar fileS 1 ith with the Home Remote Bean and ejb-jar.xml as a
single JAR and another with only
EJB-JAR.xml no mention of weblogic xml's!!!


<ejbjar srcdir="${build.classes}"
 destdir="junk" >
 <weblogic destdir="junk" />

this weblogic element causes this error
[ejbjar] building ejb.jar with 4 files
ERROR: Error from ejbc: The JNDI name of bean DomainTable was not set
ERROR: Error from ejbc: No JNDI name set for the referenced resource factory
for reference jdbc/IBADEV of type javax.sql.DataSource

any guidance or code towards producing a deployable jar for weblogic/any
server will be really appreciated.
thanks and regards

-----Original Message-----
From: Conor MacNeill []
Sent: Tuesday, January 09, 2001 5:30 PM
Subject: RE: ejbjar problems!


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"
  <include name="**/ejb-jar.xml"/>
  <exclude name="**/weblogic*.xml"/>

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


Conor MacNeill
Cortex eBusiness

> -----Original Message-----
> From: Saket Raizada []
> Sent: Wednesday, 10 January 2001 12:12
> To: ''
> 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??
> 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(
>         at com.sun.xml.parser.InputEntity.fillbuf(
>         at com.sun.xml.parser.InputEntity.peek(
>         at com.sun.xml.parser.Parser.peek(
>         at com.sun.xml.parser.Parser.maybeXmlDecl(
>         at com.sun.xml.parser.Parser.parseInternal(
>         at com.sun.xml.parser.Parser.parse(
>         at javax.xml.parsers.SAXParser.parse(
>         at
> rocessDesc
> riptor(, Compiled Code)
>         at
> Compiled Code)
>         at, Compiled Code)
>         at
>         at
>, Compiled
> Code)
>         at,
> Compiled Code)
>         at, Compiled Code)
>         at
> thanks and regards
> -Saket

View raw message