Re: Configuring CentOS 5.5 for WebObjects
Re: Configuring CentOS 5.5 for WebObjects
- Subject: Re: Configuring CentOS 5.5 for WebObjects
- From: Chuck Hill <email@hidden>
- Date: Fri, 13 Aug 2010 09:38:26 -0700
On Aug 13, 2010, at 2:24 AM, Info at Watermark Studios wrote:
>
> < $ cat /etc/init.d/webobjects >
> ...
> su $USER -c "$NEXT_ROOT/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 1085 &"
> su $USER -c "$NEXT_ROOT/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor -WOPort 56789 &"
> ...
Try changing the wotaskd one, adding WOHost set to the canonical name of this machine and reverse DNS needs to be setup for that name.
This should also be set for each application instance.
Chuck
> < $ sudo /usr/sbin/lsof -i tcp:1085 >
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> java 14594 appserver 49u IPv6 63124 TCP *:webobjects (LISTEN)
>
> < $ sudo /usr/sbin/lsof -i tcp:2001 >
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> java 14737 appserver 47u IPv6 63212 TCP *:dc (LISTEN)
>
> < $ sudo /usr/sbin/lsof -i tcp:56789 >
> COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
> java 14603 appserver 49u IPv6 63123 TCP *:56789 (LISTEN)
> java 14603 appserver 51u IPv6 65378 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57263 (ESTABLISHED)
> java 14603 appserver 52u IPv6 65384 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57264 (ESTABLISHED)
> java 14603 appserver 62u IPv6 65385 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57267 (ESTABLISHED)
> java 14603 appserver 64r IPv6 65386 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57266 (ESTABLISHED)
> java 14603 appserver 65r IPv6 65387 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57265 (ESTABLISHED)
> java 14603 appserver 334u IPv6 65337 TCP 172.16.1.67:56789->c-71-197-123-64.hsd1.ca.comcast.net:57262 (ESTABLISHED)
>
> < $ ps auxwww | grep 1085 >
> 501 14594 0.2 0.9 1207768 58636 ? Sl 00:49 0:04 java -DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local -DWOUserDirectory=/home/watermark -DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14594 -Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 1085
> 501 14737 0.8 2.1 1224664 131040 ? Sl 00:51 0:12 java -DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local -DWOUserDirectory=/opt/Library/WebObjects/JavaApplications/wotaskd.woa -DWOEnvClassPath= -DWOApplicationClass=com.digitalesdesign.pup.Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14737 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /opt/Local/Library/WebObjects/Logs/PUPPolestarUniversityPortal-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName PUPPolestarUniversityPortal -WOMonitorEnabled YES -WONoPause YES -WOFrameworksBaseURL /WebObjects/PUPPolestarUniversityPortal.woa/Frameworks
> 500 14984 0.0 0.0 3996 688 pts/2 S+ 01:13 0:00 grep 1085
>
> < $ ps auxwww | grep 2001 >
> 501 14737 0.8 2.1 1224664 131040 ? Sl 00:51 0:12 java -DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local -DWOUserDirectory=/opt/Library/WebObjects/JavaApplications/wotaskd.woa -DWOEnvClassPath= -DWOApplicationClass=com.digitalesdesign.pup.Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14737 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 2001 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /opt/Local/Library/WebObjects/Logs/PUPPolestarUniversityPortal-1 -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName PUPPolestarUniversityPortal -WOMonitorEnabled YES -WONoPause YES -WOFrameworksBaseURL /WebObjects/PUPPolestarUniversityPortal.woa/Frameworks
> 500 14992 0.0 0.0 3996 692 pts/2 S+ 01:14 0:00 grep 2001
>
> < $ ps auxwww | grep 56789 >
> 501 14603 0.4 1.2 1212592 76724 ? Sl 00:49 0:07 java -DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local -DWOUserDirectory=/home/watermark -DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=UNIX -Dcom.webobjects.pid=14603 -Dcom.sun.management.jmxremote=false -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 56789
> 500 14997 0.0 0.0 3996 688 pts/2 S+ 01:15 0:00 grep 56789
>
>
> We'll start there...I've tried changing some configurations, but I won't go into detail about all those variations. This is the initial config.
>
> Thank you in advance for all your help!
>
> Ken
>
>
>
> On Aug 12, 2010, at 8:03 PM, Chuck Hill wrote:
>
>> Hi Ken,
>>
>> Follow this thread:
>> http://lists.apple.com/archives/webobjects-dev/2010/Jul/msg00369.html
>>
>> Hint: start near the end. :-)
>>
>>
>> Chuck
>>
>>
>> On Aug 12, 2010, at 7:17 PM, Info at Watermark Studios wrote:
>>
>>> I'm at a road block implementing WO on my dedicated CentOS 5.5 server. Below is my configuration and error. If anyone can help me, that would be great!
>>>
>>> OS: CentOS 5.5 (32-bit)
>>> Memory: 6Gb
>>> Web Server: Apache 2.2
>>> WebObjects Version: 5.4
>>> JDK: 1.6.0_21
>>> SELinux: Disabled
>>> DB: FrontBase
>>>
>>> So, I successfully installed WO and my application. There are two main problems.
>>>
>>> First, JavaMonitor recognizes the server under Host tab, but under the Application tag, the monitor fails to see my application status. When I press the green light to start the app, it looks like it's trying, then times out with a red light. Strangely enough, the application is started, but JavaMonitor doesn't seem to know it. I thought it might be WOTaskd, but I can confirm that is running. I've also verified that SELinux is disabled and not preventing WOTaskd from doing its work.
>>>
>>> Second, as long as I enter "http://host.name.com:2001/cgi-bin/WebObjects/Application.woa" with the port number, the application runs without flaw. When I remove the port number I get the error message "The requested application was not found on this server." I went through my Apache configuration (/etc/httpd/conf/httpd.conf) and my Apache WebObjects configuration (/etc/httpd/conf.d/webobjects.conf) and made sure that the cgi-bin was pointing in the right place and that mod_webobjects was set up. Even before that I installed the apache adaptor from Project Wonder using make. So, everything looks like it should be working right, but for whatever reason I can only access the application directly and not through Apache.
>>>
>>> If anyone could help me probe into these problems more and find a solution, that would be much appreciated. I followed the Confluence installation directions as closely as I could (while changing some of the files and directories to match my configuration).
>>>
>>> Thanks,
>>>
>>> Ken
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> --
>> Chuck Hill Senior Consultant / VP Development
>>
>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
>> http://www.global-village.net/products/practical_webobjects
>>
>>
>>
>>
>>
>>
>>
>
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden