> Le 30 mai 2016 à 21:53, Theodore Petrosky <[email protected]> a écrit : > > Is there something special that I am missing. This is the first time I am > using a VM. I am running ESXi and I have a Centos 7 VM.
It doesn’t matter if it’s a VM or not, it would been the same thing on a physical box. > I am on my workstation and I can go to http://ipnumber:56789 and I can see > the Wonder JavaMonitor page. I tried to set up JavaMonitor to run as a WO > app. I gave it the path as: > > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor > > and I set the log to: > > /wologs/JavaMonitor-1 of course /wologs is owned by appserver:appserveradm > > When I click the start button this is what I get in the logs, eventually the > app dies with no error. It just lists the death: > > I just noticed that although the app died, if I click the start button, I get > a red warning: webapp3: JavaMonitor-1 cannot be started because port 2006 is > still in use Running "sudo lsof -P -i tcp:2006 » returns what? > so the app lives at > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor. > The directories are owned by appserver:appserveradm > > I see no permissions errors. > > I am very tired. I have a snapshot of the VM just before I started installing > webobjects, so it is easy to fall back to there. > > Help!!! Please! > > > ERXProperties has found the following Properties files: > JavaJDBCAdaptor.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/JavaJDBCAdaptor.framework/Resources/Properties > JavaEOControl.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/JavaEOControl.framework/Resources/Properties > JavaWOExtensions.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/JavaWOExtensions.framework/Resources/Properties > JavaMonitorFramework.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/JavaMonitorFramework.framework/Resources/Properties > ERRest.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/ERRest.framework/Resources/Properties > > ERJars.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/ERJars.framework/Resources/Properties > ERExtensions.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/ERExtensions.framework/Resources/Properties > Ajax.framework -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Frameworks/Ajax.framework/Resources/Properties > JavaMonitor.app -> > /opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Resources/Properties > ERXProperties currently has the following properties: > ERXRest.MHost.type.alias=osType > NSProjectSearchPath=() > WOAcceptMalformedCookies=false > WOAdaptor=WODefaultAdaptor > WOAdaptorURL=http://localhost/cgi-bin/WebObjects > WOAdditionalAdaptors=() > WOAllowRapidTurnaround=false > WOAllowsCacheControlHeader=true > WOAllowsConcurrentRequestHandling=true > WOApplicationBaseURL=/WebObjects > WOApplicationName=JavaMonitor > WOAutoOpenClientApplication=false > WOAutoOpenInBrowser=false > WOCachingEnabled=true > WOContextClassName=WOContext > WODebuggingEnabled=false > WODefaultUndoStackLimit=10 > WODeploymentBackups=true > WODirectConnectEnabled=true > WODisplayExceptionPages=false > WOFrameworksBaseURL=/WebObjects/Frameworks > WOGenerateWSDL=true > WOIncludeCommentsInResponse=false > WOLaunchdEnabled=false > WOLifebeatDestinationPort=1085 > WOLifebeatEnabled=true > WOLifebeatInterval=30 > WOListenQueueSize=128 > WOLocalRootDirectory=/opt/Local > WOMaxHeaders=200 > WOMaxIOBufferSize=8196 > WOMaxSocketIdleTime=180000 > WOMissingResourceSearchEnabled=false > WOMonitorEnabled=true > WONoPause=true > WOOutputPath=/wologs/JavaMonitor-1 > WOPort=2006 > WORootDirectory=/opt > WOSMTPHost=smtp > WOSessionStoreClassName=WOServerSessionStore > WOSessionTimeOut=3600 > WOSocketCacheSize=100 > WOSocketMonitorSleepTime=50 > WOStatisticsStoreSessionMax=50 > WOUserDirectory=/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa > WOWorkerThreadCount=8 > WOWorkerThreadCountMax=256 > WOWorkerThreadCountMin=16 > _AjaxRequestHandlerKey=ja > _ComponentRequestHandlerKey=wo > _DirectActionRequestHandlerKey=wa > _ResourceRequestHandlerKey=wr > _StreamActionRequestHandlerKey=wis > _WOHTMLParserClassName=WOHTMLTemplateParser > _WOSessionReclaimingInterval=60 > _WebServiceRequestHandlerKey=ws > awt.toolkit=sun.awt.X11.XToolkit > com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=false > com.webobjects.version=5.4 > dbMinConnectionsGLOBAL=1 > er.extensions.Ajax.hasLocalization=false > er.extensions.ERExtensions.hasLocalization=true > er.extensions.ERJars.hasLocalization=false > er.extensions.ERRest.hasLocalization=false > er.extensions.ERXComponentActionRedirector.enabled=false > er.extensions.ERXDatabase.className=er.extensions.eof.ERXDatabase > er.extensions.ERXGracefulShutdown.Enabled=false > er.extensions.ERXGracefulShutdown.SignalsToHandle=(TERM, INT) > er.extensions.ERXLocalizationEditor.endoding=UTF-16BE > er.extensions.ERXLocalizer.availableLanguages=(English,German,Japanese) > er.extensions.ERXLocalizer.defaultLanguage=English > > er.extensions.ERXLocalizer.fileNamesToWatch=("Localizable.strings","ValidationTemplate.strings") > er.extensions.ERXLocalizer.isLocalizationEnabled=true > er.extensions.ERXMessageEncoding.Enabled=true > > er.extensions.ERXNavigationManager.NavigationMenuFileName=NavigationMenu.plist > er.extensions.ERXNavigationManager.localizeDisplayKeys=false > er.extensions.ERXPatcher.cleanupXHTML=false > er.extensions.ERXPatcher.suppressValueBindingSlow=false > er.extensions.ERXRaiseOnMissingEditingContextDelegate=true > er.extensions.ERXSharedEOLoader.PatchSharedEOLoading=false > er.extensions.ERXWOForm.multipleSubmitDefault=true > er.extensions.JavaMonitorFramework.hasLocalization=false > er.extensions.JavaWOExtensions.hasLocalization=false > > er.extensions.concurrency.ERXTaskObjectStoreCoordinatorPool.maxCoordinators=1 > er.extensions.load.Properties.framework.Ajax=load > er.extensions.load.Properties.framework.ERExtensions=load > er.extensions.load.Properties.framework.ERJars=load > er.extensions.load.Properties.framework.ERRest=load > er.extensions.load.Properties.framework.JavaMonitorFramework=load > er.extensions.load.Properties.framework.JavaWOExtensions=load > er.extensions.stackTrace.cleanup=true > > er.extensions.stackTrace.skipPatternsFile=StackTraceSkipPatterns-Normal.plist > er.javamonitor.showMigrationsTab=false > er.javamonitor.showModProxyTab=true > file.encoding=UTF-8 > file.encoding.pkg=sun.io > file.separator=/ > java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment > java.awt.printerjob=sun.print.PSPrinterJob > > java.class.path=/opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/Contents/Resources/Java/:/opt/Local/Library/WebObjects/JavaApplication > java.class.version=52.0 > java.endorsed.dirs=/opt/jdk1.8.0_91/jre/lib/endorsed > java.ext.dirs=/opt/jdk1.8.0_91/jre/lib/ext:/usr/java/packages/lib/ext > java.home=/opt/jdk1.8.0_91/jre > java.io.tmpdir=/tmp > > java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib > java.runtime.name=Java(TM) SE Runtime Environment > java.runtime.version=1.8.0_91-b14 > java.specification.name=Java Platform API Specification > java.specification.vendor=Oracle Corporation > java.specification.version=1.8 > java.vendor=Oracle Corporation > java.vendor.url=http://java.oracle.com/ > java.vendor.url.bug=http://bugreport.sun.com/bugreport/ > java.version=1.8.0_91 > java.vm.info=mixed mode > java.vm.name=Java HotSpot(TM) 64-Bit Server VM > java.vm.specification.name=Java Virtual Machine Specification > java.vm.specification.vendor=Oracle Corporation > java.vm.specification.version=1.8 > java.vm.vendor=Oracle Corporation > java.vm.version=25.91-b14 > > javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl > line.separator= > log4j.appender.A1=org.apache.log4j.ConsoleAppender > log4j.appender.A1.layout=er.extensions.logging.ERXPatternLayout > log4j.appender.A1.layout.ConversionPattern=%d %-5p %V{u/f} [%t] %C{2} > (%F:%L) - %m%n > log4j.rootCategory=INFO, A1 > os.arch=amd64 > os.name=Linux > os.version=3.10.0-327.18.2.el7.x86_64 > path.separator=: > sun.arch.data.model=64 > > sun.boot.class.path=/opt/jdk1.8.0_91/jre/lib/resources.jar:/opt/jdk1.8.0_91/jre/lib/rt.jar:/opt/jdk1.8.0_91/jre/lib/sunrsasign.jar:/opt/jdk1.8.$ > sun.boot.library.path=/opt/jdk1.8.0_91/jre/lib/amd64 > sun.cpu.endian=little > sun.cpu.isalist= > sun.io.unicode.encoding=UnicodeLittle > sun.java.command=com.webobjects.monitor.application.Application -WOPort > 2006 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /wologs$ > sun.java.launcher=SUN_STANDARD > sun.jnu.encoding=UTF-8 > sun.management.compiler=HotSpot 64-Bit Tiered Compilers > sun.os.patch.level=unknown > user.country=US > user.dir=/opt/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa > user.home=/home/appserver > user.language=en > user.name=appserver > user.timezone=America/New_York > > 2016-05-30 21:29:37,969 INFO 32 MB/57.5 MB [main] appserver.ERXApplication > (ERXApplication.java:1214) - Wonder version: 7.0.0-SNAPSHOT > 2016-05-30 21:29:38,040 WARN 45.46 MB/44.04 MB [main] > logging.ERXNSLogLog4jBridge (ERXNSLogLog4jBridge.java:44) - > > I even went so far as to compile my own JavaMonitor and wotaskd apps. > > There is no error in the httpd error logs. > > >> On May 29, 2016, at 5:23 PM, Pascal Robert <[email protected]> wrote: >> >> Just did a deployment on CentOS 7 (finally took the time to set up my HP >> MicroServer). You have to comment this in httpd.conf: >> >> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/« >> <Directory "/var/www/cgi-bin"> >> AllowOverride None >> Options None >> Require all granted >> </Directory> >> >> and in webobjects.conf: >> >> <Location /cgi-bin/WebObjects/> >> <Limit GET POST OPTIONS > >> Require all granted >> </Limit> >> Require all denied >> </Location> >> >> Reload Apache (sudo apachectl graceful) after. >> >>> Le 27 mai 2016 à 20:54, Theodore Petrosky <[email protected]> a écrit : >>> >>> on CentOS, any and all files ending with .conf that live in >>> /etc/http/conf.d/ will be read. >>> >>> This is the last lines of httpd.conf >>> >>> # Supplemental configuration >>> # >>> # Load config files in the "/etc/httpd/conf.d" directory, if any. >>> IncludeOptional conf.d/*.conf >>> >>> >>> I renamed the box so it comes up as localhost, and i the error has changed >>> to >>> >>> Not Found >>> >>> The requested URL /cgi-bin/WebObjects/ASProjectManagement was not found on >>> this server. >>> >>> so now the .woa/1 is gone. but the project that lives here is not working. >>> >>> you do not use centos, but you are using apache. if you had the >>> installation structure as below, what would your webobjects.conf look like? >>> >>> /var/www/html is the default location for web pages and indeed I put a file >>> index.html there and it is served just fine. >>> >>> Ted >>> >>> >>> >>> >>>> On May 27, 2016, at 8:03 PM, Paul Hoadley <[email protected]> wrote: >>>> >>>> Hi Ted, >>>> >>>> With the caveat that we don’t use CentOS, and that there is almost >>>> certainly more than one way to do it... >>>> >>>> On 27 May 2016, at 10:53 pm, Theodore Petrosky <[email protected]> wrote: >>>> >>>>> Given, you have a split install set up for >>>>> >>>>> application: /opt/Local/Library/WebObjects/JavaApplications/ >>>>> split install: /var/www/html/WebObjects/ >>>>> >>>>> what directory directive do you put into webobjects.conf? >>>> >>>> You’ve got to put that where Apache is expecting to find its configuration >>>> files. On Amazon Linux, that’s /etc/httpd/conf.d. You need to work out >>>> where that would be for CentOS, then re-start Apache. >>>> >>>> >>>> -- >>>> Paul Hoadley >>>> http://logicsquad.net/ >>>> >>>> >>>> >>> >>> _______________________________________________ >>> 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]
