Zolf
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
Just copy the jnlp file there together with all its dependencies
ASKER
i need to do this in plesk.how to do it in there
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So is the question really 'How do i use Plesk'?
ASKER
yes i need to use plesk to setup my java application
So I hope my URL must have fixed your issue. Still facing issuele me know
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
Create a directory under the webroot for the subdomain and put them in there
ASKER
how do i link it with the db
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
objects,
i am using jnlp file.do i need to enter the hosting db setting in the jnlp file
ASKER
>>that domain is pointing at IIS not tomcat.
are you sure.becasue i have tomcat when i bought the package
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>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
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
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
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
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">
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
Your jnlp codebase looks ok. Where is your Hibernate file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Your jnlp codebase looks ok. Where is your Hibernate file?
i have put it in the jnlp folder
ASKER
ASKER
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to add the mime type
application/x-java-jnlp-fi le
application/x-java-jnlp-fi
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?
what jsp are you talking about?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.