[MAGNOLIA-996] Do not hardcode the webapp id to "WebApp" (used by for Geronimo J2EE appserver for instance) Created: 09/Aug/06 Updated: 23/Jan/13 Resolved: 16/Oct/06 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.0 RC4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tim Jowers | Assignee: | Magnolia International |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | 3d | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | 3d | ||
| Environment: |
Apache Geronimo with Tomcat 5.5.9 |
||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
| Date of First Response: |
| Description |
|
Cannot upload both wars. They have no webapp name so Geronimo assigns them the name "WebApp". E.g. instead of http://www.serviza.com:8080/magnoliaAuthor/ one must use http://www.serviza.com:8080/WebApp/ P.S> Last time I tried this I got access forbidden and that rolled over the whole site. I'm accessing in Firefox but that also showed in Konqueror. Maybe someone was doing maintenance as the site became availabel after a few minutes. |
| Comments |
| Comment by Tim Jowers [ 09/Aug/06 ] |
|
Due to the naming conflict ("WebApp") only one war at a time may be uploaded. |
| Comment by Magnolia International [ 16/Oct/06 ] |
|
Actually, the issue is that we were specifying an id attribute in the web.xml, which isn't mandatory. Eventhough tomcat ignores it, it seems geronimo uses it to identify the webapp - which actually makes sense. If we don't specify it, then geronimo will use the archive's name as id (lowercased). Note that the correct way to deploy a webapp will be to have a separate deployment descriptor, which - amongst other things - will tell geronimo (or any other container, since this is container specific) which path/url to assign this webapp to. (http://cwiki.apache.org/GMOxDOC11/deployment-plans.html - seems this is lacking samples at the moment, but check out the mailing list archives or google, too) |
| Comment by Magnolia International [ 16/Oct/06 ] |
|
By the way, if any of you (Tim, voters/watchers) could write a word or two on the wiki ( http://wiki.magnolia.info ) about magnolia deployment inside geronimo, it would be much appreciated ! Being no geronimo expert, I basically just poked around until it deployed anything, and I'm still having issues getting the authentication to work properly at the moment. Cheers ! |