*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 09:06 | |
*** ricardoamaro has quit (Ping timeout: 250 seconds) | 11:03 | |
*** nowen has quit (Quit: Leaving.) | 15:47 | |
*** nowen (~nowen@99-174-92-191.lightspeed.tukrga.sbcglobal.net) has joined #wikid | 15:52 | |
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 16:25 | |
*** greghaygood (~greghaygo@67.211.17.2) has joined #wikid | 16:32 | |
nowen | laszlof: meet greghaygood | 16:33 |
---|---|---|
nowen | greghaygood: meet laszlof | 16:33 |
greghaygood | hey laszlof - nick said you had a question about the servlets? | 16:33 |
laszlof | oh right | 16:48 |
laszlof | I have a class file packed in the jar, within com/wikidsystems/api/Admin.class. Also updated the META-INF/INDEX.LIST. i then edited the web.xml file | 16:49 |
laszlof | http://pastebin.com/gUJMBzrp | 16:49 |
laszlof | when attempting to access /admin-api, it throws up the generic wikid 404 error page | 16:49 |
laszlof | so im not sure if I missed a step somewhere | 16:49 |
greghaygood | you restarted tomcat? :) | 16:50 |
laszlof | yeah :) | 16:50 |
greghaygood | had to ask! looking... | 16:50 |
laszlof | im working within tomcat/webapps/WiKIDAdmin/WEB-INF btw | 16:51 |
laszlof | im pretty sure thats the right place | 16:51 |
greghaygood | yeah, it should be | 16:52 |
laszlof | I'm thinking that the WiKIDAdmin url-pattern might be overriding it | 16:53 |
laszlof | but I thought if I put it before, it would take presidence | 16:54 |
greghaygood | ohhh | 16:54 |
greghaygood | no, that URL pattern means it will be accessible at /WiKIDAdmin/admin-api | 16:54 |
greghaygood | tomcat/servlet containers require that kind of containment | 16:54 |
greghaygood | if you want the URL to be wikid-server.com/admin-api, then the servlet definition has to go into the ROOT webapp | 16:55 |
laszlof | I'd rather have it within WiKIDAdmin | 16:55 |
laszlof | still a 404 | 16:56 |
greghaygood | so are you getting the 404 from /admin-api or /WiKIDAdmin/admin-api ? | 16:56 |
laszlof | both | 16:56 |
greghaygood | anything in the logs other than 404? | 16:56 |
laszlof | let me check | 16:56 |
greghaygood | on startup, too | 16:56 |
laszlof | 192.240.191.2 - WiKIDAdmin [12/Feb/2015:16:56:40 +0000] "GET /WiKIDAdmin/admin-api HTTP/1.1" 404 339 | 16:57 |
laszlof | 192.240.191.2 - WiKIDAdmin [12/Feb/2015:16:56:40 +0000] "GET /WiKIDAdmin/images/Wikid-logo.gif HTTP/1.1" 304 - | 16:57 |
greghaygood | and you're logged in? | 16:57 |
laszlof | let me trstart | 16:57 |
laszlof | yes | 16:57 |
greghaygood | perhaps "Admin" is conflicting with something internal? Try naming the servlet AdminApi or something such to test | 16:59 |
laszlof | no startup errors. | 17:00 |
laszlof | ok | 17:00 |
laszlof | hm, i dont have to do anything with tomcat/webapps/WiKIDAdmin.war do I/ | 17:01 |
greghaygood | how are you deploying your change? | 17:08 |
laszlof | unpacking the wikid-server jar file, copying the file within there (in com/wikidsystems/api), updating INDEX.LIST and repacking it | 17:11 |
greghaygood | so you're modifying the single jar within the exploded wikidadmin webapp? | 17:14 |
greghaygood | and then restarting tomcat so it'll pick up the change? | 17:14 |
laszlof | yes | 17:14 |
greghaygood | are you leaving WiKIDAdmin.war in place? | 17:14 |
laszlof | yes | 17:14 |
greghaygood | tomcat may or may not be re-exploding the war file, thereby overwriting your changes | 17:15 |
greghaygood | pull the WAR out of the folder so it will only pay attention to the exploded folder | 17:15 |
laszlof | ah, i bromke something now | 17:15 |
laszlof | you must have been right about the Admin thing | 17:16 |
laszlof | SEVERE: Servlet /WiKIDAdmin threw load() exception | 17:16 |
laszlof | java.lang.NoClassDefFoundError: com/wikidsystems/api/AdminApi (wrong name: AdminApi) | 17:16 |
laszlof | so its probably trying to use the .war file | 17:16 |
laszlof | which doesnt have the servlet | 17:16 |
greghaygood | did you rename your servlet class? | 17:16 |
greghaygood | i just meant for you to change the reference name in web.xml - the class name can stay the same | 17:16 |
laszlof | ya, I renamed it all | 17:17 |
laszlof | i just moved the .war file and am restarting | 17:17 |
greghaygood | k | 17:17 |
laszlof | heh. | 17:28 |
laszlof | ok | 17:28 |
laszlof | so whenever I start up wikid | 17:28 |
laszlof | the WiKIDAdmin directory disappears | 17:28 |
laszlof | im guessing its trying to extract the .war that isnt there anymore | 17:28 |
laszlof | so. solution is to extra the .war, make changes, repack the war | 17:28 |
greghaygood | hmm, it shouldn't delete it when restarting if the war isn't there. | 17:29 |
greghaygood | but yeah, prob easier to repack within the war | 17:29 |
greghaygood | use the ant task to make it easier | 17:30 |
laszlof | can tomcat be restarted without wikidctl? | 17:36 |
laszlof | lol | 17:40 |
laszlof | this war keeps getting extracted by itself | 17:40 |
laszlof | ah, there was a tomcat thread running | 17:41 |
greghaygood | hehe, tomcat can be "resilient" like that | 17:41 |
laszlof | i thought I was going crazy | 17:41 |
nowen | bbiab | 17:41 |
laszlof | I explicitly deleted the WiKIDAdmin directory and war file | 17:41 |
laszlof | then copied the new one | 17:41 |
laszlof | and all the sudden there was an extract version there | 17:41 |
laszlof | extracted* | 17:42 |
laszlof | heh. I think I hosed my install | 17:57 |
greghaygood | really? ouch | 18:02 |
laszlof | no big deal | 18:04 |
greghaygood | inconvenient, tho | 18:04 |
laszlof | i have a backup image | 18:04 |
laszlof | its a VPS | 18:04 |
laszlof | I think permissions were messing with me, I really need to su to the wikid user when messing with this | 18:05 |
laszlof | java.lang.NoClassDefFoundError: com/wikidsystems/api/AdminApi (wrong name: AdminApi) | 18:15 |
laszlof | bah | 18:15 |
greghaygood | if you 'jar tf' on the server jar, is your class there? | 18:47 |
laszlof | I got it working | 18:51 |
laszlof | i forgot the package declaration in the servlet | 18:51 |
laszlof | thanks for your help | 18:51 |
greghaygood | sweet | 18:54 |
*** ricardoamaro has quit (Read error: Connection reset by peer) | 20:27 | |
*** coolacid has quit (Remote host closed the connection) | 21:10 | |
*** coolacid (~CoolAcid@elasticsearch/staff/coolacid) has joined #wikid | 21:11 | |
*** nowen has quit (Quit: Leaving.) | 23:05 | |
*** greghaygood has quit (Remote host closed the connection) | 23:33 | |
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid | 23:42 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!