aspose file tools
The moose likes JBoss and the fly likes Error starting jboss-4.2.3.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Error starting jboss-4.2.3.GA" Watch "Error starting jboss-4.2.3.GA" New topic
Author

Error starting jboss-4.2.3.GA

Faraz Ali
Ranch Hand

Joined: May 15, 2008
Posts: 108
Hi Ranchers,

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:

org.jboss.deployment.DeploymentInfo@6c549b4 { url=file:/C:/Uninstall/jboss-4.2.3.GA/server/default/deploy/http-invoker.sar/invoker.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/http-invoker.sar/invoker.war/WEB-INF/web.xml
altDD: null
lastDeployed: 1219912645781
lastModified: 1219847313093
mbeans:

ObjectName: jboss.web.deployment:war=jbossws-context.war,id=-589577273
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null)


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?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

Did you do any changes to the JBoss which you downloaded?


[My Blog] [JavaRanch Journal]
Faraz Ali
Ranch Hand

Joined: May 15, 2008
Posts: 108
I did not make any change.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

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.


JBoss In Action
Faraz Ali
Ranch Hand

Joined: May 15, 2008
Posts: 108
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?

Error during deploy; - nested throwable: (java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : cannot find class : null)

Caused by: java.lang.ClassNotFoundException: JACC:Error PolicyConfigurationFactory : property not set : javax.security.jacc.PolicyConfigurationFactory.provider
Faraz Ali
Ranch Hand

Joined: May 15, 2008
Posts: 108
Hi,

Its running now.

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?
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 8795

Can you pease tell me which jboss tools did you download? I downloaded the JBoss IDE 1.6 and I"m not able to configure the server from within eclipse.


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Error starting jboss-4.2.3.GA
 
Similar Threads
startup exceptions with jboss 4.0.1
MDB in JBoss listening to a Weblogic queue
Error Starting jboss-4.2.3.GA
problems deploying with jboss
deployment exception