facebook

Error while instantiating a class reside in EJB module

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245210 Reply

    Ghazala
    Member

    I have two question:

    1) I am trying to access a class from a jsp in a j2EE application.

    – The class is in EJB module
    – Class in interacting with an Ejb and one of its method(class method) is returning an interface that
    has bussiness methods.
    – I want to create an instance of that interface using method of that class in my jsp,so
    that i can use the methods of interface

    – Code for accessing class is :

    <% AccessHome ah = new AccessHome();
    com.genuitec.myejb.interfaces.HelloWorld bean1= ah.lookuphelloworld();%>

    Message is <%= bean1.displaymessage() %>

    I have imported the package of class using import,but i am having error on line
    where i am creating the class as: ” line breakpoint on line 27″

    2) In an enterprise application which consists of web as well as ejb module, do we have to deploy EJB and web modules separately before deploying the j2ee project or directly deploy the J2EE application so it will automatically deploy ejb and web modules?

    #245236

    Riyad Kalla
    Member

    1) Please have a look at our Enterprise Application Project quickstart guide and the TraderX project for examples: http://www.myeclipseide.com/images/tutorials/quickstarts/earprojects/

    2) You just deploy the Enterprise Application Project, this defines all the packaging and deployment rules and will package everything up nicely for you and deploy it as an EAR.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error while instantiating a class reside in EJB module

You must be logged in to post in the forum log in