Sergio, I had problems calling my Java app from a filter as well, what I ended up doing was writing a Perl wrapper and using the perl script to set my classpath and such, then just call Java from the script....works well.
-----Original Message----- From: Action Request System discussion list(ARSList) [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Tomillero Sent: Tuesday, October 21, 2008 2:52 AM To: arslist@ARSLIST.ORG Subject: Problems calling java api from filter. Hello People I have a strange problem with an java api. The api is correct but it only runs from active link. If I execute the api from the server's command line, it runs correctly, but if I execute it from a filter, it does not run returning ARERR 341. I have reviewed all logs (arerror.log, arapi.log, filter.log, sql.log) but they do not show anything special about the problem. As example, the instruction in the server's command line, that runs Ok, should be like this: java -Dentorno=D remedyServer.Access aaa RA111 password JOT000 000000000012345 00098765 "Error DSE" UA111 S JA2008 The instruction in the same in active link or filter, as it islike this: $PROCESS$ @@:java -Dentorno=D remedyServer.Access new $field1$ password $field2$ $field3$ "$field4$" "$Description$" $field5$ $field6$ "$field7$" J "$field8$" "$Field9$" "$Field10$" As I have mentioned, from an active link it runs, but from a filter fails. The configuration is ARServer 5.1.2, Windows 2000. - Is it normal that the same instruction runs from an active link and does not run from a filter? - How can I find the error? What should I trace? Thanks in advance, Sergio Tomillero -- View this message in context: http://www.nabble.com/Problems-calling-java-api-from-filter.-tp20086003p2008 6003.html Sent from the ARS (Action Request System) mailing list archive at Nabble.com. ____________________________________________________________________________ ___ 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"