Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

Setup Java application on Plesk



hello there,

i have a plesk hosting with JVM and Tomcat.i need help to setup my java application on my domain.my domain is www.domain.com,i want to create a sub domain and test it there for e.g. www.domain.com/jnlp.please help.

cheers
Zolf
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Just copy the jnlp file there together with all its dependencies
Avatar of Zolf

ASKER


i need to do this in plesk.how to do it in there
SOLUTION
Avatar of dristitech
dristitech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So is the question really 'How do i use Plesk'?
Avatar of Zolf

ASKER


yes i need to use plesk to setup my java application
Avatar of dristitech
dristitech

So I hope my URL must have fixed your issue. Still facing issuele me know
Avatar of Zolf

ASKER


dristitech:
i have created a subdomain called http://test.mellisoft.com/.when i go to this link i get a message.i dont know where do i need to place the jar files and how to link the application to the sql server 2005 db which i have in my hosting package
>>i dont know where do i need to place the jar files

Create a directory under the webroot for the subdomain and put them in there
Avatar of Zolf

ASKER


how do i link it with the db
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER


objects,
i am using jnlp file.do i need to enter the hosting db setting in the jnlp file

Avatar of Zolf

ASKER


>>that domain is pointing at IIS not tomcat.
are you sure.becasue i have tomcat when i bought the package
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>do i need to enter the hosting db setting in the jnlp file

Defininitely not. That would be a security problem. Of course, any web start app that connects directly to a db is going to be fundamentally insecure as the credentials will be client-side
Avatar of Zolf

ASKER


>>Defininitely not.
what is the way out
The best way is to get the web app to post to a servlet that handles persistence. That way, all db credentials are kept where they can be secured - server-side
> what is the way out

As I stated above. Enter your host in your jdbc connection string.
And in your jnlp change any host references to point at the right host

Avatar of Zolf

ASKER


in my jnlp file do i add like this.i have added all the jar files and the jnlp file in a folder called jnlp

<jnlp spec="1.0+" codebase="http://test.mellisoft.com/jnlp">
Avatar of Zolf

ASKER


in my hibernate file i have this line like this.in place of localhost what do i need to add
<property name="hibernate.connection.url">jdbc:jtds:sqlserver://localhost:1433;DatabaseName=livePooyesh</property>
Your jnlp codebase looks ok. Where is your Hibernate file?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER


Your jnlp codebase looks ok. Where is your Hibernate file?
i have put it in the jnlp folder
Avatar of Zolf

ASKER


please try this link www.test.mellisoft.com/jnlp

i get error
Avatar of Zolf

ASKER


this is the struture of my domain
2.gif
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER


i need to setup in plesk.but dont know where
Are you using FrontPage?
As I mentioned earlier you're serving it with IIS, not tomcat. IIS needs to be setup to handle jnlp

Avatar of Zolf

ASKER


Are you using FrontPage?
No.i am using eclipse to develop my application

As I mentioned earlier you're serving it with IIS, not tomcat. IIS needs to be setup to handle jnlp
so what do i need to do to tell IIS to handle jnlp
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You need to add the mime type

application/x-java-jnlp-file
Avatar of Zolf

ASKER


i contacted my hosting company and they said.
You can not serve JSP code through IIS directly the JSP code needs to go through Tomcat

so i need to setup tomcat from plesk
thats correct
what jsp are you talking about?

Avatar of Zolf

ASKER



i dont have JSP in my apllication.i am using swing,hibernate,sql server 2005 and jnlp in my application.
the hosting mentioned JSP,but i am not using this in my application
you don't need tomcat for that
your application runs on the client, not your server. All the server is doing is serving up the files for the client to run. IIS is all thats needed to do that

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial