-
-
2. Isolate application from JBoss libs
maurenginaldo Mar 29, 2011 9:37 AM (in response to peterj)Hi Peter, I read the posts and tried in many ways, unsuccessfully.
One question: My application run in Tomcat. If I get the libraries in lib folder of my application deployer in Tomcat and put the lib folder of my application in JBoss and isolate my application from JBoss libs would have to run?
I want the libs (hibernate, weld ...) from my application is used and not those of JBoss. I do not want to override the libs from JBoss, I want to ignore them.Thanks.
-
3. Isolate application from JBoss libs
alesj Mar 29, 2011 9:49 AM (in response to maurenginaldo)I want the libs (hibernate, weld ...) from my application is used and not those of JBoss. I do not want to override the libs from JBoss, I want to ignore them.
That's not trivial to do, as the AS container is expected to do most of the things for you,
hence it needs those libs together with your deployment.
* http://community.jboss.org/message/578829#578829
As you can read, you can still do this, but then you have to
* create new CL domain + filter its before lookup
* make sure AS ignores all possible triggers (e.g. JEE spec files; persistence.xml, ...)
The problem with this is that all libs should be 100% modular,
which of course they are not.
Then also the AS itself should be 100% modular, which pre-AS7 is also not,
and properly using SPI/API vs. impl abstraction, which is again hard to achieve.
But otoh, the beauty of AS is that all these components together just work.
So, I don't really see why isolating them.
e.g. I always rather updated AS libs then isolated them, and fixed/patched any issues
-
4. Isolate application from JBoss libs
maurenginaldo Mar 29, 2011 10:19 AM (in response to alesj)Would it be more appropriate I use the jbossweb-standalone profile?
-
5. Isolate application from JBoss libs
alesj Mar 29, 2011 10:29 AM (in response to maurenginaldo)Would it be more appropriate I use the jbossweb-standalone profile?
Doesn't hurt to try. :-)
Of course there is some overlapping code, but might just work for you.
-
6. Isolate application from JBoss libs
jaikiran Mar 29, 2011 11:48 AM (in response to maurenginaldo)Mauren Ginaldo Souza wrote:
Would it be more appropriate I use the jbossweb-standalone profile?
Do note that the jbossweb-standalone profile is primararily for JSP + Servlet applications and nothing more.
-
7. Isolate application from JBoss libs
peterj Mar 29, 2011 1:32 PM (in response to maurenginaldo)I read the posts and tried in many ways, unsuccessfully.
Using a loader repository to cause "the libs (hibernate, weld ...) from my application is used and not those of JBoss" should work for you. Unfortunately, saying it did not work without telling us exactly what you did doesn't help because then all we can say is that you did it wrong. So if you would like specific help, please post the configuration changes you made and describe what you experienced after those changes, nd how that differs from what you expected. Also, it would help to limit the discussion to one issue at a time.
-
8. Isolate application from JBoss libs
maurenginaldo Mar 29, 2011 1:43 PM (in response to peterj)My doubts are about the jboss-web.xml.
He should be in the folder META-INF or WEB-INF?
I checked the file in jboss docs/schema/jboss-web_6_0_xsd, it has the configuration:<class-loading java2ClassLoadingCompliance='false'>
<loader-repository loaderRepositoryClass='dot.com.LoaderRepository'>
</loader-repository>
</class-loading>
What is "dot.com.LoaderRepository"? Was the package of my application? Where I inform you that the libs to WEB-INF/lib prevail?
Where and how would my jboss-web.xml?Thank you all.
-
9. Isolate application from JBoss libs
spolti Mar 29, 2011 4:06 PM (in response to maurenginaldo)Just import the all libs from jboss to you app.
this is all.