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 39353 - [36cat] Can't add external classpath
Summary: [36cat] Can't add external classpath
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P4 blocker with 1 vote (vote)
Assignee: Pavel Buzek
URL:
Keywords:
: 40154 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-29 08:43 UTC by martins
Modified: 2008-12-23 23:33 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 martins 2004-01-29 08:43:33 UTC
[ JDK VERSION : J2SE 1.4.2_02 ]

There is no way to add an external classpath via
the ide to the tomcat application. You have to
edit setclasspath or catalina directly to solve this.

I have an external jar file that I can't copy to
the webapps \lib folder. In 3.5 I simply edited
the start application of tomcat, and added my
classpath to the tomcat's jar files.
Comment 1 Marek Fukala 2004-01-29 08:58:27 UTC
I agree what this can be a problem, however cannot be you problem
solved by putting the jars into shared or common libs directories
where are the jars loaded by common classloaders?
Comment 2 martins 2004-01-29 09:16:17 UTC
In this special case the problem can't be solved like that because the
jar files require native dll's in their folder, that are dynamically
loaded. So if I move the jar files, they can't find these dll's.

Maybe I solve the problem via setting my system classpath to that jar.
Comment 3 Petr Jiricka 2004-01-29 13:44:56 UTC
An additional consideration: what do you do to make this work in your
production environment? I think we should be looking for a fix that
works in both the development and production environments.

I think this should be reclassified as "enhancement".
Comment 4 martins 2004-01-29 13:59:37 UTC
In production environment I have a modified version of
setclasspath.(bat/sh)

My first thought was, that when on tomcat starts the setclasspath file
 is modified, but this would be a global setting and not a project
setting.

In Netbeans 3.5.1 there is an option (under Runtime, Installed Server,
Tomcat, Internat Tomcat) calles External Execution Process. There I put
my additional classpath after -classpath. But I can't find that option
in 3.6.

Generally I do not know, how Tomcat is started now (maybe via catalina?)

Thanks for your ideas.
Comment 5 Petr Jiricka 2004-01-29 14:35:44 UTC
Yes, now the catalina.[bat/sh] is used.
Comment 6 Pavel Buzek 2004-02-26 23:20:10 UTC
*** Issue 40154 has been marked as a duplicate of this issue. ***
Comment 7 mslama 2005-11-08 14:55:20 UTC
*** Issue 23574 has been marked as a duplicate of this issue. ***
Comment 8 Jayashri Visvanathan 2008-12-23 23:33:27 UTC
Issue based on 3.6, closing.  Please reopen if the bug is applicable for NetBeans 6.5.