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 155917 - Netbeans overwrites context.xml
Summary: Netbeans overwrites context.xml
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-22 03:26 UTC by _ gtzabari
Modified: 2009-04-15 17:09 UTC (History)
2 users (show)

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 _ gtzabari 2008-12-22 03:26:49 UTC
Changing "Project Properties -> Run -> Server" to "Tomcat" causes Netbeans to clobber existing an context.xml file. I am
expecting Netbeans to leave existing context.xml files alone or modify them without discarding existing data.
Comment 1 Jayashri Visvanathan 2008-12-25 00:10:03 UTC
Thuy, can you please evaluate this issue  ?
thanks
Comment 2 Thuy.d Nguyen 2009-01-06 01:35:03 UTC
To help us debug the issue, could you give more info such as 
- from which server you changed to tomcat server?
- which version of tomcat server are you using
- content of the context.xml file before and after it was modified when changing server

Better yet, could you attached your web app, if possible, for us to replicate.
Comment 3 _ gtzabari 2009-01-06 05:57:09 UTC
I believe I switched from Glassfish v2 to Tomcat 6.0.18. I will try creating a minimal testcase for you in the coming
days in case you can't reproduce this without me. My context.xml file reads:

<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/adcaster/v1">
    <Resource
    auth="Container"
    name="jdbc/adcaster"
    type="javax.sql.DataSource"
    password="password"
    driverClassName="com.mysql.jdbc.Driver"
    removeAbandoned="true"
    logAbandoned="true"
    username="username"
    url="jdbc:mysql://localhost:3307/adcaster1"
    initialSize="0"
    maxActive="10"
    maxIdle="0"
    maxWait="3000"
    poolPreparedStatements="true"
    maxOpenPreparedStatements="50"
    removeAbandonedTimeout="120"/>
</Context>
Comment 4 Jindrich Sedek 2009-04-15 11:13:57 UTC
There are some aditional info from the user - is this issue still INCOMPLETE or are we able to do something with it?
Comment 5 Petr Hejl 2009-04-15 14:31:41 UTC
What is the NetBeans version? Is it 6.5 or 6.7? What is the project type? Web or maven?

I can't reproduce the issue neither with trunk nor with 6.5.1. When I change the server all values except path are
preserved.
Comment 6 _ gtzabari 2009-04-15 17:09:40 UTC
This used to be in web, 6.5. I just checked and it seems to be fixed in 6.5.1.