Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Error Deploying Applet project in netbean to Tomcat

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Thanked 0 Times in 0 Posts

    Thumbs up Error Deploying Applet project in netbean to Tomcat

    Hello Team,

    I wrote a little applet application which accesses a database(oracle),It run fine within netbean IDE but if I try

    to run it on a browser(Html file) it does not connect to database. The applet is organized in a package(appletform) of two

    classes(appletform.java and cod.java).

    2. Also, How can I deploy this application to tomcat on my system using netbean IDE so that it can be accessed

    from a browser.

    my html file is show below

    <TITLE>Applet HTML Page</TITLE>

    *** GENERATED applet HTML launcher - DO NOT EDIT IN 'BUILD' FOLDER ***

    If you need to modify this HTML

    launcher file (e.g., to add applet parameters),
    copy it to where your applet class is found in the SRC folder. If

    you do this,
    the IDE will use it when you run or debug the applet.

    Tip: To exclude an HTML launcher from the JAR

    file, use exclusion filters in
    the Packaging page in the Project Properties dialog.

    For more information see the

    online help.

    <H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>

    <APPLET codebase="classes" code="appletform/appletForm.class"
    archive ="lib/ojdbc14.jar,appletform/appletForm.jar"
    width=700 height=400></APPLET>

    <HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT>

    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(U nknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Un known Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at appletform.cod.connect(cod.java:116)
    at appletform.appletForm$1.run(appletForm.java:40)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.awt.EventQueue$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)

    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    at java.lang.Object.wait(Native Method)
    at java.lang.Object.wait(Object.java:485)
    at com.passlogix.vgo.ho.EventDispatchRunner.runAndWai t(EventDispatchRunner.java:83)
    at com.passlogix.vgo.ho.EventDispatchRunner.runAndWai t(EventDispatchRunner.java:48)
    at com.passlogix.vgo.ho.WindowScanner.run(WindowScann er.java:485)
    at appletform.cod.isDatabaseUp(cod.java:231)
    at appletform.appletForm.login(appletForm.java:766)
    at appletform.appletForm.cmdLoginActionPerformed(appl etForm.java:653)
    at appletform.appletForm.access$100(appletForm.java:2 8)
    at appletform.appletForm$2.actionPerformed(appletForm .java:148)
    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
    known Source)
    at java.security.AccessControlContext$1.doIntersectio nPrivilege(Unknown So

    Thanks as your help will be highly apprerciated.

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 636 Times in 540 Posts

    Default Re: Error Deploying Applet project in netbean to Tomcat

    I moved this thread to a more appropriate forum, as the Member Introduction forum is not the place for technical questions.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Thanked 832 Times in 772 Posts
    Blog Entries

    Default Re: Error Deploying Applet project in netbean to Tomcat

    Add the driver to your classpath. See the following link: Common Java Mistakes

Similar Threads

  1. 500 exception while deploying a war file in tomcat
    By nrao in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 12th, 2011, 03:42 PM
  2. Deploying an applet with jsp
    By IamKira in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: January 27th, 2010, 08:28 AM
  3. error in deploying MDB
    By s.saikia in forum JavaServer Pages: JSP & JSTL
    Replies: 0
    Last Post: October 4th, 2009, 12:06 PM
  4. Error while deploying .ear file
    By urslalitha in forum Exceptions
    Replies: 1
    Last Post: August 18th, 2009, 02:56 AM