0 Replies Latest reply on Aug 6, 2002 10:04 AM by Thomas Laresch

    Tomcat Status 500: The answer

    Thomas Laresch Newbie

      http://localhost:8080/ gives you "Status 500"?

      Here's the answer (for JBoss 3.0.1 RC1 at least).
      Sorry for the Windows-bias. Of course, you must adjust
      the paths to reflect your own JBoss installation paths.

      Try this:
      In C:\java\jboss-3.0.1RC1_tomcat-4.0.4\catalina\webapps\examples\WEB-INF, add jboss-web.xml with the following:
      ------------------------------
      <?xml version="1.0" encoding="UTF-8"?>

      <jboss-web>
      <ejb-ref>
      <ejb-ref-name>ejb/Account</ejb-ref-name>
      <jndi-name>account/Account</jndi-name>
      </ejb-ref>

      </jboss-web>
      ---------------------------
      In web.xml, comment out the ejb-local-ref at the bottom
      (the corresponding Java class doesn't exist in
      the examples, anyways!):
      ---------------------------------
      <!-- Local EJB Reference
      <ejb-local-ref>
      <description>Example Local EJB Reference</description>
      <ejb-ref-name>ejb/ProcessOrder</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>com.mycompany.mypackage.ProcessOrderHome</local-home>
      <local>com.mycompany.mypackage.ProcessOrder</local>
      </ejb-local-ref>
      -->
      ---------------------------------
      cd ..

      C:\java\jboss-3.0.1RC1_tomcat-4.0.4\catalina\webapps\examples>jar cvf tomcat-examples.war *

      Copy this war file to:
      C:\java\jboss-3.0.1RC1_tomcat-4.0.4\server\default\deploy

      Put this in your browser
      http://localhost:8080/tomcat-examples/jsp/index.html

      Enjoy a rousing game of NumberGuess ;)!

      p.s. The Account EJB doesn't exist either, so if you want,
      you can play with removing it from the system.