Questions tagged [ejb-2.x]

This tag is used for question related to the session bean and message-driven bean component types of the EJB 2.x programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 2.x specification, use the [JPA] tag.

This tag is used for question related to the session bean and message-driven bean component types of the EJB 2.x programming model. For questions about the persistent entities defined in the document "Java Persistence API" of the EJB 2.x specification, use the [JPA] tag.

240 questions
0
votes
1 answer

Changing EJB 2 Xdoclet JNDI for Jboss AS 7

I am migrating an application from Jboss 3 to Jboss 7. I am using jboss-as-7.1.1.Final. The application is a .ear with several EJB .jars and a .war containing all the servlets and jsp pages. The EJBs are both CMP entity beans and session beans and…
Adam Russell
  • 187
  • 1
  • 9
0
votes
1 answer

ejb2.0, log4j and EAR project configuration

I am posting one more question on EJB2.0. I thought my earlier question won't get any answer since EJB2.0 is pretty much outdated technology and nobody wants to work on it any more. But my first question got answered and I am trying my luck one more…
rdeshmukh
  • 23
  • 4
0
votes
2 answers

Injecting Entity Bean in to EJB Bean using @EJB

I have Stateless Entity Beans(EJB 3.x) and EJB Beans(EJB 2.x) and other classes in my project. I want to inject Entity Bean into EJB Beans. So, far I am able to inject it using JNDI way i.e (BeanName#completename) but I want to inject it using @EJB…
Nabeel
  • 184
  • 2
  • 12
0
votes
2 answers

JBoss Error in ejb-jar.xml for Message Driven Bean TextMDB: expected one res-ref-name tag

I've copied and pasted the example ejb-jar.xml and jboss.xml file from http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch6.chapt.html#ch6.mdbejbjar.ex and I'm receiving the following error when JBoss attempts to deploy it: ERROR [ScannerThread]…
brianegge
  • 29,240
  • 13
  • 74
  • 99
0
votes
1 answer

EJB 2.1 and container managed persistence in websphere 8: Single object finder returned 2 objects

We are using EJB 2.1 with container managed persistence in IBM Websphere 8 and have the following problem: A single Object finder sometimes return 2 elements even though there is only one element the database for this search criteria. This happens…
0
votes
1 answer

Websphere v8.0.0.6 WASX7017E, ADMA0209E Application exception while Deployment of EJB 2.0 EAR

I have the following problem with WebSphere 8.0.0.6 and no solution is found on the web. I hope anyone can help with this and this will help someone else with this problem. Error Description: Error #1 (while installing application): WASX7017E:…
marmelin
  • 281
  • 3
  • 10
0
votes
1 answer

filter-name element is missing in generated web.xml

One of our old applications uses Struts-1.2 and EJB-2, generated with xdoclet 1.2.3. Maven 1 is used to build the application using java 1.4. The application has been running in weblogic 8.1 without any issues. Now we are upgrading to Weblogic…
neo108
  • 5,156
  • 3
  • 27
  • 41
0
votes
1 answer

jboss error migrating EJB 2.X ap to jboss 5

I migrating someone else's EJB 2.X app from jboss 3 to jboss 5 (and then maybe onto AS7). When I do a test deployment of one of the EJBs I am getting this error org.jboss.deployment.DeploymentException: Could not load class: at…
Adam Russell
  • 187
  • 1
  • 9
0
votes
2 answers

JMS queue in Weblogic10 EJB2 session bean able to send but not to receive

I try to receive a JMS message in an EJB2 (legacy sucks ;-) stateless session bean, in weblogic 10.0.1, with bean managed transactions. Queue definition from jms folder looks like
Peter Kofler
  • 9,252
  • 8
  • 51
  • 79
0
votes
0 answers

ejbcontext via jndi in ejb2

How can I get EJBContext instance in ejb2 stateless bean via jndi? I tried following: Object o = new InitialContext().lookup("java:comp/EJBContext"); but it failed as ejbcontext is not found by that name. However this code worked in ejb3…
michael nesterenko
  • 14,222
  • 25
  • 114
  • 182
0
votes
1 answer

Troubleshoot EJB cachefull exceptions

With reference to the question : : EJB weblogic.ejb20.cache.CacheFullException I am trying to understand how the EJB container manages entity beans, I know that create/finder method calls on the EJBHome object results in Bean instances getting…
DntFrgtDSemiCln
  • 1,259
  • 2
  • 16
  • 35
0
votes
1 answer

EJB2 - $Proxy0 cannot be cast to com.TestEJB.TestEJBInterfaceRemote error

I am trying to build a simpmle Hello world type EJB 2.1 application. The intended runtime for this application is supposed to be Jboss 5.1.0. Here is the code i have written. EJB Configuration file: …
ziggy
  • 15,677
  • 67
  • 194
  • 287
0
votes
1 answer

Getting the same output for Stateless and stateful session bean

Here is the sample code i tried <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> …
user1843883
  • 159
  • 1
  • 7
0
votes
1 answer

Ejb (2) timed out and ejbRemove is not called, is this right? if so how to know that the ejb hss timed out

From the ejb life cycle, I think that when an ejb is timed out , the ejbRemove method is called. please correct me if I'm wrong. Anyway if not so how to know that the ejb has timed out. I'm using JBOSS 5.1 GA. but actually the ejbRemove is not…
0
votes
1 answer

Jboss 6.1.0 application is already installed

I am trying to migrate an application from JBoss 4.0.5 to JBoss 6.1.0. I use ant for deployment. This is my application.xml file.
ionutab
  • 445
  • 4
  • 21
1 2 3
15
16