Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Some jar file calling server for unknown classes when applet loads

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am using an applet which downloads jar files to the client machine cache. in those jar files I have log4j-1.2.7.jar and commons-logging.jar... log4j will be used to show only "ERROR" on client console.. but when my applet loads first time in the browser, it makes call to server for below mentioned classes which are not available in log4j jar.. i dont understand from where this call is made and how can I remove it..


HEAD http://test.server.com/upload/log4j.xml 404 Not Found
HEAD http://test.server.com/upload/log4j.xml404 Not Found
HEAD http://test.server.com/upload/log4j.properties404 Not Found
HEAD http://test.server.com/upload/log4j.properties404 Not Found
GET http://test.server.com/upload/org/apache/log4j/ConsoleAppenderBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/ConsoleAppenderBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/WriterAppenderBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/WriterAppenderBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/AppenderSkeletonBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/AppenderSkeletonBeanInfo.class 404 Not Found
GET http://test.server.com/upload/java/lang/ObjectBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/PatternLayoutBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/PatternLayoutBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/LayoutBeanInfo.class 404 Not Found
GET http://test.server.com/upload/org/apache/log4j/LayoutBeanInfo.class 404 Not Found
GET http://test.server.com/upload/commons-logging.properties 404 Not Found
GET http://test.server.com/upload/META-INF/services/org.apache.commons.logging.LogFactory 404 Not Found

Also this happens again when i close the browser and start again...

i think it may have something to do with the log4j.conf file which is like below...
:::::::::::::::
log4j.logger.com.asite = ERROR,stdout,R

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d [%t] %-5p - %m%n0
log4j.logger.AssemblyLine.myAL=ERROR, CONSOLE
log4j.logger.EventHandler.myEH=ERROR, CONSOLE
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.R=org.apache.log4j.ConsoleAppender
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%5p [%t] (%C:%L) - %m%n
log4j.appender.R.Target=System.err
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.rootCategory=ERROR, stdout ,R
log4j.appender.stdout.Threshold=ERROR
log4j.appender.CONSOLE.Threshold=ERROR

log4j.logger.com.elink.jbe=ERROR,stdout,R

:::::::::::::::::::::

can anyone give some idea...

thanks..

[ December 19, 2007: Message edited by: batuk chatuk ]

[ December 19, 2007: Message edited by: batuk chatuk ]
[ December 21, 2007: Message edited by: batuk chatuk ]
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You probably can't get rid of those messages, short of not using log4j. log4j can be configured in a number of ways, including through various files, so the class loader is looking for those files. So these are not actually signs of errors, and can be ignored.
 
batuk chatuk
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ohh.. so can I make some change in the configuration of log4j itself sothat i dont get these??? or is this default implementation of log4j??
 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, it's the default to look for these.
 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic