[Design of JMX on JBoss (JBoss/JMX)] - Re: JBAS-5220 - Twiddle not displaying Platform MBean.
by vickyk
[vicky@localhost bin]$ ./twiddle.sh query 'jboss.jca:*'
| 13:56:16,758 ERROR [Twiddle] Exec failed
| org.jboss.util.NestedRuntimeException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory; - nested throwable: (javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory])
| at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:143)
| at org.jboss.console.twiddle.command.MBeanServerCommand.getMBeanServer(MBeanServerCommand.java:59)
| at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(MBeanServerCommand.java:66)
| at org.jboss.console.twiddle.command.QueryCommand.execute(QueryCommand.java:138)
| at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:305)
| Caused by: javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.init(InitialContext.java:223)
| at javax.naming.InitialContext.<init>(InitialContext.java:175)
| at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:235)
| at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:268)
| at org.jboss.console.twiddle.Twiddle.access$300(Twiddle.java:62)
| at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:139)
| ... 4 more
| Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:242)
| at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
| ... 11 more
|
Twiddle seems to be broken on the truck , I just build the truck and am getting this exception .
Can some one verify this ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132744#4132744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132744
16 years, 11 months
[Design of JBossCache] - High resource utilization on loading CMS portlet with HTML p
by suganthivelayutham
we are facing "High resource utilization on loading CMS portlet with HTML page in custom portal" for our application.
In our portal, on accessing only a single page which has one CMS portlet is dropping the system entirely.
Its found some dead lock of threads and cache memory which keeps on increasing in size thus soley utilizing full memory which is quite GB in size and 99% of CPU.
Can anyone help with how JBOSS handles CMS loading at background and if any settings needs to be changed in JBOSS for custom Portals CMS.
The only change done for CMSPortlet class is
"path" is the file location of html page for the CMS instance got from preference
| //TODO: To support multi lingual support we should take the locale issue fix from jboss.
| // Commented the below code to handle the issue "Any content change from CMS Admin Portlet does
| // not reflect in the custom portal cms portlet with out performating a server restart.
|
| /*
| Command fileExistsCMD = CMSService.getCommandFactory().createItemExistsCommand(path + "/" + req.getLocale().getLanguage());
| Boolean bExists = (Boolean) CMSService.execute(fileExistsCMD);
|
| if(bExists.booleanValue())
| fileGetCMD = CMSService.getCommandFactory().createFileGetCommand(path, req.getLocale().getLanguage());
| else
| fileGetCMD = CMSService.getCommandFactory().createFileGetCommand(path, new Locale(CMSService.getDefaultLocale()));
| */
| fileGetCMD = CMSService.getCommandFactory().createFileGetCommand(path, new Locale(CMSService.getDefaultLocale()));
| file = (File) CMSService.execute(fileGetCMD);
Thanks in advance for guidance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132730#4132730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132730
16 years, 11 months