How to add resteasy-guice apis to jboss - jboss

I am trying to use GUICE with resteasy as mentioned here
But the JBOSS does not have this resteasy-guice-2.2.1.GA.jar in lib. So I would like to know how to integrate this lib with jboss.
I am using jboss 7.0.

Related

Jboss Wildfly resteasy upgrade

I've googled to find detailed working tutorial for update Jboss Wildfly resteasy to latest version (3.0.17) but seems without solutions.
I'm testing on wildfly 10.0.0.Final release-version: "2.0.10.Final"
with resteasy core version. First question how to list (from shell or from Gui) all core modules version in use?
From official documentation i'm using jboss-jaxrs-api_2.0_spec-1.0.0.Final version but i want use for my project resteasy 3.0.17
I can accept globally upgrade and/or instruction to use resteasy 3.0.17 only in my war project "bypassing" core wildfly resteasy implementation.
I read official Jboss Resteasy upgrade but without success.
Is there some guide or complete tutorial about manage modules on jboss wildfly ?
Or someone has already had these headaches and can share suggestions ?
Have a look at this post from JBoss forum:
https://developer.jboss.org/thread/274219
Basically from Wildfly 11 it will be possible to see the module versions on console and in regards to the upgrade, it's manual work.

How can I load Java EE application dependency from WildFly modules

I am migrating my JBoss from 4.0.5 to WildFly 9.0.2 release, and my application has some dependency from JRE/lib/rt.jar, but when I deploy that application on WildFly, application gives error like ClassNotFoundException. If I add rt.jar as dependency in lib directory then application works.
So does anyone knows how to overcome from this problem.
Eg.
javax.xml.parsers.SAXParser.class which is available in rt.jar.

framework play 2.2.1 Jboss

I can't deploy a play application framework 2.2.1 in JBoss.
I must do an application that communicates with EJBs and deploy into the same application server JBOSS.
the only way I have found is to use the start command.
You have to use the play war plugin, that will allow you to package your play app as a regular java web archive.
You can find the project here: https://github.com/dlecan/play2-war-plugin

Is there any way to have a fully portable Java EE 6 deployment?

Is it possible to make a Java EE 6 application deployable on any Java EE 6 Container (like JBoss or GlassFish, etc) without using their modules / libraries?
If for example I want Hibernate or Weld then add these in my Maven pom.
In other words, is there any "vanilla" container or can JBoss or GlassFish be made "vanilla"?
I´m sorry... but to be honest I don´t understand your question.
Java EE applications are in most cases deployable an all containers - as long as they are not using packages or configurations which are specific to the chosen container.
Even if you add libraries in your POM and the applications are packaged as WAR or EAR this should work.
Weld is not needed because the API is part of Java EE 6. If you want to use JPA you also don´t need hibernate.

java.lang.LinkageError: JAXB version mismatch issue with CXF 2.3 and JBoss 4.2.3

I am developing a REST web service with Apache CXF 2.3 and deploying in JBoss 4.2.3 GA. When I try to access my web service, I am getting this following error
java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI needs 2.1 API. Use the endorsed directory mechanism to place jaxb-api.jar in the bootstrap classloader.
I was able to fix this error by adding the correct version of JAXB api jar in \lib\endorsed folder. But I am doubtful whether it will interfere in any other web application JAXB related functionality. One more web application is using some other version of JAXB. Is there any other graceful way of solving this issue. Thanks for any advice.