trebortoe
asked on
Turning off Java Debug
I am running a program that is caling java and the following output is being generated:
I have been told that I need to turn java debug off to make the message go away.
How do I do that
DEBUG: JavaMail version 1.3
DEBUG: java.io.FileNotFoundExcept ion: c:\JDK\jre\lib\javamail.pr oviders (The sys
tem cannot find the file specified)
DEBUG: URL jar:file:/d:/landmark/env/ java/impl/ smtp.jar!/ META-INF/j avamail.pr ovi
ders
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/ java/impl/ smtp.ja
r!/META-INF/javamail.provi ders
DEBUG: not loading resource: /META-INF/javamail.default .providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTra nsport=jav ax.ma
il.Provider[TRANSPORT,smtp ,com.sun.m ail.smtp.S MTPTranspo rt,Sun Microsystems, Inc
]}
DEBUG: Providers Listed By Protocol: {smtp=javax.mail.Provider[ TRANSPORT, smtp,co
m.sun.mail.smtp.SMTPTransp ort,Sun Microsystems, Inc]}
DEBUG: not loading resource: /META-INF/javamail.default .address.m ap
DEBUG: URL jar:file:/d:/landmark/env/ java/impl/ smtp.jar!/ META-INF/j avamail.ad dre
ss.map
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/ java/impl/ smtp.ja
r!/META-INF/javamail.addre ss.map
DEBUG: java.io.FileNotFoundExcept ion
I have been told that I need to turn java debug off to make the message go away.
How do I do that
DEBUG: JavaMail version 1.3
DEBUG: java.io.FileNotFoundExcept
tem cannot find the file specified)
DEBUG: URL jar:file:/d:/landmark/env/
ders
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/
r!/META-INF/javamail.provi
DEBUG: not loading resource: /META-INF/javamail.default
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTra
il.Provider[TRANSPORT,smtp
]}
DEBUG: Providers Listed By Protocol: {smtp=javax.mail.Provider[
m.sun.mail.smtp.SMTPTransp
DEBUG: not loading resource: /META-INF/javamail.default
DEBUG: URL jar:file:/d:/landmark/env/
ss.map
DEBUG: successfully loaded resource: jar:file:/d:/landmark/env/
r!/META-INF/javamail.addre
DEBUG: java.io.FileNotFoundExcept
Is there a configuration file for the program that is calling java?
ASKER
I am trying to find this out, but I don't think so. The main tech for this software says that they do not get this error when they do installs at other locations. He is not aware of a config file in their software to turn this off.
Can you tell us more about your program. Is it a stand alone Java class or a jar file. When you say it calls Java - How do you call it. Do you have the your Java in the classpath of your program. A little more insight on your setup will help.
ASKER
program is called as follows:
%LAW_JAVA_BIN%\java.exe -Xmx512m -DJBOSS_HOME=%JBOSS_HOME% -DJBOSS_SERVER=%JBOSS_SERV ER% -DJ2EE_SERVER=%J2EE_SERVER % -DWAS_HOME=%WAS_HOME% -jar %LAENVDIR%\java\bin\secadm .jar %*
where:
%LAW_JAVA_HOME%=c:\JDK
%JBOSS_HOME%, %JBOSS_SERVER%, %J2EE_SERVER% are not set
%WAS_HOME% = c:\IBM\WebSphere\AppServer
%LAENVDIR% = d:\landmark\env
%LAW_JAVA_BIN%\java.exe -Xmx512m -DJBOSS_HOME=%JBOSS_HOME% -DJBOSS_SERVER=%JBOSS_SERV
where:
%LAW_JAVA_HOME%=c:\JDK
%JBOSS_HOME%, %JBOSS_SERVER%, %J2EE_SERVER% are not set
%WAS_HOME% = c:\IBM\WebSphere\AppServer
%LAENVDIR% = d:\landmark\env
Your jar file secadm.jar should have a manifest.mf file. This file will have the name of the class that is being called initially. You can look in the source of that file to see what information is logged and the mechanism by which it is logged.
Most probably any logger will have a property file or an xml file for its configuration. So you can unzip the secadm.jar and search for *.properties or *.xml files. In those files the logger level might me set to debug and you can change it to Info or Warning.
Most probably any logger will have a property file or an xml file for its configuration. So you can unzip the secadm.jar and search for *.properties or *.xml files. In those files the logger level might me set to debug and you can change it to Info or Warning.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Could you answer if it was the solution for you ?