aspose file tools*
The moose likes JBoss/WildFly and the fly likes Jboss 5.1.0GA + eclipse jboss plugin wont start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss 5.1.0GA + eclipse jboss plugin wont start" Watch "Jboss 5.1.0GA + eclipse jboss plugin wont start" New topic
Author

Jboss 5.1.0GA + eclipse jboss plugin wont start

Luke Foxton
Greenhorn

Joined: Feb 09, 2009
Posts: 5
Hi there,

We have a web application which we formerly deployed in jboss-4.0.2, now we are looking to upgrade to 5.1.0-GA. Our development usually involved starting jboss from within eclipse using the plugin so we could have access to the debugging. But when using the JBoss v5.0 server type it will not start up.

Firstly, I had to copy mail.jar from the common/lib dir to the server/default/lib dir just to add the server to teh Servers list in eclipse. Then when I attempt to start jboss I get an error:

16:27:37,504 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
Failed to boot JBoss:
java.lang.RuntimeException: Unable to create a KernelInitializer based on the specified KernelConfig
at org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
at org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
at org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:114)
at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:105)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(libgcj.so.81)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.jboss.reflect.plugins.MethodInfoImpl.<init>(MethodInfoImpl.java:103)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.<init>(ReflectMethodInfoImpl.java:78)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:211)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:200)
at java.security.AccessController.doPrivileged(libgcj.so.81)
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:198)

Has anyone else attempted this and been successful?

Thanks,

Luke
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10222
    
166

Firstly, I had to copy mail.jar from the common/lib dir to the server/default/lib dir just to add the server to teh Servers list in eclipse.


You don't have to do that. Instead follow this

Then when I attempt to start jboss I get an error:


Which exact JDK version and vendor do you use? Can you please post the entire console logs (not the server.log)?

While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.


[My Blog] [JavaRanch Journal]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

Also, install JBoss Tools (usually just the JBoss AS tool if all you need) and then use the JBoss AS servers listed under "JBoss Community Edition" when creating a server. That works for me.


JBoss In Action
 
wood burning stoves
 
subject: Jboss 5.1.0GA + eclipse jboss plugin wont start