ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ouellet...@foliofn.com (Timothy Ouellette)
Subject ejbc question
Date Tue, 03 Apr 2001 21:53:48 GMT
we are moving from weblogic 4.51 to 5.1 and therefore the deploy target for
the build.xml must be changed.  I have a directory tree that looks like the
following

/source/xxx/impl/*.java

/source/xxx/descriptors/<bean-name>/ejb-jar.xml
/source/xxx/descriptors/<bean-name>/weblogic-ejb-jar.xml

/classes/xxx/impl/*.class

we want to take the approach of having each bean have its own jar.  Could
some supply the sample code?  Below is my initial attempt and it seems to be
having problems finding the extra xml files.  I guess the main problem is
that the ejb-jar files are 1 per directory, does anyone know how to solve
this w/o moving them all to one directory?


$Dest = /classes
<!-- DEPLOY -->
<!-- WebLogic 5.1 Deployment -->
  <target name="deploy" depends="build">
    <ejbjar srcdir="${Dest}"
            descriptordir=".">
      <weblogic destdir="${Dest}" />
      <include name="./../descriptors/**/ejb-jar.xml"/>
      <exclude name="./../descriptors/**/weblogic*.xml"/>
    </ejbjar>
  </target>

Or if I follow the example code and do a the naming convention
<bean-name>-XXX for both files and put them in "." and then use teh sample
code I get the following error which indicates that it is atleast finding
the correct xml files.

init:
**thr_sigsetmask was SUCCESS on tid: 9 with org_mask: ebd11cdc
**thr_sigsetmask was SUCCESS on tid: 11 with org_mask: ebcb1cdc
**thr_sigsetmask was SUCCESS on tid: 10 with org_mask: ebce1cdc

build:
    [javac] Compiling 30 source files to
/home/bldenv/39.ant/foliofn/projects/v1/tradeapp/classes
    [javac] Note: 24 files use or override a deprecated API.  Recompile with
"-deprecation" for details.
    [javac] 1 warning

deploy:
   [ejbjar] building ejb.jar with 7 files
**thr_sigsetmask was SUCCESS on tid: 12 with org_mask: ebd11cdc
**thr_sigsetmask was SUCCESS on tid: 13 with org_mask: ebce1cdc
**thr_sigsetmask was SUCCESS on tid: 14 with org_mask: ebcb1cdc
     [ejbc] **thr_sigsetmask was SUCCESS on tid: 1 with org_mask: efffea4c
     [ejbc] **thr_sigsetmask was SUCCESS on tid: 4 with org_mask: ef071cdc
     [ejbc] **thr_sigsetmask was SUCCESS on tid: 5 with org_mask: ef041cdc
     [ejbc] **thr_sigsetmask was SUCCESS on tid: 6 with org_mask: ee7f1cdc
     [ejbc] org.xml.sax.SAXParseException: Element
"weblogic-enterprise-bean" allows no further input; "transaction-isolation"
is not allowed.
     [ejbc]     at java.lang.Throwable.fillInStackTrace(Native Method)
     [ejbc]     at java.lang.Throwable.fillInStackTrace(Compiled Code)
     [ejbc]     at java.lang.Throwable.<init>(Compiled Code)
     [ejbc]     at java.lang.Exception.<init>(Compiled Code)
     [ejbc]     at org.xml.sax.SAXException.<init>(SAXException.java:45)
     [ejbc]     at
org.xml.sax.SAXParseException.<init>(SAXParseException.java:53)
     [ejbc]     at com.sun.xml.parser.Parser.error(Parser.java:2775)
     [ejbc]     at
com.sun.xml.parser.ValidatingParser$ChildrenValidator.consume(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.content(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.content(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.maybeElement(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.parseInternal(Compiled Code)
     [ejbc]     at com.sun.xml.parser.Parser.parse(Parser.java:283)
     [ejbc]     at
weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
     [ejbc]     at
weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:157
)
     [ejbc]     at weblogic.ejbc.runBody(Compiled Code)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:353)
     [ejbc] --------------- nested within: ------------------
     [ejbc] Received SAXParseException from Sun Parser at line 15,
column -1: org.xml.sax.SAXParseException: Element "weblogic-enterprise-bean"
allows no further input; "transaction-isolation" is not allowed.
     [ejbc]     at java.lang.Throwable.fillInStackTrace(Native Method)
     [ejbc]     at java.lang.Throwable.fillInStackTrace(Compiled Code)
     [ejbc]     at java.lang.Throwable.<init>(Compiled Code)
     [ejbc]     at java.lang.Exception.<init>(Compiled Code)
     [ejbc]     at
weblogic.utils.NestedException.<init>(NestedException.java:18)
     [ejbc]     at
weblogic.xml.dom.DOMParserException.<init>(DOMParserException.java:23)
     [ejbc]     at
weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
     [ejbc]     at
weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:102)
     [ejbc]     at
weblogic.ejb.deployment.dd.DescriptorLoader.<init>(DescriptorLoader.java:157
)
     [ejbc]     at weblogic.ejbc.runBody(Compiled Code)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:80)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:353)
     [ejbc] ERROR: Received SAXParseException from Sun Parser at line 15,
column -1: org.xml.sax.SAXParseException: Element "weblogic-enterprise-bean"
allows no further input; "transaction-isolation" is not allowed.
     [ejbc] Java Result: 1

BUILD SUCCESSFUL

Total time: 35 seconds

Thanks

 -Tim


Mime
View raw message