WAR installed - TransportError

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 2
Joined: 15 Sep 2012, 06:33

WAR installed - TransportError

15 Sep 2012, 07:17

Hello all,

I'm experiencing some trouble in getting a WAR to work.
The WAR is from https://www.activetree.com/.
The goal: being able to print PDF files silently (without user interaction) from a web page.
The trail WAR can be downloaded (after registration) for free (trail).

Deployment:
- web application (under the default web site)
- Application pool runs with credentials that have full control on the file system folder for the WAR.

web.config:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="jetty.project" >
        <environmentVariables>
          <add name="WAR_FILE" value="smartjprint_browser_2.5_05_trial.war" />
        </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>


Navigation to a test URL
Code: Select all
https://localhost/SilentPrint/view_pdf.asp?DOCUMENT=[http://www.activetree.com/silent_print_pdf_from_browser/demo/sample_pdf/sample1.pdf]

Results in an error:

Code: Select all
Helicon Zoo module has caught up an error. Please see the details below.
Worker Status
Windows error
The operation completed successfully. (ERROR CODE: 0)
Internal module error
message: Can't connect to a child process. type: ZooException file: TcpTransport.cpp line: 109 version: 1.1.56.262
STDERR
Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object


The zoo error log shows:
Code: Select all
TransportError: Can't connect to a child process.



All help would be appreciated :-)
I really have no clue how to troubleshoot or resolve this issue

User avatar
Posts: 2
Joined: 15 Sep 2012, 06:33

Re: WAR installed - TransportError

15 Sep 2012, 07:25

Some more info:
- installed "Java hosting package" following the guide at http://www.helicontech.com/articles/deploying-java-servlet-applications-on-windows-with-iis/

- first error when navigating to the test url was a 404 from jetty. This was fixed after installing JDK 6 (and a reboot).

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: WAR installed - TransportError

24 Sep 2012, 10:31

Hello!

Thank you for feedback!

We currently work on new implementation of IIS & Java integration. This work requires some time and we will try to fix your issue in this new version as well.
Please stay tuned.

User avatar
Posts: 9
Joined: 10 Oct 2012, 00:15

Re: WAR installed - TransportError

11 Oct 2012, 01:07

Does it matter where do you actually get your WAR. I am always getting 404 error. Image

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: WAR installed - TransportError

12 Oct 2012, 10:27

New versions of Helicon Zoo Module and Java Hosting Packages are available in beta feed now. Since these changes are significant, we made these versions available through beta feed for now.
These new versions should resolve current issues with Java applications.

Installation instructions:

1. Run Web Platform Installer and click Options.
2. Remove current Helicon Zoo feed (http://www.helicontech.com/zoo/feed/)
3. Add Helicon Zoo beta feed (http://www.helicontech.com/zoo/feed-beta/)
4. Install Java Hosting Package - your current installations will be upgraded. You need to install Oracle JDK first, as Oracle prohibit direct downloading of Java packages so it can't be included into repository.

Please report your results here.

User avatar
Posts: 2
Joined: 12 Oct 2012, 19:31

Re: WAR installed - TransportError

12 Oct 2012, 20:03

Hi everybody:

I tested the Heliocon Zoo beta to prove the java servelt whit iis, before, with the previous version i had the same error that jjeferson user. Now, the iss don´t show me this error, but now show me:

"500 Error"
Helicon Zoo module has caught up an error. Please see the details below.

Windows error
The system cannot find the path specified. (ERROR CODE: 3)

Internal module error
message: Can't open '%JDK_HOME%\bin\java.exe' file
type: ZooException
file: WinApi.cpp
line: 334 version: 1.2.59.273

For more details, i installed the JDK from Heliocon Zoo, and registered it in the "Path" of windows, also install the futures like .NET Framework 3.5, ASP.NET over iis. I use a example with .war extension, it contains jsp files. Therefore i don´t have idea for this error if i have installed all the necessary.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: WAR installed - TransportError

13 Oct 2012, 04:06

Hello!

You must do iisreset in order for new variables to get into IIS process after installation. We will overcome this requirement in next version of Helicon Zoo Module.

User avatar
Posts: 2
Joined: 12 Oct 2012, 19:31

Re: WAR installed - TransportError

16 Oct 2012, 13:25

Hi again !!

Thanks for your answer, is the same do the iisreset after all instalations components?

And sorry for my ignorance, but, can i use .jar files with this aplication? because i try it, and i dont had success

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: WAR installed - TransportError

17 Oct 2012, 07:40

Hello.

No, only Java Hosting Package installation requires iisreset. We will include it into installation process so you don't need to call it manually anymore.

Sorry, forgot to mention, you need to use different engine for jsp/jar files. The engine name is "java.appdir" and it defines web site as a directory with Java files.
The "java.jetty" engine is currently only for single WAR file web sites.

Here is an example of web.config:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="java.project">
        <environmentVariables>
          <add name="CONTEXT_PATH" value="%APPL_VIRTUAL_PATH%/" />
          <!-- <add name="CONTEXTS_DIR" value="%APPL_PHYSICAL_PATH%/contexts" /> -->
          <add name="ERROR_LOG_DIR" value="logs" />
        </environmentVariables>
      </application>
    </heliconZoo>
    <handlers>
      <add name="java.project#x86" scriptProcessor="java.appdir" path="*" verb="*"
           modules="HeliconZoo_x86" preCondition="bitness32" resourceType="Unspecified" requireAccess="Script" />
      <add name="java.project#x64" scriptProcessor="java.appdir" path="*" verb="*"
           modules="HeliconZoo_x64" preCondition="bitness64" resourceType="Unspecified" requireAccess="Script" />
    </handlers>
  </system.webServer>
</configuration>


After that you can put JSP/JAR files and WEB_INF filder directly into the web site root.
Notice the commented out CONTEXTS_DIR variable. This variable can be used to specify directory with additional Jetty contexts, so you can create more contexts and load multiple WAR files or other applications within a single web site.

User avatar
Posts: 4
Joined: 11 Oct 2012, 03:08

Re: WAR installed - TransportError

19 Oct 2012, 14:26

I updated to the beta version and I now receive this

HTTP ERROR: 503
Problem accessing /directory. Reason:

Service Unavailable


--------------------------------------------------------------------------------
Powered by Jetty://


Below is my web.config file:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="jetty.project">
        <environmentVariables>
          <!-- Uncomment line below if you want to set contexts directory -->
          <!--  <add name="CONTEXTS_DIR" value="%APPL_VIRTUAL_PATH%" /> -->

          <!-- Optional variables: -->
          <add name="CONTEXT_PATH" value="/directory" />
          <!-- <add name="WAR_EXTRACT_PATH" value="%APPL_PHYSICAL_PATH%" /> -->

          <!-- A WAR file or start directory to run -->
          <add name="WAR_FILE" value="warfile.war" />
        </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>
        <defaultDocument>
            <files>
                <add value="index.jsp" />
            </files>
        </defaultDocument>
  </system.webServer>
</configuration>


Any ideas what could be causing this?

The only thing I haven't done at this point since installing java jdk and the beta version is reboot the server.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: WAR installed - TransportError

19 Oct 2012, 15:34

You need to set your WAR file. Check the line in the web.config:
<!-- A WAR file or start directory to run -->
<add name="WAR_FILE" value="warfile.war" />

This need to be set to your real WAR file name.

User avatar
Posts: 4
Joined: 11 Oct 2012, 03:08

Re: WAR installed - TransportError

19 Oct 2012, 15:54

I do have the correct war file referenced here. I just was masking it with fake name in this post

User avatar
Posts: 4
Joined: 11 Oct 2012, 03:08

Re: WAR installed - TransportError

19 Oct 2012, 17:02

I had forgot to give proper permission to the application directory. all works now.

User avatar
Posts: 1
Joined: 12 Sep 2017, 19:27

Re: WAR installed - TransportError

12 Sep 2017, 19:34

This is one of the commens error which peoples face in daily usage. Thanks for helping me in fixing this issue. Best Waist Trainer

User avatar
Posts: 1
Joined: 25 Jan 2018, 06:46
Location: United Kingdom

Re: WAR installed - TransportError

25 Jan 2018, 06:53

This is one of the commas issues which peoples facing everyday.
Thanks for helping me in fixing this issue. Regardless by http://shop4fun.online

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 3 guests