Running java webapp on iis

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 5
Joined: 16 Apr 2013, 01:18

Running java webapp on iis

16 Apr 2013, 01:21

PROBLEM:: i am using helicon zoo for running java webapp on iis server(using this as reference ::run java servlet on IIS), but i am facing some problems

i put my app directory in 'c:/inetpub/wwwroot/myapp'(it includes web-inf) then web.config inside it My web.config looks like::

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="jetty.project" >
        <environmentVariables>
          <add name="CONTEXT_PATH" value="%APPL_VIRTUAL_PATH%" />
          <add name="WAR_EXTRACT_PATH" value="%APPL_PHYSICAL_PATH%" />
          <add name="WAR_FILE" value="%APPL_PHYSICAL_PATH%" />
        </environmentVariables>
      </application>
    </heliconZoo>
    <handlers>
      <add name="jetty.project#x86" scriptProcessor="java.jetty"  path="*" verb="*" modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" />
      <add name="jetty.project#x64" scriptProcessor="java.jetty"  path="*" verb="*" modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
  </system.webServer>
</configuration>

and iis showing following error::

HTTP Error 500.21 - Internal Server Error
Handler "jetty.project#x64" has a bad module "HeliconZoo_x64" in its module list
can anyone help me..

oh one more thing i have visual studio and i have win7 professional 64 bit installed

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Running java webapp on iis

16 Apr 2013, 06:05

"Handler "jetty.project#x64" has a bad module "HeliconZoo_x64" in its module list"
- this means that Zoo is not installed, please re-install

Also, in this line <add name="WAR_FILE" value="%APPL_PHYSICAL_PATH%" />
the path to war-file should be specified as follows:
<add name="WAR_FILE" value="%APPL_PHYSICAL_PATH%\youapp.war" />

User avatar
Posts: 5
Joined: 16 Apr 2013, 01:18

Re: Running java webapp on iis

16 Apr 2013, 07:31

HI,
Thanks for the quick reply.
actually i have reinstalled webInstaller and add the zoo feeds as mentioned at
http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/
and i am facing the same problem.
and it shows icon of webInstaller in IIS manager.

Let me explain properly..
1. i have my webapp structure in 'wwwroot' folder(actually it is a folderStructure, it is not war file).
i tried same thing with .war file also and its showing same error.

Or maybe describe how to install zoo shortly.
Oh one more thing is it compulsory to install visualstudio(.net) installed ??

Thanks!

User avatar
Posts: 5
Joined: 16 Apr 2013, 01:18

Re: Running java webapp on iis

17 Apr 2013, 02:54

yeah!
IIS found that helicon and jetty modules.
but now i am facing following erro

Code: Select all
HTTP ERROR: 404

Problem accessing /myWeb. Reason:

    Not Found
Powered by Jetty://


may be i have to set environmental variables or that kinda stuff(env var are already set).

User avatar
Posts: 5
Joined: 16 Apr 2013, 01:18

Re: Running java webapp on iis

17 Apr 2013, 05:16

Actually it is extracting .war file properly but problem with jetty error as mentioned above::

does someone know how to solve this ??
and i have some questions::
1. is it necessary to initialize jetty externally ?
2. visual studio(dot net) installation is compulsory ?
3. do i have to run IIS and tomcat side by side to perform this ?

Thanks in adv !!

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Running java webapp on iis

17 Apr 2013, 06:36

Hello,

if "my webapp structure in 'wwwroot' folder(actually it is a folderStructure, it is not war file)." then you might have an application from jsp-files and then you need to use different engine - java.appdir

Here's the example of web.config:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<heliconZoo>
<application name="jetty.jsp.project">
<environmentVariables>
<add name="CONTEXT_PATH" value="%APPL_VIRTUAL_PATH%" />
</environmentVariables>
</application>
</heliconZoo>
<handlers>
<add name="jetty.jsp.project#x86" scriptProcessor="java.appdir" path="*" verb="*" modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" />
<add name="jetty.jsp.project#x64" scriptProcessor="java.appdir" path="*" verb="*" modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" />
</handlers>
<defaultDocument>
<files>
<add value="index.jsp" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

User avatar
Posts: 5
Joined: 16 Apr 2013, 01:18

Re: Running java webapp on iis

17 Apr 2013, 07:47

Thanks for response.
my app is working now..

thanks again. :D

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 3 guests