Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Ejb Examples Of StatelessBean

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

25 comments so far (post your own) View All Comments Latest 10 Comments:

I found yourtutorial very helpful, but I am a kind of a beginer of jDeveloper an I am running jDeveloper. Can you please help me if I can run your source example in jDeveloper?

Thanks a lot.

Posted by Adam on Thursday, 09.30.10 @ 07:04am | #99948

Sir ..
This Stateless Bean Works fine but the problem is that the out is not showing on the screen. in WebClient.jsp blank page only opening. not showing any exception or any text, except a blank white screen.I hope it should be solved soon

Posted by archana on Tuesday, 08.24.10 @ 17:29pm | #99128

I got this Erro with Jboss 4.2.0
why ? what i must to do ?

12:57:14,140 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
12:57:14,156 INFO [Server] JBoss (MX MicroKernel) [4.2.0.GA (build: SVNTag=JBos
s_4_2_0_GA date=200705111440)] Started in 9s:31ms
12:57:41,406 INFO [STDOUT] Error:$Proxy65 cannot be cast to com.javajazzup.exam
ples.ejb3.stateless.CalculatorBean
12:57:41,406 INFO [STDOUT] div


thanx

Posted by saebnajim on Tuesday, 08.17.10 @ 15:33pm | #98988

I tried to run the application under Jboss 4.2.2 bu i got this error can any one tell me way ?!

12:04:26,734 INFO [STDOUT - 152] Error:$Proxy89 cannot be cast to com.javajazzu
p.examples.ejb3.stateless.CalculatorRemote
12:04:26,750 INFO [STDOUT - 152] sub

Posted by saebnajim on Tuesday, 08.17.10 @ 15:16pm | #98987

Hi,

I have one query

calculator = (CalculatorRemote) ic.lookup("example/CalculatorBean/remote");

from the jndi you are lookup.
where you can get this jndi name to lookup without binding it?

Please respond ASAP.

Thanks,
Manoj

Posted by Manoj Singh on Monday, 07.12.10 @ 16:42pm | #98128

This tutorial is not up to date, Please explore it more.

Posted by Manoj Kumar Singh on Thursday, 07.8.10 @ 18:09pm | #98052

Document is simple and understandable.Finaly it is very good.

Posted by Narasimha Yadav on Wednesday, 06.30.10 @ 18:00pm | #97869

your ejb examples are very explanatory and easy understanble.thank u very much for providing code

Posted by madhu on Monday, 06.21.10 @ 17:18pm | #97708

Hello to All,

Insteda of this
CalculatorRemote calculator = (CalculatorRemote) ctx.lookup("example/CalculatorBean/remote");

please write this... It will solve your error

calculator = (CalculatorRemote)ic.lookup(CalculatorRemote.class.getName());

If any doubt contact on my id
amitccet@gmail.com
Amit Doshi


Posted by Amit Doshi on Thursday, 04.8.10 @ 18:46pm | #96219

Sir ..
This Stateless Bean Works fine but the problem is that the out is not showing on the screen. in WebClient.jsp blank page only opening. not showing any exception or any text, except a blank white screen.I hope it should be solved soon

Posted by Tarun on Monday, 01.25.10 @ 22:57pm | #94317

I just tried with zip file linked in the end and it works fine regardless missing files. You can use command ant -v to get verbose output from ant and see what happens.

Posted by Marek on Friday, 01.22.10 @ 00:19am | #94217

Please I want full calculator source code.

Posted by Udochukwu on Tuesday, 10.20.09 @ 04:42am | #91912

I downloaded stateless session bean code for ejb3.0 on jboss server. I delployed that code on jboss-4.2.2 server. But when i click hyperlink "Calculator Example" i am getting error "HTTP Status 404" with error description "The requested resource (/example/form.jsp) is not available." Can someone please help if there is any setting i need to turn on

Posted by vikas on Tuesday, 10.20.09 @ 03:40am | #91909

Dear Emmanuel, It will not work in tomcat,bcoz tomcat is only a web server, not an EJB container (or an app server)..so install JBoss first..then try.

Posted by Ayan Basu on Thursday, 08.20.09 @ 16:32pm | #90175

Hi
My Question is when i run ejb3.0 Stateless calculator example an error occur Error:com.javajazzup.examples.ejb3.stateless not bound
plz tell me how to remove this

Posted by rubina on Saturday, 07.18.09 @ 12:58pm | #89435

this is a very good site for java student but if u gave some easy practical knowledge then it is better...

Posted by sushant on Monday, 07.6.09 @ 17:25pm | #89076

i have deployed this Stateless Session Bean Example application, but it shows Error in JNDI name:$Proxy152
code:
try {

InitialContext ic = new InitialContext();
//calculator = (CalculatorRemote)ic.lookup(CalculatorRemote.class.getName());
//calculator = (CalculatorRemote)ic.lookup(CalculatorRemote.class.getName());


calculator = (CalculatorRemote) ic.lookup("example/CalculatorBean/remote");

System.out.println("Loaded Calculator Bean");
//CalculatorBean



} catch (Exception ex) {
System.out.println("Error in JNDI name:"+
ex.getMessage());
}

Posted by prabhu on Monday, 03.16.09 @ 01:30am | #85878

Hi,
It does not work with Tomcat 6.0.18 + Eclipse WTP +jdk 1.6.0_11.
The error is on

CalculatorRemote calculator = (CalculatorRemote) ctx.lookup("example/CalculatorBean/remote");
"example is not linked to this context"

How could I get the right context name?

Tanks

Posted by Emmanuel on Saturday, 12.13.08 @ 08:19am | #82714

very good.

Posted by utpal kanr on Tuesday, 11.25.08 @ 22:55pm | #82033

I could not able to get the object using this lookup,
calculator = (CalculatorRemote) ic.lookup("example/CalculatorBean/remote");
hence getting error.
How to resolve this

Posted by NAven on Friday, 10.24.08 @ 12:42pm | #81289

Wow

I have been looking all over the place in the internet a decent, very basic way, to have explained JAVA BEANS, and always so frustating and confusing, however this tutorial gives you the all steps, procedures, instructions

CONGRATULATION FOR THE TUTORIAL
1000 TIMES GOOD JOB

THANK YOU

Posted by saul p on Friday, 07.11.08 @ 04:06am | #66624

Hi,

I tried to deploy state less session bean code, I got the following exception.


org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: Bad version number in .class file
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:397)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

javax.servlet.ServletException: java.lang.UnsupportedClassVersionError: Bad version number in .class file
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.ejb3.WebClient_jsp._jspService(WebClient_jsp.java:139)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause

java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1814)
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)
org.jboss.web.tomcat.service.WebAppClassLoader.findClass(WebAppClassLoader.java:139)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
org.apache.jsp.ejb3.WebClient_jsp._jspService(WebClient_jsp.java:107)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

Can any body help me.

Thanks
Rani

Posted by Rani on Thursday, 07.10.08 @ 19:18pm | #66574

Respected Sir,
I have follow the procedure that you have mentioned here but unable to successfully run the given example.
This may be because of certain xml files are missing. please provide those files.

Posted by Sagar on Thursday, 05.1.08 @ 17:33pm | #58306

Dear Sir,

Some files are missing as this portion of the build fails.

<copy todir="${jarDir}/META-INF">
<fileset dir="${deploymentdescription}/jar/" includes="ejb-jar.xml,weblogic-cmp-rdbms-jar.xml,weblogic-ejb-jar.xml" />
</copy>

It fails beacuse the deploymentdescription}/jar directory and the files inside it are missing.

Please help as I cannot run the application because of these missing files.

Regards
Manu Gupta

Posted by Manu Gupta on Thursday, 04.24.08 @ 22:14pm | #57810

roseindia is simply superb

Posted by sandhya on Tuesday, 03.11.08 @ 02:08am | #52229

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.