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.
Build 200412011810 (RC2) 1) Create new WebApp 2) Run project 3) ERROR: META-INF/context.xml is copied to Tomcat5.dpf file (should not be) and is modified by adding docBase attribute with absolute path (shouldn't)!
Created attachment 19113 [details] Example pair of generated Tomcat5.dpf and meta-inf/context.html files
My generated Tomcat5.dpf and meta-inf/context.html have a different symptom pattern (see the files in the attached files.zip). Both have absolute paths for docBase. The one in context.html appears to be correct, but one is Tomcat5.dpf is very strange. This path does not exist in my file system! The path used to exist some time ago when I had a single project. Now I have multiple projects that are all under a Projects directory. I'm really curious how Netbeans is acquiring this old path. In addition to old vs. new, the Tomcat5.dpf path is into the source tree (in its old location), while the context.html path is into the build tree (in its current location).
Setting TM to 4.1.
The absolute path problem in Tomcat may be related to the following Tomcat issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=27916
F. Checking in src/org/netbeans/modules/tomcat5/TomcatManagerImpl.java; /cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/TomcatManagerImpl.java,v <-- TomcatManagerImpl.java new revision: 1.39; previous revision: 1.38 done Checking in TargetServer.java; /cvs/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/TargetServer.java,v <-- TargetServer.java new revision: 1.40; previous revision: 1.39 done
So after the fix, the war file will contain context.xml that does not contain the absolute path, correct? Will it be possible to deploy this war file to Tomcat manually? And redeploy? (I know there were problems that deploy sort of worked, but redeployment using Tomcat manager did not.)
> will contain context.xml that does not contain the absolute path Positive > deploy this war file to Tomcat manually I tested this by copying the war file to webapps dir and it worked. > And redeploy? Did not tested this yet, will try it out.
Verified in 200503301800.