<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
1. com.sun.jmx classes are not exported by any module<br>
<br>
They are contained in the 'system' module, and the best practice would
be to actually import only the classes that you need, so:<br>
<br>
If you want to use jboss-deployment-structure as described in
<a class="moz-txt-link-freetext" href="https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7">https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7</a><br>
you can include something like:<br>
<br>
<dependencies><br>
<!-- other modules --><br>
<module name="system" export="false"><br>
<imports><br>
<include path name="com/sun/jmx"/><br>
<meta charset="utf-8">
<span class="code-tag"
style="color: rgb(0, 0, 145); background-color: inherit;"> <exclude
path=<span class="code-quote"
style="color: rgb(0, 145, 0); background-color: inherit;">"/**"</span>
/></span><span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Times; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="color: rgb(51, 51, 51); font-family: Helvetica,Arial,sans-serif; font-size: 13px; line-height: 17px; text-align: left;"></span></span><br>
</imports><br>
</module><br>
</dependencies><br>
<br>
which will only import the com.sun.jmx group of classes.<br>
<br>
Or you can create a module of your own and install it in AS7, e.g.
com.sun.jmx and add a dependency from your application.<br>
<br>
e.g. create $JBOSS_HOME/modules/com/sun/jmx/main/module.xml<br>
<br>
with the content of <br>
<module xmlns="urn:jboss:module:1.0" name="com.sun.jmx"><br>
<dependencies><br>
<module name="system" export="false"><br>
<exports><br>
<include-set><br>
<path name="com/sun/jmx"/><br>
</include-set><br>
</exports><br>
</module><br>
</dependencies><br>
</module><br>
<br>
<br>
2. From the application/AspectJ side, you could try using within() to
minimize the number of classes being scanned. <br>
<br>
Sebastian Otaegui wrote:
<blockquote
cite="mid:CAApMPgyFcqtVMnrmG5ZB0cmkWAMtBJnd=w_jrDFdQYVit-V-qA@mail.gmail.com"
type="cite">
<div dir="ltr">I am now getting:
<div><br>
</div>
<div>
<div>Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'mBeanServer': Post-processing of the FactoryBean's
object failed; nested exception is
org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException:
warning can't determine superclass of missing type
com.sun.jmx.mbeanserver.JmxMBeanServer</div>
<div> [Xlint:cantFindType]</div>
<div><br>
</div>
<div>But that is part of the jvm and I cannot find if it is being
exported by another module.</div>
<div><br>
</div>
<div><br>
</div>
<br>
<div class="gmail_quote">On Tue, Jul 19, 2011 at 9:25 AM, David M.
Lloyd <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:david.lloyd@redhat.com">david.lloyd@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Add
"org.jboss.modules" to your dependencies (though I thought that it<br>
was automatically added...?).<br>
<br>
You can do this by adding/modifying the "Dependencies:" line in your<br>
META-INF/MANIFEST.MF. It's a comma-separated list of module names, just<br>
add "org.jboss.modules" to it (no quotes).<br>
<div class="im"><br>
On 07/18/2011 05:46 PM, Sebastian Otaegui wrote:<br>
> I was able to move a little bit further but now it is logging:<br>
><br>
> Caused by: org.springframework.beans.factory.BeanCreationException:<br>
> Error creating bean with name<br>
> 'com.liferay.portal.kernel.util.PortalClassLoaderUtil#1be4a61a'
defined<br>
> in class path resource [META-INF/hibernate-spring.xml]:
Initialization<br>
> of bean failed; nested exception is<br>
>
org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException:<br>
> warning can't determine superclass of missing type<br>
> org.jboss.modules.ModuleClassLoader<br>
> [Xlint:cantFindType]<br>
><br>
><br>
> com.liferay.portal.kernel.util.PortalClassLoaderUtil is part of the<br>
> module I defined<br>
><br>
> this is the thread: <a moz-do-not-send="true"
href="http://community.jboss.org/thread/169198" target="_blank">http://community.jboss.org/thread/169198</a><br>
><br>
> Any ideas?<br>
><br>
><br>
><br>
> On Tue, Jul 12, 2011 at 6:40 PM, Sebastian Otaegui <<a
moz-do-not-send="true" href="mailto:feniix@gmail.com">feniix@gmail.com</a><br>
</div>
<div class="im">> <mailto:<a moz-do-not-send="true"
href="mailto:feniix@gmail.com">feniix@gmail.com</a>>> wrote:<br>
><br>
> Hello all,<br>
><br>
> In the company I work for we are running liferay (4.3.5, 5.2
and<br>
> 6.0.5) on jboss eap 4.3<br>
><br>
> I tried running a vanilla liferay on jboss 7 and failed.<br>
><br>
> I created this thread in the message board.<br>
><br>
> <a moz-do-not-send="true"
href="http://community.jboss.org/thread/169198" target="_blank">http://community.jboss.org/thread/169198</a><br>
><br>
> Do you guys think I should file a jira?<br>
><br>
> Regards<br>
> --<br>
> Those who do not understand Unix are condemned to reinvent it,
poorly.<br>
> Any sufficiently recent Microsoft OS contains an ad hoc,<br>
> informally-specified, bug-ridden, slow implementation of half
of Unix.<br>
><br>
><br>
><br>
><br>
> --<br>
> Those who do not understand Unix are condemned to reinvent it,
poorly.<br>
> Any sufficiently recent Microsoft OS contains an ad hoc,<br>
> informally-specified, bug-ridden, slow implementation of half of
Unix.<br>
><br>
><br>
><br>
</div>
> _______________________________________________<br>
> jboss-as7-dev mailing list<br>
> <a moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
> <a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
<font color="#888888"><br>
<br>
--<br>
- DML<br>
_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
</font></blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Those who do not understand Unix are condemned to reinvent it, poorly.<br>
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.<br>
</div>
</div>
<pre wrap="">
<hr class="__postbox_mime_separator" size="4" width="90%">
_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
</blockquote>
</body>
</html>