What JDK are you using? Is the executing environment the exact same for
Maven and Ant?

/Anders

On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen <[email protected]>wrote:

> I have a test that fails when I use Maven and works when I use ant.
> The test looks like this: (junit 4.7)
>
>    @Test
>    public void Login() {
>        SugarBean b = new SugarBean();
>        b.login("roelveldhuizen", "md5trallala");
>    }
>
> The bean is going to invoke a web service which is build using Axis
> 1.4. The test will generate the following Exception
>
> java.lang.ClassFormatError: Absent Code attribute in method that is
> not native or abstract in class file javax/xml/rpc/ServiceException
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
> at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to