tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinícius Moselli <vinicius.mose...@gmail.com>
Subject Re: javaee Maven Coordinates
Date Wed, 23 Jul 2014 18:42:46 GMT
Sorry about this late reply but i needed to share this info.

I had the exactly same exception about jee-api in maven with arquillian.

If i put this test dependency at the END of <dependencies> the tests worked.

Maybe you could try this too.

Hope this helps.


2014-03-29 8:23 GMT-03:00 Alex Soto <asotobu@gmail.com>:

> Ok then running for example the same example but in Wildfly would not
> require any change right? Then it is perfect thanks :)
>
>
> 2014-03-29 12:15 GMT+01:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
>
> > 1) some dev without testing I guess ;). BTW using tomee remote all
> > should be fine
> > 2) agnostic to? org.apache.openejb:javaee-api is agnostic to the
> container.
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
> >
> >
> >
> > 2014-03-29 12:11 GMT+01:00 Alex Soto <asotobu@gmail.com>:
> > > ok :) then:
> > > 1) what's doing there?
> > > 2) is there a way to have an agnostic jar?
> > >
> > >
> > > 2014-03-29 12:09 GMT+01:00 Romain Manni-Bucau <rmannibucau@gmail.com>:
> > >
> > >> hehe, did you decompile these binaries? they are not valid so not
> > >> usable at any runtime
> > >> Romain Manni-Bucau
> > >> Twitter: @rmannibucau
> > >> Blog: http://rmannibucau.wordpress.com/
> > >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > >> Github: https://github.com/rmannibucau
> > >>
> > >>
> > >>
> > >> 2014-03-29 11:18 GMT+01:00 Alex Soto <asotobu@gmail.com>:
> > >> > Hello,
> > >> >
> > >> > I am developing some examples of javaEE and TomEE. I have tried to
> > >> maintain
> > >> > my pom file as clean as possible, so instead of adding JavaEE
> > libraries
> > >> > from TomEE coordinates, I have decided to use the generic ones (from
> > java
> > >> > net site)
> > >> >
> > >> > <dependency>
> > >> >
> > >> >             <groupId>javax</groupId>
> > >> >
> > >> >             <artifactId>javaee-api</artifactId>
> > >> >
> > >> >             <version>${version.javaee}</version>
> > >> >
> > >> >             <scope>provided</scope>
> > >> >
> > >> >  </dependency>
> > >> >
> > >> >
> > >> > The problem is that when I run a test from Arquillian using Embed
> > TomEE
> > >> > adapter, next exception is thrown: java.lang.ClassFormatError:
> Absent
> > >> Code
> > >> > attribute in method that is not native or abstract in class file
> > >> >
> > >> > Of course if I use the ones provided by TomEE the application works,
> > but
> > >> I
> > >> > don't know if it has lot of sense this behaviour. Basically because
> > if I
> > >> > want to write an application with dependencies not linked to
> > container,
> > >> the
> > >> > best way would be using this generic file and because scope is
> > provided,
> > >> > each container will provide their own implementation.
> > >> >
> > >> > I don't know if there is a solution for this error, or for example
> if
> > >> TomEE
> > >> > Arquillian adapter could do something in this way.
> > >> >
> > >> >
> > >> > Alex.
> > >> >
> > >> > --
> > >> > +----------------------------------------------------------+
> > >> >   Alex Soto Bueno
> > >> >   www.lordofthejars.com
> > >> > +----------------------------------------------------------+
> > >>
> > >
> > >
> > >
> > > --
> > > +----------------------------------------------------------+
> > >   Alex Soto Bueno - Computer Engineer
> > >   www.lordofthejars.com
> > > +----------------------------------------------------------+
> >
>
>
>
> --
> +----------------------------------------------------------+
>   Alex Soto Bueno - Computer Engineer
>   www.lordofthejars.com
> +----------------------------------------------------------+
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message