This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250091

Summary: propagate change from CDT with vhost use
Product: web Reporter: Altenalson
Component: InspectionAssignee: Jan Stola <jstola>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Altenalson 2015-01-29 11:10:03 UTC
Hello,

As a web developper, one of my favorite features is the netbeans connector with chrome and the "propagate change" option.

Until now, I never got any problem. But as my project got more complex, I created vhost on my machine. So my local url goes from http://localhost/project/dev/www to http://dev.project.loc and http://localhost/project/trunk/www to http://trunk.project.loc which is super convenient. But now, change made in the CDT don't propagate anymore.

It would be really great if this can work that way (or any other).

My httpd.conf look like :
<VirtualHost 127.0.0.1:80>
  DocumentRoot C:\wamp\www\project\dev\www
  ServerName dev.loc
  ServerAlias *.dev.loc
  <Directory C:\wamp\www\project\dev\www>
    allow from all
    Options +FollowSymLinks
  </Directory>
</VirtualHost>

Navigator: Chrome 40.0.x with netbeans connector plugin
Run conf: Chrome with netbeans connector
Comment 1 Jan Stola 2015-03-12 16:42:53 UTC
The propagation of changes works only when we are able to map the modified URL to its source file in the project. This mapping is based on the directory structure of the project and the URL for the context root (in Web Application projects) or URL for the site root folder (in HTML5 project) - these URLs are specified (or derived from the information set) in Run section of the project properties.

Unfortunately, you use a different type of mapping that NetBeans is not aware of. Hence the propagation of the changes doesn't work.