• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

basic question on Eclipse

 
Ranch Hand
Posts: 46
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Mark Curlette
Ranch Hand
Posts: 46
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic