Skip to main content
moved answer (which was basically an update to the question) into the question, so the invalid answer can be deleted
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

This is my logback.xml file. My c:/tridion/log/deployer directory is empty. I've added permissions to "Everyone" everything to be allowed

<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
    <!-- Properties -->
    <property name="log.pattern" value="%date %-5level %logger{0} - %message%n"/>
    <property name="log.history" value="7"/>
    <property name="log.folder" value="c:/tridion/log/deployer"/>
    <property name="log.level" value="TRACE"/>

    <!-- Appenders -->
    <appender name="rollingTransportLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_transport.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingDeployerLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_deployer.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingMonitorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_monitor.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingCoreLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_core.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>

    <!-- Loggers -->
    <logger name="com.tridion" level="${log.level}"/>
    <logger name="com.tridion.transport">
        <appender-ref ref="rollingTransportLog"/>
    </logger>
    <logger name="com.tridion.transport.HTTPSReceiverServlet">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.transport.transportpackage">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.transformer">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.deployer">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.tcdl">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.event">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.monitor">
        <appender-ref ref="rollingMonitorLog"/>
    </logger>
        
    <root level="ON">
        <appender-ref ref="rollingCoreLog"/>
    </root>
</configuration>

2) Exception: Unable to load dll 'xmogrt': the specified module could not be found.

This is the main part of the stack. The exception happens when I run my project. There isn't any additional code.

[DllNotFoundException: Unable to load DLL 'xmogrt': The specified module could not be found. (Exception from HRESULT: 0x8007007E)] 
   Codemesh.JuggerNET.NativeInterface.GetJvmLoader(Int32 ctorVersion, String configFile, String vers, String conf, String reserved, Boolean bEnvOverrides, Boolean bDefaultJvm, Int32 traceFacility, Int32 traceLevel, Int32& error) +0 
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) +154 
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader() +49 
   Codemesh.JuggerNET.JavaClass.init() +99 
   Codemesh.JuggerNET.JavaClass.get_JObject() +49 
   Codemesh.JuggerNET.JavaMethod.init() +1082 
   Codemesh.JuggerNET.JavaMethod.get_MethodPtr() +54 
   Codemesh.JuggerNET.JavaMethod.get_Handle() +50 
   Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo) +202 
   Com.Tridion.Broker.Querying.Query..ctor() +49 
   Tridion.ContentDelivery.DynamicContent.Query.Query..ctor() +23 
   DD4T.Providers.SDLTridion2011sp1.TridionPageProvider.GetContentByUrl(String Url) +230 
   DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page) +780 
   DD4T.Mvc.Controllers.TridionControllerBase.GetModelForPage(String PageId) +124 
   DD4T.Mvc.Controllers.TridionControllerBase.Page(String pageId) +71 
   DD4T.Web.Mvc.PageController.Page(String pageId) in \\MachineName\r_T99GDO\Visual Studio 2010\Projects\Web.DD4T1\Web.DD4T1\DD4T.Web.Mvc\PageController.cs:13 
   lambda_method(Closure , ControllerBase , Object[] ) +110 
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17

Thanks in advance

2) Exception: Unable to load dll 'xmogrt': the specified module could not be found.

[DllNotFoundException: Unable to load DLL 'xmogrt': The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   Codemesh.JuggerNET.NativeInterface.GetJvmLoader(Int32 ctorVersion, String configFile, String vers, String conf, String reserved, Boolean bEnvOverrides, Boolean bDefaultJvm, Int32 traceFacility, Int32 traceLevel, Int32& error) +0
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) +154
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader() +49
   Codemesh.JuggerNET.JavaClass.init() +99
   Codemesh.JuggerNET.JavaClass.get_JObject() +49
   Codemesh.JuggerNET.JavaMethod.init() +1082
   Codemesh.JuggerNET.JavaMethod.get_MethodPtr() +54
   Codemesh.JuggerNET.JavaMethod.get_Handle() +50
   Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo) +202
   Com.Tridion.Broker.Querying.Query..ctor() +49
   Tridion.ContentDelivery.DynamicContent.Query.Query..ctor() +23
   DD4T.Providers.SDLTridion2011sp1.TridionPageProvider.GetContentByUrl(String Url) +230

Thanks in advance

This is my logback.xml file. My c:/tridion/log/deployer directory is empty. I've added permissions to "Everyone" everything to be allowed

<?xml version="1.0" encoding="UTF-8"?>
<configuration scan="true">
    <!-- Properties -->
    <property name="log.pattern" value="%date %-5level %logger{0} - %message%n"/>
    <property name="log.history" value="7"/>
    <property name="log.folder" value="c:/tridion/log/deployer"/>
    <property name="log.level" value="TRACE"/>

    <!-- Appenders -->
    <appender name="rollingTransportLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_transport.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingDeployerLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_deployer.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingMonitorLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_monitor.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>
    <appender name="rollingCoreLog" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <fileNamePattern>${log.folder}/cd_core.%d{yyyy-MM-dd}.log</fileNamePattern>
            <maxHistory>${log.history}</maxHistory>
        </rollingPolicy>
        <encoder>
            <pattern>${log.pattern}</pattern>
        </encoder>
        <prudent>true</prudent>
    </appender>

    <!-- Loggers -->
    <logger name="com.tridion" level="${log.level}"/>
    <logger name="com.tridion.transport">
        <appender-ref ref="rollingTransportLog"/>
    </logger>
    <logger name="com.tridion.transport.HTTPSReceiverServlet">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.transport.transportpackage">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.transformer">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.deployer">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.tcdl">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.event">
        <appender-ref ref="rollingDeployerLog"/>
    </logger>
    <logger name="com.tridion.monitor">
        <appender-ref ref="rollingMonitorLog"/>
    </logger>
        
    <root level="ON">
        <appender-ref ref="rollingCoreLog"/>
    </root>
</configuration>

2) Exception: Unable to load dll 'xmogrt': the specified module could not be found.

This is the main part of the stack. The exception happens when I run my project. There isn't any additional code.

[DllNotFoundException: Unable to load DLL 'xmogrt': The specified module could not be found. (Exception from HRESULT: 0x8007007E)] 
   Codemesh.JuggerNET.NativeInterface.GetJvmLoader(Int32 ctorVersion, String configFile, String vers, String conf, String reserved, Boolean bEnvOverrides, Boolean bDefaultJvm, Int32 traceFacility, Int32 traceLevel, Int32& error) +0 
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) +154 
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader() +49 
   Codemesh.JuggerNET.JavaClass.init() +99 
   Codemesh.JuggerNET.JavaClass.get_JObject() +49 
   Codemesh.JuggerNET.JavaMethod.init() +1082 
   Codemesh.JuggerNET.JavaMethod.get_MethodPtr() +54 
   Codemesh.JuggerNET.JavaMethod.get_Handle() +50 
   Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo) +202 
   Com.Tridion.Broker.Querying.Query..ctor() +49 
   Tridion.ContentDelivery.DynamicContent.Query.Query..ctor() +23 
   DD4T.Providers.SDLTridion2011sp1.TridionPageProvider.GetContentByUrl(String Url) +230 
   DD4T.Factories.PageFactory.TryFindPage(String url, IPage& page) +780 
   DD4T.Mvc.Controllers.TridionControllerBase.GetModelForPage(String PageId) +124 
   DD4T.Mvc.Controllers.TridionControllerBase.Page(String pageId) +71 
   DD4T.Web.Mvc.PageController.Page(String pageId) in \\MachineName\r_T99GDO\Visual Studio 2010\Projects\Web.DD4T1\Web.DD4T1\DD4T.Web.Mvc\PageController.cs:13 
   lambda_method(Closure , ControllerBase , Object[] ) +110 
   System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17
Tweeted twitter.com/#!/StackTridion/status/326981041791324160
edited tags
Link
Daniel Neagu
  • 1.2k
  • 7
  • 11
Source Link
Boris T.
  • 651
  • 3
  • 7

Problem with runing locally project with tridion and DD4T- unable to load dll 'xmogrt': the specified module could not be found

I have two new question about my local configurations.

Now, I am trying to configure a new machine and I am facing two new problems.

Scenario:

  1. 32bit local machine and 64bit server

  2. installed Java JRE 1.6.0.24

  3. copied all jars and configs from the server on the local machine, updated logback.config, added a new license file and updated cd_storage

  4. copied dlls from dotNet/x86 an pasted them in the local /bin

Problems:

1) I can not print logs. The file looks nice, I think.

2) Exception: Unable to load dll 'xmogrt': the specified module could not be found.

[DllNotFoundException: Unable to load DLL 'xmogrt': The specified module could not be found. (Exception from HRESULT: 0x8007007E)]
   Codemesh.JuggerNET.NativeInterface.GetJvmLoader(Int32 ctorVersion, String configFile, String vers, String conf, String reserved, Boolean bEnvOverrides, Boolean bDefaultJvm, Int32 traceFacility, Int32 traceLevel, Int32& error) +0
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader(Boolean bEnvOverrides, Boolean bDefaultJvm, TraceFacility fac, TraceLevel level) +154
   Codemesh.JuggerNET.JvmLoader.GetJvmLoader() +49
   Codemesh.JuggerNET.JavaClass.init() +99
   Codemesh.JuggerNET.JavaClass.get_JObject() +49
   Codemesh.JuggerNET.JavaMethod.init() +1082
   Codemesh.JuggerNET.JavaMethod.get_MethodPtr() +54
   Codemesh.JuggerNET.JavaMethod.get_Handle() +50
   Codemesh.JuggerNET.JavaMethod.CallObject(JavaProxy jpo) +202
   Com.Tridion.Broker.Querying.Query..ctor() +49
   Tridion.ContentDelivery.DynamicContent.Query.Query..ctor() +23
   DD4T.Providers.SDLTridion2011sp1.TridionPageProvider.GetContentByUrl(String Url) +230

Thanks in advance