Announcement

Collapse

Mirth Connect 4.1.0 Released!

Mirth Connect 4.1.0 is now available as an appliance update and on our GitHub page. Mirth Connect 4.1.0 includes new features such as new event log messages, additional fields to the Welcome to Mirth Connect screen, new information included in alerts as well as many smaller changes, updates, and improvements. This release also contains several improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Mirth 1.6 Jboss

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mirth 1.6 Jboss

    Hi all,

    I have to deploy Mirth 1.6 as a Jboss Mbean. When I use JBoss 4.2.0 there is no problem. But my applicattion runs in JBoss 4.0.2 and an error happens when I try to deploy Mirth in this version:

    10:42:26,035 INFO [SARDeployer] Loading native library: C:\jboss-4.0.2\serv
    er\default\tmp\native\wrapper.dll
    10:42:46,537 WARN [ServiceController] Problem starting service com.webreach.mir
    th.server.mbeans:service=MirthService
    java.lang.ExceptionInInitializerError
    at com.webreach.mirth.server.controllers.SystemLogger .<init>(SystemLogge
    r.java:43)
    at com.webreach.mirth.server.controllers.SystemLogger .getInstance(System
    Logger.java:54)
    at com.webreach.mirth.server.Mirth.<init>(Mirth.java: 75)
    at com.webreach.mirth.server.mbeans.MirthService.star t(MirthService.java
    :11)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceControl
    ler.java:914)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:418)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer .java:273)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:964)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:775)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:738)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractIntercept
    or.java:121)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelM
    BeanOperationInterceptor.java:127)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
    at $Proxy8.deploy(Unknown Source)
    at org.jboss.deployment.scanner.URLDeploymentScanner. deploy(URLDeploymen
    tScanner.java:325)
    at org.jboss.deployment.scanner.URLDeploymentScanner. scan(URLDeploymentS
    canner.java:501)
    at org.jboss.deployment.scanner.AbstractDeploymentSca nner$ScannerThread.
    doScan(AbstractDeploymentScanner.java:204)
    at org.jboss.deployment.scanner.AbstractDeploymentSca nner.startService(A
    bstractDeploymentScanner.java:277)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Start(ServiceMBeanS
    upport.java:272)
    at org.jboss.system.ServiceMBeanSupport.jbossInternal Lifecycle(ServiceMB
    eanSupport.java:222)
    at sun.reflect.GeneratedMethodAccessor2.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.system.ServiceController$ServiceProxy.in voke(ServiceControl
    ler.java:897)
    at $Proxy0.start(Unknown Source)
    at org.jboss.system.ServiceController.start(ServiceCo ntroller.java:418)
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:72)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
    at $Proxy4.start(Unknown Source)
    at org.jboss.deployment.SARDeployer.start(SARDeployer .java:273)
    at org.jboss.deployment.MainDeployer.start(MainDeploy er.java:964)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:775)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:738)
    at org.jboss.deployment.MainDeployer.deploy(MainDeplo yer.java:722)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.mx.interceptor.ReflectedDispatcher.invok e(ReflectedDispatch
    er.java:141)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:80)
    at org.jboss.mx.interceptor.AbstractInterceptor.invok e(AbstractIntercept
    or.java:121)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.interceptor.ModelMBeanOperationInterc eptor.invoke(ModelM
    BeanOperationInterceptor.java:127)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:74)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.
    java:249)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:644)
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyE xt.java:177)
    at $Proxy5.deploy(Unknown Source)
    at org.jboss.system.server.ServerImpl.doStart(ServerI mpl.java:434)
    at org.jboss.system.server.ServerImpl.start(ServerImp l.java:315)
    at org.jboss.Main.boot(Main.java:195)
    at org.jboss.Main$1.run(Main.java:463)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.RuntimeException: java.io.IOException: Could not find resou
    rce derby\derby-SqlMapConfig.xml
    at com.webreach.mirth.server.util.SqlConfig.<clinit>( SqlConfig.java:31)
    ... 95 more
    Caused by: java.io.IOException: Could not find resource derby\derby-SqlMapConfig
    .xml
    at com.ibatis.common.resources.Resources.getResourceA sStream(Resources.j
    ava:101)
    at com.ibatis.common.resources.Resources.getResourceA sStream(Resources.j
    ava:86)
    at com.ibatis.common.resources.Resources.getResourceA sReader(Resources.j
    ava:150)
    at com.webreach.mirth.server.util.SqlConfig.<clinit>( SqlConfig.java:22)
    ... 95 more


    Anyone knows why is this happening...

    thanks!!

  • #2
    Re:Mirth 1.6 Jboss

    It looks like a classpath issue. In 4.2, the classpath from the mirth-jboss.jar meta-inf is pulled in when launching mirth. It's possible that 4.0 doesn't do that. Please submit a bug to our Issue Tracker and we will look for a workaround in an upcoming version of Mirth.
    Jacob Brauer
    Director, Software Development
    NextGen Healthcare

    sigpic

    Comment


    • #3
      Re:Mirth 1.6 Jboss

      ok jacob.

      thanks!!

      http://www.mirthproject.org/communit...owse/MIRTH-515

      Comment


      • #4
        Re:Mirth 1.6 Jboss

        apalmero,

        If you have some time to mess around with 4.0, I might have a fix for you. Your best bet will be to add the conf and extensions directories inside of the mirth.sar to JBoss. I believe you can do this in the run.sh or run.bat. This is essentially what the manifest in mirth-jboss.jar does in JBoss 4.2.

        Let me know if you get it working and what you had to do. Thanks!

        Post edited by: jacobb, at: 08/30/2007 15:47
        Jacob Brauer
        Director, Software Development
        NextGen Healthcare

        sigpic

        Comment


        • #5
          Re:Mirth 1.6 Jboss

          I had tried to modify the run.bat file to include in the classpath of jboss the directories conf/ and extensions/ but I got another error:

          09:51:32,995 ERROR [ExtensionController] could not initialize extension settings
          com.thoughtworks.xstream.converters.ConversionExce ption: null
          ---- Debugging information ----
          required-type : java.util.Properties
          cause-message : null
          class : com.webreach.mirth.model.ConnectorMetaData
          line number : 17
          cause-exception : java.lang.NullPointerException
          -------------------------------
          at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
          arshaller.java:45)
          at com.thoughtworks.xstream.converters.reflection.Ref lectionConverter.un
          marshal(ReflectionConverter.java:103)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
          arshaller.java:38)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.sta rt(TreeUnmarshaller
          .java:99)
          at com.thoughtworks.xstream.core.TreeMarshallingStrat egy.unmarshal(TreeM
          arshallingStrategy.java:12)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:552)
          at com.thoughtworks.xstream.XStream.unmarshal(XStream .java:540)
          at com.thoughtworks.xstream.XStream.fromXML(XStream.j ava:490)
          at com.thoughtworks.xstream.XStream.fromXML(XStream.j ava:483)
          at com.webreach.mirth.model.converters.ObjectXMLSeria lizer.fromXML(Objec
          tXMLSerializer.java:59)
          at com.webreach.mirth.util.ExtensionUtil.loadExtensio nMetaData(Extension
          Util.java:47)
          at com.webreach.mirth.server.controllers.ExtensionCon troller.loadConnect
          orMetaData(ExtensionController.java:226)
          at com.webreach.mirth.server.controllers.ExtensionCon troller.initialize(
          ExtensionController.java:84)
          at com.webreach.mirth.server.Mirth.startup(Mirth.java :151)
          at com.webreach.mirth.server.Mirth.run(Mirth.java:109 )
          Caused by: java.lang.NullPointerException
          at java.util.Hashtable.put(Hashtable.java:396)
          at java.util.Properties.setProperty(Properties.java:1 28)
          at com.thoughtworks.xstream.converters.collections.Pr opertiesConverter.u
          nmarshal(PropertiesConverter.java:63)
          at com.thoughtworks.xstream.core.TreeUnmarshaller.con vertAnother(TreeUnm
          arshaller.java:38)
          ... 14 more
          09:51:33,026 INFO [RARDeployment] Required license terms exist view the META-IN
          F/ra.xml: file:/C:/mda/jboss-4.0.2/server/default/deploy/jboss-xa-jdbc.rar
          09:51:33,292 INFO [RARDeployment] Required license terms exist view the META-IN
          F/ra.xml: file:/C:/mda/jboss-4.0.2/server/default/deploy/jms/jms-ra.rar
          09:51:33,354 ERROR [MonitoringController] java.lang.NullPointerException
          09:51:33,354 INFO [STDOUT] Exception in thread "Thread-3"
          09:51:33,354 INFO [STDOUT] java.lang.NullPointerException
          09:51:33,354 INFO [STDOUT] at com.webreach.mirth.server.controllers.Extensi
          onController.startPlugins(ExtensionController.java :138)
          09:51:33,354 INFO [STDOUT] at com.webreach.mirth.server.Mirth.startup(Mirth
          .java:156)
          09:51:33,354 INFO [STDOUT] at com.webreach.mirth.server.Mirth.run(Mirth.jav
          a:109)

          Comment

          Working...
          X