How can i change deployed application to webserver from application server? - java

I am having a web application which is deployed in oracle weblogic application server. After getting analysed, i found that there is no need for application server(atleast for this application), i am in need to deploy this application into the oracle weblogic web server.
can anyone help on this, how can i change deployed application to webserver from application server ?
Or in a different words, i can say how can i migrate my application deployment from oracle weblogic application server to oracle weblogic web server ?
I am using weblogic 10. and Maven to build the application
About the application, it is using Apache axis, webservices, jsf, and few java classes.
Thanks in advance!

I've recently migrated one application from WAS to tomcat
The approach i followd is.
Identify and remove all the WL specific dependencies / jars (that you may not need of)
Change the build script to generate .war instead of .ear
deploy the generated .war to any servlet container/ webserver
with your specs (axis,ws,jsf) you dont need a .ear but .war will do.
if you are using ant modify your build script, i'd suggest go for maven for better dependency management

building of top of the answer by #TechExchange
even for Jboss, you still need to analyze the application to remove all WL specifics.
Ex: Descriptors for EJB's MDB's and so on.
with JBOSS you can still use the ear format.
A quesiton, you had mentioned that because you found that the application doesn't need a app server you decided to migrate it to web server, now with JMS in the picture do you still need to move?

Related

How to run Grails app WAR file on Apache web server?

I want to know if it is possible to run a Grails app (basically a Java WAR file) on Apache web server. Currently I am using Tomcat but I need some Apache specific configurations.
Thanks in advance.
You can not run a Grails application (WAR) on an Apache HTTP webserver. A Java WAR requires a JEE application container such as Tomcat or Jetty to run.
Depending on your needs you could put an Apache HTTP webserver in front of a Tomcat server which runs your Grails application. This way you can use the features of the Apache HTTP webserver as well as what is offered by Tomcat. However, this is beyond the scope of the question you asked.

How can I patch/copy java classes to local WebSphere server?

I am using WebSphere 8.5 for an Java/J2EE application development. Every time when I update java classes, I need to go through the process of building the EAR project, then updating the EAR filing through WebSphere console to deploy the changes. Is there an simple and quick process to patch/copy the java classes to WebSphere?
I have done it when I was developing application in Tomcat, I will just set build automatically in my IDE(eclipse) and it does the work.
You can deploy individual class files if you want to. Either officially, through the web console, or unofficially on the filesystem.
See what's the difference between folders 'installedApps' and 'applications' in websphere application server?
But I don't think this is what you're really seeking.
I don't know of any way to automatically update classes from an IDE to a remote WebSphere instance. I've only done so to a local WebSphere instance I run from within Rational Application Developer (IBM's branded Eclipse).

How To deploy Dropwizard Web Services in Tomcat Server

I am facing a problem to deploy drop wizard services in tomcat server,
I have created my web services in drop wizard framework which use jetty server in default, but here I want to deploy my web services in tomcat server so is there any way that how to deploy Drop wizard created services in tomcat environment.
Because drpo wizard use .jar file instead of .war file so is there any way to convert .jar to .war for deploying it in another server.
Please give your valuable answer I am facing these problem.
As the below link points out, its not overly recommended as a pattern but if you use:
https://github.com/twilio/wiztowar
You can convert your jar to a war for deployment to an application server. Comes with the fairly big warning attached that its not overly tested.
It might be the time to look at why you are using drop wizard if you plan to deploy to a tomcat app server. It goes against the core principals of the framework to a degree.
Spring boot is another option which can embed jetty or tomcat or produce a standard war.

how to deploy struts2 eclipse web application on remote server

I want to check deploying procedure of my struts2 web application developed using eclipse juno on local tomcat server. I want to deploy it to a remote host like 000webhost. Can you provide me any information how to do that?
well, I run my application by typing
http://localhost:8080/Struts2starter/
on browser I want to run it by typing
http://myapp.com/Struts2starter
like something on browser. I wanted to know how to do it.
I don't believe you can deploy a Java application in 000webhost. For example, you can deploy on Google App Engine. Here is an example of how to do that: http://www.mkyong.com/google-app-engine/google-app-engine-struts-2-example/
It depends on server in question. Most servers provide some kind of remote deployment using manager applications / rmi connectors / whaever else exitic means , and eclipse can work with most of them. But of course it needs to be configured on both sides in order to work. Be more specific about your server config, and you will surely get proper answer

How to publish the web service which is created in Java using Eclipse?

I have created one web service in Java using Eclipse, now I need to publish that web service. How to achieve this?
you can deploy your ws that is developed in java on tomcat server and to do that you can follow instuctions on How to manually deploy a web service on Tomcat 6?
now TomCat7 is availabale and you must check this PDF which helps you to deploy Webservices on Tomcat from eclipse. It is self explained Pictorial representation and is exactly what you want.
Export the war and deploy it to an application server.

Categories

Resources