Web Service with glassfish and tomcat - java

I have generated a RestFul web service using NetBeans 7.2.1, Tomcat 6+ and MySQL, but When I test this Web Service I get the following exception:
java.lang.RuntimeException: javax.naming.NameNotFoundException: Name persistence-factory is not bound in this Context
This web service when implemented in the same way using glassfish.
Need some guidance, totally lost and have been searching for some fix for 3 days now' but un able to solve it' some guidance will be gud'

Related

Why do we need an application container when deploying a Spring Boot app to Openshift

It maybe a trivial question for experienced web application developers, but for me as a new developer, I cannot understand that why do we need an application container(like Tomcat or Wildfly) when deploying a Spring Boot web application to Openshift, Heroku, or Google App Engine, etc? My understanding is that Spring Boot already contains an embedded container (Tomcat). Can someone explain this to me? Thanks
SpringBoot is Java API that relies on an embedded Java Servlet engine to support the API calls. These dependencies are typically pulled in by Maven as dependencies. So for the end user, it just looks like a FAR JAR with a bunch dependencies included (where one of those dependencies is Embed Tomcat, Jetty or Undertow for example)
More information can be found on the main SpringBoot project page.

Not able to successfully run HelloWorld app on HANA Cloud from Eclipse

Java version 8.x
Apache Tomcat version 8.x
J2EE 2.5 (Deployment Descriptor) used in WebApplication
HANA Cloud trial configured and validated correctly in eclipse.
WebApplication to print 'Hello World!' created exactly same as mentioned in the documentation of hana help, where url pattern for servlet is changed to - '/', i have made it exactly the same.
Application url is getting generated in SAP HANA Cockpit after I start the application on server.
Error while I try to run servlet on HANA cloud server from eclipse:
while trying to invoke the method
com.sap.core.tools.eclipse.server.common.runtime.ISapSdkRuntime.getRuntimeSdkId()
of a null object loaded from local variable 'sdkRuntimeDelegate'
When I click on the Application URL nothing is being shown in the page.
If any solution you can provide to correct this or any improvements that you feel.
Thanks in advance!!
It is solved now, there was a problem of J2EE runtime, I had to setup JAVA Web Tomcat 7 runtime and it worked

linkage error upon starting webapplication on websphere 8.5.5

While I am trying to start the my web application on websphere 8.5.5 it failed with linkage error.
But it will work 100% correctly when I restart the websphere from services (if I do stopserver then startserver it will not work)
any idea guys why stop and start does not work as restart the websphere from services ?

Spring Web Service SOAP is not working after integration with struts 2.3?

Till now in my project the spring 3.0.1 and struts 2.0 was getting integrated and SOAP web service was working perfectly fine. But for some security reason I have migrated to struts 2.3 and for SOAP, I am using jars like spring-ws-all-1.5.9 and wsld4j-1.6.2.jar.
Still when I am calling my web service method I am getting exception like this:
HTTP Status 404 - There is no Action mapped for namespace [/] and action name [someServices] associated with context path [/someproject].
I tried to search the solution for this problem but I didn't get any. I finally migrated my jar to spring-ws-2.0.2.RELEASE-all.jar . Still I am getting the same problem. Please help me if anyone have any idea.

Difference between implementing Web Service using Stateless Session Bean and without it

I am trying to learn how to use Web Services. I have been reading this link, but I don't understand the difference between Implement and Not Implement Web Service as a Stateless Session Bean
The #Stateless annotation turns the POJO into an EJB and it gives all the EJB features.
The big difference is that EJBs runs in a full featured Java EE 5+ Web Application Server like GlassFish or JBoss, making it unusable in a Servlet Container like Tomcat or Jetty.
More info:
Difference between an application server and a servlet container?
Web Server Vs Servlet Container Vs Application Server

Categories

Resources