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.
Steps: 1. Create a web project using the blu prints catalog as the template 2. add a jar to the web-inf/lib directory ( i tried adding the oracle jdbc driver classes12.jar ) Expected results: The added jar should be used in the new project Actual results: The project/properties/library settings dialog does not contain the name of the jar
forgot to mention this is with NB 4.1 Beta running on JDK 1.5.0 Update 2
This has been fixed on March 2 (after beta). Note that the fix will only make it work in newly created projects. For existing projects created in daily builds or beta you can workwound this by adding the following line into project.properties: lib.dir=${web.docbase.dir}/WEB-INF/lib *** This issue has been marked as a duplicate of 47238 ***
I take it back -- it was fixed in web project but not in examples.
BTW: Pavle will it work in 4.0 project? When I 'Upgrade it'? (I can testy it if you are not sure)
Only if you add the lib.dir manually; It could be added automatically by code in projectOpen if you think this is necessary, but even then I would limit that only to 4.0 projects. Editing projects automatically when they are open is not nice.
Exactly, it should be added automatically. I was thinking only about "Upgrade 4.0 project to 4.1" case when upgrade dialog appears.
finxed in tomcat samples: Checking in jsp/nbproject/project.properties; /cvs/web/examples/jsp/nbproject/project.properties,v <-- project.properties new revision: 1.8; previous revision: 1.7 done Checking in jstl/nbproject/project.properties; /cvs/web/examples/jstl/nbproject/project.properties,v <-- project.properties new revision: 1.9; previous revision: 1.8 done Checking in servlets/nbproject/project.properties; /cvs/web/examples/servlets/nbproject/project.properties,v <-- project.properties new revision: 1.8; previous revision: 1.7 done
web/project part (add lib.dir for projects from 4.0) Checking in src/org/netbeans/modules/web/project/UpdateHelper.java; /cvs/web/project/src/org/netbeans/modules/web/project/UpdateHelper.java,v <-- UpdateHelper.java new revision: 1.12; previous revision: 1.11 done
Yuta fixed the blueprints part. That shoud be it.
v.