Issue #6 resolved

class not found

Anonymous created an issue

For some reason the plugin doesn't seem to be finding the java code. Could I have missed something in the installation? Does the client or server need a specific JRE?

Any help would be appreciated. Thnx

to Install I just used :

ht clone bitbucket/Strange.... -r master, and also tried the pulling from the last commit.

then usual redmine plugin rake command & restart

Server side stack trace (var/log/redmine/production.log):

Processing ApplicationController#index (for 10.0.0.125 at 2012-04-02 16:40:56) [GET]

ActionController::RoutingError (No route matches "/plugin_assets/redmine_attach_screenshot/javascripts/com/axmor/redmine/uploader/Uploader/class.class" with {:method=>:get}): /usr/lib/ruby/vendor_ruby/action_controller/routing/recognition_optimisation.rb:66:in recognize_path' /usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:442:inrecognize' /usr/lib/ruby/vendor_ruby/action_controller/routing/route_set.rb:437:in `call' ....

Rendering /usr/share/redmine/public/404.html (404 Not Found)

Client side stack trace (java applet) :

Exception: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class

load: class com.axmor.redmine.uploader.Uploader.class not found.

java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class

at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)

at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)

....

Exception: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class

Ubuntu Server Redmine 1.1.3.stable

Comments (14)

  1. Anonymous

    Same here - java error:

    Java Plug-in 1.6.0_31 Verwendung der JRE-Version 1.6.0_31-b05 Java HotSpot(TM) Client VM

    Laden: Klasse com.axmor.redmine.uploader.Uploader.class nicht gefunden java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source) at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Ausnahme: java.lang.ClassNotFoundException: com.axmor.redmine.uploader.Uploader.class

  2. William Roush repo owner

    I run SSL on all of our boxes (with self signed certs), I don't think that is part of the problem...

    Is the .jar located in /plugin_assets/redmine_attach_screenshot/javascripts/?

  3. Daniel Plarina

    I'm having the same problem. The jar is located in /plugin_assets/redmine_attach_screenshot/javascripts/ and I still get the ClassNotFoundException.

    Not sure if this matters but here is my java version:

    Java Plug-in 10.4.1.255

    Using JRE version 1.7.0_04-b22 Java HotSpot(TM) Client VM

  4. William Roush repo owner
    • changed version to 0.2.0

    What browser are you running and on what OS? I may just spin up a VM and try to replicate every inch of this issue.

    It seems to be trying to pull the class as the path, but that would be incorrect...

  5. William Roush repo owner

    Daniel Plarina (Daniel Plarina):

    Your issue looks more like #16, latest version should fix that. :)

    @ Anonymous posters:

    Just because I'm curious: Mind rolling back to ab99781752b0? It's the oldest version available and the closest to Redmine 1.1.3, the Java applet should run fine under Java 6.

    Also try navigating to: {Redmine Server Path}/plugin_assets/redmine_inline_attach_screenshot/javascripts/uploader_applet.jar

    See if you get a download, if not, I believe you haven't renamed your plugin to "redmine_inline_attach_screenshot".

    I had a similar problem which turned out to be related to SSL and apache
    See https://forums.oracle.com/forums/thread.jspa?threadID=2387545
    

    That's a Java 7 issue (opened issue #17), which I just ran into today and is absolutely a mess, the inability to turn off SNI can lead to major issues with this in the near future as Chrome whines about updating Java. That should be unrelated to this specific issue.

  6. William Roush repo owner

    Ok, I got this error:

    ActionController::RoutingError (No route matches "/plugin_assets/redmine_inline_attach_screenshot/javascripts/com/axmor/redmine/uploader/Uploader/class.class" with {:method=>:get}):
      passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
      passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
      passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
      passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler'
      passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send'
      passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application'
      passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in `safe_fork'
      passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in `start'
      passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start'
      passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application'
      passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
      passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application'
      passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
      passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
      passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application'
      passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application'
      passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `__send__'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
      passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
      passenger (3.0.12) /helper-scripts/passenger-spawn-server:99
    

    When my redmine/public/plugin_assets directory had incorrect permissions on it.

    Verify:

    • It is writable by the user that is executing the web environment (in my case, www-data).
  7. Daniel Plarina

    I found a solution. Turns out because I was using SSL Java 1.7 was rejecting the certificate because the Apache "ServerName" attribute was not set to match the certificate.

    What tipped me off was I turned on logging in Java and saw "javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name"

    I changed the server name to match my SSL certificate and it works like a charm.

    Thx.

  8. William Roush repo owner

    Yeah that is part of SNI support that Java added in 1.7, I have issue #17 to try to resolve that on my end (though disabling SNI seems to be a bit of an issue). The odd part is Java would pop up a box with the error when I had that problem when I upgraded to 1.7, being as you didn't mention that I figured you had a slightly older version or something...

    Glad you figured that one out though!

  9. Log in to comment