• 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

getting error

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai

i have set path , classpath , java_home and Tomcat_home as under

classpath:

C:\bea\weblogic81\server\lib;
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\servlet-api.jar;
C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\S3TestServerWeb\WEB-INF\lib;


JAVA_HOME:

C:\bea\jdk142_08

path:

C:\bea\jdk142_08\bin;

Tomcat_Home:

C:\Program Files\Apache Software Foundation\Tomcat 5.0

is it sufficient to run a jsp file.

iam able run some sample hello.jsp.

but for running other than this simple file iam getting the following

errors.

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: database/HBQueryData
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.jsp.ActivateScenario_jsp._jspService(ActivateScenario_jsp.java:188)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError: database/HBQueryData
org.apache.jsp.jsp.ActivateScenario_jsp._jspService(ActivateScenario_jsp.java:64)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.30

i tried a week long and finally posting this to the forum.

kindly do need ful to me.


 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi arekonda,
You need to put all the relevant jar files which you refer in your application in to WEB-INF/lib folder. Do this and restart tomcat and give a try. It should work. Basically you are keeping all the jar files in the classpath that's it.

Hope this helps
 
arekonda ramesh babu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai sivaraman,

which jar files i need to put.

if iam not wrong shall i assume the jar file u mentioned is about :

C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib

servlet-api.jar

setting under

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\S3TestServerWeb\WEB-INF\lib

please siva im i correct?, in this regard.

Thanks in advance for ur reply
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error message says it cannot find database.HBQueryData:

java.lang.NoClassDefFoundError: database/HBQueryData

 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note that Tomcat pays NO attention to classpath.

Your tomcat installation should have the "class-loader-howto.html" file under tomcat-docs. This explains exactly how Tomcat looks for library jars and class files.

Bill
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
arekonda ramesh babu,

You wrote:

the jar file u mentioned is about



and

Thanks in advance for ur reply



"u" and "ur" are not real words. Please use only real words such as "you" and "your" when posting to the Ranch.

bear
JavaRanch Sheriff
 
arekonda ramesh babu
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hai Carol Enderlin,

i checked that

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\S3TestServerWeb\WEB-INF\lib;

is placed correctly.

you mentioned "Error message says it cannot find database.HBQueryData".

could you please help me that what can i do now to rectify this problem.

please do need ful to me.


Rameshbabu
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Somewhere, one of your JSP is trying to import a class named:
database.HBQueryData.

If that class is part of a third party library, then the jar file from that project will need to be placed in /WEB-INF/lib.
If that class is one of your own then the class needs to be placed under:
/WEB-INF/classes/database.
 
A feeble attempt to tell you about our stuff that makes us money
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic