-
1. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 23, 2012 4:12 PM (in response to tanmoypalit)1) you can install the RESTEasy in server
2) You can copy the jars in "server/default/lib"
-
2. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
tanmoypalit Jul 23, 2012 4:37 PM (in response to rareddy)I copied the jars in server/default/lib. Now I don't have to copy the jars in the WEB-INF/lib directory anymore for REST Web Services.
But I am still getting the following error when I am trying to deploy the WAR created from Teiid VDB:
Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.teiid.rest.services.TeiidRestApplication
Tanmoy
-
3. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 23, 2012 4:48 PM (in response to tanmoypalit)That is not RESTEasy jar, that file is in your own WAR file. Are you using JDK to run your server or you are using a JRE.
-
4. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
tanmoypalit Jul 23, 2012 4:50 PM (in response to rareddy)I am using jre7.
-
5. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 23, 2012 4:52 PM (in response to tanmoypalit)I do not JBoss AS 5.1 works with Java 7. Try using the Java 6 and JDK version not JRE.
-
6. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
tanmoypalit Jul 24, 2012 11:29 AM (in response to rareddy)Hi Ramesh,
I installed JDK 6 tried all the steps again but still it did not work. I am still getting the same error. Although I found an work around. I created my own REST service and used JDBC Teiid connection to my Teiid VDB which is working fine and probably a better solution for me. This way I have more control on the REST service.
Now I do believe what you are saying is also correct but how can I configure my JBoss Runtime with JDK? It always ask me to provide JRE. Please see the screenshot.
All my compiler and runtime environments are set to JDK 1.6. What else I need to do? I am using Jboss developer studio 5.0.0.beta3
-Tanmoy
-
7. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 24, 2012 3:46 PM (in response to tanmoypalit)Do you see "org.teiid.rest.services.TeiidRestApplication" file in your WAR file at all?
-
8. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
tanmoypalit Jul 24, 2012 5:16 PM (in response to rareddy)I need some help here. I am relatively new to Java. Teiid Designer creates a WAR file. I do see references of WEB-INF/classes/org/teiid/rest/services/TeiidRestApplication.java in that file.
Is there anyway to see actual class file in that WAR?
-Tanmoy
-
9. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 24, 2012 5:19 PM (in response to tanmoypalit)Good. Is there a TeiidRestApplication.class file in the same folder?
-
10. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
tanmoypalit Jul 25, 2012 3:44 PM (in response to rareddy)There is no TeiidRestApplication.class created in the folder. When I MB3 on the VDB and select Generated RESTEasy War, it creates only one .war file and nothing else. I was expecting a .war folder with WEB-INF and META-INF folder inside it.
Thoughts??
- Tanmoy
-
11. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 25, 2012 4:10 PM (in response to tanmoypalit)Tanmoy,
When you are trying to create the JBoss-CXF WAR file from the VDB you created, did you see this?
Ramesh..
-
12. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
rareddy Jul 26, 2012 10:37 AM (in response to tanmoypalit)Tanmoy,
I do not know if you can see the picture I posted above, it is not showing me and not letting me correct it. You need to go "Designer -> Window ->Preferences" and navigate to "Installed JRE" and make sure you have valid JDK defined as the Java development environment. The above comment you showed a picture of is how Server is starting, not how the Eclipse based Designer is using.
Ramesh..
-
13. Re: How to refer the RESTEasy libs in the Teiid VDB war deployment?
lvsmix Apr 18, 2015 1:20 PM (in response to rareddy)Hi Ramesh:
I have the same problem. I installed JDK 1.6.0.45,Eclipse Luna and JDV 6.1 and I cant generate Rest War and SOAP War correctly. Could you tell me what version of JDK, eclipse and JDV are you using?
Thanks you very much for your response.
Luis.