aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes basic question on Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "basic question on Eclipse" Watch "basic question on Eclipse" New topic
Author

basic question on Eclipse

Mark Curlette
Ranch Hand

Joined: May 26, 2011
Posts: 46

Hello,
I am a new to the forum, and i apologize for asking a basic question on eclipse.
I just download Eclipse Java EE IDE for Web Developers, and i tried to create a dynamic web project from it.

Everything seems to be working fine, except i don't see the class directory under my WEB-INF. All i see under my WEB-INF are the lib directory , and the web.xml.

Please correct me if i am wrong because I believe that i should have the class directory under my WEB-INF. I think i have missed something important.

Please help me if you can.

Thanks so much in advance for all of your helps.

Minh


Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

You are looking at the source folder - the classes directory and the class files will not appear there. Instead, Eclipse compiles the classes to build/classes. When Eclipse deploys the project, it builds the deployment package at the destination directory (exact location depends on the server you are deploying to).


JBoss In Action
Mark Curlette
Ranch Hand

Joined: May 26, 2011
Posts: 46

Thank you Peter for the reply.

Yes, i looked at the source folder and i saw the default output folder is build/classes.

Since i am new to Eclipse, i write a small java application consists of one java class resides in the src folder , and one jsp uses the java class as a bean.

When i ran the program, it gave me this error :

"org.apache.jasper.JasperException:checkuserlogin.jsp(9,0) The value for the useBean class attribute CheckUser is invalid."

I did further research, and i suspected that i received the error because of my checkUser.class was not presented in the webcontent/WEB-INF/classes.

Please correct me if i am on the wrong track, since i try figure it out all how to to fix this error.

Thanks so much in advance,

Minh Tran

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5843
    
    7

It would help if you posted the text for checkuserlogin.jsp, or at least the few lines before and after line 9, and also identify line 9.

Googling the error leads me to suspect that your bean doesn't have a public default constructor. So you should also post the bean source.

If the source is proprietary and you cannot post it as is, either obfuscate it or recreate the issue with an example.

And by the way, it is usually better to ask your real question up front, you'll get more helpful replies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: basic question on Eclipse