bug may cause? Re: EJBTool failed when building EJB container on Mac OSX
bug may cause? Re: EJBTool failed when building EJB container on Mac OSX
- Subject: bug may cause? Re: EJBTool failed when building EJB container on Mac OSX
- From: email@hidden
- Date: Tue, 18 Feb 2003 16:54:28 +1030
Thanks very much Geoff. I had just figured this out finally. (It is
good to know about the Windows extension - I live in a Mac/Unix world!)
and ran the thing on a Container I managed to create by not adding any
frameworks first up. This means no config files & you need to run
OpenEJBTool from the command line.
People may be interested in what I think is going on. The Tool
started OK but threw an Exception with a stack that starts off:
com.webobjects.foundation.NSForwardException for
java.net.UnknownHostException: java.sun.com
at java.net.InetAddress.getAllByName0(InetAddress.java:566)
at java.net.InetAddress.getAllByName0(InetAddress.java:535)
at java.net.InetAddress.getByName(InetAddress.java:444)
at java.net.Socket.<init>(Socket.java:95)
at sun.net.NetworkClient.doConnect(NetworkClient.java:45)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:330)
So this looks like something silly in the software and no deployed
beans for me. This is probably what is going on when Project Builder
gives up too.
Lorraine
On Tuesday, February 18, 2003, at 09:04 AM, Geoff Hopson wrote:
I've never used this, but there are in
/System/Library/WebOBjects/JavaApplications/OPenEJBTool.woa 2 scripts
- one called OpenEJBTool.cmd which it looks like you are running, and
another called OpenEJBTool - use this one instead. The latter is the
script that MacOSX uses, the former is the script used by Windows.
Hope that helps a little...good luck!
Geoff
On Monday, February 17, 2003, at 08:56 pm, email@hidden wrote:
I have made many attempts (on Mac OSX 10.2.4 with Project Builder),
to get a simple session bean client up and running. There is no
trouble making the bean.
Whenever I try to use the bean, by making a new WebObjects
Application which is an EJB container, I get the message:
OpenEJBTool failed: The container configuration files could not be
generated and added to the project because EJBTool encountered an
error. Please run it from the command line and correct the problem.
I found a mention of EJBTool in the documentation for Windows and
tried to guess how to run it on the Mac, and got nothing useful to
me. The response ended with:
./OpenEJBTool.cmd: ::: command not found
./OpenEJBTool.cmd: line 34: syntax error near unexpected token `(t'
'/OpenEJBTool.cmd: line 34: `:: about handling instances of the
block metacharacters (the parenthesis
I tried guessing which extra config files to add, and copied them and
adapted them from the Hello_Client example in the documentation.
This client built and started to run, getting as far as Tyrex but
failed with an Exception, to do with not finding a class with _Tie_
on the end. Something to do with lookup I guess.
I tried building and running the examples from the documentation with
no luck. I fixed what seemed like a cast error in this example and
still no luck.
(Is there any weird thing to do with naming packages which I am
missing? This seems to be wrong in one of the examples, but fixing
it doesn't help.)
I would really like to sometimes use WebObjects as a pure J2EE
server, but am having no success. Any suggestions would be
gratefully received!
Lorraine Harker
email@hidden
email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Geoff Hopson
Objectology Ltd.
http://www.objectology.co.uk/
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.