ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel H A Lima <l...@cit.com.br>
Subject Re: Ejbjar Task, Linux and Weblogic 6.1
Date Wed, 06 Aug 2003 21:25:29 GMT
        We've found the cause of this strange behavior but i could not 
understand why the same target worked under Windows.
    The problem was a missing "exclude" at ejbjar :

       <ejbjar descriptordir="src" srcdir="classes" flatdestdir="true">
          <include name="**/*-ejb-jar.xml"/>
          <exclude name="**/*-weblogic-ejb-jar.xml"/>

    Verbose information under Linux :

   [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 1.1//EN to file etc/ejb11-jar.dtd
   [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 2.0//EN to file etc/ejb20-jar.dtd
   [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0 
EJB//EN to file etc/weblogic600-ejb-jar.dtd
   [ejbjar] Resolved -//BEA Systems, Inc.//DTD WebLogic 5.1.0 EJB//EN to 
local file etc/weblogic600-ejb-jar.dtd
   [ejbjar] building RegistrarValoresCamposController.jar with 2 files
   [ejbjar] adding file 'META-INF/ejb-jar.xml'
   [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml'
   +Task: java
   [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic 
5.1.0 EJB//EN - using EJB 1.1 compiler
   [ejbjar] Calling weblogic.ejbc for 
/usr/BEA/wlserver6.1/config/domain/applications/myapp/MyEJB-generic.jar
     [ejbc] Executing '/usr/java/jdk1.3.1_06/jre/bin/java' with arguments:
     [ejbc] Executing '/usr/java/jdk1.3.1_06/jre/bin/java' with arguments:
     [ejbc] '-classpath'
     [ejbc] 'some_classpath_here'
     [ejbc] 'weblogic.ejbc'
     [ejbc] '-classpath'
     [ejbc] 'some_classpath_here'
     [ejbc] 
'/usr/BEA/wlserver6.1/config/domain/applications/myapp/MyEJB-generic.jar'
     [ejbc] 
'/usr/BEA/wlserver6.1/config/domain/applications/myapp/MyEJB.jar'
     [ejbc]
     [ejbc] The ' characters around the executable and arguments are
     [ejbc] not part of the command.
Execute:Java13CommandLauncher: Executing 
'/usr/java/jdk1.3.1_06/jre/bin/java' with arguments:
'-classpath'
'some_classpath_here'
'weblogic.ejbc'
'-classpath'
'some_classpath_here'
'/usr/BEA/wlserver6.1/config/domain/applications/myapp/MyEJB-generic.jar'
'/usr/BEA/wlserver6.1/config/domain/applications/myapp/MyEJB.jar'

The ' characters around the executable and arguments are
not part of the command.

     [ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ 
Couldn't find a bean called RegistrarValoresCamposControllerEJB ]
     [ejbc]     at weblogic.utils.Debug.assert(Debug.java:84)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WLDD51Helper.initialize(WLDD51Helper.java:67)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.__post_7(WebLogicEjbJarLoader_WLS510.java:937)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.postProc(WebLogicEjbJarLoader_WLS510.java:562)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.postProc(ProcessorDriver.java:205)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.endElement(ProcessorDriver.java:88)
     [ejbc]     at 
weblogic.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1400)
     [ejbc]     at 
weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1452)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1299)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:399)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:994)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:131)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.process(WebLogicEjbJarLoader_WLS510.java:295)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.loadEJBJarDescriptorFromJarFile(DDUtils.java:212)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:157)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:141)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:134)
     [ejbc]     at weblogic.ejbc20.runBody(ejbc20.java:340)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:79)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:29)
     [ejbc] Exception in thread "main" weblogic.utils.AssertionError: 
***** ASSERTION FAILED *****[ Couldn't find a bean called MyEJB ]
     [ejbc]     at weblogic.utils.Debug.assert(Debug.java:84)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WLDD51Helper.initialize(WLDD51Helper.java:67)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.__post_7(WebLogicEjbJarLoader_WLS510.java:937)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.postProc(WebLogicEjbJarLoader_WLS510.java:562)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.postProc(ProcessorDriver.java:205)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.endElement(ProcessorDriver.java:88)
     [ejbc]     at 
weblogic.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1400)
     [ejbc]     at 
weblogic.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator.java:1452)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1299)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:399)
     [ejbc]     at 
weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:994)
     [ejbc]     at 
weblogic.xml.process.ProcessorDriver.process(ProcessorDriver.java:131)
     [ejbc]     at 
weblogic.ejb20.dd.xml.WebLogicEjbJarLoader_WLS510.process(WebLogicEjbJarLoader_WLS510.java:295)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.loadEJBJarDescriptorFromJarFile(DDUtils.java:212)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:157)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:141)
     [ejbc]     at 
weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:134)
     [ejbc]     at weblogic.ejbc20.runBody(ejbc20.java:340)
     [ejbc]     at weblogic.utils.compiler.Tool.run(Tool.java:79)
     [ejbc]     at weblogic.ejbc.main(ejbc.java:29)


Daniel H A Lima wrote:

>    I've forgot: Thanks in advance !
>
> Daniel H A Lima wrote:
>
>>    Hi guys, i need some help here:
>>
>>    I'm getting an exception when i try to use ejbjar under Linux. Two 
>> odd things about this error :
>>
>>    1. When i run the same target (that uses ejbjar) on Windows, 
>> everything works fine.
>>    2. Under Linux, ejbjar task fails only when subdirectories are 
>> scanned to search deployment descriptors, like :
>>
>>     ***** This will fail *****
>>     [ejbjar descriptordir="src" srcdir="classes" flatdestdir="true"]
>>            [include name="**/subdirectory/**/*-ejb-jar.xml"/]
>>
>>     ****** This will work ******
>>     [ejbjar descriptordir="src/deploy_descs_dir" srcdir="classes"]
>>            [include name="**/Some-ejb-jar.xml"/]
>>
>>     The error msg is strange :
>>
>>   [ejbjar] Resolved -//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN 
>> to local file etc/weblogic600-ejb-jar.dtd
>>   [ejbjar] building MyEJB.jar with 2 files
>>   [ejbjar] adding file 'META-INF/ejb-jar.xml'
>>   [ejbjar] adding file 'META-INF/weblogic-ejb-jar.xml'
>>   +Task: java
>>   [ejbjar] Unrecognized publicId -//BEA Systems, Inc.//DTD WebLogic 
>> 6.0.0 EJB//EN - using EJB 1.1 compiler
>> The ' characters around the executable and arguments are
>> not part of the command.
>>     [ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED 
>> *****[ Couldn't find a bean called MyEJB ]
>>     [ejbc]     at weblogic.utils.Debug.assert(Debug.java:84)
>>     [ejbc]     at 
>> weblogic.ejb20.dd.xml.WLDD51Helper.initialize(WLDD51Helper.java:67)
>>
>>    I've tried 2 differente versions of ANT (1.4.1 and 1.5.2) and the 
>> problema still remains.
>>    Under Windows the two versions of ANT work fine. Any glue ? Can 
>> Weblogic be the problem ?
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

-- 
______________________________________________

Daniel Henrique Alves Lima, Software Engineer
CiT Systems - Software enabling  the e-world
lima@cit.com.br
http://www.cit.com.br
Phone: +55 19 3737 4596
       +55 19 3737 4500
Fax:   +55 19 3737 4501          
_________________________________________________________________________

"Spike once ask me... What does it take for a soldier to become a 
 leader... What differentiates the two ?
 There is no difference. Sometimes certain soldiers are chosen to lead
 other soldiers. (...) But they never stop being soldiers.
 Because when the stakes are high... When the battle burns... When
 the death seems near... You either fight or your don't. You're either a
 soldier or you're not. (...) I'm a soldier. I fight. That's what i do."

	            Optimus Prime : TF - G1 : DW
_________________________________________________________________________




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message