IIS Config

8
I am trying to configure IIS, I have followed the guide however i get this error when i try to run the application. Any Ideas? JVM Parameters: -Djava.library.path=WEB-INF\lib -Dfile.encoding=UTF-8 -jar WEB-INF\lib\mx.jar -f WEB-INF\model\CMDB.mdp -m D Mendix XML Application Server Version: 2.4.5 - r10177 - 2009-11-23 14:39:22 Copyright © 2003-2009 Mendix bv. All rights reserved. Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) Running on x86 Windows XP 5.1 MDP file WEB-INF\model\CMDB.mdp specified as command line parameter. DTAP mode DEVELOPMENT specified as command line parameter. 2010-01-08 16:21:17.026 INFO - CORE: LogManager: registered LogManager MBean at com.mendix.core.log:name=LogManager 2010-01-08 16:21:17.214 INFO - CORE: Generated XASInstanceId: {78192b92-0be0-407e-9008-31512f8848b2} 2010-01-08 16:21:17.214 INFO - CORE: Logging to console... 2010-01-08 16:21:17.214 INFO - CORE: Mendix XML Application Server 2010-01-08 16:21:17.214 INFO - CORE: Version: 2.4.5 - r10177 - 2009-11-23 14:39:22 2010-01-08 16:21:17.214 INFO - CORE: Copyright © 2003-2009 Mendix bv. All rights reserved. 2010-01-08 16:21:17.214 INFO - CORE: Java(TM) SE Runtime Environment (build 1.6.0_17-b04) 2010-01-08 16:21:17.214 INFO - CORE: Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) 2010-01-08 16:21:17.214 INFO - CORE: Running on x86 Windows XP 5.1 2010-01-08 16:21:17.214 INFO - CORE: LogManager: Starting processing the Log Message Queue 2010-01-08 16:21:17.276 INFO - MODELERAPI: Reading modeler file... 2010-01-08 16:21:18.135 INFO - MODELERAPI: Business Modeler version: 2.4.5 2010-01-08 16:21:18.167 ERROR - CORE: An exception occurred during XAS initialization 2010-01-08 16:21:18.167 INFO - CORE: Press a key to shutdown XAS... 2010-01-08 16:21:18.167 ERROR - CORE: An error occurred while initializing ModelerAPI com.mendix.core.B.A(CoreInitializer.java:94) com.mendix.core.Core.initialize(Core.java:129) com.mendix.externalinterface.menu.ConsoleMenu.main(ConsoleMenu.java:269) Caused by: Could not access zip file '10.84.10.24\mendix$\WEB-INF\lib\mx.jar' com.mendix.modelerapi.ClassCache.A(ClassCache.java:257) com.mendix.modelerapi.ClassCache.A(ClassCache.java:175) com.mendix.modelerapi.ClassCache.<init>(ClassCache.java:41) com.mendix.modelerapi.ModelerAPI.initialize(ModelerAPI.java:173) com.mendix.core.B.A(CoreInitializer.java:165) com.mendix.core.B.A(CoreInitializer.java:92) com.mendix.core.Core.initialize(Core.java:129) com.mendix.externalinterface.menu.ConsoleMenu.main(ConsoleMenu.java:269) Caused by: 10.84.10.24\mendix$\WEB-INF\lib\mx.jar (The system cannot find the path specified) java.util.zip.ZipFile.open(Native Method) java.util.zip.ZipFile.<init>(ZipFile.java:114) java.util.zip.ZipFile.<init>(ZipFile.java:75) com.mendix.modelerapi.ClassCache.A(ClassCache.java:245) com.mendix.modelerapi.ClassCache.A(ClassCache.java:175) com.mendix.modelerapi.ClassCache.<init>(ClassCache.java:41) com.mendix.modelerapi.ModelerAPI.initialize(ModelerAPI.java:173) com.mendix.core.B.A(CoreInitializer.java:165) com.mendix.core.B.A(CoreInitializer.java:92) com.mendix.core.Core.initialize(Core.java:129) com.mendix.externalinterface.menu.ConsoleMenu.main(ConsoleMenu.java:269)
asked
4 answers
4

I don't know alot about the deployment procedure but judging from the log you posted, the mx.jar (this is basically the server logic) seems to be missing or in the wrong spot.

The line that is telling you this:

Caused by: 10.84.10.24\mendix$\WEB-INF\lib\mx.jar (The system cannot find the path specified)

answered
4

This error is a bit confusing. To respond to your previous command, java has been installed on the system and is running as the log states:

Mendix XML Application Server Version: 2.4.5 - r10177 - 2009-11-23 14:39:22 Copyright © 2003-2009 Mendix bv. All rights reserved. Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing) Running on x86 Windows XP 5.1

Furthermore, mx.jar seems to be already loaded, since com.mendix.core.Core, which throws the error, resides in that jar.

My guess is that the server tries to load an addition resource from the same jar, but that the extractor used for this (java.util.zip.ZipFile) does not support opening remote files (10.84.10.24\mendix$\WEB-INF\lib\mx.jar).

So the question is where does the 10.84.10.24\mendix$ come from, since this seems to be a strange basepath to me. Is this path set in the application.conf? I guess using a filesystem path (e.g. C:\Program Files\Mendix etc.) would solve the problem.

answered
3

I don't think the problem is that the mx.jar is loaded twice, because you have an exception that says: The system cannot find the path specified
This is probably caused because relative and absolute paths are used inconsistently. When I am configuring the XAS on a windows server I try to used absolute paths every where.

Your log starts with the message: "-Djava.library.path=WEB-INF\lib -Dfile.encoding=UTF-8 -jar WEB-INF\lib\mx.jar -f WEB-INF\model\CMDB.mdp -m D" these are all relative paths but the path in your exception is: "10.84.10.24\mendix$\WEB-INF\lib\mx.jar"

In your comment to the post from Michel you state that you were previously deploying on your local computer. How did you specify all paths in the config files? Was that something like this: "D:/MENDIX/Production/w32service/wrapper.jar" ?? (with only forward slashes)

If that is the case you should check your path's because now java will start looking for a folder called "10.84.10.24" in your deployment folder. I guess that isn't what you want and you want to use the network address. in your wrapper.conf file you should specify the path as following: \\\\10.84.10.24\\mendix$\\WEB-INF\\lib\\mx.jar Java requires that all backslashes have to be escaped which. So when you want to use the network location \\10.84.10.24 you have to use 4 backslashes.

answered
2

I am still having problems in getting the configuration for IIS correct. Is there any specific requirements for it to work? I have the files on the web server and i have created my IIS 6 web site. I have pointed it to the web folder of the application. Do i need to change the tcp port number from 80 to 8008? I have followed all the instructions in the documentation but still cannot get it to work. My whole set up is that i have Mendix installed on my computer and have a IIS webserver which i have deployed my files onto. I have then followed the instructions however i am unable to view anything. Also what is the format of the address i have to put in the application root url? I hope someone can help me lol

answered