0 Replies Latest reply on Feb 19, 2006 12:20 PM by Alex Adranghi

    Invoking Servlets

    Alex Adranghi Newbie

      JBoss AS Version: 4.0.3SP1


      Hi,

      Worked myway through the tutorial, which I managed to get working in the end. I'm now started on a project however I'm running into problems in deployment. Everything seems to deploy correctly, except for some reason I can't access any servlets via Tomcat.

      Since I'm not confident enough on the platform to jump right in, I'm working from the tutorial and moving parts of the implimentation over to the project. For some reason beyond me, this has caused everything to stand still. Now the new EJB and Servlet aren't even rigged up against the HTML post page, which is the same as the tutorials, so I don't think it should affect it at all.

      I've checked the WAR and the classes are in for deployment; then again if they weren't it wouldnt have let me deploy it.

      Help would be must appreicated. Need any more information, just let me know. Many thanks.

      application.xml

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE application PUBLIC
       "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
       "http://java.sun.com/dtd/application_1_3.dtd">
      <application>
       <display-name>Sum Application</display-name>
       <module>
       <ejb>FiboEJB.jar</ejb>
       </module>
       <module>
       <web>
       <web-uri>FiboWeb.war</web-uri>
       <context-root>/fibo</context-root>
       </web>
       </module>
      </application>
      
      


      /**
       * @web.servlet
       * name="Compute"
       * display-name="Computation Servlet"
       * description="Servlet that compute Fibonacci suite"
       *
       * @web.servlet-mapping
       * url-pattern="/Compute"
       *
       * @web.ejb-ref
       * name="ejb/Fibo"
       * type="Session"
       * home="tutorial.interfaces.FiboHome"
       * remote="tutorial.interfaces.Fibo"
       * description="Reference to the Fibo EJB"
       *
       * @jboss.ejb-ref-jndi
       * ref-name="ejb/Fibo"
       * jndi-name="ejb/Fibo"
       */