SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Hi Jarl, The solution was to create an additional pluginsvr folder with duplicates xml configuration files, add an extra line in armonitor.cfg to start the additional plugin server, and restart the ar server process. Here are my two lines in armonitor.cfg: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr2;C:\Program Files\BMC Software\ARSystem\pluginsvr2\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 8. september 2009 08:51 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for And the solution was? Regards, Jarl 2009/9/6 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: Hi again Just wanted to close this subject off. I tried it off on another server and it worked beautifully. Thanks for the help! Best regards. Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 2. september 2009 19:46 Til: arslist@ARSLIST.ORG Emne: SV: Java ARDBC plugin failing with multiple instances No suitable driver found for Hi guys I have experimented with multiple plugin servers, starting with two to start off with. I have copied the contents of the %ARSYSTEMHOME%\pluginsvr directory to %ARSYSTEMHOME%\pluginsvr2 and set up the second server to listen on port 9998, then I modified the armonitor.cfg so it contained the following two lines: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr2;C:\Program Files\BMC Software\ARSystem\pluginsvr2\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m Also making sure that the jar file containing our ARDBC plugin is in a subdirectory to the pluginsvr/pluginsvr2 dir. The peculiar thing is, that the armonitor never starts either of the servers. I went further with my experiments, and not even the original pluginsvr will start via armonitor now. I checked armonitor.log and found several lines like: Wed Sep 02 19:08:44 2009 No such file or directory : C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMa I can run both plugins manually at the same time, but when i try to run either of them through armonitor they fail. In an attempt to get a clean log under 100.000 kb i backed up and deleted armonitor.log and now it simply doesn't log any more Any suggestions are very welcome! best regards Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 19. august 2009 11:22 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for Static init method is something like this: /** * Implementation of the static init method, to do any static initialization for this class. * This method is called once for each class that implements one of the ARPluggable interface * on plugin server startup * @param context */ public static void init(ARPluginContext context){ System.out.println(Static initialize method invoked); System.out.println(UserDefined value for sample + context.getConfigItem(sample)); } -- Jarl 2009/8/19 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: Slightly OT : No static init routine
SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Hi again Just wanted to close this subject off. I tried it off on another server and it worked beautifully. Thanks for the help! Best regards. Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 2. september 2009 19:46 Til: arslist@ARSLIST.ORG Emne: SV: Java ARDBC plugin failing with multiple instances No suitable driver found for Hi guys I have experimented with multiple plugin servers, starting with two to start off with. I have copied the contents of the %ARSYSTEMHOME%\pluginsvr directory to %ARSYSTEMHOME%\pluginsvr2 and set up the second server to listen on port 9998, then I modified the armonitor.cfg so it contained the following two lines: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr2;C:\Program Files\BMC Software\ARSystem\pluginsvr2\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m Also making sure that the jar file containing our ARDBC plugin is in a subdirectory to the pluginsvr/pluginsvr2 dir. The peculiar thing is, that the armonitor never starts either of the servers. I went further with my experiments, and not even the original pluginsvr will start via armonitor now. I checked armonitor.log and found several lines like: Wed Sep 02 19:08:44 2009 No such file or directory : C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMa I can run both plugins manually at the same time, but when i try to run either of them through armonitor they fail. In an attempt to get a clean log under 100.000 kb i backed up and deleted armonitor.log and now it simply doesn't log any more Any suggestions are very welcome! best regards Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 19. august 2009 11:22 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for Static init method is something like this: /** * Implementation of the static init method, to do any static initialization for this class. * This method is called once for each class that implements one of the ARPluggable interface * on plugin server startup * @param context */ public static void init(ARPluginContext context){ System.out.println(Static initialize method invoked); System.out.println(UserDefined value for sample + context.getConfigItem(sample)); } -- Jarl 2009/8/19 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: Slightly OT : No static init routine found, skipping init call which function is the static init routine ?? I have initialize() - is there another? And on another note - noticed this in the logs: Loading Java PluginSet DB2 Number of shared URLs for group DB2 is 0 Loading all Java Plugins for the group DB2 Attempting to load Java Plugin TD99 Number of URLs for plugin TD99 is 2 URL1: file:/C:/Program%20Files/BMC%20Software/ARSystem/Arserver/api/javaplug ins/BECplugins/arapi.jar URL2: file:/C:/Programmer/IBM/SQLLIB/java/db2java.zip No static init routine found, skipping init call - TD99 Done to call init plugin TD99 Successfully loaded Java Plugin TD99 It appears that the dual plugin server solution is the only answer. I'll look into that tonight. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk Til remedy spørgsmål: becrem...@bec.dk BEC - det fælles it-hus, der gør forskellen for finansielle virksomheder -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 19. august 2009 10:14 Til: arslist@ARSLIST.ORG Emne: SV: Java ARDBC plugin failing with multiple instances No suitable driver found for Hi Jarl and Sean, I tried the pluginset approach, and it didn't resolve anything. I still get this error for the second plugin: Error
SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Hi guys I have experimented with multiple plugin servers, starting with two to start off with. I have copied the contents of the %ARSYSTEMHOME%\pluginsvr directory to %ARSYSTEMHOME%\pluginsvr2 and set up the second server to listen on port 9998, then I modified the armonitor.cfg so it contained the following two lines: C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr2;C:\Program Files\BMC Software\ARSystem\pluginsvr2\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMain -x b00011101496 -i C:\Program Files\BMC Software\ARSystem -m Also making sure that the jar file containing our ARDBC plugin is in a subdirectory to the pluginsvr/pluginsvr2 dir. The peculiar thing is, that the armonitor never starts either of the servers. I went further with my experiments, and not even the original pluginsvr will start via armonitor now. I checked armonitor.log and found several lines like: Wed Sep 02 19:08:44 2009 No such file or directory : C:\Program Files\Java\jdk1.6.0_12\jre\bin\java -Xmx512m -classpath C:\Program Files\BMC Software\ARSystem\pluginsvr;C:\Program Files\BMC Software\ARSystem\pluginsvr\arpluginsvr75.jar com.bmc.arsys.pluginsvr.ARPluginServerMa I can run both plugins manually at the same time, but when i try to run either of them through armonitor they fail. In an attempt to get a clean log under 100.000 kb i backed up and deleted armonitor.log and now it simply doesn't log any more Any suggestions are very welcome! best regards Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 19. august 2009 11:22 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for Static init method is something like this: /** * Implementation of the static init method, to do any static initialization for this class. * This method is called once for each class that implements one of the ARPluggable interface * on plugin server startup * @param context */ public static void init(ARPluginContext context){ System.out.println(Static initialize method invoked); System.out.println(UserDefined value for sample + context.getConfigItem(sample)); } -- Jarl 2009/8/19 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: Slightly OT : No static init routine found, skipping init call which function is the static init routine ?? I have initialize() - is there another? And on another note - noticed this in the logs: Loading Java PluginSet DB2 Number of shared URLs for group DB2 is 0 Loading all Java Plugins for the group DB2 Attempting to load Java Plugin TD99 Number of URLs for plugin TD99 is 2 URL1: file:/C:/Program%20Files/BMC%20Software/ARSystem/Arserver/api/javaplug ins/BECplugins/arapi.jar URL2: file:/C:/Programmer/IBM/SQLLIB/java/db2java.zip No static init routine found, skipping init call - TD99 Done to call init plugin TD99 Successfully loaded Java Plugin TD99 It appears that the dual plugin server solution is the only answer. I'll look into that tonight. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk Til remedy spørgsmål: becrem...@bec.dk BEC - det fælles it-hus, der gør forskellen for finansielle virksomheder -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 19. august 2009 10:14 Til: arslist@ARSLIST.ORG Emne: SV: Java ARDBC plugin failing with multiple instances No suitable driver found for Hi Jarl and Sean, I tried the pluginset approach, and it didn't resolve anything. I still get this error for the second plugin: Error establishing jdbc connection to the datasource jdbc:db2:CD99 No suitable driver found for jdbc:db2:CD99 I have yet to try the dual java pluginserver approach, just have another assignment blocking the pipe at the moment - I hope I can set it up tonight. with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 18
SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Hi Jarl and Sean, I tried the pluginset approach, and it didn't resolve anything. I still get this error for the second plugin: Error establishing jdbc connection to the datasource jdbc:db2:CD99 No suitable driver found for jdbc:db2:CD99 I have yet to try the dual java pluginserver approach, just have another assignment blocking the pipe at the moment - I hope I can set it up tonight. with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 18. august 2009 19:51 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for Plugingroups are done this way: plugins pluginset name=group1 plugin nameCD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:CD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeUser/user passwordsomePassword/password dbtableprefixT/dbtableprefix dbtablecreatorCD99/dbtablecreator /userDefined /plugin plugin nameOD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:OD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeOtherUser/user passwordsomeOtherpassword/password dbtableprefixTD/dbtableprefix dbtablecreatorOD99/dbtablecreator /userDefined /plugin /pluginset plugin nameJARL.SUPER.PLUGIN/name typeARDBC/type codeJAVA/code filenamejarl.jar/filename classnamecom.bmc.jarl/classname pathelement type=pathin the cloud/pathelement pathelement type=locationin the cloud/pathelement /plugin /plugins --- 2009/8/18 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: ** Hi - I'm still messing with this problem. I just stumbled across this: * Note: If you are using the same class as two different plugins identified by two * different ids, then these will not be able to share any resources as they are * loaded by two different classloaders, unless they were grouped in a plugingroup * in the plugin configuration, in which case they will be able to share resources. in this file: http://svn.arswiki.org/arapi/releases/win71/src/javaplugins/samplesrc/ java/com/bmc/arsys/plugin/sample/ARDBCSample.java has anyone got an idea how to group the plugins in pluginsvr_config.xml?? plugingroup plugin ... /plugin plugin ... /plugin /plugingroup does not load anything at all - nor does it give an error... I wish there was a DTD i could refer to. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk Til remedy spørgsmål: becrem...@bec.dk BEC - det fælles it-hus, der gør forskellen for finansielle virksomheder Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 14. august 2009 14:32 Til: arslist@ARSLIST.ORG Emne: Java ARDBC plugin failing with multiple instances No suitable driver found for ** Hi listers, I really hope one of you has a solution for me here. We have developed an ARDBC driver for connection to a DB2 database. in the production environment we need to connect to two different databases, so I have configured two plugins in pluginsvr_config.xml: plugin nameCD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filen ame classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:CD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeUser/user passwordsomePassword/password dbtableprefixT/dbtableprefix dbtablecreatorCD99/dbtablecreator /userDefined /plugin
SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Slightly OT : No static init routine found, skipping init call which function is the static init routine ?? I have initialize() - is there another? And on another note - noticed this in the logs: Loading Java PluginSet DB2 Number of shared URLs for group DB2 is 0 Loading all Java Plugins for the group DB2 Attempting to load Java Plugin TD99 Number of URLs for plugin TD99 is 2 URL1: file:/C:/Program%20Files/BMC%20Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar URL2: file:/C:/Programmer/IBM/SQLLIB/java/db2java.zip No static init routine found, skipping init call - TD99 Done to call init plugin TD99 Successfully loaded Java Plugin TD99 It appears that the dual plugin server solution is the only answer. I'll look into that tonight. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk Til remedy spørgsmål: becrem...@bec.dk BEC - det fælles it-hus, der gør forskellen for finansielle virksomheder -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 19. august 2009 10:14 Til: arslist@ARSLIST.ORG Emne: SV: Java ARDBC plugin failing with multiple instances No suitable driver found for Hi Jarl and Sean, I tried the pluginset approach, and it didn't resolve anything. I still get this error for the second plugin: Error establishing jdbc connection to the datasource jdbc:db2:CD99 No suitable driver found for jdbc:db2:CD99 I have yet to try the dual java pluginserver approach, just have another assignment blocking the pipe at the moment - I hope I can set it up tonight. with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 18. august 2009 19:51 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC plugin failing with multiple instances No suitable driver found for Plugingroups are done this way: plugins pluginset name=group1 plugin nameCD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:CD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeUser/user passwordsomePassword/password dbtableprefixT/dbtableprefix dbtablecreatorCD99/dbtablecreator /userDefined /plugin plugin nameOD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:OD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeOtherUser/user passwordsomeOtherpassword/password dbtableprefixTD/dbtableprefix dbtablecreatorOD99/dbtablecreator /userDefined /plugin /pluginset plugin nameJARL.SUPER.PLUGIN/name typeARDBC/type codeJAVA/code filenamejarl.jar/filename classnamecom.bmc.jarl/classname pathelement type=pathin the cloud/pathelement pathelement type=locationin the cloud/pathelement /plugin /plugins --- 2009/8/18 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: ** Hi - I'm still messing with this problem. I just stumbled across this: * Note: If you are using the same class as two different plugins identified by two * different ids, then these will not be able to share any resources as they are * loaded by two different classloaders, unless they were grouped in a plugingroup * in the plugin configuration, in which case they will be able to share resources. in this file: http://svn.arswiki.org/arapi/releases/win71/src/javaplugins/samplesrc/ java/com/bmc/arsys/plugin/sample/ARDBCSample.java has anyone got an idea how to group the plugins in pluginsvr_config.xml?? plugingroup plugin ... /plugin plugin ... /plugin /plugingroup does not load anything at all - nor does it give an error... I wish there was a DTD i could refer to. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns
SV: Java ARDBC plugin failing with multiple instances No suitable driver found for
Hi - I'm still messing with this problem. I just stumbled across this: * Note: If you are using the same class as two different plugins identified by two * different ids, then these will not be able to share any resources as they are * loaded by two different classloaders, unless they were grouped in a plugingroup * in the plugin configuration, in which case they will be able to share resources. in this file: http://svn.arswiki.org/arapi/releases/win71/src/javaplugins/samplesrc/java/com/bmc/arsys/plugin/sample/ARDBCSample.java has anyone got an idea how to group the plugins in pluginsvr_config.xml?? plugingroup plugin ... /plugin plugin ... /plugin /plugingroup does not load anything at all - nor does it give an error... I wish there was a DTD i could refer to. Med venlig hilsen Jonas Stumph Stevnsvig Remedy Udvikler BEC Kompetence Centret Telefon (+45) 46 38 20 08 Mobil (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk Til remedy spørgsmål: becrem...@bec.dk BEC - det fælles it-hus, der gør forskellen for finansielle virksomheder Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jonas Stumph Stevnsvig Sendt: 14. august 2009 14:32 Til: arslist@ARSLIST.ORG Emne: Java ARDBC plugin failing with multiple instances No suitable driver found for ** Hi listers, I really hope one of you has a solution for me here. We have developed an ARDBC driver for connection to a DB2 database. in the production environment we need to connect to two different databases, so I have configured two plugins in pluginsvr_config.xml: plugin nameCD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:CD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeUser/user passwordsomePassword/password dbtableprefixT/dbtableprefix dbtablecreatorCD99/dbtablecreator /userDefined /plugin plugin nameOD99/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname pathelement type=locationC:/Programmer/IBM/SQLLIB/java/db2java.zip/pathelement userDefined urljdbc:db2:OD99/url driverCOM.ibm.db2.jdbc.app.DB2Driver/driver usersomeOtherUser/user passwordsomeOtherpassword/password dbtableprefixTD/dbtableprefix dbtablecreatorOD99/dbtablecreator /userDefined /plugin If I enable one of them, I can connect with no problem whatsoever, however; as soon as I enable the second driver, It gives me the following error: 2009-08-14 14:02:10,676 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Attempting to Create an instance of the plugin CD99 2009-08-14 14:02:10,676 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.ARPluginContext (?:?) - CD99initialize() 2009-08-14 14:02:10,755 INFO [main] com.bmc.arsys.pluginsvr.ARPluginServerMain (?:?) - AR System Plugin Server Version 7.5.00 Patch 002 200906100308 2009-08-14 14:02:11,083 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Thread 11 successfully created an instance of CD99 2009-08-14 14:02:11,098 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Attempting to Create an instance of the plugin OD99 2009-08-14 14:02:11,098 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.ARPluginContext (?:?) - OD99initialize() No suitable driver found for jdbc:db2:OD992009-08-14 14:02:11,114 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Thread 11 successfully created an instance of OD99 2009-08-14 14:02:11,114 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.d.b (?:?) - Done iniPlugins for thread: 11 2009-08-14 14:02:11,114 INFO [pool-2-thread-1] com.bmc.arsys.pluginsvr.d.b (?:?) - Java plug-in server has initialized plug-ins for all 1 core threads. The server is ready to receive RPC calls. Java plug-in server has initialized plug-ins for all 1 core threads. The server is ready to receive RPC calls. I have a feeling that it has something to do with a limitation of the driver, but I am not sure - any bits and bids are most welcome Cheers Jonas Stevnsvig _Platinum Sponsor: rmisoluti...@verizon.net ARSlist: Where the Answers Are_ ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
SV: Java ARDBC
Hi Jarl, Thanks for the detailed response. I had disabled running the java plugin server through armonitor and set it up to listen on port 8000 for debuggers. The trouble was that the initialize function was called a long time before I could attach the dbugger using my IDE. Fortunately we had a breakthrough late last night - it turned out that it was a mismatch in the name of the JDBC driver and the jar file we had indicated. This morning we have a connection to the Database, and only need to modify the code to talk to DB2 instead of MSSQL Thanks for all the help. Best regards, Jonas -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Jarl Grøneng Sendt: 30. juni 2009 18:44 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC Can it be that the gettable return no tables, then you get a nullpointer? Here is some information from Appajee on how to attach at debugger to a plugin: -- At this point, its debugger time!! :-) Assuming you#39;re using Eclipse as your Java IDE, following information may be useful in debugging your plug-in : The java plugin server is typically started by the armonitor, which also starts all other ARSystem processes. The armonitor starts all processes listed in a file serverinstallfolder/conf/armonitor.conf or cfg. So instead of the pain of restarting the whole ARServer while debugging or plugin development process, you can just comment out (put a # at the start of the line) the line that looks like below from your armonitor.conf file. quot;C:\Program Files\Java\jre1.6.0_03\bin\javaquot; -Xmx512m -classpath quot;...whatever... arpluginsvr71.jarquot; com.bmc.arsys.pluginsvr.ARPluginServerMain -x YourServerHere -i quot;YourInstallDirquot; -m Restart server/the service. So monitor won't start java plugin server anymore. Now you can start the java plugin server from command line. For that you would just copy the command line from the armonitor.cfg and use in the command prompt. Now for debugging, we mostly use the jvm remote debugging mechanism. You would add this jvm debugging options (below) to the java command line -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y to get the command line as: quot;C:\Program Files\Java\jre1.6.0_03\bin\javaquot; -Xmx512m -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y -classpath quot;...whatever... arpluginsvr71.jarquot; com.bmc.arsys.pluginsvr.ARPluginServerMain -x YourHostNameHere -i quot;YourInstallDirquot; -m To attach the Eclipse debugger to the process, it has to be told which machine the external program is running on and what port it can use to communicate with it. This information is entered through the Launcher dialog. Select from the main menu Run, Debug to open the Launcher dialog specific to debugging. Select Remote Java Application as the configuration type and click New. This configuration information will be used by the debugger to connect to the plugin server jvm. Enter the following configuration information: Name: Java Plugin Server Project: My Plugin Project Connection Type: Standard (Socket Attach) Connection Properties: Host: localhost Connection Properties: Port: 8000 Setup breakpoints in your plugin as needed, and click Debug to start up the debugger. Key things here are matching up the host name and debug port (8000 in my example) between your Java command line and the eclipse debugger. Hope that helps. Appajee -- Regards, Jarl 2009/6/30 Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dk: ** Hi listers As some of you may have noticed - I've been battling to get some ARDBC connections up and running. After plenty of reading and advice, and considerable problems with our C developer tools, I've decided to switch to Java. I started off by downloading the 7.1 Java ARDBC/filter plugin sample from http://developer.bmc.com/communities/docs/DOC-2548 . Unfortunately I cannot get the code to work as intended. I have tried with several different JDBC drivers, and the result is always the same: Here is the plugin plugin nameJdbcDataSourceDBIX/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filen ame classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname !-- pathelement type=locationC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/JDBCdrivers/jtds.jar/pathe lement -- pathelement type=locationC:/Programmer/IBM/SQLLIB/TOOLS/db2jdbcext.jar/pathele ment userDefined urljdbc:db2:TD99/url !-- drivernet.sourceforge.jtds.jdbc.Driver/driver --
SV: Java ARDBC
Hi Carey The API actually offers a log4j configuration interface, apparently I have misconfigured it, since I did not get anything out of it. with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk -Oprindelig meddelelse- Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Carey Matthew Black Sendt: 30. juni 2009 14:03 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC Jonas, I must start by saying that I have not yet had a need to play with the ARDBC API. However, this part of your post caught my eye... I started off by downloading the 7.1 Java ARDBC/filter plugin sample from http://developer.bmc.com/communities/docs/DOC-2548.; VS I'm running ARS 7.5 on win2k3 If you are using a major release(7.1 vs 7.5) newer of the ARS server (and likely the plug in server too) then I would suggest that you at least start with the v7.5 Java API. You may simply be struggling with differences between the two versions. Beyond that.. I would try to hunt down the null pointer exception. :) I know it sounds dumb... but at least make your code fail in a better way. If you have not yet used it, I would suggest the use of log4j ( http://logging.apache.org/log4j/ ) to produce a good way to do logging outside of the ARS API. (Although you may be able to use the Java API to do logging functions too. I think I remember seeing some details about that in the v7.5 api docs.) HTH. -- Carey Matthew Black BMC Remedy AR System Skilled Professional (RSP) ARS = Action Request System(Remedy) Love, then teach Solution = People + Process + Tools Fast, Accurate, Cheap Pick two. ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are ___ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org Platinum Sponsor:rmisoluti...@verizon.net ARSlist: Where the Answers Are
SV: Java ARDBC
Hi again, their trial download link appears broken. I'd still like to try to get a hole through with the java plugin. any help is appreciated with regards, Jonas Stumph Stevnsvig Remedy Developer BEC Competence Centre Phone (+45) 46 38 20 08 Mobile (+45) 61 56 20 08 jonas.stumph.stevns...@bec.dk becrem...@bec.dk Fra: Action Request System discussion list(ARSList) [mailto:arsl...@arslist.org] På vegne af Frank Caruso Sendt: 30. juni 2009 11:33 Til: arslist@ARSLIST.ORG Emne: Re: Java ARDBC ** I remember seeing your past postings but do not recall why you were building the plugin. However, if you are trying to build a plugin to connect to a database I would highly recommend using the plugins from James Croom (http://croomconsulting.com/). I used them at my last company and they worked perfectly. Also, the development time it would've taken to build the plugin would've far exceeded the purchase price. Frank On Tue, Jun 30, 2009 at 11:48 AM, Jonas Stumph Stevnsvig jonas.stumph.stevns...@bec.dkmailto:jonas.stumph.stevns...@bec.dk wrote: ** Hi listers As some of you may have noticed - I've been battling to get some ARDBC connections up and running. After plenty of reading and advice, and considerable problems with our C developer tools, I've decided to switch to Java. I started off by downloading the 7.1 Java ARDBC/filter plugin sample from http://developer.bmc.com/communities/docs/DOC-2548 . Unfortunately I cannot get the code to work as intended. I have tried with several different JDBC drivers, and the result is always the same: Here is the plugin plugin nameJdbcDataSourceDBIX/name typeARDBC/type codeJAVA/code filenameC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/BECplugins/arapi.jar/filename classnamecom.bmc.arsys.plugins.jdbc.JdbcDataSource/classname !-- pathelement type=locationC:/Program Files/BMC Software/ARSystem/Arserver/api/javaplugins/JDBCdrivers/jtds.jar/pathelement -- pathelement type=locationC:/Programmer/IBM/SQLLIB/TOOLS/db2jdbcext.jar/pathelement userDefined urljdbc:db2:TD99/url !-- drivernet.sourceforge.jtds.jdbc.Driver/driver -- driverCOM.ibm.db2.jdbc.app.DB2Driver/driver user/user password/password /userDefined /plugin The thread quits with a nullPointerException, when the getTables method is called, which leads me to think that there is something going wrong in the initialize function. Unfortunately initialize is called so soon after starting the server, that i cannot connect the debugger fast enough to debug it. Here is a snippet from the logs which puzzles me: 2009-06-30 09:23:31,695 INFO [main] com.bmc.arsys.pluginsvr.plugins.g (?:?) - No static init routine found, skipping init call - JdbcDataSourceDBIX 2009-06-30 09:23:31,695 DEBUG [main] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Failed found init plugin JdbcDataSourceDBIX 2009-06-30 09:23:31,695 INFO [main] com.bmc.arsys.pluginsvr.plugins.g (?:?) - Done to call init plugin JdbcDataSourceDBIX Is it looking for an init routine? I can't seem to find any references in the API documentation, other than the initialize method!? Or is it skipping the method it found? I have not modified the code found on the bmc developer site, and as far as I can see others have used it successfully - what am I doing wrong? And here the logs for that attempt: 2009-06-30 09:23:31,054 INFO [main] com.bmc.arsys.pluginsvr.f (?:?) - Loading the Configuration File ::file:/C:/Program%20Files/BMC%20Software/ARSystem/pluginsvr/pluginsvr_config.xml 2009-06-30 09:23:31,070 ERROR [main] com.bmc.arsys.pluginsvr.f (?:?) - Java plug-in server does not support C plug-ins. Contact Customer Support for details. 2009-06-30 09:23:31,070 DEBUG [main] com.bmc.arsys.pluginsvr.f (?:?) - Plugin Accessible Configured Values: 2009-06-30 09:23:31,070 DEBUG [main] com.bmc.arsys.pluginsvr.f (?:?) - port 2009-06-30 09:23:31,070 DEBUG [main] com.bmc.arsys.pluginsvr.f (?:?) - numCoreThreads 5 2009-06-30 09:23:31,211 WARN [main] org.apache.commons.configuration.ConfigurationFactory$FileConfigurationFactory (ConfigurationFactory.java:530) - Could not load optional configuration arsys_api.xml 2009-06-30 09:23:31,304 DEBUG [main] com.bmc.arsys.pluginsvr.c.a (?:?) - os.namehttp://os.name/: Windows 2003 2009-06-30 09:23:31,304 DEBUG [main] com.bmc.arsys.pluginsvr.c.a (?:?) - os.arch: x86 2009-06-30 09:23:31,304 DEBUG [main] com.bmc.arsys.pluginsvr.c.a (?:?) - java.vendor: Sun Microsystems Inc. 2009-06-30 09:23:31,304 DEBUG [main] com.bmc.arsys.pluginsvr.c.a (?:?) -