Good day, I’m developing a simple Java EE web application in NetBeans 7.2.1 which uses Dojo Toolkit 1.8.1 and which runs on Appache Tomcat 7.0. I included Dojo Tolkit into the application’s resources folder but building the app takes long time as Dojo Toolkit contains many files. Is it posible to place Dojo Toolkit outside the WAR file so that building doesn’t take that long and I’m still able to use Dojo in my web application? Each time I need to debug the application I need to rebuild it so I’m waiting a lot. Please advise. Many thanks in advance. Vojtech
Good day, I’m developing a simple Java EE web application in NetBeans 7.2.1 which
Share
A solution that works very well for me is to build a separate dojo web app and deploy along side or on another instance of Tomcat.
The reason being, cross-domain issues can be hard to debug and you get more control over the build, version, modules etc.
You can also deploy dojo to apache httpd if you have access or have installed it on the server.
when you load the toolkit, you would use either
http://<servername>:<tomcatport>/<context>or if on Apache httpd simply"/dtk" or "/dojo/dojo/dojo.js"etc.I use “dtk” as the context so dojo.js resides at
http://<servername>:<tomcatport>/dtk/dojo/dojo.jsand usually my application is compiled as dtk##1.8.1.war for Tomcat 7 – the ## indicates to tc that you would like a that displayed as the version.Hope that helps!