Uninstalling problems - Sun Java System AppSever 9 on Ubuntu

hi guys,

looks like a lot of people is having the same problem as me, but after reading other posts in this forum i was unnable fo fix it.

unfortunally, i made a wrong remove of my appserver that was located on /opt/SUNWappserver. so i decided to reinstall the netbeans 5.5 with bundle SunAppserver. When i saw the installation log, a message indicated that was unable to install the Sunappserver because another one was installed (this is not true, since i removed (in a wrong way) previously.

It looks that some pieces of my old appServer is still on my ubuntu and this is the reason i cannot install it again. how can i completely remove the old SunAppServer and install it again?

thanks a lot

Rodrigo Maritns Pagliares

[759 byte] By [pagliaresbrazil] at [2007-11-14]
# 1
Appserver packages are named "sun-xxx", so what you could do is to search for packages named "sun-xxx" and manually remove them.On RH this is normally done with rpm, i.e 1)"rpm -qa | grep sun-" 2)"rpm -e sun_package_name"Hope this helps.
Sultal at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 2
Sultal,thanks for try helping me !!! i google the net to discover a way to list the packages installed on my ubuntu, but i didnt get it !!!i tried to use aptitude but didnt work too.any help?
pagliaresbrazil at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 3
Check out these 2 urls: http://wiki.java.net/bin/view/Projects/InsExist http://wiki.java.net/bin/view/Projects/LinDistHope this helps.
Sultal at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 4

Sultal,

i follow the links but still nothing !!!

i used the following command to list the packages installed on my system with sun prefix:

pagliares@pavement:~$ sudo apt-cache pkgnames | grep sun-

sun-java5-bin

sun-java5-doc

ia32-sun-java5-bin

ia32-sun-java5-plugin

sun-java5-jdk

sun-java5-jre

sun-java5-src

sun-java5-source

sun-j2re1.4

sun-j2re1.5

sun-java5-demo

sun-java5-fonts

sun-java5-plugin

sun-j2sdk1.5

as you can see, looks like all the sun packages installed has nothing to do with the Sun Java Application Server. Now i got stucked !!! i thought the problem was some kind of package dependencies not removed when i removed the sunappserver directory.

anyway, thanks a lot and sorry for all english mistakes

Rodrigo

pagliaresbrazil at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 5
In that case I would recommend become root, remove sun-j2re1.4 package just in case(the installer might be picking the wrong java version), empty /tmp directory and reboot the host.
Sultal at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 6

sultal,

i did what you recommended, but nothing yet. this is the log of the NetBeans 5.5 with Sun Java Application Server bundled (after installation, netbeans work perfectly and a empty directory named SUNWappserver is created

(Ter Nov 28 10:15:51 BRST 2006) Installing Appserver...

Executing the following command:

/opt/netbeans-5.5/_uninst/sjsas_pe-9_0_01-fcs-bin-b14-linux-30_sep_2006.bin -javahome /opt/jdk1.5.0_07 -tmpdir /tmp -silent /opt/netbeans-5.5/_uninst/statefile

Checking available disk space...

Checking Java(TM) 2 Runtime Environment...

Extracting installation files...

Launching Java(TM) 2 Runtime Environment...

Existing Installation Detected

Deleting temporary files...

exitcode = 151

(Ter Nov 28 10:16:01 BRST 2006) Finished Installing Appserver8...

Rodrigo

pagliaresbrazil at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 7
Ok, there is one more thing you can try. Check your default user directory for hidden directories or files similar to: $UserHome/.NetBeansxxx or $UserHome/.sjsasxxxx and any of them exist remove them prior to netbeans reinstall.
Sultal at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 8

hi,

indeed there was a couple of hidden directories named .netbeans. I removed all of them, and also removed some .java hidden directories. After that i booted my machine and tried to install the netbeans bundled again... and didnt work (the same log message that the sun app server already exist show up) !!

the strange is everything was working correctly (including Sun App Server) before i removed de entire directory of the appserver mannually.

arrrgh !!!

pagliaresbrazil at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...
# 9

hello sultal,

thank you very much for trying to help me.... i finnaly got the appserver running. I just informed another installation directory (instead of the default of the installer) and... BINGO !!

i still dont know why the installation is not accepting the default directory (even after removed it beffore installation). But this doesnt matter anymore.

yours sincerely

Rodrigo Martins Pagliares

pagliaresbrazil at 2007-7-7 > top of java,Application & Integration Servers,Application Servers...