beans.xml file and java.lang.UnsupportedOperationException: JBAS011859: Naming context is read-only

后端 未结 3 1185
迷失自我
迷失自我 2020-12-29 16:13

I have very strange exception after starting using beans.xml file in our EJB and jar files.
We use JBoss7.1.1 release.
Our app

3条回答
  •  [愿得一人]
    2020-12-29 17:05

    This is a known issue when using jersey. Try to add below option to your jvm, which will fix your issue. If you are running the jboss server from eclipse then add to the server runtime configuration. If you are starting the jboss from command prompt using standalone.bat then add the below option to standalone.conf.bat. Similarly if you are using *Nix then add to standalone.conf.

    set "JAVA_OPTS=%JAVA_OPTS% -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"
    

提交回复
热议问题