Hi, All,
 
I am tracing all the threads both at this mailing list and EJB forum at Java.sun.com the whole day, but it seems that nobody has really clearly answered this question: how does Tomcat cooperate with J2EE reference implementation(RI) from Sun? My intention is to use tomcat serving servlet and from which invoke EJBs that are deployed on the RI EJB container.
 
I know the j2ee RI has an old version of Tomcat built in, but for some curious reasons I do not want to use it that way. i think there are merely some configuration works with the web.xml of the tomcat app, but it is NOT that easy! I firstly deployed all the test EJB classes as a EJB component of an application of the j2ee RI, and deployed the servlet(with the HTML file that invoke it) as a web component of the app, they work fine with the j2ee RI. But when I extracted the WAR file (which is in the EAR file) into another directory which i used as a tomcat context, and i also has copied the Client.jar file, which was created from the deployment procedure above, into the WEB-INF\lib\ of the context. Tomcat does not find the EJB. it gives out "java.lang.NullPointerException". by the way, the same exception occurs when the j2ee server is not running. i tried to use the <ejb-link> within the web.xml, it results same. it seems tomcat does not recognize the J2EE application deployment descriptor. how does the tomcat of Sun RI do that?
 
so, can anyone give me a working configuration example? I did found some people say they are making them work together, but no detailed instructions.
 
Many thanks in advance!
 
Weining

Reply via email to