glassfish

Oracle wins approval from the U.S. for Sun purchase

Oracle has won approval from the U.S. government for their purchase of Sun (formerly Sun Microsystems). The deal is still subject to approval by the European Commission(EU). Oracle said they expect the deal to close by August 31 (2009).

I don't own stock in either company, but I'm interested to see what happens to many different Sun products, including:

Java App Store

In a blog entry, Sun CEO Jonathan Schwartz writes about Project Vector, which he says will probably be renamed the Java Store. I know that a lot of companies are coming out with their own "stores" now, but for me, this is probably the most interesting Java announcement in years.

What is the command to change my Glassfish admin password?

Question: What is the command to change my Glassfish admin (administrator) password?

Answer: You can change the Glassfish admin password with this asadmin command:

asadmin change-admin-password

The Glassfish master password

Note that you can also change the Glassfish master password with this command:

asadmin change-master-password

 

What is the command to start a Glassfish server?

Question: What is the command to start a Glassfish server?

Answer: I use the following command to start my Glassfish server:

asadmin start-domain domain1

Although this command refers to starting domain1, at least in my case, it also serves to start the entire Glassfish server. I don't know how this works for multiple domains, but my guess is that if you start any one of your domains, you will start up your Glassfish server.

JSP URI/URL - How to get the request URI, URL, and Context from a JSP

JSP URI/URL FAQ: How do I get a URI or URL from a JSP (the request URI or request URL)?

I was just working with a JSP, and trying to remember how to get information that can be very helpful inside of a JSP, specifically how to determine the Context, URI, and URL from within a JSP.

To that end, here's the Java source code for a JSP I wrote that will display the Context, URI, and URL for this JSP when it is accessed from a browser:

A Glassfish command reference (cheat sheet)

Here's a copy of a Glassfish cheat sheet (reference page) that I always keep near me whenever I'm working with a Glassfish server. I like a lot of things about Glassfish, but trying to remember all of these commands for the Glassfish CLI is not one of my favorite things.

Here's my Glassfish command reference:

Tips about an OpenSSO getting started tutorial

This OpenSSO tutorial is probably the best "getting started with OpenSSO" tutorial around, but I'll add one caveat to it: Until you know what you're doing, just follow this tutorial to the letter, and I mean to the letter. Specifically, when they say "use Glassfish", you want to use Glassfish, and not something else, like Tomcat.

Glassfish JDK path problem solved

Glassfish JDK path problem: Some time ago I downloaded Glassfish, and then got away from it for a while. Today when I tried to run this command

C:\glassfish\bin> asadmin start-domain domain1

I got this error message from Glassfish:

Deploy only your JSP files with this Ant build task

A lot of times when you're working on a Java web application you only need to deploy your JSP files. This happens, for instance, when you're just editing the JSP files to modify the look and feel of your web application. In cases like this there's no need to rebuild your entire application, deploy it, then restart your application server (Tomcat, Glassfish, JBoss, whatever).

The default Glassfish password is ...

Question: What is the default Glassfish password (i.e., the default Glassfish admin password, also know as the default master password)?

Answer: adminadmin. (The word "admin" repeated twice.)

It's pretty easy to miss this in Sun's Glassfish documentation, so I thought I'd share it here.

 

Syndicate content