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
zolfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
Just copy the jnlp file there together with all its dependencies
0
zolfAuthor Commented:

i need to do this in plesk.how to do it in there
0
dristitechCommented:
Hi,

Check this link http://www.mobilefish.com/tutorials/plesk/plesk.html you will get the what you are looking for
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

CEHJCommented:
So is the question really 'How do i use Plesk'?
0
zolfAuthor Commented:

yes i need to use plesk to setup my java application
0
dristitechCommented:
So I hope my URL must have fixed your issue. Still facing issuele me know
0
zolfAuthor Commented:

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
0
CEHJCommented:
>>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
0
zolfAuthor Commented:

how do i link it with the db
0
Mick BarryJava DeveloperCommented:
that domain is pointing at IIS not tomcat.
To upload your files you need to ftp as the user you setup for it, and upload them into the httpdocs directory.
The connection string used by your server needs to be changed to connect to your server. You probably just need to change the hostname.

0
zolfAuthor Commented:

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

0
zolfAuthor Commented:

>>that domain is pointing at IIS not tomcat.
are you sure.becasue i have tomcat when i bought the package
0
Mick BarryJava DeveloperCommented:
> do i need to enter the hosting db setting in the jnlp file

only if you app gets the details from there
you will need to change the jnlp to correctly reference your host though.
its the db connection string used by your app that you will need to change to point at the db on your server.
0
CEHJCommented:
>>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
0
zolfAuthor Commented:

>>Defininitely not.
what is the way out
0
CEHJCommented:
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
0
Mick BarryJava DeveloperCommented:
> 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

0
zolfAuthor Commented:

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">
0
zolfAuthor Commented:

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>
0
CEHJCommented:
Your jnlp codebase looks ok. Where is your Hibernate file?
0
Mick BarryJava DeveloperCommented:
> 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

yes thats correct

> in my hibernate file i have this line like this.in place of localhost what do i need to add

jdbc:jtds:sqlserver://test.mellisoft.com:1433;DatabaseName=livePooyesh

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zolfAuthor Commented:

Your jnlp codebase looks ok. Where is your Hibernate file?
i have put it in the jnlp folder
0
zolfAuthor Commented:

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

i get error
0
zolfAuthor Commented:

this is the struture of my domain
2.gif
0
CEHJCommented:
http://test.mellisoft.com/jnlp/erpJNLP.jnlp

is not available. Make sure your hosting co has configured jnlp as an available mimetype
0
zolfAuthor Commented:

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

0
zolfAuthor Commented:

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
0
CEHJCommented:
You need to add the mime type

application/x-java-jnlp-file
0
zolfAuthor Commented:

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
0
Mick BarryJava DeveloperCommented:
thats correct
what jsp are you talking about?

0
zolfAuthor Commented:


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
0
Mick BarryJava DeveloperCommented:
you don't need tomcat for that
0
Mick BarryJava DeveloperCommented:
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

0
CEHJCommented:
>>i contacted my hosting company and they said....

The question you should have asked them is 'how do i set up a mime type for jnlp (Java Web Start) on my system?'
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.