Can't install a java service on windows server 2003 R2 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mthopmson
Posts: 7
Joined: Fri Jun 22, 2007 6:47 pm

Can't install a java service on windows server 2003 R2

Hi,

I have a java service that installs and runs fine on Windows XP, but on a Windows Server 2003 machine, the installer freezes for a bit on starting the service, and then returns an error.

I tried the JavaServiceExample application as well and found the same behavior. Is there some setting I'm missing?

Thanks,

Mark
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Mark,

I cannot reproduce this behavior on my Windows 2003 Server test computer. Please make sure you have Java installed on the target computer. If not you can add it as prerequisite for your package.

Let me know if the problem persist.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mthopmson
Posts: 7
Joined: Fri Jun 22, 2007 6:47 pm

Hi,

Thanks for the reply, any help is appreciated. The problem is persistent, I tried to log in as a user and not LOCAL SYSTEM and then the service started, fine, but the tray icon (using Java 1.6 API) didn't work...

Did you try this with the Windows 2003 Server R2 SP2? I read an article online saying that there was a hotfix to address access issues, but it was supposed to be included in service pack 2, do you know anything about this either?

Thanks,

Mark
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Mark,

I think the problem lies in your code. My Windows 2003 Server machine is with SP1 but I'm afraid I'm not aware of that hotfix.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mthopmson
Posts: 7
Joined: Fri Jun 22, 2007 6:47 pm

Hi Gigi -

Thanks for your replies, too! Well, the tray icon not displaying...I'm not sure what type of code issue could be there...it works in Windows XP...except when a machine is powered on, the icon doesn't appear on the task bar although it is running.

Here is the issue I think it may be... http://support.microsoft.com/kb/886695

If there is an issue with my code (which I have NO problem admitting :D) What type of pitfalls can I be on the look out for? Is there something in my advanced installer setup that I need to alter?

Here are some snippets of my code...maybe the culprit can be found here??

Code: Select all

	public static void main(String argv[]){
		rc = new ResourceClient();
		while(true){
			if(stopped){
				stdLog("Initiating shutdown process...");
				rc.shutdownForService();
				stdLog("Shutdown process completing");
				break;
			}
			else
				try{
					Thread.sleep(1000);
				}
				catch(Exception e){
					logError("Error occurred while trying to sleep: "+e.getMessage());
				}
		}
		stdLog("Quiting application.");
	}
	public static void stop(){
		stopped = true;
	}
Then here is an outline of my tray icon support.
- I call my constructor as described above
- Create the tray icon there (where I do check for system tray support)
- then I create the rest of the GUI

Any insight is amazing. Thanks!

-Mark

Return to “Common Problems”