Mobile Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 17 September 2013

Installing Glassfish on Ubuntu 12.04

Posted on 21:30 by Unknown
This is what I needed to do to get the Glassfish application server running on Ubuntu 12.04.

a) Install JRE for Ubuntu 12.04. Download the version applicable for you from the official website.

b) Configure your system to use the JRE you just downloaded. You can do this as follows:

---- First add the version of JRE you downloaded to the list on your system.

sudo update-alternatives --install /usr/bin/java java /bin/java 0

---- Then ensure that all Java programs will use that version.

sudo update-alternatives --config java

c) Install a JAR archiving program. I used Fastjar from the apt repository.


sudo apt-get install fastjar

d) Download the Java EE SDK with Glassfish and JDK from the official website. Make sure you download the version applicable to you.

e) Once the download is complete ensure that the file can be run. If it doesn't have executable permissions, run chmod 755 to make it executable.

f) Run the installer using ./filename and follow the prompts. If you're lucky everything should go well. If you're not it'll hang at the penultimate step, taking forever to create a new domain.

g) The problem apparently is with Glassfish and some funny bug which needs your real hostname to be in the /etc/hosts file. At least that's what fixed it for me. Here is what my /etc/hosts file looks like.

127.0.0.1    javaee    localhost.localdomain    localhost
10.0.2.15    javaee    localhost

Maybe you don't even need the 2nd line. Maybe I'll confirm that some day. Or someone will :)

h) Reboot once (maybe not needed) and run the installer again. All should be good this time round.

i) You can also Cancel the installer if it hangs while creating a domain and create a domain manually using asadmin as follows.
sudo ./asadmin --user admin
asadmin>create-domain
asadmin>start-domain

... and follow the instructions there. Have fun :)

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in 12.04, 4848, 8080, glassfish, in use, install, java, javaee, port, sdk, ubuntu | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • EMC Defenders CTF - Week 3 - Contest 14 - Reversing
    I played the EMC defenders CTF with a few of my friends a while back. We sadly couldn't complete all the challenges. All the same it was...
  • AuthenTec co-founder discusses how Touch ID fingerprint reader evolved from early prototypes!!!
    AuthenTec co-founder F. Scott Moody recently stopped by his alma mater to deliver a  speech  about the company he helped launch. His company...
  • Hackers breach vBulletin support forum using zero-day vulnerability!!!
    A group of European hackers by the name of Inj3ct0r Team have taken  responsibility  for hacking the support forums of vBulletin.com and the...
  • ASRock unveils a pair of motherboards designed specifically for Bitcoin mining!!!
    Those looking to generate some extra cash by mining for Bitcoin now have a couple of new hardware options courtesy of ASRock. The motherboar...
  • Amazon's trio of biospheres gets two thumbs up from Seattle Design Review Board!!!
    Earlier this year Amazon  submitted a building proposal  to construct a series of massive biospheres in downtown Seattle adjacent to three o...
  • 20 Life Hacks and Tools to Boost Productivity on Your Computer!!!
    With the flood of  new technologies , websites, apps, news, work files, pictures, articles and the like, staying organized and focused is be...
  • Why and how to set up your own wiki with Dokuwiki!!!
    DokuWiki is a simple but versatile wiki. Find out how to install, configure, and begin using DokuWiki.  A couple of weeks ago, I had to set ...
  • A peek at the inside of Sony's PlayStation 4!!!
    See  what's inside the PlayStation 4 with these exclusive photos  Inside Sony headquarters, at the heart of Tokyo’s Shinagawa district, ...
  • Crysis developer releases free-to-play FPS browser game Warface!!!
    Crytek is well known for its graphically impressive and visually stunning games on PC and console, but now the developer is taking its exper...
  • Chrome used more than Firefox, Opera and Internet Explorer combined!!!
    Google Chrome is absolutely dominating the web browser market, at least according to social analytics firm  Shareaholic , which yesterday re...

Categories

  • 100
  • 12.04
  • 2.2
  • 2013
  • 21
  • 4848
  • 8080
  • add
  • alternative
  • analysis
  • android
  • apk
  • app
  • applet
  • applets
  • appletviewer
  • application
  • appsec
  • asmx
  • assembly
  • attack
  • attacks
  • basic
  • basics
  • beginner
  • blazeds
  • blog
  • book
  • books
  • breakpoint
  • breakpoints
  • browser
  • burp
  • CALL
  • capture
  • certificate
  • chain
  • cheops
  • client side
  • code
  • conference
  • console
  • content-type
  • coverage
  • CRLF
  • cross
  • crossdomain
  • csrf
  • ctf
  • customer service
  • database
  • deblaze
  • debug
  • debugger
  • decision
  • defcon
  • delete
  • deleting
  • dll
  • dogbert
  • dom
  • dynamic
  • element
  • emulator
  • encryption
  • engineering
  • entity
  • environment
  • example
  • executable
  • external
  • firebug
  • flash
  • flex
  • FlourineFX
  • flow
  • flowchart
  • forensics
  • fs
  • fuzz
  • glassfish
  • graph
  • handbook
  • harden
  • hash
  • hints
  • hit
  • hittrace
  • howto
  • IDA
  • idapro
  • IDB
  • immunity
  • in use
  • incremental
  • inetsim
  • injection
  • install
  • introduction
  • java
  • java.policy
  • javaee
  • javascript
  • jks
  • jump
  • keyboard
  • lab
  • loaderdata
  • malware
  • management
  • mapper
  • market
  • MD Description
  • MD FAQ
  • MD Technical Support
  • MD Updates
  • MD User Guide
  • md5deep
  • mount
  • msdn
  • network
  • newbie
  • olly
  • ollydbg
  • options
  • packet
  • password
  • pbkdf
  • pcap
  • peb
  • peb_ldr_data
  • penetration
  • pentest
  • permissions
  • phone
  • pkcs12
  • policytool
  • port
  • practical
  • procedure
  • proxy
  • resign
  • resignation
  • response
  • restrict
  • reverse
  • reversing
  • review
  • salt
  • same origin
  • sample
  • scripting
  • sdk
  • secure
  • security
  • set
  • setup
  • sharif
  • shortcuts
  • SI
  • signed
  • site
  • snapshot
  • soapui
  • source
  • splitting
  • ssl
  • start
  • static
  • steps
  • stunnel
  • superblock
  • support
  • test
  • thoughts
  • thread
  • tips
  • tool
  • tools
  • tor
  • trace
  • truecrypt
  • tutorial
  • ubuntu
  • umask
  • understand
  • university
  • unsigned
  • video
  • view
  • virgin
  • virtual
  • virtual box
  • virtual machine
  • virtualbox
  • vm
  • watch
  • web
  • web application
  • web service
  • work
  • wsdl
  • xhr
  • xml
  • xss
  • xxe

Blog Archive

  • ▼  2013 (496)
    • ►  November (143)
    • ►  October (297)
    • ▼  September (51)
      • Every generation iPhone compared simultaneously!!!
      • New study finds that 15% of Americans don't use in...
      • World's first carbon nanotube computer emerges aft...
      • Google Hangouts/GTalk error sends messages to wron...
      • using Ctrl-Alt-Del as a login command was a mistak...
      • eBay agrees to buy PayPal competitor Braintree for...
      • Dell drops XPS 10, leaves Microsoft as lone RT tab...
      • Google set to enforce tighter SSL security in Chro...
      • Intel Haswell Makes Its Debut: Core i7-4770K Revie...
      • Micron now sampling speedy 2GB Hybrid Memory Cube!!!
      • Google unveils most substantial change to search a...
      • VLC update adds new audio core, hardware decoding ...
      • Evernote, 3M join forces to take the Post-It Note ...
      • Downloads of iOS 7 caused 'major' Internet traffic...
      • BlackBerry manufacturing partner Jabil evaluating ...
      • Steam Family Sharing program beta begins, email in...
      • Microsoft working on single app store for Windows,...
      • Underground black market Atlantis disappears along...
      • A story of Java's improbable return to prominence!!!
      • Build a custom solid state drive using microSD car...
      • FTC opens inquiry into 'patent assertion entities,...
      • Microsoft tests cloud gaming service using Lumia 5...
      • Ford’s Alan Mulally said to be the frontrunner for...
      • Valve unveils Steam Controller, promises PC-like a...
      •  Valve is closing off the week with the last of th...
      • Mozilla working on a second-screen solution that m...
      • China to lift 13-year ban on video game console sa...
      • Would you accept Deux Ex-like augmentations?!!!
      • Google misses deadline set by French regulators ov...
      • Apple hires top Nike designer to work on wearables!!!
      • Microsoft baits iPhone owners with new trade-in of...
      • Weekend tech reading: The NSA maps social connecti...
      • Faces of Facebook is an interactive mashup of all ...
      • Microsoft to delay Surface mini launch until early...
      • Online Community Managers Meet With Tech Giants' S...
      • 5 Things to Look for in an OpenStack Implementatio...
      • Who’s Winning ‘Mobile Wars’!!!
      • Valve's Steam Box made official as 'Steam Machines...
      • Samsung will showcase smartphone with curved glass...
      • Roku refreshes line-up with slick new look, lower ...
      • China to ease Internet ban in Shanghai free-trade ...
      • Next up for Nest Labs: A smoke detector?!!!
      • Cooler Master's nimble Cosmos SE arrives next mont...
      • Raptr & AMD launch Gaming Evolved app to rival GeF...
      • Spec by Spec: Kindle Fire HDX vs. Nexus 7 vs. iPad...
      • AMD unveils revolutionary 'Mantle' API to optimize...
      • RealNetworks launches RealPlayer Cloud, cross-plat...
      • Amazon offers free offline instant videos to Prime...
      • YouTube launches royalty-free music library with 1...
      • Installing Glassfish on Ubuntu 12.04
      • Truecrypt - Permission and Mount problems
    • ►  August (2)
    • ►  March (1)
    • ►  January (2)
  • ►  2012 (16)
    • ►  October (3)
    • ►  September (1)
    • ►  August (4)
    • ►  June (1)
    • ►  May (4)
    • ►  April (2)
    • ►  February (1)
  • ►  2011 (22)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  July (9)
    • ►  June (1)
    • ►  May (2)
    • ►  April (6)
  • ►  2010 (8)
    • ►  August (3)
    • ►  April (2)
    • ►  January (3)
  • ►  2009 (6)
    • ►  December (6)
Powered by Blogger.

About Me

Unknown
View my complete profile