2 Replies Latest reply on Nov 11, 2003 9:31 AM by jonlee

    Newbie error abt servlet deployment

    akhileshsshirbhate

      I tried to deploy a small servlet on my JBoss 3.2.2
      I copied the FileUploader.war file in the deploy directory. The server hot-deployed it. Then, I could see the index.html page on giving http://localhost:8080/FileUploader/

      Then it was supposed to call LoginHandler.class, but it threw the following error message in the browser. Please help me what to do.

      -------------------------
      type: Status report
      message: /FileUploader/servlet/LoginHandler
      description: The requested resource (/FileUploader/servlet/LoginHandler) is not available.
      -------------------------

      The FileUploader.war has the followoing tree:
      FileUploader.war/
      |-- META-INF
      | `-- MANIFEST.MF
      |-- WEB-INF
      | |-- classes
      | | |-- HelloWorld.class
      | | |-- LoginHandler.class
      | | `-- UploadTest.class
      | |-- lib
      | | `-- cos.jar
      | `-- web.xml
      |-- index.html
      `-- trial.html

      Also, the index.html page has a form which says the following :
      -----------------------------
      <FORM ACTION="/FileUploader/servlet/LoginHandler" METHOD=POST>
      <INPUT TYPE=text NAME="name" VALUE="" SIZE=15>
      <INPUT TYPE=password NAME="passwd" VALUE="" SIZE=15>
      <INPUT TYPE=submit VALUE=" OK ">

      ------------------------------

        • 1. Re: Newbie error abt servlet deployment
          akhileshsshirbhate

          When I hot-deployed the Application, the server wrote the following messages on the screen:

          19:37:59,117 INFO [MainDeployer] Starting deployment of package: file:/var/www/html/jboss-3.2.2-src/build/output/jboss-3.2.2/server/default/deploy/FileUploader.war/
          19:37:59,228 INFO [EmbeddedTomcatService] deploy, ctxPath=/FileUploader, warUrl=file:/var/www/html/jboss-3.2.2-src/build/output/jboss-3.2.2/server/default/deploy/FileUploader.war/
          19:37:59,732 INFO [Engine] ContextConfig[/FileUploader]: Added certificates -> request attribute Valve
          19:37:59,791 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@cad437
          19:37:59,792 INFO [Engine] StandardManager[/FileUploader]: Seeding random number generator class java.security.SecureRandom
          19:37:59,794 INFO [Engine] StandardManager[/FileUploader]: Seeding of random number generator has been completed
          19:37:59,797 INFO [Engine] StandardWrapper[/FileUploader:default]: Loading container servlet default
          19:37:59,798 INFO [Engine] StandardWrapper[/FileUploader:invoker]: Loading container servlet invoker
          19:38:00,165 INFO [MainDeployer] Deployed package: file:/var/www/html/jboss-3.2.2-src/build/output/jboss-3.2.2/server/default/deploy/FileUploader.war/

          • 2. Re: Newbie error abt servlet deployment
            jonlee

            Anonymous servlets are disabled in current servlet containers because they create a security hole. Check the FAQ under JBoss 3.2.0 changes and also the servlet howto. You are trying to access the servlet using the anonymous servlet mechanism. You should be using explicit servlet mapping.