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 56835 - Web project doesn't detect library added to the webinf/lib directory
Summary: Web project doesn't detect library added to the webinf/lib directory
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: blueprints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yutaka Yoshida
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 09:32 UTC by navneet
Modified: 2013-02-13 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description navneet 2005-03-23 09:32:16 UTC
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
Comment 1 navneet 2005-03-23 09:33:01 UTC
forgot to mention this is with NB 4.1 Beta running on JDK 1.5.0 Update 2
Comment 2 Pavel Buzek 2005-03-23 13:52:57 UTC
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 ***
Comment 3 Pavel Buzek 2005-03-23 14:18:56 UTC
I take it back -- it was fixed in web project but not in examples.
Comment 4 zikmund 2005-03-23 14:42:15 UTC
BTW: Pavle will it work in 4.0 project? When I 'Upgrade it'? (I can testy it if
you are not sure)
Comment 5 Pavel Buzek 2005-03-23 15:15:04 UTC
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.
Comment 6 zikmund 2005-03-23 15:18:28 UTC
Exactly, it should be added automatically. I was thinking only about "Upgrade
4.0 project to 4.1" case when upgrade dialog appears.
Comment 7 Pavel Buzek 2005-03-23 20:15:36 UTC
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
Comment 8 Pavel Buzek 2005-03-23 21:55:15 UTC
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
Comment 9 Pavel Buzek 2005-03-24 04:21:15 UTC
Yuta fixed the blueprints part. That shoud be it.
Comment 10 Jan Horvath 2005-07-13 13:38:15 UTC
v.