glassfish-3

WARNING: Provider com.sun.xml.internal.bind.v2.ContextFactory not found

情到浓时终转凉″ 提交于 2020-01-13 10:33:33
问题 I have integrated within a JSF app a few webservices through Jersey . Everything works fine, even the OAuth identification is working. BUT! When starting my webserver, I ALWAYS get this error : INFO: Scanning for root resource and provider classes in the packages: com.mysite.webService INFO: Root resource classes found: class com.mysite.webService.Accounts INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.17 01/17/2013 03:31 PM' SEVERE: The provider

Glassfish v3 / JNDI entry cannot be found problems!

冷暖自知 提交于 2020-01-12 03:28:10
问题 I've been having problems trying to call an EJB's method from a Java Application Client. Here is the code. EJB Remote Interface package com.test; import javax.ejb.Remote; @Remote public interface HelloBeanRemote { public String sayHello(); } EJB package com.test; import javax.ejb.Stateless; @Stateless (name="HelloBeanExample" , mappedName="ejb/HelloBean") public class HelloBean implements HelloBeanRemote { @Override public String sayHello(){ return "hola"; } } Main class (another project)

Glassfish v3 / JNDI entry cannot be found problems!

為{幸葍}努か 提交于 2020-01-12 03:28:06
问题 I've been having problems trying to call an EJB's method from a Java Application Client. Here is the code. EJB Remote Interface package com.test; import javax.ejb.Remote; @Remote public interface HelloBeanRemote { public String sayHello(); } EJB package com.test; import javax.ejb.Stateless; @Stateless (name="HelloBeanExample" , mappedName="ejb/HelloBean") public class HelloBean implements HelloBeanRemote { @Override public String sayHello(){ return "hola"; } } Main class (another project)

JAX-RS failed to inject @EJB or @Inject

偶尔善良 提交于 2020-01-11 09:20:54
问题 I'm trying to test a minimal JAX-RS + EJB/CDI injection mechanism and currently hitting a road-block due to GlassFish unable to inject for whatever reason. (Using @Inject will throw NPE because GlassFish cannot inject the POJO). My beans.xml contains only <beans /> Here's my web.xml <?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

JPA 2.0 (logging and tracing through) with Glassfish 3.0.1 and NetBeans 6.9.1:

我的未来我决定 提交于 2020-01-11 04:46:09
问题 I am using JPA 2.0 ( EclipseLink provider) with Glassfish v3.0.1 and NetBeans 6.9.1 and am NOT able to see the queries and other logging information from JPA 2.0. Essentially I want to be able to see all the SQL statements which are being generated by JPA and other related debugging information... Has anyone successfully been able to configure the logging to provide such feedback? I've tried several things to no avail... Any help would be greatly appreciated. Thanks much. 回答1: What eventually

Can't get SessionContext on EJB

邮差的信 提交于 2020-01-07 04:22:24
问题 I can't get a SessionContext object on an EJB. I've tried all the options suggested on 4 Ways to Get EJBContext in EJB 3 and none of them worked. For example, the following code in my project... @Stateful public class SecurityService { @Resource private SessionContext context; @PostConstruct public void init() { } } ... generates the following exception during deploy: [#|2012-02-28T14:35:02.805-0300|SEVERE|glassfish3.1.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=18;

How to add myFaces Tomahawk to my JSF 2.0 (.jsp) running in glassfish 3?

ぐ巨炮叔叔 提交于 2020-01-06 15:05:01
问题 Hi I been having some problems with my web.xml file I've been getting: Exception while loading the app org.glassfish.deployment.common.DeploymentException: LLog; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:169) at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125) at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224) at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338) at com.sun.enterprise.v3.server

Using GlassFish v3, EJB and SOAPUI

不羁岁月 提交于 2020-01-05 12:14:00
问题 I would like to create a web service. I am using Glassfish v3, an Eclipse Dynamic Web Project, and SOAPUI to test. I have the following code in eclipse: Class MyLogin package packageTest; import java.io.IOException; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyLogin { @WebMethod public AuthInfo login(@WebParam(name = "email") String email,@WebParam(name = "password")String password) throws IOException, CustomException { if(email == null || email.isEmpty(

Using GlassFish v3, EJB and SOAPUI

 ̄綄美尐妖づ 提交于 2020-01-05 12:13:32
问题 I would like to create a web service. I am using Glassfish v3, an Eclipse Dynamic Web Project, and SOAPUI to test. I have the following code in eclipse: Class MyLogin package packageTest; import java.io.IOException; import javax.jws.WebMethod; import javax.jws.WebService; @WebService public class MyLogin { @WebMethod public AuthInfo login(@WebParam(name = "email") String email,@WebParam(name = "password")String password) throws IOException, CustomException { if(email == null || email.isEmpty(

error when deploying jersey/helloworld-osgi-webapp on glassfish 3.1.2.2

偶尔善良 提交于 2020-01-05 07:49:09
问题 When trying to deploy the sample jersey war bundle code (helloworld-osgi-webapp on git: https://github.com/jersey/jersey-1.x/tree/master/jersey/samples/helloworld-osgi-webapp) on Glassfish 3.1.2.2, I am getting the following osgi error: remote failure: Error occurred during deployment: Exception while loading the app: org.osgi.framework.BundleException: Unresolved constraint in bundle war-bundle [344]: Unable to resolve 344.0: missing requirement [344.0] osgi.wiring.package; (&(osgi.wiring