Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003725 [Resin] minor always 10-21-09 11:54 03-03-10 14:56
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.2
Summary 0003725: logging configured per web-app breaks with a shared third party rar
Description both mdbs output to a the log of one application (first that receives a message with that rar)
resin.xml
----

      <web-app id="webapps/aps-consumer-mdb"
               root-directory="webapps/aps-consumer-mdb"
               xmlns="http://caucho.com/ns/resin"> [^]
        <resource-adapter
            class="org.apache.activemq.ra.ActiveMQResourceAdapter">
          <init server-url="failover:(tcp://localhost:61616)"/> [^]
        </resource-adapter>

        <connection-factory
            class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"
            name="activemq"/>

        <jms-queue class="org.apache.activemq.command.ActiveMQQueue"
                   name="aps_consumer_queue">
          <init physical-name="APS.CONSUMER.US.DEV"/>
        </jms-queue>

        <ejb-message-bean class="com.copart.ws.aps.consumer.mdb.APSConsumerMDB"
                          message-consumer-max="10">
          <destination>${aps_consumer_queue}</destination>
        </ejb-message-bean>

        <env-entry>
          <env-entry-name>aps-cieca-consumer-url</env-entry-name>
          <env-entry-type>java.lang.String</env-entry-type>
          <env-entry-value>
            http://lvdwss001:8080/aps-cieca-consumer-1.4.1/changeassignment [^]
          </env-entry-value>
        </env-entry>

        <stdout-log path="${server.root}/log/aps-consumer.log"/>
        <stderr-log path="${server.root}/log/aps-consumer.log"/>
        <log name="" level="all" path="${server.root}/log/aps-consumer.log"
             timestamp="%Y-%m-%d %H:%M:%S,%s INFO RESIN - "
             rollover-period="1D"
             archive-format="archive/aps-consumer.%Y-%m-%d.log"/>
      </web-app>


      <!-- for SGSConsumer MDB -->
      <web-app id="webapps/sgs-consumer" root-directory="webapps/sgs-consumer"
               xmlns="http://caucho.com/ns/resin"> [^]

        <resource-adapter
            class="org.apache.activemq.ra.ActiveMQResourceAdapter">
          <init server-url="failover:(tcp://localhost:61616)"/> [^]
        </resource-adapter>

        <connection-factory
            class="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"
            name="activemq"/>

        <jms-queue class="org.apache.activemq.command.ActiveMQQueue"
                   name="etf_db_queue">
          <init physical-name="SGS.CONSUMER.DEV"/>
        </jms-queue>

        <ejb-message-bean class="com.copart.sgs.consumer.mdb.SGSConsumerMDB"
                          message-consumer-max="10">
          <destination>${etf_db_queue}</destination>
        </ejb-message-bean>


        <stdout-log path="${server.root}/log/sgs-consumer.log"/>
        <stderr-log path="${server.root}/log/sgs-consumer.log"/>
        <log name="" level="all" path="${server.root}/log/sgs-consumer.log"
             timestamp="%Y-%m-%d %H:%M:%S,%s INFO RESIN - "
             rollover-period="1D"
             archive-format="archive/sgs-consumer.%Y-%m-%d.log"/>


      </web-app>
----
see attached archive
Additional Information work around:

duplicate rars in web-applications
<web-app id="/app1"
  <resource-deploy path="WEB-INF/rar"/>
Attached Files  logs.tar.gz [^] (3,315 bytes) 10-21-09 11:54

- Relationships

- Notes
(0004505)
ferg
03-03-10 14:56

ejb/2393
 

- Issue History
Date Modified Username Field Change
10-21-09 11:54 alex New Issue
10-21-09 11:54 alex File Added: logs.tar.gz
03-03-10 14:56 ferg Note Added: 0004505
03-03-10 14:56 ferg Assigned To  => ferg
03-03-10 14:56 ferg Status new => closed
03-03-10 14:56 ferg Resolution open => fixed
03-03-10 14:56 ferg Fixed in Version  => 4.0.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker