sjsws on Windows 2003 Server AMD64

Hi!

I want to install the Java System Web Server 7 on a Windows Server 2003 AMD64 Machine. But the installation quits during the configuration process throwing following exception:

WARNING: C:\Program Files (x86)\Sun\WebServer7\lib\dllutil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sun\WebServer7\lib\dllutil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1030)

at com.sun.web.admin.configurator.DllUtil.<clinit>(DllUtil.java:11)

at com.sun.web.admin.configurator.ConfiguratorCLISupport.parseArgs(ConfiguratorCLISupport.java:52)

at com.sun.web.admin.configurator.ConfigureServer.main(ConfigureServer.java:50)

Yes of course i know, that the 64-Bit Version of Windows 2003 Server isn't officially supportet... :(

but i was wondering, if there is a working workaround for this problem.

Is there a possibility of running it using the WOW64 subsystem or telling WOW64 that running sjsws is a 32Bit Application manually?!

Here are my detailed System Specifications:

AMD Opteron 175, 2x2.20GHz Virtual Machine

400MB RAM

Operating System: Windows Server 2003 Standard Edition 64-Bit SP2

Java(TM) SE Development Kit 6 Update 2 - Windows x64 Platform

thanks in advance!

--

Detailed install log:

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core install

INFO: Start core server configuration

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core install

FINE: Initialized the variable in PostInstall_core install

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core createScript

FINE: Replacing C:\Program Files (x86)\Sun\WebServer7\lib/install/templates/scripts\configureServer.bat.template to C:\Program Files (x86)\Sun\WebServer7\setup\configureServer.bat...

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core createScript

FINE: ...done

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core configureServer

FINE: Successfully created the configurator script

Jul 23, 2007 7:25:14 PM com.sun.web.installer.web.actions.PostInstall_core configureServer

INFO: Successfully created the install.properties file to be used by the backend configurator

Jul 23, 2007 7:25:15 PM com.sun.web.admin.configurator.ConfigureServer main

WARNING: C:\Program Files (x86)\Sun\WebServer7\lib\dllutil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sun\WebServer7\lib\dllutil.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

at java.lang.ClassLoader$NativeLibrary.load(Native Method)

at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)

at java.lang.Runtime.loadLibrary0(Runtime.java:823)

at java.lang.System.loadLibrary(System.java:1030)

at com.sun.web.admin.configurator.DllUtil.<clinit>(DllUtil.java:11)

at com.sun.web.admin.configurator.ConfiguratorCLISupport.parseArgs(ConfiguratorCLISupport.java:52)

at com.sun.web.admin.configurator.ConfigureServer.main(ConfigureServer.java:50)

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core configureServer

WARNING: Errorwhile executing the backend configurator

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core configureServer

INFO: The status returned from the backend is1

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core install

INFO: End core server configuration

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core createInfFile

INFO: Successfully created the install.inf file

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core copyMsgJar

INFO: Successfully copied the messages.jar file

Jul 23, 2007 7:25:15 PM com.sun.web.installer.web.actions.PostInstall_core moveUninstaller

INFO: Successfully moved the Uninstallclass file to setup directory

[4724 byte] By [pringles001a] at [2007-11-27 11:32:55]
# 1

Even though the platform is not supported, I am able to install SJSWS7.0, 7.0u1 and 7.0u2 (yet to be released) on Windows Server 2003 R2 Enterprise x64 Edition which is installed on Sun Ultra 20 AMD64 box. WS works just fine.

winveroutput,

....

Windows Server 2003 R2 Enterprise x64 Edition

....

Microsoft Windows

Version 5.2 R2 (Build 3790.srv03_sp1_rtm.050324-1447: Service Pack 1)

....

I do have the captured the above details as image, but need to figure out how to attach in the forum reply.

Note: As long as Microsoft maintains the 32-bit Apps backward compatibility on its x64/IA64, it should works fine. But if you need official certification for SJSWS 7, pls contact Sun.

vpremkumara at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Seems like there's a problem with your Windows install not permitting 32-bit apps. Have you check the Windows install/config to make sure that it will permit 32-bit apps to run?

JoeMcCabea at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

I forgot to run your scenario as is, ie. using JDK 1.6u2 AMD64. Actually that is the culprit.

When you use the custom JDK of AMD64 ( don't know why that behaves as if stand alone 64-bit only world, file bug against JDK!) during installation, the config fails and got the exact message as you got.

So i tried another method of installing it with bundled 32-bit JDK and later try to change it to this JDK AMD64, the server failed to start by erroring out as "... libj2eeplugin.dll failed (%1 is not a valid Win32 application). Blame JDK! :-)

vpremkumara at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

WOW64 seems to be complex business. need to read a lot about it to get work around if any.

vpremkumara at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...
# 5

vpremkumar thank you SO MUCH... you were right - blame JDK :P

i just successfully installed sjsws using JDK1.5.0_09 which has been shipped with the installation-files of the web server...

pringles001a at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...
# 6

Yesterday itself i want to update this, but this site was not stable and getting lot of server error.

We can't blame JDK. It is behaving normally ie. sometime we just concentrate on trying to solve the issue throw "hack" rather than logically "analyzing it". Seems to be we both over working or skipped the meals :-)

The original issue you and i faced was, using a 32-bit compiled (WS7 on windows) binaries and libraries trying to live with(/load) 64-bit JDK!. How that will work? that is not supported on any platform. Same for 64-bit only binary (e.g. WS 6.1 SPx 64-bit only on SPARC) can't live with 32-bit .

Hmm. seems to be we are spoiled by Solaris where based on $ISALIST if the Apps is 32 and 64-bit capable and if user just specify the JAVA_HOME, it auto detect and load the corresponding libraries and use binaries for the apps to run.

vpremkumara at 2007-7-29 16:48:21 > top of Java-index,Web & Directory Servers,Web Servers...