Re: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
In our case it was with Tomcat. On Aug 23, 2012, at 11:21 AM, Martin Gainty wrote: > > JBoss or Tomcat? > > Martin > __ > ..place longwinded disclaimer here... > > >> From: jmoc...@velti.com >> To: user@struts.apache.org >> Subject: Re: Q: S2 REST vs JAXRS or S2-JAX-RS plugins >> Date: Thu, 23 Aug 2012 18:06:24 + >> >> �I agree, don't quite understand when you could use RESTeasy or Jersey in >> conjunction with Struts in the same web app. >> >> I had written previously that we have a Jersey + Struts2 app running nicely. >> >> --joe >> >> >> Joseph Mocker | Velti | Senior Software Architect >> t +1.650.566.7033 m +1.408.676.6625 >> e jmoc...@velti.com @Mobclix >> >> The leading global technology provider of >> mobile marketing and advertising solutions >> >> On Aug 22, 2012, at 10:53 PM, Lukasz Lenart wrote: >> >>> But I think you can always use RESTeasy and get the same value without >>> needs for custom plugin. I don't see a point to have another JAX-RS >>> implementation on the market. >>> >>> >>> Regards >>> -- >>> Łukasz >>> + 48 606 323 122 http://www.lenart.org.pl/ >>> >>> >>> 2012/8/21 Frans Thamura : yes righr now the syntax is @result and @action i think if we have more like @get etc that make it more powerfull On Aug 22, 2012 3:01 AM, "Łukasz Lenart" wrote: > > Hi, > > I'm not sure if I understand, you just want implement JAX-RS as a > Struts 2 plugin ? > > > Regards > -- > Łukasz > mobile +48 606 323 122 http://www.lenart.org.pl/ > Warszawa JUG conference - Confitura http://confitura.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >>> >>> - >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >>> For additional commands, e-mail: user-h...@struts.apache.org >>> >> >> �Т�ХF�V�7V'67&�&R�R���âW6W"�V�7V'67&�&T7G'WG2�6�R��&pФf�"FF�F����6����G2�R���âW6W"ֆV�7G'WG2�6�R��&p >
Re: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
my case. we use struts2 (spring and hibernate ), so the Action has been linked with hibernate and POJO, and work quiet good. the result is JSON.. the URL naming from .action become REST (blabla/param/1/2/3), and work well, take a look Mutiara-iman.org, and the method is using @Action and @Result, which we extend from REST plugins We (my team) think that using JAXRS is more better vs the @Action, and we want to adopt it in our Struts2, to complement the @ACtion and @Result. we know that JAXRS is not support the plugins model like Struts2, and the output is not like S2 (Chart, JSON, HTML), can can use velocity as rendering. we want the JAXRS way in our Struts2 Development and render to Velocity, and if the result =json , it work like current JAXRS API (REST Easy way) that is the idea F On 8/24/12, Joseph Mocker wrote: > In our case it was with Tomcat. > > > > On Aug 23, 2012, at 11:21 AM, Martin Gainty wrote: > >> >> JBoss or Tomcat? >> >> Martin >> __ >> ..place longwinded disclaimer here... >> >> >>> From: jmoc...@velti.com >>> To: user@struts.apache.org >>> Subject: Re: Q: S2 REST vs JAXRS or S2-JAX-RS plugins >>> Date: Thu, 23 Aug 2012 18:06:24 + >>> >>> �I agree, don't quite understand when you could use RESTeasy or Jersey in >>> conjunction with Struts in the same web app. >>> >>> I had written previously that we have a Jersey + Struts2 app running >>> nicely. >>> >>> --joe >>> >>> >>> Joseph Mocker | Velti | Senior Software Architect >>> t +1.650.566.7033 m +1.408.676.6625 >>> e jmoc...@velti.com @Mobclix >>> >>> The leading global technology provider of >>> mobile marketing and advertising solutions >>> >>> On Aug 22, 2012, at 10:53 PM, Lukasz Lenart wrote: >>> But I think you can always use RESTeasy and get the same value without needs for custom plugin. I don't see a point to have another JAX-RS implementation on the market. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2012/8/21 Frans Thamura : > yes > > righr now the syntax is @result and @action > > i think if we have more like @get etc > > that make it more powerfull > > On Aug 22, 2012 3:01 AM, "Łukasz Lenart" > wrote: >> >> Hi, >> >> I'm not sure if I understand, you just want implement JAX-RS as a >> Struts 2 plugin ? >> >> >> Regards >> -- >> Łukasz >> mobile +48 606 323 122 http://www.lenart.org.pl/ >> Warszawa JUG conference - Confitura http://confitura.pl/ >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org >>> >>> �Т�ХF� >>> V�7V'67&�&R� R�� �â W6W"�V�7V'67&�&T 7G'WG2� 6�R��&pФf�" FF�F��� � >>> 6��� �G2� R�� �â W6W"ֆV� 7G'WG2� 6�R��&p >> > > -- -- Frans Thamura (曽志胜) Shadow Master and Lead Investor Meruvian. Integrated Hypermedia Java Solution Provider. Mobile: +628557888699 Blog: http://blogs.mervpolis.com/roller/flatburger (id) FB: http://www.facebook.com/meruvian TW: http://www.twitter.com/meruvian / @meruvian Website: http://www.meruvian.org "We grow because we share the same belief." - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
I wanted to setup a JAX-RS test environment and I thought I would follow your lead Thanks Joseph! Martin Gainty __ ...place longwinded disclaimer here... > From: jmoc...@velti.com > To: user@struts.apache.org > Subject: Re: Spam: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins > Date: Fri, 24 Aug 2012 15:34:57 + > > In our case it was with Tomcat. > > > > On Aug 23, 2012, at 11:21 AM, Martin Gainty wrote: > > > > > JBoss or Tomcat? > > > > Martin > > __ > > ..place longwinded disclaimer here... > > > > > >> From: jmoc...@velti.com > >> To: user@struts.apache.org > >> Subject: Re: Q: S2 REST vs JAXRS or S2-JAX-RS plugins > >> Date: Thu, 23 Aug 2012 18:06:24 + > >> > >> �I agree, don't quite understand when you could use RESTeasy or Jersey in > >> conjunction with Struts in the same web app. > >> > >> I had written previously that we have a Jersey + Struts2 app running > >> nicely. > >> > >> --joe > >> > >> > >> Joseph Mocker | Velti | Senior Software Architect > >> t +1.650.566.7033 m +1.408.676.6625 > >> e jmoc...@velti.com @Mobclix > >> > >> The leading global technology provider of > >> mobile marketing and advertising solutions > >> > >> On Aug 22, 2012, at 10:53 PM, Lukasz Lenart wrote: > >> > >>> But I think you can always use RESTeasy and get the same value without > >>> needs for custom plugin. I don't see a point to have another JAX-RS > >>> implementation on the market. > >>> > >>> > >>> Regards > >>> -- > >>> Łukasz > >>> + 48 606 323 122 http://www.lenart.org.pl/ > >>> > >>> > >>> 2012/8/21 Frans Thamura : > yes > > righr now the syntax is @result and @action > > i think if we have more like @get etc > > that make it more powerfull > > On Aug 22, 2012 3:01 AM, "Łukasz Lenart" wrote: > > > > Hi, > > > > I'm not sure if I understand, you just want implement JAX-RS as a > > Struts 2 plugin ? > > > > > > Regards > > -- > > Łukasz > > mobile +48 606 323 122 http://www.lenart.org.pl/ > > Warszawa JUG conference - Confitura http://confitura.pl/ > > > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > >>> > >>> - > >>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >>> For additional commands, e-mail: user-h...@struts.apache.org > >>> > >> > >> �Т�ХF�V�7V'67&�&R�R���âW6W"�V�7V'67&�&T7G'WG2�6�R��&pФf�"FF�F����6����G2�R���âW6W"ֆV�7G'WG2�6�R��&p > > > > B�CB��[��X��ܚX�KK[XZ[�\�\�][��X��ܚX�P��]˘\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[�\�\�Z[��]˘\X�K�ܙ�B
[S1] Configuring validation in separate config files
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, We've been using Struts 1 (currently 1.3.10) happily for years, mostly with a monolithic configuration file (struts-config.xml). Lately, we've been splitting-out some of the and global-forward configuration into separate files. As a logical next step, I changed this portion of our global configuration file: into these two separate configuration lines in different struts-[foo].xml files: struts-config.xml: struts-Z.xml: Both struts-config.xml and struts-Z.xml are mentioned in web.xml like this: config /WEB-INF/struts-config.xml, /WEB-INF/struts-Z.xml (There are actually 7 different configuration files, but that is really besides the point.) While loading in separate files seems to work, it appears that the use of the validator as a plug-in ends up clobbering part of my configuration: only the validation rules loaded from validate_Z.xml seem to have any effect. During startup, I can see INFO messages indicating that the validation rules are being parsed from all the files I expect: 2012-08-24 15:21:06,540 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml' 2012-08-24 15:21:06,540 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/our-validator-rules.xml' 2012-08-24 15:21:06,540 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/validate_W.xml' 2012-08-24 15:21:06,540 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/validate_X.xml' 2012-08-24 15:21:06,540 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/validate_Y.xml' 2012-08-24 15:21:06,701 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/org/apache/struts/validator/validator-rules.xml' 2012-08-24 15:21:06,701 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/our-validator-rules.xml' 2012-08-24 15:21:06,701 [localhost-startStop-1] INFO org.apache.struts.validator.ValidatorPlugIn- Loading validation rules file from '/WEB-INF/validate_Z.xml' I can see that the validation base rules (from Struts) plus our own base validation rules are being loaded twice, but I figured that was just a bit of wasted time. Can anyone confirm that mentioning the validation plug-in in two separate configuration files will result in only one of the configuration files actually taking effect? If so, is there a way around this, or am I required to use a single configuration file for all my validation-specific configuration? Thanks, - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlA319UACgkQ9CaO5/Lv0PBGlgCff+xG19Rb6IvERdf3XTC9FAgr ZocAoI6yt3VpW6YA8O18kGZv4ErBswlB =9baw -END PGP SIGNATURE- - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[Struts 2] How can I receive notification when the web app has been destroyed?
So that I can cleanup resources. How can I receive a notification in a Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? Thank you, John Boyer - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [Struts 2] How can I receive notification when the web app has been destroyed?
Use a servlet listener. On Aug 24, 2012 2:54 PM, "John Boyer" wrote: > So that I can cleanup resources. How can I receive a notification in a > Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? > > Thank you, > John Boyer > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: [Struts 2] How can I receive notification when the web app has been destroyed?
As another said.. in web.xml you configure a servlet context listener, in your code you provide a class that implements the ServletContextListener and you can use it to know when the app is deployed and undeployed. On Fri, Aug 24, 2012 at 12:54 PM, John Boyer wrote: > So that I can cleanup resources. How can I receive a notification in a > Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? > > Thank you, > John Boyer > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
I guess Im not understanding where the default response of json is specified from the resteasy-jaxrs if you specify @Produces("text/html") your function will output HTML as far as Produces.java public @interface Produces { /** * A list of media types. Each entry may specify a single type or consist * of a comma separated list of types. E.g. {"image/jpeg,image/gif", * "image/png"}. Use of the comma-separated form allows definition of a * common string constant for use on multiple targets. */ String[] value() default "*/*"; } your testcases will use any one of the enumerated MediaType specifically ProxyBuilder.build serverMediaType can be TEXT_HTML String url = TestPortProvider.generateURL("/"); //anyone landing on Root gets our attention Foo foo = ProxyBuilder.build(Foo.class, url).serverMediaType(MediaType.TEXT_HTML).now(); MediaTypes can be public final static String WILDCARD = "*/*"; public final static String APPLICATION_XML = "application/xml"; public final static String APPLICATION_ATOM_XML = "application/atom+xml"; public final static String APPLICATION_XHTML_XML = "application/xhtml+xml"; public final static String APPLICATION_SVG_XML = "application/svg+xml"; public final static String APPLICATION_JSON = "application/json";//one of many but NOT the default public final static String APPLICATION_FORM_URLENCODED = "application-x-www-form-urlencoded"; public final static String MULTIPART_FORM_DATA = "multipart/form-data"; public final static String APPLICATION_OCTET_STREAM = "application/octet-stream"; public final static String TEXT_PLAIN = "text/plain"; public final static String TEXT_XML = "text/xml"; public final static String TEXT_HTML = "text/html"; Im not understanding your statement that resteasy-jaxrs will output only application/json..could you elaborate where the output default is set? Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. . > Date: Fri, 24 Aug 2012 09:46:22 +0700 > Subject: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins > From: fr...@meruvian.org > To: user@struts.apache.org > > we use resteasy also here > > but we still develop with html output > > result to html from action with rest url naming > > resteasy is different approach, output only json. > > we use the same Service for both. > > and want a smiliar url for rest > On Aug 24, 2012 9:22 AM, "Martin Gainty" wrote: > > > > > Frans > > > > grab what you need from > > https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs > > cd jaxrs-api > > mvn -e -X compile > > mvn -e -X package > > mvn -e -X install:install-file > > mvn -e -X deploy:deploy-file > > > > add the dependency to your dependencies list > > > > > > org.jboss.resteasy > > jaxrs-api > > 2.3.4.Final > > > > > > > > then annotate your code.. resteasy-jaxrs provides you these annotations > > @Path("/")//javax.ws.rs.Path > > @GET //javax.ws.rs.GET > > @Produces("application/json")//javax.ws.rs.Produces > > > > anything missing? > > Martin > > __ > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > > > Diese Nachricht ist vertraulich. Sie nicht der vorgesehene Empfaenger > > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > > destinataire prévu, nous te demandons avec bonté que pour satisfaire > > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > > de ceci est interdite. Ce message sert à l'information seulement et n'aura > > pas n'impo
RE: [Struts 2] How can I receive notification when the web app has been destroyed?
JMX ClientNotificationListener implementor has a method public static class ClientListener implements NotificationListener { will notify you of *any* notifications that might be sent by the MBeans that are registered in the JMX agent's MBean server http://docs.oracle.com/javase/tutorial/jmx/remote/custom.html HTH Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 24 Aug 2012 12:59:23 -0700 > Subject: Re: [Struts 2] How can I receive notification when the web app has > been destroyed? > From: kev...@bluechipexec.com > To: user@struts.apache.org > > As another said.. in web.xml you configure a servlet context listener, in > your code you provide a class that implements the ServletContextListener > and you can use it to know when the app is deployed and undeployed. > > > On Fri, Aug 24, 2012 at 12:54 PM, John Boyer wrote: > > > So that I can cleanup resources. How can I receive a notification in a > > Struts 2 web app when the app has been unloaded, stopped, un-deployed, etc.? > > > > Thank you, > > John Boyer > > - > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > >
RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins
if jaxrs produce html. can it render in velocity? so the pojo mapped there like struts2 did Frans Thamura Meruvian On Aug 25, 2012 4:00 AM, "Martin Gainty" wrote: > > I guess Im not understanding where the default response of json is > specified from the resteasy-jaxrs if you specify > @Produces("text/html") > your function will output HTML > > as far as Produces.java > public @interface Produces > { >/** > * A list of media types. Each entry may specify a single type or > consist > * of a comma separated list of types. E.g. {"image/jpeg,image/gif", > * "image/png"}. Use of the comma-separated form allows definition of a > * common string constant for use on multiple targets. > */ >String[] value() default "*/*"; > } > > your testcases will use any one of the enumerated MediaType specifically > ProxyBuilder.build serverMediaType can be TEXT_HTML > > String url = TestPortProvider.generateURL("/"); //anyone landing > on Root gets our attention > Foo foo = ProxyBuilder.build(Foo.class, > url).serverMediaType(MediaType.TEXT_HTML).now(); > > MediaTypes can be > > public final static String WILDCARD = "*/*"; >public final static String APPLICATION_XML = "application/xml"; >public final static String APPLICATION_ATOM_XML = > "application/atom+xml"; >public final static String APPLICATION_XHTML_XML = > "application/xhtml+xml"; >public final static String APPLICATION_SVG_XML = "application/svg+xml"; >public final static String APPLICATION_JSON = "application/json"; > //one of many but NOT the default >public final static String APPLICATION_FORM_URLENCODED = > "application-x-www-form-urlencoded"; >public final static String MULTIPART_FORM_DATA = "multipart/form-data"; >public final static String APPLICATION_OCTET_STREAM = > "application/octet-stream"; >public final static String TEXT_PLAIN = "text/plain"; >public final static String TEXT_XML = "text/xml"; >public final static String TEXT_HTML = "text/html"; > > Im not understanding your statement that resteasy-jaxrs will output only > application/json..could you elaborate where the output default is set? > Martin > __ > Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le > destinataire prévu, nous te demandons avec bonté que pour satisfaire > informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie > de ceci est interdite. Ce message sert à l'information seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > . > > Date: Fri, 24 Aug 2012 09:46:22 +0700 > > Subject: RE: Q: S2 REST vs JAXRS or S2-JAX-RS plugins > > From: fr...@meruvian.org > > To: user@struts.apache.org > > > > we use resteasy also here > > > > but we still develop with html output > > > > result to html from action with rest url naming > > > > resteasy is different approach, output only json. > > > > we use the same Service for both. > > > > and want a smiliar url for rest > > On Aug 24, 2012 9:22 AM, "Martin Gainty" wrote: > > > > > > > > Frans > > > > > > grab what you need from > > > https://resteasy.svn.sourceforge.net/svnroot/resteasy/trunk/jaxrs > > > cd jaxrs-api > > > mvn -e -X compile > > > mvn -e -X package > > > mvn -e -X install:install-file > > > mvn -e -X deploy:deploy-file > > > > > > add the dependency to your dependencies list > > > > > > > > > org.jboss.resteasy > > > jaxrs-api > > > 2.3.4.Final > > > > > > > > > > > > then annotate your code.. resteasy-jaxrs provides you these annotations > > > @Path("/")//javax.ws.rs.Path > > > @GET //javax.ws.rs.GET > > > @Produces("application/json")//javax.ws.rs.Produces > > > > > > anything missing? > > > Martin > > > __ > > > Verzicht und Vertraulichkeitanmerkung/Note de déni et de > confidentialité > > > > > > Diese Nachricht ist vertraulich. Sie nicht der vorgesehene Empfaenger > > > sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese > Nachricht > > > dient lediglich dem Austausch von Informationen und entfaltet keine > > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > > E-Mails koen