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 20915 - execute webapp with database access does not work
Summary: execute webapp with database access does not work
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: jhoffman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-27 00:36 UTC by joannelau
Modified: 2002-08-27 17:54 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 joannelau 2002-02-27 00:36:29 UTC
020225_2 EE win2000 , jdk1.4

According to HIE orion web db doc (in
http://devtools.eng/teams/HIE/projects/Jasper/Orion/orion_web_db.html#exec)
in the session "Execute a web application with database access in a web server integrated with the IDE"
it said "...If, however, all the driver files are not packaged as JARs, or the user does not want to include the driver files
  within their web module, then the appropriate driver files must be explicitly included in the web server's execution classpath that is
  set from within the IDE. This can be done in one of two methods:

     1.Mount the JDBC driver file (zip or jar) in the IDE using any of the Mount Filesystem mechanisms (New..., context menu off the
       Filesystems node, etc.) 
     2.Set the "External Execution Process" property editor by adding the driver file path and name to the -cp argument in the
       Arguments field. (This will work for Tomcat 4.0, but we should also make sure that iAS 7.0 has this same property). 

The problem is that just using 1) does not work.
I'm getting a database connection error.

The behavior in the IDE is different than what described in the HIE doc.
Comment 1 Damian Frach 2002-02-27 08:33:46 UTC
Because we reduced the Tomcat classpath for performance reasons, the
right process is this: 

1. For establishing direct JDBC connection from application to server
is used:

   a) DB ZIP driver files can be
      - either the TC classpath
      - or in WEB-INF/lib directory renamed to .jar file
      - or in tomcat401/lib directory renamed to .jar file

   
   b) DB JAR driver files can be
      - either the TC classpath   
      - or in WEB-INF/lib directory
      - or in tomcat401/lib directory (the IDE do it automatically for
pointbase driver)


The HIE doc has to be changed.
Comment 2 joannelau 2002-02-27 17:19:24 UTC
I would like to leave it open until the doc has been changed.
Therefore I reopen the issue.
Comment 3 jhoffman 2002-04-29 02:02:20 UTC
The design document has been changed.  This issue will be 
revisited when the projects infrastructure becomes available.
Comment 4 joannelau 2002-08-27 17:54:24 UTC
verified doc