[EJB 3.0] - @Service EJB Undeploy error
by alpheratz-jb
I have an @Service EJB (see code).
It deploys OK. it works OK. I can see the bean being driven through its lifecycle OK. I can see ssetValue being called. I can see the value in the MBean Inspector page.
However on undeploy/redeploy I get an exception (see traces):
| java.lang.RuntimeException: javax.management.InstanceNotFoundException: dnd:statistics=DisasterCount is not registered.
|
The exception occurs regardless of whether the value is inspected in the MBeans Inspector page or not.
The app is based around SEAM.
Any suggestions/assistance would be gratefully accepted.
Cheers,
Alph.
===========
Usage in a SEAM stateful session bean:
| @EJB
| private DisasterCountLocal dc;
|
| @SuppressWarnings("unchecked")
| @Factory("disasterCollection")
| public void findAll()
| {
| disasterCollection = em.createNamedQuery("Disaster.findAll").setHint(
| "org.hibernate.cacheable", true).getResultList();
| dc.setValue(disasterCollection.size());
| }
|
| package dnd.mbean;
|
| import javax.ejb.Local;
|
| import org.jboss.annotation.ejb.Service;
|
| // http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/j...
| // http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/jmx/index.html
|
| @Service (objectName = "dnd:statistics=DisasterCount")
| @Local(DisasterCountLocal.class)
| public class DisasterCount implements DisasterCountLocal, DisasterCountManagement
| {
| int v;
|
| public void setValue(int v)
| {
| System.out.println("setValue(" + v + ")");
| this.v = v;
| }
|
| public int getValue() {
| return v;
| }
|
| // Lifecycle methods
| public void create() throws Exception
| {
| System.out.println("DisasterCount - Creating");
| }
|
| public void start() throws Exception
| {
| System.out.println("DisasterCount - Starting");
| }
|
| public void stop()
| {
| System.out.println("DisasterCount - Stopping");
| }
|
| public void destroy()
| {
| System.out.println("DisasterCount - Destroying");
| }
| }
|
|
|
| package dnd.mbean;
|
| import javax.ejb.Local;
|
| @Local
| public interface DisasterCountLocal {
| int getValue();
| void setValue(int v);
| }
|
| package dnd.mbean;
|
| import org.jboss.annotation.ejb.Management;
|
| @Management
| public interface DisasterCountManagement {
| int getValue();
|
| void create() throws Exception;
| void start() throws Exception;
| void stop();
| void destroy();
| }
|
Deployment trace:
| 12:22:40,937 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=jboss-seam-dnd.ear,jar=jboss-seam-dnd.jar,name=DisasterCount,service=EJB3 with dependencies:
| 12:22:40,953 INFO [EJBContainer] STARTED EJB: dnd.mbean.DisasterCount ejbName: DisasterCount
| 12:22:40,968 INFO [STDOUT] DisasterCount - Creating
| 12:22:40,968 INFO [STDOUT] DisasterCount - Starting
| 12:22:40,984 INFO [EJBContainer] STARTED EJB: dnd.ejb3.session.DisasterManagerAction ejbName: DisasterManagerAction
|
Undeploy/redeploy trace:
| 13:19:35,125 INFO [STDOUT] DisasterCount - Stopping
| 13:19:35,125 INFO [STDOUT] DisasterCount - Destroying
| 13:19:35,125 WARN [ServiceDelegateWrapper] Stopping failed jboss.j2ee:ear=jboss-seam-dnd.ear,jar=jboss-seam-dnd.jar,name=DisasterCount,service=EJB3
| java.lang.RuntimeException: javax.management.InstanceNotFoundException: dnd:statistics=DisasterCount is not registered.
| at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:159)
| at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:166)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.stopService(ServiceDelegateWrapper.java:118)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
| at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.stop(Unknown Source)
| at org.jboss.system.ServiceController.stop(ServiceController.java:508)
| at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy267.stop(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:151)
| at org.jboss.ejb3.JmxKernelAbstraction.uninstall(JmxKernelAbstraction.java:175)
| at org.jboss.ejb3.Ejb3Deployment.stop(Ejb3Deployment.java:501)
| at org.jboss.ejb3.Ejb3Module.stopService(Ejb3Module.java:107)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStop(ServiceMBeanSupport.java:315)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:247)
| at sun.reflect.GeneratedMethodAccessor406.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.stop(Unknown Source)
| at org.jboss.system.ServiceController.stop(ServiceController.java:508)
| at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy36.stop(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.stop(EJB3Deployer.java:469)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.ws.integration.jboss.DeployerInterceptor.stop(DeployerInterceptor.java:122)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.stop(SubDeployerInterceptorSupport.java:196)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:99)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy37.stop(Unknown Source)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:667)
| at org.jboss.deployment.MainDeployer.stop(MainDeployer.java:659)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:638)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
| at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy6.undeploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:450)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:604)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: javax.management.InstanceNotFoundException: dnd:statistics=DisasterCount is not registered.
| at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
| at org.jboss.mx.server.MBeanServerImpl.unregisterMBean(MBeanServerImpl.java:383)
| at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstraction.java:155)
| ... 100 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986378#3986378
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986378
19Â years, 7Â months
[Installation, Configuration & Deployment] - Log4j an JBOSS 4.0.5
by russray
I have downloaded the latest version and ran the window installer.
Where I start the server up, an error displays involving the log4j component. I have not changed the log4j.xml settings, so I am confused why this error would even happen:
| 20:05:44,757 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
| 20:05:44,757 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
| 20:05:44,757 ERROR [STDERR] log4j:ERROR [WebappClassLoader
| delegate: false
| repositories:
| /WEB-INF/classes/
| ----------> Parent Classloader:
| java.net.FactoryURLClassLoader@31c43f
| ] whereas object of type
| 20:05:44,757 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@ab95e6].
| 20:05:44,820 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
| 20:05:44,820 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
|
I checked to ensure I had the log4j.jar (or something like it) within the server area. I found log4j-boot.jar found in <JBOSS_DIR>/lib, so I am at a lost to explain why there is an issue.
Can someone shed some light on this for me?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986371#3986371
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986371
19Â years, 7Â months
[EJB 3.0] - EntityManager out of the container causes exception
by obergg01
I'm trying to write some unit tests for session beans with an in memory hsqldb, but cant get an instance of the EntityManagerFactory.
To simplify the situation and make sure I got all dependencies I set up a new EJB3 profiled project with JBoss IDE (dependencies from JBoss 4.0.5.GA) and wrote the following test code:
import javax.persistence.EntityManager;
| import javax.persistence.EntityManagerFactory;
| import javax.persistence.Persistence;
|
| public class Test{
| public static void main(String[] args){
| EntityManagerFactory factory = Persistence.createEntityManagerFactory("test");
| EntityManager manager = factory.createEntityManager();
| }
| }
|
persistence.xml is:
<?xml version="1.0" encoding="UTF-8"?>
| <persistence>
| <persistence-unit name="test" transaction-type="RESOURCE_LOCAL">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <properties>
| <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
| <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/test"/>
| <property name="hibernate.connection.username" value="root"/>
| <property name="hibernate.connection.password" value=""/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| <property name="hibernate.hbm2ddl.auto" value="create"/>
| </properties>
| </persistence-unit>
| </persistence>
I have double checked that persistence.xml is on the classpath (META-INF/persistence.xml) and jdbc-driver is included.
Whatever I am trying I always get the following exception:
Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named test
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
| at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
| at Test.main(Test.java:9)
Can anyone help me out? Am I missing something?
Thanks
Goran
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986368#3986368
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986368
19Â years, 7Â months
[JBoss Messaging] - jms error of jboss 4.0.5
by dxb_han
public final static String INITIAL_CONTEXT_FACTORY = "org.jnp.interfaces.NamingContextFactory";
public final static String PROVIDER_URL = "jnp://127.0.0.1:1099";
public final static String URL_PKG_PREFIXES = "org.jboss.naming";
public final static String FACTORY_JNDI = "XAConnectionFactory";
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
properties.put(Context.PROVIDER_URL, PROVIDER_URL);
properties.put("java.naming.rmi.security.manager", "yes");
properties.put(Context.URL_PKG_PREFIXES, JMSSender.URL_PKG_PREFIXES);
Context context = new InitialContext(properties);
TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(FACTORY_JNDI);
TopicConnection topicConnection = topicFactory.createTopicConnection();
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topic = topicSession.createTopic("topic/testTopic");
throws exception:
org.jboss.mq.SpyJMSException: Cannot get the Topic from the provider; - nested throwable: (javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic)
at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:201)
at org.jboss.mq.SpyTopicSession.createTopic(SpyTopicSession.java:73)
at com.dxb.test.jmstest.JMSSender.initSender(JMSSender.java:57)
at com.dxb.test.jmstest.JMSSender.(JMSSender.java:33)
at com.dxb.test.jmstest.JMSSender.main(JMSSender.java:93)
Caused by: javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic
at org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:613)
at org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServerInterceptorSupport.java:111)
at org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor.java:259)
at org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:117)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:136)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986364#3986364
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986364
19Â years, 7Â months
[Messaging, JMS & JBossMQ] - jms error of jboss 4.0.5
by dxb_han
public final static String INITIAL_CONTEXT_FACTORY = "org.jnp.interfaces.NamingContextFactory";
public final static String PROVIDER_URL = "jnp://127.0.0.1:1099";
public final static String URL_PKG_PREFIXES = "org.jboss.naming";
public final static String FACTORY_JNDI = "XAConnectionFactory";
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, INITIAL_CONTEXT_FACTORY);
properties.put(Context.PROVIDER_URL, PROVIDER_URL);
properties.put("java.naming.rmi.security.manager", "yes");
properties.put(Context.URL_PKG_PREFIXES, JMSSender.URL_PKG_PREFIXES);
Context context = new InitialContext(properties);
TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(FACTORY_JNDI);
TopicConnection topicConnection = topicFactory.createTopicConnection();
topicSession = topicConnection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
topic = topicSession.createTopic("topic/testTopic");
throws exception:
org.jboss.mq.SpyJMSException: Cannot get the Topic from the provider; - nested throwable: (javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic)
at org.jboss.mq.SpyConnection.createTopic(SpyConnection.java:201)
at org.jboss.mq.SpyTopicSession.createTopic(SpyTopicSession.java:73)
at com.dxb.test.jmstest.JMSSender.initSender(JMSSender.java:57)
at com.dxb.test.jmstest.JMSSender.(JMSSender.java:33)
at com.dxb.test.jmstest.JMSSender.main(JMSSender.java:93)
Caused by: javax.jms.JMSException: This destination does not exist !QUEUE.topic/testTopic
at org.jboss.mq.server.JMSDestinationManager.createQueue(JMSDestinationManager.java:613)
at org.jboss.mq.server.JMSServerInterceptorSupport.createQueue(JMSServerInterceptorSupport.java:111)
at org.jboss.mq.server.TracingInterceptor.createQueue(TracingInterceptor.java:259)
at org.jboss.mq.server.JMSServerInvoker.createQueue(JMSServerInvoker.java:117)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:136)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:395)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:398)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
at java.lang.Thread.run(Thread.java:534)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986363#3986363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986363
19Â years, 7Â months
[EJB 3.0] - Mixed EJB2.1 / EJB3 SessionBeans in same ear fail deployment
by hakand
I'm trying to deploy an ear-file with mixed content of EJB2.1 and EJB3 SessionBeans onto JBoss 4.0.4 with the ejb3-option.
Deploy fails for the EJB2.1-bean with essentially:
-----
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
Caused by: java.lang.RuntimeException: @javax.ejb.PostActivate annotated method has the wrong signature - public void legacy.LegacyEjbHelloBean.ejbActivate() throws javax.ejb.EJBException,java.rmi.RemoteException
at org.jboss.ejb3.interceptor.InterceptorInfoRepository$ContainerInitialiser.resolveLifecycleMethod(InterceptorInfoRepository.java:753)
-----
It actually started to fail for the PreDestroy annotation and the ejbRemove()-method but after adding this to the bean class:
@javax.annotation.PreDestroy
public void dummy() {}
it moved on to PostActivate - where it stays even after removing the dummy()-method and annotation, re-deploying and re-starting the server - indicating that something might not be cleaned up properly between deployments.
A similar problem seems to be described here:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=93977&view=previous
is it the same?
Shouldn't mixed EJB2.1 and EJB3 work?
If bug: when can we expect it to work properly?
The case: I'm looking into migrating an EJB2.1-app to EJB3 but would like to do it incrementally instead of a big-bang approach.
TIA,
/hakan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986362#3986362
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986362
19Â years, 7Â months