[Mav-user] Sample XSLT transform

2004-05-27 Thread Jon Newton
Hello mav-users, 

I understand the concept of the configTransform property but don't have
any experience w/ xslt. I was hoping someone could provide a sample
transformation for populating global views into a set of commands..


view name=loginRequired/

command secure=true
  ...
/command
 
Which would magically turn into 

view name=loginRequired

command 
  view id=loginRequired/
  ...
/command

Jon 


Jon Newton 
Scan Business Systems 
800-906-7226


---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149alloc_id66op=click
[INVALID FOOTER]


[Mav-user] Log4J init problem

2004-05-27 Thread Katherine Stone

Hello All,
I am really going bonkers over an error with my Log4j init.I followed instructions here http://mav.sourceforge.net/maverick-manual.html for initializing log4j.What am I doing wrong?

-using tomcat 4.1.24-log4j-1.1.3.jar in app\WEB-INF\lib-log4j.properties in app\WEB-INF\lib


Following are the ERRORS, web.xml, my init servlet, log4j.properties
ERRORStarting service Tomcat-StandaloneApache Tomcat/4.1.24MaverickLog4JInit:Finished Initializing Log4j using the properties file at: C:\tomcatNEW\jakarta-tomcat-4.1.24\webapps\app\WEB-INF\lib\log4j.propertieslog4j:ERROR No appenders could be found for category (org.infohazard.maverick.Dispatcher).log4j:ERROR Please initialize the log4j system properly.Initializing Torque using the properties file at: C:\tomcatNEW\jakarta-tomcat-4.1.24\webapps\app\WEB-INF\Torque.propertiesMay 27, 2004 12:12:59 PM org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote HTTP/1.1 on port 8080


WEB.XML?xml version="1.0"?!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
!--$Id: web.xml,v 1.2 2002/02/20 17:27:02 rcampbel Exp $$Source: /export/cvsroot/EX/hrc/web/WEB-INF/web.xml,v $--
web-appcontext-paramparam-namejavax.servlet.jsp.jstl.temp.ExpressionEvaluatorClass/param-nameparam-valueorg.infohazard.jstl.FixedJavascriptExpressionEvaluator/param-value/context-paramservletservlet-namelog4jInit/servlet-namedisplay-nameMaverick Log4J Init Servlet/display-nameservlet-classmyorg.app.maverick.MaverickLog4JInit/servlet-classinit-param param-namelog4jPropertiesFile/param-name param-valueWEB-INF\lib\log4j.properties/param-value
 /init-paramload-on-startup2/load-on-startup/servletservletservlet-namedispatcher/servlet-namedisplay-nameMaverick Dispatcher/display-nameservlet-classmyorg.utilapp.maverick.MaverickTorqueServlet/servlet-classinit-param param-nametorquePropertiesLocation/param-nameparam-value/WEB-INF/Torque.properties/param-value/init-paraminit-paramparam-namereloadCommand/param-nameparam-valuereload/param-value/init-param init-param
 param-namelog4jPropertiesFile/param-name param-value/WEB-INF/lib/log4j.properties/param-value /init-param
load-on-startup3/load-on-startup/servletservlet-mappingservlet-namedispatcher/servlet-nameurl-pattern*.m/url-pattern/servlet-mappingtaglibtaglib-urihttp://java.sun.com/jstl/ea/core/taglib-uritaglib-location/WEB-INF/c.tld/taglib-location/taglibresource-ref res-ref-namejdbc/foo/res-ref-name  res-typejavax.sql.DataSource/res-type  res-authContainer/res-auth /resource-ref/web-app



INIT SERVLET
package myorg.app.maverick;
import org.apache.log4j.PropertyConfigurator;import javax.servlet.http.HttpServlet;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;
public class MaverickLog4JInit extends HttpServlet {
private static final String LOG4J_PROPERTIES_LOCATION ="log4jPropertiesFile";private static final String DEFAULT_LOG4J_PROPERTIES_LOCATION ="WEB-INF/lib/log4j.properties"; public void init() {String log4jPropertiesLocation =getRealPathFromInitParam(LOG4J_PROPERTIES_LOCATION,DEFAULT_LOG4J_PROPERTIES_LOCATION);
if (log4jPropertiesLocation != null) {PropertyConfigurator.configure(log4jPropertiesLocation);}System.out.println("MaverickLog4JInit:Finished Initializing Log4j using the properties file at: "+ log4jPropertiesLocation); }
 public void doGet(HttpServletRequest req, HttpServletResponse res) { }  protected String getRealPathFromInitParam( String pInitParam, String pDefault){
 //get the path of the properties file, relative to webapp root String location = getServletConfig().getInitParameter(pInitParam);
 if (location == null) { location = pDefault; }
 //get the real path for the file based on the relative path return getServletContext().getRealPath(location);
 }}


LOG4J.PROPERTIES

# Set root logger level to DEBUG and its only appender to console.
log4j.rootLogger=DEBUG, C, Chainsaw
log4j.logger.org.apache.commons=WARNlog4j.logger.org.apache.jk=WARNlog4j.category.org.apache.log4j.net.SocketNode=DEBUGlog4j.logger.org.apache.axis=INFO#changed logging levels for torque and maverick packages 4-9-2004 KAStone#log4j.logger.org.infohazard.maverick=INFO#log4j.logger.org.apache.torque=INFO#log4j.logger.myorg.maverick = INFO

#Chainsaw propertieslog4j.appender.Chainsaw=org.apache.log4j.net.SocketAppenderlog4j.appender.Chainsaw.remoteHost=localhostlog4j.appender.Chainsaw.port=4445log4j.appender.Chainsaw.locationInfo=true
#log file in catalina log