aspose file tools*
The moose likes Applets and the fly likes Some jar file calling server for unknown classes when applet loads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Some jar file calling server for unknown classes when applet loads" Watch "Some jar file calling server for unknown classes when applet loads" New topic
Author

Some jar file calling server for unknown classes when applet loads

batuk chatuk
Greenhorn

Joined: Dec 29, 2006
Posts: 12
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 ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
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.


Ping & DNS - my free Android networking tools app
batuk chatuk
Greenhorn

Joined: Dec 29, 2006
Posts: 12
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
Marshal

Joined: Mar 22, 2005
Posts: 42286
    
  64
No, it's the default to look for these.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Some jar file calling server for unknown classes when applet loads