First, it looks like you don’t have a real DNS name for your host, your host
name is « www » instead of « www.something.tld ». WO won’t like that, and you
will probably have problems with links.
Second, you have to connect to your application by the adaptor, NOT the direct
port. So you need to connect to
http://www.xxx.xxx/cgi-bin/WebObjects/tests.woa, NOT http://www.xxx.xxx:54739.
And did you actually add your application in JavaMonitor?
Hello list,
This is probably a simple problem to solve for most of you here but I've been
trying to get WebObjects set up on Ubuntu for a very long time now without
any luck. I just recently started messing around with a linux server on
digitalocean, so it can very likely be that I had missed a step or did it
incorrectly.
I've tried installing WO on fresh installations of Ubuntu 12.04 precise
five times in different ways and making sure I didn't miss anything. Still
doesn't work.
Tried the custom method:
http://wiki.wocommunity.org/display/documentation/Configuring+Apache+for+WebObjects
and I've also tried installing as a package:
http://wiki.wocommunity.org/display/documentation/Installing+a+deployment+environment+on+Debian+or+Ubuntu
Now just to get started...
Currently I have it installed using the custom method (with my own compiled
HTTP adaptor) and I will show you the problem in simplified form when running
the applications from the terminal without running through java monitor.
I have a very minimal test.woa application that just displays hello world.
For simplification, it has all the frameworks embedded.
0v2.jpg
I have all the directories and child directories set to have appserver user
and appserveradm group as the owner
1.png
2v2.png
3.jpg
now I make sure i switch to appserver user and I run the JavaMonitor...
4v2.jpg
5.png
6v2.jpg
runs fine
Now, when I try to do the same for test.woa...
appserver@www:/opt/Library/WebObjects/Applications$ ls -la
total 12
drwxr-xr-x 3 appserver appserveradm 4096 Jun 27 23:20 .
drwxr-xr-x 7 appserver appserveradm 4096 Jun 27 22:52 ..
drwxr-xr-x 3 appserver appserveradm 4096 Jun 27 23:08 test.woa
appserver@www:/opt/Library/WebObjects/Applications$ cd test.woa/
appserver@www:/opt/Library/WebObjects/Applications/test.woa$ ls -la
total 48
drwxr-xr-x 3 appserver appserveradm 4096 Jun 27 23:08 .
drwxr-xr-x 3 appserver appserveradm 4096 Jun 27 23:20 ..
drwxr-xr-x 8 appserver appserveradm 4096 Jun 27 23:08 Contents
-rwxr-x--- 1 appserver appserveradm 11205 Jun 27 23:08 test
-rw-r--r-- 1 appserver appserveradm 16350 Jun 27 23:08 test.cmd
-rw-r--r-- 1 appserver appserveradm 6305 Jun 27 23:08 WOBootstrap.jar
appserver@www:/opt/Library/WebObjects/Applications/test.woa$ ./test
Reading UNIXClassPath.txt ...
Launching test.woa ...
java -DWORootDirectory=/opt -DWOLocalRootDirectory=/opt/Local
-DWOUserDirectory=/opt/Library/WebObjects/Applications/test.woa
-DWOEnvClassPath= -DWOApplicationClass=your.app.Application
-DWOPlatform=UNIX -Dcom.webobjects.pid=3658 -classpath WOBootstrap.jar
com.webobjects._bootstrap.WOBootstrap -WOFrameworksBaseURL
/WebObjects/test.woa/Frameworks
Loading
/opt/Library/WebObjects/Applications/test.woa/Contents/UNIX/UNIXClassPath.txt
Generated classpath:
/opt/Library/WebObjects/Applications/test.woa/Contents/Resources/Java/
/opt/Library/WebObjects/Applications/test.woa/Contents/Resources/Java/test.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERExtensions.framework/Resources/Java/ERExtensions.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERJars.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERFoundation.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/ERWebObjects.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-cli-1.2.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-codec-1.6.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-io-2.2.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/commons-lang-2.6.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/erxservletadaptor.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpclient-4.2.1.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/httpcore-4.2.1.jar
/opt/Library/WebObjects/Applications/test.woa/Contents/Frameworks/ERJars.framework/Resources/Java/icu4j-3_8_1.jar