Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / March 2008



Tip: Looking for answers? Try searching our database.

access denied for jar when using JavaLoader

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
reed.emmons@gmail.com - 26 Mar 2008 16:43 GMT
Any ideas how I can resolve this? My code worked great on my
development server, but when posting to production, I receive a read
error on the jar file.  The file appears to have Read Write Execute
permissions when I use CHMOD. Here is the following error:

Bean creation exception during factory-method call (trying to call
getJavaLoader on research.5part.admin.cfdns.util.JavaLoaderFactory)
access denied (java.io.FilePermission \research\5part\admin\cfdns\lib
\dnsjava-2.0.3.jar read):

The error occurred in D:\INETPUB\DomainID110178\coldspring\beans
\DefaultXmlBeanFactory.cfc: line 474
Called from D:\INETPUB\DomainID110178\coldspring\beans
\DefaultXmlBeanFactory.cfc: line 337
Called from D:\INETPUB\DomainID110178\research\5part\admin\cfdns
\test.cfm: line 35
reed.emmons@gmail.com - 26 Mar 2008 17:11 GMT
I created a simpler test without using coldspring. Here is the
following error:

Security: The requested template has been denied access to \research
\5part\admin\cfdns\lib\dnsjava-2.0.3.jar.
The following is the internal exception message: access denied
(java.io.FilePermission \research\5part\admin\cfdns\lib
\dnsjava-2.0.3.jar read)

The error occurred in D:\INETPUB\DomainID110178\research\5part\admin
\cfdns\javaloader\JavaLoader.cfc: line 48
Called from D:\INETPUB\DomainID110178\research\5part\admin\cfdns\util
\JavaLoaderFactory.cfc: line 44
Called from D:\INETPUB\DomainID110178\research\5part\admin\cfdns\util
\JavaLoaderFactory.cfc: line 64
Called from D:\INETPUB\DomainID110178\research\5part\admin\cfdns
\test2.cfm: line 14

46 :         {
47 :             file = createObject("java",
"java.io.File").init(iterator.next());
48 :             if(NOT file.exists())
GArlington - 27 Mar 2008 11:19 GMT
On Mar 26, 4:11 pm, reed.emm...@gmail.com wrote:
> I created a simpler test without using coldspring. Here is the
> following error:
[quoted text clipped - 18 lines]
> "java.io.File").init(iterator.next());
> 48 :                    if(NOT file.exists())

Assuming that the path is correct (you will have to check and re-check
that yourself) as far as I remember *nix platform always disliked
world executable scripts. Make sure that the permissions are NOT
higher than 755...
reed.emmons@gmail.com - 27 Mar 2008 14:54 GMT
Yes, the paths are definitely correct and I tried it at 755 and 777.
This is an IIS 6.0 *Shared Hosting* setup.  Is there anything in the
IIS configuration that would disable this?
GArlington - 27 Mar 2008 15:54 GMT
On Mar 26, 4:11 pm, reed.emm...@gmail.com wrote:
> I created a simpler test without using coldspring. Here is the
> following error:
[quoted text clipped - 18 lines]
> "java.io.File").init(iterator.next());
> 48 :                    if(NOT file.exists())

I am getting completely different error when I use your code:
"The selected method exists was not found."

Read http://livedocs.adobe.com/coldfusion/7/htmldocs/00000187.htm#2711961
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.