jws can not work!!!!

Hi ,

Every body ,,, I have a serious problem .

I have created a swing application , and the database is db2 .

I have connected db2 with jdbc type 4 driver, coz i want to run

my application on a remote pc.When i run my application from a

remote pc it's ok , but I want to run it with the help of JWS and JNLP.

That's why I have created a jar file where all my .class file are there,

after that I created a .jnlp file where i include the jar .

I am useing Tomcat web server .

Now the problem is when I calling that .jnlp file from a remote pc

it downloads all the jar files (including db2jcc.jar) but the programe

is not started !!!!!!

Please any body help me out from this problem .

Steps.................

1.--> Creating a jar file where all my .class files are there

including the main class.

2.--> Creating the Test.jnlp file..........

<?xml version="1.0" encoding="UTF-8"?>

<jnlp codebase="code base" href="Test.jnlp">

<information>

<title>PLANNING</title>

<vendor>Test</vendor>

<description>booking</description>

<description kind="short"></description>

<offline-allowed/>

</information>

<resources>

<j2se version="1.3+"/>

<jar href="Test.jar"/>

<jar href="db2jcc.jar"/>

<jar href="db2java.zip"/>

</resources>

<application-desc main-class="testFrame"/>

</jnlp>

3.-->Cteating a html file

<HTML>

<HEAD>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252">

<TITLE>HTML Test Page</TITLE>

</HEAD>

<BODY>

<a href="./Test.jnlp"> click here</a>.

</BODY>

</HTML>

4.>Calling the html file from client pc

Downloading all the jars

but my application could not start ....

please help me ,,,

Thanks

Sb ......

[2164 byte] By [sb_online007a] at [2007-11-26 18:15:29]
# 1
If you have more than one .jar file you should include the attribute main="true" in the <jar/> element wich contains your main class.eg:<jar href="Test.jar" main="true"/>
Schippea at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 2
oK,,,but gives java.net.ConnectException: Connection refused: connecterror !!!!!!!
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 3
It downloads all the jars but my application can not run !!!!!!!
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 4
As far as I understand your app requires a network connection. Therefor it needs the permission. Try <security><all-permissions/></security>I assume your jar files are signed.Bye Schippe
Schippea at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 5
yes my pcs are connected through network !!!!!!!!!my web serverand data base server and client all are connectedthrough network
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 6
So what ...?Is it working with all-permissions granted as described above?
Schippea at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 7

I looked through that mess first posted, and

noticed this..

<jar href="db2java.zip"/>

I seem to vaguely recall there was an issue

with either loading or verifying ZIP files, in

that it was determined the check would only

be done for jar files.

I recommend you change it to a jar.

OTOH, two corrections..

1) There are a number of cases in which

the main='true' attribute is not required.

2) A JWS application should be able to

'phone home' back to the server that

launched it, from within a sandboxed

application. (Though there would be

a problem if you are launching from a

'test server' but trying to connect to the

'production server' for the tests.

Message was edited by:

AndrewThompson64

AndrewThompson64a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 8
hiiiiiiiiiiii,could you please tell me elaborately , what should i do ?coz am quiet confuse .Thanks .
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 9
Yes all permissions are granted !!!!!!!!
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 10
Should I use sun server ?for that ?
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 11
What is the problem ?coz all files are download in the client pc ,,,but my application is not running !!!!!Please help.Thanks
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 12
I suggest you post the error message you are getting along with the current jnlp file.Preferably with a little formatting to enhance the readability.Bye Schippe
Schippea at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 13
see ,,,there is no error msg ,,,it's working fine , I mn its download into the client machine ,,,but the programming is not running !!!!!Thanks !!!!
sb_online007a at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...
# 14

OK, lets get a few things clear to give us the possibility to help you.

The download is one thing. Thats working so you dont get an error at this stage.

Fine.

The second thing is the launch of your application through webstart. If this is where the error occures webstart will give an error message. If you click on "Details" there should be a whole lot of information. If there is no such message webstart seems to be able to launch your app.

The third thing is your application itself. If there is an error this might as well be caused by the webstart environment the app is running in but it磗 not really a webstart error. In this case you should have an output in the java console to describe the problems.

I dont think anybody here will be able to help you without some more information than "my application is not running".

Bye Schippe

Schippea at 2007-7-9 5:49:00 > top of Java-index,Desktop,Deploying...