Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help: ClassNotFound from reference in JSP object classid  RSS feed

 
Nick Foster
Greenhorn
Posts: 6
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Posts: 22203
38
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!