web stats
JMS Reader Connector ClassNotFoundException - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2009, 09:53 AM
l0s l0s is offline
What's HL7?
 
Join Date: Jun 2007
Location: Los Angeles, CA
Posts: 2
l0s
Default JMS Reader Connector ClassNotFoundException

I'm trying to set up a JMS connection, but Mirth is not finding the class I specified for the Initial Context Factory.

I placed the jar file with the class in the $MIRTH_HOME/lib/custom directory but when I try to deploy the channel, I get a ClassNotFoundException. The full stack trace follows.

Is there something I need to do to make sure Mirth loads the required jar file?

Thanks,

Carlos

[2009-06-24 09:49:32,511] WARN (com.webreach.mirth.server.Mirth:253): Error deploying channels.
org.mule.config.ConfigurationException: MuleManager Failed to initialise (org.mule.config.ConfigurationException)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:196)
at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:250)
at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:208)
at com.webreach.mirth.server.Mirth.run(Mirth.java:138 )Caused by: org.mule.config.ConfigurationException: MuleManager Failed to initialise
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:209)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
... 3 moreCaused by: org.mule.umo.lifecycle.InitialisationException: Failed to create Jms Connector
at com.webreach.mirth.connectors.jms.JmsConnector.doI nitialise(JmsConnector.java:133)
at org.mule.providers.AbstractConnector.initialise(Ab stractConnector.java:238)
at org.mule.MuleManager.initialiseConnectors(MuleMana ger.java:776)
at org.mule.MuleManager.initialise(MuleManager.java:6 52)
at org.mule.MuleManager.start(MuleManager.java:721)
at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:207)
... 4 moreCaused by: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.appserv.naming.S1ASCtxFactory [Root exception is java.lang.ClassNotFoundException: com.sun.appserv.naming.S1ASCtxFactory]
at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.webreach.mirth.connectors.jms.JmsConnector.ini tJndiContext(JmsConnector.java:153)
at com.webreach.mirth.connectors.jms.JmsConnector.doI nitialise(JmsConnector.java:116)
... 9 moreCaused by: java.lang.ClassNotFoundException: com.sun.appserv.naming.S1ASCtxFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass( Unknown Source)
... 15 more
Attached Images
File Type: jpg mirth_jms_source.jpg (43.2 KB, 38 views)
File Type: png glassfish_jms_jar.png (33.9 KB, 27 views)
Reply With Quote
  #2  
Old 06-24-2009, 10:15 AM
dans dans is offline
Mirth Employee
 
Join Date: Apr 2007
Location: Irvine, CA
Posts: 590
dans is an unknown quantity at this point
Default

Make sure you restart the mirth server
__________________
Daniel Svanstedt
Software Engineer
Mirth Corporation

Want professional services, support, and enterprise or virtual appliances? It's all available from the Mirth Corporation:
Mirth Support | Mirth Training | Mirth Appliances | Online Training | Developer Q&A

Don't forget, Mirth Support gives you access to all of our online training videos, and silver support gives you access to developer Q&As!
Reply With Quote
  #3  
Old 06-24-2009, 10:26 AM
l0s l0s is offline
What's HL7?
 
Join Date: Jun 2007
Location: Los Angeles, CA
Posts: 2
l0s
Default

Yes, I've done that.
Reply With Quote
  #4  
Old 06-24-2009, 12:36 PM
dans dans is offline
Mirth Employee
 
Join Date: Apr 2007
Location: Irvine, CA
Posts: 590
dans is an unknown quantity at this point
Default

Not sure what the problem is then. The custom libraries should load when the Mirth service is stopped and restarted. I have not setup glassfish with jms but maybe someone else can share their experiences?
__________________
Daniel Svanstedt
Software Engineer
Mirth Corporation

Want professional services, support, and enterprise or virtual appliances? It's all available from the Mirth Corporation:
Mirth Support | Mirth Training | Mirth Appliances | Online Training | Developer Q&A

Don't forget, Mirth Support gives you access to all of our online training videos, and silver support gives you access to developer Q&As!
Reply With Quote
  #5  
Old 07-16-2009, 01:40 AM
bento85 bento85 is offline
What's HL7?
 
Join Date: May 2009
Posts: 2
bento85 is on a distinguished road
Default

Hi, I'm also having this problem. Would like to know if there is already a solution to this problem?
Is it possible to share?

Benjamin
Reply With Quote
Reply

Tags
glassfish, jar, jms, lib

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Mirth Corporation