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 141790 - Web Application run-main does not use classpath
Summary: Web Application run-main does not use classpath
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-27 00:32 UTC by fommil
Modified: 2009-11-02 11:17 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 fommil 2008-07-27 00:32:22 UTC
I have a main method in one of my Web Application classes. I use it to run a parser to populate a database. However, my main method depends on a 3rd 
party library and Netbeans is not adding this library to the classpath (despite being correctly copied to the right place in the dist folder and war file). This is a 
bug... the run-main classes should have the library dependencies on their classpath.
Comment 1 fommil 2008-07-27 00:34:01 UTC
I just realised that the difficulty here may be because the 3rd party lib that I use is not in the Libraries, it is in the "Package with" list (i.e. the runtime library).
Comment 2 Peter Pis 2008-08-01 14:12:09 UTC
Reassigning to "web" for evaluation.
Comment 3 David Konecny 2008-09-16 02:29:51 UTC
Following could help: edit project.properties and edit debug.classpath (should have been named run.classpath) and add to
the end value ":${war.content.additional}" (that's the property which holds your runtime items to pack in WAR). Please
confirm if it resolved your issue. Perhaps war.content.additional property should have been always automatically in
debug.classpath?
Comment 4 Trey Spiva 2008-11-19 20:12:21 UTC
It sounds like this issue can be closed.  The reason is because the libraries where not place in the libraries, therefore where not placed on the classpath.  

Comment 5 Quality Engineering 2009-11-02 11:17:59 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX