ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating Nodes Jar File

Post new topic  Reply to topic
 Creating Nodes Jar File « View previous topic :: View next topic » 
Author Message
Lex
PostPosted: Wed Nov 22, 2006 10:20 am    Post subject: Creating Nodes Jar File Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

Hi,

After migrating my resources from version 2.1 to version 6.0, i got *.msgnode in my newly migrated project.

With this *.msgnode, i created the plug-in.

I need to create the jar file with all the *.class files, but i have no idea how to proceed from the *.msgnode file.

Any hint would be appreciated.
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Wed Nov 22, 2006 10:48 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Lex,

You'll have a build.properties file in the project right ?

Paste something like into the file
Code:
source.<JARFileName>.jar = src/

Create the jar using the File->Export->JAR option and put the Jar file in the jplugin folder in MQSI(search this forum for more information on where to put the custom node files)

Should work.

Regards.
Back to top
View user's profile Send private message Send e-mail
Lex
PostPosted: Thu Nov 23, 2006 1:03 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

Well i have this line in my build properties file.

I did export it to get a jar file.

But then i change the extension (replacing .jar by .zip) to check the content of the archive, and i don't have any .class file, only .msgnode, .properties and some gif file in the original jar file.

I have no idea how to get class file in the jar, and i need class for the jar file i have to put in the jplugin folder in mqsi install directory, right?

So how should i process?

And do i lose information or corrupt the archive when i change the extension from jar to zip, and then back to jar?
Back to top
View user's profile Send private message
Lex
PostPosted: Thu Nov 23, 2006 2:46 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

please i really need help coz i'm completely lost
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Nov 23, 2006 3:35 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Lex,

You should be able to do an extract from the jar file directly DON'T RENAME IT TO ZIP.

Import all your code into some java project and first check for errors, if everything is fine, create a jar....Don't put the msgnode and properties files in the jar file...

The msgnode and other files go to the toolkit...Pls take the sample custom node provided with v6 and see how they've done it.
Back to top
View user's profile Send private message Send e-mail
Lex
PostPosted: Thu Nov 23, 2006 10:17 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

Thanks elvis, now it's almost working

Almost becoz i have a new problem lol

We have a Windows 2003 server with the config manager on it, and an AIX server with the broker on it.

I have transfered the Nodes.jar to the AIX server and installed it in the jplugin directory inside the mqsi install directory (/opt/IBM/mqsi/6.0/jplugin).

But theses nodes needs some more files to work, and i can't manage to find where to put these file. I have tried the classes directory in the mqsi install directory (/opt/IBM/mqsi/6.0/classes) but it's not working.

Here is the log i get when i try to deploy my flows:

Code:
Nov 23 18:13:53 Siprogsv24 WebSphere Broker v6001[741454]: (BRK_1_IE.par défaut)[1]BIP4512S: java.lang.NoClassDefFoundError: com/enterprisedt/net/ftp/FTPException was thrown while loading Java user-defined node class com.dga.siprog.eai.wmqi.nodes.N_FtpNode. : BRK_1_IE.7a24cc15-0f01-0000-0080-ad148cda32cb: com.ibm.broker.plugin.MbNodeDirector: 0: registerNodeClasses: :
Nov 23 18:13:53 Siprogsv24 WebSphere Broker v6001[741454]: (BRK_1_IE.par défaut)[1]BIP4512S: java.lang.NoClassDefFoundError: com/sshtools/j2ssh/SshClient was thrown while loading Java user-defined node class com.dga.siprog.eai.wmqi.nodes.N_SftpNode$SSHConnection. : BRK_1_IE.7a24cc15-0f01-0000-0080-ad148cda32cb: com.ibm.broker.plugin.MbNodeDirector: 0: registerNodeClasses: :
Nov 23 18:13:53 Siprogsv24 WebSphere Broker v6001[741454]: (BRK_1_IE.par défaut)[1]BIP4512S: java.lang.NoClassDefFoundError: com/netscape/jss/ssl/SSLCertificateApprovalCallback was thrown while loading Java user-defined node class netscape.ldap.factory.JSSSocketFactory. : BRK_1_IE.7a24cc15-0f01-0000-0080-ad148cda32cb: com.ibm.broker.plugin.MbNodeDirector: 0: registerNodeClasses: :


please Help me
Back to top
View user's profile Send private message
Lex
PostPosted: Thu Nov 23, 2006 2:02 pm    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

Please i need help
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Thu Nov 23, 2006 2:25 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi Lex,

Try the mqsichangebroker command...put the jar in a directory outside the broker installation dir, and use the command to specify the path.

I've not tried this myself, but the documentation says so

Regards.
Back to top
View user's profile Send private message Send e-mail
Lex
PostPosted: Fri Nov 24, 2006 1:47 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

the mqsichangebroker command worked, but not as expected lol

Indeed, i need to add classes used by the nodes i built, but the mqsichangebroker helped with the -l option (for lilpath) is used in order to define a user node jar directory. I still have the error message in the log.

Anyone know where to put these classes?
Back to top
View user's profile Send private message
oli
PostPosted: Fri Jan 05, 2007 3:49 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jul 2006
Posts: 68
Location: Germany

Hi Lex,

i have exactly the same problem when migrating from MB 5 to MB 6. With MB 5 the jars were located in the classes directory and all worked fine. With MB 6 this doesn't work any longer. Do you have a solution for the problem?

Does anybody know how to solve the problem?

Regards,

Oli
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jan 05, 2007 4:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There's a page in the info center that I'm too lazy to dig up that talks about classloaders for java plugin nodes.

The correct place to put the plugin jar itself is still jplugin for Java nodes.

The most typical place to dependant jars for the plugin is in the registry shared-classes directory. This is *not* the product install directory. On windows it's in C:\Documents and Settings\All Users\Application Data\IBM\MQSI\shared-classes.

I believe it's in /var/mqsi in most unixes. Again, too lazy to look it up.

There's another option with v6 - which is to package your java plugin in a PAR file rather than a JAR file. Each PAR file has it's own lib directory for other jar files, and is loaded by it's own unique clasloader.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Lex
PostPosted: Thu Jul 19, 2007 2:20 am    Post subject: Reply with quote

Acolyte

Joined: 14 Nov 2006
Posts: 73

Hello,

i now need to modify some user defined node, but i'm missing a package to be able to develop and compil properly: com.ibm.broker.plugin.

I ran a search on my windows server but couldn't find it.

Where can i get this class?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 19, 2007 3:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

it's <mqsi_install>/classes/jplugin.jar
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Creating Nodes Jar File
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.