<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
"deployment.liferay.war:main" from Service Module Loader]<br>
<br>
and I added <include path="com/sun/crypto"/> as I did with the com.sun.jmx and didn'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><jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0"><br> <deployment><br> <exclusions><br> <module name="org.hibernate"/><br> </exclusions><br>
<dependencies><br> <module name="com.liferay" /><br> <module name="org.hsqldb" /><br> <module name="org.jboss.modules" /><br> <module name="javax.mail.api" /><br>
<module name="system" export="false"><br> <imports><br> <include path="com/sun/jmx"/><br> <include path="com/sun/crypto"/><br>
<exclude path="/**" /><br> </imports><br> </module><br> </dependencies><br> </deployment><br></jboss-deployment-structure><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"><<a href="mailto:marius.bogoevici@gmail.com">marius.bogoevici@gmail.com</a>></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 '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 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>
<dependencies><br>
<!-- other modules --><br>
<module name="system" export="false"><br>
<imports><br>
<include path name="com/sun/jmx"/><br>
<span style="color:rgb(0, 0, 145);background-color:inherit"> <exclude
path=<span style="color:rgb(0, 145, 0);background-color:inherit">"/**"</span>
/></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>
</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 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 '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 href="mailto:david.lloyd@redhat.com" target="_blank">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><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 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 href="mailto:feniix@gmail.com" target="_blank">feniix@gmail.com</a><br>
</div>
<div>> <mailto:<a href="mailto:feniix@gmail.com" target="_blank">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 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 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 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>