How to specify derby home to the JVM
People in the list, I would like to specify derby home to the JVM so that the JVM can pickup the database.I added one line in catalina.bat. I added the last line to JAVA_OPTS as shown below: set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" "-Dderby.system.home=C:\Absolute_Path_To_\sql" but it still doesn't work. Apparentely the JVM is not picking it up. Any ideas? How to debug it? Thanks a lot! Ping - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
Tomcat logger class
People in the list, What is the name of the logger class in Tomcat? Is it org.aparche.catalina, or something else? Thank you! I have a path called /movieEditActions in the struts.xml, but I didn't have corresponding webpage to it. When I request it, an exception happens, shown below. I need to know the name of the logger class in Tomcat to handle this exception. Any comments? Ping javax.servlet.ServletException: Request[/movieEditActions] does not contain handler parameter named 'method'. This may be caused by whitespace in the label text. org.apache.struts.actions.DispatchAction.unspecified(DispatchAction.java:224) org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:258) org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:196) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) - Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
logging system initialization
People in the list, I have my own log.java, and I would like to make a call to my own log definitions before initialize/using the digester (org.apache.commons.digester.Digester). However, I have no idea how to call my own log first. Any suggestions? Thank you very much! Right now, I am always getting the log4j warning. Ping - Get your email and see which of your friends are online - Right on the new Yahoo.com
Re: logging system initialization
Ed, Right now commons-digester.jar is in the webapp's classpath, and so it is the jar file (management.jar) which includes my log file, but it still gets the log4j warning error message. log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.TldConfig). log4j:WARN Please initialize the log4j system properly. I am using MyEclipse, and deploying the apps in my local machine. Should I do anything else? Thank you! Ping Ed Griebel <[EMAIL PROTECTED]> wrote: For a WAR file you are going to deploy: create a log4j.properties or a log4j.xml file and get it into your warfile under WEB-INF/classes. The actual process of doing this differs if you are using Maven, an IDE deployer (e.g. JDeveloper or WSAD), or Ant to generate and deploy a WAR. For a webapp running within an IDE, you will need to put the file in a directory in your deployed application's classpath. This is highly specific based on what IDE and plugins you are using, but usually this will be the WEB-INF/classes directory. It could also be placed in an arbitrary directory and the webapp's classpath should then include this arbitrary classpath. If this has nothing to do with a webapp, then it is not even tangentially a Struts issue but you will still want to create a log4j.properties or log4j.xml file and have that on the classpath when executing whatever app you are using. HTH, -ed On 10/30/06, Ping Yu wrote: > People in the list, > > I have my own log.java, and I would like to make a call to my own log > definitions before initialize/using the digester > (org.apache.commons.digester.Digester). However, I have no idea how to call > my own log first. Any suggestions? Thank you very much! > > Right now, I am always getting the log4j warning. > > Ping > > > > - > Get your email and see which of your friends are online - Right on the new > Yahoo.com > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Access over 1 million songs - Yahoo! Music Unlimited Try it today.
logging initialization order
Hi, people in the list, I still got problems in log4j warnings. I didn't use digester in my application. I have my own log.jave file and I would like to initialize my log.java file before Tomcat/struts initializes the Digester logger. Right now, the log4j warning occurs immediately after the application war file is deployed. Nov 9, 2006 2:35:23 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive test.war log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester). log4j:WARN Please initialize the log4j system properly. digester.jar is in my classpath and I didn't use any log4j.property file in my application directly. I have the following questions: 1) Who initializes Digester logger? Tomcat or Struts? How to get to know? 2) When is Digester loaded? How can I get to know? I am using MyEclipse. Are there any ways to trace the loading of Digester logger? 3) Since I am not using log4j or Digester directly in my application, are there any ways that I can load my own log class before Tomcat/Struts load Digester logger? This question has been bothering me for a long time. Any suggestions would be highly appreciated! Ping - Access over 1 million songs - Yahoo! Music Unlimited.