Hello,

1) Instead of making symbolic links to your svn project(s), you should
create an SVN checked-out directory in your tomcat project.
I am using CVS, so I can not help you on this, but I am sure that an
SVN plugin exists for Eclipse.
Basically, here is how it works with CVS:
- Let's say you need to use a 'MyServlet' with your web application,
and that servlet is on a CVS repository.
- On eclipse, you did create a tomcat project called 'watchee'
>From your 'watchee' project (on Eclipse), you just import a 'Checkout
CVS project' that will be linked to your 'MyServlet' CVS repository.
This way, you can modify 'MyServlet' and commit changes to the
repository. It avoid using links and let you have all the sources
inside your tomcat project.

2) I guess you are using qooxdoo0.7.x and downloaded the sdk ('Source
development kit').
Copy the qooxdoo directory to your tomcat project.
- Here, I suppose that your qooxdoo application is called 'QxWatchee'.
So, from your tomcat project, your application is here:
+ qooxdoo-0.7.x-sdk/fronted/application/QxWatchee
If you want your javascript application being on your SVN project, you
need to create the 'QxWatchee' repository and replace the 'QxWatchee'
directory of 'qooxdoo-0.7.x-sdk/fronted/application' by an imported
SVN checkout project.

3) Using 'QxWatchee' with tomcat
You can create a simple 'index.jsp' in your eclipse tomcat project (at root).
This is the file that will be accessed with a:
http://localhost:8080/watchee/index.jsp from your browser.

In this example, your tomcat project now looks like:
+ MyServlet (SVN Checkout project)
+ qooxdoo-0.7.x-sdk
+ WEB-INF
- index.jsp

In index.jsp, put a link to the SOURCE script of your QxWatchee
javascript application:
<a 
href="qooxdoo-0.7.x-sdk/frontend/application/QxWatchee/source/index.html">Watchee</a>

Build the source version of your javascript application:
- Open a terminal and do:
    cd ECLIPSE_WORKSPACE/watchee/qooxdoo-0.7.x-sdk/frontend/application
    make source

Once it is builded, go to 'http://localhost:8080/watchee/index.jsp'
and click your link.
This should load your web application.

NOTE: you need to re-compiled (ie doing a make source) your qooxdoo
application everytime you add a new class: you dont need to re-compile
when you are doing changes on your existing javascript classes => it
means that by reloading the page you get when clicking the link on
index.jsp, all the changes done on javascript will be  immediately
available !

4) When you want to deploy your application to the 'real' server
Build the BUILD version of your javascript application:
- Open a terminal and do:
    cd ECLIPSE_WORKSPACE/watchee/qooxdoo-0.7.x-sdk/frontend/application
    make build

Create your war file, including:
- Your servlet(s)
- The 'build' directory of your javascript application:
copy ECLIPSE_WORKSPACE/watchee/qooxdoo-0.7.x-sdk/frontend/application/build
to build
- Change the index.jsp:
<a href="build/QxWatchee/index.html">Watchee</a>

Note: to create the war file, and to automate the deployment process
to your 'real' tomcat server (by 'real', I mean the server that will
be used for production), you should use a ant file.

Charles.

2007/11/5, Marcel Ruff <[EMAIL PROTECTED]>:
> Thanks for all your input :-)
> > Hello,
> >
> > Here is what you should do:
> > 1) Install a tomcat server on the same machine you are developping
> > your web application
> > 2) Install the eclipse tomcat plugin
> > (http://www.eclipsetotale.com/tomcatPlugin.html)
> >
> Ok, thanks for this, it works very nice:
> Now i can debug my servlet, change the servlet code and it is auto
> compiled by eclipse
> and auto loaded by tomcat: The change is immediately available - great!
> The smart thing is i could make symbolic links to my different svn
> projects and so
> access the servlets without changing my directory structure (thanks to
> Unix).
> > 3) Work with the qooxdoo  'source', not with the 'build'.
> > You dont need to re-compile qooxdoo everytime you are doing changes !!
> > The 'source' version of your application is a javascript script that
> > will load all the classes involved in your project.
> > This mean that you need to re-compile qooxdoo (make source) everytime
> > you add a new class : and that's all !
> >
> This i can't figure out:
>
> If i load the qooxdoo project in firefox like (directly from harddisk):
>
>     file:///home/watchee/watcheeweb/src/main/track.jsp
>
> then the javascript inside can't access the servlet with
>
>    http://localhost:8080/watchee/ajax
>
> it gets a
>
>   "Permission denied to call method XMLHttpRequest.open"
>
> -> The browser does not allow to change from file:// to http://.
>
> If i load the qooxdoo project like:
>     http://localhost:8080/watchee/track.jsp
> everything runs fine (as the javascript also uses http://localhost:8080...).
>
> But now i need to redeploy the qooxdoo war on
> each change on Application.js :-(
>
> Here i need some smarter approach ...
> > * Compared to the build version, your in-developpement application
> > will load a little bit slower: that's because instead of getting one
> > big file containing all the classes (with data compression) -- the
> > 'build' --, your web browser will load each classes as individual
> > files --the 'source' -- (it means that when using 300 classes, you
> > will load 300 small javascript files instead of one big javascript
> > file) : but, you can change sources and check up the results by
> > reloading your web page.
> >
> I do a 'make build' which creates the compressed track.js
> and throw it into tomcats webapp - no this is loaded fast.
> And now i make a clever symbolic link from webapps/Application.js to my
> svn directory where i edit the file - but:
> It didn't work here as the comressed track.js already contains the
> Application.js
> code and i end up having it twice - which irritates qooxdoo.
>
> We would nee to have a
>   "make semibuild"
> which includes everything but not the Application.js which i edit all
> the time.
>
> Thanks
> Marcel
>
> --
> Marcel Ruff
> http://www.xmlBlaster.org
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to