glassfish

Does OpenJPA work well with Glassfish?

空扰寡人 提交于 2019-12-19 21:20:28
问题 Is anyone successfully using OpenJPA with Glassfish? I'm trying to use OpenJPA 2.1 with Glassfish 3.1 Open Source. I've followed the instructions to integrate the two here -> http://weblogs.java.net/blog/ss141213/archive/2006/07/using_openjpa_a.html I have a very simple EJB project in Eclipse Indigo with the following: com.rares.test.Person - @Entity com.rares.test.PersonManager - interface com.rares.test.PersonDao - @Stateless However, when I try to deploy I get a ClassNotFoundException on

Does OpenJPA work well with Glassfish?

南笙酒味 提交于 2019-12-19 21:19:23
问题 Is anyone successfully using OpenJPA with Glassfish? I'm trying to use OpenJPA 2.1 with Glassfish 3.1 Open Source. I've followed the instructions to integrate the two here -> http://weblogs.java.net/blog/ss141213/archive/2006/07/using_openjpa_a.html I have a very simple EJB project in Eclipse Indigo with the following: com.rares.test.Person - @Entity com.rares.test.PersonManager - interface com.rares.test.PersonDao - @Stateless However, when I try to deploy I get a ClassNotFoundException on

Does OpenJPA work well with Glassfish?

半城伤御伤魂 提交于 2019-12-19 21:19:11
问题 Is anyone successfully using OpenJPA with Glassfish? I'm trying to use OpenJPA 2.1 with Glassfish 3.1 Open Source. I've followed the instructions to integrate the two here -> http://weblogs.java.net/blog/ss141213/archive/2006/07/using_openjpa_a.html I have a very simple EJB project in Eclipse Indigo with the following: com.rares.test.Person - @Entity com.rares.test.PersonManager - interface com.rares.test.PersonDao - @Stateless However, when I try to deploy I get a ClassNotFoundException on

How to inject a Session Bean into a Message Driven Bean?

谁都会走 提交于 2019-12-19 19:55:55
问题 I'm reasonably new to Java EE, so this might be stupid.. bear with me pls :D I would like to inject a stateless session bean into a message-driven bean. Basically, the MDB gets a JMS message, then uses a session bean to perform the work. The session bean holds the business logic. Here's my Session Bean: @Stateless public class TestBean implements TestBeanRemote { public void doSomething() { // business logic goes here } } The matching interface: @Remote public interface TestBeanRemote {

WELD-001519 An InjectionTarget implementation is created for an abstract class 'xxx'. It will not be possible to produce instances of this type

只谈情不闲聊 提交于 2019-12-19 19:53:10
问题 I'm running an application in the following environment. GlassFish Server 4.0 Mojarra 2.2.4 PrimeFaces 4.0 final PrimeFaces Extension 1.1.0 OmniFaces 1.6.3 After adding OmniFaces, the following warnings appear on the server terminal. WARNING: WELD-001519 An InjectionTarget implementation is created for an abstract class org.omnifaces.eventlistener.DefaultServletContextListener. It will not be possible to produce instances of this type! WARNING: WELD-001519 An InjectionTarget implementation is

@Inject not working in AttributeConverter

我与影子孤独终老i 提交于 2019-12-19 19:48:25
问题 I have a simple AttributeConverter implementation in which I try to inject an object which have to provide the conversion logic, but @Inject seem not to work for this case. The converter class looks like this: @Converter(autoApply=false) public class String2ByteArrayConverter implements AttributeConverter<String, byte[]> { @Inject private Crypto crypto; @Override public byte[] convertToDatabaseColumn(String usrReadable) { return crypto.pg_encrypt(usrReadable); } @Override public String

Exception inside CORBA when accessing a remote bean

对着背影说爱祢 提交于 2019-12-19 10:12:45
问题 On Windows Server with Glassfish 4.0 and JDK 1.7_55 I getting NoClassDefFoundError and ClassNotFoundException then invoking remote bean methods. StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.ClassNotFoundException: com.sun.corba.ee.impl.orb.ORBSingleton at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ... at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:226) at dudge.ifaces.__SolutionRemote

Java EE 6 Programmatic security, glassfish and JDBC realm

北战南征 提交于 2019-12-19 09:23:38
问题 I'm exploring pure Java EE ways of doing programmatic security, especially login users, based on the jdbc realm from my glassfish server. So basically, in my login servlet I'm doing String username = request.getParameter("username"); String password = request.getParameter("password"); try { request.login(username, password); .... Without doing anything in my web.xml, the default realm (file) is used. I don't want that, I want to use my jdbcRealm named jdbcsecurerealm. So I'm adding the

Glassfish v4 & SSL - admin no longer works

北慕城南 提交于 2019-12-19 09:05:01
问题 I've gone through the steps to add an SSL certificate into glassfish v4. I've verified that it works via browsers and via my java swing client (i'm using apache's http client libraries on the client side) what doesn't work is the admin console! Since successful import of the SSL, I can no longer connect to the admin console, http://www.myhost.com:4848, I still get the login screen, the admin username/password combo that always worked has ceased to work. I've also noticed issues when trying to

Install log formatter in glassfish

拥有回忆 提交于 2019-12-19 08:20:08
问题 I don´t like the output of the com.sun.enterprise.server.logging.UniformLogFormatter which might be uniform but not very helpful. So in a first step I just replaced it with the java.util.logging.SimpleFormatter . This actually works fine but for a java.lang.ClassCastException exception: java.lang.ClassCastException: java.util.logging.SimpleFormatter cannot be cast to com.sun.enterprise.server.logging.UniformLogFormatter Being a perfectionist I want to get rid of this exception and I wonder if