Thursday, 2015-02-12

*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid09: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 #wikid15:52
*** ricardoamaro (~ricardoam@drupal.org/user/74228/view) has joined #wikid16:25
*** greghaygood (~greghaygo@67.211.17.2) has joined #wikid16:32
nowenlaszlof: meet greghaygood16:33
nowengreghaygood: meet laszlof16:33
greghaygoodhey laszlof - nick said you had a question about the servlets?16:33
laszlofoh right16:48
laszlofI 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 file16:49
laszlofhttp://pastebin.com/gUJMBzrp16:49
laszlofwhen attempting to access /admin-api, it throws up the generic wikid 404 error page16:49
laszlofso im not sure if I missed a step somewhere16:49
greghaygoodyou restarted tomcat?  :)16:50
laszlofyeah :)16:50
greghaygoodhad to ask!  looking...16:50
laszlofim working within tomcat/webapps/WiKIDAdmin/WEB-INF btw16:51
laszlofim pretty sure thats the right place16:51
greghaygoodyeah, it should be16:52
laszlofI'm thinking that the WiKIDAdmin url-pattern might be overriding it16:53
laszlofbut I thought if I put it before, it would take presidence16:54
greghaygoodohhh16:54
greghaygoodno, that URL pattern means it will be accessible at /WiKIDAdmin/admin-api16:54
greghaygoodtomcat/servlet containers require that kind of containment16:54
greghaygoodif you want the URL to be wikid-server.com/admin-api, then the servlet definition has to go into the ROOT webapp16:55
laszlofI'd rather have it within WiKIDAdmin16:55
laszlofstill a 40416:56
greghaygoodso are you getting the 404 from /admin-api or /WiKIDAdmin/admin-api ?16:56
laszlofboth16:56
greghaygoodanything in the logs other than 404?16:56
laszloflet me check16:56
greghaygoodon startup, too16:56
laszlof192.240.191.2 - WiKIDAdmin [12/Feb/2015:16:56:40 +0000] "GET /WiKIDAdmin/admin-api HTTP/1.1" 404 33916:57
laszlof192.240.191.2 - WiKIDAdmin [12/Feb/2015:16:56:40 +0000] "GET /WiKIDAdmin/images/Wikid-logo.gif HTTP/1.1" 304 -16:57
greghaygoodand you're logged in?16:57
laszloflet me trstart16:57
laszlofyes16:57
greghaygoodperhaps "Admin" is conflicting with something internal?   Try naming the servlet AdminApi or something such to test16:59
laszlofno startup errors.17:00
laszlofok17:00
laszlofhm, i dont have to do anything with tomcat/webapps/WiKIDAdmin.war do I/17:01
greghaygoodhow are you deploying your change?17:08
laszlofunpacking the wikid-server jar file, copying the file within there (in com/wikidsystems/api), updating INDEX.LIST and repacking it17:11
greghaygoodso you're modifying the single jar within the exploded wikidadmin webapp?17:14
greghaygoodand then restarting tomcat so it'll pick up the change?17:14
laszlofyes17:14
greghaygoodare you leaving WiKIDAdmin.war in place?17:14
laszlofyes17:14
greghaygoodtomcat may or may not be re-exploding the war file, thereby overwriting your changes17:15
greghaygoodpull the WAR out of the folder so it will only pay attention to the exploded folder17:15
laszlofah, i bromke something now17:15
laszlofyou must have been right about the Admin thing17:16
laszlofSEVERE: Servlet /WiKIDAdmin threw load() exception17:16
laszlofjava.lang.NoClassDefFoundError: com/wikidsystems/api/AdminApi (wrong name: AdminApi)17:16
laszlofso its probably trying to use the .war file17:16
laszlofwhich doesnt have the servlet17:16
greghaygooddid you rename your servlet class?17:16
greghaygoodi just meant for you to change the reference name in web.xml - the class name can stay the same17:16
laszlofya, I renamed it all17:17
laszlofi just moved the .war file and am restarting17:17
greghaygoodk17:17
laszlofheh.17:28
laszlofok17:28
laszlofso whenever I start up wikid17:28
laszlofthe WiKIDAdmin directory disappears17:28
laszlofim guessing its trying to extract the .war that isnt there anymore17:28
laszlofso. solution is to extra the .war, make changes, repack the war17:28
greghaygoodhmm, it shouldn't delete it when restarting if the war isn't there.17:29
greghaygoodbut yeah, prob easier to repack within the war17:29
greghaygooduse the ant task to make it easier17:30
laszlofcan tomcat be restarted without wikidctl?17:36
laszloflol17:40
laszlofthis war keeps getting extracted by itself17:40
laszlofah, there was a tomcat thread running17:41
greghaygoodhehe, tomcat can be "resilient" like that17:41
laszlofi thought I was going crazy17:41
nowenbbiab17:41
laszlofI explicitly deleted the WiKIDAdmin directory and war file17:41
laszlofthen copied the new one17:41
laszlofand all the sudden there was an extract version there17:41
laszlofextracted*17:42
laszlofheh. I think I hosed my install17:57
greghaygoodreally?  ouch18:02
laszlofno big deal18:04
greghaygoodinconvenient, tho18:04
laszlofi have a backup image18:04
laszlofits a VPS18:04
laszlofI think permissions were messing with me, I really need to su to the wikid user when messing with this18:05
laszlofjava.lang.NoClassDefFoundError: com/wikidsystems/api/AdminApi (wrong name: AdminApi)18:15
laszlofbah18:15
greghaygoodif you 'jar tf' on the server jar, is your class there?18:47
laszlofI got it working18:51
laszlofi forgot the package declaration in the servlet18:51
laszlofthanks for your help18:51
greghaygoodsweet18: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 #wikid21: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 #wikid23:42

Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!