• Post Reply Bookmark Topic Watch Topic
  • New Topic

appclient command failure/J2EE tutorial

 
Toby Eggitt
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using the reference implementation and trying to get a client example
to work.

I'm working with the J2EE tutorial, and have built the "converter"
application described in chapter 24 of that book.

As a web application it works fine, but when I try to run the client
application (which is really what I'm interested in) it fails dismally.

The error appears to be saying that the deploytool created a bad client jar:

$ appclient -client ConverterAppClient.jar

Client Container xml: [/opt/SUNWappserver/domains/domain1/config/sun-acc.xml] not found or unable to read.
You may want to use the -xml option to locate your configuration xml.
Usage:
... snip snip

How can the deploytool have created a bad jar? Is this broken or something?
Any suggestions, please?

Cheers,
Toby
 
Toby Eggitt
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, now I'm talking to myself, and doing it in public. Not good!

It's amazing how writing a problem down can help you understand it.

It turns out that the error about not being able to read blah/blah was telling me two things:

1) for some reason appclient seems to need to read files in the server's directory space?! (How will that work when the client is on a different machine)

2) for some other reason (probably that nobody thought about it) that space, even on the local machine is owned by root (well, probably owned by whoever installed the server). Consequently, when I tried to run the appclient as a normal user, it failed.

So now I have a different questions: How should I have installed this thing so that arbitrary users, and particularly remote users, can exectute appclient successfully?

TIA
Toby
 
J Newton
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the command "package-appclient" to create a jar file that contains the j2ee classes, the appserver-specific classes, sun-acc.xml (with hostname and port number of the appserver), and the appclient command. copy this and your client jar file to the remote system to run. don't remember the exact command to invoke, but search for the package-appclient command in the appserver specs.

jn
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!