deploying a web service war file to websphere - eclipse

I am trying to deploy a web service war file to websphere.
I have tested the web service in Eclipse using Tomcat and it worked. However, once I deploy the war file to Websphere, the service (as outputted in tomcat) does not display. In deploying to websphere, i checked the DEPLOY WEB SERVICES under the SELECT INSTALLATION OPTIONS.
When I created the war file from Eclipse, I right clicked the application and clicked export file, selected war file and there it went.
Was there something I missed in creating the war file? Or, in the deployment?
thanks.

Maybe too late?...See this case for a reasonable explanation.

Related

how to DEPLOY a RAD generated WEBSERIVCE project EAR on WEBSPHERE

I have generated a webservice project using RAD/Eclipse and I want to generate a ear file of it and deploy it to WebShere.
After deploying the ear file in WebShere, the application server does not recognize it as a web service and the WSDL is not coming up.
Looks like the web service is not recognized...! Try verifying your ear
Uninstall the previously deployed and clean up your temp folders and do the re-install

How can I deploy a Java-Spring Maven Application on Tomcat v8.0 (Restful WebService)

I am unable to deploy the Spring-Maven Restful WebService on Tomcat v8.0. My OS is windows 7. When I deploy it through Tomcat App Manager then I get a screen with the link "Click To Enter", although I have not created any links like that. Please see the image below.
Thanks,
This is exactly how it is supposed to work. When you create a new "Simple Spring Web Maven" project in Eclipse (I guess this is what you did), the wizard creates a working Maven project that can be immediately built with Maven. The created WAR can be, in turn, deployed to Tomcat (i.e. copy the WAR file to the webapp folder of Tomcat) or whatever container you are using.
As I said in the comment, it looks like you actually managed to deploy the WAR and what you are seeing is the default home page corresponding to the "index.jsp" file, that is created by the wizard.

Can we deploy the war file of ADF fusion application into web logic server?

I have created a ADF fusion application deployed in Jdev. When I deploy it as war file in Integrated weblogic server - works fine. When I deployed that as war in standalone weblogic server - it gives me error 500.
In the console (startweblogic.cmd) "java.lang.NoClassDefFoundError: oracle/adf/model/RegionBinding"
So I found on internet that deploying it as EAR the whole application would solve. Yes. It indeed was solved. My application runs fine in standalone weblogic.
Can we not deploy it as war in standalone weblogic?
The war file is working fine in integrated but not in stand alone.
Why?
P.S.: I installed ADF runtime, prepared the deployment profile to deploy as a web application.
I think you should make a quick research on the difference between these two types of archives EAR and WAR, then it should be clear to you.
Anyways, the fact is that you are trying to deploy a Fusion application, which includes in itself two different projects: the ViewController project and the Model one. The reason why on the standalone version it can only work if you deploy as an EAR is that this type of archive can contain several WARs, JARs (and other types of archives). While a WAR can contain only one of the projects (you can create a WAR for each, the Model and the ViewController project) and related jars. But they would be separate, so they would not have access to each-others files. I bet you've tried to deploy the ViewController.war only. This is the reason why you should deploy an .ear on the standalone version.
Instead, the integrated version, if an EAR file is deployed at the application level, and it has dependencies on a JAR file in the data model project and dependencies on a WAR file in the view-controller project. (It means, you are not deploying just the war from JDeveloper, it internally creates an EAR).
I hope this link would be useful.

A war file created for weblogic server. Is that same war file work in WebSphere?

A war file created from weblogic server. Is that same war file work in websphere Server
Maybe. Depends on if any weblogic-specific features were used, or if you stuck to the servlet spec.

How to restart only one war in ear in WebLogic?

I have two war files in my ear.
In JBoss I can restart one web application via jmx-console.
Not whole ear, but only one web application.
Administrative Console from WebLogic allows to restart whole ear only.
I cannot restart only one war in ear.
Why?
Within the packaged EAR, it is not possible to only deploy individual WAR.
But if you follow the directory structure required for Weblogic "Split Development Directory", then you can build your individual webapp within the Enterprise App, and get only that webapp reloaded. I'm not sure how this works from admin console.
This uses OOTB ant tasks available with Weblogic.
Essentially this becomes an exploded directory instead of packaged EAR.