The Source for Java Technology Collaboration
Webmaster Alert: Posting to Jive Forums is currently not working. Estimated time for fix is unknown.

Home » java.net Forums » GlassFish » GlassFish

Thread: Glassfish on Ubuntu 8.04, /usr/bin/asadmin

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Mar 20, 2009 10:59 AM by: km
davelevy

Posts: 2
Glassfish on Ubuntu 8.04, /usr/bin/asadmin
Posted: Mar 17, 2009 12:28 AM
 
  Click to reply to this thread Reply

I have installed Glassfish v2 on Ubuntu 8.04 using APT. Unusually, it does not come with read configuration files and I am trying to write some.

It seems they have put something of their own in /usr/bin, which does not pass on all its command line parameters, in fact it seems to strip them off. Anyone else seen this?

The comments in /usr/bin/asadmin suggest that I should look at /usr/share/glassfish2/bin/asadmin, which has a Sun Copyright statement but fixing it would be more Linuxy and doesn't seem so hard.

Who owns this code i.e. /usr/bin/asadmin? There is no authorship, nor license header in the file.

--
Dave

Nitya Doraisamy
Re: Glassfish on Ubuntu 8.04, /usr/bin/asadmin
Posted: Mar 19, 2009 10:13 AM   in response to: davelevy
  Click to reply to this thread Reply

The /usr/bin/asadmin script of Glassfish v2 on Ubuntu 8.04 is basically
a wrapper script.
It delegates most of the commands to /usr/share/glassfish2/bin/asadmin
which is the default asadmin utility for GlassFish v2. This script is
part of the GlassFish package for Ubuntu.

man asadmin on Ubuntu will provide you more info on this script.

What are you seeing when you execute asadmin ? I believe it should drop
into asadmin's multimode.

- Nitya



glassfish@javadesktop.org wrote:
> I have installed Glassfish v2 on Ubuntu 8.04 using APT. Unusually, it does not come with read configuration files and I am trying to write some.
>
> It seems they have put something of their own in /usr/bin, which does not pass on all its command line parameters, in fact it seems to strip them off. Anyone else seen this?
>
> The comments in /usr/bin/asadmin suggest that I should look at /usr/share/glassfish2/bin/asadmin, which has a Sun Copyright statement but fixing it would be more Linuxy and doesn't seem so hard.
>
> Who owns this code i.e. /usr/bin/asadmin? There is no authorship, nor license header in the file.
>
> --
> Dave
> [Message sent by forum member 'davelevy' (davelevy)]
>
> http://forums.java.net/jive/thread.jspa?messageID=337358
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net


davelevy

Posts: 2
Re: Glassfish on Ubuntu 8.04, /usr/bin/asadmin
Posted: Mar 20, 2009 10:18 AM   in response to: Nitya Doraisamy
 
  Click to reply to this thread Reply

When I run the script, it ignores all the qualifying parameters to the start-domain
and thus cannot be used to pass a password file to it AFIAK tell.

Since this is my first try out of glassfish in anger I may have something wrong i,e. not set the user environment files correctly, but glassfish currently has /bin/false as the shell.

I am sure that using the ../share version can be made to work but I was trying understand the Ubuntu adoption process to see if I can make it easier for others to copy me.

km

Posts: 698
Re: Glassfish on Ubuntu 8.04, /usr/bin/asadmin
Posted: Mar 20, 2009 10:59 AM   in response to: davelevy
 
  Click to reply to this thread Reply

Ubuntu is rather particular (and perhaps that annoys developers) about requiring these
wrapper scripts. For example, see my agony with Ruby on Rails on Ubuntu and Jeremy's
response at:

http://groups.google.com/group/rubyonrails-talk/msg/51da87d9737f8b59?hl=en

-Kedar




 XML java.net RSS