0 Replies Latest reply: Aug 14, 2012 7:23 AM by 955291 RSS

    Applet deploiment with mixed code enables cannot find resource bundle

    955291
      I am having issues getting applets to run when mixed code checking is enabled. More specifically I cannot seem to get resource bundles to work. This is a simple loging recever applet for log4j and I am at a loss as to where they should be located. I tried in WEB-INF/classes and in the case of this example i placed the properties files in a signed jar (sl.jar). I must assume that I am missing something here.

      This is a tomcat 5.5 server.

      The contents of the sl.jar file are:
      [root@comserver1 applets]# jar -tvf sl.jar
      593 Tue Aug 14 06:10:40 EDT 2012 META-INF/MANIFEST.MF
      738 Tue Aug 14 06:10:40 EDT 2012 META-INF/ACF200.SF
      958 Tue Aug 14 06:10:40 EDT 2012 META-INF/ACF200.RSA
      0 Tue Aug 14 06:09:18 EDT 2012 META-INF/
      0 Tue Aug 14 05:27:40 EDT 2012 com/
      0 Tue Aug 14 05:27:40 EDT 2012 com/orion/
      0 Tue Aug 14 05:27:40 EDT 2012 com/orion/commons/
      130 Tue Aug 14 05:27:40 EDT 2012 com/orion/commons/servletlocation.properties
      136 Tue Aug 14 05:27:40 EDT 2012 com/orion/commons/servletlocation_en_US.properties
      133 Tue Aug 14 05:27:40 EDT 2012 com/orion/commons/servletlocation_en.properties
      133 Tue Aug 14 05:27:40 EDT 2012 servletlocation_en.properties
      136 Tue Aug 14 05:27:40 EDT 2012 servletlocation_en_US.properties
      130 Tue Aug 14 05:27:40 EDT 2012 servletlocation.properties

      It is called simply by:
      public class ServletLocation implements java.io.Serializable {
           private static final long serialVersionUID = 3487495895819393L;
           /**
           *
           */
           private static final String BUNDLE_NAME = "servletlocation";
           private static final String normalHttp = "http://";
           private static final String secureHttp = "https://";
           private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);



      With mixed code disabled I get:

      Java Plug-in 10.5.0.06
      Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM
      User home directory = C:\Documents and Settings\tmoyer
      ----------------------------------------------------
      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.ProgressMonitorAdapter@d8dc2e
      network: Connecting http://192.168.56.200/applets/AlarmMonitorPanel.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200:80/ with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/AlarmMonitorPanel.jar with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Downloading resource: http://192.168.56.200/applets/AlarmMonitorPanel.jar
           Content-Length: 1,037,362
           Content-Encoding: null
      security: Blacklist revocation check is enabled
      security: Trusted libraries list check is enabled
      security: Trusted libraries list file not found
      security: Accessing keys and certificate in Mozilla user profile: null
      security: Loading Deployment certificates from C:\Documents and Settings\tmoyer\Application Data\Sun\Java\Deployment\security\trusted.certs
      security: Loaded Deployment certificates from C:\Documents and Settings\tmoyer\Application Data\Sun\Java\Deployment\security\trusted.certs
      security: Loading certificates from Deployment session certificate store
      security: Loaded certificates from Deployment session certificate store
      security: Validate the certificate chain using CertPath API
      security: Loading Root CA certificates from C:\Program Files\Java\jre7\lib\security\cacerts
      security: Loaded Root CA certificates from C:\Program Files\Java\jre7\lib\security\cacerts
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
      network: Connecting http://192.168.56.200/applets/lib/cos.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/cos.jar with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Downloading resource: http://192.168.56.200/applets/lib/cos.jar
           Content-Length: 59,876
           Content-Encoding: null
      security: Trusted libraries list file not found
      network: Connecting http://192.168.56.200/applets/lib/acf200.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/acf200.jar with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Downloading resource: http://192.168.56.200/applets/lib/acf200.jar
           Content-Length: 1,447,306
           Content-Encoding: null
      security: Trusted libraries list file not found
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Applet loaded.
      basic: Applet resized and added to parent container
      basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 270546 us, pluginInit dt 2710176 us, TotalTime: 2980722 us
      network: Connecting http://192.168.56.200/applets/sl.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/sl.jar with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Downloading resource: http://192.168.56.200/applets/sl.jar
           Content-Length: 3,734
           Content-Encoding: null
      security: Trusted libraries list file not found
      URL jar:http://192.168.56.200/applets/sl.jar!/servletlocation.properties
      network: Connecting http://192.168.56.200/applets/lib/log4j.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/log4j.jar with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      basic: Applet initialized
      basic: Starting applet
      network: Downloading resource: http://192.168.56.200/applets/lib/log4j.jar
           Content-Length: 369,667
           Content-Encoding: null
      basic: completed perf rollup
      basic: Applet made visible
      basic: Applet started
      basic: Told clients applet is started
      security: Trusted libraries list file not found
      network: Connecting http://192.168.56.200/applets/servletlocation.class with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/servletlocation.class with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Connecting http://192.168.56.200/applets/servletlocation_en.class with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/servletlocation_en.class with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      network: Connecting http://192.168.56.200/applets/servletlocation_en_US.class with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/servletlocation_en_US.class with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
      network: Connecting http://192.168.56.200:8080/orionservlets/AcfClientLoger?userid=-1&action=activateAppender&object=localhost with proxy=DIRECT
      network: Connecting http://192.168.56.200:8080/ with proxy=DIRECT
      network: Connecting http://192.168.56.200:8080/orionservlets/AcfClientLoger?userid=-1&action=activateAppender&object=localhost with cookie "JSESSIONID=49D33C4A4F84CD7E2ED2F1C9A33E09B8"


      With it enabled i get:

      Java Plug-in 10.5.0.06
      Using JRE version 1.7.0_05-b06 Java HotSpot(TM) Client VM
      User home directory = C:\Documents and Settings\tmoyer
      ----------------------------------------------------
      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.ProgressMonitorAdapter@e819a8
      basic: Plugin2ClassLoader.addURL parent called for http://192.168.56.200/applets/AlarmMonitorPanel.jar
      basic: Plugin2ClassLoader.addURL parent called for http://192.168.56.200/applets/lib/cos.jar
      basic: Plugin2ClassLoader.addURL parent called for http://192.168.56.200/applets/lib/acf200.jar
      basic: Plugin2ClassLoader.addURL parent called for http://192.168.56.200/applets/sl.jar
      basic: Plugin2ClassLoader.addURL parent called for http://192.168.56.200/applets/lib/log4j.jar
      network: Connecting http://192.168.56.200/applets/AlarmMonitorPanel.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200:80/ with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/AlarmMonitorPanel.jar with cookie "JSESSIONID=05A7ECB378D0AD83C171D0C83E98BB10"
      network: Downloading resource: http://192.168.56.200/applets/AlarmMonitorPanel.jar
           Content-Length: 1,037,362
           Content-Encoding: null
      security: Blacklist revocation check is enabled
      security: Trusted libraries list check is enabled
      security: Trusted libraries list file not found
      security: Accessing keys and certificate in Mozilla user profile: null
      security: Loading Deployment certificates from C:\Documents and Settings\tmoyer\Application Data\Sun\Java\Deployment\security\trusted.certs
      security: Loaded Deployment certificates from C:\Documents and Settings\tmoyer\Application Data\Sun\Java\Deployment\security\trusted.certs
      security: Loading certificates from Deployment session certificate store
      security: Loaded certificates from Deployment session certificate store
      security: Validate the certificate chain using CertPath API
      security: Loading Root CA certificates from C:\Program Files\Java\jre7\lib\security\cacerts
      security: Loaded Root CA certificates from C:\Program Files\Java\jre7\lib\security\cacerts
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: Obtain certificate collection in Root CA certificate store
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
      network: Connecting http://192.168.56.200/applets/lib/cos.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/cos.jar with cookie "JSESSIONID=05A7ECB378D0AD83C171D0C83E98BB10"
      network: Downloading resource: http://192.168.56.200/applets/lib/cos.jar
           Content-Length: 59,876
           Content-Encoding: null
      security: Trusted libraries list file not found
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      network: Connecting http://192.168.56.200/applets/lib/acf200.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/acf200.jar with cookie "JSESSIONID=05A7ECB378D0AD83C171D0C83E98BB10"
      network: Downloading resource: http://192.168.56.200/applets/lib/acf200.jar
           Content-Length: 1,447,306
           Content-Encoding: null
      security: Trusted libraries list file not found
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Plugin2ClassLoader.getPermissions CeilingPolicy allPerms
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      basic: Applet loaded.
      basic: Applet resized and added to parent container
      basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 4205539 us, pluginInit dt 2632269 us, TotalTime: 6837808 us
      network: Connecting http://192.168.56.200/applets/sl.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/sl.jar with cookie "JSESSIONID=05A7ECB378D0AD83C171D0C83E98BB10"
      network: Downloading resource: http://192.168.56.200/applets/sl.jar
           Content-Length: 3,734
           Content-Encoding: null
      security: Trusted libraries list file not found
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      URL jar:http://192.168.56.200/applets/sl.jar!/servletlocation.properties
      basic: Applet initialized
      basic: Starting applet
      basic: completed perf rollup
      basic: Applet made visible
      basic: Applet started
      basic: Told clients applet is started
      network: Connecting http://192.168.56.200/applets/lib/log4j.jar with proxy=DIRECT
      network: Connecting http://192.168.56.200/applets/lib/log4j.jar with cookie "JSESSIONID=05A7ECB378D0AD83C171D0C83E98BB10"
      network: Downloading resource: http://192.168.56.200/applets/lib/log4j.jar
           Content-Length: 369,667
           Content-Encoding: null
      security: Trusted libraries list file not found
      security: Validate the certificate chain using CertPath API
      security: The certificate hasnt been expired, no need to check timestamping info
      security: Found jurisdiction list file
      security: No need to checking trusted extension for this certificate
      security: The CRL support is disabled
      security: The OCSP support is disabled
      security: This OCSP End Entity validation is disabled
      security: Checking if certificate is in Deployment denied certificate store
      security: Checking if certificate is in Deployment permanent certificate store
      Exception in thread "Thread-19" java.lang.ExceptionInInitializerError
           at alarmmonitorpanel.LoggingReceiver$Slurper.run(LoggingReceiver.java:61)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.util.MissingResourceException: Can't find bundle for base name servletlocation, locale en_US
           at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
           at java.util.ResourceBundle.getBundleImpl(Unknown Source)
           at java.util.ResourceBundle.getBundle(Unknown Source)
           at com.orion.commons.ServletLocation.<clinit>(ServletLocation.java:34)
           ... 2 more
      Exception in thread "Timer-2" java.lang.NoClassDefFoundError: Could not initialize class com.orion.commons.ServletLocation
           at alarmmonitorpanel.AlarmMonitor$updateServer.run(AlarmMonitor.java:477)
           at java.util.TimerThread.mainLoop(Unknown Source)
           at java.util.TimerThread.run(Unknown Source)

      Any insight would be appreciated.