House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

JSP in ColdFusion issue

Author:
Eric Roberts
02/08/2010 05:49 PM

I finally heard back from the company that makes this.  Apparently I needed to put the properties file in the directory with the jar files in my web root.  Putting these files in the lib and classes dirs in the CF wwwroot\web-inf dir doesn't work at all.  Oy! Eric Unauthorized Applet Use is almost assuredly a java security policy error. You'll need to use the PolicyTool to create a policy file that will reside in your user.home directory that specifies that this applet codebase can do what it wants to do, which is probably to access your system hardware. Judah > > OK...so I added the directory to the actual web root and now I get the > following error: > > Java Plug-in 1.6.0_18 > Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM > User home directory = C:\Documents and Settings\Administrator > ---------------------------------------------------- > c:   clear console window > f:   finalize objects on finalization queue > g:   garbage collect > h:   display this help message > l:   dump classloader list > m:   print memory usage > o:   trigger logging > q:   hide console > r:   reload policy configuration > s:   dump system and deployment properties > t:   dump thread list > v:   dump thread stack > x:   clear classloader cache > 0-5: set trace level to <n> > ---------------------------------------------------- > basic: Added progress listener: > sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@6355dc > basic: Applet loaded. > basic: Applet resized and added to parent container > basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt > 657965 us, pluginInit dt 229256641 us, TotalTime: 229914606 us > network: Cache entry not found [url: > https://localhost/jobappl_qa/EzApplet/ezsign-applet.properties, version: > null] > network: Connecting > https://localhost/jobappl_qa/EzApplet/ezsign-applet.properties with > proxy=DIRECT > network: Connecting http://localhost:443/ with proxy=DIRECT > network: Connecting > https://localhost/jobappl_qa/EzApplet/ezsign-applet.properties with cookie > "CFID=200; CFTOKEN=80699936; JSESSIONID=1030f248a0dd$CF$8C$F" > basic: Removed progress listener: > sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@6355dc > java.lang.SecurityException: Unauthorized Applet Use! >        at com.ez_signature.signature.Sign.init(Sign.java:61) >        at > sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown > Source) >        at java.lang.Thread.run(Unknown Source) > Exception: java.lang.SecurityException: Unauthorized Applet Use! > Ignored exception: java.lang.SecurityException: Unauthorized Applet Use! > basic: Applet initialized > basic: Starting applet > basic: completed perf rollup > basic: Applet started > basic: Told clients applet is started > >> Here is the xml in web.xml... >> >> <servlet> >>        <servlet-name>SaveServlet</servlet-name> >> >  <servlet-class>com.ez_signature.signature.SaveServlet</servlet-class> >> </servlet> >> <servlet-mapping> >>        <servlet-name>SaveServlet</servlet-name> >>        <url-pattern>/SaveServlet</url-pattern> >> </servlet-mapping> >> >> I am not sure what that does 100%...but I would assume that it is to save > the signature image when you click on the button to do >> so...that is just a guess. > > Those are just defining a servlet name and corresponding URL pattern. > With that defined, the URL http://yourserver.com/SaveServlet should > invoke the program located in com.ez_signature.signature named > SaveServlet. > >> Here are the errors from the java console (this is the part that may as > well be in Greek *grin*...the only thing I can gleen is that >> the pathing may not be right, but as far as I can tell, everything is > placed properly physically speaking.): >> >> Java Plug-in 1.6.0_18 >> Using JRE version 1.6.0_18-b07 Java HotSpot(TM) Client VM >> User home directory = C:\Documents and Settings\Administrator >> >> ... >> >> java.io.FileNotFoundException: > https://localhost/jobappl_qa/EzApplet/ezsign-applet.jar > > Does this URL resolve properly? It looks like you need a client-side > applet to use this, and that the web server can't find it. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, on > > > >


Search cf-talk

March 20, 2010

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31