I am having some problem in setting up EJB 3.0. There are exceptions when i start the server. Details of my enviroment is below: 1.Installed JDK 1.5 2.Copied jboss-4.2.3.GA 3.Added JAVA_HOME entry in jboss-4.2.3.GA/bin/run.bat 4.Added the jboss server to the eclipse
Now when i run the jboss from eclipse or from command line, i get the below error messages:
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) at $Proxy5.deploy(Unknown Source) at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482) at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362) at org.jboss.Main.boot(Main.java:200) at org.jboss.Main$1.run(Main.java:508) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:159) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:355) ... 162 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : property not set : javax.security.jacc.PolicyConfigurationFactory.provider at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:144) ... 163 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:159) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:355) ... 162 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : property not set : javax.security.jacc.PolicyConfigurationFactory.provider at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:144) ... 163 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:159) at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:355) ... 162 more Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : property not set : javax.security.jacc.PolicyConfigurationFactory.provider at javax.security.jacc.PolicyConfigurationFactory.getPolicyConfigurationFactory(PolicyConfigurationFactory.java:144) ... 163 more 16:37:25,953 ERROR [MainDeployer] Could not start deployment: file:/C:/Uninstall/jboss-4.2.3.GA/server/default/deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/ org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null) --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo@7bf9109 { url=file:/C:/Uninstall/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/ } deployer: MBeanProxyExt[jboss.web:service=WebServer] status: Deployment FAILED reason: Error during deploy; - nested throwable: (java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null) state: FAILED watch: file:/C:/Uninstall/jboss-4.2.3.GA/server/default/deploy/jboss-web.deployer/ROOT.war/WEB-INF/web.xml altDD: null lastDeployed: 1219912645625 lastModified: 1219847338093 mbeans:
16:37:29,515 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080 16:37:29,562 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 16:37:29,562 INFO [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181417)] Started in 22s:297ms
What is the reason of these exceptions? Did i miss anything?
You said you started JBossAS from Eclipse - can you run JBossAS from the command line? If not, I would try downloading the JBossAS zip file and installing it again. Also, check the md5 or sha256 checksum to ensure the download was not corrupted.
I tried to run from command line as well, but still same error. Than i download another version of jboss jboss-4.2.0.GA, and set java_home in run.bat and run.conf, but it still failed to run.
below are the two main errors. Why it is unable to locate PolicyConfigurationFactory? Do i need to add any jar?
And which jboss version and which java version are best to use together?
The error gone, when i unistalled all the java versions (1.4, 5.0, 6.0) and than i fresh installed 5.0. So now its working.
I add jbosstools plugins to my eclipse. Now when i am creating server, its showing me 2 types of jboss server. First one comes by default with eclipse and second one is jbosstool's one. So which one is good?