You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by Allar <al...@gmail.com> on 2009/12/16 17:03:59 UTC

development environment and building paths

Hi

I have another question about development environment.
I'd like to develop Wookie with tomcat/mysql. Which is the right
folder to depeloy the application?
Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
was not the "classes" folder. The build script copies class files to
"build" dir.
Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
folder that is configured in project.properties file as
project.weblib.dir=lib)

Then, as recommend a few threads before, I tried IvyDE. I configured
it to use ivy.xml, but it fails to resolve any dependencies with error
messages like "Impossible to resolve dependencies of
org.apache.incubator#wookie-server;working@allar"

What am I missing here?

Thanks in advance
Allar

Re: development environment and building paths

Posted by Allar <al...@gmail.com>.
Hi

Thank you all. In my personal.properties, properties widget.deploy.xyz
were configured incorrectly, thereby wgt files were not copied to
deploy folder.
Happy holidays!

Allar
On Thu, Dec 17, 2009 at 12:23 PM, Scott Wilson
<sc...@gmail.com> wrote:
>
> On 17 Dec 2009, at 06:57, Allar wrote:
>
>> Hi Scott,
>>
>> Thanks for the answer, ant deploy-webapp actually worked, although it
>> is not the best solution. Let me explain. If i'm not wrong, it builds
>> all the classes and copies everything every time you run ant
>> deploy-webapp, rather than just recompile the class I have just saved.
>> If I press ctrl+s Eclipse auto-builds classes to bin/ where no-one
>> uses them. It's a waste :) Maybe it is reasonable to link directories
>> or restructure a bit to put all the libraries and class files to the
>> right directory instead of copying them around.
>>
>> That's that, another problem I ran into after I had to clean-db and
>> got it up and running. The widget table is empty (there is only the
>> not supported widget). All the widgets, that were described in the
>> system are gone. As I see, they are removed from
>> scripts\mysql\widgetdb.sql. Is it a way to automatically install all
>> those widgets to widgetdb?
>
>
> They should automatically install when you do "ant deploy-webapp". The .wgt
> files are added to the deploy directory, which Wookie scans automatically to
> hot-deploy them (rather like a war file).
>
> If this isn't happening you need to check that:
>
> 1. Your "deploy" folder preference in build.properties is pointing to the
> "deploy" folder in Wookie on Tomcat , e.g.
>
> widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
> widget.deploy.include=*/build.xml
>
> 2. Your widgetserver.properties (or local.widgetserver.properties) contains:
>
> widget.deployfolder = /deploy
> widget.hot_deploy=true
>
> When your run Tomcat you should see something like this in catalina.out:
>
>  INFO [main] (ContextListener.java:72) - Using local widget server
> properties file: /usr/local/tomcat-5.5.27/bin/local.widgetserver.properties
> 10:22:18,532  INFO ContextListener:72 - Using local widget server properties
> file: /usr/local/tomcat-5.5.27/bin/local.widgetserver.properties
>  INFO [main] (ContextListener.java:101) - Using local open social properties
> file: /usr/local/tomcat-5.5.27/bin/local.opensocial.properties
> 10:22:18,573  INFO ContextListener:101 - Using local open social properties
> file: /usr/local/tomcat-5.5.27/bin/local.opensocial.properties
>  INFO [Thread-6] (ContextListener.java:147) - Natter' - Widget was
> successfully imported into the system.
> 10:22:20,095  INFO ContextListener:147 - Natter' - Widget was successfully
> imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - Chat' - Widget was
> successfully imported into the system.
> 10:22:20,245  INFO ContextListener:147 - Chat' - Widget was successfully
> imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - Wave Test: Sudoku' - Widget
> was successfully imported into the system.
> 10:22:20,368  INFO ContextListener:147 - Wave Test: Sudoku' - Widget was
> successfully imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - API Test' - Widget was
> successfully imported into the system.
> 10:22:20,456  INFO ContextListener:147 - API Test' - Widget was successfully
> imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - WookieWiki' - Widget was
> successfully imported into the system.
> 10:22:20,559  INFO ContextListener:147 - WookieWiki' - Widget was
> successfully imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - Weather' - Widget was
> successfully imported into the system.
> 10:22:20,628  INFO ContextListener:147 - Weather' - Widget was successfully
> imported into the system.
>  INFO [Thread-6] (ContextListener.java:149) - Forum' - Widget was
> successfully updated in the system.
> 10:22:20,695  INFO ContextListener:149 - Forum' - Widget was successfully
> updated in the system.
>  INFO [Thread-6] (ContextListener.java:149) - Unsupported widget widget' -
> Widget was successfully updated in the system.
> 10:22:20,735  INFO ContextListener:149 - Unsupported widget widget' - Widget
> was successfully updated in the system.
>  INFO [Thread-6] (ContextListener.java:147) - You decide' - Widget was
> successfully imported into the system.
> 10:22:20,923  INFO ContextListener:147 - You decide' - Widget was
> successfully imported into the system.
>  INFO [Thread-6] (ContextListener.java:147) - Vote' - Widget was
> successfully imported into the system.
> 10:22:21,114  INFO ContextListener:147 - Vote' - Widget was successfully
> imported into the system.
>
>
>
>
>>
>> Thanks
>> Allar
>>
>> On Wed, Dec 16, 2009 at 6:18 PM, Scott Wilson
>> <sc...@gmail.com> wrote:
>>>
>>> Hi Allar,
>>> On 16 Dec 2009, at 16:03, Allar wrote:
>>>
>>> Hi
>>>
>>> I have another question about development environment.
>>> I'd like to develop Wookie with tomcat/mysql. Which is the right
>>> folder to depeloy the application?
>>> Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
>>> was not the "classes" folder. The build script copies class files to
>>> "build" dir.
>>> Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
>>> folder that is configured in project.properties file as
>>> project.weblib.dir=lib)
>>>
>>> When using with Tomcat, the easiest thing is to set your tomcat location
>>> in
>>> build.properties like so:
>>> widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
>>> servletEngine.webapp.dir=/usr/local/tomcat-5.5.27/webapps/
>>> And then call:
>>> ant clean-db deploy-webapp
>>> This deploys from your build directory and dynamically adds the libraries
>>> required.
>>> There is some more documentation on this at:
>>> http://incubator.apache.org/wookie/downloading-and-installing-wookie.html
>>>
>>> Then, as recommend a few threads before, I tried IvyDE. I configured
>>> it to use ivy.xml, but it fails to resolve any dependencies with error
>>> messages like "Impossible to resolve dependencies of
>>> org.apache.incubator#wookie-server;working@allar"
>>>
>>> What am I missing here?
>>>
>>> If it can't resolve any dependencies at all that means there is something
>>> wrong with the Ivy configuration in Eclipse, for example a problem with
>>> the
>>> class path or not picking up ivysettings. In my Eclipse configuration, my
>>> .classpath looks like this:
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <classpath>
>>>        <classpathentry kind="src" path="src"/>
>>>        <classpathentry kind="src" path="src-tests"/>
>>>        <classpathentry kind="con"
>>> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>>>        <classpathentry kind="con"
>>> path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/
>>>
>>> ?ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=project%3A%2F%2F%2Fant%2Fivysettings.xml&a
>>> mp;loadSettingsOnDemand=false&amp;propertyFiles="/>
>>>        <classpathentry kind="lib" path="ant/lib/htmlcleaner-2.1.0.jar"/>
>>>        <classpathentry kind="lib"
>>> path="ant/lib/shindig-common-1.1-SNAPSHOT.jar"/>
>>>        <classpathentry kind="lib" path="ant/lib/dwr-2.0.5.jar"/>
>>>        <classpathentry kind="lib"
>>> path="ant/lib/commons-compress-1.0.jar"/>
>>>        <classpathentry kind="output" path="bin"/>
>>> </classpath>
>>> The only other thing I ended up changing for my setup was this line in
>>> ivysettings.xml:
>>>  <artifact pattern="${basedir}/ant/lib/[artifact]-[revision].[type]" />
>>> ... though I doubt this has anything to do with your problem.
>>>
>>> Thanks in advance
>>> Allar
>>>
>>> I hope this helps!
>
>

Re: development environment and building paths

Posted by Scott Wilson <sc...@gmail.com>.
On 17 Dec 2009, at 06:57, Allar wrote:

> Hi Scott,
>
> Thanks for the answer, ant deploy-webapp actually worked, although it
> is not the best solution. Let me explain. If i'm not wrong, it builds
> all the classes and copies everything every time you run ant
> deploy-webapp, rather than just recompile the class I have just saved.
> If I press ctrl+s Eclipse auto-builds classes to bin/ where no-one
> uses them. It's a waste :) Maybe it is reasonable to link directories
> or restructure a bit to put all the libraries and class files to the
> right directory instead of copying them around.
>
> That's that, another problem I ran into after I had to clean-db and
> got it up and running. The widget table is empty (there is only the
> not supported widget). All the widgets, that were described in the
> system are gone. As I see, they are removed from
> scripts\mysql\widgetdb.sql. Is it a way to automatically install all
> those widgets to widgetdb?


They should automatically install when you do "ant deploy-webapp".  
The .wgt files are added to the deploy directory, which Wookie scans  
automatically to hot-deploy them (rather like a war file).

If this isn't happening you need to check that:

1. Your "deploy" folder preference in build.properties is pointing to  
the "deploy" folder in Wookie on Tomcat , e.g.

widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
widget.deploy.include=*/build.xml

2. Your widgetserver.properties (or local.widgetserver.properties)  
contains:

widget.deployfolder = /deploy
widget.hot_deploy=true

When your run Tomcat you should see something like this in catalina.out:

  INFO [main] (ContextListener.java:72) - Using local widget server  
properties file: /usr/local/tomcat-5.5.27/bin/ 
local.widgetserver.properties
10:22:18,532  INFO ContextListener:72 - Using local widget server  
properties file: /usr/local/tomcat-5.5.27/bin/ 
local.widgetserver.properties
  INFO [main] (ContextListener.java:101) - Using local open social  
properties file: /usr/local/tomcat-5.5.27/bin/ 
local.opensocial.properties
10:22:18,573  INFO ContextListener:101 - Using local open social  
properties file: /usr/local/tomcat-5.5.27/bin/ 
local.opensocial.properties
  INFO [Thread-6] (ContextListener.java:147) - Natter' - Widget was  
successfully imported into the system.
10:22:20,095  INFO ContextListener:147 - Natter' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - Chat' - Widget was  
successfully imported into the system.
10:22:20,245  INFO ContextListener:147 - Chat' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - Wave Test: Sudoku' -  
Widget was successfully imported into the system.
10:22:20,368  INFO ContextListener:147 - Wave Test: Sudoku' - Widget  
was successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - API Test' - Widget was  
successfully imported into the system.
10:22:20,456  INFO ContextListener:147 - API Test' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - WookieWiki' - Widget  
was successfully imported into the system.
10:22:20,559  INFO ContextListener:147 - WookieWiki' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - Weather' - Widget was  
successfully imported into the system.
10:22:20,628  INFO ContextListener:147 - Weather' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:149) - Forum' - Widget was  
successfully updated in the system.
10:22:20,695  INFO ContextListener:149 - Forum' - Widget was  
successfully updated in the system.
  INFO [Thread-6] (ContextListener.java:149) - Unsupported widget  
widget' - Widget was successfully updated in the system.
10:22:20,735  INFO ContextListener:149 - Unsupported widget widget' -  
Widget was successfully updated in the system.
  INFO [Thread-6] (ContextListener.java:147) - You decide' - Widget  
was successfully imported into the system.
10:22:20,923  INFO ContextListener:147 - You decide' - Widget was  
successfully imported into the system.
  INFO [Thread-6] (ContextListener.java:147) - Vote' - Widget was  
successfully imported into the system.
10:22:21,114  INFO ContextListener:147 - Vote' - Widget was  
successfully imported into the system.




>
> Thanks
> Allar
>
> On Wed, Dec 16, 2009 at 6:18 PM, Scott Wilson
> <sc...@gmail.com> wrote:
>> Hi Allar,
>> On 16 Dec 2009, at 16:03, Allar wrote:
>>
>> Hi
>>
>> I have another question about development environment.
>> I'd like to develop Wookie with tomcat/mysql. Which is the right
>> folder to depeloy the application?
>> Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
>> was not the "classes" folder. The build script copies class files to
>> "build" dir.
>> Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
>> folder that is configured in project.properties file as
>> project.weblib.dir=lib)
>>
>> When using with Tomcat, the easiest thing is to set your tomcat  
>> location in
>> build.properties like so:
>> widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
>> servletEngine.webapp.dir=/usr/local/tomcat-5.5.27/webapps/
>> And then call:
>> ant clean-db deploy-webapp
>> This deploys from your build directory and dynamically adds the  
>> libraries
>> required.
>> There is some more documentation on this at:
>> http://incubator.apache.org/wookie/downloading-and-installing-wookie.html
>>
>> Then, as recommend a few threads before, I tried IvyDE. I configured
>> it to use ivy.xml, but it fails to resolve any dependencies with  
>> error
>> messages like "Impossible to resolve dependencies of
>> org.apache.incubator#wookie-server;working@allar"
>>
>> What am I missing here?
>>
>> If it can't resolve any dependencies at all that means there is  
>> something
>> wrong with the Ivy configuration in Eclipse, for example a problem  
>> with the
>> class path or not picking up ivysettings. In my Eclipse  
>> configuration, my
>> .classpath looks like this:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <classpath>
>>         <classpathentry kind="src" path="src"/>
>>         <classpathentry kind="src" path="src-tests"/>
>>         <classpathentry kind="con"
>> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>>         <classpathentry kind="con"
>> path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/
>> ?ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=project%3A%2F%2F 
>> %2Fant%2Fivysettings.xml&a
>> mp;loadSettingsOnDemand=false&amp;propertyFiles="/>
>>         <classpathentry kind="lib" path="ant/lib/ 
>> htmlcleaner-2.1.0.jar"/>
>>         <classpathentry kind="lib"
>> path="ant/lib/shindig-common-1.1-SNAPSHOT.jar"/>
>>         <classpathentry kind="lib" path="ant/lib/dwr-2.0.5.jar"/>
>>         <classpathentry kind="lib" path="ant/lib/commons- 
>> compress-1.0.jar"/>
>>         <classpathentry kind="output" path="bin"/>
>> </classpath>
>> The only other thing I ended up changing for my setup was this line  
>> in
>> ivysettings.xml:
>>  <artifact pattern="${basedir}/ant/lib/[artifact]-[revision]. 
>> [type]" />
>> ... though I doubt this has anything to do with your problem.
>>
>> Thanks in advance
>> Allar
>>
>> I hope this helps!


Re: development environment and building paths

Posted by Ross Gardler <ro...@googlemail.com>.
We use IVY to resolve all dependencies. This means that no matter how  
many applications you have that use a given library you only need one  
copy of it on your network. Having individual copies for each app  
results in lots of duplication. This may nor mean a great deal to you  
but in other environments it is significant.

In a development environment you can use the Apache IvyDE in Eclipse  
to use this same repository with no need for duplication.

You can also use the "run" target in ant to launch the app in Jetty,  
either from the command line or from the Eclipse tools.  Finally, if  
you prefer you can configure Eclipse to run Wookie server, see the ant  
script for the necessary configuration.

The deploy-webapp target is intended for building and deploying to a  
production server, it is not intended to be used in a development  
environment.

With respect to the clean-db requirement I agree this is annoying.  
There is more than just the unsupported widget being deployed to the  
DB there is the test account and API keys as well.

However, I'm not sure why you ask for a mechanism to deploy all the  
widgets. This is allready there, they are no longer deployed by the  
SQL but are hot deployed during the build process. If you are not  
seeing this then please expand on this issue.



Sent from my mobile device.

On 17 Dec 2009, at 06:57, Allar <al...@gmail.com> wrote:

> Hi Scott,
>
> Thanks for the answer, ant deploy-webapp actually worked, although it
> is not the best solution. Let me explain. If i'm not wrong, it builds
> all the classes and copies everything every time you run ant
> deploy-webapp, rather than just recompile the class I have just saved.
> If I press ctrl+s Eclipse auto-builds classes to bin/ where no-one
> uses them. It's a waste :) Maybe it is reasonable to link directories
> or restructure a bit to put all the libraries and class files to the
> right directory instead of copying them around.
>
> That's that, another problem I ran into after I had to clean-db and
> got it up and running. The widget table is empty (there is only the
> not supported widget). All the widgets, that were described in the
> system are gone. As I see, they are removed from
> scripts\mysql\widgetdb.sql. Is it a way to automatically install all
> those widgets to widgetdb?
>
> Thanks
> Allar
>
> On Wed, Dec 16, 2009 at 6:18 PM, Scott Wilson
> <sc...@gmail.com> wrote:
>> Hi Allar,
>> On 16 Dec 2009, at 16:03, Allar wrote:
>>
>> Hi
>>
>> I have another question about development environment.
>> I'd like to develop Wookie with tomcat/mysql. Which is the right
>> folder to depeloy the application?
>> Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
>> was not the "classes" folder. The build script copies class files to
>> "build" dir.
>> Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
>> folder that is configured in project.properties file as
>> project.weblib.dir=lib)
>>
>> When using with Tomcat, the easiest thing is to set your tomcat  
>> location in
>> build.properties like so:
>> widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
>> servletEngine.webapp.dir=/usr/local/tomcat-5.5.27/webapps/
>> And then call:
>> ant clean-db deploy-webapp
>> This deploys from your build directory and dynamically adds the  
>> libraries
>> required.
>> There is some more documentation on this at:
>> http://incubator.apache.org/wookie/downloading-and-installing-wookie.html
>>
>> Then, as recommend a few threads before, I tried IvyDE. I configured
>> it to use ivy.xml, but it fails to resolve any dependencies with  
>> error
>> messages like "Impossible to resolve dependencies of
>> org.apache.incubator#wookie-server;working@allar"
>>
>> What am I missing here?
>>
>> If it can't resolve any dependencies at all that means there is  
>> something
>> wrong with the Ivy configuration in Eclipse, for example a problem  
>> with the
>> class path or not picking up ivysettings. In my Eclipse  
>> configuration, my
>> .classpath looks like this:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <classpath>
>>         <classpathentry kind="src" path="src"/>
>>         <classpathentry kind="src" path="src-tests"/>
>>         <classpathentry kind="con"
>> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>>         <classpathentry kind="con"
>> path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/
>> ?ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=project%3A%2F%2F 
>> %2Fant%2Fivysettings.xml&a
>> mp;loadSettingsOnDemand=false&amp;propertyFiles="/>
>>         <classpathentry kind="lib" path="ant/lib/ 
>> htmlcleaner-2.1.0.jar"/>
>>         <classpathentry kind="lib"
>> path="ant/lib/shindig-common-1.1-SNAPSHOT.jar"/>
>>         <classpathentry kind="lib" path="ant/lib/dwr-2.0.5.jar"/>
>>         <classpathentry kind="lib" path="ant/lib/commons- 
>> compress-1.0.jar"/>
>>         <classpathentry kind="output" path="bin"/>
>> </classpath>
>> The only other thing I ended up changing for my setup was this line  
>> in
>> ivysettings.xml:
>>  <artifact pattern="${basedir}/ant/lib/[artifact]-[revision]. 
>> [type]" />
>> ... though I doubt this has anything to do with your problem.
>>
>> Thanks in advance
>> Allar
>>
>> I hope this helps!

Re: development environment and building paths

Posted by Allar <al...@gmail.com>.
Hi Scott,

Thanks for the answer, ant deploy-webapp actually worked, although it
is not the best solution. Let me explain. If i'm not wrong, it builds
all the classes and copies everything every time you run ant
deploy-webapp, rather than just recompile the class I have just saved.
If I press ctrl+s Eclipse auto-builds classes to bin/ where no-one
uses them. It's a waste :) Maybe it is reasonable to link directories
or restructure a bit to put all the libraries and class files to the
right directory instead of copying them around.

That's that, another problem I ran into after I had to clean-db and
got it up and running. The widget table is empty (there is only the
not supported widget). All the widgets, that were described in the
system are gone. As I see, they are removed from
scripts\mysql\widgetdb.sql. Is it a way to automatically install all
those widgets to widgetdb?

Thanks
Allar

On Wed, Dec 16, 2009 at 6:18 PM, Scott Wilson
<sc...@gmail.com> wrote:
> Hi Allar,
> On 16 Dec 2009, at 16:03, Allar wrote:
>
> Hi
>
> I have another question about development environment.
> I'd like to develop Wookie with tomcat/mysql. Which is the right
> folder to depeloy the application?
> Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
> was not the "classes" folder. The build script copies class files to
> "build" dir.
> Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
> folder that is configured in project.properties file as
> project.weblib.dir=lib)
>
> When using with Tomcat, the easiest thing is to set your tomcat location in
> build.properties like so:
> widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
> servletEngine.webapp.dir=/usr/local/tomcat-5.5.27/webapps/
> And then call:
> ant clean-db deploy-webapp
> This deploys from your build directory and dynamically adds the libraries
> required.
> There is some more documentation on this at:
> http://incubator.apache.org/wookie/downloading-and-installing-wookie.html
>
> Then, as recommend a few threads before, I tried IvyDE. I configured
> it to use ivy.xml, but it fails to resolve any dependencies with error
> messages like "Impossible to resolve dependencies of
> org.apache.incubator#wookie-server;working@allar"
>
> What am I missing here?
>
> If it can't resolve any dependencies at all that means there is something
> wrong with the Ivy configuration in Eclipse, for example a problem with the
> class path or not picking up ivysettings. In my Eclipse configuration, my
> .classpath looks like this:
> <?xml version="1.0" encoding="UTF-8"?>
> <classpath>
>         <classpathentry kind="src" path="src"/>
>         <classpathentry kind="src" path="src-tests"/>
>         <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
>         <classpathentry kind="con"
> path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/
> ?ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=project%3A%2F%2F%2Fant%2Fivysettings.xml&a
> mp;loadSettingsOnDemand=false&amp;propertyFiles="/>
>         <classpathentry kind="lib" path="ant/lib/htmlcleaner-2.1.0.jar"/>
>         <classpathentry kind="lib"
> path="ant/lib/shindig-common-1.1-SNAPSHOT.jar"/>
>         <classpathentry kind="lib" path="ant/lib/dwr-2.0.5.jar"/>
>         <classpathentry kind="lib" path="ant/lib/commons-compress-1.0.jar"/>
>         <classpathentry kind="output" path="bin"/>
> </classpath>
> The only other thing I ended up changing for my setup was this line in
> ivysettings.xml:
>  <artifact pattern="${basedir}/ant/lib/[artifact]-[revision].[type]" />
> ... though I doubt this has anything to do with your problem.
>
> Thanks in advance
> Allar
>
> I hope this helps!

Re: development environment and building paths

Posted by Scott Wilson <sc...@gmail.com>.
Hi Allar,

On 16 Dec 2009, at 16:03, Allar wrote:

> Hi
>
> I have another question about development environment.
> I'd like to develop Wookie with tomcat/mysql. Which is the right
> folder to depeloy the application?
> Intuitively I tried to deploy it from "WebContent\WEB-INF\" but there
> was not the "classes" folder. The build script copies class files to
> "build" dir.
> Also, "lib" folder is missing from WEB-INF. (by "lib" folder, I mean
> folder that is configured in project.properties file as
> project.weblib.dir=lib)

When using with Tomcat, the easiest thing is to set your tomcat  
location in build.properties like so:

widget.deploy.dir=/usr/local/tomcat-5.5.27/webapps/wookie/deploy
servletEngine.webapp.dir=/usr/local/tomcat-5.5.27/webapps/

And then call:

ant clean-db deploy-webapp

This deploys from your build directory and dynamically adds the  
libraries required.

There is some more documentation on this at:

http://incubator.apache.org/wookie/downloading-and-installing-wookie.html

>
> Then, as recommend a few threads before, I tried IvyDE. I configured
> it to use ivy.xml, but it fails to resolve any dependencies with error
> messages like "Impossible to resolve dependencies of
> org.apache.incubator#wookie-server;working@allar"
>
> What am I missing here?

If it can't resolve any dependencies at all that means there is  
something wrong with the Ivy configuration in Eclipse, for example a  
problem with the class path or not picking up ivysettings. In my  
Eclipse configuration, my .classpath looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
         <classpathentry kind="src" path="src"/>
         <classpathentry kind="src" path="src-tests"/>
         <classpathentry kind="con"  
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
         <classpathentry kind="con"  
path="org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/
?ivyXmlPath=ivy.xml&amp;confs=*&amp;ivySettingsPath=project%3A%2F%2F 
%2Fant%2Fivysettings.xml&a
mp;loadSettingsOnDemand=false&amp;propertyFiles="/>
         <classpathentry kind="lib" path="ant/lib/ 
htmlcleaner-2.1.0.jar"/>
         <classpathentry kind="lib" path="ant/lib/shindig-common-1.1- 
SNAPSHOT.jar"/>
         <classpathentry kind="lib" path="ant/lib/dwr-2.0.5.jar"/>
         <classpathentry kind="lib" path="ant/lib/commons- 
compress-1.0.jar"/>
         <classpathentry kind="output" path="bin"/>
</classpath>

The only other thing I ended up changing for my setup was this line in  
ivysettings.xml:

  <artifact pattern="${basedir}/ant/lib/[artifact]-[revision].[type]" />

... though I doubt this has anything to do with your problem.

>
> Thanks in advance
> Allar

I hope this helps!