954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

JSP: Configuration issues

Hi everyone,

Don't know for sure if this is the right place to post the question, but it goes:

I'm starting a JSP project and I'm having some difficulties with Tomcat/Java configuration.

I'm using:
- apache-tomcat-6.0.16
- java_ee_sdk-5_05-windows

Directory where the code is located: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\lw\
Directory where the beans are: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\lw\classes (Here is the a directory called BD and a directory called beans).

-BD directory: with the class to connect with database.
-beans directory: Has java files with the rest of the code.

The problem is the follow:
I can't import "ligacao_bd.java" (import bd.ligacao_bd.* but it gives me an error: "package.bd.ligacao_bd does not exist"

I'm desperate for a solution.
Thanks in advance.

rubendoliveira
Newbie Poster
2 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

You got the folder structure wrong. Here is basic structure of it http://www.daniweb.com/forums/post625873-6.html . Also you can learn more here .

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

Firstly thanks.
But the problem keeps happening. The import statement is still underlined (red) and keeps saying that package does not exist.

My file structure is fine now.. so I can't understand the problem.

rubendoliveira
Newbie Poster
2 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

if it says it doesn't exist, it doesn't exist. So you're missing those classes or don't have them in the right place.
NEVER try to second-guess error messages, they're correct (if sometimes a bit cryptic, which this one isn't).

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You