当我尝试这个时,我还是个JPA & hibernate新手。我在persistence.xml中添加了以下提供程序,
<provider>org.hibernate.ejb.HibernatePersistence</provider>
我得到了这个错误..
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logg
我已经下载了Liferay捆绑的JBossVersion5.10。嘎..。关于救生筏portals.When,我开始在这个JBOSS中部署EAR,它抛出以下异常
致因: org.jboss.ejb3.interceptor.InterceptorInfoRepository.initialise(InterceptorInfoRepository.java:107) at org.jboss.ejb3.Ejb3HandlerFactory$DDFactory.(Ejb3HandlerFactory.java:48) at org.jboss.ejb3.Ejb3HandlerFactory.
我试图使用JBoss7.1.1中的JNDI从远程客户端调用,但我得到了例外:
线程"main“中的异常: org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:54) at org.jboss.as.ejb3.security.SecurityContextInterceptor$1.run(SecurityContextInterceptor.java:45) at java.security.AccessController.doPrivileged(
我一直在尝试创建一个独立的java应用程序,它可以连接到JBoss7.1.1中的EJB。我正在学习本教程:
问题是,我只是无法连接到EJB。我总是得到一个IllegalStateException,如下所示
Exception in thread "main" java.lang.IllegalStateException: No EJB receiver available for handling [appName:testeWeb-web-0.0.1-SNAPSHOT,modulename:testeWeb-ejb-0.0.1-SNAPSHOT,distinctname:
我在EJB中创建了一个JMS消费者,但这不起作用。
我在应用服务器glassfish中创建了一个队列,如下所示:
下面是我的代码:
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package EJBData;
import Service.ResponceMes
我正在尝试登录我的应用程序,我在我的glassfish控制台中得到以下错误。
javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.AbstractMethodError at com.sun.ejb.containers.EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:665)
at com.sun.ejb.containers.EJBConta
大家好,我是EJB的新手,但是我试图找到这个问题的解决方案已经有很长一段时间了-我有以下设置:
使用@Remote注释的接口:
@Remote
public interface IGeneralManagementBean {
// some other methods
/**
* Helper method to clear the cache of the IPriceManagementBean
*/
public void clearPriceCache();
}
具体类:
@Stateless
public class Gen
我有一个运行中的应用程序,它构建在Java1.6和Weblogic 10.3.6上。现在我要迁移到Java1.8和WebLogic12cR2 (12.2.1.3)。我有一个EAR文件,它构建在ANT上,并部署在Weblogic中。
我已经在我的系统中安装了JDK1.8和WebLogic12cR2。我已经编译了我的代码库,并成功地在ANT上构建了它。生成的.EAR文件没有任何错误。现在,我正在尝试将其部署到最新的Weblogic中,并得到以下错误:
weblogic.application.ModuleException:
Unable to bind Business Interface t
我在我的web.xml中添加了以下内容:
<ejb-ref>
<ejb-ref-name>ejb/userManagerBean</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>gha.ywk.name.entry.ejb.usermanager.UserManagerHome</home>
<remote>what should go here??</remot
我尝试在 6中使用JavaEE异步方法,创建了以下类。但是,输出日志的结果是同步。这不对。
无状态类
@javax.ejb.Stateless
public class MailManager implements Serializable{
@Asynchronous
public void send(List<String> toList, Mail mail, final SystemSetting systemSetting) throws MailException, UnsupportedEncodingException{
我在尝试使用EJB和JSF web模块部署Java Enterprise web应用程序时遇到了问题。应用程序成功构建,但是当它被部署到Glassfish 4服务器上时,我得到了这个异常
javax.ejb.EJBException
at com.sun.ejb.containers.EJBContainerTransactionManager.processSystemException(EJBContainerTransactionManager.java:748)
at com.sun.ejb.containers.EJBContainerTransactionManager.compl
我正在使用EJB1.2开发一个应用程序。以前运行良好,但从过去的几天开始,我得到了以下异常
Exception in ejbLoad:: weblogic.ejb20.cache.CacheFullException: size=85783, target=5000, incr=1 at weblogic.ejb20.cache.EntityCache$SizeTracker.shrinkNext(JI)Lweblogic.ejb20.cache.EntityCache$MRUElement;(EntityCache.java:438) at weblogic.ejb20.cache.Enti
也许有人可以澄清一下下面的代码有什么问题。当我在嵌入式类中创建一对一关联(它是复合主键)时,如下面的代码所示:
@Entity
public class Test {
@EmbeddedId
private TestId id;
@Embeddable
public static class TestId implements Serializable {
private static final long serialVersionUID = 1950072763330622759L;
@OneToOne(optional
对于rest服务,将触发长时间运行的进程。并行运行它是没有意义的,主服务被定义为带有默认并发管理策略的Singleton。在rest中,响应被立即发送,只是为了通知它已被触发。要将其存档,在主服务中定义为异步的方法:
@Singleton
public class MainService {
@Asynchronous
public void mainTask(){ ... }
要在应用程序服务器中处理异步任务,允许创建的线程数量有限。在没有达到这个极限之前,一切都很好。任务被触发并排队。
但一旦达到极限,应用服务器就会抛出javax.ejb.ConcurrentAccessT
在混淆之后,我得到了以下异常:
org.hibernate.AnnotationException: No identifier specified for entity: com.ad.ac.c.a
at org.hibernate.cfg.InheritanceState.determineDefaultAccessType(InheritanceState.java:268)
at org.hibernate.cfg.InheritanceState.getElementsToProcess(InheritanceState.java:223)
at org.hi
I have problem in configuring JNDI lookup for ejb3.1 and weblogic 12c, jdk1.6
@Remote
public interface Bank{
public String accounts();
}
@Stateless(name="BankSession")
public class BankSessionBean implements Bank{
@Override
public String accounts() {
///////
我正在学习EJB,我想让下面的代码正常工作,但到目前为止还没有成功。以下是我的EJB项目代码:
@Stateless
public class CalcBean implements ICalcRemote {
private static final long serialVersionUID = 5571798968598315142L;
@Override
public int add(int a, int b) {
return a + b;
}
}
package com.ejb.test.pckg;
import java