[JBoss Tools] - JBoss tools RichFaces (aka the Visual Editor) exhausts heap?
by arjan tijms
arjan tijms [http://community.jboss.org/people/atijms] created the discussion
"JBoss tools RichFaces (aka the Visual Editor) exhausts heap?"
To view the discussion, visit: http://community.jboss.org/message/562149#562149
--------------------------------------------------------------
Hi,
On a Ubunu 10.04 system (64 bits, 2.66Ghz Quadcore, 4GB RAM), one of my co-workers has huge problems with the JBoss tools RichFaces plugin (the JSP/JSF editor) on Eclipse 3.5.2 with JDK6u18.
Simply installing it causes a huge delay when starting Eclipse. After Eclipse has finally started, everything is really slow. With no JSP/JSF/XHTML files open in any editor, and only a java editor open, refactoring a simple method to change its name takes minutes and eventually crashes with either an out of heap space error or a GC exhausted error.
As soon as the JBoss tools RichFaces plug-in is de-installed, everything is fast again.
As a test we installed a clean new Eclipse EE edition, created a new workspace, installed nothing else besides the JBoss tool RichFaces plug-in, and via commandline HG cloned a Mercurial repository, from which we imported a project in Eclipse. Everything started to slow-down again.
Incidentally, a few other computers with a very similar software installation (also Ubuntu 10.04/64bits/Eclipse 3.5.2/JDK6u18) don't seem to have this problem.
Any idea?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562149#562149]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Microcontainer] - JBoss-classloading.xml in EAR /EJB
by Prav Ford
Prav Ford [http://community.jboss.org/people/lordpraveen] created the discussion
"JBoss-classloading.xml in EAR /EJB"
To view the discussion, visit: http://community.jboss.org/message/562595#562595
--------------------------------------------------------------
Hi ,
I have an EAR which I deploy in jboss-5.1.0.
A.EAR
|----lib/x.jar
|----EJB1.jar
|----EJB2.jar
I wanted to just expose the interfaces from the EJB's, hence I have jboss-classloading.xml in both EJB1.jar and EJB2.jar.
What I was hoping to achieve is that just have the interfaces exposed in my EJB's to other EJB's in the same EAR and also to other EAR's in AS.
EJB1.jar
|-----------com.ejb1.interface.EJB1Intf / EJB1IntfLocal extends EJB1Intf / EJB1IntfRemote extends EJB1Intf
|-----------com.ejb1.implementation.EJB1Bean implements EJB1IntfLocal,EJB1IntfRemote.
|-----------META-INF/jboss-classloading.xml
<classloading xmlns="urn:jboss:classloading:1.0" domain="A.EAR-0.0.1-SNAPSHOT-exploded.ear" parent-domain="DefaultDomain"
export-all="NON_EMPTY" import-all="true" excluded="META-INF">
<capabilities>
<package name="com.ejb1.interface" />
</capabilities>
</classloading>
Similarly for EJB2.jar.
This is how my jmx-console looks like:
h2. jboss.classloader
* http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jb... domain="A.EAR-0.0.1-SNAPSHOT-exploded.ear",system=557851707
* http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jb... id="vfsfile:/jboss-5.1.0.GA/server/default/deploy/AEAR-0.0.1-SNAPSHOT-exploded.ear/"
* http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jb... id="vfszip:/jboss-5.1.0.GA/server/default/deploy/AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB1.jar/"
EJB1 calls EJB2 via JNDI.
EJB1Bean:
public boolean callTheOtheEJB() {
EJB2Intf myStateless = lookup(EJB2Intf.class, "service/EJB2IntfBean");
logger.info("Called myStateless sayHello = "+ myStateless.sayHello());
return true;
}
EJB2Bean:
public String sayHello(){
return "Hello"
}
My Client:
Properties props = new Properties();
props.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099");
try {
InitialContext jndiContext = new InitialContext(props);
Object obj = jndiContext.lookup("AEAR-0.0.1-SNAPSHOT-exploded/EJB1Bean/remote");
System.out.println(obj.getClass());
EJB1Intf callingEJBIntf = (EJB1Intf)obj;
callingEJBIntf.callTheOtheEJB();
} catch (NamingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Problem: EJB1 cant see EJB2Intf.
Caused by: java.lang.ClassNotFoundException: com.ejb2.interface.EJB2Intf from BaseClassLoader@1f9c621d{VFSClassLoaderPolicy@53ed6e21{name=vfszip:/jboss-5.1.0.GA/server/default/deploy/AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB1.jar/ domain=ClassLoaderDomain(a)b901239{name=AEAR-0.0.1-SNAPSHOT-exploded.ear parentPolicy=BEFORE parent=ClassLoaderDomain@7a0aae8a{DefaultDomain}} roots=[DelegatingHandler(a)148464531[path=AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB1.jar context=file:/jboss-5.1.0.GA/server/default/deploy/ real=file:/jboss-5.1.0.GA/server/default/deploy/AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB1.jar]] delegates=null exported=[com.ejb1.interface]NON_EMPTY}}
They are part of the same ClassLoaderDomain.
When I do listExportingClassloader() for AEAR domain,
{com.ejb1.interface=[jboss.classloader:id="vfszip:/jboss-5.1.0.GA/server/default/deploy/
AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB1-SNAPSHOT.jar/"],
com.ejb2.interface=[jboss.classloader:id="vfszip:/jboss-5.1.0.GA/server/default/deploy/
AEAR-0.0.1-SNAPSHOT-exploded.ear/EJB2-SNAPSHOT.jar/"]}
Can anyone help? I am not sure where I am going wrong.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/562595#562595]
Start a new discussion in JBoss Microcontainer at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months
[JBoss Cache] - Re: Unable to run Jboss Cache demo
by Brian Holland
Brian Holland [http://community.jboss.org/people/bholland] created the discussion
"Re: Unable to run Jboss Cache demo"
To view the discussion, visit: http://community.jboss.org/message/563141#563141
--------------------------------------------------------------
How did you fix it exactly? I'm having the same issues. There are no semicolons in the JVM_PARAM values above. I copied what is above and I am getting the following errors.
Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/jboss/
logging/Logger
at org.jboss.util.xml.JBossEntityResolver.<clinit>(JBossEntityResolver.j
ava:57)
at org.jboss.cache.config.parsing.RootElementBuilder.<clinit>(RootElemen
tBuilder.java:48)
at org.jboss.cache.config.parsing.XmlConfigurationParser.<init>(XmlConfi
gurationParser.java:93)
at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
ava:75)
at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
ava:71)
at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jboss.logging.Logger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more
Exception in thread "pool-1-thread-1" java.lang.NoClassDefFoundError: org/jboss/
logging/Logger
at org.jboss.util.xml.JBossEntityResolver.<clinit>(JBossEntityResolver.j
ava:57)
at org.jboss.cache.config.parsing.RootElementBuilder.<clinit>(RootElemen
tBuilder.java:48)
at org.jboss.cache.config.parsing.XmlConfigurationParser.<init>(XmlConfi
gurationParser.java:93)
at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
ava:75)
at org.jboss.cache.DefaultCacheFactory.createCache(DefaultCacheFactory.j
ava:71)
at org.jboss.cache.demo.JBossCacheDemo$14.run(JBossCacheDemo.java:524)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jboss.logging.Logger
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 9 more
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/563141#563141]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 5 months