Re: El Capitan Apache Seg Fault

2015-12-02 Thread Jeff Schmitz
Yes, that worked.  I did have to copy the WebServerResources into the proper 
directory under /Library/WebServer/Documents but all seems well now.  So 
basically I have two instances of JavaMonitor running.  Any downside to that, 
Or should I unload the one running on port 56789?

Thanks!
Jeff

> On Nov 30, 2015, at 4:47 AM, Patrick Middleton  
> wrote:
> 
> Another choice is to install JavaMonitor as a regular application, with a 
> single instance, always running.  JavaMonitor has its own password 
> protection, but use Apache access permissions to further lock down access to 
> it.
> 
> 
> -- Patrick
> 
> 
> 
> 
> 
> 
> 
> On 29/11/2015 20:09,  Tim Worman wrote:
> 
>> Jeff:
>> 
>> Even if it were not El Capitan, I would not open that port to outside 
>> traffic. Instead, use ssh to tunnel that traffic to localhost, like:
>> 
>> ssh -L 8080:localhost:56789 @
>> 
>> Then you can connect your browser to: http://localhost:8080 to interact w 
>> JavaMonitor on the remote host. You can also put the above command in your 
>> .alias file so you can use a shortcut to start it up.
>> 
>> Tim
>> UCLA GSE
>> 
>>> On Nov 29, 2015, at 10:24 AM, Jeff Schmitz  wrote:
>>> 
>>> One last annoyance with the El Capitan machine, I can’t seem to open port 
>>> 56789 for accessing javamonitor remotely.  
>>> 
>>> I tried the steps outlined at the link below, but according to Network 
>>> Utility port scan it’s still not open.  Also, I have the firewall 
>>> completely turned off under Security & Privacy Settings.
> 
> 
>> 
> 
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jeffschmitz%40icloud.com
> 
> This email sent to jeffschm...@icloud.com


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-30 Thread Patrick Middleton
Another choice is to install JavaMonitor as a regular application, with a 
single instance, always running.  JavaMonitor has its own password protection, 
but use Apache access permissions to further lock down access to it.


-- Patrick







On 29/11/2015 20:09,  Tim Worman wrote:

>Jeff:
>
>Even if it were not El Capitan, I would not open that port to outside traffic. 
>Instead, use ssh to tunnel that traffic to localhost, like:
>
>ssh -L 8080:localhost:56789 @
>
>Then you can connect your browser to: http://localhost:8080 to interact w 
>JavaMonitor on the remote host. You can also put the above command in your 
>.alias file so you can use a shortcut to start it up.
>
>Tim
>UCLA GSE
>
>> On Nov 29, 2015, at 10:24 AM, Jeff Schmitz  wrote:
>> 
>> One last annoyance with the El Capitan machine, I can’t seem to open port 
>> 56789 for accessing javamonitor remotely.  
>> 
>> I tried the steps outlined at the link below, but according to Network 
>> Utility port scan it’s still not open.  Also, I have the firewall completely 
>> turned off under Security & Privacy Settings.


>

 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-29 Thread Jeff Schmitz
One last annoyance with the El Capitan machine, I can’t seem to open port 56789 
for accessing javamonitor remotely.  

I tried the steps outlined at the link below, but according to Network Utility 
port scan it’s still not open.  Also, I have the firewall completely turned off 
under Security & Privacy Settings.

https://rolfje.wordpress.com/2014/05/10/open-a-port-in-osx-mavericks-firewall/

Anyone have any luck opening the JavaMonitor port on El Capitan?  When I try to 
telnet to the port I get a connection refused error.

Here’s the port scan results I get:

Port Scan has started…

Port Scanning host: 208.52.161.87

 Open TCP Port: 22  ssh
 Open TCP Port: 80  http
 Open TCP Port: 88  kerberos
 Open TCP Port: 631 ipp
 Open TCP Port: 5900rfb
 Open TCP Port: 6783
 Open TCP Port: 17500
 Open TCP Port: 20020
 Open TCP Port: 49161
 Open TCP Port: 49162
 Open TCP Port: 49164
 Open TCP Port: 49197
 Open TCP Port: 49199

Thanks,
Jeff

> On Nov 28, 2015, at 9:09 PM, T Worman  wrote:
> 
> On Nov 27, 2015, at 10:55 AM, Jeff Schmitz  wrote:
>> 
>> Thinking maybe the apple installer failed because of no java I tried it 
>> again but it failed the same way.
> 
> The Apple installer attempts to install the WO runtime in /System/Library. El 
> Capitans SIP will not allow you to do that.
> 
> https://support.apple.com/en-us/HT204899
> 
> Tim
> UCLA GSE


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-29 Thread T Worman
Jeff:

Even if it were not El Capitan, I would not open that port to outside traffic. 
Instead, use ssh to tunnel that traffic to localhost, like:

ssh -L 8080:localhost:56789 @

Then you can connect your browser to: http://localhost:8080 to interact w 
JavaMonitor on the remote host. You can also put the above command in your 
.alias file so you can use a shortcut to start it up.

Tim
UCLA GSE

> On Nov 29, 2015, at 10:24 AM, Jeff Schmitz  wrote:
> 
> One last annoyance with the El Capitan machine, I can’t seem to open port 
> 56789 for accessing javamonitor remotely.  
> 
> I tried the steps outlined at the link below, but according to Network 
> Utility port scan it’s still not open.  Also, I have the firewall completely 
> turned off under Security & Privacy Settings.
> 
> https://rolfje.wordpress.com/2014/05/10/open-a-port-in-osx-mavericks-firewall/
> 
> Anyone have any luck opening the JavaMonitor port on El Capitan?  When I try 
> to telnet to the port I get a connection refused error.
> 
> Here’s the port scan results I get:
> 
> Port Scan has started…
> 
> Port Scanning host: 208.52.161.87
> 
>Open TCP Port: 22  ssh
>Open TCP Port: 80  http
>Open TCP Port: 88  kerberos
>Open TCP Port: 631 ipp
>Open TCP Port: 5900rfb
>Open TCP Port: 6783
>Open TCP Port: 17500
>Open TCP Port: 20020
>Open TCP Port: 49161
>Open TCP Port: 49162
>Open TCP Port: 49164
>Open TCP Port: 49197
>Open TCP Port: 49199
> 
> Thanks,
> Jeff
> 
>> On Nov 28, 2015, at 9:09 PM, T Worman  wrote:
>> 
>> On Nov 27, 2015, at 10:55 AM, Jeff Schmitz  wrote:
>>> 
>>> Thinking maybe the apple installer failed because of no java I tried it 
>>> again but it failed the same way.
>> 
>> The Apple installer attempts to install the WO runtime in /System/Library. 
>> El Capitans SIP will not allow you to do that.
>> 
>> https://support.apple.com/en-us/HT204899
>> 
>> Tim
>> UCLA GSE
> 


 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-28 Thread T Worman
On Nov 27, 2015, at 10:55 AM, Jeff Schmitz  wrote:
> 
> Thinking maybe the apple installer failed because of no java I tried it again 
> but it failed the same way.

The Apple installer attempts to install the WO runtime in /System/Library. El 
Capitans SIP will not allow you to do that.

https://support.apple.com/en-us/HT204899

Tim
UCLA GSE
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: El Capitan Apache Seg Fault

2015-11-27 Thread Jeff Schmitz
Thanks to help from Patrick Middleton I did get up and running on El Capitan.  
Below is a fairly long synopsis of my journey, warts and all.  Hopefully it can 
help someone else out:


My notes on upgrading from Lion to El Capitan on a remote server:

The first issue I hit was I lost contact to my server since the upgrade changed 
my network settings to use DHCP instead of my static IP.  I had to call a 
technician and had him reset my network settings to use the proper static IP so 
I could remote access to the box again.

Once I got access again my first questions was whether to install the new 
Server app.  In the end I didn’t need to, and I was worried doing so may write 
over the existing macports apache setup when it installed its web sharing 
services.

Once logged in I saw that my existing WebObjects installation had been deleted, 
i.e. there was no longer a /System/Library/WebObjects directory.

Next I decided to use the directions here:  
https://wiki.wocommunity.org/pages/viewpage.action?pageId=1049031

NEXT QUESTION: How do I decide which WebObjects installer to use? WebObjects 
WOCommunity resources or the apple installer?

First try, try the Apple Installer.

NEXT QUESTION: At 
https://wiki.wocommunity.org/pages/viewpage.action?pageId=1049031
It says: Make sure you install "WebObjectsRuntime.pkg" which is in the 
"Packages" directory of the .dmg.
Is this in addition to the main webobjects pkg, or do you only install the 
runtime.

I went ahead and installed just the runtime.  Funny that El Capitan says the 
publisher of this software can not be trusted.

It also gave this warning saying the package is incompatible with this version 
of OS X and mail fail to install.

I went ahead and said to install anyway got a fatal error.  So… I tried the 
WOInstaller route.  I downloaded and did java -jar WOInstaller.jar and found 
out I didn’t have a java version installed.  I guess ElCapitan deleted the one 
I had on.

Off to 
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
 to get the latest jdk.

Thinking maybe the apple installer failed because of no java I tried it again 
but it failed the same way.

On to trying the WOCommunity installer.  It requires an alternate installation 
directory to be specified.  I used /opt and specified version 5.4.3:

sudo java -jar WOInstaller.jar 5.4.3 /opt

Everything went well, and since I installed in /opt, maybe next time I upgrade 
Mac OS, webobjects won’t get stomped on by Apple.

Now with webobjects installed, I was able to bring up the previously installed 
(under Lion) java monitor and wotaskd via localhost.  The apps even started up. 
 However, I was unable to reach them via http due to apache segmentation faults 
when trying to serve any webobjects app.  

Next I decided to update the macports apache with the following commands:

sudo port -d selfupdate
sudo port upgrade outdated

No luck, still getting segmentation faults.  

After some research I’d seen a few things about MPM worker vs prefork that says 
to run with MPM prefork.  When I did a httpd -V I got:


Server version: Apache/2.2.31 (Unix)
Server built:   Nov 25 2015 11:47:12
Server's Module Magic Number: 20051115:40
Server loaded:  APR 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture:   64-bit
Server MPM: Prefork
threaded: no
  forked: yes (variable process count)
Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP…

So  looks like I was running prefork.

Next… Going back over some other similar list emails I noticed someone was 
using apache 2.4 and a new mod_Webobjects adaptor.  What!  Great, time to find 
it and install it and update apache and see what happens.

I found this page on how to upgrade macports apache to 2.4:

http://apple.stackexchange.com/questions/130481/how-to-upgrade-apache-2-2-to-2-4-in-macosx-mavericks

https://httpd.apache.org/docs/2.4/upgrading.html

From the above links I tried the command:

sudo port -vsc install apache24-devel

rebooted the machine just to make sure and then printed out the version info:

netbrackets1:~ netbrackets$ httpd -V
Server version: Apache/2.4.17 (Unix)
Server built:   Nov 25 2015 22:03:31
Server's Module Magic Number: 20120211:51
Server loaded:  APR 1.5.2, APR-UTIL 1.5.4
Compiled using: APR 1.5.2, APR-UTIL 1.5.4
Architecture:   64-bit
Server MPM: prefork
  threaded: no
forked: yes (variable process count)
Server compiled with
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=256
 -D HTTPD_ROOT="/opt/local"
 -D SUEXEC_BIN="/opt/local/bin/suexec"
 -D DEFAULT_PIDLOG="var/run/apache2/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D 

El Capitan Apache Seg Fault

2015-11-25 Thread Jeff Schmitz
Hello List,
 I’m in the process of upgrading a server to El Capitan and apache is giving me 
the below segmentation fault whenever I try to bring up a page on my 
application:

[Tue Nov 24 23:19:32 2015] [notice] child pid 97433 exit signal 
Segmentation fault (11)

I’ve seen a few things about MPM worker vs prefork that says to run with MPM 
prefork.  When I do a httpd -V I get:


Server version: Apache/2.2.31 (Unix)
Server built:   Nov 25 2015 11:47:12
Server's Module Magic Number: 20051115:40
Server loaded:  APR 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture:   64-bit
Server MPM: Prefork
 threaded: no
   forked: yes (variable process count)
Server compiled with
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP…

So I think  i am running prefork, and I couldn’t find anything in httpd.conf 
that looks like it overrides the default.

Note that I’m currently running a version of Apache installed by MacPorts.

Is there anything else that might cause this?  

Also I was wondering is there any reason to buy the El Capitan Server 
application if I’m only using this machine for deployment?

Thanks!
Jeff
 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com