Home > Sun Microsystems > Sun Java Web Console

Sun Java Web Console

This is a lit­tle rant from sev­eral angles.

Sun’s Java Web Con­sole is a nice lit­tle toy. Great for those peo­ple who pre­fer the less extreme learn­ing curve of a CLI, and great for man­ager types who like pictures.

I’ve used it sev­eral times before, but thought I’d try it in on x86 Solaris10u6 box I have here. Bloody Sun. You think a released ver­sion implies that it’s sta­ble, and work­ing.

For me the issue was that when I orig­i­nally installed the server, I used a tem­po­rary host­name, and DHCP for net­work because I couldn’t be both­ered to change my local DNS and fig­ure out a spare IP. I then changed to fixed IP and host­name later.

The ram­i­fi­ca­tions of this is that my host­name ended up being assigned to local­host, (aka 127.0.0.1). This means that when the Web­Con­sole was ini­tially installed and con­fig­ured it used 127.0.0.1 through­out it’s hard­coded, (stu­pid Tom­cat — hate it with a ven­gence), con­fig files.

This is some­thing that annoys the heck out of me: I under­stand devel­op­ers mak­ing ‘pack­ages’ that they can ‘deploy’ to a web server, (Tom­cat). It’s nice to be able to ‘deploy’ a pack­age. But for heck’s sake, why shove hostname/IP/port def­i­n­i­tions in not just one file, but 50 stu­pid files that are zipped up along with shared libs and bina­ries? Why? Haven’t they heard of /etc/hosts, or even putting these def­i­n­i­tions into some­where com­mon? Why do they have to have these def­i­n­i­tions in mul­ti­ple places?

Another great exam­ple of let­ting the devel­oper take the lead in sys­tems management.

Any­way, dig­ging around the net try­ing to resolve my issue showed up a lot of sim­i­lar com­plaints, but noth­ing really to sort it out. ‘wcad­min’ refused to start the ‘deployed’ pack­ages, because they couldn’t con­nect to the Tom­cat server run­ning on my old hostname.

root@somewhere % wcadmin list

Deployed web applications (application name, context name, status):

console  ROOT            [stopped]
console  com_sun_web_ui  [stopped]
console  console         [stopped]
console  manager         [stopped]
console  zfs             [stopped]

Registered jar files (application name, identifier, path):

console  audit_jar     /usr/lib/audit/Audit.jar
console  console_jars  /usr/share/webconsole/lib/*.jar
console  jato_jar      /usr/share/lib/jato/jato.jar
console  javahelp_jar  /usr/jdk/packages/javax.help-2.0/lib/*.jar
console  shared_jars   /usr/share/webconsole/private/container/shared/lib/*.jar

Registered login modules (application name, service name, identifier):

console  ConsoleLogin  userlogin
console  ConsoleLogin  rolelogin

Persistent Jvm options:

-server
-Xmx128m
-XX:+UseParallelGC
-XX:ParallelGCThreads=4

I tried using wcad­min ro ‘unde­ploy’ and ‘deploy’ pack­ages, and even the brut force method of

root@somewhere % find /var/webconsole /usr/share/webconsole /etc/webconsole /usr/lib/webconsole -type f | xargs egrep -l '127.0.0.1|localhost'

and man­u­ally mod­i­fy­ing any con­fig files found.

In the end I did a pkgrm/remove configs/pkgadd cycle:

1. Remove Web­Con­sole packages.

system      SUNWasac  Sun Java System Application Server Admin Client
application SUNWmcon  Sun Java(TM) Web Console 3.0.2 (Core)
system      SUNWmconr Sun Java(TM) Web Console 3.0.2 (Root)
application SUNWmcos  Implementation of Sun Java(TM) Web Console (3.0.2) services
application SUNWmcosx Implementation of Sun Java(TM) Web Console (3.0.2) services
application SUNWmctag Sun Java(TM) Web Console 3.0.2 (Tags & Components)
application SUNWzfsgr ZFS Administration for Sun Java(TM) Web Console (Root)
application SUNWzfsgu ZFS Administration for Sun Java(TM) Web Console (usr)

The usual removal:

root@somewhere % pkgrm SUNWzfsgu SUNWmcosx SUNWmcos SUNWasac SUNWmcon SUNWzfsgr SUNWmconr SUNWmctag

Then remove all the con­fig files:

root@somwehere % rm -rf /var/webconsole /usr/share/webconsole /etc/webconsole /usr/lib/webconsole

Or tar­ball up and then remove:

root@somewhere % tar cvf /tmp/webconsole.tar /var/webconsole /usr/share/webconsole /etc/webconsole /usr/lib/webconsole
root@somewhere % rm -rf /var/webconsole /usr/share/webconsole /etc/webconsole /usr/lib/webconsole

2. Re-install the Web­Con­sole pack­ages:
If you have your orig­i­nal install DVD/CD handy, then just chuck it in, and install the pack­ages from the Prod­uct directory:

root@somewhere % pkgadd -d /cdrom/cdrom0/s2/Solaris_10/Product SUNWzfsgu SUNWmcosx SUNWmcos SUNWasac SUNWmcon SUNWzfsgr SUNWmconr SUNWmctag
The following packages are available:
 1  SUNWasac      Sun Java System Application Server Admin Client
 (i386) 8.2,REV=2006.08.16.08.46
 2  SUNWmcon      Sun Java(TM) Web Console 3.0.2 (Core)
 (i386) 3.0.2,REV=2006.12.08.20.48
 3  SUNWmconr     Sun Java(TM) Web Console 3.0.2 (Root)
 (i386) 3.0.2,REV=2006.12.08.23.39
 4  SUNWmcos      Implementation of Sun Java(TM) Web Console (3.0.2) services
 (i386) 3.0.2,REV=2006.12.08.23.39
 5  SUNWmcosx     Implementation of Sun Java(TM) Web Console (3.0.2) services
 (i386) 3.0.2,REV=2006.12.08.23.39
 6  SUNWmctag     Sun Java(TM) Web Console 3.0.2 (Tags & Components)
 (i386) 3.0.2,REV=2006.12.08.20.48
 7  SUNWzfsgr     ZFS Administration for Sun Java(TM) Web Console (Root)
 (i386) 1.0,REV=2006.10.24.20.44
 8  SUNWzfsgu     ZFS Administration for Sun Java(TM) Web Console (usr)
 (i386) 1.0,REV=2006.10.24.20.44

Even though you are installing ver­sion 3.1 of the Java Web Con­sole, it actu­ally appears as 3.0.2 for some stu­pid reason.

Every­thing will startup as expected using the new host­name defined.

root@somewhere % wcadmin list

Deployed web applications (application name, context name, status):

console  ROOT            [running]
console  com_sun_web_ui  [running]
console  console         [running]
console  manager         [running]
console  zfs             [running]

Registered jar files (application name, identifier, path):

console  audit_jar     /usr/lib/audit/Audit.jar
console  console_jars  /usr/share/webconsole/lib/*.jar
console  jato_jar      /usr/share/lib/jato/jato.jar
console  javahelp_jar  /usr/jdk/packages/javax.help-2.0/lib/*.jar
console  shared_jars   /usr/share/webconsole/private/container/shared/lib/*.jar

Registered login modules (application name, service name, identifier):

console  ConsoleLogin  userlogin
console  ConsoleLogin  rolelogin

Persistent Jvm options:

-server
-Xmx128m
-XX:+UseParallelGC
-XX:ParallelGCThreads=4

No related posts.

Categories: Sun Microsystems Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.