users@glassfish.java.net

Re: Maven2 Repository

From: Stephen Connolly <stephen.alan.connolly_at_gmail.com>
Date: Wed, 28 Nov 2007 14:52:33 +0000

Found the link... here's the disclaimer:

> You can compile you code with this jar, but of course you cannnot run your
> application with it since it contains only the Java EE 5 APIs and does not contain
> any method bodies. If you try to run, you would get this exception:
>
> Exception in thread "main" java.lang.ClassFormatError:
> Absent Code attribute in method that is not native or abstract in class file
> javax/mail/Session
>
> In order to execute a Java EE 5 application, you'll still need a Java EE 5 container,
> like for example the GlassFish application server.
> Ludo

http://weblogs.java.net/blog/ludo/archive/2007/01/java_ee_5_apis.html

On Nov 28, 2007 2:42 PM, Stephen Connolly
<stephen.alan.connolly_at_gmail.com> wrote:
> Ohh
>
> well don't make the mistake I made.
>
> The javaee.jar in the java.net repo is a stub jar and can only be used
> for compile time, not runtime.
>
>
>
>
> On Nov 28, 2007 2:42 PM, <glassfish_at_javadesktop.org> wrote:
> > As a newbei at Maven, i can only say that i'm agree with you despite the fact that €0,01 for every issue is too cheap for me but i could survive with €0,10 :)
> >
> > To be honest, i only need appserv-rt.jar and javaee.jar in my path to be able to initialize and use an InitialContext object - which i couldn't manage yet. I've added the repository and dependency as follows but i couldn't get it work.
> >
> > In Glassfish libs are they included, so adding this should work, i thought...
> >
> > <repository>
> > <id>maven2-glassfish</id>
> > <name>Glassfish Repository</name>
> > <url>http://repo1.maven.org/maven2/</url>
> > </repository>
> > ....
> > <dependency>
> > <groupId>net.java.dev.glassfish</groupId>
> > <artifactId>glassfish</artifactId>
> > <version>b32g</version>
> > </dependency>
> >
> > Any help?
> > [Message sent by forum member 'erkan' (erkan)]
> >
> > http://forums.java.net/jive/thread.jspa?messageID=247609
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
> >
>