-
1. Re: Deployment is using a private module which may be changed or removed in future versions without notice
jaikiran Feb 3, 2012 1:07 AM (in response to kristjan273)There's a pull request for this in the current upstream which will improve this situation.
-
2. Re: Deployment is using a private module which may be changed or removed in future versions without notice
jaikiran Feb 3, 2012 12:20 PM (in response to kristjan273)Please try the latest AS7 nightly build https://community.jboss.org/thread/167590
-
3. Re: Deployment is using a private module which may be changed or removed in future versions without notice
rhanus Feb 6, 2012 10:56 AM (in response to jaikiran)I'm using #547 but the warnings are still here:
16:50:18,999 WARN [org.jboss.as.dependency.unsupported] (MSC service thread 1-1) JBAS018568: Deployment "deployment.project.ear.app.war" is using an unsupported module ("org.w3c.css.sac:main") which may be changed or removed in future versions without notice.
16:50:19,002 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.project.ear.app.war" is using a private module ("net.sourceforge.cssparser:main") which may be changed or removed in future versions without notice.
project.ear/app.war is a jsf2/richfaces4 application and I didn't defined those deps
-
4. Re: Deployment is using a private module which may be changed or removed in future versions without notice
kristjan273 Mar 6, 2012 3:23 AM (in response to kristjan273)Hi.
this isssue is probably minor (so far), but just FYI that tested with latest nightly (706) it is still shown:
...
13:47:12,916 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-ejb.jar" is using a private m
odule ("org.jboss.as.clustering.infinispan:main") which may be changed or removed in future versions without notice.
13:47:13,041 WARN [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-admin-4.0.0-SNAPSHOT.war"
is using a private module ("org.apache.commons.io:main") which may be changed or removed in future versions without notice.
13:47:12,971 WARN [org.jboss.as.dependency.private] (MSC service thread 1-1) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear" is using a private module ("org.apache
.commons.io:main") which may be changed or removed in future versions without notice.
13:47:13,060 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-ejb.jar" is using a private m
odule ("org.apache.log4j:main") which may be changed or removed in future versions without notice.
13:47:13,085 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-ejb.jar" is using a private m
odule ("org.jboss.netty:main") which may be changed or removed in future versions without notice.
13:47:13,097 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-ejb.jar" is using a private m
odule ("org.apache.log4j:main") which may be changed or removed in future versions without notice.
...
any clue what I am doing wrong?
Deployments deploy successfuly.
brg
-
5. Re: Deployment is using a private module which may be changed or removed in future versions without notice
ctomc Mar 6, 2012 8:13 AM (in response to kristjan273)Hi,
nothing is wrong, this is just a warning that you are importing dependancies that are app server provided "private" it is just a reminder that using this might couse some problems later when some dependacies are removed/changed in app server.
-
tomaz
-
6. Re: Deployment is using a private module which may be changed or removed in future versions without notice
jaikiran Mar 7, 2012 1:09 AM (in response to ctomc)I think we might have to look at a few of these dependencies. For example:
13:47:13,097 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.dss-all-4.0.0-SNAPSHOT.ear.dss-core-ejb.jar" is using a private module ("org.apache.log4j:main") which may be changed or removed in future versions without notice.
Last time I checked with David, we kind of agreed that log4j shouldn't be marked as a "private" module.
-
7. Re: Deployment is using a private module which may be changed or removed in future versions without notice
balind7 Mar 7, 2012 3:51 AM (in response to jaikiran)Please check also the marking of com.sun.xml.bind as private module:
11:31:33,322 WARN [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.RestDbService.war" is using a private module ("com.sun.xml.bind:main") which may be changed or removed in future versions without notice.
-
8. Re: Deployment is using a private module which may be changed or removed in future versions without notice
yse4 Aug 7, 2012 8:32 AM (in response to ctomc)Hi Tomaz,
This can't be the whole truth:
we get the same warning like Radim Hanus (sac and cssparser), but we have copied these jars in web-inf/lib folder and I've looked in every manifest.mf for a dependency entry and found nothing!
So what is using a private module? Any idea?
Peter
-
9. Re: Deployment is using a private module which may be changed or removed in future versions without notice
ctomc Aug 8, 2012 7:33 AM (in response to yse4)Peter hi,
some modules get added automatically as dependencies to support standard technologies
But as Jaikiran mentioned there ware some mistakes when marking which modules are private and which not.
What version of AS are you using?
And does it still occur on 7.2 nightly builds?
--
tomaz
-
10. Re: Deployment is using a private module which may be changed or removed in future versions without notice
yse4 Aug 8, 2012 8:26 AM (in response to ctomc)Hi Tomaz,
Our jboss-as-7.1.1.Final
Our application uses tomahawk20-1.1.11.jar, primefaces, richfaces, jsp's, css's - all of them don't contain any dependency entry.
But if they use sac+cssparser from jboss, although they have it in there own directory, then there must be something wrong with the classloader.
And our only chance to prevent the warning is removing the 'private properties' in the module.xml.
We use ant instead of maven in our company, so building a jboss from source wouldn't be easy I think and I won't do this.
Thank you
Peter
-
11. Re: Deployment is using a private module which may be changed or removed in future versions without notice
jeff.yuchang Oct 5, 2012 2:50 AM (in response to kristjan273)I am seeing that we also marked the org.jboss.resteasy module as the 'private' module, my question is: what is the best way to add these private module dependency? include the set of lib inside own module?
-
12. Re: Deployment is using a private module which may be changed or removed in future versions without notice
yse4 Oct 5, 2012 6:59 AM (in response to jeff.yuchang)Hi Jeff,
The only I know about resteasy is what I see in jboss7.1.1 in their module.xml - it is marked as 'private'. So I don't know what you mean with 'add these private module dependency' - it is already 'private'. If you mean how to get rid of the warning, here's what I did with other jars (I've never used resteasy):
When the jar that caused such a warning was used in business.jar (e.g. commons.io.jar) I copied the jar from jboss/modules to my project into ear/lib or when it was used in webapp.war (e.g. google.guava.jar) I copied it into webapp/webinf/lib and the warnings were gone away (I like clean jboss logs).
The only jars I used and where this method doesn't work are sac+cssparser, therefore my post from 8.8.2012.
The other method I mentioned there (removing the 'private properties' in the module.xml) was only an idea and not tested yet but I think it could work because some module.xml don't contain the 'private properties' entry. But if you do this you should be aware of the warning message also if you don't see it anymore whenever you switch to a newer jboss version.
Peter
-
13. Re: Deployment is using a private module which may be changed or removed in future versions without notice
jeff.yuchang Oct 5, 2012 7:34 AM (in response to yse4)Hi Peter,
Thanks for your reply. When I said 'add these private modules dependency', I meant in my application I wanted to include the resteasy libs in the war, I used to add the resteasy module dependency in my WEB-INF/jboss-deployment-structure.xml file.
Yeah, looks like I need to include the resteasy libraries inside the war file.
-Jeff
-
14. Re: Deployment is using a private module which may be changed or removed in future versions without notice
yse4 Oct 5, 2012 9:34 AM (in response to jeff.yuchang)Hi Jeff,
All my dependencies are declared in manifest.mf. So I can't help you with jboss-deployment-structure.xml.
Maybe this helps https://docs.jboss.org/author/display/AS7/Class+Loading+in+AS7#ClassLoadinginAS7-JBossDeploymentStructureFile
under the title 'JBoss Deployment Structure File'
Peter