• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Error starting jboss-4.2.3.GA

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you do any changes to the JBoss which you downloaded?
 
Faraz Ali
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did not make any change.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Faraz Ali
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic