This project is archived and is in readonly mode.
Rails routing breaks Java classpaths
Reported by Greg Donald | April 10th, 2009 @ 03:45 PM | in 3.x
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.
Comments and changes to this ticket
-
Greg Donald April 10th, 2009 @ 03:46 PM
<object classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"
width="600" height="400">
<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=".">
<noembed>No Java Support.</noembed> </embed> </comment> </object>
-
Greg Donald April 10th, 2009 @ 03:46 PM
I guess this ticket system doesn't care for code samples much.
I can send the code to whoever wants to see it.
-
Andriy Tyurnikov April 26th, 2009 @ 10:19 AM
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 ;)
-
Greg Donald April 26th, 2009 @ 02:45 PM
The archive does indeed exist. It is used for loading .jar files as applets.
-
Andriy Tyurnikov April 26th, 2009 @ 11:34 PM
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.
-
Greg Donald April 29th, 2010 @ 10:43 PM
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?
-
Ryan Bigg April 29th, 2010 @ 10:49 PM
- 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.
-
Santiago Pastorino February 2nd, 2011 @ 04:23 PM
- 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.
-
Santiago Pastorino February 2nd, 2011 @ 04:23 PM
- State changed from open to stale
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>