How to run a servlet on a server?

Hello,
I have a server up and running (Tomcat).
I can access my page like this: http://www.mydomain.net
I can run my servlet like this for example:
http://localhost:8080/WEB/MyServlet It works fine.
If i do this http://www.mydomain.net:8080/WEB/MyServlet the browser would hang for some time and then I get an error message: COULD NOT CONNECT TO THE SERVER WWW.MYDOMAIN.NET
Have I forgotten to do some configuration or there is something else?
thank you.

Hello,
I have a server up and running (Tomcat).
I can access my page like this:
http://www.mydomain.net
I can run my servlet like this for example:
http://localhost:8080/WEB/MyServlet It works fine.
If i do this
http://www.mydomain.net:8080/WEB/MyServlet the
browser would hang for some time and then I get an
error message: COULD NOT CONNECT TO THE SERVER
WWW.MYDOMAIN.NET
Have I forgotten to do some configuration or there is
something else?
thank you.Mydomain.net is a public domain company that does web hosting. Are you sure your connection to your local machine?
I would try to connect using IP addresses.
JJ

Similar Messages

  • How to run a servlet in Tomcat 5.0 server

    HI Everybody,
    I want to know how to run the servlet file on my tomcat 5.0 server. that is where to place a class file and deployment details.
    Thanks In ADVANCE

    Sourav_cs wrote:
    I am a biginner to start servlet i get confusion to configure servlet in tomcat 5 where it should be saved in tomcat directory and how to execute that as first timeHi,
    goto
    tomcat 5.0\webappsnow create a folder here. this is your webapplication project name. Let's suppose it as "TestApp"
    inside this create directories as follows :
    TestApp
            |
            |-----JSP/htmls( if you have any )
            |
            |-----WEB-INF(File Folder)
                       |
                       |-----web.xml
                       |-----lib ( Directory. place all the .jar files which are required for this project(if any) )
                       |-----classes ( .class files. )[all of your java code should be placed here.](servlets / beans/ pojo )this is the general Directory structure of a web application. now you've to place the compiled .class file of your servlet in the "TestApp\WEB-INF\classes" directory. make sure that you've configured the servlet in Deploment Desctiptor, i.e, web.xml.
    now start the server and type the url like : "http://localhost:8080/TestApp/TestServlet"
    the port no. 8080 is the default port no. of tomcat. you have to give your port no. if u've modified it. and TestServlet is the <url-pattern> of your servlet.
    go through some tutorials .. then you can easily know that
    Diablo

  • How to run a Servlet Project's .war from Command Line??

    Hi there,,
    Can anybody help me with how to run a Servlet Project's .war file from command line??In fact I tried it using the following command,
    java -jar TestServProj.war
    but I get the following error,,,
    Failed to load Main-Class manifest attribute
    I can't find the project''s manifest file in the META-INF folder.
    Moreover,plz help me about know how to execute a single servlet class from command line...
    Thanks in advance...

    you cant run a .war file from command prompt
    .war files should be executed in a server
    how to execute a single servlet class
    do you mean to run the servlet or compile the servlet?
    any way you need a server and if you are a beginner Apache tocat will be the best server to start with you can down load it from
    http://tomcat.apache.org/

  • How to run JSP/Servlet in AIX?

    how to run JSP/Servlet in AIX?
    I am no ideas about it,
    can anyone tell me?
    what webserver i should use?
    have to install JDK?

    The only successful way that I have been able to run servlets in an AIX environment is with the IBM Http Server (specific version of Apache)/WebSphere combination, with WebSphere as the servlet engine. I have tried (unsuccessfully) to use JRun and Apache in AIX environment, but could never get JRun to function properly.

  • How to run a servlet in tomcat 5.0.

    Hi all,
    how to run a servlet in tomcat 5.0
    please tell me the entire procedure....(directory structure)
    step by step....

    hi :-)
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    or
    http://www.google.com.ph/search?hl=en&q=java+servlet+tutorial&btnG=Google+Search&meta=
    regards,

  • How to run a servlet in vqserver????

    any one know how to run a servlet using vqserver..pleazzzzzzzzzz..

    Why not read the doc at vqserver.com??
    But its' really simple:
    copy classes into vq/servlet directory
    open http://localhost:9090
    create an alias to your servlet
    and test

  • How to run the Servlet program?

    hi, all, I am new to servlet, and I want to know how to run the servlet program. I got the TomCat and Java JDK install in my computer, something else I need for create and run the servlet program?

    no that is all u need to run servlets. u can try few of the servlets that come with tomcat

  • How to run Java program as Daemon Server in linux

    How to run Java program as Daemon Server in linux
    i would like to run the java program on system start up in a redhat linux system
    can any one provide rc.status file

    http://wrapper.tanukisoftware.org/

  • How to run a script on Oracle server from isqlplus

    Hi I am trying to run a script on my workstation from Oracle server through isqlplus workarea. I entered following command and get the following error. i have enabled isqlplus URL by editing web.xml file already. Can please someone help how to run the script?
    @http://myaixserver.com:5560/scripts/Databasestartupstages.sql;
    SP2-0920: HTTP error 'page not found (505)' on attempt to open URL

    So far, you haven't specified your rdbms version and isqlplus behaved differently on a 9iR1, 9iR2 from the one release on 10gR1/R2. on 9i it was a servlet based on a JServ servlet executor machine, meanwhile on 10g it is a J2EE compliant application deployed on an OC4J container, so configuration is different.
    You may want to take a look at these references -->
    * Starting iSQL*Plus from a URL
    * Creating Reports using iSQL*Plus
    ~ Madrid

  • How to run a servlet with jboss

    Hello everybody my name is Noe I'm new in the forums . I want some information about how to configure and run a servlet and a jsp for the jboss server . Please help me, I have about 4 days searching information about this, and there is few information or the tutorials that I read were insuficient. I need one tutorial step by step or someone that explain me how to do this. Please help me with this
    Thank's a lot.

    Which error do you get!
    If you just want to run jsps and servlets the you should use tomcat instead of jboss.
    jboss is an aplication server that uses tomcat and adds an EJB container.
    usually you use a build.xml file to run deployment scripts but if not, then you can manually copy the project folder into the jboss --> instance ---> web zone (I said this way because I dont remember the exactly folder)
    Another thing is that you must have the project estructure built on the correct way defined by the estandar. I mean the WEB-INF folder, the web.xml file, the classes folder, etc.
    next time yo may consider to post this on the j2ee section.
    a web.xml file.
    What problem do you exactly have when doing this, you cant ask for a tutorial step by step, but punctual things. Try it and if you cant then ask.

  • How to run JSP/Servlet applications on Apache?

    As we all know that tomcat is an JSP/Servlet engine. Apache is a web server not a JSP/Servlet enabled web server. Then in order to run JSP/Servlet applications on Apache web server on unix, what should I do?
    Thanks.
    James Liu

    Can you give me some detailed information about how to combine Apache and Tomcat? Note, the application is going to run on Sun Solaris Operating System.
    By the way, where do you put your final version of application? on windows or on Unix? on tomcat or on apache?
    I am building the application using tomcat on windows, but now I almost finished the application, so I decide to move it to Unix which uses apache as the web server. But I got problems, the Servlet engine (JServ) can not understand "RequestDispatcher" (an object used to redirect jsp pages).
    Help please.
    James

  • How to run java servlet without using Web.xml?

    How to run servlet without using Web.xml? From a book, I know that web.xml descriptor is optional, but the book doesn't tell us how to run java servelet without web.xm descriptor. So how to do that? Thanks a lot.

    How to run servlet without using Web.xml?But Tomcat now uses a web.xml for its global server-wide configuration.
    If you'd like to invoke a servlet with:
    http://host/servlet/ServletName
    you have to enable the invoker servlet.
    [from an HTML]
      <FORM METHOD="POST" ACTION="/servlet/HGrepSearchSJ">
    [from resin.conf of Resin Web Server 2.1.12]
      <!--
         - The "invoker" servlet invokes servlet classes from the URL.
         - /examples/basic/servlet/HelloServlet will start the HelloServlet
         - class.  In general, the invoker should only be used
         - for development, not on a deployment server, because it might
         - leave open security holes.
        -->
      <servlet-mapping url-pattern='/servlet/*' servlet-name='invoker'/>
    [from TOMCAT5.0.19/conf/web.xml, a global server-wide web.xml file]
      <!-- The "invoker" servlet, which executes anonymous servlet classes      -->
      <!-- that have not been defined in a web.xml file.  Traditionally, this   -->
      <!-- servlet is mapped to URL pattern "/servlet/*", but you can map it    -->
      <!-- to other patterns as well.  The extra path info portion of such a    -->
      <!-- request must be the fully qualified class name of a Java class that  -->
      <!-- implements Servlet (or extends HttpServlet), or the servlet name     -->
      <!-- of an existing servlet definition.     This servlet supports the     -->
      <!-- following initialization parameters (default values are in square    -->
      <!-- brackets):                                                           -->
      <!--                                                                      -->
      <!--   debug               Debugging detail level for messages logged     -->
      <!--                       by this servlet.  [0]                          -->
        <servlet>
            <servlet-name>invoker</servlet-name>
            <servlet-class>
              org.apache.catalina.servlets.InvokerServlet
            </servlet-class>
            <init-param>
                <param-name>debug</param-name>
                <param-value>0</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
        </servlet>
    ---comment out below----------------------------------------------------------
        <!-- The mapping for the invoker servlet -->
    <!--
        <servlet-mapping>
            <servlet-name>invoker</servlet-name>
            <url-pattern>/servlet/*</url-pattern>
        </servlet-mapping>
    -->

  • How to run the payroll in Quality server..Unable to exit the payroll record

    HI Experts,
    In my Quality server the current payroll period is 6 ---2006.
    For testing purposes i want to run the payroll for next periods.
    Here i am unable to exit the payroll.It is showing message that payroll has not been run successfully for all personnel numbers.I have struck up here.
    How can run the payroll for the next period.
    Please advice me to run the payroll for later periods...
    Thanking U.
    Sairam.

    Hi Vicky,
    That is ur master data and time data is not correct, the rejected personnel no. should with the correction flag.these personnel no are stored in too called matchcode W, so u have to change the master data and time data fot that perticular personnel no. and agian release for payroll.
    if any changes required in customizing tables rather than ur infotypes then let me know.
    Hope this will give u an idea
    reward points if helpful
    Srinivas

  • How to run a servlet in tomcat

    how i can run a servlet in tomcat?

    how i can run a servlet in tomcat?Don't try to do that yet; in your other thread you have shown that your are
    not capable yet of setting up a proper development environment.
    Take my advice, you can't walk or run yet so start with the basics.
    kind regards,
    Jos

  • Running a servlet in J2EE server

    Hi there! I'm sorry if I have placed the query in a wrong place, can anybody help me where can I get some step by step process of deploying a servlet in J2EE server, please help me, and your kind help will be appreciated, regards, shabeer

    hi thanks for your response Mr meadandale, well the server is Sun's J2EE1.4 server. regards

Maybe you are looking for

  • MacBook Pro 15 inch Mid-2010 keeps randomly restarting

    So, I got this Macbook back in August of 2010, and this random restart problem just started occuring after I updated to Mountain Lion. It usually occurs when I open up heavy usage applications, such as Photoshop, iMovie, iPhoto, FaceTime,etc. When I

  • Is there a way to adjust the bass and treble on my iMac Power PC sound system?

    Is there a way to adjust the bass and treble on my iMac Power PC G5 sound system? It has a lot of volume (more than my JBL speakers).

  • Creative's Vista support is so bad - My horrible experience

    All,?Have used Creative products for years, but how they are handling Vista is bordering on criminal. I do not understand how they basically tell good customers to take a hike with such terribly bad Vista support. Here is my story:?Using my SB Li've

  • Alignment of the Popup (adf 11g)

    Hi, I am using adf 11g and one of the requirement is : Pop-up should start higher on the screens (should open up in the top). May i know how can i achieve this? <af:showPopupBehavior popupId="manualTaskPopup" align="afterStart"/> Pop-up is opening in

  • Email threads in inbox

    Hello All, I'm new to blackberry's so please forgive my ignorance.  I was wondering if there is some sort of setting to keep all my email threads in one email rather than individual messages? For example, all my sms messages stay in one thread for ea