ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

2008-03-03 Thread Prashant Patil
 Hi All,

I am trying to use ARS 7.1 API on windows platform - development.

Win2K 2003
MS SQL 2000
Tomcat Servlet engine 5.5
ARS 7.1

I have already set following environment variables:

classpath - C:\Program Files\AR System\myserver\arapi71.jar;

path - C:\Program Files\AR System\myserver\ARServer\Api\lib


I have created a netbeans web project, added the lib files accordingly (all
the jar files ). When i deploy it to tomcat engine and browse my application
URL, it gives the error:

HTTP Status 500 -

*type* Exception report

*message*

*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*

*exception*
javax.servlet.ServletException: Servlet execution threw an exception

*root cause*
java.lang.UnsatisfiedLinkError: ARInitialization
com.bmc.arsys.api.Proxy.ARInitialization(Native Method)
com.bmc.arsys.api.Proxy.init(Unknown Source)
com.bmc.arsys.api.ProxyJRpcBase.init(Unknown Source)
com.bmc.arsys.api.ProxyJRpc.init(Unknown Source)
com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source)
com.bmc.arsys.api.ProxyPool.get(Unknown Source)
com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown Source)
com.bmc.arsys.api.ARServerUser.verifyUser(Unknown Source)
com.bmc.arsys.api.ARServerUser.login(Unknown Source)
co.brch.cs.ctcdev.getPwd(ctcdev.java:71)
co.brch.cs.ctcdev.processRequest(ctcdev.java:45)
co.brch.cs.ctcdev.doGet(ctcdev.java:108)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

*note* *The full stack trace of the root cause is available in the Apache
Tomcat/5.5.23 logs.*


-



I checked the tomcat logs - stdout_20080303.log
---
- Trying to load configuration arsys_api.xml
- Could not load optional configuration arsys_api.xml
- Trying to load configuration default.xml
- constructor(arcatalog)
- Trying to load configuration arsys_api.xml
- Could not load optional configuration arsys_api.xml
- Trying to load configuration default.xml
- Connects to ARServer prashant through [EMAIL PROTECTED]
- Api source is identified as: AP24754706yVXKRwqOsAAAKQAA
log4j:WARN No appenders could be found for logger (
org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.


It must be a simple path issue but I am unable to figure it out. Please help
as I am really under a pressure to meet a deadline.


Thanks,

Prashant

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

2008-03-03 Thread Davin Lindner-Green
If you've checked both of the things Carey mentioned, also make sure
your reboot your server after setting PATH, if Tomcat is running as a
service. On Windows, a service will not see updated environment
variables until a reboot is done.

Davin

Davin Lindner-Green
[EMAIL PROTECTED]
Office: +1.303.948.1014
 
Rapid Technologies Inc. 
* BMC Level 1 Support Partner
* BMC Software Solutions Partner
* BMC Education Partner
* Remedy On Demand - Hosted ITSM Solutions
** www.raptek.com **


-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Monday, March 03, 2008 7:11 AM
To: arslist@ARSLIST.ORG
Subject: Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError:
ARInitialization

Prashant,

First guess... You do not have the C Libs in the right place for the
Java Jar to find them. ( The v7.1 Java API is still JNI dependent.)
Second guess.. You need more than just that one Jar file from the Java
API.  (maybe arutil.jar, and others?)

HTH

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.


On Mon, Mar 3, 2008 at 8:45 AM, Prashant Patil [EMAIL PROTECTED]
wrote:
 ** Hi All,

 I am trying to use ARS 7.1 API on windows platform - development.

 Win2K 2003
 MS SQL 2000
 Tomcat Servlet engine 5.5
 ARS 7.1

 I have already set following environment variables:

 classpath - C:\Program Files\AR System\myserver\arapi71.jar;

 path - C:\Program Files\AR System\myserver\ARServer\Api\lib


 I have created a netbeans web project, added the lib files accordingly

 (all the jar files ). When i deploy it to tomcat engine and browse my 
 application URL, it gives the error:

 HTTP Status 500 -

 type Exception report

 message

 description The server encountered an internal error () that prevented

 it from fulfilling this request.

 exception javax.servlet.ServletException: Servlet execution threw an 
 exception


 root cause java.lang.UnsatisfiedLinkError: ARInitialization  
 com.bmc.arsys.api.Proxy.ARInitialization(Native Method)  
 com.bmc.arsys.api.Proxy.init(Unknown Source)  
 com.bmc.arsys.api.ProxyJRpcBase.init(Unknown Source)  
 com.bmc.arsys.api.ProxyJRpc.init(Unknown Source)  
 com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source)  
 com.bmc.arsys.api.ProxyPool.get(Unknown Source)  
 com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown Source)  
 com.bmc.arsys.api.ARServerUser.verifyUser(Unknown Source)  
 com.bmc.arsys.api.ARServerUser.login(Unknown Source)
  co.brch.cs.ctcdev.getPwd(ctcdev.java:71)
  co.brch.cs.ctcdev.processRequest(ctcdev.java:45)
  co.brch.cs.ctcdev.doGet(ctcdev.java:108)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.23 logs.

 --
 ---



 I checked the tomcat logs - stdout_20080303.log
 ---
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
  - constructor(arcatalog)
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
 - Connects to ARServer prashant through 
 [EMAIL PROTECTED]
  - Api source is identified as: AP24754706yVXKRwqOsAAAKQAA 
 log4j:WARN No appenders could be found for logger 
 (org.apache.commons.digester.Digester.sax).
 log4j:WARN Please initialize the log4j system properly.


 It must be a simple path issue but I am unable to figure it out. 
 Please help as I am really under a pressure to meet a deadline.


 Thanks,

 Prashant


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum
Sponsor: www.rmsportal.com ARSlist: Where the Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

2008-03-03 Thread Peter Romain
Hi,

Is the arapi71.jar file in any other path?

I have the same problem trying to get cmdb web services to work.

If I remove the arapi71.jar file from the mid-tier/lib directory then the
web services work (but mid-tier doesn't).

I tried having the file only in the Tomcat shared/lib but then neither
mid-tier nor cmdb web services work.

I'm waiting on support for a comment on this file.

My scenario worked fine in ARS 7.01

Cheers

Peter


  Hi All,

 I am trying to use ARS 7.1 API on windows platform - development.

 Win2K 2003
 MS SQL 2000
 Tomcat Servlet engine 5.5
 ARS 7.1

 I have already set following environment variables:

 classpath - C:\Program Files\AR System\myserver\arapi71.jar;

 path - C:\Program Files\AR System\myserver\ARServer\Api\lib


 I have created a netbeans web project, added the lib files accordingly
 (all
 the jar files ). When i deploy it to tomcat engine and browse my
 application
 URL, it gives the error:

 HTTP Status 500 -

 *type* Exception report

 *message*

 *description* *The server encountered an internal error () that prevented
 it
 from fulfilling this request.*

 *exception*
 javax.servlet.ServletException: Servlet execution threw an exception

 *root cause*
 java.lang.UnsatisfiedLinkError: ARInitialization
 com.bmc.arsys.api.Proxy.ARInitialization(Native Method)
 com.bmc.arsys.api.Proxy.init(Unknown Source)
 com.bmc.arsys.api.ProxyJRpcBase.init(Unknown Source)
 com.bmc.arsys.api.ProxyJRpc.init(Unknown Source)
 com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source)
 com.bmc.arsys.api.ProxyPool.get(Unknown Source)
 com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown Source)
 com.bmc.arsys.api.ARServerUser.verifyUser(Unknown Source)
 com.bmc.arsys.api.ARServerUser.login(Unknown Source)
 co.brch.cs.ctcdev.getPwd(ctcdev.java:71)
 co.brch.cs.ctcdev.processRequest(ctcdev.java:45)
 co.brch.cs.ctcdev.doGet(ctcdev.java:108)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 *note* *The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.23 logs.*


 -



 I checked the tomcat logs - stdout_20080303.log
 ---
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
 - constructor(arcatalog)
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
 - Connects to ARServer prashant through
 [EMAIL PROTECTED]
 - Api source is identified as: AP24754706yVXKRwqOsAAAKQAA
 log4j:WARN No appenders could be found for logger (
 org.apache.commons.digester.Digester.sax).
 log4j:WARN Please initialize the log4j system properly.


 It must be a simple path issue but I am unable to figure it out. Please
 help
 as I am really under a pressure to meet a deadline.


 Thanks,

 Prashant

 ___
 UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
 Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

2008-03-03 Thread LJ Longwing
It's the first.  During my recent development efforts the 'unsatisfied link
error' was relating to the systems inability to find the arapi71.dll (or
whatever native library is needed.  On my linux workstation I had to correct
my ld_libarary_path before I was able to compile and run it properly

-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Carey Matthew Black
Sent: Monday, March 03, 2008 7:11 AM
To: arslist@ARSLIST.ORG
Subject: Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

Prashant,

First guess... You do not have the C Libs in the right place for the Java
Jar to find them. ( The v7.1 Java API is still JNI dependent.) Second
guess.. You need more than just that one Jar file from the Java API.  (maybe
arutil.jar, and others?)

HTH

--
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap Pick two.


On Mon, Mar 3, 2008 at 8:45 AM, Prashant Patil [EMAIL PROTECTED] wrote:
 ** Hi All,

 I am trying to use ARS 7.1 API on windows platform - development.

 Win2K 2003
 MS SQL 2000
 Tomcat Servlet engine 5.5
 ARS 7.1

 I have already set following environment variables:

 classpath - C:\Program Files\AR System\myserver\arapi71.jar;

 path - C:\Program Files\AR System\myserver\ARServer\Api\lib


 I have created a netbeans web project, added the lib files accordingly 
 (all the jar files ). When i deploy it to tomcat engine and browse my 
 application URL, it gives the error:

 HTTP Status 500 -

 type Exception report

 message

 description The server encountered an internal error () that prevented 
 it from fulfilling this request.

 exception javax.servlet.ServletException: Servlet execution threw an 
 exception


 root cause java.lang.UnsatisfiedLinkError: ARInitialization  
 com.bmc.arsys.api.Proxy.ARInitialization(Native Method)  
 com.bmc.arsys.api.Proxy.init(Unknown Source)  
 com.bmc.arsys.api.ProxyJRpcBase.init(Unknown Source)  
 com.bmc.arsys.api.ProxyJRpc.init(Unknown Source)  
 com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source)  
 com.bmc.arsys.api.ProxyPool.get(Unknown Source)  
 com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown Source)  
 com.bmc.arsys.api.ARServerUser.verifyUser(Unknown Source)  
 com.bmc.arsys.api.ARServerUser.login(Unknown Source)
  co.brch.cs.ctcdev.getPwd(ctcdev.java:71)
  co.brch.cs.ctcdev.processRequest(ctcdev.java:45)
  co.brch.cs.ctcdev.doGet(ctcdev.java:108)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.23 logs.

 --
 ---



 I checked the tomcat logs - stdout_20080303.log
 ---
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
  - constructor(arcatalog)
 - Trying to load configuration arsys_api.xml
 - Could not load optional configuration arsys_api.xml
 - Trying to load configuration default.xml
 - Connects to ARServer prashant through 
 [EMAIL PROTECTED]
  - Api source is identified as: AP24754706yVXKRwqOsAAAKQAA 
 log4j:WARN No appenders could be found for logger 
 (org.apache.commons.digester.Digester.sax).
 log4j:WARN Please initialize the log4j system properly.


 It must be a simple path issue but I am unable to figure it out. 
 Please help as I am really under a pressure to meet a deadline.


 Thanks,

 Prashant


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:
www.rmsportal.com ARSlist: Where the Answers Are

___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


Re: ARS 7.1 API - java.lang.UnsatisfiedLinkError: ARInitialization

2008-03-03 Thread Axton
When working with jars that use native libraries, you have to use a
common classloader for all apps that use the jars that load the native
libraries.  This means you have to place the jars that load the native
libraries in the shared/lib directory and your PATH/LD_LIBRARY_PATH
have to point to the same dll/so files.  The one pain point I have is
trying to run both the 7.0.1 and 7.1 mid-tier and other apps (Kinetic)
within a single jboss instance.  The 7.1 mid-tier includes both the 70
and 71 dll/so/jar files and I have yet to figure out which jar's call
the classloader for the native libraries.  Both versions have common
jar files (by name) that are actually different.  Kind of a pita.

Axton Grams

On Mon, Mar 3, 2008 at 10:31 AM, Peter Romain
[EMAIL PROTECTED] wrote:
 Hi,

  Is the arapi71.jar file in any other path?

  I have the same problem trying to get cmdb web services to work.

  If I remove the arapi71.jar file from the mid-tier/lib directory then the
  web services work (but mid-tier doesn't).

  I tried having the file only in the Tomcat shared/lib but then neither
  mid-tier nor cmdb web services work.

  I'm waiting on support for a comment on this file.

  My scenario worked fine in ARS 7.01

  Cheers

  Peter




Hi All,
  
   I am trying to use ARS 7.1 API on windows platform - development.
  
   Win2K 2003
   MS SQL 2000
   Tomcat Servlet engine 5.5
   ARS 7.1
  
   I have already set following environment variables:
  
   classpath - C:\Program Files\AR System\myserver\arapi71.jar;
  
   path - C:\Program Files\AR System\myserver\ARServer\Api\lib
  
  
   I have created a netbeans web project, added the lib files accordingly
   (all
   the jar files ). When i deploy it to tomcat engine and browse my
   application
   URL, it gives the error:
  
   HTTP Status 500 -
  
   *type* Exception report
  
   *message*
  
   *description* *The server encountered an internal error () that prevented
   it
   from fulfilling this request.*
  
   *exception*
   javax.servlet.ServletException: Servlet execution threw an exception
  
   *root cause*
   java.lang.UnsatisfiedLinkError: ARInitialization
   com.bmc.arsys.api.Proxy.ARInitialization(Native Method)
   com.bmc.arsys.api.Proxy.init(Unknown Source)
   com.bmc.arsys.api.ProxyJRpcBase.init(Unknown Source)
   com.bmc.arsys.api.ProxyJRpc.init(Unknown Source)
   com.bmc.arsys.api.ProxyManager.createProxy(Unknown Source)
   com.bmc.arsys.api.ProxyPool.get(Unknown Source)
   com.bmc.arsys.api.PoolingProxyManager.getProxy(Unknown Source)
   com.bmc.arsys.api.ARServerUser.verifyUser(Unknown Source)
   com.bmc.arsys.api.ARServerUser.login(Unknown Source)
   co.brch.cs.ctcdev.getPwd(ctcdev.java:71)
   co.brch.cs.ctcdev.processRequest(ctcdev.java:45)
   co.brch.cs.ctcdev.doGet(ctcdev.java:108)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  
   *note* *The full stack trace of the root cause is available in the Apache
   Tomcat/5.5.23 logs.*
  
  
   
 -
  
  
  
   I checked the tomcat logs - stdout_20080303.log
   ---
   - Trying to load configuration arsys_api.xml
   - Could not load optional configuration arsys_api.xml
   - Trying to load configuration default.xml
   - constructor(arcatalog)
   - Trying to load configuration arsys_api.xml
   - Could not load optional configuration arsys_api.xml
   - Trying to load configuration default.xml
   - Connects to ARServer prashant through
   [EMAIL PROTECTED]
   - Api source is identified as: AP24754706yVXKRwqOsAAAKQAA
   log4j:WARN No appenders could be found for logger (
   org.apache.commons.digester.Digester.sax).
   log4j:WARN Please initialize the log4j system properly.
  
  
   It must be a simple path issue but I am unable to figure it out. Please
   help
   as I am really under a pressure to meet a deadline.
  
  
   Thanks,
  
   Prashant
  
   
 ___

  UNSUBSCRIBE or access ARSlist Archives at www.arslist.org

  Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are
  

  
 ___

 UNSUBSCRIBE or access ARSlist Archives at www.arslist.org


 Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are


___
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: Where the Answers Are