how to build development environment for equinox ?

25 messages Options
Embed this post
Permalink
1 2
罗霄

how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hi,
   
    I just downloaded the latest version of equinox (1.7) and passed all the test (via test-all).
    But the structure of the equinox (1.7) is far away from the appfuse(1.9.4) And it start to use Maven which confused me. Since there are few documentation for equinox and the documentation of appfuse helps little because of the different structure, it is diffcult for me to continue.
      So I wonder whether there is equinox whose folder structure is the same as appfuse (1.9.4) ?
    Expect to your reply. Thanks.
 

xiuxiu
2006-11-28
Matt Raible-3

Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
Equinox's directory structure follows Maven's standard directory
structure[1], which AppFuse 2.0 will be following as well.

Here's how it maps compared to AppFuse:

web -> src/main/webapp
src -> src/main/java
test -> src/test/java

If you use Ctrl+Shift+R in Eclipse, it should provide an easy way to
find files and classes.

Hope this helps,

Matt

[1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

On 11/27/06, xiuxiu <[hidden email]> wrote:

>
>
> Hi,
>
>     I just downloaded the latest version of equinox (1.7) and passed all the
> test (via test-all).
>     But the structure of the equinox (1.7) is far away from the
> appfuse(1.9.4) And it start to use Maven which confused me. Since there are
> few documentation for equinox and the documentation of appfuse helps little
> because of the different structure, it is diffcult for me to continue.
>       So I wonder whether there is equinox whose folder structure is the
> same as appfuse (1.9.4) ?
>     Expect to your reply. Thanks.
>
>  ________________________________
>
> xiuxiu
> 2006-11-28


--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

罗霄

Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Thanks for your reply.
I have to say it is so different from appfuse 1.9.4 that I am not used to.
I try to build eclipse environment and generate the project file according to the instruction in the Quick Start. It seems several jar file for the test class lost.
I think it is related to the maven2 but I am not famaliar with this tools.
 
By the way, in the equinox , there is no dbunit and appgen supported. What a pity. I read the tutorial of appfuse but it doesn't go well for equinox.
 
 
 

xiuxiu
2006-11-28

发件人: Matt Raible
发送时间: 2006-11-28 15:02:25
收件人: [hidden email]
抄送:
主题: Re: [equinox-user] how to build development environment for equinox ?
 
Equinox's directory structure follows Maven's standard directory
structure[1], which AppFuse 2.0 will be following as well.
 
Here's how it maps compared to AppFuse:
 
web - > src/main/webapp
src - > src/main/java
test - > src/test/java
 
If you use Ctrl+Shift+R in Eclipse, it should provide an easy way to
find files and classes.
 
Hope this helps,
 
Matt
 
 
On 11/27/06, xiuxiu  <[hidden email] > wrote:
>
>
> Hi,
>
>     I just downloaded the latest version of equinox (1.7) and passed all the
> test (via test-all).
>     But the structure of the equinox (1.7) is far away from the
> appfuse(1.9.4) And it start to use Maven which confused me. Since there are
> few documentation for equinox and the documentation of appfuse helps little
> because of the different structure, it is diffcult for me to continue.
>       So I wonder whether there is equinox whose folder structure is the
> same as appfuse (1.9.4) ?
>     Expect to your reply. Thanks.
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
 
 
-- 
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
 
Matt Raible-3

Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
On 11/28/06, xiuxiu <[hidden email]> wrote:
>
>
> Thanks for your reply.
> I have to say it is so different from appfuse 1.9.4 that I am not used to.
> I try to build eclipse environment and generate the project file according
> to the instruction in the Quick Start. It seems several jar file for the
> test class lost.
> I think it is related to the maven2 but I am not famaliar with this tools.

What error(s) are you getting?

>
> By the way, in the equinox , there is no dbunit and appgen supported. What a
> pity. I read the tutorial of appfuse but it doesn't go well for equinox.

Yeah, Equinox is supposed to be a simpler version of AppFuse, with no
code generation or other bells and whistles that you might want when
you're first learning.  I created it in order to develop a sample
application for my Spring Live book @ www.springlive.com.  Most of the
code documentation is in this book.  Unfortunately, the way Maven
works is not.  I'd suggest downloading Maestro, which is free software
that includes a guide on how to use Equinox with Maven.

http://www.mergere.com/common/reg.jsp?form_source=m-maestro&form_landing=m-products

Hope this helps,

Matt
Matt

>
>
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 15:02:25
> 收件人: [hidden email]
> 抄送:
> 主题: Re: [equinox-user] how to build development environment for equinox ?
>
>
> Equinox's directory structure follows Maven's
> standard directory
> structure[1], which AppFuse 2.0 will be following as well.
>
> Here's how it maps compared to AppFuse:
>
> web - > src/main/webapp
> src - > src/main/java
> test - > src/test/java
>
> If you use Ctrl+Shift+R in Eclipse, it should provide
> an easy way to
> find files and classes.
>
> Hope this helps,
>
> Matt
>
> [1]
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
>
> On 11/27/06, xiuxiu  <[hidden email] > wrote:
> >
> >
> > Hi,
> >
> >     I just downloaded the latest version of equinox (1.7)
> and passed all the
> > test (via test-all).
> >     But the structure of the equinox (1.7) is far away
> from the
> > appfuse(1.9.4) And it start to use Maven which confused
> me. Since there are
> > few documentation for equinox and the
> documentation of appfuse helps little
> > because of the different structure, it is diffcult
> for me to continue.
> >       So I wonder whether there is equinox whose
> folder structure is the
> > same as appfuse (1.9.4) ?
> >     Expect to your reply. Thanks.
> >
> >  ________________________________
> >
> > xiuxiu
> > 2006-11-28
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [hidden email]
> For additional commands, e-mail:
> [hidden email]
>


--
http://raibledesigns.com
Kiran Karnati-2

User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
Dear Matt,

I am following Spring Live book.

Till UserDao Test it was ok , but when I included UserManager and UserManagerTarget beans to my applicationContext.xml ... started the problems ...

it is saying that there is a problem in executing the target for UserManager and saying nested exception in UserManagerImpl , ' "UserDAO" is not Writable ' ....

doesn't matter which test I run always it is saying the same... after creating the Usermanager beans I could not run even UserDAO Test also ...

and even I can't see any result in the web browser after deploy reload ...

I hope you have a solution for this problem and I know that there is some where a small problem and please help me solving it ...

Thank you
--
Best regards,

Kiran Karnati


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Matt Raible-3

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
What does your userManager bean definition look like?  I'm willing to
bet you need to change it so it has:

<property name="userDAO" ...>

instead of:

<property name="UserDAO"...>

Spring uses JavaBeans conventions, so the first letter should be
decapitalized and the "set" chopped off from the matching method name.

Hope this helps,

Matt

On 11/28/06, Kiran Karnati <[hidden email]> wrote:

> Dear Matt,
>
> I am following Spring Live book.
>
> Till UserDao Test it was ok , but when I included UserManager and UserManagerTarget beans to my applicationContext.xml ... started the problems ...
>
> it is saying that there is a problem in executing the target for UserManager and saying nested exception in UserManagerImpl , ' "UserDAO" is not Writable ' ....
>
> doesn't matter which test I run always it is saying the same... after creating the Usermanager beans I could not run even UserDAO Test also ...
>
> and even I can't see any result in the web browser after deploy reload ...
>
> I hope you have a solution for this problem and I know that there is some where a small problem and please help me solving it ...
>
> Thank you
> --
> Best regards,
>
> Kiran Karnati
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
罗霄

Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
Some javascript/style in this post has been disabled (why?)
The first time , I ran mvn -Declipse.workspace=<path-to-eclipse-workspace> eclipse:add-maven-repo
and .project , .classpath file generated.
But after I import the project, is lacks spring-test.jar, strutstestcase.jar, jmock.jar , spring-mock.jar.
 
The second time, after I ran that command, two project file didn't generated.
After I import this folder, seems lacks servlet.jar and jsp.jar.
 
I have to say I am totally confused.
 
 
 

xiuxiu
2006-11-28

发件人: Matt Raible
发送时间: 2006-11-28 16:11:13
收件人: [hidden email]
抄送:
主题: Re: Re: [equinox-user] how to build development environment for equinox ?
 
On 11/28/06, xiuxiu  <[hidden email] > wrote:
>
>
> Thanks for your reply.
> I have to say it is so different from appfuse 1.9.4 that I am not used to.
> I try to build eclipse environment and generate the project file according
> to the instruction in the Quick Start. It seems several jar file for the
> test class lost.
> I think it is related to the maven2 but I am not famaliar with this tools.
 
What error(s) are you getting?
 
>
> By the way, in the equinox , there is no dbunit and appgen supported. What a
> pity. I read the tutorial of appfuse but it doesn't go well for equinox.
 
Yeah, Equinox is supposed to be a simpler version of AppFuse, with no
code generation or other bells and whistles that you might want when
you're first learning.  I created it in order to develop a sample
application for my Spring Live book @ www.springlive.com.  Most of the
code documentation is in this book.  Unfortunately, the way Maven
works is not.  I'd suggest downloading Maestro, which is free software
that includes a guide on how to use Equinox with Maven.
 
 
Hope this helps,
 
Matt
Matt
>
>
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 15:02:25
> 收件人: [hidden email]
> 抄送:
> 主题: Re: [equinox-user] how to build development environment for equinox ?
>
>
> Equinox's directory structure follows Maven's
> standard directory
> structure[1], which AppFuse 2.0 will be following as well.
>
> Here's how it maps compared to AppFuse:
>
> web -  > src/main/webapp
> src -  > src/main/java
> test -  > src/test/java
>
> If you use Ctrl+Shift+R in Eclipse, it should provide
> an easy way to
> find files and classes.
>
> Hope this helps,
>
> Matt
>
> [1]
>
> On 11/27/06, xiuxiu   <[hidden email]  > wrote:
>  >
>  >
>  > Hi,
>  >
>  >     I just downloaded the latest version of equinox (1.7)
> and passed all the
>  > test (via test-all).
>  >     But the structure of the equinox (1.7) is far away
> from the
>  > appfuse(1.9.4) And it start to use Maven which confused
> me. Since there are
>  > few documentation for equinox and the
> documentation of appfuse helps little
>  > because of the different structure, it is diffcult
> for me to continue.
>  >       So I wonder whether there is equinox whose
> folder structure is the
>  > same as appfuse (1.9.4) ?
>  >     Expect to your reply. Thanks.
>  >
>  >  ________________________________
>  >
>  > xiuxiu
>  > 2006-11-28
>
>
> --
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
 
 
-- 
Matt Raible-3

Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
You need to run "mvn eclipse:eclipse" before you run the command below.

http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html

If you downloaded Equinox from the site, you should already have the
.project and .classpath files, you'll simply need to run:

"mvn -Declipse.workspace=c:/tools/eclipse eclipse:add-maven-repo"

And make sure c:/tools/eclipse matches your workspace location.

Hope this helps,

Matt

On 11/28/06, xiuxiu <[hidden email]> wrote:

>
>
> The first time , I ran mvn -Declipse.workspace=<path-to-eclipse-workspace>
> eclipse:add-maven-repo
> and .project , .classpath file generated.
> But after I import the project, is lacks spring-test.jar,
> strutstestcase.jar, jmock.jar , spring-mock.jar.
>
> The second time, after I ran that command, two project file didn't
> generated.
> After I import this folder, seems lacks servlet.jar and jsp.jar.
>
> I have to say I am totally confused.
>
>
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 16:11:13
> 收件人: [hidden email]
> 抄送:
> 主题: Re: Re: [equinox-user] how to build development environment for equinox
> ?
>
>
>
> On 11/28/06, xiuxiu  <[hidden email] > wrote:
> >
> >
> > Thanks for your reply.
> > I have to say it is so different from appfuse 1.9.4 that
> I am not used to.
> > I try to build eclipse environment and generate
> the project file according
> > to the instruction in the Quick Start. It seems
> several jar file for the
> > test class lost.
> > I think it is related to the maven2 but I am not
> famaliar with this tools.
>
> What error(s) are you getting?
>
> >
> > By the way, in the equinox , there is no dbunit and
> appgen supported. What a
> > pity. I read the tutorial of appfuse but it doesn't
> go well for equinox.
>
> Yeah, Equinox is supposed to be a simpler version
> of AppFuse, with no
> code generation or other bells and whistles that you
> might want when
> you're first learning.  I created it in order
> to develop a sample
> application for my Spring Live book @ www.springlive.com.
> Most of the
> code documentation is in this book.  Unfortunately, the
> way Maven
> works is not.  I'd suggest downloading Maestro, which
> is free software
> that includes a guide on how to use Equinox with Maven.
>
> http://www.mergere.com/common/reg.jsp?form_source=m-maestro&form_landing=m-products
>
> Hope this helps,
>
> Matt
> Matt
> >
> >
> >
> >
> >  ________________________________
> >
> > xiuxiu
> > 2006-11-28
> >  ________________________________
> >
> > 发件人: Matt Raible
> > 发送时间: 2006-11-28 15:02:25
> > 收件人: [hidden email]
> > 抄送:
> > 主题: Re: [equinox-user] how to build development
> environment for equinox ?
> >
> >
> > Equinox's directory structure follows Maven's
> > standard directory
> > structure[1], which AppFuse 2.0 will be following as well.
> >
> > Here's how it maps compared to AppFuse:
> >
> > web -  > src/main/webapp
> > src -  > src/main/java
> > test -  > src/test/java
> >
> > If you use Ctrl+Shift+R in Eclipse, it should provide
> > an easy way to
> > find files and classes.
> >
> > Hope this helps,
> >
> > Matt
> >
> > [1]
> >
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> >
> > On 11/27/06, xiuxiu   <[hidden email]  > wrote:
> >  >
> >  >
> >  > Hi,
> >  >
> >  >     I just downloaded the latest version of equinox
> (1.7)
> > and passed all the
> >  > test (via test-all).
> >  >     But the structure of the equinox (1.7) is far away
> > from the
> >  > appfuse(1.9.4) And it start to use Maven which
> confused
> > me. Since there are
> >  > few documentation for equinox and the
> > documentation of appfuse helps little
> >  > because of the different structure, it is diffcult
> > for me to continue.
> >  >       So I wonder whether there is equinox whose
> > folder structure is the
> >  > same as appfuse (1.9.4) ?
> >  >     Expect to your reply. Thanks.
> >  >
> >  >  ________________________________
> >  >
> >  > xiuxiu
> >  > 2006-11-28
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [hidden email]
> > For additional commands, e-mail:
> > [hidden email]
> >
>
>
> --
> http://raibledesigns.com


--
http://raibledesigns.com
Kiran Karnati-2

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
yes Matt,

I have started with small letter that is "userDAO" exactly like in your book ...

but what don't understand is if it has problem in creating that bean why it is clearly saying that "userDAO"  is not writable ...

do you have any more suggestions ?

but it is not working Matt ...

I will be thankful for your help ...

-------- Original-Nachricht --------
Datum: Tue, 28 Nov 2006 01:31:12 -0700
Von: "Matt Raible" <[hidden email]>
An: [hidden email]
Betreff: Re: [equinox-user] User Manager Test Failed

> What does your userManager bean definition look like?  I'm willing to
> bet you need to change it so it has:
>
> <property name="userDAO" ...>
>
> instead of:
>
> <property name="UserDAO"...>
>
> Spring uses JavaBeans conventions, so the first letter should be
> decapitalized and the "set" chopped off from the matching method name.
>
> Hope this helps,
>
> Matt
>
> On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > Dear Matt,
> >
> > I am following Spring Live book.
> >
> > Till UserDao Test it was ok , but when I included UserManager and
> UserManagerTarget beans to my applicationContext.xml ... started the problems ...
> >
> > it is saying that there is a problem in executing the target for
> UserManager and saying nested exception in UserManagerImpl , ' "UserDAO" is not
> Writable ' ....
> >
> > doesn't matter which test I run always it is saying the same... after
> creating the Usermanager beans I could not run even UserDAO Test also ...
> >
> > and even I can't see any result in the web browser after deploy reload
> ...
> >
> > I hope you have a solution for this problem and I know that there is
> some where a small problem and please help me solving it ...
> >
> > Thank you
> > --
> > Best regards,
> >
> > Kiran Karnati
> >
> >
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> http://raibledesigns.com

--
Best regards,

Kiran Karnati


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kiran Karnati-2

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
Dear Matt,

Did you find anything I can do solve the problem of getting "userDAO" is not writable ... ?

I have been waiting your reply.

Thank you in advance.

Regards
Kiran
-------- Original-Nachricht --------
Datum: Tue, 28 Nov 2006 11:48:29 +0100
Von: "Kiran Karnati" <[hidden email]>
An: [hidden email]
Betreff: Re: [equinox-user] User Manager Test Failed

> yes Matt,
>
> I have started with small letter that is "userDAO" exactly like in your
> book ...
>
> but what don't understand is if it has problem in creating that bean why
> it is clearly saying that "userDAO"  is not writable ...
>
> do you have any more suggestions ?
>
> but it is not working Matt ...
>
> I will be thankful for your help ...
>
> -------- Original-Nachricht --------
> Datum: Tue, 28 Nov 2006 01:31:12 -0700
> Von: "Matt Raible" <[hidden email]>
> An: [hidden email]
> Betreff: Re: [equinox-user] User Manager Test Failed
>
> > What does your userManager bean definition look like?  I'm willing to
> > bet you need to change it so it has:
> >
> > <property name="userDAO" ...>
> >
> > instead of:
> >
> > <property name="UserDAO"...>
> >
> > Spring uses JavaBeans conventions, so the first letter should be
> > decapitalized and the "set" chopped off from the matching method name.
> >
> > Hope this helps,
> >
> > Matt
> >
> > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > Dear Matt,
> > >
> > > I am following Spring Live book.
> > >
> > > Till UserDao Test it was ok , but when I included UserManager and
> > UserManagerTarget beans to my applicationContext.xml ... started the
> problems ...
> > >
> > > it is saying that there is a problem in executing the target for
> > UserManager and saying nested exception in UserManagerImpl , ' "UserDAO"
> is not
> > Writable ' ....
> > >
> > > doesn't matter which test I run always it is saying the same... after
> > creating the Usermanager beans I could not run even UserDAO Test also
> ...
> > >
> > > and even I can't see any result in the web browser after deploy reload
> > ...
> > >
> > > I hope you have a solution for this problem and I know that there is
> > some where a small problem and please help me solving it ...
> > >
> > > Thank you
> > > --
> > > Best regards,
> > >
> > > Kiran Karnati
> > >
> > >
> > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
>
> --
> Best regards,
>
> Kiran Karnati
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]

--
Best regards,

Kiran Karnati


"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Matt Raible-3

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
The latest version of Equinox uses userDao instead of userDAO.  What
is the set method named in your UserManagerImpl?

Matt

On 11/28/06, Kiran Karnati <[hidden email]> wrote:

> Dear Matt,
>
> Did you find anything I can do solve the problem of getting "userDAO" is not writable ... ?
>
> I have been waiting your reply.
>
> Thank you in advance.
>
> Regards
> Kiran
> -------- Original-Nachricht --------
> Datum: Tue, 28 Nov 2006 11:48:29 +0100
> Von: "Kiran Karnati" <[hidden email]>
> An: [hidden email]
> Betreff: Re: [equinox-user] User Manager Test Failed
>
> > yes Matt,
> >
> > I have started with small letter that is "userDAO" exactly like in your
> > book ...
> >
> > but what don't understand is if it has problem in creating that bean why
> > it is clearly saying that "userDAO"  is not writable ...
> >
> > do you have any more suggestions ?
> >
> > but it is not working Matt ...
> >
> > I will be thankful for your help ...
> >
> > -------- Original-Nachricht --------
> > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > Von: "Matt Raible" <[hidden email]>
> > An: [hidden email]
> > Betreff: Re: [equinox-user] User Manager Test Failed
> >
> > > What does your userManager bean definition look like?  I'm willing to
> > > bet you need to change it so it has:
> > >
> > > <property name="userDAO" ...>
> > >
> > > instead of:
> > >
> > > <property name="UserDAO"...>
> > >
> > > Spring uses JavaBeans conventions, so the first letter should be
> > > decapitalized and the "set" chopped off from the matching method name.
> > >
> > > Hope this helps,
> > >
> > > Matt
> > >
> > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > Dear Matt,
> > > >
> > > > I am following Spring Live book.
> > > >
> > > > Till UserDao Test it was ok , but when I included UserManager and
> > > UserManagerTarget beans to my applicationContext.xml ... started the
> > problems ...
> > > >
> > > > it is saying that there is a problem in executing the target for
> > > UserManager and saying nested exception in UserManagerImpl , ' "UserDAO"
> > is not
> > > Writable ' ....
> > > >
> > > > doesn't matter which test I run always it is saying the same... after
> > > creating the Usermanager beans I could not run even UserDAO Test also
> > ...
> > > >
> > > > and even I can't see any result in the web browser after deploy reload
> > > ...
> > > >
> > > > I hope you have a solution for this problem and I know that there is
> > > some where a small problem and please help me solving it ...
> > > >
> > > > Thank you
> > > > --
> > > > Best regards,
> > > >
> > > > Kiran Karnati
> > > >
> > > >
> > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > >
> > > --
> > > http://raibledesigns.com
> >
> > --
> > Best regards,
> >
> > Kiran Karnati
> >
> >
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
>
> --
> Best regards,
>
> Kiran Karnati
>
>
> "Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
> Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
罗霄

Re: Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
Some javascript/style in this post has been disabled (why?)
I just want to seperate Acegi from Appfuse but actually I lose so much functions which is really diappointed to me.
 
Maybe How to seperate Acegi from Appfuse easily could be a issue for Appuse2. 
 

xiuxiu
2006-11-29

发件人: Matt Raible
发送时间: 2006-11-28 17:24:35
收件人: [hidden email]
抄送:
主题: Re: Re: Re: [equinox-user] how to build development environment for equinox ?
 
You need to run "mvn eclipse:eclipse" before you run the command below.
 
 
If you downloaded Equinox from the site, you should already have the
.project and .classpath files, you'll simply need to run:
 
"mvn -Declipse.workspace=c:/tools/eclipse eclipse:add-maven-repo"
 
And make sure c:/tools/eclipse matches your workspace location.
 
Hope this helps,
 
Matt
 
On 11/28/06, xiuxiu  <[hidden email] > wrote:
>
>
> The first time , I ran mvn -Declipse.workspace= <path-to-eclipse-workspace >
> eclipse:add-maven-repo
> and .project , .classpath file generated.
> But after I import the project, is lacks spring-test.jar,
> strutstestcase.jar, jmock.jar , spring-mock.jar.
>
> The second time, after I ran that command, two project file didn't
> generated.
> After I import this folder, seems lacks servlet.jar and jsp.jar.
>
> I have to say I am totally confused.
>
>
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 16:11:13
> 收件人: [hidden email]
> 抄送:
> 主题: Re: Re: [equinox-user] how to build development environment for equinox
> ?
>
>
>
> On 11/28/06, xiuxiu   <[hidden email]  > wrote:
>  >
>  >
>  > Thanks for your reply.
>  > I have to say it is so different from appfuse 1.9.4 that
> I am not used to.
>  > I try to build eclipse environment and generate
> the project file according
>  > to the instruction in the Quick Start. It seems
> several jar file for the
>  > test class lost.
>  > I think it is related to the maven2 but I am not
> famaliar with this tools.
>
> What error(s) are you getting?
>
>  >
>  > By the way, in the equinox , there is no dbunit and
> appgen supported. What a
>  > pity. I read the tutorial of appfuse but it doesn't
> go well for equinox.
>
> Yeah, Equinox is supposed to be a simpler version
> of AppFuse, with no
> code generation or other bells and whistles that you
> might want when
> you're first learning.  I created it in order
> to develop a sample
> application for my Spring Live book @ www.springlive.com.
> Most of the
> code documentation is in this book.  Unfortunately, the
> way Maven
> works is not.  I'd suggest downloading Maestro, which
> is free software
> that includes a guide on how to use Equinox with Maven.
>
>
> Hope this helps,
>
> Matt
> Matt
>  >
>  >
>  >
>  >
>  >  ________________________________
>  >
>  > xiuxiu
>  > 2006-11-28
>  >  ________________________________
>  >
>  > 发件人: Matt Raible
>  > 发送时间: 2006-11-28 15:02:25
>  > 收件人: [hidden email]
>  > 抄送:
>  > 主题: Re: [equinox-user] how to build development
> environment for equinox ?
>  >
>  >
>  > Equinox's directory structure follows Maven's
>  > standard directory
>  > structure[1], which AppFuse 2.0 will be following as well.
>  >
>  > Here's how it maps compared to AppFuse:
>  >
>  > web -   > src/main/webapp
>  > src -   > src/main/java
>  > test -   > src/test/java
>  >
>  > If you use Ctrl+Shift+R in Eclipse, it should provide
>  > an easy way to
>  > find files and classes.
>  >
>  > Hope this helps,
>  >
>  > Matt
>  >
>  > [1]
>  >
>  >
>  > On 11/27/06, xiuxiu    <[hidden email]   > wrote:
>  >   >
>  >   >
>  >   > Hi,
>  >   >
>  >   >     I just downloaded the latest version of equinox
> (1.7)
>  > and passed all the
>  >   > test (via test-all).
>  >   >     But the structure of the equinox (1.7) is far away
>  > from the
>  >   > appfuse(1.9.4) And it start to use Maven which
> confused
>  > me. Since there are
>  >   > few documentation for equinox and the
>  > documentation of appfuse helps little
>  >   > because of the different structure, it is diffcult
>  > for me to continue.
>  >   >       So I wonder whether there is equinox whose
>  > folder structure is the
>  >   > same as appfuse (1.9.4) ?
>  >   >     Expect to your reply. Thanks.
>  >   >
>  >   >  ________________________________
>  >   >
>  >   > xiuxiu
>  >   > 2006-11-28
>  >
>  >
>  > --
>  >
>  >
> ---------------------------------------------------------------------
>  > To unsubscribe, e-mail:
>  > For additional commands, e-mail:
>  >
>
>
> --
 
 
-- 
Matt Raible-3

Re: Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
On 11/28/06, xiuxiu <[hidden email]> wrote:
>
>
> I just want to seperate Acegi from Appfuse but actually I lose so much
> functions which is really diappointed to me.
>
> Maybe How to seperate Acegi from Appfuse easily could be a issue for
> Appuse2.

Please enter this as an issue in JIRA and we'll try to write some
documentation on how to do it.

Matt

>
>
>  ________________________________
>
> xiuxiu
> 2006-11-29
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 17:24:35
> 收件人: [hidden email]
> 抄送:
> 主题: Re: Re: Re: [equinox-user] how to build development environment for
> equinox ?
>
>
>
> You need to run "mvn eclipse:eclipse" before you run
> the command below.
>
> http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html
>
> If you downloaded Equinox from the site, you should
> already have the
> .project and .classpath files, you'll simply need to run:
>
> "mvn -Declipse.workspace=c:/tools/eclipse
> eclipse:add-maven-repo"
>
> And make sure c:/tools/eclipse matches your
> workspace location.
>
> Hope this helps,
>
> Matt
>
> On 11/28/06, xiuxiu  <[hidden email] > wrote:
> >
> >
> > The first time , I ran mvn -Declipse.workspace= <path-to-eclipse-workspace
> >
> > eclipse:add-maven-repo
> > and .project , .classpath file generated.
> > But after I import the project, is lacks spring-test.jar,
> > strutstestcase.jar, jmock.jar , spring-mock.jar.
> >
> > The second time, after I ran that command, two
> project file didn't
> > generated.
> > After I import this folder, seems lacks servlet.jar and
> jsp.jar.
> >
> > I have to say I am totally confused.
> >
> >
> >
> >
> >  ________________________________
> >
> > xiuxiu
> > 2006-11-28
> >  ________________________________
> >
> > 发件人: Matt Raible
> > 发送时间: 2006-11-28 16:11:13
> > 收件人: [hidden email]
> > 抄送:
> > 主题: Re: Re: [equinox-user] how to build
> development environment for equinox
> > ?
> >
> >
> >
> > On 11/28/06, xiuxiu   <[hidden email]  > wrote:
> >  >
> >  >
> >  > Thanks for your reply.
> >  > I have to say it is so different from appfuse 1.9.4
> that
> > I am not used to.
> >  > I try to build eclipse environment and generate
> > the project file according
> >  > to the instruction in the Quick Start. It seems
> > several jar file for the
> >  > test class lost.
> >  > I think it is related to the maven2 but I am not
> > famaliar with this tools.
> >
> > What error(s) are you getting?
> >
> >  >
> >  > By the way, in the equinox , there is no dbunit and
> > appgen supported. What a
> >  > pity. I read the tutorial of appfuse but it doesn't
> > go well for equinox.
> >
> > Yeah, Equinox is supposed to be a simpler version
> > of AppFuse, with no
> > code generation or other bells and whistles that you
> > might want when
> > you're first learning.  I created it in order
> > to develop a sample
> > application for my Spring Live book @ www.springlive.com.
> > Most of the
> > code documentation is in this book.  Unfortunately, the
> > way Maven
> > works is not.  I'd suggest downloading Maestro, which
> > is free software
> > that includes a guide on how to use Equinox with Maven.
> >
> >
> http://www.mergere.com/common/reg.jsp?form_source=m-maestro&form_landing=m-products
> >
> > Hope this helps,
> >
> > Matt
> > Matt
> >  >
> >  >
> >  >
> >  >
> >  >  ________________________________
> >  >
> >  > xiuxiu
> >  > 2006-11-28
> >  >  ________________________________
> >  >
> >  > 发件人: Matt Raible
> >  > 发送时间: 2006-11-28 15:02:25
> >  > 收件人: [hidden email]
> >  > 抄送:
> >  > 主题: Re: [equinox-user] how to build development
> > environment for equinox ?
> >  >
> >  >
> >  > Equinox's directory structure follows Maven's
> >  > standard directory
> >  > structure[1], which AppFuse 2.0 will be following as well.
> >  >
> >  > Here's how it maps compared to AppFuse:
> >  >
> >  > web -   > src/main/webapp
> >  > src -   > src/main/java
> >  > test -   > src/test/java
> >  >
> >  > If you use Ctrl+Shift+R in Eclipse, it should provide
> >  > an easy way to
> >  > find files and classes.
> >  >
> >  > Hope this helps,
> >  >
> >  > Matt
> >  >
> >  > [1]
> >  >
> >
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> >  >
> >  > On 11/27/06, xiuxiu    <[hidden email]   > wrote:
> >  >   >
> >  >   >
> >  >   > Hi,
> >  >   >
> >  >   >     I just downloaded the latest version of
> equinox
> > (1.7)
> >  > and passed all the
> >  >   > test (via test-all).
> >  >   >     But the structure of the equinox (1.7) is far
> away
> >  > from the
> >  >   > appfuse(1.9.4) And it start to use Maven which
> > confused
> >  > me. Since there are
> >  >   > few documentation for equinox and the
> >  > documentation of appfuse helps little
> >  >   > because of the different structure, it is diffcult
> >  > for me to continue.
> >  >   >       So I wonder whether there is equinox whose
> >  > folder structure is the
> >  >   > same as appfuse (1.9.4) ?
> >  >   >     Expect to your reply. Thanks.
> >  >   >
> >  >   >  ________________________________
> >  >   >
> >  >   > xiuxiu
> >  >   > 2006-11-28
> >  >
> >  >
> >  > --
> >  > http://raibledesigns.com
> >  >
> >  >
> >
> ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail:
> >  > [hidden email]
> >  > For additional commands, e-mail:
> >  > [hidden email]
> >  >
> >
> >
> > --
> > http://raibledesigns.com
>
>
> --
> http://raibledesigns.com


--
http://raibledesigns.com
罗霄

Re: Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
Some javascript/style in this post has been disabled (why?)
I found the problem.
 
In the README.TXT of equinox 1.7.
 
Eclipse:
----------
Download Maven 2.0.4, install it, and add $M2_HOME/bin to your $PATH. From the
command line, cd into the equinox directory and type "mvn idea:idea". Get a cup
of coffee or soda (or even better, a beer!) while you wait for Maven to download
all the dependencies.
 
It should be "mvn eclipse:eclipse".
 

xiuxiu
2006-11-29

发件人: Matt Raible
发送时间: 2006-11-28 17:24:35
收件人: [hidden email]
抄送:
主题: Re: Re: Re: [equinox-user] how to build development environment for equinox ?
 
You need to run "mvn eclipse:eclipse" before you run the command below.
 
 
If you downloaded Equinox from the site, you should already have the
.project and .classpath files, you'll simply need to run:
 
"mvn -Declipse.workspace=c:/tools/eclipse eclipse:add-maven-repo"
 
And make sure c:/tools/eclipse matches your workspace location.
 
Hope this helps,
 
Matt
 
On 11/28/06, xiuxiu  <[hidden email] > wrote:
>
>
> The first time , I ran mvn -Declipse.workspace= <path-to-eclipse-workspace >
> eclipse:add-maven-repo
> and .project , .classpath file generated.
> But after I import the project, is lacks spring-test.jar,
> strutstestcase.jar, jmock.jar , spring-mock.jar.
>
> The second time, after I ran that command, two project file didn't
> generated.
> After I import this folder, seems lacks servlet.jar and jsp.jar.
>
> I have to say I am totally confused.
>
>
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-28
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 16:11:13
> 收件人: [hidden email]
> 抄送:
> 主题: Re: Re: [equinox-user] how to build development environment for equinox
> ?
>
>
>
> On 11/28/06, xiuxiu   <[hidden email]  > wrote:
>  >
>  >
>  > Thanks for your reply.
>  > I have to say it is so different from appfuse 1.9.4 that
> I am not used to.
>  > I try to build eclipse environment and generate
> the project file according
>  > to the instruction in the Quick Start. It seems
> several jar file for the
>  > test class lost.
>  > I think it is related to the maven2 but I am not
> famaliar with this tools.
>
> What error(s) are you getting?
>
>  >
>  > By the way, in the equinox , there is no dbunit and
> appgen supported. What a
>  > pity. I read the tutorial of appfuse but it doesn't
> go well for equinox.
>
> Yeah, Equinox is supposed to be a simpler version
> of AppFuse, with no
> code generation or other bells and whistles that you
> might want when
> you're first learning.  I created it in order
> to develop a sample
> application for my Spring Live book @ www.springlive.com.
> Most of the
> code documentation is in this book.  Unfortunately, the
> way Maven
> works is not.  I'd suggest downloading Maestro, which
> is free software
> that includes a guide on how to use Equinox with Maven.
>
>
> Hope this helps,
>
> Matt
> Matt
>  >
>  >
>  >
>  >
>  >  ________________________________
>  >
>  > xiuxiu
>  > 2006-11-28
>  >  ________________________________
>  >
>  > 发件人: Matt Raible
>  > 发送时间: 2006-11-28 15:02:25
>  > 收件人: [hidden email]
>  > 抄送:
>  > 主题: Re: [equinox-user] how to build development
> environment for equinox ?
>  >
>  >
>  > Equinox's directory structure follows Maven's
>  > standard directory
>  > structure[1], which AppFuse 2.0 will be following as well.
>  >
>  > Here's how it maps compared to AppFuse:
>  >
>  > web -   > src/main/webapp
>  > src -   > src/main/java
>  > test -   > src/test/java
>  >
>  > If you use Ctrl+Shift+R in Eclipse, it should provide
>  > an easy way to
>  > find files and classes.
>  >
>  > Hope this helps,
>  >
>  > Matt
>  >
>  > [1]
>  >
>  >
>  > On 11/27/06, xiuxiu    <[hidden email]   > wrote:
>  >   >
>  >   >
>  >   > Hi,
>  >   >
>  >   >     I just downloaded the latest version of equinox
> (1.7)
>  > and passed all the
>  >   > test (via test-all).
>  >   >     But the structure of the equinox (1.7) is far away
>  > from the
>  >   > appfuse(1.9.4) And it start to use Maven which
> confused
>  > me. Since there are
>  >   > few documentation for equinox and the
>  > documentation of appfuse helps little
>  >   > because of the different structure, it is diffcult
>  > for me to continue.
>  >   >       So I wonder whether there is equinox whose
>  > folder structure is the
>  >   > same as appfuse (1.9.4) ?
>  >   >     Expect to your reply. Thanks.
>  >   >
>  >   >  ________________________________
>  >   >
>  >   > xiuxiu
>  >   > 2006-11-28
>  >
>  >
>  > --
>  >
>  >
> ---------------------------------------------------------------------
>  > To unsubscribe, e-mail:
>  > For additional commands, e-mail:
>  >
>
>
> --
 
 
-- 
Matt Raible-3

Re: Re: Re: Re: how to build development environment for equinox ?

Reply Threaded More More options
Print post
Permalink
Sorry about that.  This has been fixed in CVS.

Matt

On 11/28/06, xiuxiu <[hidden email]> wrote:

>
>
> I found the problem.
>
> In the README.TXT of equinox 1.7.
>
> Eclipse:
> ----------
> Download Maven 2.0.4, install it, and add $M2_HOME/bin to your $PATH. From
> the
> command line, cd into the equinox directory and type "mvn idea:idea". Get a
> cup
> of coffee or soda (or even better, a beer!) while you wait for Maven to
> download
> all the dependencies.
>
> It should be "mvn eclipse:eclipse".
>
>
>  ________________________________
>
> xiuxiu
> 2006-11-29
>  ________________________________
>
> 发件人: Matt Raible
> 发送时间: 2006-11-28 17:24:35
> 收件人: [hidden email]
> 抄送:
> 主题: Re: Re: Re: [equinox-user] how to build development environment for
> equinox ?
>
>
>
> You need to run "mvn eclipse:eclipse" before you run
> the command below.
>
> http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html
>
> If you downloaded Equinox from the site, you should
> already have the
> .project and .classpath files, you'll simply need to run:
>
> "mvn -Declipse.workspace=c:/tools/eclipse
> eclipse:add-maven-repo"
>
> And make sure c:/tools/eclipse matches your
> workspace location.
>
> Hope this helps,
>
> Matt
>
> On 11/28/06, xiuxiu  <[hidden email] > wrote:
> >
> >
> > The first time , I ran mvn -Declipse.workspace= <path-to-eclipse-workspace
> >
> > eclipse:add-maven-repo
> > and .project , .classpath file generated.
> > But after I import the project, is lacks spring-test.jar,
> > strutstestcase.jar, jmock.jar , spring-mock.jar.
> >
> > The second time, after I ran that command, two
> project file didn't
> > generated.
> > After I import this folder, seems lacks servlet.jar and
> jsp.jar.
> >
> > I have to say I am totally confused.
> >
> >
> >
> >
> >  ________________________________
> >
> > xiuxiu
> > 2006-11-28
> >  ________________________________
> >
> > 发件人: Matt Raible
> > 发送时间: 2006-11-28 16:11:13
> > 收件人: [hidden email]
> > 抄送:
> > 主题: Re: Re: [equinox-user] how to build
> development environment for equinox
> > ?
> >
> >
> >
> > On 11/28/06, xiuxiu   <[hidden email]  > wrote:
> >  >
> >  >
> >  > Thanks for your reply.
> >  > I have to say it is so different from appfuse 1.9.4
> that
> > I am not used to.
> >  > I try to build eclipse environment and generate
> > the project file according
> >  > to the instruction in the Quick Start. It seems
> > several jar file for the
> >  > test class lost.
> >  > I think it is related to the maven2 but I am not
> > famaliar with this tools.
> >
> > What error(s) are you getting?
> >
> >  >
> >  > By the way, in the equinox , there is no dbunit and
> > appgen supported. What a
> >  > pity. I read the tutorial of appfuse but it doesn't
> > go well for equinox.
> >
> > Yeah, Equinox is supposed to be a simpler version
> > of AppFuse, with no
> > code generation or other bells and whistles that you
> > might want when
> > you're first learning.  I created it in order
> > to develop a sample
> > application for my Spring Live book @ www.springlive.com.
> > Most of the
> > code documentation is in this book.  Unfortunately, the
> > way Maven
> > works is not.  I'd suggest downloading Maestro, which
> > is free software
> > that includes a guide on how to use Equinox with Maven.
> >
> >
> http://www.mergere.com/common/reg.jsp?form_source=m-maestro&form_landing=m-products
> >
> > Hope this helps,
> >
> > Matt
> > Matt
> >  >
> >  >
> >  >
> >  >
> >  >  ________________________________
> >  >
> >  > xiuxiu
> >  > 2006-11-28
> >  >  ________________________________
> >  >
> >  > 发件人: Matt Raible
> >  > 发送时间: 2006-11-28 15:02:25
> >  > 收件人: [hidden email]
> >  > 抄送:
> >  > 主题: Re: [equinox-user] how to build development
> > environment for equinox ?
> >  >
> >  >
> >  > Equinox's directory structure follows Maven's
> >  > standard directory
> >  > structure[1], which AppFuse 2.0 will be following as well.
> >  >
> >  > Here's how it maps compared to AppFuse:
> >  >
> >  > web -   > src/main/webapp
> >  > src -   > src/main/java
> >  > test -   > src/test/java
> >  >
> >  > If you use Ctrl+Shift+R in Eclipse, it should provide
> >  > an easy way to
> >  > find files and classes.
> >  >
> >  > Hope this helps,
> >  >
> >  > Matt
> >  >
> >  > [1]
> >  >
> >
> http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html
> >  >
> >  > On 11/27/06, xiuxiu    <[hidden email]   > wrote:
> >  >   >
> >  >   >
> >  >   > Hi,
> >  >   >
> >  >   >     I just downloaded the latest version of
> equinox
> > (1.7)
> >  > and passed all the
> >  >   > test (via test-all).
> >  >   >     But the structure of the equinox (1.7) is far
> away
> >  > from the
> >  >   > appfuse(1.9.4) And it start to use Maven which
> > confused
> >  > me. Since there are
> >  >   > few documentation for equinox and the
> >  > documentation of appfuse helps little
> >  >   > because of the different structure, it is diffcult
> >  > for me to continue.
> >  >   >       So I wonder whether there is equinox whose
> >  > folder structure is the
> >  >   > same as appfuse (1.9.4) ?
> >  >   >     Expect to your reply. Thanks.
> >  >   >
> >  >   >  ________________________________
> >  >   >
> >  >   > xiuxiu
> >  >   > 2006-11-28
> >  >
> >  >
> >  > --
> >  > http://raibledesigns.com
> >  >
> >  >
> >
> ---------------------------------------------------------------------
> >  > To unsubscribe, e-mail:
> >  > [hidden email]
> >  > For additional commands, e-mail:
> >  > [hidden email]
> >  >
> >
> >
> > --
> > http://raibledesigns.com
>
>
> --
> http://raibledesigns.com


--
http://raibledesigns.com
Kiran Karnati-2

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
Yes you are right Matt..

I am sorry ... I did a mistake in setter method ... " setUserDao() " I wrote and it should be " setUserDAO()"

now it is working (test is successfull) with out transaction Proxy ...

If I want to make my usermanager with TransactionProxy .. it is saying ...

"Bean Creation error ..... Illegal Transaction Attribute token : [PROPAGATION_REQUIRED]

where could I do mistake in this case ?

thanks in advance ...

Kiran
-------- Original-Nachricht --------
Datum: Tue, 28 Nov 2006 13:43:24 -0700
Von: "Matt Raible" <[hidden email]>
An: [hidden email]
Betreff: Re: [equinox-user] User Manager Test Failed

> The latest version of Equinox uses userDao instead of userDAO.  What
> is the set method named in your UserManagerImpl?
>
> Matt
>
> On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > Dear Matt,
> >
> > Did you find anything I can do solve the problem of getting "userDAO" is
> not writable ... ?
> >
> > I have been waiting your reply.
> >
> > Thank you in advance.
> >
> > Regards
> > Kiran
> > -------- Original-Nachricht --------
> > Datum: Tue, 28 Nov 2006 11:48:29 +0100
> > Von: "Kiran Karnati" <[hidden email]>
> > An: [hidden email]
> > Betreff: Re: [equinox-user] User Manager Test Failed
> >
> > > yes Matt,
> > >
> > > I have started with small letter that is "userDAO" exactly like in
> your
> > > book ...
> > >
> > > but what don't understand is if it has problem in creating that bean
> why
> > > it is clearly saying that "userDAO"  is not writable ...
> > >
> > > do you have any more suggestions ?
> > >
> > > but it is not working Matt ...
> > >
> > > I will be thankful for your help ...
> > >
> > > -------- Original-Nachricht --------
> > > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > > Von: "Matt Raible" <[hidden email]>
> > > An: [hidden email]
> > > Betreff: Re: [equinox-user] User Manager Test Failed
> > >
> > > > What does your userManager bean definition look like?  I'm willing
> to
> > > > bet you need to change it so it has:
> > > >
> > > > <property name="userDAO" ...>
> > > >
> > > > instead of:
> > > >
> > > > <property name="UserDAO"...>
> > > >
> > > > Spring uses JavaBeans conventions, so the first letter should be
> > > > decapitalized and the "set" chopped off from the matching method
> name.
> > > >
> > > > Hope this helps,
> > > >
> > > > Matt
> > > >
> > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > Dear Matt,
> > > > >
> > > > > I am following Spring Live book.
> > > > >
> > > > > Till UserDao Test it was ok , but when I included UserManager and
> > > > UserManagerTarget beans to my applicationContext.xml ... started the
> > > problems ...
> > > > >
> > > > > it is saying that there is a problem in executing the target for
> > > > UserManager and saying nested exception in UserManagerImpl , '
> "UserDAO"
> > > is not
> > > > Writable ' ....
> > > > >
> > > > > doesn't matter which test I run always it is saying the same...
> after
> > > > creating the Usermanager beans I could not run even UserDAO Test
> also
> > > ...
> > > > >
> > > > > and even I can't see any result in the web browser after deploy
> reload
> > > > ...
> > > > >
> > > > > I hope you have a solution for this problem and I know that there
> is
> > > > some where a small problem and please help me solving it ...
> > > > >
> > > > > Thank you
> > > > > --
> > > > > Best regards,
> > > > >
> > > > > Kiran Karnati
> > > > >
> > > > >
> > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > http://raibledesigns.com
> > >
> > > --
> > > Best regards,
> > >
> > > Kiran Karnati
> > >
> > >
> > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> >
> > --
> > Best regards,
> >
> > Kiran Karnati
> >
> >
> > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> www.deutschlandsegelt.de
> > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> Cup-Yacht!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> http://raibledesigns.com

--
Best regards,

Kiran Karnati


"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Kiran Karnati-2

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
In reply to this post by Matt Raible-3
Yes you are right Matt..

I am sorry ... I did a mistake in setter method ... " setUserDao() " I wrote and it should be " setUserDAO()"

now it is working (test is successfull) with out transaction Proxy ...

If I want to make my usermanager with TransactionProxy .. it is saying ...

"Bean Creation error ..... Illegal Transaction Attribute token : [PROPAGATION_REQUIRED]

where could I do mistake in this case ?

thanks in advance ...

Kiran
-------- Original-Nachricht --------
Datum: Tue, 28 Nov 2006 13:43:24 -0700
Von: "Matt Raible" <[hidden email]>
An: [hidden email]
Betreff: Re: [equinox-user] User Manager Test Failed

> The latest version of Equinox uses userDao instead of userDAO.  What
> is the set method named in your UserManagerImpl?
>
> Matt
>
> On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > Dear Matt,
> >
> > Did you find anything I can do solve the problem of getting "userDAO" is
> not writable ... ?
> >
> > I have been waiting your reply.
> >
> > Thank you in advance.
> >
> > Regards
> > Kiran
> > -------- Original-Nachricht --------
> > Datum: Tue, 28 Nov 2006 11:48:29 +0100
> > Von: "Kiran Karnati" <[hidden email]>
> > An: [hidden email]
> > Betreff: Re: [equinox-user] User Manager Test Failed
> >
> > > yes Matt,
> > >
> > > I have started with small letter that is "userDAO" exactly like in
> your
> > > book ...
> > >
> > > but what don't understand is if it has problem in creating that bean
> why
> > > it is clearly saying that "userDAO"  is not writable ...
> > >
> > > do you have any more suggestions ?
> > >
> > > but it is not working Matt ...
> > >
> > > I will be thankful for your help ...
> > >
> > > -------- Original-Nachricht --------
> > > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > > Von: "Matt Raible" <[hidden email]>
> > > An: [hidden email]
> > > Betreff: Re: [equinox-user] User Manager Test Failed
> > >
> > > > What does your userManager bean definition look like?  I'm willing
> to
> > > > bet you need to change it so it has:
> > > >
> > > > <property name="userDAO" ...>
> > > >
> > > > instead of:
> > > >
> > > > <property name="UserDAO"...>
> > > >
> > > > Spring uses JavaBeans conventions, so the first letter should be
> > > > decapitalized and the "set" chopped off from the matching method
> name.
> > > >
> > > > Hope this helps,
> > > >
> > > > Matt
> > > >
> > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > Dear Matt,
> > > > >
> > > > > I am following Spring Live book.
> > > > >
> > > > > Till UserDao Test it was ok , but when I included UserManager and
> > > > UserManagerTarget beans to my applicationContext.xml ... started the
> > > problems ...
> > > > >
> > > > > it is saying that there is a problem in executing the target for
> > > > UserManager and saying nested exception in UserManagerImpl , '
> "UserDAO"
> > > is not
> > > > Writable ' ....
> > > > >
> > > > > doesn't matter which test I run always it is saying the same...
> after
> > > > creating the Usermanager beans I could not run even UserDAO Test
> also
> > > ...
> > > > >
> > > > > and even I can't see any result in the web browser after deploy
> reload
> > > > ...
> > > > >
> > > > > I hope you have a solution for this problem and I know that there
> is
> > > > some where a small problem and please help me solving it ...
> > > > >
> > > > > Thank you
> > > > > --
> > > > > Best regards,
> > > > >
> > > > > Kiran Karnati
> > > > >
> > > > >
> > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > http://raibledesigns.com
> > >
> > > --
> > > Best regards,
> > >
> > > Kiran Karnati
> > >
> > >
> > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> >
> > --
> > Best regards,
> >
> > Kiran Karnati
> >
> >
> > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> www.deutschlandsegelt.de
> > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> Cup-Yacht!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> http://raibledesigns.com

--
Best regards,

Kiran Karnati


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Matt Raible-3

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
What does your userManager bean look like in XML?  Also, what does
your test method look like that causes this issue?

Matt

On 11/29/06, Kiran Karnati <[hidden email]> wrote:

> Yes you are right Matt..
>
> I am sorry ... I did a mistake in setter method ... " setUserDao() " I wrote and it should be " setUserDAO()"
>
> now it is working (test is successfull) with out transaction Proxy ...
>
> If I want to make my usermanager with TransactionProxy .. it is saying ...
>
> "Bean Creation error ..... Illegal Transaction Attribute token : [PROPAGATION_REQUIRED]
>
> where could I do mistake in this case ?
>
> thanks in advance ...
>
> Kiran
> -------- Original-Nachricht --------
> Datum: Tue, 28 Nov 2006 13:43:24 -0700
> Von: "Matt Raible" <[hidden email]>
> An: [hidden email]
> Betreff: Re: [equinox-user] User Manager Test Failed
>
> > The latest version of Equinox uses userDao instead of userDAO.  What
> > is the set method named in your UserManagerImpl?
> >
> > Matt
> >
> > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > Dear Matt,
> > >
> > > Did you find anything I can do solve the problem of getting "userDAO" is
> > not writable ... ?
> > >
> > > I have been waiting your reply.
> > >
> > > Thank you in advance.
> > >
> > > Regards
> > > Kiran
> > > -------- Original-Nachricht --------
> > > Datum: Tue, 28 Nov 2006 11:48:29 +0100
> > > Von: "Kiran Karnati" <[hidden email]>
> > > An: [hidden email]
> > > Betreff: Re: [equinox-user] User Manager Test Failed
> > >
> > > > yes Matt,
> > > >
> > > > I have started with small letter that is "userDAO" exactly like in
> > your
> > > > book ...
> > > >
> > > > but what don't understand is if it has problem in creating that bean
> > why
> > > > it is clearly saying that "userDAO"  is not writable ...
> > > >
> > > > do you have any more suggestions ?
> > > >
> > > > but it is not working Matt ...
> > > >
> > > > I will be thankful for your help ...
> > > >
> > > > -------- Original-Nachricht --------
> > > > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > > > Von: "Matt Raible" <[hidden email]>
> > > > An: [hidden email]
> > > > Betreff: Re: [equinox-user] User Manager Test Failed
> > > >
> > > > > What does your userManager bean definition look like?  I'm willing
> > to
> > > > > bet you need to change it so it has:
> > > > >
> > > > > <property name="userDAO" ...>
> > > > >
> > > > > instead of:
> > > > >
> > > > > <property name="UserDAO"...>
> > > > >
> > > > > Spring uses JavaBeans conventions, so the first letter should be
> > > > > decapitalized and the "set" chopped off from the matching method
> > name.
> > > > >
> > > > > Hope this helps,
> > > > >
> > > > > Matt
> > > > >
> > > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > > Dear Matt,
> > > > > >
> > > > > > I am following Spring Live book.
> > > > > >
> > > > > > Till UserDao Test it was ok , but when I included UserManager and
> > > > > UserManagerTarget beans to my applicationContext.xml ... started the
> > > > problems ...
> > > > > >
> > > > > > it is saying that there is a problem in executing the target for
> > > > > UserManager and saying nested exception in UserManagerImpl , '
> > "UserDAO"
> > > > is not
> > > > > Writable ' ....
> > > > > >
> > > > > > doesn't matter which test I run always it is saying the same...
> > after
> > > > > creating the Usermanager beans I could not run even UserDAO Test
> > also
> > > > ...
> > > > > >
> > > > > > and even I can't see any result in the web browser after deploy
> > reload
> > > > > ...
> > > > > >
> > > > > > I hope you have a solution for this problem and I know that there
> > is
> > > > > some where a small problem and please help me solving it ...
> > > > > >
> > > > > > Thank you
> > > > > > --
> > > > > > Best regards,
> > > > > >
> > > > > > Kiran Karnati
> > > > > >
> > > > > >
> > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > http://raibledesigns.com
> > > >
> > > > --
> > > > Best regards,
> > > >
> > > > Kiran Karnati
> > > >
> > > >
> > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > >
> > > --
> > > Best regards,
> > >
> > > Kiran Karnati
> > >
> > >
> > > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> > www.deutschlandsegelt.de
> > > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> > Cup-Yacht!
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
>
> --
> Best regards,
>
> Kiran Karnati
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
Kiran Karnati-2

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
Hi Matt,

here are my test classes and application context beans ...

it is working with out transaction proxy ... thanks in advance . ..Kiran

public class UserManagerTest extends TestCase {
        private static Log log = LogFactory.getLog(UserManagerTest.class);
        private ApplicationContext ctx;
        private User user;
        private UserManager mgr;
       
        protected void setUp() throws Exception {
                String[] paths = { "/WEB-INF/applicationContext.xml"};
                ctx = new ClassPathXmlApplicationContext(paths);
                mgr = (UserManager) ctx.getBean("userManager");
        }
       
        protected void tearDown() throws Exception {
                user = null;
                mgr = null;
        }
       
        public void testAddAndRemoveUser() throws Exception {
                user = new User();
                user.setFirstName("Easter");
                user.setLastName("Bunny");
               
                user = mgr.saveUser(user);
               
                assertNotNull(user.getId());
               
                if (log.isDebugEnabled()) {
                        log.debug("Rermoving user ...");
                }
               
                String userId = user.getId().toString();
                mgr.removeUser(userId);
               
                user = mgr.getUser(userId);
                assertNull("User object found in database", user);
               
        }
       
       
       
}







    <bean id="userManager"
    class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    <property name="transactionManager">
    <ref local="transactionManager"/>
    </property>
    <property name="target">
    <ref local="userManagerTarget"/>
    </property>
    <property name="transactionAttributes">
    <props>
    <prop key="save*">PROPAGATON_REQUIRED</prop>
    <prop key="remove*">PROPAGATON_REQUIRED</prop>
    <prop key="*">PROPAGATON_REQUIRED,readOnly</prop>
    </props>    
    </property>
    </bean>
   
    <bean id="userManagerTarget"
     class="org.appfuse.service.impl.UserManagerImpl">      
       <property name="userDAO">
         <ref local="userDAO"/>
       </property>
    </bean>





-------- Original-Nachricht --------
Datum: Wed, 29 Nov 2006 09:46:20 -0700
Von: "Matt Raible" <[hidden email]>
An: [hidden email]
Betreff: Re: [equinox-user] User Manager Test Failed

> What does your userManager bean look like in XML?  Also, what does
> your test method look like that causes this issue?
>
> Matt
>
> On 11/29/06, Kiran Karnati <[hidden email]> wrote:
> > Yes you are right Matt..
> >
> > I am sorry ... I did a mistake in setter method ... " setUserDao() " I
> wrote and it should be " setUserDAO()"
> >
> > now it is working (test is successfull) with out transaction Proxy ...
> >
> > If I want to make my usermanager with TransactionProxy .. it is saying
> ...
> >
> > "Bean Creation error ..... Illegal Transaction Attribute token :
> [PROPAGATION_REQUIRED]
> >
> > where could I do mistake in this case ?
> >
> > thanks in advance ...
> >
> > Kiran
> > -------- Original-Nachricht --------
> > Datum: Tue, 28 Nov 2006 13:43:24 -0700
> > Von: "Matt Raible" <[hidden email]>
> > An: [hidden email]
> > Betreff: Re: [equinox-user] User Manager Test Failed
> >
> > > The latest version of Equinox uses userDao instead of userDAO.  What
> > > is the set method named in your UserManagerImpl?
> > >
> > > Matt
> > >
> > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > Dear Matt,
> > > >
> > > > Did you find anything I can do solve the problem of getting
> "userDAO" is
> > > not writable ... ?
> > > >
> > > > I have been waiting your reply.
> > > >
> > > > Thank you in advance.
> > > >
> > > > Regards
> > > > Kiran
> > > > -------- Original-Nachricht --------
> > > > Datum: Tue, 28 Nov 2006 11:48:29 +0100
> > > > Von: "Kiran Karnati" <[hidden email]>
> > > > An: [hidden email]
> > > > Betreff: Re: [equinox-user] User Manager Test Failed
> > > >
> > > > > yes Matt,
> > > > >
> > > > > I have started with small letter that is "userDAO" exactly like in
> > > your
> > > > > book ...
> > > > >
> > > > > but what don't understand is if it has problem in creating that
> bean
> > > why
> > > > > it is clearly saying that "userDAO"  is not writable ...
> > > > >
> > > > > do you have any more suggestions ?
> > > > >
> > > > > but it is not working Matt ...
> > > > >
> > > > > I will be thankful for your help ...
> > > > >
> > > > > -------- Original-Nachricht --------
> > > > > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > > > > Von: "Matt Raible" <[hidden email]>
> > > > > An: [hidden email]
> > > > > Betreff: Re: [equinox-user] User Manager Test Failed
> > > > >
> > > > > > What does your userManager bean definition look like?  I'm
> willing
> > > to
> > > > > > bet you need to change it so it has:
> > > > > >
> > > > > > <property name="userDAO" ...>
> > > > > >
> > > > > > instead of:
> > > > > >
> > > > > > <property name="UserDAO"...>
> > > > > >
> > > > > > Spring uses JavaBeans conventions, so the first letter should be
> > > > > > decapitalized and the "set" chopped off from the matching method
> > > name.
> > > > > >
> > > > > > Hope this helps,
> > > > > >
> > > > > > Matt
> > > > > >
> > > > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > > > Dear Matt,
> > > > > > >
> > > > > > > I am following Spring Live book.
> > > > > > >
> > > > > > > Till UserDao Test it was ok , but when I included UserManager
> and
> > > > > > UserManagerTarget beans to my applicationContext.xml ... started
> the
> > > > > problems ...
> > > > > > >
> > > > > > > it is saying that there is a problem in executing the target
> for
> > > > > > UserManager and saying nested exception in UserManagerImpl , '
> > > "UserDAO"
> > > > > is not
> > > > > > Writable ' ....
> > > > > > >
> > > > > > > doesn't matter which test I run always it is saying the
> same...
> > > after
> > > > > > creating the Usermanager beans I could not run even UserDAO Test
> > > also
> > > > > ...
> > > > > > >
> > > > > > > and even I can't see any result in the web browser after
> deploy
> > > reload
> > > > > > ...
> > > > > > >
> > > > > > > I hope you have a solution for this problem and I know that
> there
> > > is
> > > > > > some where a small problem and please help me solving it ...
> > > > > > >
> > > > > > > Thank you
> > > > > > > --
> > > > > > > Best regards,
> > > > > > >
> > > > > > > Kiran Karnati
> > > > > > >
> > > > > > >
> > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu
> sparen!
> > > > > > > Ideal für Modem und ISDN:
> http://www.gmx.net/de/go/smartsurfer
> > > > > > >
> > > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > For additional commands, e-mail:
> [hidden email]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > http://raibledesigns.com
> > > > >
> > > > > --
> > > > > Best regards,
> > > > >
> > > > > Kiran Karnati
> > > > >
> > > > >
> > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > >
> > > > --
> > > > Best regards,
> > > >
> > > > Kiran Karnati
> > > >
> > > >
> > > > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> > > www.deutschlandsegelt.de
> > > > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> > > Cup-Yacht!
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> > > >
> > >
> > >
> > > --
> > > http://raibledesigns.com
> >
> > --
> > Best regards,
> >
> > Kiran Karnati
> >
> >
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>
> --
> http://raibledesigns.com

--
Best regards,

Kiran Karnati


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Matt Raible-3

Re: User Manager Test Failed

Reply Threaded More More options
Print post
Permalink
Have you tried changing your userDAO references in userManagerTarget
to userDao?  The name has to match the bean id of your UserDao
implementation.  What version of Equinox are you using?

Matt

On 11/29/06, Kiran Karnati <[hidden email]> wrote:

> Hi Matt,
>
> here are my test classes and application context beans ...
>
> it is working with out transaction proxy ... thanks in advance . ..Kiran
>
> public class UserManagerTest extends TestCase {
>         private static Log log = LogFactory.getLog(UserManagerTest.class);
>         private ApplicationContext ctx;
>         private User user;
>         private UserManager mgr;
>
>         protected void setUp() throws Exception {
>                 String[] paths = { "/WEB-INF/applicationContext.xml"};
>                 ctx = new ClassPathXmlApplicationContext(paths);
>                 mgr = (UserManager) ctx.getBean("userManager");
>         }
>
>         protected void tearDown() throws Exception {
>                 user = null;
>                 mgr = null;
>         }
>
>         public void testAddAndRemoveUser() throws Exception {
>                 user = new User();
>                 user.setFirstName("Easter");
>                 user.setLastName("Bunny");
>
>                 user = mgr.saveUser(user);
>
>                 assertNotNull(user.getId());
>
>                 if (log.isDebugEnabled()) {
>                         log.debug("Rermoving user ...");
>                 }
>
>                 String userId = user.getId().toString();
>                 mgr.removeUser(userId);
>
>                 user = mgr.getUser(userId);
>                 assertNull("User object found in database", user);
>
>         }
>
>
>
> }
>
>
>
>
>
>
>
>     <bean id="userManager"
>         class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
>         <property name="transactionManager">
>                 <ref local="transactionManager"/>
>         </property>
>         <property name="target">
>                 <ref local="userManagerTarget"/>
>         </property>
>         <property name="transactionAttributes">
>                 <props>
>                         <prop key="save*">PROPAGATON_REQUIRED</prop>
>                         <prop key="remove*">PROPAGATON_REQUIRED</prop>
>                         <prop key="*">PROPAGATON_REQUIRED,readOnly</prop>
>                 </props>
>         </property>
>     </bean>
>
>     <bean id="userManagerTarget"
>      class="org.appfuse.service.impl.UserManagerImpl">
>        <property name="userDAO">
>          <ref local="userDAO"/>
>        </property>
>     </bean>
>
>
>
>
>
> -------- Original-Nachricht --------
> Datum: Wed, 29 Nov 2006 09:46:20 -0700
> Von: "Matt Raible" <[hidden email]>
> An: [hidden email]
> Betreff: Re: [equinox-user] User Manager Test Failed
>
> > What does your userManager bean look like in XML?  Also, what does
> > your test method look like that causes this issue?
> >
> > Matt
> >
> > On 11/29/06, Kiran Karnati <[hidden email]> wrote:
> > > Yes you are right Matt..
> > >
> > > I am sorry ... I did a mistake in setter method ... " setUserDao() " I
> > wrote and it should be " setUserDAO()"
> > >
> > > now it is working (test is successfull) with out transaction Proxy ...
> > >
> > > If I want to make my usermanager with TransactionProxy .. it is saying
> > ...
> > >
> > > "Bean Creation error ..... Illegal Transaction Attribute token :
> > [PROPAGATION_REQUIRED]
> > >
> > > where could I do mistake in this case ?
> > >
> > > thanks in advance ...
> > >
> > > Kiran
> > > -------- Original-Nachricht --------
> > > Datum: Tue, 28 Nov 2006 13:43:24 -0700
> > > Von: "Matt Raible" <[hidden email]>
> > > An: [hidden email]
> > > Betreff: Re: [equinox-user] User Manager Test Failed
> > >
> > > > The latest version of Equinox uses userDao instead of userDAO.  What
> > > > is the set method named in your UserManagerImpl?
> > > >
> > > > Matt
> > > >
> > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > Dear Matt,
> > > > >
> > > > > Did you find anything I can do solve the problem of getting
> > "userDAO" is
> > > > not writable ... ?
> > > > >
> > > > > I have been waiting your reply.
> > > > >
> > > > > Thank you in advance.
> > > > >
> > > > > Regards
> > > > > Kiran
> > > > > -------- Original-Nachricht --------
> > > > > Datum: Tue, 28 Nov 2006 11:48:29 +0100
> > > > > Von: "Kiran Karnati" <[hidden email]>
> > > > > An: [hidden email]
> > > > > Betreff: Re: [equinox-user] User Manager Test Failed
> > > > >
> > > > > > yes Matt,
> > > > > >
> > > > > > I have started with small letter that is "userDAO" exactly like in
> > > > your
> > > > > > book ...
> > > > > >
> > > > > > but what don't understand is if it has problem in creating that
> > bean
> > > > why
> > > > > > it is clearly saying that "userDAO"  is not writable ...
> > > > > >
> > > > > > do you have any more suggestions ?
> > > > > >
> > > > > > but it is not working Matt ...
> > > > > >
> > > > > > I will be thankful for your help ...
> > > > > >
> > > > > > -------- Original-Nachricht --------
> > > > > > Datum: Tue, 28 Nov 2006 01:31:12 -0700
> > > > > > Von: "Matt Raible" <[hidden email]>
> > > > > > An: [hidden email]
> > > > > > Betreff: Re: [equinox-user] User Manager Test Failed
> > > > > >
> > > > > > > What does your userManager bean definition look like?  I'm
> > willing
> > > > to
> > > > > > > bet you need to change it so it has:
> > > > > > >
> > > > > > > <property name="userDAO" ...>
> > > > > > >
> > > > > > > instead of:
> > > > > > >
> > > > > > > <property name="UserDAO"...>
> > > > > > >
> > > > > > > Spring uses JavaBeans conventions, so the first letter should be
> > > > > > > decapitalized and the "set" chopped off from the matching method
> > > > name.
> > > > > > >
> > > > > > > Hope this helps,
> > > > > > >
> > > > > > > Matt
> > > > > > >
> > > > > > > On 11/28/06, Kiran Karnati <[hidden email]> wrote:
> > > > > > > > Dear Matt,
> > > > > > > >
> > > > > > > > I am following Spring Live book.
> > > > > > > >
> > > > > > > > Till UserDao Test it was ok , but when I included UserManager
> > and
> > > > > > > UserManagerTarget beans to my applicationContext.xml ... started
> > the
> > > > > > problems ...
> > > > > > > >
> > > > > > > > it is saying that there is a problem in executing the target
> > for
> > > > > > > UserManager and saying nested exception in UserManagerImpl , '
> > > > "UserDAO"
> > > > > > is not
> > > > > > > Writable ' ....
> > > > > > > >
> > > > > > > > doesn't matter which test I run always it is saying the
> > same...
> > > > after
> > > > > > > creating the Usermanager beans I could not run even UserDAO Test
> > > > also
> > > > > > ...
> > > > > > > >
> > > > > > > > and even I can't see any result in the web browser after
> > deploy
> > > > reload
> > > > > > > ...
> > > > > > > >
> > > > > > > > I hope you have a solution for this problem and I know that
> > there
> > > > is
> > > > > > > some where a small problem and please help me solving it ...
> > > > > > > >
> > > > > > > > Thank you
> > > > > > > > --
> > > > > > > > Best regards,
> > > > > > > >
> > > > > > > > Kiran Karnati
> > > > > > > >
> > > > > > > >
> > > > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu
> > sparen!
> > > > > > > > Ideal für Modem und ISDN:
> > http://www.gmx.net/de/go/smartsurfer
> > > > > > > >
> > > > > > > >
> > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > > > For additional commands, e-mail:
> > [hidden email]
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > http://raibledesigns.com
> > > > > >
> > > > > > --
> > > > > > Best regards,
> > > > > >
> > > > > > Kiran Karnati
> > > > > >
> > > > > >
> > > > > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > > > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > > > > >
> > > > > >
> > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: [hidden email]
> > > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > > --
> > > > > Best regards,
> > > > >
> > > > > Kiran Karnati
> > > > >
> > > > >
> > > > > "Ein Herz für Kinder" - Ihre Spende hilft! Aktion:
> > > > www.deutschlandsegelt.de
> > > > > Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's
> > > > Cup-Yacht!
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [hidden email]
> > > > > For additional commands, e-mail: [hidden email]
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > http://raibledesigns.com
> > >
> > > --
> > > Best regards,
> > >
> > > Kiran Karnati
> > >
> > >
> > > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [hidden email]
> > > For additional commands, e-mail: [hidden email]
> > >
> > >
> >
> >
> > --
> > http://raibledesigns.com
>
> --
> Best regards,
>
> Kiran Karnati
>
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com
1 2