• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

EJB 3.0 Remote interface invocation issue!!

 
Greenhorn
Posts: 1
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi i am trying to develope simple EJB Application after a long time & facing a strange problem,
i have developed a simple Enterprise Application , having a Web module & an EJB module,
and using JSP page as a client, in jsp page i have written code like this given below


when i am running application i can see this System.out.println(hel.hello("hi")+ " Returned this") line output on console , but when
i am trying to show this output on my web page using this code

in the same JSP page i am getting null, in fact i tried to debug it, & found that control is not reaching to this
result = result + hel.hello(name); in the above mentioned, later fragment of code.
why it is happening, i have checked all dependencies of EAR file, & WER file, even i m facing this problem, what is my mistake,

Can any one please help me out,
 
author & internet detective
Posts: 42056
926
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What exception is happening here:

You'll need to add code to find out. Right now, the code hides the exception so you can't know what is wrong.

Also, note it is bad practice to put Java code in new JSPs.
 
Greenhorn
Posts: 24
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
Who sets the parameter named "name" ?
if this "name = request.getParameter("name");" return null, all the code is skipped so the behaviour is right.

What is printed by the two lines of code ?

Please use the "code" to post the code in the forum

 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic