Equinox and Eclipse WTP

6 messages Options
Embed this post
Permalink
Gunnar Hillert

Equinox and Eclipse WTP

Reply Threaded More More options
Print post
Permalink
Hi,

I am trying to use Equinox together with Eclipse 3.2.x and WTP 1.5.x.
In the Maven POM, Equinox includes the 'src/main/webapp' folder as a test-resource so that in
Eclipse I can run my unit tests using the same ApplicationContext*.xml files as for deployment.

I like this setup very much but here is my problem - When I deploy my app to Tomcat using Eclipse WTP, then
my deployed webapps/equinox directory is empty.

If I remove "src/main/webapp" from my Eclipse build path, then everything deploys fine.

I went to the point of trying to modify the ".component" configuration file to get things deployed to Tomcat.
What I think happens is that with Eclipse WTP ALL resources that are in the classpath, get deployed to the
WEB-INF/classes folder. Overwriting that behavior does not seem to be possible.

For example by default the following entry is generated in the .component config file:

    <wb-resource deploy-path="/" source-path="src/main/webapp"/>
   
This looks great - but does not work. The 'deploy-path' seems to be completely ignored. If I remove "src/main/webapp" from the build
path then it works. This issue seems to be also captured by the following WTP Bugzilla entries: Bug 150324 + Bug 104597
     
* * *

Nevertheless, I wonder if somebody has a working setup where I can use one single Spring ApplicationContext.xml
file for deployment and testing AND is able to also successfully deploy to Tomcat at the same time using Eclipse WTP.

Thank you very much for your help!!

Regards,

Gunnar Hillert

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

Matt Raible-3

Re: Equinox and Eclipse WTP

Reply Threaded More More options
Print post
Permalink
Gunnar,

Unfortunately, I haven't had a chance to try the latest versions of
WTP to see if it works well with Equinox.  However, you should know
that "mvn jetty:run" is a solution that's just as good IMO.  It allows
you to edit your files in place and it'll auto-reload your project
when you change classes and such.  You can also use the Jetty Launcher
and run it in debug mode to reload classes on the fly.  Both are
excellent solutions IMO.

http://jetty.mortbay.org/maven-plugin/

http://raibledesigns.com/page/rd?entry=edit_java_webapps_redux_jetty

Matt

On 11/16/06, Gunnar Hillert <[hidden email]> wrote:

> Hi,
>
> I am trying to use Equinox together with Eclipse 3.2.x and WTP 1.5.x.
> In the Maven POM, Equinox includes the 'src/main/webapp' folder as a test-resource so that in
> Eclipse I can run my unit tests using the same ApplicationContext*.xml files as for deployment.
>
> I like this setup very much but here is my problem - When I deploy my app to Tomcat using Eclipse WTP, then
> my deployed webapps/equinox directory is empty.
>
> If I remove "src/main/webapp" from my Eclipse build path, then everything deploys fine.
>
> I went to the point of trying to modify the ".component" configuration file to get things deployed to Tomcat.
> What I think happens is that with Eclipse WTP ALL resources that are in the classpath, get deployed to the
> WEB-INF/classes folder. Overwriting that behavior does not seem to be possible.
>
> For example by default the following entry is generated in the .component config file:
>
>     <wb-resource deploy-path="/" source-path="src/main/webapp"/>
>
> This looks great - but does not work. The 'deploy-path' seems to be completely ignored. If I remove "src/main/webapp" from the build
> path then it works. This issue seems to be also captured by the following WTP Bugzilla entries: Bug 150324 + Bug 104597
>
> * * *
>
> Nevertheless, I wonder if somebody has a working setup where I can use one single Spring ApplicationContext.xml
> file for deployment and testing AND is able to also successfully deploy to Tomcat at the same time using Eclipse WTP.
>
> Thank you very much for your help!!
>
> Regards,
>
> Gunnar Hillert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
http://raibledesigns.com

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

Gunnar Hillert

Re: Equinox and Eclipse WTP

Reply Threaded More More options
Print post
Permalink
Hello Matt,

Thank you very much for your response! I will look into Jetty - looks
like a great container. Hopefully the JNDI configuration is similar to
Tomcat's...
Anyway, for now I moved the Spring context files to my mvn resources
folder so that they are ultimately deployed to WEB-INF/classes - That
seems to work like a charm.

Regards,

Gunnar

Matt Raible wrote:

> Gunnar,
>
> Unfortunately, I haven't had a chance to try the latest versions of
> WTP to see if it works well with Equinox.  However, you should know
> that "mvn jetty:run" is a solution that's just as good IMO.  It allows
> you to edit your files in place and it'll auto-reload your project
> when you change classes and such.  You can also use the Jetty Launcher
> and run it in debug mode to reload classes on the fly.  Both are
> excellent solutions IMO.
>
> http://jetty.mortbay.org/maven-plugin/
>
> http://raibledesigns.com/page/rd?entry=edit_java_webapps_redux_jetty
>
> Matt
>
> On 11/16/06, Gunnar Hillert <[hidden email]> wrote:
>> Hi,
>>
>> I am trying to use Equinox together with Eclipse 3.2.x and WTP 1.5.x.
>> In the Maven POM, Equinox includes the 'src/main/webapp' folder as a
>> test-resource so that in
>> Eclipse I can run my unit tests using the same
>> ApplicationContext*.xml files as for deployment.
>>
>> I like this setup very much but here is my problem - When I deploy my
>> app to Tomcat using Eclipse WTP, then
>> my deployed webapps/equinox directory is empty.
>>
>> If I remove "src/main/webapp" from my Eclipse build path, then
>> everything deploys fine.
>>
>> I went to the point of trying to modify the ".component"
>> configuration file to get things deployed to Tomcat.
>> What I think happens is that with Eclipse WTP ALL resources that are
>> in the classpath, get deployed to the
>> WEB-INF/classes folder. Overwriting that behavior does not seem to be
>> possible.
>>
>> For example by default the following entry is generated in the
>> .component config file:
>>
>>     <wb-resource deploy-path="/" source-path="src/main/webapp"/>
>>
>> This looks great - but does not work. The 'deploy-path' seems to be
>> completely ignored. If I remove "src/main/webapp" from the build
>> path then it works. This issue seems to be also captured by the
>> following WTP Bugzilla entries: Bug 150324 + Bug 104597
>>
>> * * *
>>
>> Nevertheless, I wonder if somebody has a working setup where I can
>> use one single Spring ApplicationContext.xml
>> file for deployment and testing AND is able to also successfully
>> deploy to Tomcat at the same time using Eclipse WTP.
>>
>> Thank you very much for your help!!
>>
>> Regards,
>>
>> Gunnar Hillert
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>

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

Kiran Karnati-2

Add User is not working

Reply Threaded More More options
Print post
Permalink
Hallo Matt,

The "Add User" button on my users list form is not working ... do you have any idea ... what could be the reason ?

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: Add User is not working

Reply Threaded More More options
Print post
Permalink
Do you have JavaScript turned off?

Matt

On 12/6/06, Kiran Karnati <[hidden email]> wrote:
Hallo Matt,

The "Add User" button on my users list form is not working ... do you have any idea ... what could be the reason ?

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
Kiran Karnati-2

Re: Re: Add User is not working

Reply Threaded More More options
Print post
Permalink
No Matt,

it is working but reutrning an error page ... may be do you think something in my Action missing ?

now I can't remember the exact error message but it said that it has some problem with 'name = "method" '



-------- Original-Nachricht --------
Datum:  Wed, 6 Dec 2006 08:02:08 -0700
Von: "Matt Raible" <[hidden email]>
An: [hidden email]
Betreff:  Re: [equinox-user] Add User is not working

> Do you have JavaScript turned off?
>
> Matt
>
> On 12/6/06, Kiran Karnati <[hidden email]> wrote:
> >
> > Hallo Matt,
> >
> > The "Add User" button on my users list form is not working ... do you
> have
> > any idea ... what could be the reason ?
> >
> > 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]