We help IT Professionals succeed at work.
Get Started

Cannot get java controller to compile

Last Modified: 2013-12-11
I am taking over a basic web application and trying to add a new page, and pretty much have basic skills in java / spring, although I'm good in Oracle and basic static web pages.

I understand the functionality of this application inside and out, but the previous programmer is no longer here.

This is in a corporate environment, RAD-7, Tomcat, etc.

My goal is to simply copy one page to a test page and just prove that I can do that.

I got close but one thing doesn't seem to work, the Controller won't compile.

It looks like there are four components I need to copy:

- OrigPageDAO.java
- OrigPageDAOImpl.java
- OrigPageController.java

plus the page OrigPage.jsp

anyway, I just copied OrigPage components and made NewPage components, and change around various variable names.

- NewPageDAO compiled
- NewPageDAOImpl compiled

- NewPageController did NOT compile

on the object name is an error, says "[objectName] cannot be resolved to a type", i.e. EDMMainDAO, see code snippet.
Watch Question
This problem has been solved!
Unlock 2 Answers and 17 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE