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 8429427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:20:07+00:00 2026-06-10T05:20:07+00:00

I have 3 projects. One is a Servlet (made inside a Dynamic Web Project),

  • 0

I have 3 projects. One is a Servlet (made inside a Dynamic Web Project), the other is a socket project (also a Dynamic Web Project) and the last is a real Dynamic Web Project that I want to use to unify the other 2 project and can upload both on my Apache Tomcat Server (it not my idea, is my boss idea).

I have added the Servlet and Socket project to the Unify Project using "java built path" option on eclipse.

I have run the Unify Project inside Eclipse/Tomcat and when I made a Telnet Command to the Socket, it works!.

But the Servlet Project is not working because Tomcat it can’t found the Listener Servlet Class.

I think that the problem is on web.xml of the Unify Project

For me the problem is this line:

<servlet-class>
   com.ninatec.fnet3.bussiness_servlet.web.ListenerServlet
</servlet-class>

So, how can reference that class from the Servlet Project on the Unify Project?

  • 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-06-10T05:20:09+00:00Added an answer on June 10, 2026 at 5:20 am

    You’d need to put that class (com.ninatec.fnet3.bussiness_servlet.web.ListenerServlet) in the same project as the servlet because that is where’s it’s used.

    If you’re unable to do this due to design constraints from your boss then you’d either have to add the other project as a dependency of the servlet project; put the built jar file in the /lib folder of the created war file (or use dependency management such as maven). Or the other solution would be to add it as a Tomcat dependency. To do this when you have a tomcat server instance in eclipse you’d do:

    • Servers view
    • Double click the Tomcat instance
    • Open launch config
    • Classpath tab
    • Click user entries item
    • Add projects
    • Select the project with com.ninatec.fnet3.bussiness_servlet.web.ListenerServlet in it

    But the last solution is probably the worst ideally you’d have the listener class in the servlet project as I doubt it would be used anywhere else, or is it?

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

Sidebar

Related Questions

I have two projects.One project is build in MVC asp.net and the other project
i have to design a localhost application that one code at other project returns
I have a solution with 3 projects.One of UI (contains web pages) and one
I have two different projects and in one, I have a class that defines
I have 2 projects. One project is a core and contains the GUI which
I have two projects configured identically for log4net. One project logs fine; however, the
I have recently merged together 5 of my stand-alone projects into one project to
I have several projects open in an Eclipse workspace. Like so: com.harbl.project.one com.harbl.project.two com.harbl.project.three
I have to use a jpa project on one of my projects, but I'm
I have checked out a java servlet project from subversion that has a strange

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.