Problem with Using Spring IoC and Web Start

Greetings Everyone,
I have a small Swing app that runs using spring to load its dependencies. I can run it from a single signed jar file locally, and I setup my .jnlp file to try it with Web Start.
Unfortunately, I get the following:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
     at java.security.AccessController.checkPermission(AccessController.java:546)
     at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
     at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
     at java.lang.Class.checkMemberAccess(Class.java:2157)
     at java.lang.Class.getDeclaredMethods(Class.java:1790)
     at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:429)
     at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:412)
     at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:363)
     at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(PersistenceAnnotationBeanPostProcessor.java:296)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:745)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:448)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     at java.security.AccessController.doPrivileged(Native Method)
     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:881)
     at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:597)
     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:366)
     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
     at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
     at org.chibgrant.main.MainPOE.main(MainPOE.java:31)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at com.sun.javaws.Launcher.executeApplication(Launcher.java:1321)
     at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1267)
     at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1066)
     at com.sun.javaws.Launcher.run(Launcher.java:116)
     at java.lang.Thread.run(Thread.java:619)
I am running build 1.6.0_13-b03. Anyone run into this before?
Thanks for any insights...!

I suspect you may have solved this yourself by now, but in case not.
I've recently created a desktop application that uses Spring and is launched via Java Web Start and I did have a problem getting it to launch via Web Start until I modified my code to ensure the classloader setup is done before any Spring methods are called.
i.e.
    // This is needed for Java Web Start compatibility.
    UIManager.getLookAndFeelDefaults().put("ClassLoader", Loader.class.getClassLoader());In may application this code is invoked in the class that starts my application (Loader) before I load anything via Spring.
Cheers,
Stephen.

Similar Messages

  • Slow InitialContext with Weblogic 6.1 and Web Start App.

    All,
    I have a Swing-based client app that makes EJB calls on a Weblogic 6.1sp2
    server. It works great as a standalone app run from the command line. The
    problem is when I deploy it using Java Web Start. The 'new
    InitialContext(props)' call takes from 5-20 seconds. This is on a single
    user development machine with the server and client running on the same
    machine.
    When I run it from the command line the initial context only takes 1-2
    seconds to create. This is using the exact same .jar file used in the Web
    Start case.
    The Web Start environment is somewhat different than command line clients.
    I think it is similar to the applet sandbox environment (security,etc).
    Other than this, the client/server interaction speed is good (they should
    be since they are on the same machine!). Any ideas?
    System particulars:
    Weblogic 6.1sp2. Native IO.
    Host=127.0.0.1 (Reverse DNS Lookup disabled in server).
    Java 1.3.1
    Java Web Start 1.0.1
    Windows NT 4.0sp5
    Thanks for any help.

    I have some more details. If I sign the .jar file and give the app AllPermissions, then it connects quickly (well, about 1s).
    Any ideas on which specific permissions will be needed to make this connection quickly?

  • Problem with signed SAML assertion and Web Services Manager

    Folks,
    I’m having some issues trying to generate a proper signed SAML assertion using JDeveloper 10.1.3. I am securing a java proxy class using the wizard as described in http://www.oracle.com/technology/products/jdev/howtos/1013/wssecure/10gwssecurity_howto.html .
    On the OWSM side, I have a service that I am securing with SAML - Verify WSS 1.0 Token. If I set the "Allow signed assertions only" property to false I can complete the service call. However, when it is set to true I am receiving the following fault: javax.xml.rpc.soap.SOAPFaultException: SAML token verification failed.
    When I examine the message going to OWSM in a packet analyzer, it is missing the signature in the SAML assertion. The <saml:Assertion> tags looks like:
          <saml:Assertion MajorVersion="1" MinorVersion="1"
                          xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
                          xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
                          AssertionID="yM0oqZgF0N1a1td6yzKgOQ22"
                          IssueInstant="2007-01-23T17:15:27Z"
                          Issuer="HealthMarkets_s3">
            <saml:Conditions NotBefore="2007-01-23T17:15:27Z"
                             NotOnOrAfter="2007-01-24T17:15:27Z"/>
            <saml:AuthenticationStatement AuthenticationInstant="2007-01-23T17:15:27Z"
                                          AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:password">
              <saml:Subject>
                <saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified">client_s3</saml:NameIdentifier>
                <saml:SubjectConfirmation>
                  <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</saml:ConfirmationMethod>
                </saml:SubjectConfirmation>
              </saml:Subject>
            </saml:AuthenticationStatement>
          </saml:AssertionI have selected the Sign Outbound Messages in step 3 of the Secure Web Proxy Wizard. This step uses the DSA-SHA1 algorithm.
    Any help is greatly appreciated.
    Thanks in advance,
    Joseph

    Thanks for the response. I am not using any pages for this application yet... just calling the web service from SOAP UI or any Web Service testing tool causes the problem.
    All that has to be done to replicate it is to build a simple EJB 3.0 JPA bean using the entities from tables wizard and then add named query as follows:
    @NamedQuery(name = "BomHeader.findByDesc", query = "select o from BomHeader o where o.bomDesc like :p_bomDesc")
    then build a session bean with the wizard that includes the JPA persistence unit and the entity and subsequently use the wizard to wrap the session bean in a web service.
    The whole replication process should take 5 minutes if you have some database tables to work with. It breaks when the web service is called.
    Thanks in advance

  • Is there a problem with Allen Bradley PLC and web server export options

    It says this object will not run in a client version. I have a development version and a client version. Maybe I'm not understanding the error message. Lookout 5.0

    The process you upload to a web server needs to be a poor client process. It means you have to create a client process without the PLC driver and a server process with the PLC driver. You will just upload the client process and the server process will stay on the Lookout Server machine.
    There are several links on the support site those explain the prefered client-server architecture to choose for a Lookout application.
    Building a Sample Server-Client System in Lookout
    Converting a Lookout Server Process Into a Client
    ://ae.natinst.com/operations/ae/public.nsf/fca7838c4500dc10862567a100753500/4c13547ceb6354a886256b80...
    Hope this is a good starting point for your Lookout application design.
    Roland

  • Problem with the data source and web.xml

    I have an issue where JSC is removing my resource reference:
    <resource-ref>
    <description>Creator generated DataSource Reference</description>
    <res-ref-name>jdbc/localOracleDatabase</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    from the web.xml and sun-web.xml.
    The application has been working great in the IDE for months then wham, no more data source definition. I try and add the reference manually and the IDE takes it out. I am "NOT" adding it to the .xml's in the build area. Why is JSC removing the data source entry?

    This continues to be a problem. The only way that I can get around the problem is to drag a table from the data source onto the design pallete and then the datasource is added back to the web.xml. I can run fine for 10 or 15 runs then the entry is once again removed from the web.xml.
    Help please!

  • Problems with using Macbook Pro and Cinema Displayscreen

    I have a Macbook Pro running Snow Leopard (too scared of what happened to my wifes Mac using Lion). I have Parallels on it with windows 7. I use that to run Autocad LT. I have the Macbook connected to a 27" Cinema Display.
    If I boot up the Windows environment to use Autocad on just the Macbook Pro it takes about 1 minute. If connected to the Cinema display then it can take 5-7 mins. as well Autocad can be sluggish and slow to respond to commands.
    Can anyone tell me why and if this can be solved?

    If i had to guess, I would say prosessor stress is to blame.  When you are running a virtual machine, it borrows resources from the host to run the guest OS.  The CPU, however, is prioritized Host first, then guest second.  With a 27" display connected via Display Port. that is a larger strain on the processor.   Honestly, on my 23" iMac, I see a WORLD of difference between the speed of the host and the speed of the guest.  That is just something you live with on virtual machines, nothing compares to hardware.     I'm sorry I dont have a better answer, but that is all I have.

  • I purchased Adobe Creative Suite C2 and have been using it for years on the same computer no problem with using it. Recently upon opening Photoshop I received a pop up window saying due to Adobe Software security we need you to activate your CS2 software.

    I purchased Adobe Creative Suite C2 and have been using it for years on the same computer without any problems with using it. Recently upon opening Photoshop I received a pop up window saying due to Adobe Software security we need you to activate your CS2 software. I tried, phone activation, web activation, nothing is working. I have the serial number and my Adobe account information. Any suggestions?

    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3
    Mylenium

  • Problem with use of COM+ Transaction and DB Transaction

    Problem with use of COM+ Transaction and DB Transaction
    We build a Web site that use sometime COM+ Transaction and sometime DB
    Transaction. If we use a COM+ Transaction and a few seconds later we try to use
    a Database Transaction (OracleConnection.BeginTransaction), we get the error
    Connection is already part of a local or a distributed transaction
    Of course the error does not produce everytime; it takes some try before we get
    the problem. And of course, if i use pooling=false on the connection string,
    the problem does not appear.
    i run the Web page
    and push the COM+ Transaction and DB Transaction one after the other for some
    times and the problem should appear.
    Environment: Windows server 2003, .Net Framework 1.1, ODP.Net 9.2.0.401,
    Database Server 9.2.0.4

    > Why in form builder can't I...
    Is this happening at runtime or at buildtime? You'll need to provide more info on what you are actually doing that's causing the problem.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Hallo Apple, what does it mean this Message0x7fff7500b300 resumeBackgroundConversion: background conversion started/resumed for lv 82832E6C-B6AC-46A6-8836-715414EBE8F4. Because I have a Problem with my CPU: Kernel_task and corestoraged

    Hallo Apple,
    what does it mean this Message0x7fff7500b300 resumeBackgroundConversion: background conversion started/resumed for lv 82832E6C-B6AC-46A6-8836-715414EBE8F4.
    Because I have a Problem with my CPU: Kernel_task and corestoraged.

    I'm having this same issue. I also have this line in my log, which is curious:
    12/14/14 7:13:07.822 PM netbiosd[16766]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.smbd
    Is this related to the problem? What does it mean?
    My 2010 27" iMac running Yosemite won't wake up from sleep.

  • I am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    i am going to buy unlocked iphone 5.. i will be going to india nxt months and will stay there for a while... so my question is will i get warrenty in india.. and will there be any problem with using indian sims..?? thnx for the help..

    The warranty for the iPhone is not and has never been International.
    Warranty and support are ONLY valid in the country of origin.  The only exception is the EU where the entire EU is treated as one country.
    If the device will be used in India, buy it in India.
    An unlocked iPhone will work on any supported GSM carrier world wide.  The LTE portion of a US purchased, unlocked iPhone is unlikely to work outside North America as it does not support the appropriate bands used in other countries.

  • I have two Iphones with different email addresses sharing one Apple ID. Will that cause problems with using messaging and FaceTime?

    I have two Iphones 5 with different email addresses sharing one Apple ID account.Both are using IOS 8.
    I would like to set up a new Apple Id for one of the phones and remove it from the old account.
    If I do that, can I move all of the purchased apps and songs to the new Apple account?
    Also, will sharing one Apple ID account with two devices cause problems with using messaging and FaceTime?

    Sharing an iCloud account between two devices can be done without causing issues with iMessage and FaceTime, just go into Settings for each of these functions and designate separate points of contact (i.e. phone number only, or phone number and unique email address).  While that works, you'll then face the problem where a phone call to one iPhone will ring both if on the same Wi-Fi network -- but again, that can be avoided by changing each phone's settings.
    Rather than do all that, don't fight it -- use separate IDs for iCloud.  You can still use a common ID for iTunes purchases (the ID for purchases and iCloud do not have to be the same) or you can use Family Sharing to share purchases from a primary Apple account.

  • Hello. I have a problem with OEL 6.5 and ocfs2. When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.

    Hello.
    I have a problem with OEL 6.5 and ocfs2.
    When I mount ocfs2 with mount -a command all ocfs2 partitions mount and work, but when I reboot no ocfs2 partitions auto mount. No error messages in log. I use DAS FC and iSCSI FC.
    fstab:
    UUID=32130a0b-2e15-4067-9e65-62b7b3e53c72 /some/4 ocfs2 _netdev,defaults 0 0
    #UUID=af522894-c51e-45d6-bce8-c0206322d7ab /some/9 ocfs2 _netdev,defaults 0 0
    UUID=1126b3d2-09aa-4be0-8826-0b2a590ab995 /some/3 ocfs2 _netdev,defaults 0 0
    #UUID=9ea9113d-edcf-47ca-9c64-c0d4e18149c1 /some/8 ocfs2 _netdev,defaults 0 0
    UUID=a368f830-0808-4832-b294-d2d1bf909813 /some/5 ocfs2 _netdev,defaults 0 0
    UUID=ee816860-5a95-493c-8559-9d528e557a6d /some/6 ocfs2 _netdev,defaults 0 0
    UUID=3f87634f-7dbf-46ba-a84c-e8606b40acfe /some/7 ocfs2 _netdev,defaults 0 0
    UUID=5def16d7-1f58-4691-9d46-f3fa72b74890 /some/1 ocfs2 _netdev,defaults 0 0
    UUID=0e682b5a-8d75-40d1-8983-fa39dd5a0e54 /some/2 ocfs2 _netdev,defaults 0 0

    What is the output of:
    # chkconfig --list o2cb
    # chkconfig --list ocfs2
    # cat /etc/ocfs2/cluster.conf

  • I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to use sync data in my iphone back to itune n my lap top. how can I perform this task with out loosing data in my i phone.

    I am using i 4 phone. recently I had a problem with my lap top and had formatted hard disk of it. Now I want to sync data in my iphone back to itune on my lap top. how can I perform this task with out loosing data in my i phone.

    Hey floridiansue,
    Do you have an installed email program such as Microsoft Outlook?  If your email is through an online login, such as Gmail, etc, then one will have to create an email association with a program such as Microsoft Outlook on the PC for this Scan to Email system to function.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------
    I am not an HP employee.

  • HT201210 nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and somet

    nowadays have many user have problem with update to ios7 and need active with apple id maybe in the future in order escape from these problems must be stop use these products else. Because of simple user don't know about this technology and sometime just hear from other user that it 's difficult to use then force they change phone that use to handle to another.

    It is a feature to discourage the theft of iPhones by making them useless if resold. It's not going anywhere. It's simple: just don't buy a phone until you make sure that the activation lock has been disabled.

  • Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings!

    Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app.  You could see the website in the backround working but safari crashes after clicking on the error window.   Any suggestions?

    Turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.

Maybe you are looking for

  • No longer able to sign adobe PDF's.

    We have a shared PDF out on the network that our end users use for requesting new employee access.  It's worked fine forever.  We are currently running Reader 11.  All of a sudden it has quit working, can't figure it out.  Anyone seen this before.

  • How to set imgae/photo size in a OLE word

    Hi, I am developing a OLE object to extract data from SAP system into a MS Office word documnet. I am downloading image from application server to presentation server and displaying it on word documnet using create object g_wordobj 'Word.Basic' . cal

  • Problem with Hum in Voice

    I must use Voice in Garage Band.  Can hear hum even when recording in absolute quiet.  Think it is from the internal hard drive in my MacBook.  If that is the case, anyone know how to remove it in the first place or what the frequency is?  This recor

  • Best Practice: Correct Use Tax Calculation

    Hello, Our company is wanting to find out how other companines handle the below business process scenario involving use tax: Company orders 100 units of materials for delivery to location A.  Tax is calculated on PO based on location A ship-to addres

  • Anybody know how to put an "iChat me" button in iWeb?

    You can see from my i-web site http://www.ribblederby.co.uk that I have managed to put a Skype-me button on my News page, which monitors my status and provides a direct link to Skype me. Skype provide the html for the buttons on their website, and I'