URL projects

User 596f3ef229

10-05-2012 06:13:35

We have been using shared projects and URLs for a while now but I have broken something in our config.


I just want to clarify something...


In the URL deployment documentation, step 4 says:


"If you forward all http request from other webserver (e.g. Apache, IIS, Lighttpd) to java webserver with the deployedUrlWebApp.war then you need to update the locations of the web pages from the other web server in the file
${HOME}/.instantjchem/jnlpwebApp/extra.properties
For example the location of the IJC URL demo web application on Chemaxon web site is http://www.chemaxon.com/urldemo/ style="color: #333333; font-family: arial, verdana; line-height: 19px; font-size: small;">, so the content of extra.properties file is
base.url=http://www.chemaxon.com/urldemo/"


It says a bit later " A prepared shared project (e.g. prj.ijp and prj.zip ) should be copied to ${HOME}/.instantjchem/jnlpwebApp/data/"


So here is our setup:


I have copied the shared projects into ${HOME}/.instantjchem/jnlpwebApp/data/


I have a web page at <servername>/var/ww/html/ijc which has links to each project so a user can click the link and it deploys the project for them (and installs IJC jws if not currently installed).


Do I set extra.properties to "<servername>/var/ww/html/ijc" ?


So do I need copies of jchem JWS files (eg projects, license, info.properties) anywhere but ${HOME}/.instantjchem/jnlpwebApp/data/ ?


What is unclear is that your example doesn't actually say which files are in the http://www.chemaxon.com/urldemo/ directory. Just html files or the ijp/zip files as well?

User 596f3ef229

10-05-2012 06:52:32

Ok, have just done some tests.


It seems the projects etc must be copied to wherever the extra.properties is pointing.


Is that the case? If so, the documentation is very unclear.


So let me ask this another way - if I set extra.properties to


base.url=http://servername/urldemo/


What needs to be copied into http://servername/urldemo/?


The project .ijp and .zip files and license file?


Does it also need the files from the tomcat jws directory ie info.properties, instantjchem.zip, JNLPinstaller.jar, master.jnlp?



ChemAxon 3b366b17e5

10-05-2012 08:44:50

It's not clear for me how your configuration looks like. The license.cxl, *.ijp and *.zip, html files has to be copied to home of folder user who runs the java webserver:


${HOME}/.instantjchem/jnlpwebApp/data/


If the folder doesn't contain index.html file it will show default index.html. The default index page contains information about UrlWebApp configuration and list with deployed shared projects.


The extra.properties file is used in case that you forward url from a webserver to java webserver with UrlWebApp. For example the UrlWeApp is installed to:


http://javaserver:8080/UrlWebApp/


Your apache server forward request from


http://myapacheserver/urldemo/$1 to  http://javaserver:8080/UrlWebApp/


User types to web browser


http://myapacheserver/urldemo/prj1.jnlp url.


In this case you have to put to ${HOME}/.instantjchem/jnlpwebApp/extra.properties


property:


base.url=http://myapacheserver/urldemo

User 596f3ef229

10-05-2012 09:05:19










pzajac wrote:

The extra.properties file is used in case that you forward url from a webserver to java webserver with UrlWebApp. For example the UrlWeApp is installed to:


http://javaserver:8080/UrlWebApp/


Your apache server forward request from


http://myapacheserver/urldemo/$1 to  http://javaserver:8080/UrlWebApp/


User types to web browser


http://myapacheserver/urldemo/prj1.jnlp url.


In this case you have to put to ${HOME}/.instantjchem/jnlpwebApp/extra.properties


property:


base.url=http://myapacheserver/urldemo



This is the part that was not clear to me - specifically how the apache request is forwarded to the tomcat webserver. What you have written is much clearer and should be enough for me to sort it out.


What should extra.properties contain if you are not forwarding - can it just be set to 


base.url=http://javaserver:8080/UrlWebApp


This is what I current have configured and it works fine. If I don't set it to anything, the codebase is not set in master.jnlp, which means nothing can be located.

ChemAxon 3b366b17e5

14-05-2012 11:28:20

Good catch. It's working fine only when you run the server on localhost. We will improve documentation.


Thanks


Petr