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 53677 - Create declaration for JDBC resource in context.xml
Summary: Create declaration for JDBC resource in context.xml
Status: CLOSED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-19 12:57 UTC by Petr Blaha
Modified: 2006-03-24 13:00 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 Petr Blaha 2005-01-19 12:57:29 UTC
[Build 20050118]
User can create lookup method for Database
connection from pop-up menu Enterprise resource ->
Use database. The lookup method is generated and
entry in DD is created for projects that uses
Tomcat as target server.
I think that we shall generate declaration in
context.xml in context.xml also.

In context.xml we can create resource element:
<Resource name="jdbc/TestDB"
               auth="Container"
               type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/TestDB">
    <parameter>
      <name>factory</name>     
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
....
....
</ResourceParams>
Comment 1 zikmund 2005-01-19 16:46:09 UTC
Seems to me like a bug - missing part of the feature ...
Comment 2 Sherold Dev 2005-02-18 13:41:55 UTC
Setting the TM to 4.1. 
Comment 3 Geertjan Wielenga 2005-04-22 13:05:03 UTC
This is till true in RC1...

Shouldn't it be fixed for 4.1?
Comment 4 Sherold Dev 2005-04-22 13:54:13 UTC
As Karel pointed out via email, it is not a showstopper. It's too late for
fixing it in 4.1.
Comment 5 Sherold Dev 2005-10-18 18:03:24 UTC
This has already been implemented for Tomcat 5.0 but not yet for Tomcat 5.5.

TM -> 5.0
Comment 6 Sherold Dev 2005-10-19 07:42:05 UTC
-> tomcatint
Comment 7 Sherold Dev 2005-11-21 09:09:06 UTC
F.

Checking in src/org/netbeans/modules/tomcat5/WebappConfiguration.java;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/WebappConfiguration.java,v
 <--  WebappConfiguration.java
new revision: 1.14; previous revision: 1.13
done
Checking in src/org/netbeans/modules/tomcat5/resources/tomcat5_context.dtd;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/resources/tomcat5_context.dtd,v
 <--  tomcat5_context.dtd
new revision: 1.2; previous revision: 1.1
done
Checking in src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd;
/cvs/tomcatint/tomcat5/src/org/netbeans/modules/tomcat5/resources/tomcat5_server.dtd,v
 <--  tomcat5_server.dtd
new revision: 1.6; previous revision: 1.5
done
Comment 8 Petr Blaha 2005-12-08 09:36:40 UTC
[build 20051207]