At line 1 changed 1 line. |
I've been told I should use Tomcat's Ant Tasks (install, list, refresh, remove) in [AppFuse] to ease deployment of the app. So I tried that today (June 24, 2003). Here's how I set it up and what I found. I hope to use this page to get a consensus on how these tasks should be used. |
[I|MattRaible]'ve been told I should use Tomcat's Ant Tasks (install, list, refresh, remove) in [AppFuse] to ease deployment of the app. So I tried that today (June 24, 2003). Here's how I set it up and what I found. I hope to use this page to get a consensus on how these tasks should be used. |
At line 63 changed 1 line. |
* Install: Doesn't work. I get the good ol' {{java.sql.SQLException: Cannot load JDBC driver class 'null'}}. Everything looks fine from the Ant side though: |
__Install: Doesn't work.__ I get the good ol' {{java.sql.SQLException: Cannot load JDBC driver class 'null'}}. Everything looks fine from the Ant side though: |
At line 65 changed 1 line. |
[install] OK - Installed application at context path /cct |
[install] OK - Installed application at context path /appfuse |
At line 67 changed 2 lines. |
If I restart Tomcat, everything starts and loads just fine. |
* Remove: Doesn't seem to work, but it actually does. Here's what Ant reports: |
If I restart Tomcat, everything starts and loads just fine. |
__Remove: Doesn't seem to work__, but it actually does. Here's what Ant reports: |
At line 72 changed 1 line. |
If I run the same task again, I get: |
If I run the same task again, I get: |
At line 74 changed 1 line. |
[remove] FAIL - No context exists for path /cct |
[remove] FAIL - No context exists for path /appfuse |
At line 76 changed 1 line. |
Proving that it actually did work the first time. |
Proving that it actually did work the first time. |
__Reload: Doesn't work__: |
{{{ |
[reload] FAIL - Reload not supported on WAR deployed at path /cct |
}}} |
Even though my context has ''reloadable="true"'' |
---- |
!!My Thoughts |
* The problem might be that I'm not pointing to a build/appfuse directory that contains an already intact webapp directory structure - instead I'm pointing to a ''real'' .war file. My context has __path="/appfuse"__ rather than ''path="/appfuse.war"'', so I wonder if that matters. |
* Reload seems pointless to me, I still have to deploy (copy files to $CATALINA_HOME/webapp) to Tomcat, and when I do this with Ant's <copy> task, Tomcat reloads the app automagically. |
* Using these tasks seems like a waste of time - especially since I'm just replacing something that already works for me. Please, someone prove me wrong. And not with points and counterpoints - but by checking out [AppFuse] from CVS and submitting patches. ;-) |
|
~ [MattRaible] |