On 12/1/2017 7:13 PM, Adam Brin wrote:
> Apologies if I missed something earlier, but can you do a dependency search
> in your project and see if you already have a version of net.sf.json.lib
> included elsewhere? perhaps an older (or newer) version is conflicting?
>
Also see your published a
Apologies if I missed something earlier, but can you do a dependency search in
your project and see if you already have a version of net.sf.json.lib included
elsewhere? perhaps an older (or newer) version is conflicting?
--
_
Adam Brin
Dire
Yes, i tried
jdk15
as well
jdk13
On 2017-12-01 18:17, Yasser Zamani wrote:
>
>
> On 12/1/2017 3:50 PM, PATIL Preetam wrote:
> >
> > net.sf.json-lib
> > json-lib
> > 2.4
> >
>
> C
Also tried by upgrading rest-plug in version.
org.apache.struts
struts2-rest-plugin
2.5
It gives new type of error
ERROR InterceptorBuilder - Actual exception
Could not load class
org.apache.struts
> struts2-core
> 2.3.24.1
>
>
>
>
> org.apache.struts
> strut
I am trying add struts2-rest-plugin to existing application. But getting below
errors. I am tried all possible option but no use!
Caused by: Unable to load bean:
type:org.apache.struts2.rest.handler.ContentTypeHandler
class:org.apache.struts2.rest.handler.JsonLibHandler - bean -
jar:file:/C
org.apache.struts
struts2-rest-plugin
2.3.24.1
org.apache.struts
struts2-convention-plugin
On 12/1/2017 3:50 PM, PATIL Preetam wrote:
>
> net.sf.json-lib
> json-lib
> 2.4
>
Could you try
jdk15
i.e.
net.sf.json-lib
json-lib
2.4
jdk1
struts2-core
2.3.24.1
org.apache.struts
struts2-rest-plugin
2.3.24.1
org.apache.struts
2017-12-01 12:26 GMT+01:00 PATIL Preetam :
> Hello,
>
> I am trying add struts2-rest-plugin to existing application. tried all
> possible option but no use.!
> I am new to maven related stuff,
>
> Getting below errors.
>
> Caused by: Unable to load bean:
Hello,
I am trying add struts2-rest-plugin to existing application. tried all possible
option but no use.!
I am new to maven related stuff,
Getting below errors.
Caused by: Unable to load bean:
type:org.apache.struts2.rest.handler.ContentTypeHandler
class:org.apache.struts2
-use-wildcard-method-invocation-in-struts2-with-conventions-plu
Since you may need to resolve the child entity before fetching the child,
it might be convenient to have them in the same class... save you from
chaining.
Create/Update/Delete using the struts2-rest-plugin are pretty straight
forward but
Hi experts,
I'm learning to use the struts2-rest-plugin. In the sample project
'rest-showcase', I see a good example where I can GET /orders and /orders/1.
But how to implement navigation from one resource to another? E.g., Let's say
an Order has many Items. Then how to
Hey Ken,
Can you be more specific about PUT method isn't working like it should?
(some code, links to SO questions)
>Struts2 has ActionSupport, it would be nice if similar interfaces
already existed for the rest-result type
Actually there is RestActionSupport -
https://github.com/apache/st
ented org.apache.struts2.rest.handler.ContentTypeHandler to use
FlexJson.
So a couple observations as a first time user of the struts2-rest-plugin:
- I like the Idea of this extension of conventions, adding constraints can
make you think along certain tried and true methods and make work faster.
- It would be
> From: lukaszlen...@apache.org
> Date: Mon, 30 May 2016 08:18:28 +0200
> Subject: Re: struts2-rest-plugin issues getting non-restful urls to cooperate
> To: user@struts.apache.org
>
> 2016-05-27 17:41 GMT+02:00 Ken McWilliams :
> > I got it working but I think the doc
2016-05-27 17:41 GMT+02:00 Ken McWilliams :
> I got it working but I think the documentation could be made with more
> "hand holding". I'll post a "How to set up struts2 with conventions and
> both restful and non-restful urls". Then self-answer the question this
> weekend with all the configurati
I got it working but I think the documentation could be made with more
"hand holding". I'll post a "How to set up struts2 with conventions and
both restful and non-restful urls". Then self-answer the question this
weekend with all the configuration and project set-up steps and then post
the link h
Working fine in my project. Can you show your project configuration?
---
Regards,
Aleksandr
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
I'm following these instructions to get restful and non-restful urls to
cooperate:
http://struts.apache.org/docs/rest-plugin.html#RESTPlugin-RESTandnon-RESTfulURL%27sTogetherConfiguration
Having followed the instructions on that page I've been able to set up a
project _only_ containing restful ur
}
else return -1;
}
});
Thoughts?
Martin
---------
The key to prevent a hacked email account is to change password more than every
5 years..
> From: mgai...@hotmail.
> Date: Sat, 24 Jan 2015 15:24:49 +0530
> Subject: Re: Using Struts2 Rest Plugin with deep cascading actions
> From: ghotankaru...@gmail.com
> To: user@struts.apache.org
>
> Well after doing some research on designing rest api ***best practices*** I
> realized I was
o use
http://localhost/location instead of http://localhost/company/location
Please suggest.
On Fri, Jan 23, 2015 at 4:20 PM, Amol Ghotankar
wrote:
> hi,
>
> I was trying out struts2 rest plugin and found it really cool.
>
> But was just wondering how will this work with action cascadin
hi,
I was trying out struts2 rest plugin and found it really cool.
But was just wondering how will this work with action cascading ? i.e
So When using http://localhost/company it goes to companyAction and
executes respective mapped methods
But how do we organize work when we
http://localhost
2012/11/30 Davis, Chad :
>
>> I think, the basic idea was to allow cooperate the REST plugin with the
>> Convention plugin and code behind is a deprecated plugin that will be
>> discarded soon (with 3.x)
>
> 1) So, it doesn't "depend" on it, in any technical sense?
Yes
> 2) But it's made to work
> I think, the basic idea was to allow cooperate the REST plugin with the
> Convention plugin and code behind is a deprecated plugin that will be
> discarded soon (with 3.x)
1) So, it doesn't "depend" on it, in any technical sense?
2) But it's made to work with the convention plugin, if that plu
2012/11/28 Davis, Chad :
> The docs for the REST plugin talk about how it builds on the Convention
> plugin ( sometimes it says "code behind" ). However, I don't see that using
> the REST plugin pulls in either of these plugins . . . in what sense does it
> "build" on them?
I think, the basic
Just a guess but I want conventions like configuration extended though to
tiles results, a lot of the work is done in ConventionUnknownHandler, it
looks a bit tricky to keep that functionality without just copying it and
adding changes within that code. I'm guessing that is what they did.
On Wed,
Hi!
The docs for the REST plugin talk about how it builds on the Convention plugin
( sometimes it says "code behind" ). However, I don't see that using the REST
plugin pulls in either of these plugins . . . in what sense does it "build" on
them?
Thanks,
Chad
Hi Chris,
It's just:
Method public java.lang.String
org.apache.commons.lang.exception.NestableRuntimeException.getMessage(int)
threw an exception when invoked on net.sf.json.JSONException: Error while
setting property=arrayListStr type interface java.util.List
The program crapped out in JsonLibH
I was more looking for the output of all the System.out.println's
(*Chris*)
On Oct 11, 2012 12:40 PM, "Shaun Lim" wrote:
> By the way, mapping to a simple String[] works, but I'm finding it hard to
> believe that the plugin does not know how to handle conversions to List..
>
> On Thu, Oct 11, 2
2012/10/11 Shaun Lim :
> By the way, mapping to a simple String[] works, but I'm finding it hard to
> believe that the plugin does not know how to handle conversions to List..
Could you prepare a full Maven base example ?
Thanks in advance
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
-
By the way, mapping to a simple String[] works, but I'm finding it hard to
believe that the plugin does not know how to handle conversions to List..
On Thu, Oct 11, 2012 at 11:54 AM, Shaun Lim wrote:
> Method public java.lang.String
> org.apache.commons.lang.exception.NestableRuntimeException.ge
Method public java.lang.String
org.apache.commons.lang.exception.NestableRuntimeException.getMessage(int)
threw an exception when invoked on net.sf.json.JSONException: Error while
setting property=arrayListStr type interface java.util.List
On Thu, Oct 11, 2012 at 11:19 AM, Chris Pratt wrote:
> W
What's the output of the run with this class & JSON?
(*Chris*)
On Thu, Oct 11, 2012 at 10:52 AM, Shaun Lim wrote:
> Hi Chris,
>
> I did start off with a List implementation but started changing
> stuff around in futile attempts to get something working. Anyway I tried
> your suggestion, and am
Hi Chris,
I did start off with a List implementation but started changing
stuff around in futile attempts to get something working. Anyway I tried
your suggestion, and am still getting the same error:
//I've a whole bunch of different fields here cause i was testing various
things, but "arrayList
You *might* need to initialize the countries array. I wouldn't be
surprised if internally the JSON library is doing a
getCountries().add("CA") and throwing a null pointer exception because
getCountries is returning a null.
Also, you should really be programming to interfaces, not implementations.
My entity class:
import java.util.ArrayList;
public class Test {
private String name;
private String description;
private ArrayList countries;
public Test() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.na
2011/7/4 Aelbery Lee :
> Yes. I had set "struts.rest.namespace" in the struts.xml to "/ws".
It must work, could you show your action's source code ? Do you map
like these below:
/ws/model -> ModelAction.index()
/ws/mode/1 -> ModelAction.show()
Regards
--
Łukasz
+ 48 606 323 122 http://www.lena
Yes. I had set "struts.rest.namespace" in the struts.xml to "/ws".
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4548572.html
Sent from the Struts - User mailing list a
gt; If I removed the PrefixBasedActionMapper and prefixMapping two lines,
> /myapp/mymodule works fine with restful action.
>
> But now /myapp/mymodule raise exception "method not found", execute();
> And /myapp/ws/mymodule raise exception "action not found", ws action.
&
und", ws action.
So I must make a mistake. Thanks for you help.
--
View this message in context:
http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4544292.html
Sent from the Struts - User mailing l
Hi folks,
I've just resolved my issue. My goal is to add struts-restful-plugin to an
struts2 existent app. So i needed to have an url handler
If I request http://localhost:8080/myApp/login.action, it must be resolved
by DefaultActionMapper
If I request http://localhost:8080/myApp/service/client/3
Hi folks,
I've just resolved my issue. My goal is to add struts-restful-plugin to an
struts2 existent app. So i needed to have an url handler
If I request http://localhost:8080/myApp/login.action, it must be resolved
by DefaultActionMapper
If I request http://localhost:8080/myApp/service/client/3
On 8/31/10 5:17 PM, Rafael Taboada wrote:
But I'm having the same problem "HTTP status 404"
So it is failing to find any valid action mapping? What do your logs show?
This might help you figure out what's going on:
http://struts.apache.org/2.x/docs/config-browser-plugin.html
My struts.xml lo
Hi,
I was debugging PrefixBasedActionMapper and a I noticed that:
- It gets the right actionmappers
"/service" ->
org.apache.struts2.dispatcher.mapper.restful2actionmap...@34e6529c
"" -> org.apache.struts2.dispatcher.mapper.defaultactionmap...@50e8709d
- When I can access the uri /example/HelloW
Great,
But I'm having the same problem "HTTP status 404"
I've downloaded struts-blank2.2.1 and added jars about restful plugin
(struts2-rest-showcase-2.2.1)
My struts.xml looks like :
HelloWorld
On 8/31/10 4:40 PM, Rafael Taboada wrote:
I have in my struts.xml
It means, every url that contains 'service' must be mapped with
Restful2ActionMapper, everything else use default mapping.
Is that correct? What am i missing or doing wrong?
Almost. It means that every request that starts w
Hi,
I've been looking at PrefixBasedActionMapper. What is the way to configure
it?
I have in my struts.xml
It means, every url that contains 'service' must be mapped with
Restful2ActionMapper, everything else use default mapping.
Is that correct? What am i missing or doing wrong?
On Tue, Au
On 8/31/10 3:15 PM, Rafael Taboada wrote:
I migrated my app to 2.1 because I need to use restful plugin, didn't
think in 2.2 because it was released just a month ago (i think) and i
don't know if it is a good option in production environment.
Theoretically any GA (General Availability) release
Thanks so much for your answer.
I migrated my app to 2.1 because I need to use restful plugin, didn't think
in 2.2 because it was released just a month ago (i think) and i don't know
if it is a good option in production environment.
I'll consider your advice. Thanks
On Tue, Aug 31, 2010 at 1:21
On 8/31/10 2:05 PM, Rafael Taboada wrote:
Is there a chance to my traditional actions can co-exist with restful
controllers?...
If you're looking to have different parts of your url space get
processed by different action mappers, the PrefixBasedActionMapper
included in 2.2 might be what you'
On 8/31/10 1:04 PM, Rafael Taboada wrote:
I have an struts2.0.14 app working well and I decided to migrate to
struts2.1.8. Migration worked well.
But when I tried to include rest plugin, my current urls to process some
actions don't work. I have a http 404 error as a result. My goal is using
res
I've just noticed, that rest plugin change the way how i can access to a
specific action.
When i use http://localhost:8080/myApp/runLogin.action, action mapping is
failing. It thinks it is a restful method. and I can access the action
putting http://localhost:8080/myApp/runLogin!execute
Is there
Hi folks,
I have an struts2.0.14 app working well and I decided to migrate to
struts2.1.8. Migration worked well.
But when I tried to include rest plugin, my current urls to process some
actions don't work. I have a http 404 error as a result. My goal is using
restful to publish some methods loca
I've been using struts2 + the rest plugin successfully to create a simple
rest api web service. I'd like to make that service accessible to Flash and
Silverlight clients, which means I need to add a crossdomain.xml access file
at the root of my webapp. Normally I would just copy a crossdomain.xml
the constant
“struts.convention.default.parent.package” points to our globalPackage.
Hope that helps you
Regards
Stuart
On 28/05/2009 02:12, "xnpeng" wrote:
can any one help? i use struts2.1.6.
在2009-05-20,xnpeng 写道:
>I'm doing my project with struts2+rest-plugin for ab
abilité pour le contenu fourni.
>
>
>
>
>> Date: Wed, 20 May 2009 18:36:57 +0800
>> From: xnp...@163.com
>> To: user@struts.apache.org
>> Subject: Re:Re: Struts2+ReST-plugin prolems need help!!!
>>
>>
>> Hi Dave!
>>I
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Wed, 20 May 2009 18:36:57 +0800
> From: xnp...@163.com
> To: user@struts.apache.org
> Subject: Re:Re: Struts2+ReST-plugin prolems need help!!!
>
>
> Hi Dave!
Hi Dave!
I'm using Struts2.1.6 and struts2-rest-plugin-2.1.6.
first ,I need a global error page when exception happen like this:
Stacktraces
java.lang.NoSuchMethodException: com.xunan.sitexa.rest.MainController.a()
java.lang.Class.getMethod(Unknown Source)
org.apache.st
xnpeng wrote:
I'm doing my project with struts2+rest-plugin for about 3 months.there is a lot
of problems unresolved.
With rest-plugin and convention-plugin,all action-mapping are done automatically,manual action-mapping in struts.xml cannot work.so,
1, I cannot define global-error-resu
I'm doing my project with struts2+rest-plugin for about 3 months.there is a lot
of problems unresolved.
With rest-plugin and convention-plugin,all action-mapping are done
automatically,manual action-mapping in struts.xml cannot work.so,
1, I cannot define global-error-result;
2, I cann
mahanare wrote:
I am wondering if it is possible to use default response of the rest action
using rest plugin to xml?
instead of http://<>/orders.xml if i can make it
http://<>/orders as the action for a POST method in a form submssion
and the response should be xml. Essentially i do not want t
Hi,
Is there any specific set of instructions to be followed to do the spring
integration with struts2 rest plugin?
Please do let me know.
--
View this message in context:
http://www.nabble.com/Struts2-rest-plugin%2C-spring-integration-tp22346177p22346177.html
Sent from the Struts - User
to have any JSPs
or html files in my web application. It will be a plain rest based services
which process forms and respond with xml.
Thanks in advance
Thanks
harinath
--
View this message in context:
http://www.nabble.com/Struts2-rest-plugin---making-default-response-to-xml-tp22345042p223450
Thanks
> These values, as well as the rest, are documented on the convention
> plugin page:
>
> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Configurationreference
>
> Dave
>
>
>
--
View this message in context:
http://www.nab
mahanare wrote:
I would like to know where can i get all possible values for structs
constants?
It's a string, you can make it anything you want.
I'm almost positive the other possible value is "false".
You can make it anything you want.
These values, as well as the rest, are doc
struts, if you have
inputs, please share with me.
Thanks
Harinath
http;//harinath.in
--
View this message in context:
http://www.nabble.com/Struts2-rest-plugin-%3Astruts.convention.action.*%2C-possible-values-tp22115906p22115906.html
Sent from the Struts - User mailing list archive at Nabble.com
Can this plugin re-write the urls generated by struts2 jsp tags to be more
rest/rubyonrails-like? ex. ?user=123 --> /user/123
The plugin doesn't appear to be regex-based, is that correct?
I'm trying to decide if I am going to use the rest plugin or
http://tuckey.org/urlrewrite.
Thanks
2009/1/5 Ercan Kayaonu :
> Thank you for your quick reply.
> I tried using maven, but it couldn't find 2.1.5 one. Summary of mvn
> messages:
Try to use that http://people.apache.org/builds/struts/2.1.5/
it works for me
Regards
--
Lukasz
http://www.lenart.org.pl/
---
On Sun, Jan 4, 2009 at 7:25 PM, Ercan Kayaonu wrote:
> Thank you for your quick reply.
> I tried using maven, but it couldn't find 2.1.5 one. Summary of mvn
> messages:
Struts 2.1.5 has not been voted on and is not an official release --
standard disclaimers apply. :) If you didn't intend to ve
Thank you for your quick reply.
I tried using maven, but it couldn't find 2.1.5 one. Summary of mvn
messages:
Downloading:
http://repo1.maven.org/maven2/org/apache/struts/struts2-rest-plugin/2.1.5/struts2-rest-plugin-2.1.5.jar
[WARNING] An error occurred during dependency resolution.
F
Have you included the dependencies of the REST plugin?
- Original Message
> From: Ercan Kayaonu
> To: user@struts.apache.org
> Sent: Sunday, January 4, 2009 8:57:55 PM
> Subject: struts2-rest-plugin-2.1.5 problem
>
> Hi folks,
>
> I just registered to
ache.org/dtds/struts-2.0.dtd";>
Everything is OK.
I also added struts2-config-browser-plugin-2.1.5.jar to my lib folder, and
able to see action mappings. Cool plugin.
But i want to also use rails like structure in my action (well controller)
classes. For this you need rest plugin (s
74 matches
Mail list logo