tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Minh <>
Subject Re: OpenEJB Tomcat Deployments
Date Thu, 29 Apr 2010 22:00:13 GMT


can someone who has been succefully using OpenEJB with tomcat tell me what I
need to do to make this simple EJB deployed and work on tomcat 6.0.20

i have a very simple EJB Bean. Compiled and then put them in a war file
togther with the servlet HomeAction where I look up the Bean Hello. for some
reason I wont be able to look up for the bean, the bean is always NULL.

Can you tell me if i need to do anythign else or what did i missed? what did
I do wrong here ...any extra deployment sescriptor in web.xml etc ......

I saw minor error when Tomcat start up, but not sure it relates to the
error...if so, how can I fix this?

Apr 29, 2010 2:41:57 PM org.apache.catalina.loader.WebappClassLoader
- jar not loaded. See Servlet Spec 2.3, section 9.7
.2. Offending class: javax/servlet/Servlet.class
context path = /recharge_report

The javaee-api-5.0-2.jar is located inside war-file/WEB-INF\lib\ directory.


package edu.ucsd.ehs.service.helloworld;

import javax.ejb.Stateless;

public class HelloBean implements Hello {

    public String greet(String s) {
        return "Hello " + s + "!";


package edu.ucsd.ehs.service.helloworld;
import javax.ejb.Local;

public interface Hello{

    public String greet(String s);



public class HomeAction extends DispatchAction  {

	private Hello bean;
	public ActionForward displayHome(ActionMapping mapping, ActionForm form,	
			                     HttpServletRequest request, HttpServletResponse
response)throws Exception {
		System.out.println("***Context: HomeAction ");
			System.out.println("***HomeAction: testing OPENEJB");

			String returnedString = bean.greet("OpenEJB User");

			System.out.println("***returnedString: " + returnedString);


View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message