Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Saturday, April 7, 2012

Troubleshoot-Jboss 6.1and Eclipse Indigo

Troubleshoot-Jboss 6.1and Eclipse Indigo


Jboss 6.1 doesnot start without any error or log in Eclipse Helios


Server: jboss 6.1-Final
Eclipse Version: Helios and Indigo

When jboss 6.1 was started from Eclipse Helios or Indigo without jboss tools plug-in, the server doesn’t start without any error or log. The problem seems to be jboss 6.1 expects a vm argument on logging.properties.

When the logging.properties is set in vm arguments, the server started without any problem.

In Eclipse, go to server tab, Click on server and then Arguments, in VM arguments section provide the below entry

-Dlogging.configuration=file:"\bin\logging.properties" 








Troubleshoot-Jboss 6.1and Eclipse Indigo

Troubleshoot-Jboss 6.1and Eclipse Indigo


Server: Jboss 6.1-Final
Eclipse Version: Helios and Indigo

When the jboss 6.1-Final is started in Eclipse Helios and above, the below error was thrown. There seems to be problem with plug-in.

Deployment "PostEjbJarMetadataDeployer" is in error due to the following reason(s): java.lang.NoSuchMethodError: javax.annotation.Resource.lookup()Ljava/lang/String;



By providing the below configuration in the vm argument, the problem is resolved.
In Eclipse, go to server tab, Click on server and then Arguments, in VM arguments section provide the below entry

-Djava.endorsed.dirs=\lib\endorsed