facebook

Call deployed Servlet shows only DirectoryListing

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #236571 Reply

    tviel
    Member

    Hi,

    I deployed a Servlet (right from template without changes) to my JBoss. Console View shows that deployment went well.

    Wenn Im running localhost:8080/ServletTest I only get the DirectoryListing from Tomcat.

    Here is my web.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" 
        xmlns="http://java.sun.com/xml/ns/j2ee" 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
        http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
      <servlet>
        <description>This is the description of my J2EE component</description>
        <display-name>This is the display name of my J2EE component</display-name>
        <servlet-name>ServletTest</servlet-name>
        <servlet-class>ServletTest</servlet-class>
      </servlet>
    
      <servlet-mapping>
        <servlet-name>ServletTest</servlet-name>
        <url-pattern>/ServletTest</url-pattern>
      </servlet-mapping>
    
    </web-app>

    Any hints?

    Thanks

    #236616

    Scott Anderson
    Participant

    It’s likely that <servlet-class> is incorrect if you added the ServletTest class to a package. It should be the fully qualified location of your servlet class (ie. com.something.ServletTest)

    #236822

    tviel
    Member

    Hi,

    thanks for your response, but that didn’t worked.

    I tried a new servlet and watched the web.xml for your hint. The servlet-class contains the package information. After deployment, only the Directory-Listing showed up.

    Thorsten

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Call deployed Servlet shows only DirectoryListing

You must be logged in to post in the forum log in