Closed glassfishrobot closed 13 years ago
@glassfishrobot Commented gfbugbridge said:
@glassfishrobot Commented km said: That's weird. But in order to ascertain the problem, I need to know the entire environment, because we routinely install GlassFish on S-10/JDK 6.
Can you add -DDebug in asadmin script and run the command:
Please report the error back.
@glassfishrobot Commented michael67394307 said: Hi km,
The below is the log obtained from running asadmin following what you had suggested(only i have added the adminuser option on the command line, coz it prompted that i had to add this option??) btw, I am a student user on school's solaris system, so i dont have root/administer previlige, but i installed glassfish on school's debbian system as a student user and i installed some other software(such like mozzila, COIN-OR(c++ based)) on school's solaris system before. i am not sure if this is an issue. but if it is, i am pretty sure i can ask for an administer previlige later after talking to my supervisor, so please tell me what should i do, thanks a lot:
asadmin create-domain --adminport 4848 --adminuser admin domain1 adminpassword> Using default port 8,080 for HTTP Instance. Using default port 7,676 for JMS. Using default port 3,700 for IIOP. Using default port 1,043 for HTTP_SSL. Using default port 1,060 for IIOP_SSL. Using default port 1,061 for IIOP_MUTUALAUTH. Could not create directory /var/appserver/domains. CLI130 Could not create domain, domain1
P.S: I tried to manually mkdir "domains" under /var/appserver but i got "Permission Denied" error. In Debbian system where I successfully installed, I don't see there is a /var/appserver/ directory
@glassfishrobot Commented michael67394307 said: is there a way to install glassfish on solaris as non-root user?
@glassfishrobot Commented km said: Michael,
Sorry for the delay. It's been crazy past few days.
Actually, I am not entire sure about how you are installing it. But you may be caught in a situation where the domains are created at a location colocated with the installation location.
Thus, if your binaries are at: /opt/gf/bin and /opt/gf/lib, then the domains are created by default at /opt/gf/domains.
Now, it may so happen that you don't have write privileges at: /opt/gf/domains and hence domain can't be created.
If you think that that is the problem indeed, you should take a look at: --domaindir command on create-domain.
Thus, follow the steps:
ant -f setup.xml -> this will fail, which is OK, because domain can't be created (frankly, this is the limitation of how setup.xmls are created).
bin/asadmin create-domain --domaindir <existing location where you have write permission> --adminport 4848 mydomain
bin/asadmin start-domain --domaindir
Let me know if it works. If yes, please close this bug as we can't do much here.
@glassfishrobot Commented michael67394307 said: Hi, km,
Thanks a lot for the reply.
The solaris system at school works like this: every student has a user accout, the home directory looks like "xbar/nas1/hpc1/imm/USERNAME", so under this USERNAME i have all the w,r,x previliges. And I create a directory ,namely, glassfish under $HOME(i.e. xbar/nas1/hpc1/imm/immwz), and then i tried to install by typing java -Xmx256m -jar glassfish-version.jar under $HOME/glassfish. So now there is a new directory glassfish created(the path is $HOME/glassfish/glassfish), in which reside the setup.xml, bin and all the other directories created. Under $HOME/glassfish/glassfish, i started to run ant -f setup.xml, and directory domains can actually be created(since i do have all the rights under all the (sub)diretories of $HOME). But last time, when i ran the asadmin ,as you suggested(adding -DDebug in the asadmin script and then tried to create domains, it seems that something has to do with /var/appserver happened, and i dont have write privileges at /var/appserver, as it is not under my $HOME directory). So I don't think there is a problem with writing privilege anywhere under my $HOME directory. I am just wondering is there any step that requires me to have a root privilege to do anything when installing glassfish on solaris. Or, if there is a manual for how to install glassfish on solaris as a non-root user. By the way, I do have the write privilege in /var/tmp and /tmp(as required in the JAVA application server installation as non-root user).
This time, I tried to create domains as you have just suggested(designate a directory where i surely have write privilges), the below errors happen(Sorry for all the inconviniences ):
bin/asadmin create-domain --domaindir ../domains/ --adminport 4848 mydomain ++++++++++++++++++++++++++++ Command loaded from file and it is create-domain 1
| {adminport string null,adminuser string null,adminpassword string null,user string u, null,password string w, null,interactive boolean I, true,profile string null,template string null,terse boolean t, false,echo boolean e, false,instanceport string null,domainproperties string null,portbase string null,path string null,domaindir string null,passwordfile string null,checkports boolean true,masterpassword string null,savemasterpassword boolean false,savelogin boolean false,} | } | | } | create-domain [--user admin] [--adminport port_number] [--terse=false] [--echo=false] [--interactive=true] [--domaindir domain_directory] [--profile profile_name] [--template domain_template] [--passwordfile filename ] [--instanceport port_number] [--savemasterpassword=false] [--domainproperties (name=value)[:name=value]*] [--portbase portbase] [--savelogin=false] [--checkports=true] domain_name {} basePackage: com.sun.enterprise.cli.commands propertyFile: LocalStrings basePackage: com.sun.enterprise.cli.commands propertyFile: LocalStrings
|
CLI130 Could not create domain, mydomain
@glassfishrobot Commented km said: This beats me. Derby is throwing the error.
Can you, please:
Thanks, Kedar
@glassfishrobot Commented km said: The fix is easy but the implications have to be understood.
Is failure to create the default EJB timer embedded database with the schema akin to failure to create the domain?
My gut says - no. But I don't know the implications as far as the spec compliance is concerned.
The actual diff's are:
RCS file: /cvs/glassfish/admin/servermgmt/src/java/com/sun/enterprise/admin/servermgmt/RepositoryManager.java,v retrieving revision 1.17 diff -u -r1.17 RepositoryManager.java — RepositoryManager.java 26 Jul 2007 23:33:45 -0000 1.17 +++ RepositoryManager.java 10 Nov 2007 00:36:39 -0000 @@ -973,7 +973,7 @@ } }
protected void handleDerby(final RepositoryConfig config) throws RepositoryException {
catch (final Exception ae)
{ final String c = readDerbyLogFile(derbyLog); - throw new RepositoryException(_strMgr.getString("derbyEjbTimerDBNotCreated", c), ae); + System.out.println(_strMgr.getString("derbyEjbTimerDBNotCreated", c)); + ae.printStackTrace(); }
finally { if(!derbyLog.delete()) derbyLog.deleteOnExit();
The way the timer database is created is my executing a sql script in memory and I am not sure if failure to do this should be considered a failure fatal kind of operation.
Please vote for this issue.
The flip side (usability problem) is that Java DB might fail in mysterious way while running the sql script and it needs to be debugged. I don't have time to do that at this time and hence this work-around is suggested.
@glassfishrobot Commented basler said: Deferred to next release
@glassfishrobot Commented misschatter said: Created an attachment (id=1667) ENV variables may be cause
@glassfishrobot Commented sanandal said: "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
@glassfishrobot Commented tmueller said: This issue no longer applies to the GlassFish 3.1 release and later because no Derby database is created when a domain is created. So the failure described in this bug doesn't happen with 3.1. Marking as "won't fix".
@glassfishrobot Commented File: 3708Comment.txt Attached By: misschatter
@glassfishrobot Commented Was assigned to tmueller
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-3708
@glassfishrobot Commented Reported by michael67394307
@glassfishrobot Commented Marked as won't fix on Wednesday, January 26th 2011, 6:02:29 am
JDK: 1.6.0_02(64bit, installation of glassfish didn't work on 32bit either)
Target glassfish: glassfish-installer-v2-b58g.jar(latest)
OS/Platform: Solaris 10 SPARC
Description: could not create domains due to failure to create ejbtimer database
P.S. I have tried to add -Dderby.storage.fileSyncTransactionLog=true into asadmin script, but it couldn't work either.
Last part of the installation output where indicated the failure is attached below: create.domain: [exec] Using port 4848 for Admin. [exec] Using port 8080 for HTTP Instance. [exec] Using port 7676 for JMS. [exec] Using port 3700 for IIOP. [exec] Using port 8181 for HTTP_SSL. [exec] Using default port 3820 for IIOP_SSL. [exec] Using default port 3920 for IIOP_MUTUALAUTH. [exec] Using default port 8686 for JMX_ADMIN. [exec] Domain being created with profile:developer, as specified by variable AS_ADMIN_PROFILE in configuration file. [exec] Security Store uses: JKS [exec] Failed to create database '/xbar/nas1/hpc1/imm/immwz/glassfish/glassfish/domains/domain1/lib/databases/ejbtimer', see the next exception for details. [exec] CLI130 Could not create domain, domain1
BUILD FAILED /xbar/nas1/hpc1/imm/immwz/glassfish/glassfish/setup.xml:169: The following error occurred while executing this line: /xbar/nas1/hpc1/imm/immwz/glassfish/glassfish/setup.xml:551: exec returned: 1
Total time: 22 seconds
Environment
Operating System: Solaris Platform: Sun
Affected Versions
[9.1peur1]