Jason Wells wrote:

> Hello,
> 
> A basic question... I'm trying to deploy a very simple servlet that
> calls a very simple stateless session bean. Our configuration has Apache
> integrated with Tomcat/Jboss (embedded). I've been following these
> instructions:
> 
> http://www.jboss.org/business/jboss-tomcat.html
> 
> I have a web archive (ejbHello.war) containing a servlet called
> ejbHelloServlet. This servlet uses a stateless session bean called
> ejbHello, which is in a JAR called ejbHello.jar. These have been
> combined into an EAR called ejbHello.ear. The application.xml file in
> the EAR sets the context root as /ejbHello. The EAR is deployed in the
> Jboss /deploy directory.
Did you also include a <module> for your ejb jar in application.xml?


> 
> Which is great, except that when I visit the URL, which I believe
> (according to the instructions) should be
> http://localhost:8082/ejbHello, I get a 404. 

Try port 8080. Port 8082 is the JMX management service.

Note that (unless you have apache reconfigured on this port) on port 
8080, your going directly against the tomcat webserver (not actually 
using the installed Apache)


> 
> What am I doing wrong here? One area that makes me suspicious is at the
> end of the instructions, where it says "for your application to be
> visible through Apache, you must setup the appropriate JkMount
> statements in mod_jk.conf." However, it doesn't mention what the
> 'appropriate statements' are.
Hrm. First, see if port 8080 works. Then check the jakarta site and take 
a look at their docs for integrating the two. Ignore the easy way with 
the automatically generated mod_jk.conf, since that isn't generated for 
embedded tomcat. Sorry I can't be more explicate, but I haven't 
integrated thw whole stack myself.

-danch



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to