glassfish

EJB dependency injection of remote service fails on Glassfish

£可爱£侵袭症+ 提交于 2019-12-14 01:27:12
问题 I am unable to get dependency injection to work for my remote service and I cannot figure out why. I want an instance of RemoteService so I wrote. @EJB(name="RemoteService") private RemoteService service; And the Bean itself is defined with mappedName="RemoteService: @Stateless(mappedName = "RemoteService") public class RemoteServiceBean implements RemoteService When I try to run this code I get an InjectionException: EJB5070: Exception creating stateless session bean : [{0}] com.sun

Glassfih + WSO2 ESB 415 Unsupported media type

醉酒当歌 提交于 2019-12-13 21:56:23
问题 I am creating "Pass Through Proxy" in WSO2ESB using JAX-WS hosted on Glassfish. The problem is that the proxy does not work and it happens with EVERY PROXY I create in the ESB that are pointing to every Java Web Services on Glassfish : the console gives this error [1]. The thing is that Proxies to .Net Services instead, works fine. 1) I have tried with the ESB tryit tool to consume the service and I have the following response: <TryitProxyError h:status="SOAP envelope error" xmlns:h="http:/

Broken pipe exception on rest web service in spring web application

与世无争的帅哥 提交于 2019-12-13 21:40:17
问题 I am deploying a spring web application on glassfish server on raspberry(Raspbian os)...I wrote a web service to get data from some sensors...this web service is using shared library(.so) to get temperature.(Beacause main library is c++ library ) But I get pipe broken exception....I searched and understand client close connection before server send response...But how can I solve this problem?? @Controller @RequestMapping(value = "/getdata", method = RequestMethod.POST) public class

Incompatible magic value 1010792557 when trying to run applet embedded in Facelets

青春壹個敷衍的年華 提交于 2019-12-13 20:06:06
问题 I get this error when I access the Facelets page where the applet is embedded, through Glassfish server. Though when I open it simply from my computer it works fine, so the applet is ok. Is it possible to run applets on Glassfish (3.1, JSF 2.0)? Here's how I try: <applet code="test.TestApplet" archive="TestApplet.jar"/> 回答1: That's a typical message of a ClassFormatError. The magic value of a valid Java class is 0xCAFEBABE , which is the first 4 bytes. But you're getting 0x3C3F786D which

Exception in using appclient jar in EJB 3 :javax.ejb.EJBException: java.rmi.MarshalException:

混江龙づ霸主 提交于 2019-12-13 19:43:14
问题 I am trying to learn ejb 3 and facing an issue in the below mentioned scenario which I am not able to figure out. I am having one Entity (Book) to store book related data. I have created Stateless Bean and Remote interfaces and deployed the jar in glassfish 4. The basic application connects to a main method where I need to get the details of the book using appclient. Here I am getting an error "javax.ejb.EJBException: java.rmi.MarshalException:" Please look into the below snippets for more

JavaEE - EJB over SSL works only if client and server are at the same host

你。 提交于 2019-12-13 19:02:14
问题 Please help me. I can do nothing with it. I have gf 4.0.1 and swing client. I want to get EJB over SSL. I've set all certificates. However, I can get it work only when client and server are at the same host. What I see in tcpdump when they are at the same host: ........ 10.0.17.2.48524 > 10.0.17.2.3820: Flags [P.], cksum 0x378f (incorrect -> 0xf2b6), seq 399:756, ack 1085, win 273, options [nop,nop,TS val 347297976 ecr 347297966], length 357 13:01:26.334898 IP (tos 0x0, ttl 64, id 51559,

Glassfish crash(stop) with no debugging information

做~自己de王妃 提交于 2019-12-13 18:40:26
问题 I am runnning a glassfish 3.0.1, the server start up normally, but when i execute some webservice method the server crash(shutdown) without log or debug information. The files server.log no have exception and jvm.log eihter. have i other log for debug error in glassfish? 回答1: I solve the problem increasing the -Xss memory in the virtual machine options. -Xss256k to -Xss512k 来源: https://stackoverflow.com/questions/24895424/glassfish-crashstop-with-no-debugging-information

Hibernate ORM Provider, Netbeans 7, Glassfish (video)

随声附和 提交于 2019-12-13 18:37:02
问题 I have big problem with basic of the Hibernate in all my projects. I have mysql server and there are a hiber database (localhost). There are two tables: messages and user . I have Glassfish 3.1 . I started new project in Netbeans 7 with Hibernate Framework . Then, I created entities and persistence.xml, PersistenceUnit. After that, I created Servlet, ie. Demo (mapped as /Demo). protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException,

Unable to deploy my project on tomcat where i have deployed previously on glassfish

会有一股神秘感。 提交于 2019-12-13 18:32:19
问题 I have a project developed on netbeans where i deployed it on glassfish.. But now as i am trying to deploy it on tomcat7. I am facing following exception INFO: Deploying web application archive C:\OpsConsole\Anil Babu\apache-tomcat-7. 0.40\webapps\OpsBackEnd.war Nov 14, 2013 1:36:33 PM org.apache.tomcat.util.digester.Digester endElement SEVERE: End event threw exception java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter at org.apache.tomcat.util.IntrospectionUtils

eclipse howto start a application client on java ee glassfish appl srv

白昼怎懂夜的黑 提交于 2019-12-13 17:47:19
问题 i have installed the glassfish eclipse tools bundle... i can start a project like dynamic web & a ear project and deploy them on the glassfish... it works perfect & under the localhost url i will get an hello world but how i do this if i want to make an application client. please help... at the moment i simply created an "app client project in eclipse" & added it to the same ear, but i have no idea how to start this... help - any tutorial how to start?!! 回答1: Not the only only answer to this