Re: Difficulties running WebObjects on CentOS linux remote host (my website)
Re: Difficulties running WebObjects on CentOS linux remote host (my website)
- Subject: Re: Difficulties running WebObjects on CentOS linux remote host (my website)
- From: Chuck Hill <email@hidden>
- Date: Fri, 13 Nov 2009 10:13:39 -0800
Please keep messages on the list.
On Nov 13, 2009, at 3:51 AM, Reyn Waldram wrote:
Hi Chuck,
I followed your advise, thank you very much for this. As some times
is the case, I have ran in to more problems. After setting the Path
environment variable the below was shown in Terminal...
[root@srv1 Hallo.woa]# PATH=$PATH:/usr/local/java/bin
[root@srv1 Hallo.woa]# export PATH
[root@srv1 Hallo.woa]# ./Hallo WOPort 51000&
That should be
./Hallo -WOPort 51000&
First, try the simplest form:
./Hallo
Get that working, then add the extra bits.
Chuck
[1] 22918
[root@srv1 Hallo.woa]# Reading UNIXClassPath.txt ...
Launching Hallo.woa ...
java -DWORootDirectory="/opt" -DWOLocalRootDirectory="/opt/Local" -
DWOUserDirectory="/opt/Library/WebObjects/JavaApplications/
Hallo.woa" -DWOEnvClassPath="/usr/local/java/lib:/usr/local/java/jre/
lib:/usr/local/tomcat/bin/:/usr/local/tomcat/common/lib:." -
DWOApplicationClass=your.app.Application -DWOPlatform=UNIX -
Dcom.webobjects.pid=22918 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap WOPort 51000 -
WOFrameworksBaseURL /WebObjects/Hallo.woa/Frameworks
-classpath requires class path specification
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version
search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -
agentlib:hprof
see also, -agentlib:jdwp=help and -
agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see
java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
[1]+ Exit 1 ./Hallo WOPort 51000
Its a long list of options and I do not know what the problem is and
which one to select to resolve.
Thank you for your help.
Regards,
ReynOp 12 nov 2009, om 20:36 heeft Chuck Hill het volgende geschreven:
On Nov 12, 2009, at 11:32 AM, Chuck Hill wrote:
On Nov 12, 2009, at 11:11 AM, Reyn Waldram wrote:
Hi,
I have a problem running webobjects applications on a CentOS
server (My website). Everything seems to be configured according
to this http://wiki.objectstyle.org/confluence/display/WO/Installing+WO+5.3+or+WO+5.4+on+Linux
Wiki.
When I try to start the application I get this:
[root@srv1 JavaApplications]# Hallo.woa/Hallo _WOPort 56789 &
That should be
cd Hallo.woa
./Hallo _WOPort 56789 &
And it is WOPort NOT _WOPort.
And port 56789 is probably in use by JavaMonitor
But that is not your problem... yet.
[1] 19347
[root@srv1 JavaApplications]# Reading UNIXClassPath.txt ...
Launching Hallo.woa ...
java -DWORootDirectory="/opt" -DWOLocalRootDirectory="/opt/Local"
-DWOUserDirectory="/opt/Library/WebObjects/JavaApplications" -
DWOEnvClassPath="/usr/local/java/lib:/usr/local/java/jre/lib:/usr/
local/tomcat/bin/:/usr/local/tomcat/common/lib:." -
DWOApplicationClass=your.app.Application -DWOPlatform=UNIX -
Dcom.webobjects.pid=19347 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap _WOPort 56789 -
WOFrameworksBaseURL /WebObjects/Hallo.woa/Frameworks
Hallo.woa/Hallo: line 301: exec: java: not found
As others have pointed out, the java executable is not on the path.
Chuck
--
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
--
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
_______________________________________________
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