Skip to main content

webroot doesnt work correctly for domains

3 replies [Last post]
zissiszarty
Offline
Joined: 2007-03-27
Points: 0

I was wondering if anyone else had the same problem.
When a jmaki application is accessed from a dir url like http://localhost:8080/freelancing or when deployed even using virtual host like http://72.9.96.82/freelancing works fine and the widjets are found and displayed correrctly. when the webapp is access by domain like freelancing.gr the widgets are not found.
When debuging i found that on first case when accesed like http://72.9.96.82/freelancing works and this is the webroot value
jmaki.webRoot='http://72.9.96.82/freelancing';jmaki.resourcesRoot ='resources';
and when accessed by www.freelancing.gr doesnt work and gives a access denied error.
jmaki.webRoot='http://www.freelancing.gr';jmaki.resourcesRoot ='resources';
I was wondering if there is a something in jmaki code that restricts domain access?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi,

Are you using the latest .9 or better version of jMaki?

Looking at the code the server name from the request should be picked up so both cases should work.

The code can be seen in the getWebRoot method in the AjaxContext.

https://ajax.dev.java.net/source/browse/*checkout*/ajax/ws/jmaki/shared/...

If you are using an older version of jMaki could you verify?

If not we'll try to investigate this deeper.

-Greg

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

I took jmaki js and ajax-wrapper-comp.jar and some components from the jmaki.war application in jmaki.js this.version = '.8.3.2';

zissiszarty
Offline
Joined: 2007-03-27
Points: 0

Using ajax-wrapper-comp.jar from version 0.9.1 solved the problem!