i developed a Stateless Session bean program.And created a
client by a common java class as
class m
{p s v m(String s[]){....}}
And i called the bean deployed in weblogic.from cmd prompt
And that run.
mind it i have to set setenv,seting classpath for that bean
jar file before compile and run it.
ok
when i do a servlet programme deployed in tomcat and call
that bean then it give classdefnotfoundException and
NoInitialContext like this.So how i sucessfully do this?
Ok
when i call that bean from java class from the console like
i previously told, if i don't set setenv i found the same
error on the cmd prompt.
pls help to get out of it
Answer Posted / mani
Weblogic is application server where u can run
web,model,persistence and some more...like JMS,JTA,JNDI etc
But Tomcat is webserver here u only run the presentesion
layer specific things
to solve your problem you can do two things
One:
Create the jar file of your Model Layer(EJBs) and copy
that jar file in your classpath of the tomcat .Here you
have to run both servers required
Two:
Create presentation layer(servlets )make this war file and
kept that in weblogic create ear file to whole application
and deploye it..and run it .. Here you no need of using
tomcat only with weblogic u can run
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is external entity?
What is the preferred size of a component in java?
What is form-based authentication?
What is java 2 platform, enterprise edition (j2ee)?
What is the difference between session bean and entity bean ?
What do you understand by connector?
Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...
What is included in j2ee?
What is a jpanel in java?
Is java still slow?
Which package is imported by default in java?
What is meant by j2ee?
What are struts?
Is java gui dead?
Which is latest technology in java?