• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Help: ClassNotFound from reference in JSP object classid

 
Greenhorn
Posts: 6
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey folks,

I've been learning OWF and modifying a sample widget downloaded from https://www.owfgoss.org/download.html in the sample widgets zip file.

The widget is a Java JApplet which uses a JSP file.

I've changed the file name and file structure of the project as I removed a lot of contents I didn't need. However, when I get the war file in Tomcat and try to access the JApplet it cannot find my simpleApp.class though I followed the implementation found in the sample widget.

The error that I get is:
Application Error
ClassNotFound
export.simpleApp.class

The section of the JSP file is:


The file directory is as follows:
ProjectFolder
--build
----empty
----generated-sources
------ap-source-output
----web
------css
--------bootstrap.css
------js
--------dojo-1.5.0-windowname-only
----------dojo
------------resources
--------------blank.html
------------owfdojo.js
------------owfdojo.js.uncompressed.js
----------dojox
------------io
--------------init_src.html
------------secure
--------eventing
----------rpc_relay.uncompressed.html
------META-INF
--------MANIFEST.MF
------WEB-INF
--------classes
----------export
----------simpleApp$1.class
----------simpleApp$2.class
----------simpleApp.class
--------lib
----------plugin.jar
------index.jsp
------widget.jsp
--dist
----WebExport.war
--nbproject
----private
------private.properties
------private.xml
----ant-deploy.xml
----build-impl.xml
----genfiles.properties
----project.properties
----project.xml
--src
----conf
------MANIFEST.MF
----java
------export
--------simpleApp.java
--web
----css
------bootstrap.css
----js
------dojo-1.5.0-windowname-only
--------dojo
----------resources
------------blank.html
----------owfdojo.js
----------owfdojo.js.uncompressed.js
--------dojox
----------io
------------init_src.html
----------secure
------eventing
--------rpc_relay.uncompressed.html
----WEB-INF
----index.jsp
----widget.jsp
--build.xml
 
Nick Foster
Greenhorn
Posts: 6
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Moved to the Applets forum.



I thought since it dealt with the JSP referencing an Java class it would be for that purpose. But thanks.
 
Sheriff
Posts: 28408
101
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
------WEB-INF
--------classes
----------export
----------simpleApp$1.class
----------simpleApp$2.class
----------simpleApp.class


Your applet classes need to be somewhere where they can be downloaded from the server. But the WEB-INF folder and everything under it is specifically hidden from that. Put them in the same place as your Javascript and CSS files.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic