Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 701947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:39:59+00:00 2026-05-14T03:39:59+00:00

Something strange happened to my servlets and I think I’ve figured out why, yet

  • 0

Something strange happened to my servlets and I think I’ve figured out why, yet I’m more confused. I used Netbean6.7 to develop a Paypal IPN (Instant Payment Notification) message servlet, it listens on port 8080 by default for Paypal IPN messages. I used some sample Java code from it’s web site, but when it ran, only about 1 in 10 messages came through, and they looked correct, but why 1 in 10 ? Not 100% or none ?

So I asked some questions here and got some advices, one in particular points me to Google’s App Engine, so I downloaded it and ran the demo guestbook while my IPN servlet is still running on Netbeans, the strange thing happened, after I entered “appengine-java-sdk-1.3.2\bin\dev_appserver.cmd appengine-java-sdk-1.3.2\demos\guestbook\war” from the command prompt, I went to the following url on my browser “http://localhost:8080/“, I thought I would see the Google demo guestbook page, NO, what I saw was another servlet I developed 2 years ago : “Web Academy”, online course registration app.

How can that happen? I never started it, and I haven’t touch that project for years. I guess because it’s also listening on port 8080, so now I understand why the IPN messages only came through 1 in 10 times, because another servlet was also listening on that port and could have got the messages intended for IPN, or some how those two servlets’ processes mixed up and therefore couldn’t respond to Paypal properly, and failed. In order to verify some of my guesses.

I turn off Netbeans, and ran the Google guestbook again at the prompt, this time on my browser http://localhost:8080/ points to the demo guestbook page.

My Urls look like this :

  • [A] Paypal IPN : http://localhost:8080/PayPal_App/PayPal_Servlet
  • [B] Web Academy : http://localhost:8080/

So now, my questions are :

  1. Why the “Web Academy” servlet was auto started when I ran the Paypal servlet ?
  2. If I change the IPN listening port to 8083, would that mean I can run both of them on my PC at the same time without affecting each other ?
  3. But I still don’t understand, [A] and [B] look different, if a page for [A] is refreshed, it should show the Paypal content, and another page looking at [B] should show the Web Academy content, and that’s exactly what happens when I started Netbeans to run the Paypal servlet, both pages show their respective content correctly side by side without interfering with each other, how come the IPN messages couldn’t get through 100% of the time ?
  4. In Netbeans how to assign 8080 to servlet [A] and assign port 8083 to servlet [B] ?
  5. How to turn off auto start of Web Academy by Netbeans ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:39:59+00:00Added an answer on May 14, 2026 at 3:39 am

    There are so much things questions mixed in your question that I don’t know where to start. What is sure is that you need to go back to the basics and to take some time to understand how things work. Servlets are pieces of code packaged inside a web application which is deployed in a servlet container (a server). Let’s look at how you access them:

    http://<host>:<port>/<context>/<url-pattern>
             A      B        C           D
    

    Where:

    • A is the machine (hostname or IP) where the servlet container is running.
    • B is the port to which the servlet container is listening to (not a servlet).
    • C is the path to a web application (typically the name of the web archive without the .war extension but a webapp can be mapped to “/” aka the root context).
    • D is the URL pattern to which a servlet is mapped.

    Now, let’s try to answer your questions:

    Why the “Web Academy” servlet was auto started when I ran the Paypal servlet ?

    My guess is that this old application is still deployed on the server you’re using under NetBeans (maybe NetBeans built-in server). So when you “start” the new application (and actually the server), the old one is also accessible.

    If I change the IPN listening port to 8083, would that mean I can run both of them on my PC at the same time without affecting each other ?

    As we saw, this doesn’t make sense, a server is listening to a port, not a servlet.

    But I still don’t understand, [A] and [B] look different, if a page for [A] is refreshed, it should show the Paypal content, and another page looking at [B] should show the Web Academy content, and that’s exactly what happens when I started Netbeans to run the Paypal servlet, both pages show their respective content correctly side by side without interfering with each other, how come the IPN messages couldn’t get through 100% of the time ?

    The URL [A] points to the PayPal_Servlet of the PayPal_App. The URL [B] points to the default page of a web application mapped to the root context. In other words, both URLs points to different applications.

    In Netbeans how to assign 8080 to servlet [A] and assign port 8083 to servlet [B] ?

    Sorry to repeat that but this doesn’t make sense. You can very likely change the port used by the server started in NetBeans but, still, both servlets would be served by the same server, running on a new port.

    How to turn off auto start of Web Academy by Netbeans ?

    I’m not sure but do some clean up in the directory where applications are deployed (with tomcat, check the webapps directory) or in the server.xml. Hard to say without more details on your configuration, on what you installed, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Something very strange happened here in Visual Studio 2008 (C#). After deleting an icon
Something strange happened on my local laptop: my web site that worked locally for
This question arose out of something strange that I noticed after investigating this question
Something strange happened -at least for me - , as I know in a
Something very strange happened and I have no idea why. I've lost the icon
I recently upgraded from Hudson 1.385 to Jenins 1.433 and something strange happened after
Something strange is happening in my code where I'm using a StackTrace. It's almost
Today I encountered something strange: I tried to put a utility method into an
I just noticed something strange. If I have this XML: <level number=7 background=background_5> and
I have something strange in my app. If in the ressources I have 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.