tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Karalus <andreas.kara...@googlemail.com>
Subject openejb tries to start org.apache.tools.ant.Main
Date Thu, 23 Jul 2009 11:18:58 GMT

some strange behaviour while trying to switch to openejb 3.1.1

The Container tries to automatically load org.apache.tools.ant.Main which is
not in classpath but is a transitive dependency in maven.
This was not the case with openejb 3.0.

org.apache.openejb.OpenEJBException: Unable to load Client main-class:
org.apache.tools.ant.Main: org.apache.tools.ant.Main
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:668)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:624)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:186)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:247)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:601)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:551)
        at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:380)
        at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:292)
        at
org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:271)
        at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:137)
        at org.apache.openejb.OpenEJB.init(OpenEJB.java:286)


Ant seems to be a transitive dependency of commons-jxpath. 
Running mvn dependency:tree gives a 
[INFO] +- dom4j:dom4j:jar:1.6.1:provided
[INFO] |  \- xml-apis:xml-apis:jar:1.0.b2:provided
[INFO] +- commons-collections:commons-collections:jar:3.1:provided
[INFO] +- jboss.jboss-as:hsqldb:jar:4.3.0.GA-CP01-EAP:test
[INFO] +- jboss.jboss-as:mail:jar:4.3.0.GA-CP01-EAP:provided
[INFO] +- commons-jxpath:commons-jxpath:jar:1.2:provided
[INFO] |  +- ant:ant-optional:jar:1.5.1:provided
[INFO] |  \- jdom:jdom:jar:1.0:provided (version managed from b9)
[INFO] \- antlr:stringtemplate:jar:3.0:provided
[INFO]    \- antlr:antlr:jar:2.7.7:provided

-> We coud exclude the ant transitive dependency from commons-jxpath in our
pom.xml ("<excludes>") as a workaround, but I think this should be rather
get fixed in openejb? why does it try to start the ant Main class? 

regards,
andreas

-- 
View this message in context: http://www.nabble.com/openejb-tries-to-start-org.apache.tools.ant.Main-tp24623745p24623745.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message