I noticed that too. I've been meaning to update the Wonder adaptor to the current Apple source, but it got kind of lost.

The diffs don't look like there are a lot of changes, though.

Cheers, Anjo

Am 18.07.2008 um 04:39 schrieb Ren, Kevin:

I rebuilt my woo adaptor using the same Makefile and make.config, but
with Apple/Developer/Examples/WebObjects/Source/Adaptors instead of
Wonder/Adaptors.
After rebuild everything is working now.

What's different between two?Don't know.
I am using WO5.4.1, Apache2.2 on Ubuntu. WONDER version how to know the
version of it?

-rw-r--r-- 1 root root 301984 2008-07-18 13:43 mod_WebObjects.so
-rw-r--r-- 1 root root 301548 2008-07-16 12:49 mod_WebObjects.so.wonder

-rwxr-xr-x 1 www-data www-data 273125 2008-07-18 13:45 WebObjects
-rwxr-xr-x 1 www-data www-data 272285 2008-07-16 12:50 WebObjects.wonder

Thanks for your help, Chuck

kevin

-----Original Message-----
From: Chuck Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, 18 July 2008 12:46 p.m.
To: Ren, Kevin
Cc: webobjects-deploy@lists.apple.com
Subject: Re: WO app deployment with Web Server problem.


On Jul 17, 2008, at 3:55 PM, Ren, Kevin wrote:

Hi,

Problem solved part.
I read the apache2/error.log
Permission denied: exec of '/usr/lib/cgi-bin/WebObjects' failed

So I add permission to /usr/lib/cgi-bin/WebObjects.
After restart Apache2, I can connect the first page of HelloWorld app
by link, http://localhost/cgi-bin/WebObjects/HelloWorld.woa

That is progress.


But after I click "SUBMIT" button, got 500  error page.

Application log:(setup in monitor, is that right place to setup?)

Yes.


[2008-7-18 10:28:8 GMT+12:00] <main> WebObjects version = 5.4.1
[2008-7-18 10:28:8 GMT+12:00] <main> Creating LifebeatThread now with:
HelloWorld 2003 UbuntuVM/127.0.0.1 1085 30000 Welcome to HelloWorld !
[2008-7-18 10:28:8 GMT+12:00] <main> The URL for webserver connect is:
http://UbuntuVM/cgi-bin/WebObjects/HelloWorld.woa/-2003
The URL for direct connect is:
http://UbuntuVM:2003/cgi-bin/WebObjects/HelloWorld.woa
[2008-7-18 10:28:8 GMT+12:00] <main> null
[2008-7-18 10:28:8 GMT+12:00] <main> Waiting for requests...
[2008-7-18 10:29:55 GMT+12:00] <WorkerThread15>
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception
occurred while handling request:
com.webobjects.foundation.NSForwardException [java.io.IOException]
Connection reset by peer: Amount read didn't match
content-length:java.io.IOException: Connection reset by peer: Amount
read didn't match content-length
[2008-7-18 10:29:55 GMT+12:00] <WorkerThread15> <WOWorkerThread id=15
socket=Socket[addr=/127.0.0.1,port=45499,localport=2003]> Exception
while sending response: java.net.SocketException: Broken pipe

Often that is not a problem but in this case I suspect is a symptom
of what is wrong.


In the /tmp/WebObjects.log ( si this WO adaptor log?), setup in
webobjects.conf

Info: Sending request to instance number 1, port 2003
Info: Trying to contact HelloWorld:1 on (2003)
Info: attempting to connect to localhost on port 2003
Info: Created new pooled connection [1] to localhost:2003
Info: Using pooled connection to localhost:2003
Info: HelloWorld:1 on (2003) connected [pooled: Yes]
Info: Request GET /cgi-bin/WebObjects/HelloWorld.woa/1 HTTP/1.0 sent,

awaiting response
Debug: ac_readConfiguration(): skipped reading config
Info: New response: HTTP/1.0 200 Apple WebObjects
Info: received ->200 Apple
Info: Dumping pooled connection to localhost(2003)
Debug: <WebObjects Apache Module> new translate:
/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1
Debug: <WebObjects Apache Module> translate - DECLINED:
/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1
Info: CGI: config url is http://localhost:1085/
Debug: init_adaptor(): beginning initialization. Adaptor version
4.5.1.
Info: init_adaptor(): config options are: String table:
config = http://localhost:1085/
Info: Adaptor shared state file: /tmp/WOAdaptorState
Info: Adaptor info user: <no user set>, password: <no password set>
Debug: init_adaptor(): someone installed a SIGPIPE handler
Debug: init_adaptor(): WOShmem_init succeeded
Debug: init_adaptor(): tr_init succeeded
Debug: init_adaptor(): hl_init succeeded
Debug: init_adaptor(): lb_init succeeded
Info: WOShmem_alloc(): found region "application list" (868 x 64)
Info: WOShmem_alloc(): found region "instance list" (144 x 8192)
Info: WOShmem_alloc(): found region "configTimes" (20 x 1)
Info: WOShmem_alloc(): found region "configServers" (6208 x 1)
Info: ac_init(): reading configuration from: http://localhost:1085/
Info: Caching hostent for localhost
Debug: known server localhost:1085.
Debug: init_adaptor(): ac_init succeeded
Debug: init_adaptor(): transaction_init() succeeded
Debug: ac_readConfiguration(): skipped reading config
Info: <CGI> new request:
/cgi-bin/WebObjects/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1
Info: V4 URL:
/cgi-bin/WebObjects/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1
Info: Selecting specific app instance 1.
Debug: Composed URL to
'/cgi-bin/WebObjects/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1'
Info: New request is POST
/cgi-bin/WebObjects/HelloWorld.woa/1/wo/12HkYko6lGArDVssVy0ObM/0.1
HTTP/1.0
Info: Sending request to instance number 1, port 2003
Info: Trying to contact HelloWorld:1 on (2003)
Info: attempting to connect to localhost on port 2003
Info: Created new pooled connection [1] to localhost:2003
Info: Using pooled connection to localhost:2003
Info: HelloWorld:1 on (2003) connected [pooled: Yes]



If in link http://localhost:2003 Direct Connect to app, not problem at

all.
So is that mean woadaptor biuld has problem?what's problem?how to fix
it?

Yes, my guess would be the woadaptor.  I have no idea what is wrong or
how to fix it.


Chuck

-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:webobjects-deploy-bounces [EMAIL PROTECTED]
pl
e.com] On Behalf Of Chuck Hill
Sent: Thursday, 17 July 2008 5:01 p.m.
To: Ren, Kevin
Cc: webobjects-deploy@lists.apple.com
Subject: Re: WO app deployment with Web Server problem.


On Jul 16, 2008, at 9:47 PM, Ren, Kevin wrote:

HI,
I understand there are three type of URL for WO.

The first (http://localhost:2001/cgi-bin/WebObjects/MyApp.woa) is
Direct Connect.
The second (http://localhost/cgi-bin/WebObjects/MyApp.woa) is through

the Web server as a Deployment application.
The third (http://localhost/cgi-bin/WebObjects/MyApp.woa/-2001) is
through the Web server as a Development application.

I start wotaskd and monitor, run apache2 with wo adaptor. Start app
instance within monitor, not standalone application.

I can get my app with
http://localhost:2001/cgi-bin/WebObjects/HelloWorld.woa
http://localhost:2001

Are they using Apache2 server and wo adaptor?


No.


But I got "500 Internal error page" when I link
http://localhost/cgi-bin/WebObjects/HelloWorld.woa

If I am using Web Server, why got this error?

Something setup wrong in my apache2.conf?


That could mean the apache adaptor is not built correctly. That would

be my first guess. It could also be an error from inside your WO app,

not in your code but some other error.

Chuck


--

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-deploy mailing list      (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/kevin.ren %40a
nz
national.co.nz

This email sent to [EMAIL PROTECTED]


"This communication is confidential and may contain privileged and/ or

copyright material. If you are not the intended recipient you must not

use, disclose, copy or retain it. If you have received it in error
please immediately notify me by return email, delete the emails and
destroy any hard copies. ANZ National Bank Limited does not guarantee
the integrity of this communication, or that it is free from errors,
viruses or interference."


--

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







"This communication is confidential and may contain privileged and/ or copyright material. If you are not the intended recipient you must not use, disclose, copy or retain it. If you have received it in error please immediately notify me by return email, delete the emails and destroy any hard copies. ANZ National Bank Limited does not guarantee the integrity of this communication, or that it is free from errors, viruses or interference."
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/krank%40logicunited.com

This email sent to [EMAIL PROTECTED]

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

This email sent to [EMAIL PROTECTED]

Reply via email to