The Artima Developer Community
Sponsored Link

Java Answers Forum
deploying java application on linux server

5 replies on 1 page. Most recent reply: Apr 6, 2010 3:20 AM by Kondwani Mkandawire

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
dilip agarwal

Posts: 8
Nickname: dagarwal17
Registered: Mar, 2010

deploying java application on linux server Posted: Mar 22, 2010 3:50 PM
Reply to this message Reply
Advertisement
i am currently working on linux test server of the company. Now i have to deploy the core java application on the linux production server.can any body tell me the process of it.


Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: deploying java application on linux server Posted: Mar 29, 2010 1:42 AM
Reply to this message Reply
Which Linux Server? What type of Java Application. Deb distros will use apt-cache search to search for the appropriate Java Software and apt-get install to install (if you are online). RPM will use urpmi.

You will need:

1) A JRE installed
2) You might need an Application Server depending on what type of an Application you are running. (packaged as an Ear, War or Jar), else you might need a Web Server, else you might not need an Application Server - if packaged as Jar in the case of a Desktop App.
3) Configure all your Data Source stuff (you might need to install a DB - unless your DB is on a different box, then you will need to point to it from your config files).

You have not provided enough info. for a concise answer.

Rgrds,
Kondwani

dilip agarwal

Posts: 8
Nickname: dagarwal17
Registered: Mar, 2010

Re: deploying java application on linux server Posted: Mar 30, 2010 8:31 AM
Reply to this message Reply
thanks for your reply

Actually I am using Linux 3.5 and my application is implemented in my eclipse.Basically this is core java application but there is also use of EJB, but to handle EJB code there is a jar file provided to me which provide all the necessary file required for that ejb code in my application and i have to work only on the core java code.

Now I have configure the application on the production server.But now I want to create jar file of the application by MyEclipse.I do it by the export option in the my eclipse
but I have to include the jar files which are provided like sqljdbc.jar, and the jar file which is provided for EJB code in the application.So how can i defined it in the class-path : of manifest file by myeclipse

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: deploying java application on linux server Posted: Mar 31, 2010 3:48 AM
Reply to this message Reply
Which Application Server are you using? If you are using JBoss just dunk it in your server/default/lib folder and it
should pick it up. If you are using RAD, you can configure it in your Admin Console.

dilip agarwal

Posts: 8
Nickname: dagarwal17
Registered: Mar, 2010

Re: deploying java application on linux server Posted: Mar 31, 2010 5:47 AM
Reply to this message Reply
I am just setting the classpath of weblogic.jar file and want to set this class path in the manifest file of the project jar file.I am not using any application server specially.

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: deploying java application on linux server Posted: Apr 6, 2010 3:20 AM
Reply to this message Reply
Then it is a stand alone App. with a main method? You need to define your class path in your MANIFEST.MF and this should sit in META-INF

META-INF/MANIFEST.MF

Classpath: firstjar.jar; secondjar.jar; etc.jar
Main: MyMainClass

Or something to that effect.

Then you run it java -jar my-application.jar

However if you are using WebLogic it sounds like you are somehow using an App Server with your stand alone (Swing) app?

Flat View: This topic has 5 replies on 1 page
Topic: Web Services - Axis 1 Sending an Attachment Previous Topic   Next Topic Topic: Basic variable issue

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use