Re: struts2-rest-plugin-2.1.5 problem

2009-01-05 Thread Lukasz Lenart
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/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2-rest-plugin-2.1.5 problem

2009-01-04 Thread Wendy Smoak
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 venture out
onto the bleeding edge, you can find the latest releases here:
struts.apache.org/download.html

That said, there may be a staging repo near where you downloaded the
distribution; you can add that to your settings.xml to find the
artifacts there.

We usually keep discussion of unreleased bits on the dev list; you
might want to subscribe and move the conversation over there.  Thanks
for helping to test it! :)

-- 
Wendy

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts2-rest-plugin-2.1.5 problem

2009-01-04 Thread 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:

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.
Failed to retrieve org.apache.struts:struts2-rest-plugin-2.1.5
Caused by: Unable to download the artifact from any repository.
Try downloading the file manually from the project website.
--
I guess i know some of them. I checked the struts-plugin.xml file inside the
rest... .jar
Do you mean xstream, json-lib, etc. How can find all these dependencies.

Thank you.
Regards,

On Mon, Jan 5, 2009 at 2:07 AM, Dave Newton  wrote:

> 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 the user list and new to struts. I hope i can learn
> > from you and help as much as  i can.
> > I would like to ask one question about rest plugin, but i want to detail
> the
> > steps i've taken in case this might help someone who want to start
> similar
> > project.
> >
> > I wanted to use the convention plugin and i downloaded struts2 from
> > http://people.apache.org/builds/struts/2.1.5/
> > I copied main jar files and also struts2-convention-plugin-2.1.5.jar to
> my
> > lib folder. Everything, including package name and action mappings worked
> > great as described in http://cwiki.apache.org/WW/convention-plugin.html
> >
> > Up to this point you don't need to use struts.xml file. It works without
> > that. The default result directory for .jsp files is /WEB-INF/content/
> > To change this to "views", I created struts.xml file. This is my
> struts.xml
> > after that change.
> >
> >
> >
> > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> > "http://struts.apache.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 (struts2-rest-plugin-2.1.5.jar) as
> > described here: http://cwiki.apache.org/WW/rest-plugin.html
> > You need to add the following lines to your struts.xml file:
> >
> >
> >
> >
> > value="rest-default"/>
> >
> >
> >
> >
> > When i tried to restart tomcat6.0 within eclipse, i got this error:
> >
> > Unable to load configuration. - bean - jar:file:/path/and path/and
> > whatever/lib/struts2-rest-plugin-2.1.5.jar!/struts-plugin.xml:36:138.
> > Has anybody faced the same problem.
> > Thank you in advance.
> >
> > Regards,
> > Ercan
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: struts2-rest-plugin-2.1.5 problem

2009-01-04 Thread Dave Newton
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 the user list and new to struts. I hope i can learn
> from you and help as much as  i can.
> I would like to ask one question about rest plugin, but i want to detail the
> steps i've taken in case this might help someone who want to start similar
> project.
> 
> I wanted to use the convention plugin and i downloaded struts2 from
> http://people.apache.org/builds/struts/2.1.5/
> I copied main jar files and also struts2-convention-plugin-2.1.5.jar to my
> lib folder. Everything, including package name and action mappings worked
> great as described in http://cwiki.apache.org/WW/convention-plugin.html
> 
> Up to this point you don't need to use struts.xml file. It works without
> that. The default result directory for .jsp files is /WEB-INF/content/
> To change this to "views", I created struts.xml file. This is my struts.xml
> after that change.
> 
> 
> 
> "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
> "http://struts.apache.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 (struts2-rest-plugin-2.1.5.jar) as
> described here: http://cwiki.apache.org/WW/rest-plugin.html
> You need to add the following lines to your struts.xml file:
> 
> 
> 
> 
> value="rest-default"/>
> 
> 
> 
> 
> When i tried to restart tomcat6.0 within eclipse, i got this error:
> 
> Unable to load configuration. - bean - jar:file:/path/and path/and
> whatever/lib/struts2-rest-plugin-2.1.5.jar!/struts-plugin.xml:36:138.
> Has anybody faced the same problem.
> Thank you in advance.
> 
> Regards,
> Ercan


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



struts2-rest-plugin-2.1.5 problem

2009-01-04 Thread Ercan Kayaonu
Hi folks,

I  just registered to the user list and new to struts. I hope i can learn
from you and help as much as  i can.
I would like to ask one question about rest plugin, but i want to detail the
steps i've taken in case this might help someone who want to start similar
project.

I wanted to use the convention plugin and i downloaded struts2 from
http://people.apache.org/builds/struts/2.1.5/
I copied main jar files and also struts2-convention-plugin-2.1.5.jar to my
lib folder. Everything, including package name and action mappings worked
great as described in http://cwiki.apache.org/WW/convention-plugin.html

Up to this point you don't need to use struts.xml file. It works without
that. The default result directory for .jsp files is /WEB-INF/content/
To change this to "views", I created struts.xml file. This is my struts.xml
after that change.


http://struts.apache.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 (struts2-rest-plugin-2.1.5.jar) as
described here: http://cwiki.apache.org/WW/rest-plugin.html
You need to add the following lines to your struts.xml file:








When i tried to restart tomcat6.0 within eclipse, i got this error:

Unable to load configuration. - bean - jar:file:/path/and path/and
whatever/lib/struts2-rest-plugin-2.1.5.jar!/struts-plugin.xml:36:138.
Has anybody faced the same problem.
Thank you in advance.

Regards,
Ercan