tracker issue : CF-3542825

select a category, or use search below
(searches all categories and all time range)
Title:

REST registration and class not found errors

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 04/16/2013

Components: REST Services

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Mac All

Vote Count: 0

Trying to register a REST app and I'm getting:

"Error","ajp-bio-8012-exec-2","04/16/13","08:51:38",,"art"
java.lang.ClassNotFoundException: art
	at coldfusion.xml.rpc.BaseSkeletonClassLoader.findClass(BaseSkeletonClassLoader.java:277)
	at coldfusion.rest.classloader.RestSkeletonClassLoader.findClass(RestSkeletonClassLoader.java:136)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

I get this for all the CFCs that are REST enabled.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3542825

External Customer Info:
External Company:  
External Customer Name: cfjedimaster
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

  1. December 09, 2014 00:00:00: 1_3542825.rar

Comments:

So - from what I can tell - this error comes from me using an Alias to a folder in Apache. If I register the app under a folder defined in a virtualhost. It works. But I've got a folder alias and I cannot register anything underneath that.
Comment by External U.
15671 | April 16, 2013 08:32:48 AM GMT
Please specify the environment and steps to reproduce this issue. (Comment added from ex-user id:nawani)
Comment by Adobe D.
15672 | October 03, 2013 02:54:50 AM GMT
I did say that I used an alias - in the comments. That's the step right there. Not a virtualhost, just an alias. Environment was OSX.
Comment by External U.
15673 | October 03, 2013 04:48:12 AM GMT
1) Say we have a folder named folder1 that contains a rest service 2) Create alias of this folder1 say folder1alias (folder1alias and folder1 shares same memory) 3) Now while registering this service what is the path given in Root path(CFAdmin->Rest Services)? (Comment added from ex-user id:nawani)
Comment by Adobe D.
15674 | October 03, 2013 06:49:40 AM GMT
For the path I gave the real physical path. So, in Apache, I have an alias like so: /testignzone == /Users/ray/Dropbox/testingzone This is nowhere near webroot. CFMs work fine here. But a REST registration gives what I described in the report.
Comment by External U.
15675 | October 03, 2013 04:33:20 PM GMT
Please follow these steps: 1. Open httpd.conf file present in Apache\conf 2. search for <IfModule alias_module> and add Alias /webRootAlias "C:/aliasFolder/" 3. At the end of module tag add <Directory "C:/aliasFolder/"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> 4. Now try accessing the REST enabled CFCs. Let me know if this works?
Comment by HariKrishna K.
15676 | December 08, 2014 08:03:03 AM GMT
I already had an alias, and I had pretty similar settings. This is what I have now - should it not work? <Directory "/Users/ray/Dropbox/websites/testingzone"> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all Require all granted </Directory>
Comment by External U.
15677 | December 08, 2014 10:00:21 AM GMT
It should have worked. Attaching the test code. Register the REST Service, in the CF administrator. The URL I used is : http://localhost/webRootAlias/CF-3542825/index.cfm
Comment by HariKrishna K.
15678 | December 08, 2014 11:08:27 AM GMT
I'm sorry - I see this bug is for "registration". I was able to register them via the CF Admin ok. The folder I mean. I just can't actually *use* them via a URL. I think we are on the same page with that but I want to be sure. To repeat: I am able to register them in the CF Admin. But I can't access it via the browser.
Comment by External U.
15679 | December 08, 2014 11:29:30 AM GMT
You can place a cfm(not REST related, any simple cfm) in the alias folder and access it from the browser? does that work?
Comment by HariKrishna K.
15680 | December 08, 2014 11:57:06 AM GMT
Yep, CFMs work fine.
Comment by External U.
15681 | December 08, 2014 11:59:01 AM GMT
Is there something that I am missing, because of which I am not able to repro this issue?
Comment by HariKrishna K.
15682 | December 08, 2014 12:03:49 PM GMT
Given an Apache virtual directory alias, are you able to register a service there *and* hit it via URL.
Comment by External U.
15683 | December 08, 2014 12:04:45 PM GMT
Yes, I'm able to and it works
Comment by HariKrishna K.
15684 | December 08, 2014 12:21:33 PM GMT
Well, ok, I wonder if I've got something else going on then, just sw this in the Apache error log: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
Comment by External U.
15685 | December 08, 2014 01:06:13 PM GMT
Ok.. so can you change the loglevel to debug in mod_jk.conf which can be located under conf directory of apache. restart the servers and send the connector log file.
Comment by HariKrishna K.
15686 | December 09, 2014 07:30:29 AM GMT
I've updated it. I should add - if I go to localhost/rest, I get an internal server error. If I go to localhost:8500/rest, I do not. Obviously it doesn't run anything as that isn't a complete REST url, but it may be indicative of something. Ok - I see something in the log - will post back more in a bit.
Comment by External U.
15687 | December 09, 2014 10:27:09 AM GMT
This is the error: [Tue Dec 09 09:54:59 2014] [21553:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php
Comment by External U.
15688 | December 09, 2014 10:27:41 AM GMT
I should add - I cleared the log, reran the request again. I see all of this for ONE hit: [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/rest/rest4/ows [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php [Tue Dec 09 10:11:50 2014] [21554:140735218639616] [debug] jk_translate::mod_jk.c (3692): missing uri map for localhost:/index.php
Comment by External U.
15689 | December 09, 2014 10:42:19 AM GMT
Hi Ray, Can you try enabling JkMountCopy to on, as suggested by this blog. http://tomcat.10.x6.nabble.com/mod-jk-missing-uri-map-td2151079.html
Comment by HariKrishna K.
15690 | December 12, 2014 02:15:50 AM GMT
Didn't help.
Comment by External U.
15691 | December 12, 2014 02:04:17 PM GMT
I see this bug being open for about 9 months now, did you get this working? Can I go ahead and close this bug?
Comment by HariKrishna K.
15692 | September 23, 2015 11:01:39 PM GMT
Well, if I had gotten a response nine months ago, the answer may have been different. As you can see, I responded within a day, but then nothing in that time. I have a whole new machine now so I don't have access to this file anymore. This is unfortunate, but, there ya go.
Comment by External U.
15693 | September 24, 2015 07:44:41 AM GMT
Sorry about that. But seems there is little that can done at this point in time. We will close it for now but in case something turns up or someone else reports a similar issue, we will be more than glad to investigate.
Comment by HariKrishna K.
15694 | September 24, 2015 07:59:35 AM GMT