Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails routing breaks Java classpaths

#2475

Rails routes are interfering with the loading of my Java applet's dependencies.

The problem seems to be that Rails is changing the dots in my classpaths to forward slashes.

Here's an example dependency from the logs that's failing:

ActionController::RoutingError (No route matches "/com/objex/panywhere/Pedigree_RS_Bundle.class" with {:method=>:get}):

Here's my embed code that works perfectly outside of Rails:

   width="600"
   height="400">

  archive="/artemis.jar"
  code="artemis.ProgenyAnywhereWrapper.class"
  width="600"
  height="400"
  codebase=".">

No Java Support.

Reported by Greg Donald · April 10th, 2009 @ 03:45 PM

State: stale
Milestone: 3.x
Assigned to: nobody
Importance: none

Activity

  1. Greg Donald
    Greg Donald

    <object classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"

       width="600"
       height="400"&gt;
    
    

    <param name="archive" value="/artemis.jar" /> <param name="code" value="artemis.ProgenyAnywhereWrapper.class" /> <param name="codebase" value="."> <comment> <embed type="application/x-java-applet"

      archive="/artemis.jar"
      code="artemis.ProgenyAnywhereWrapper.class"
      width="600"
      height="400"
      codebase="."&gt;
    
    

    <noembed>No Java Support.</noembed> </embed> </comment> </object>

    April 10th, 2009 @ 03:46 PM

  2. Greg Donald
    Greg Donald

    I guess this ticket system doesn't care for code samples much.

    I can send the code to whoever wants to see it.

    April 10th, 2009 @ 03:46 PM

  3. Andriy Tyurnikov
    Andriy Tyurnikov

    It is not looks like framework error to me. =)

    http://java.sun.com/j2se/1.5.0/d...

    I think embed tag do not have archive attribute ;)

    April 26th, 2009 @ 10:19 AM

  4. Greg Donald
    Greg Donald

    The archive does indeed exist. It is used for loading .jar files as applets.

    http://www.w3.org/TR/REC-html40/...

    http://java.sun.com/docs/books/t...

    April 26th, 2009 @ 02:45 PM

  5. Andriy Tyurnikov
    Andriy Tyurnikov

    Link that you've posted using tag, and you trying to use tag, which is different. This is not framework error. You should request jar file from server, and your HTML code is wrong - it asks .class file from server. Try to read the link , that I've provided, or ask on java applet forums.

    April 26th, 2009 @ 11:34 PM

  6. Andriy Tyurnikov
    Andriy Tyurnikov

    EMBED tag i different from APPLET tag

    April 26th, 2009 @ 11:35 PM

  7. Ryan Bigg
    Ryan Bigg
    • State changed from new to invalid

    As discussed.

    April 29th, 2010 @ 10:40 PM

  8. Greg Donald
    Greg Donald

    Why has this been marked as invalid? Does that mean you don't want to fix it? Are you saying Rails won't ever work with Java applets? "As discussed" with who?

    April 29th, 2010 @ 10:43 PM

  9. Ryan Bigg
    Ryan Bigg
    • State changed from invalid to incomplete

    I assumed that Andriy's answer fixed your problem as you had not replied for an entire year. Has it not? If so, please provide a failing test case.

    April 29th, 2010 @ 10:49 PM

  10. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 3.x

    May 4th, 2010 @ 06:48 PM

  11. Ryan Bigg
    Ryan Bigg
    • Tag cleared.

    Automatic cleanup of spam.

    October 9th, 2010 @ 09:55 PM

  12. Santiago Pastorino
    Santiago Pastorino
    • State changed from incomplete to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    February 2nd, 2011 @ 04:23 PM

  13. Santiago Pastorino
    Santiago Pastorino
    • State changed from open to stale

    February 2nd, 2011 @ 04:23 PM