Re: Running JOnAS 4.7.4 that uses 1.5 features

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Florent BENOIT wrote:
Could you try to set the following property : -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder (in JONAS_OPTS or JAVA_OPTS), then JOnAS will use MX4J and not the Classpath implementation.
JONAS_OPTS="\
   -Dinstall.root=$JONAS_ROOT \
   -Djonas.base=$JONAS_BASE \
   -Djava.awt.headless=true \
   -Djava.security.policy=$JONAS_BASE/conf/java.policy \
   -Djava.security.auth.login.config=$JONAS_BASE/conf/jaas.config \
   -Djonas.classpath=$XTRA_CLASSPATH \
   -Djonas.default.classloader=true \
   -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB \
   -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton \
-Dorg.omg.PortableInterceptor.ORBInitializerClass.standard_init=org.jacorb.orb.standardInterceptors.IORInterceptorInitializer \ -Djavax.rmi.CORBA.PortableRemoteObjectClass=org.objectweb.carol.rmi.multi.MultiPRODelegate \ -Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory \ -Djavax.rmi.CORBA.UtilClass=org.objectweb.carol.util.delegate.UtilDelegateImpl \
   -Djava.endorsed.dirs=$JONAS_ROOT/lib/endorsed\
   -Djavax.management.builder.initial=mx4j.server.MX4JMBeanServerBuilder"

# ---------------------------------------------
but JOnAS still demands the ModelMBean:
javax.management.MBeanException: Cannot load ModelMBean class
at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:369)
  at org.objectweb.jonas.server.Server.start(Server.java:460)
  at org.objectweb.jonas.server.Server.main(Server.java:181)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:372)
  at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
Caused by: java.lang.ClassNotFoundException: not found in org.objectweb.jonas.server.JClassLoader[Apps, urls=file:/home/audriusa/applications/jonas/lib/catalina/bin/bootstrap.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/naming-resources.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/naming-factory-dbcp.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/jasper-compiler.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/jasper-compiler-jdt.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/jsp-api.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/commons-el.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/servlet-api.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/jasper-runtime.jar;file:/home/audriusa/applications/jonas/lib/catalina/common/lib/naming-factory.jar]
  at java.net.URLClassLoader.findClass(URLClassLoader.java:531)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:342)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at org.apache.commons.modeler.ManagedBean.createMBean(ManagedBean.java:362)
  ...5 more



[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux