Hello,
Did anyone succeeded to run JBoss from inside IDEA (for debugging purposes)? I have tried with simple class like:
public class RunJBoss {
public static void main (String[] args) {
try {
org.jboss.Main.main(args);
} catch (Exception e) {
e.printStackTrace();
}
}
}
but startup fails when it comes to:
3:06:31,695 INFO [MainDeployer] Starting deployment of package: file:/D:/www/pcx2.0/jboss/server/default/deploy/ejb-management.jar
13:06:34,660 INFO [EjbModule] Creating
13:06:34,910 INFO [EjbModule] Deploying MEJB
13:06:39,106 INFO [EjbModule] Created
13:06:39,106 INFO [EjbModule] Starting
13:06:39,276 INFO [EjbModule] Started
13:06:39,276 INFO [MainDeployer] Successfully completed deployment of package: file:/D:/www/pcx2.0/jboss/server/default/deploy/ejb-management.jar
13:06:39,296 INFO [MainDeployer] Starting deployment of package: file:/D:/www/pcx2.0/jboss/server/default/deploy/ejb-test.jar
13:06:40,288 ERROR [EJBDeployer] Verfiy failed
java.lang.NoClassDefFoundError: javax/ejb/SessionBean
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
....
It seems that there is some kind of problem with class loader ?? any ideas ??
Thanks,
Ivan.
Ok, it seems I have solved the problem using remote debugging, it works just fine ...