Win a copy of Terraform in Action this week in the Cloud forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Getting class not found exception

 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi to all i am new to jsp.........now only i am learning jsp.......
I wrote a code to connect jsp with database using jdbc..but i got class not foun exception...


this is the console output i am getting...

-- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=Hypersonic,database=localDB
State: FAILED
Reason: java.sql.SQLException: File input/output error C:\myserver\Jboss\jboss-4.0.2\jboss-4.0.2\server\default\data\hypersonic\localDB.properties java.io.FileNotFoundException: C:\myserver\Jboss\jboss-4.0.2\jboss-4.0.2\server\default\data\hypersonic\localDB.properties (Access is denied)
Depends On Me:
jboss.jca:service=ManagedConnectionFactory,name=DefaultDS


16:17:21,027 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
16:17:21,074 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
16:17:21,089 INFO [JkMain] Jk running ID=0 time=0/31 config=null
16:17:21,089 INFO [Server] JBoss (MX MicroKernel) [4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)] Started in 11s:593ms







help me out please ........
 
Sheriff
Posts: 67601
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
If you are new to JSP you should be establish god habits from the start and not putting Java code into your JSP. That is a poor practice that has been discredited for over 10 years now.

Move the Java code to a servlet or bean.
 
Greenhorn
Posts: 12
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And may be you should mask your JDBC credentials before you post ...

~ Alagesh
 
Bartender
Posts: 1845
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the file it is looking for (C:\myserver\Jboss\jboss-4.0.2\jboss-4.0.2\server\default\data\hypersonic\localDB.properties) exist?
Who "owns" that file? What user?
What user is Jboss running as? Do they have access to that file?

 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic