<div dir="ltr">I am one step further.<br><br>I created the module as instructed in the document you pointed out and the jmx part didnt complain again.<br><br>Now I am having this error: <br>15:44:26,870 INFO  [stdout] (MSC service thread 1-2) 15:44:26,868 ERROR 
[PortalInstances:354] 
com.liferay.portal.kernel.exception.SystemException: 
com.liferay.util.EncryptorException: java.lang.ClassNotFoundException: 
com.sun.crypto.provider.SunJCE from [Module 
&quot;deployment.liferay.war:main&quot; from Service Module Loader]<br>
<br>
and I added &lt;include path=&quot;com/sun/crypto&quot;/&gt; as I did with the com.sun.jmx and didn&#39;t work do I have to do something special for com.sun.crypto ?<br><br>What is happening now is not making a lot of sense.<br>

<br>&lt;jboss-deployment-structure xmlns=&quot;urn:jboss:deployment-structure:1.0&quot;&gt;<br>  &lt;deployment&gt;<br>    &lt;exclusions&gt;<br>       &lt;module name=&quot;org.hibernate&quot;/&gt;<br>    &lt;/exclusions&gt;<br>

    &lt;dependencies&gt;<br>        &lt;module name=&quot;com.liferay&quot; /&gt;<br>        &lt;module name=&quot;org.hsqldb&quot; /&gt;<br>        &lt;module name=&quot;org.jboss.modules&quot; /&gt;<br>        &lt;module name=&quot;javax.mail.api&quot; /&gt;<br>

        &lt;module name=&quot;system&quot; export=&quot;false&quot;&gt;<br>            &lt;imports&gt;<br>                &lt;include path=&quot;com/sun/jmx&quot;/&gt;<br>                &lt;include path=&quot;com/sun/crypto&quot;/&gt;<br>

                &lt;exclude path=&quot;/**&quot; /&gt;<br>            &lt;/imports&gt;<br>        &lt;/module&gt;<br>    &lt;/dependencies&gt;<br>  &lt;/deployment&gt;<br>&lt;/jboss-deployment-structure&gt;<br><br><br>Thanks in advance<br>

<br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 1:53 PM, Marius Bogoevici <span dir="ltr">&lt;<a href="mailto:marius.bogoevici@gmail.com">marius.bogoevici@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<u></u>


  

<div bgcolor="#ffffff" text="#000000">
1. com.sun.jmx classes are not exported by any module<br>
<br>
They are contained in the &#39;system&#39; 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 href="https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7" target="_blank">https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7</a><br>
you can include something like:<br>
<br>
&lt;dependencies&gt;<br>
&lt;!-- other modules --&gt;<br>
&lt;module name=&quot;system&quot; export=&quot;false&quot;&gt;<br>
            &lt;imports&gt;<br>
                &lt;include path name=&quot;com/sun/jmx&quot;/&gt;<br>
               

<span style="color:rgb(0, 0, 145);background-color:inherit"> &lt;exclude
path=<span style="color:rgb(0, 145, 0);background-color:inherit">&quot;/**&quot;</span>
/&gt;</span><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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><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>


            &lt;/imports&gt;<br>
        &lt;/module&gt;<br>
&lt;/dependencies&gt;<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>
&lt;module xmlns=&quot;urn:jboss:module:1.0&quot; name=&quot;com.sun.jmx&quot;&gt;<br>
    &lt;dependencies&gt;<br>
        &lt;module name=&quot;system&quot; export=&quot;false&quot;&gt;<br>
            &lt;exports&gt;<br>
                &lt;include-set&gt;<br>
                    &lt;path name=&quot;com/sun/jmx&quot;/&gt;<br>
                &lt;/include-set&gt;<br>
            &lt;/exports&gt;<br>
        &lt;/module&gt;<br>
    &lt;/dependencies&gt;<br>
&lt;/module&gt;<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 type="cite"><div><div></div><div class="h5">
  <div dir="ltr">I am now getting:
  <div><br>
  </div>
  <div>
  <div>Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name &#39;mBeanServer&#39;: Post-processing of the FactoryBean&#39;s
object failed; nested exception is
org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException:
warning can&#39;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">&lt;<a href="mailto:david.lloyd@redhat.com" target="_blank">david.lloyd@redhat.com</a>&gt;</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
&quot;org.jboss.modules&quot; to your dependencies (though I thought that it<br>
was automatically added...?).<br>
    <br>
You can do this by adding/modifying the &quot;Dependencies:&quot; line in your<br>
META-INF/MANIFEST.MF.  It&#39;s a comma-separated list of module names, just<br>
add &quot;org.jboss.modules&quot; to it (no quotes).<br>
    <div><br>
On 07/18/2011 05:46 PM, Sebastian Otaegui wrote:<br>
&gt; I was able to move a little bit further but now it is logging:<br>
&gt;<br>
&gt; Caused by: org.springframework.beans.factory.BeanCreationException:<br>
&gt; Error creating bean with name<br>
&gt; &#39;com.liferay.portal.kernel.util.PortalClassLoaderUtil#1be4a61a&#39;
defined<br>
&gt; in class path resource [META-INF/hibernate-spring.xml]:
Initialization<br>
&gt; of bean failed; nested exception is<br>
&gt;
org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException:<br>
&gt; warning can&#39;t determine superclass of missing type<br>
&gt; org.jboss.modules.ModuleClassLoader<br>
&gt;   [Xlint:cantFindType]<br>
&gt;<br>
&gt;<br>
&gt; com.liferay.portal.kernel.util.PortalClassLoaderUtil is part of the<br>
&gt; module I defined<br>
&gt;<br>
&gt; this is the thread: <a href="http://community.jboss.org/thread/169198" target="_blank">http://community.jboss.org/thread/169198</a><br>
&gt;<br>
&gt; Any ideas?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jul 12, 2011 at 6:40 PM, Sebastian Otaegui &lt;<a href="mailto:feniix@gmail.com" target="_blank">feniix@gmail.com</a><br>
    </div>
    <div>&gt; &lt;mailto:<a href="mailto:feniix@gmail.com" target="_blank">feniix@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hello all,<br>
&gt;<br>
&gt;     In the company I work for we are running liferay (4.3.5, 5.2
and<br>
&gt;     6.0.5) on jboss eap 4.3<br>
&gt;<br>
&gt;     I tried running a vanilla liferay on jboss 7 and failed.<br>
&gt;<br>
&gt;     I created this thread in the message board.<br>
&gt;<br>
&gt;     <a href="http://community.jboss.org/thread/169198" target="_blank">http://community.jboss.org/thread/169198</a><br>
&gt;<br>
&gt;     Do you guys think I should file a jira?<br>
&gt;<br>
&gt;     Regards<br>
&gt;     --<br>
&gt;     Those who do not understand Unix are condemned to reinvent it,
poorly.<br>
&gt;     Any sufficiently recent Microsoft OS contains an ad hoc,<br>
&gt;     informally-specified, bug-ridden, slow implementation of half
of Unix.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Those who do not understand Unix are condemned to reinvent it,
poorly.<br>
&gt; Any sufficiently recent Microsoft OS contains an ad hoc,<br>
&gt; informally-specified, bug-ridden, slow implementation of half of
Unix.<br>
&gt;<br>
&gt;<br>
&gt;<br>
    </div>
&gt; _______________________________________________<br>
&gt; jboss-as7-dev mailing list<br>
&gt; <a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
&gt; <a 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 href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a><br>
    <a 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>
  </div></div><pre><hr size="4" width="90%"><div class="im">
_______________________________________________
jboss-as7-dev mailing list
<a href="mailto:jboss-as7-dev@lists.jboss.org" target="_blank">jboss-as7-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
  </div></pre>
</blockquote>
</div>

</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>