Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 99863 invoked from network); 10 Jan 2001 19:55:18 -0000 Received: from unknown (HELO cisfo?exch.claimiq.com) (64.162.220.179) by h31.sny.collab.net with SMTP; 10 Jan 2001 19:55:18 -0000 Received: by CISFO_EXCH with Internet Mail Service (5.5.2650.21) id ; Wed, 10 Jan 2001 11:53:08 -0800 Message-ID: From: Saket Raizada To: "'ant-user@jakarta.apache.org'" Subject: ejbjar weblogic problems! Date: Wed, 10 Jan 2001 11:53:06 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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! using 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!!! WHAT ABOUT THE WEBLOGIC XML'S??? using 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 -Saket -----Original Message----- From: Conor MacNeill [mailto:conor@ebinteractive.com.au] Sent: Tuesday, January 09, 2001 5:30 PM To: ant-user@jakarta.apache.org Subject: RE: ejbjar problems! 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 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 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 > > destdir="junk"> > > 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 >