glassfish

How to inject EJB with @WebServiceRef from Web-module

谁都会走 提交于 2019-12-31 04:11:07
问题 I have a JEE6 application, with an ejb and a web-module, running on a GlassFish 3.1.1 Now I wanted to access a WebService (JAX-WS) by injecting it (as a Session Bean) into several Managed Beans. @Stateless public class AnyService implements AnyServiceLocal { @WebServiceRef(wsdlLocation = "META-INF/wsdl/AnyService/Any.wsdl") private AnyService service; @Override public String findLastname(Integer key) { Any port = service.getAnyPort(); AnyPerson sp = port.findAnynumber(key); return sp

How to inject EJB with @WebServiceRef from Web-module

落花浮王杯 提交于 2019-12-31 04:10:01
问题 I have a JEE6 application, with an ejb and a web-module, running on a GlassFish 3.1.1 Now I wanted to access a WebService (JAX-WS) by injecting it (as a Session Bean) into several Managed Beans. @Stateless public class AnyService implements AnyServiceLocal { @WebServiceRef(wsdlLocation = "META-INF/wsdl/AnyService/Any.wsdl") private AnyService service; @Override public String findLastname(Integer key) { Any port = service.getAnyPort(); AnyPerson sp = port.findAnynumber(key); return sp

Glassfish doesn't create JDBC Resources

為{幸葍}努か 提交于 2019-12-31 03:55:05
问题 I'm trying to create JDBC Connection Pool and JDBC Resource using glassfish-resources.xml with code below. I've tried to do it with Glassfish 4.0, 4.1, 4.1.1 and Payara. I know there was a problem with 4.1.1, but it doesnt create to any of them . I've been trying to solve this problem for several hours, but without a success. PLZ HELP. <resources> <jdbc-resource enabled="true" jndi-name="jdbc/affablebean" object-type="user" pool-name="AffableBeanPool"> </jdbc-resource> <jdbc-connection-pool

Spring Boot on Glassfish

前提是你 提交于 2019-12-30 11:05:38
问题 there I'm getting this during Spring Boot deployment to GF3,4 although it is know problem see spring boot problem another there is nowhere solution to be found, except for the hack with try/catch in GF sources. The whole problem is about @Conditional... Spring-Boot annotations, which holds classes references that are not on CP and this GF check disables the usage of Spring-Boot. I don't want to abandon Spring-Boot, but switching off @EnableAutoconfiguration is not working, exclude auto-config

Hot swap with Netbeans 7.1 and Glassfish 3.1.1

…衆ロ難τιáo~ 提交于 2019-12-30 11:04:53
问题 I usually start the AS in debug mode so that I can use hot swap. But how can I get that if whenever I change a configuration or java file Netbeans sends it to Glassfish and automatically redeploys my application? Some details: 1 - Maven war application. 2 - Compile on Save: for both application and test execution. 3 - Java Debugger: Apply code changes after save. 回答1: To use the hot-swap capabilities of JPDA in a NetBeans/GlassFish environment, you need to turn off the 'Deploy on save'

Excessive warning messages from Jersey 2.x

情到浓时终转凉″ 提交于 2019-12-30 10:59:08
问题 I keep getting these warning messages from any POST operation with APPLICATION_FORM_URLENCODED form data: A servlet request to the URI (local request URI) contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. I've traced this down to org.glassfish

Where does p:fileUpload save my file?

江枫思渺然 提交于 2019-12-30 09:42:25
问题 I have a p:fileUpload function on my page and every time I upload a file I cannot seem to find it in the folder specified in my web.xml file. I have added the following jars to my library: primefaces-3.2.jar commons-io-2.3.jar commons-fileupload-1.2.2.jar Here is my web.xml file: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun

Where does p:fileUpload save my file?

落爺英雄遲暮 提交于 2019-12-30 09:42:06
问题 I have a p:fileUpload function on my page and every time I upload a file I cannot seem to find it in the folder specified in my web.xml file. I have added the following jars to my library: primefaces-3.2.jar commons-io-2.3.jar commons-fileupload-1.2.2.jar Here is my web.xml file: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun

GlassFish in Eclipse complains “GlassFish v3 requires a JDK 1.6 and not a JRE”

╄→гoц情女王★ 提交于 2019-12-30 05:50:14
问题 I am running: Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911 I have also installed Java EE 6 SDK Update 2 which includes: GlassFish Open Source Edition 3.1 Java EE 6 Code Samples Java EE 6 API Documentation Java EE 6 Tutorial Your First Cup: An Introduction to the Java EE Platform I have registered GlassFish with Eclipse but when I try to start the server, I get the following error: GlassFish v3 requires a JDK 1.6 and not a JRE. Please add

Arquillian Embedded Glassfish Certificate Expired

无人久伴 提交于 2019-12-30 03:32:25
问题 On Aug 14th, the gtecybertrust5ca certifcate used by Glassfish expired causing my Arquillian tests to print errors. This problem is similar to this one: Certificate has expired” in log by starting Glassfish 3.1.2 except, I am using the Embedded version of Glassfish via Maven, Arquillian and SureFire to run unit and integration tests. I have tried instructing Maven to use a local keystore, the one that comes with the JRE, in an effort to keep the expired cert from being used. I verified the