Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 17781 invoked from network); 14 Jun 2007 19:03:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 19:03:31 -0000 Received: (qmail 40821 invoked by uid 500); 14 Jun 2007 19:03:32 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 40806 invoked by uid 500); 14 Jun 2007 19:03:32 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 40795 invoked by uid 99); 14 Jun 2007 19:03:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 12:03:31 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of brandon.goodin@gmail.com designates 209.85.146.176 as permitted sender) Received: from [209.85.146.176] (HELO wa-out-1112.google.com) (209.85.146.176) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jun 2007 12:03:27 -0700 Received: by wa-out-1112.google.com with SMTP id k22so756772waf for ; Thu, 14 Jun 2007 12:03:07 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bbkz7Dln3wX+onQEu7cQNKAhOh4QlvQs+Kh19tnkH3uBTUpi49/auN5ZG6jZiqkFEElBp471NJ0lN1A7x/9OmCDo75GqDCBuDwv8NswmZkmSove/ygBhgw/UnY9wBVOabaHK0RlJUIcVC/35luvccl9NE1yREsp5pbCfNI4MoKs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mkjG87TmTMV7T9O3hkIq4+ppfaR06y5dyQp+Fm9zHg/0OymU/X0smlGmHVWSAfq7ZyGp7qhJCFF9oOMo81CfrZPXdyyRzl03Y1mEoAPOoEqNzYlQAdnXk4LHJFgBzHGOw8p92k7poT/L0L8wmgSneZQe1WS/r1Ap2mk/+LGTJiM= Received: by 10.114.75.1 with SMTP id x1mr2082712waa.1181847787176; Thu, 14 Jun 2007 12:03:07 -0700 (PDT) Received: by 10.115.54.20 with HTTP; Thu, 14 Jun 2007 12:03:06 -0700 (PDT) Message-ID: <2fe5ef5b0706141203s591619b5p3150100a740c8ff6@mail.gmail.com> Date: Thu, 14 Jun 2007 14:03:06 -0500 From: "Brandon Goodin" To: user-java@ibatis.apache.org Subject: Re: Ibatis & Java Web Start In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_48301_28055311.1181847786942" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_48301_28055311.1181847786942 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Greetings Adnan, It may be an issue with how you have JavaWebStart configured. It sounds to me as though you do not have your security permissions configured correctly. Be sure you have the following security configuration in your jnlp file. ... ... Brandon On 6/14/07, Adnan Atic wrote: > > Hi, > I am trying to distribute an app via java web start, but am having > difficulties with JWS not parsing my sql config files properly. I use > Ibatis2 with ibatis DAO Framework. > Right before I load my dao.xml config file I set default class loader : > > Resources.setDefaultClassLoader( > MyClass.class.getClassLoader() ); > Reader reader = > Resources.getResourceAsReader("dao.xml"); > daoManager = DaoManagerBuilder.buildDaoManager(reader); > > When I try to run it from jws I get this error: > > SEVERE: com.ibatis.dao.client.DaoException: Error while configuring > DaoManager. Cause: java.lang.RuntimeException: Error occurred. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. > Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. > Cause: java.lang.RuntimeException: Error parsing XPath > '/sqlMap/resultMap/result'. Cause: > java.security.AccessControlException: access denied > (java.lang.RuntimePermission accessDeclaredMembers) > > Does anyone know if it is even possible to use ibatis dao framework from > java web start? > > Thanks > > ------=_Part_48301_28055311.1181847786942 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Greetings Adnan,

It may be an issue with how you have JavaWebStart configured. It sounds to me as though you do not have your security permissions configured correctly. Be sure you have the following security configuration in your jnlp file.
...
  <security>
      <all-permissions/>
  </security>
...

Brandon

On 6/14/07, Adnan Atic < Adnan_Atic@hilton.com> wrote:
Hi,
I am trying to distribute an app via java web start, but am having
difficulties with JWS not parsing my sql config files properly. I use
Ibatis2 with ibatis DAO Framework.
Right before I load my dao.xml config file I set default class loader :

                Resources.setDefaultClassLoader (
MyClass.class.getClassLoader() );
                Reader reader =
Resources.getResourceAsReader("dao.xml");
                daoManager = DaoManagerBuilder.buildDaoManager(reader);

When I try to run it from jws I get this error:

SEVERE: com.ibatis.dao.client.DaoException: Error while configuring
DaoManager.  Cause: java.lang.RuntimeException: Error occurred.  Cause:
com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause:
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'.
Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.
Cause: java.lang.RuntimeException: Error parsing XPath
'/sqlMap/resultMap/result'.  Cause:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)

Does anyone know if it is even possible to use ibatis dao framework from
java web start?

Thanks


------=_Part_48301_28055311.1181847786942--