11 Replies Latest reply: Dec 19, 2009 5:57 AM by Ercan Ercan RSS

how to configure jboss-5.1.1.0.GA on Mac os 10.6.2

Ercan Ercan Newbie

Hi all. I downloaded from jboss.org  jboss.-5.1.1.0.GA and when tryed to run on eclips or from terminal  ./run.sh I get error like

 

18:49:10,424 ERROR [AbstractKernelController] Error installing to Start: name=jboss-web-policy state=Create

java.lang.IllegalArgumentException: Invalid control flag: REQU?RED

at org.jboss.security.microcontainer.beans.Util.getControlFlag(Util.java:57)

at org.jboss.security.microcontainer.beans.AuthorizationPolicyBean.getPolicyInfo(AuthorizationPolicyBean.java:49)

at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.getApplicationPolicy(ApplicationPolicyBean.java:459)

at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.start(ApplicationPolicyBean.java:420)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)

at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)

at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)

at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)

at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)

at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

 

 

I have theese  configuration

 

JBoss Bootstrap Environment

 

  JBOSS_HOME: /Users/meko16/jboss/jboss-5.1.1.0.GA

 

  JAVA: java

 

  JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

 

  CLASSPATH: /Users/meko16/jboss/jboss-5.1.1.0.GA/bin/run.jar

 

 

I think I need to correct JAVA_HOME but I am new on MAc and i dont know how to make it .I runed jboss and worked on Windows but on MAc I stucked

 

And here my Java version:

 

java version "1.6.0_17"

Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)

Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)

 

Thanks..

  • 1. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Peter Johnson Master

    Near the beginning of the console log (and in boot.log) there will be some lines that declare the JVM version being used, something like this:

     

    08:49:19,659 INFO  [ServerInfo] Java version: 1.6.0_16,Sun Microsystems Inc.
    08:49:19,662 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
    08:49:19,663 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.2-b01,Sun Microsystems Inc.

     

    Could you post those lines from you log? That will let us know if you are using the JVM you think you are.

  • 2. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    erasmo2 marciano2 Master
    You must set the JAVA_HOME.

    are you sure that you are using a JDK instead a JRE?
  • 3. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Ercan Ercan Newbie

    I think u asked about this

     

    21:35:38,056 INFO  [ServerImpl] Starting JBoss (Microcontainer)...

    21:35:38,057 INFO  [ServerImpl] Release ID: JBoss [The Oracle] 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

    21:35:38,058 INFO  [ServerImpl] Bootstrap URL: null

    21:35:38,058 INFO  [ServerImpl] Home Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA

    21:35:38,058 INFO  [ServerImpl] Home URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/

    21:35:38,058 INFO  [ServerImpl] Library URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/lib/

    21:35:38,059 INFO  [ServerImpl] Patch URL: null

    21:35:38,059 INFO  [ServerImpl] Common Base URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/common/

    21:35:38,059 INFO  [ServerImpl] Common Library URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/common/lib/

    21:35:38,059 INFO  [ServerImpl] Server Name: default

    21:35:38,060 INFO  [ServerImpl] Server Base Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server

    21:35:38,060 INFO  [ServerImpl] Server Base URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/server/

    21:35:38,060 INFO  [ServerImpl] Server Config URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/conf/

    21:35:38,060 INFO  [ServerImpl] Server Home Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default

    21:35:38,060 INFO  [ServerImpl] Server Home URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/

    21:35:38,060 INFO  [ServerImpl] Server Data Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/data

    21:35:38,061 INFO  [ServerImpl] Server Library URL: file:/Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/lib/

    21:35:38,061 INFO  [ServerImpl] Server Log Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/log

    21:35:38,061 INFO  [ServerImpl] Server Native Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/tmp/native

    21:35:38,061 INFO  [ServerImpl] Server Temp Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/tmp

    21:35:38,061 INFO  [ServerImpl] Server Temp Deploy Dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/tmp/deploy

    21:35:39,862 INFO  [ServerImpl] Starting Microcontainer, bootstrapURL=file:/Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/conf/bootstrap.xml

    21:35:40,937 INFO  [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.CombinedVFSCache]

    21:35:40,940 INFO  [VFSCacheFactory] Using VFSCache [CombinedVFSCache[real-cache: null]]

    21:35:41,310 INFO  [CopyMechanism] VFS temp dir: /Users/meko16/jboss/jboss-5.1.1.0.GA/server/default/tmp

    21:35:41,311 INFO  [ZipEntryContext] VFS force nested jars copy-mode is enabled.

    21:35:43,036 INFO  [ServerInfo] Java version: 1.6.0_17,Apple Inc.

    21:35:43,036 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)

    21:35:43,036 INFO  [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101,Apple Inc.

    21:35:43,037 INFO  [ServerInfo] OS-System: Mac OS X 10.6.2,x86_64

    21:35:43,061 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=/Users/meko16/jboss/jboss-5.1.1.0.GA/lib/endorsed

    21:35:43,140 INFO  [JMXKernel] Legacy JMX core initialized

    21:35:46,026 INFO  [ProfileServiceBootstrap] Loading profile: ProfileKey@69fa10da[domain=default, server=default, name=default]

    21:35:48,919 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/

    21:35:54,138 ERROR [STDERR] [Deprecated] Xalan: org.apache.xml.serializer.XMLEntities

    21:35:56,800 INFO  [NativeServerConfig] JBoss Web Services - Stack Native Core

    21:35:56,800 INFO  [NativeServerConfig] 3.1.2.GA

    Also I tryed to run jboss-4.2.3.GA and it worked with no error.I think that I must reconfigure this but I dont know where to ..I found jboss-4.2.3.GA in internet and there wrote that it was configured .
  • 4. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Peter Johnson Master

    The log shows that you are picking up the correct JVM.

     

    Are you running a clean install, or have you deployed applications? If you have deployed applications, undeploy them and try starting.

  • 5. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Ercan Ercan Newbie
    I downloaded from jbossçorg and  tryed to start.I dont thınk that some thıng deployed. But with mistakes it starts serwer.I tryed to run on explorer and I saw the page from jboss.But  thoose error dıscustıng and  I even dont know why is it  .I will use atleas  4.2.3.Ga vesıon it works..Thanks for attemp my question .
  • 6. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    jaikiran pai Master

    This looks like a known issue https://jira.jboss.org/jira/browse/JBAS-6651 although it's not been addressed yet. Looks like an issue with parsing the xml when the locale is Turkish.

  • 7. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    jaikiran pai Master

    I could reproduce this locally by setting the locale to turkish as a JVM argument (-Duser.language=tr) in JAVA_OPTS. I get this error:

     

     

    12:45:41,170 ERROR [AbstractKernelController] Error installing to Start: name=jboss-web-policy state=Create
    java.lang.IllegalArgumentException: Invalid control flag: REQUİRED
            at org.jboss.security.microcontainer.beans.Util.getControlFlag(Util.java:57)
            at org.jboss.security.microcontainer.beans.AuthorizationPolicyBean.getPolicyInfo(AuthorizationPolicyBean.java:49)
            at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.getApplicationPolicy(ApplicationPolicyBean.java:459)
            at org.jboss.security.microcontainer.beans.ApplicationPolicyBean.start(ApplicationPolicyBean.java:420)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
            at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
            at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
            at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
            at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
            at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
            at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
            at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
            at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
            at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
            at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
            at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
            at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)
            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
            at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
            at org.jboss.Main.boot(Main.java:221)
            at org.jboss.Main$1.run(Main.java:556)
            at java.lang.Thread.run(Thread.java:619)
    12:45:41,181 ERROR [AbstractKernelController] Error installing to Start: name=jboss-ejb-policy state=Create
    java.lang.IllegalArgumentException: Invalid control flag: REQUİRED
    
    

     

     

    It seems to be running into issues while parsing the JBOSS_HOME/server/< servername>/deploy/security/security-policies-jboss-beans.xml file which has a couple of MC bean configurations. Let me see what the issue is.

  • 9. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Ercan Ercan Newbie

    Yes your are rıght..My local  turkey .but for fıx ıt I must change local to englısh or I must change ın java_option  some thıng? but ı dont know ın mac os where ıs theese java _option Also when I am usin seam-gen it allways says that Java_HOME  not configured and I allways set  this to console

    export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework.Home" then it works but  after cloosing terminal and trying again it requers again Java home jdk not set  and point it to a JDK installation ...Maybe it is problem of these language ?

  • 10. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    jaikiran pai Master

    Mekonom wrote:

     

    Yes your are rıght..My local  turkey .but for fıx ıt I must change local to englısh or I must change ın java_option  some thıng? but ı dont know ın mac os where ıs theese java _option


    Edit /Users/meko16/jboss/jboss-5.1.1.0.GA/bin/run.conf and add the -Duser.language JVM option to the already available JAVA_OPTS section in that file, as follows:

     

    #
    # Specify options to pass to the Java VM.
    #
    if [ "x$JAVA_OPTS" = "x" ]; then
       JAVA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Duser.language=en"
    fi
    

     

    Mekonom wrote:

     

    Also when I am usin seam-gen it allways says that Java_HOME  not configured and I allways set  this to console

    export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework.Home" then it works but  after cloosing terminal and trying again it requers again Java home jdk not set  and point it to a JDK installation ..

    You will have to follow the Mac OS docs to set it as an environment variable (like http://dhptech.com/article/2007/02/09/setting-environment-variables-for-mac-osx-programs  )

  • 11. Re: how to configure jboss-5.1.1.0.GA on Mac os 10.6.2
    Ercan Ercan Newbie
    Thanks for helping ..ıt was usefull