• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Applet not accessing database while running through browser

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends!
I am facing a problem while using an applet to access the database through browser only. It is working fine while running through appletviewer. The error message is :

java.sql.AccessDeniedException:No connection found(java.lang.RuntimePermission error)

I am using Tomcat as a web server and using JDBC-ODBC bridge.

It is not that the security permissions are not set properly. I claim so as the same applet is doing the file input and output operations quite efficiently. It is creating problems only while accessing the database(that too while accessing through browser only, not through appletviewer). Is it due to the JDBC-ODBC bridge? Should I use type 3 or 4 pure Java Drivers for accessing the database? Is it must to use type 3 or 4 pure java drivers?

I tried to run an evaluation version of type 4 pure java driver. But I failed to use it successfully, although I went through the manual thoroughly. Could you suggest some FREE type 3 or 4 pure java drivers? Where from I can download those FREE drivers?

Awaiting for your suggestions....

Thanks and Regards-

SAMIT KUMAR MAJUMDAR.
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
well u are using applet and applet can read and write files of its own directory but applet cannot acess any file out of its directoryand it gives exception ,well in tomcat or any other server if applet is accessing file in another directory the u have to give rights in java policy file or in Tomcat you can give in catalina .policy file, when there is a database connecetion with applet please check wheteher you have give datasource reference in server.xml or not.
Well do mail if u need any help.
Thanks
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic