|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Log4j issue | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | vmanel | 
		  
		    
			  
				 Posted: Wed Jul 17, 2019 9:12 am    Post subject: Log4j issue | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 12 Mar 2019 Posts: 57
  
  | 
		  
		    
			  
				Hi,
 
 
We are facing issue with log4j(IAM3 support pac, which is not reliable), we had placed log4j.xml properties in a certain location under /var/log and then later we created a seperate directory /app and moved it there. Now we are getting the error saying 
 
 
Text:CHARACTER:java.lang.LinkageError: loading constraint violation: loader "com/ibm/broker/classloading/SharedClassLoader@5f9122a6" previously initiated loading for a different type with name "org/apache/log4j/spi/LoggingEvent" defined by loader "com/ibm/broker/classloading/GroupedClassLoader@a08119db"
 
 
We tried restarting EG, broker, deleting and redeploying the applications, but the issue was not resolved
 
jar files are placed in the location /var/mqsi/shared-classes. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | abhi_thri | 
		  
		    
			  
				 Posted: Thu Jul 18, 2019 12:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Knight
 
 Joined: 17 Jul 2017 Posts: 516 Location: UK 
  | 
		  
		    
			  
				hi...i'm not sure where IAM3 looks for log4j.xml properties file - at PATH, CLASSPATH variables or the default Integration server/Broker workpath/classpath folders. 
 
 
You could try compare where all '/var/log' exists and add '/app' to the same and see that works, eg:- to the PATH or CLASSPATH variables. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Dunesh | 
		  
		    
			  
				 Posted: Thu Jul 18, 2019 12:36 am    Post subject: Log4j issue | 
				     | 
			   
			 
		   | 
		 
		
		    Newbie
 
 Joined: 01 Jul 2019 Posts: 7
  
  | 
		  
		    
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | vmanel | 
		  
		    
			  
				 Posted: Sat Jul 20, 2019 5:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Acolyte
 
 Joined: 12 Mar 2019 Posts: 57
  
  | 
		  
		    
			  
				
   
	| abhi_thri wrote: | 
   
  
	hi...i'm not sure where IAM3 looks for log4j.xml properties file - at PATH, CLASSPATH variables or the default Integration server/Broker workpath/classpath folders. 
 
 
You could try compare where all '/var/log' exists and add '/app' to the same and see that works, eg:- to the PATH or CLASSPATH variables. | 
   
 
 
 
You mean to say that, this can be related to log4j.xml file also, and not related to jar? | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |