tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: EJBcontainer.createEJBContainer difference between 4.5.1 and 4.6.0?
Date Fri, 04 Apr 2014 15:19:16 GMT
asm version as you can see. A class is not readable in the scanned classpath.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-04-04 17:17 GMT+02:00 ron <ron.smits@gmail.com>:
> Hi
>
> The code
>         Properties p = new Properties();
>         p.put("shop-pu", "new://Resource?type=DataSource");
>         p.put("shop-pu.JdbcDriver", "org.hsqldb.jdbcDriver");
>         p.put("shop-pu.JdbcUrl", "jdbc:hsqldb:mem:shopdb" +
> System.currentTimeMillis());
>         EJBContainer container = EJBContainer.createEJBContainer(p);
>         container.getContext().bind("inject", this);
>
> works perfectly with openejb 4.5.1 but gives an IllegalArgumentException on
> 4.6.0. Does anybody know what has changed?
> Here is the exception:
> org.apache.openejb.OpenEjbContainer$InitializationException:
> java.lang.IllegalArgumentException
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>         at org.apache.xbean.asm4.ClassReader.<init>(Unknown Source)
>         at
> org.apache.openejb.util.AnnotationFinder.readClassDef(AnnotationFinder.java:297)
>         at org.apache.openejb.util.AnnotationFinder.find(AnnotationFinder.java:163)
>         at
> org.apache.openejb.config.DeploymentLoader.checkAnnotations(DeploymentLoader.java:1871)
>         at
> org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1782)
>         at
> org.apache.openejb.config.DeploymentsResolver.processUrls(DeploymentsResolver.java:388)
>         at
> org.apache.openejb.config.DeploymentsResolver.loadFromClasspath(DeploymentsResolver.java:301)
>         at
> org.apache.openejb.config.ConfigurationFactory.getModulesFromClassPath(ConfigurationFactory.java:647)
>         at
> org.apache.openejb.OpenEjbContainer$Provider.load(OpenEjbContainer.java:535)
>         at
> org.apache.openejb.OpenEjbContainer$Provider.createEJBContainer(OpenEjbContainer.java:354)
>         at
> javax.ejb.embeddable.EJBContainer.createEJBContainer(EJBContainer.java:56)
>         at
> org.ronsmits.shopper.rest.group.ShopUserGroupResourceTest.setup(ShopUserGroupResourceTest.java:34)
>
>
>
>
>
> --
> View this message in context: http://openejb.979440.n4.nabble.com/EJBcontainer-createEJBContainer-difference-between-4-5-1-and-4-6-0-tp4668595.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message