| Summary: | Please provide access to tomcat context configuration | ||
|---|---|---|---|
| Product: | [RT] Virgo | Reporter: | Ric Klaren <ric.klaren> |
| Component: | unknown | Assignee: | Project Inbox <virgo-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | trivial | ||
| Priority: | P3 | CC: | glyn.normington, milesg78 |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Ric Klaren
You should be able to configure the context as per the instructions in the User Guide: http://www.eclipse.org/virgo/documentation/virgo-documentation-2.1.0.RELEASE/docs/virgo-user-guide/htmlsingle/virgo-user-guide.html#configuring-tomcat in the section entitled "Context Configuration". Have you tried this approach? (In reply to comment #1) > in the section entitled "Context Configuration". Have you tried this approach? I used a context.xml with a blatant XML error (just to see if its picked up). Putting it in $SERVER_HOME/config/context.xml does not give me an error (or something is eating the stacktrace) Putting it in $SERVER_HOME/config/Catalina/localhost/context.xml.default does not seem to be picked up either (no errors). Am I missing something? Cheers, Ric I suppose you checked serviceability/logs/log.log? (In reply to comment #3) > I suppose you checked serviceability/logs/log.log? Yes, and today my brain seemed to reconnect and see that the installation I was looking at was dm server in stead of virgo (it was reinstalled recently). We had the issue originally on DM Server. I guess yesterday was one of those days. Virgo looks at the advertised places and some more as it turns out (locations below). I looked with strace at dmserver and noticed it was looking in various other places: $SERVER_HOME/conf/context.xml $CURRENT_WORK_DIR/Catalina/localhost/context.xml.default (and inside some bundles with the same conf directory) Out of curiosity I looked at virgo as well with strace. Virgo also has some interest in the conf directory: $SERVER_HOME/conf/catalina.properties $SERVER_HOME/conf/tomcat5-mbeans.xml $SERVER_HOME/conf/Catalina/localhost $SERVER_HOME/conf/web.xml $CURRENT_WORK_DIR/config/Catalina/localhost/admin.xml Not sure if that is all intended. Anycase my apologies for the static. No problem. The ability to configure Tomcat contexts is new to Virgo. What now remains of this Virgo bug? (In reply to comment #5) > What now remains of this Virgo bug? For virgo it is not a bug. Unless the extra lookups in the conf/ directory are an issue, I thought I'd mention. In that case the issue should be renamed. Thanks Ric. Violeta: before I close this bug, please could you confirm that the file/directory accesses in comment 4 look reasonable. They looked plausible to me. (In reply to comment #7) > Thanks Ric. > Violeta: before I close this bug, please could you confirm that the > file/directory accesses in comment 4 look reasonable. They looked plausible to > me. Hi, The Tomcat implementation is such that it tries to find its configuration files via system properties or in predefined locations (all that starts with $SERVER_HOME/conf… are predefined locations). For some of the configuration files Tomcat uses also classloader in order to try to load them. So from my perspective it is OK. Regards Violeta Thanks Violeta! |