Le 2012-10-25 à 10:34, Theodore Petrosky <[email protected]> a écrit :
> well we are getting somewhere: > > [Thu Oct 25 10:29:41 2012] [error] WOSocket: connect error in NB connect: > Permission denied > [Thu Oct 25 10:29:41 2012] [error] couldn't connect to localhost (1085): > Permission denied > [Thu Oct 25 10:29:41 2012] [error] Error connecting to server localhost > [Thu Oct 25 10:29:41 2012] [error] Request handling error: The requested > application was not found on this server. > > -rwxr-x---. 1 appserver appserveradm 11101 Oct 3 15:29 JavaMonitor > > JavaMonitor is owned by apserver:appserveradm > > does this mean that Apache's configuration doesn't like the directory? "couldn't connect to localhost" and file permissions are not related… Does a: curl -v -X HEAD http://localhost:1085 returns something? > > > > --- On Thu, 10/25/12, Pascal Robert <[email protected]> wrote: > >> From: Pascal Robert <[email protected]> >> Subject: Re: centos 6.3 deploy still acting recalcitrantly >> To: "Theodore Petrosky" <[email protected]> >> Cc: [email protected], "WebObjects" <[email protected]> >> Date: Thursday, October 25, 2012, 10:29 AM >> Check for errors in >> /var/log/httpd/error_log >> >>> >>> I made sure that was commented out. So I just checked >> and even searched the .conf file (if I stupidly had two >> copies) and it is commented out. >>> >>> >>> --- On Thu, 10/25/12, Pascal Robert <[email protected]> >> wrote: >>> >>>> From: Pascal Robert <[email protected]> >>>> Subject: Re: centos 6.3 deploy still acting >> recalcitrantly >>>> To: "Theodore Petrosky" <[email protected]> >>>> Cc: [email protected], >> "WebObjects" <[email protected]> >>>> Date: Thursday, October 25, 2012, 10:24 AM >>>> If you still have that line: >>>> >>>> ScriptAlias /cgi-bin/ >> "/var/www/cgi-bin/" >>>> >>>> in httpd.conf, you won't get an answer from any WO >> app >>>> unless you comment out that line or that you change >> the >>>> adaptor path of your apps to /apps/WebObjects or >> something >>>> similar. All the others directives you added are >> useless if >>>> you don't disable the ScriptAlias directive or >> change the >>>> adaptor path. >>>> >>>>> I hope we are almost there but, I am direct >> connected >>>> to JavaMonitor (http://10.1.5.100:56789) >>>>> i added my JavaMonitor app like normal using >> the Unix >>>> path: >>>> >> /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor >>>>> >>>>> and set the log file to /WebObjects/Logs >>>>> i started the app and javamonitor reports it >> is >>>> running. however, I get "The requested application >> was not >>>> found on this server." if I click he link. >>>>> >>>>> I have <Directory> directives of: >>>>> >>>>> <Directory >>>> >> "/opt/Local/Library/WebObjects/JavaApplications"> >>>>> AllowOverride >> All >>>>> Order >> allow,deny >>>>> Allow from all >>>>> </Directory> >>>>> >>>>> <Directory >>>> >> "/opt/Local/Library/WebServer/Documents/WebObjects"> >>>>> AllowOverride >> All >>>>> Order >> allow,deny >>>>> Allow from all >>>>> </Directory> >>>>> >>>>> I also have before the directory directive: >>>>> >>>>> WebObjectsDocumentRoot >>>> /opt/Local/Library/WebObjects/JavaApplications >>>>> WebObjectsAlias /cgi-bin/WebObjects >>>>> >>>>> >>>>> I have set up deployment with OS X 10.5, 10.6, >> Centos >>>> 5.5 (running at backspace as a virtual server with >> only the >>>> CLI) with no problems. I don't understand why this >> is >>>> causing me such grief >>>>> >>>>> :( >>>>> >>>>> Ted >>>>> >>>>> --- On Thu, 10/25/12, Bastian Triller <[email protected]> >>>> wrote: >>>>> >>>>>> From: Bastian Triller <[email protected]> >>>>>> Subject: Re: centos 6.3 deploy still >> acting >>>> recalcitrantly >>>>>> To: "Theodore Petrosky" <[email protected]> >>>>>> Cc: "WebObjects" <[email protected]> >>>>>> Date: Thursday, October 25, 2012, 7:18 AM >>>>>> that looks like your apache.conf has >>>>>> defined the ScriptAlias directive >>>>>> before your WebObjectsAlias directive. Did >> you >>>> check the >>>>>> wiki for >>>>>> deployment on Linux [1] (section "Apache >>>> Configuration")? >>>>>> So if you want to keep the /cgi-bin part in >> the URL >>>> you have >>>>>> to comment >>>>>> out the "ScriptAlias /cgi-bin" directive >> earlier in >>>> the >>>>>> apache.conf. Or >>>>>> you can use another string in your >> WebObjectsAlias >>>> directive >>>>>> before >>>>>> the /WebObjects, like: >>>>>> >>>>>> ... >>>>>> LoadModule >>>>>> WebObjects_module >>>>>> >> /usr/local/lib64/httpd/modules/mod_WebObjects.so >>>>>> WebObjectsDocumentRoot >>>>>> >> /opt/Apple/Local/Library/WebServer/Documents >>>>>> Alias /WebObjects >>>>>> >>>> >> /opt/Apple/Local/Library/WebServer/Documents/WebObjects >>>>>> WebObjectsAlias /apps/WebObjects >>>>>> <Location /apps/WebObjects> >>>>>> Order Allow,Deny >>>>>> Allow from all >>>>>> </Location> >>>>>> ... >>>>>> >>>>>> I read somewhere about another alternative >> on OSX >>>> with a >>>>>> ScriptAliasMatch directive that matched >> the >>>> WebObjects >>>>>> handler part >>>>>> in /cgi-bin out. But never tested this. >>>>>> >>>>>> I think you can drop the Directory >> directive, as >>>> apache >>>>>> doesn't read >>>>>> webserverresources from there. >>>>>> >>>>>> [1] <http://wiki.wocommunity.org/display/documentation/Deploying+on >>>>>> +Linux> >>>>>> >>>>>> Am Donnerstag, den 25.10.2012, 03:06 -0700 >> schrieb >>>> Theodore >>>>>> Petrosky: >>>>>>> OK so I got my DNS issue fixed and >> apache like >>>> it and >>>>>> starts. and apache -M give me: >>>>>>> >>>>>>> >>>>>>> disk_cache_module >> (shared) >>>>>>> cgi_module (shared) >>>>>>> version_module (shared) >>>>>>> WebObjects_module >> (shared) >>>>>>> ssl_module (shared) >>>>>>> Syntax OK >>>>>>> >>>>>>> so the webobjects module is loading. I >> can get >>>> a direct >>>>>> connection to: >>>>>>> http://10.1.5.100:56789 and javamonitor comes up. >>>>>>> >>>>>>> I want to run javamonitor through >> apache so I >>>> created >>>>>> an app. so to make a long story short, i >> added >>>> javamonitor. >>>>>>> >>>>>>> it claims to be running. however I can >> not >>>> connect to >>>>>> the running instance. >>>>>>> The requested URL >>>> /cgi-bin/WebObjects/JMonitor.woa/1 >>>>>> was not found on this server. >>>>>>> >>>>>>> JavaMonitor lives at: >>>>>>> >> /opt/Local/Library/WebObjects/JavaApplications >>>>>>> >>>>>>> and I have: >>>>>>> >>>>>>> <Directory >>>>>> >>>> >> "/opt/Local/Library/WebObjects/JavaApplications"> >>>>>>> >> AllowOverride All >>>>>>> >> Order allow,deny >>>>>>> >> Allow from all >>>>>>> </Directory> >>>>>>> >>>>>>> in my httpd.conf, and the permissions >> for >>>> javamonitor >>>>>> are: >>>>>>> >>>>>>> drwxr-xr-x. 3 appserver appserveradm >> 4096 >>>> Oct 3 >>>>>> 15:31 JavaMonitor.woa >>>>>>> >>>>>>> where am I going wrong? >>>>>>> >>>>>>> Please, my head hurts. >>>>>>> >>>>>>> Ted >>>>>>> >>>>>>> >> _______________________________________________ >>>>>>> Do not post admin requests to the list. >> They >>>> will be >>>>>> ignored. >>>>>>> Webobjects-dev mailing list >> >>>> ([email protected]) >>>>>>> Help/Unsubscribe/Update your >> Subscription: >>>>>>> https://lists.apple.com/mailman/options/webobjects-dev/bastian.triller%40gmail.com >>>>>>> >>>>>>> This email sent to [email protected] >>>>>> >>>>>> >>>>>> >>>>> >>>>> >> _______________________________________________ >>>>> Do not post admin requests to the list. They >> will be >>>> ignored. >>>>> Webobjects-dev mailing list >> ([email protected]) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca >>>>> >>>>> This email sent to [email protected] >>>> >>>> >> >> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
