History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17140
Type: Bug Bug
Status: Open Open
Assignee: Nikolay Chashnikov
Reporter: Alexey Stukalov
Votes: 5
Watchers: 5
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Tomcat Context Descriptor is ignored

Created: 13 Feb 08 19:26   Updated: 18 Sep 08 16:52
Component/s: J2EE.Deployment and Run.Tomcat

Environment: Windows XP, JDK 1.6_04, Tomcat 6.0.14

Build: 7,590
Severity: High


 Description  « Hide
Custom tomcat context descriptor is specified in web facet configuration of the module (file META-INF/context.xml):
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/">
    <Resource name="jdbc/cfam"
        type="javax.sql.DataSource"
        password="..."
        driverClassName="com.mysql.jdbc.Driver"
        maxIdle="2"
        maxWait="5000"
        validationQuery="SELECT 1"
        username="..."
        url="jdbc:mysql://localhost:3306/cfam"
        maxActive="8"
        />
</Context>

However, upon deployment the context file that IDEA creates is just:

<?xml version="1.0" encoding="UTF-8"?>
<Context path="/pkeysdev" docBase="...\target\webapp" />


 All   Comments   Work Log   Change History      Sort Order:
John Hampton - 18 Apr 08 19:18
I have the same problem. I usually experience it when deploying a war file. Exploded war directories appear to work OK.

Jim Smith - 23 Apr 08 20:26
I am having the same issue with IDEA 7.0.3 and Tomcat 5.5. Each time I try to Run/Debug the tomcat context file in the work folder is not copied from the tomcat conf folder, a new "vanilla" context is created and the app won't run.

Stefan Thiel - 18 Sep 08 16:52
Same problem on fedora9, tomcat 6.0.18, jdk1.6.0_07:
idea run/debug ignores META-INF/context.xml within the war-file/webapp source dir