[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

(Access is denied) Exception when trying to deploy WebStart on Terminal Services

Posted on 2005-05-10
14
Medium Priority
?
936 Views
Last Modified: 2011-09-20
Hi,

We're getting the following Web Start errors when attempting to deploy an application using Java WebStart over Terminal Services.  Anybody have any experience with doing this?

Cheers, Steve


General

An error occurred while launching/running the application.

Category: Invalid Argument Error

Could not load file/URL specified: \\churchill-ts-99\c$\Documents and Settings\
All Users\Application Data\Sun\Java\Deployment\cache\javaws\http\D10.0.1.55\P80\DMjnlp




Exception

CouldNotLoadArgumentException[ Could not load file/URL specified:
\\churchill-ts-99\c$\Documents and Settings\All Users\Application Data\Sun\Java
\Deployment\cache\javaws\http\D10.0.1.55\P80\DMjnlp]
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.main(Unknown Source)







Wrapped Exception

java.io.FileNotFoundException: \\churchill-ts-99\c$\Documents and Settings\All Users
\Application Data\Sun\Java\Deployment\cache\javaws\http\D10.0.1.55\P80\DMjnlp
(Access is denied)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(Unknown Source)
      at java.io.FileInputStream.<init>(Unknown Source)
      at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
      at com.sun.javaws.Main.launchApp(Unknown Source)
      at com.sun.javaws.Main.main(Unknown Source)
0
Comment
Question by:steve_bagnall
  • 7
  • 7
14 Comments
 
LVL 15

Expert Comment

by:aozarov
ID: 13969255
It seems as if you don't have permissions to acces that shared folder
0
 
LVL 15

Expert Comment

by:aozarov
ID: 13969260
Try usign explorer and go to : : \\churchill-ts-99\c$\Documents and Settings\All Users\Application Data\Sun\Java\Deployment\cache\javaws\http\D10.0.1.55\P80\DMjnlp
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13975869
Hi thanks for your response.  I got a windows error saying "windows cannot find, ........check your spelling and try again".

Cheers.

Steve
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 15

Expert Comment

by:aozarov
ID: 13977366
if you cann't use standard file explorer to see \\churchill-ts-99\c$\Documents and Settings\All Users\Application Data\Sun\Java\Deployment\cache\javaws\http\D10.0.1.55\P80\DMjnlp
 you will definetly not be able to see it from Java.
How do you start javaws (what is the argument)?
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13977668
Sorry - that was from a browser.  In Windows explorer we get the message "Access to the resource is disallowed".  This is from the TS session, is that what you mean.

With respect to starting javaws, we just point a browser at the jnlp file - is this what you mean?

Cheers, Steve
0
 
LVL 15

Expert Comment

by:aozarov
ID: 13977768
>>   In Windows explorer we get the message "Access to the resource is disallowed".  
So that is your problem. you need to have permissions to access this folder/file

>> With respect to starting javaws, we just point a browser at the jnlp file - is this what you mean?
Right.

Is the jnlp file you are trying to access directly also visible thru an http server?
Can you access it thru http://some_ip_address/path_to_jnlp/file_name.jnlp?
That is the prefered way.
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13977869
Our admin is telling me that any authenticated user has full access rights to NTFS and share permissions.  

Also, when we point the browser directly at the JNLP file on the web server, it starts to load the application, but then nothing happens (the splash screen displays and then disappears and that's it).  Note: doing this does not start a javaws task in the task manager on the TS server.  Strange.
0
 
LVL 15

Expert Comment

by:aozarov
ID: 13978105
>> Our admin is telling me that any authenticated user has full access rights to NTFS and share permissions.  
But you told me "In Windows explorer we get the message "Access to the resource is disallowed". " so you can't gain direct access
to it.

>> Also, when we point the browser directly at the JNLP file on the web server, it starts to load the application
That is a good start (if javaws was invoked and triggered your application)

Can you provide the jnlp text file here.
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13978360
I've left her looking into that - I think this is some sort of TS security thing.

The jnlp file follows (this works on stand-alone machines - just not on TS sessions):


JNLP FILE ==================


<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for Gap Analysis Application -->
<jnlp spec="1.5+" codebase="http://10.0.1.55" href="jnlp/gapdataclient.jnlp">
      <information>    
            <title>Gap Analysis Client</title>
            <vendor>Churchill China (UK) Ltd</vendor>
            <homepage href="docs/help.html" />
            <description>Gap Analysis Client</description>
            <description kind="short">Client-Server application for recording and viewing product placement marketing data.</description>
          <icon href="assets/gap_logo_48_48.gif" />
          <icon kind="splash" href="assets/gap_logo_48_48.gif" />
          <offline-allowed />
          <association mime-type="application-x/gapanalysis-file" extensions="gapanalysis" />
          <shortcut online="false">
                <desktop />
                <menu submenu="Churchill China Applications" />
          </shortcut>  
   </information>  
   
   <information os="linux">      
            <title>Gap Analysis on Linux</title>
            <homepage href="docs/linuxhelp.html" />  
      </information>  
      <security>
            <all-permissions/>  
      </security>  
      <resources>    
            <j2se version="1.4.2+" java-vm-args="-esa -Xnoclassgc" />    
            <jar href="/jars/gapdataclient.jar"/>  
      </resources>  
      <application-desc main-class="com.churchillchina.gapanalysis.GapDataClient" />
</jnlp>
0
 
LVL 15

Accepted Solution

by:
aozarov earned 2000 total points
ID: 13979164
If you can get the file from your browser (using http://10.0.1.55/jnlp/gapdataclient.jnlp) and you also have access to
http://10.0.1.55/jars/gapdataclient.jar and gapdataclient.jar is signed jar (as it requires all-permissions) then you should be fine.
Also, you will need to have on your local machine java JVM >= 1.4.2
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13979339
OK ... going to http://10.0.1.55/jnlp/gapdataclient.jnlp using a Terminal Services session browser loads the splash image of the application, the image disappears, and the web page goes to a 404 File Not Found.

Background info:
We have a test Terminal Services server, which to try and solve this problem we went into as administrator and downloaded and launched the application on the server directly using WS we call this server 99 (this is the server used up until now).  We also have a live server 01 which we have not done anthing to, no JRE nothing.

Interestingly going to http://10.0.1.55/jars/gapdataclient.jar using a browser in a Terminal Services session logged on to server 99 launches the application!  

Going to http://10.0.1.55/jars/gapdataclient.jar using a browser in a Terminal Services session logged on to server 01 causes  the error "Could not find the main class.  The program will exit"

The Terminal services server (99), as described above has the JRE1.5 runtime installed on it.

Presumably just pointing a browser at the jar will bypass all the functions of WS or something?

0
 
LVL 15

Expert Comment

by:aozarov
ID: 13980554
>> Going to http://10.0.1.55/jars/gapdataclient.jar using a browser in a Terminal Services session logged on to server 01 causes  the error "Could not find the main class.  The program will exit"
what JDK do you have there. (probably require java SDK >= 1.4.2)

>> Interestingly going to http://10.0.1.55/jars/gapdataclient.jar using a browser in a Terminal Services session logged on to server 99 launches the application!  
Looks like an executable jar.

try doing:
telnet  10.0.1.55 80
GET /jnlp/gapdataclient.jnlp <enter>
<enter>

and see what you get back.
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 13984212
Good morning,

We have JDK1.5.0 installed on the TS server, and unfortunately our TS sessions do not have a command prompt available, or any kind of telnet client.

Cheers, Steve.
0
 
LVL 5

Author Comment

by:steve_bagnall
ID: 14016820
Not quite solved this, but think it is something to do with access rights - will post solution when I find it.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month18 days, 17 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question