Re: [ANN] WOInject 1.0
Re: [ANN] WOInject 1.0
- Subject: Re: [ANN] WOInject 1.0
- From: Henrique Prange <email@hidden>
- Date: Thu, 12 Apr 2012 18:05:03 -0300
Hi Ron,
On 12/04/2012, at 08:04, Ron X wrote:
> please tell me - how you start app with woinject?
> i can't do that!
>
Your Application class should look like this:
package com.ronx;
import com.woinject.InjectableApplication;
import com.woinject.WOInject;
public class Application extends InjectableApplication {
public static void main(String[] args) {
WOInject.init("com.ronx.Application", args);
}
...
}
> everytime i have
> Exception in thread "main" java.lang.NoClassDefFoundError: com/ronx/Application
> Caused by: java.lang.ClassNotFoundException: com.ronx.Application
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> or if i comment ERXApplication.main(argv, Application.class);
>
You should not start your application with the ERXApplication class when using WOInject.
Cheers,
Henrique
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden