You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ro...@surecomp.com on 2011/02/23 15:25:54 UTC

loading an xsl file in javascript

Hello,

Via javascript I am loading xsl's from tomcat to client. My javascript code was the following...

           // sort the xml using xsl stylesheet
           xsl.load("reportwriter/xsl/treesort.xsl");
           xml.loadXML(xml.transformNode(xsl));

           // Load XSL
           xsl.load("reportwriter/xsl/tree.xsl");

This resulted in the following error...

Error: The stylesheet does not contain a document element.  The stylesheet may be empty, or it may not be a well-formed XML document.

I modified the code to the following

           // sort the xml using xsl stylesheet
alert(getUrl() + "/reportwriter/xsl/treesort.xsl");
           xsl.load(getUrl() + "/reportwriter/xsl/treesort.xsl");
           xml.loadXML(xml.transformNode(xsl));

           // Load XSL
alert(getUrl() + "/reportwriter/xsl/tree.xsl");
           xsl.load(getUrl() + "/reportwriter/xsl/tree.xsl");

the alert show the following

https://localhost:7443/Reporting/reportwriter/xsl/treesort.xls (I never get to the second alert)

If I cut/paste the url into browser url line it loads and displays without issue. However,  when I run my webapp I still get the following error

Error: The stylesheet does not contain a document element.  The stylesheet may be empty, or it may not be a well-formed XML document.

So it appears the stylesheet is loading a blank file. Any ideas? Is there something different I need to do with tomcat to load these?

My webapp directory structure is the following

Within tomcat webapps folder I have

Reporting
                Logs
                META-INF
                reportwriter
                                images
                                pages
                                reports
                                scripts
                                xml
                                xsl - this is where the two xsl files are stored
                WEB-INF

This is the contents of treesort.xsl

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="menu">
                <xsl:copy>
                                <xsl:for-each select="menuItem">
                                                <xsl:sort select="@title"/>
                                                <xsl:copy>
                                                                <xsl:copy-of select="@*"/>
                                                                <xsl:for-each select="menuItem">
                                                                                <xsl:sort select="@title"/>
                                                                                <xsl:copy-of select="."/>
                                                                </xsl:for-each>
                                                </xsl:copy>
                                </xsl:for-each>
                </xsl:copy>
</xsl:template>

</xsl:stylesheet>

Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


This mail was sent via Mail-SeCure System.



RE: loading an xsl file in javascript

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
> Subject: RE: loading an xsl file in javascript 

> Localhost_access_log has this
> 127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET 
> /Reporting/reportwriter/xsl/treesort.xsl HTTP/1.1" 200 564

Oops - missed that one.  Install Fiddler2 and see exactly what's coming back in the response.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by Ro...@surecomp.com.
The license expired is a different application we have...

Localhost_access_log has this 127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/xsl/treesort.xsl HTTP/1.1" 200 564


Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Wednesday, February 23, 2011 10:46 AM
To: Tomcat Users List
Subject: RE: loading an xsl file in javascript 

> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
> Subject: RE: loading an xsl file in javascript 

> Platform is Windows 7 32bit
> Using CATALINA_BASE:   "C:\Downloads\tomcat-7\apache-tomcat-7.0.6"
> Using JRE_HOME:        "C:\Development\Java\jdk1.6.0_18\jre"

Thank you.

> Localhost_acess_log

Note that there are *no* requests for treesort.xsl, so it looks like either the browser cached it, or your JavaScript is failing to issue the request.

> Localhost log

> Feb 23, 2011 10:24:03 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)
> Feb 23, 2011 10:24:03 AM org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /allMATCHWeb threw load() exception
> java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)

Looks a tad suspicious, don't you think?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


This mail was sent via Mail-SeCure System.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
> Subject: RE: loading an xsl file in javascript 

> Platform is Windows 7 32bit
> Using CATALINA_BASE:   "C:\Downloads\tomcat-7\apache-tomcat-7.0.6"
> Using JRE_HOME:        "C:\Development\Java\jdk1.6.0_18\jre"

Thank you.

> Localhost_acess_log

Note that there are *no* requests for treesort.xsl, so it looks like either the browser cached it, or your JavaScript is failing to issue the request.

> Localhost log

> Feb 23, 2011 10:24:03 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)
> Feb 23, 2011 10:24:03 AM org.apache.catalina.core.StandardContext loadOnStartup
> SEVERE: Servlet /allMATCHWeb threw load() exception
> java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)

Looks a tad suspicious, don't you think?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by Ro...@surecomp.com.
Hello

Platform is Windows 7 32bit
Tomcat version

Using CATALINA_BASE:   "C:\Downloads\tomcat-7\apache-tomcat-7.0.6"
Using CATALINA_HOME:   "C:\Downloads\tomcat-7\apache-tomcat-7.0.6"
Using CATALINA_TMPDIR: "C:\Downloads\tomcat-7\apache-tomcat-7.0.6\temp"
Using JRE_HOME:        "C:\Development\Java\jdk1.6.0_18\jre"
Using CLASSPATH:       "C:\Downloads\tomcat-7\apache-tomcat-7.0.6\bin\bootstrap.
jar;C:\Downloads\tomcat-7\apache-tomcat-7.0.6\bin\tomcat-juli.jar"
Usage:  catalina ( commands ... )
commands:
  debug             Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  jpda start        Start Catalina under JPDA debugger
  run               Start Catalina in the current window
  run -security     Start in the current window with security manager
  start             Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop              Stop Catalina
  version           What version of tomcat are you running?
Press any key to continue . . .


Logs

Localhost_acess_log
127.0.0.1 - - [23/Feb/2011:10:24:13 -0500] "GET /Reporting/?EXTERNAL_PAGE=RPT_ReportWriter&file=startup.html&entity=001&language=en&country=US&user=Alex&usertype=BANK&customerid=001 HTTP/1.1" 302 -
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/?EXTERNAL_PAGE=RPT_ReportWriter&file=startup.html&entity=001&language=en&country=US&user=Alex&usertype=BANK&customerid=001 HTTP/1.1" 302 5
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/?EXTERNAL_PAGE=RPT_ReportWriter&file=startup.html&entity=001&language=en&country=US&user=Alex&usertype=BANK&customerid=001 HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/?EXTERNAL_PAGE=RPT_ReportWriter&user=Alex&language=en&entity=001&token=null&type=html&file=reporting.html&usertype=BANK&customerid=001 HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/table.css HTTP/1.1" 200 4785
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/simplemenu.css HTTP/1.1" 200 1175
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/simpletabs.css HTTP/1.1" 200 819
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/calendar.css HTTP/1.1" 200 1876
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/global.css HTTP/1.1" 200 1418
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/generic.js HTTP/1.1" 200 33537
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/ajaxUtils.js HTTP/1.1" 200 1285
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/simplemenu.js HTTP/1.1" 200 444
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/grid.js HTTP/1.1" 200 7283
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/soapclient.js HTTP/1.1" 200 15299
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/regexvalidate.js HTTP/1.1" 200 12113
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/date.js HTTP/1.1" 200 10702
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/tree.js HTTP/1.1" 200 1110
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/prototype.js HTTP/1.1" 200 134096
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/calendar_db.js HTTP/1.1" 200 13894
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/timepicker.js HTTP/1.1" 200 7609
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/en_US/reporting.js HTTP/1.1" 200 170272
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/scripts/jquery.min.js HTTP/1.1" 200 78601
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/am1.gif HTTP/1.1" 200 447
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/titleback.gif HTTP/1.1" 200 107
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/pm2.gif HTTP/1.1" 200 470
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/styles/entity001/body_bg.gif HTTP/1.1" 404 1113
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/close.gif HTTP/1.1" 200 106
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/ajax-loader.gif HTTP/1.1" 200 2545
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/Exit.gif HTTP/1.1" 200 1216
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/Refresh.gif HTTP/1.1" 200 1089
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/Run.gif HTTP/1.1" 200 1183
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/New.gif HTTP/1.1" 200 1163
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/Save.gif HTTP/1.1" 200 1113
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/entity001/Delete.gif HTTP/1.1" 200 1124
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/images/cal.gif HTTP/1.1" 200 127
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "POST /Reporting/ReportWriter HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "POST /Reporting/ReportWriter HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:15 -0500] "GET /Reporting/reportwriter/xsl/treesort.xsl HTTP/1.1" 200 564
127.0.0.1 - - [23/Feb/2011:10:24:17 -0500] "POST /Reporting/ReportWriter HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:17 -0500] "POST /Reporting/ReportWriter HTTP/1.1" 200 -
127.0.0.1 - - [23/Feb/2011:10:24:19 -0500] "POST /Reporting/ReportWriter HTTP/1.1" 200 -

Catalina log
Feb 23, 2011 10:23:59 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.20.
Feb 23, 2011 10:23:59 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Feb 23, 2011 10:24:00 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-apr-7080"]
Feb 23, 2011 10:24:00 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["http-bio-7443"]
Feb 23, 2011 10:24:00 AM org.apache.coyote.AbstractProtocolHandler init
INFO: Initializing ProtocolHandler ["ajp-apr-7009"]
Feb 23, 2011 10:24:00 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1762 ms
Feb 23, 2011 10:24:00 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Feb 23, 2011 10:24:00 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.6
Feb 23, 2011 10:24:00 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory allMATCHWeb
Feb 23, 2011 10:24:01 AM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:02 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:03 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Feb 23, 2011 10:24:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Feb 23, 2011 10:24:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Feb 23, 2011 10:24:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory HelloWorld
Feb 23, 2011 10:24:04 AM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Feb 23, 2011 10:24:04 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:04 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Feb 23, 2011 10:24:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Feb 23, 2011 10:24:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Feb 23, 2011 10:24:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory Reporting
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Feb 23, 2011 10:24:05 AM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Feb 23, 2011 10:24:09 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Feb 23, 2011 10:24:09 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-apr-7080"]
Feb 23, 2011 10:24:09 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-7443"]
Feb 23, 2011 10:24:09 AM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-apr-7009"]
Feb 23, 2011 10:24:09 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9050 ms

Localhost log

Feb 23, 2011 10:24:01 AM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'com.sun.xml.ws.transport.http.servlet.WSServletContextListener'
Feb 23, 2011 10:24:01 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:03 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:03 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)
        at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:154)
        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1133)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1087)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4741)
        at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5062)
        at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5057)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Feb 23, 2011 10:24:03 AM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /allMATCHWeb threw load() exception
java.lang.RuntimeException: License Has Expired, Process Terminated (Expiration Date: 20110131)
        at com.surecomp.allMATCH.client.InitServlet.init(InitServlet.java:154)
        at javax.servlet.GenericServlet.init(GenericServlet.java:160)
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1133)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1087)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:996)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4741)
        at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5062)
        at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5057)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'listeners.ContextListener'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'listeners.SessionListener'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Compression Filter'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Set Character Encoding'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Timing filter'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'Request Dumper Filter'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'com.sun.xml.ws.transport.http.servlet.WSServletContextListener'
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:05 AM org.apache.catalina.core.StandardContext listenerStart
FINE:  Configuring event listener class 'com.sun.xml.ws.transport.http.servlet.WSServletContextListener'
Feb 23, 2011 10:24:05 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:05 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:09 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:09 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters

Host_manager log


Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext listenerStart
FINE: Sending application start events
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE: Starting filters
Feb 23, 2011 10:24:04 AM org.apache.catalina.core.StandardContext filterStart
FINE:  Starting filter 'CSRF'



AcessLogValue is set as
      <Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>

      </Host>


Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
Sent: Wednesday, February 23, 2011 10:09 AM
To: Tomcat Users List
Subject: RE: loading an xsl file in javascript

> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com]
> Subject: loading an xsl file in javascript

> Via javascript I am loading xsl's from tomcat to client.

Tomcat version?  JVM version?  Platform?  Tomcat logs?  AccessLogValve enabled?  Fiddler2 shows what?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


This mail was sent via Mail-SeCure System.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Robert.Jenkin@surecomp.com [mailto:Robert.Jenkin@surecomp.com] 
> Subject: loading an xsl file in javascript 

> Via javascript I am loading xsl's from tomcat to client.

Tomcat version?  JVM version?  Platform?  Tomcat logs?  AccessLogValve enabled?  Fiddler2 shows what?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: loading an xsl file in javascript

Posted by Michael Ludwig <mi...@gmx.de>.
Robert.Jenkin@surecomp.com schrieb am 23.02.2011 um 16:59 (+0200):

> xml.loadXML(xml.transformNode(xsl)); if transforming the xml using the
> xml already loaded.. so the source xml is from the target object

Check out transformNodeToObject(clonedDom), that should be more
efficient. Doesn't have anything to do with Tomcat, though.
-- 
Michael Ludwig

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by Ro...@surecomp.com.
More clairification... 


xml.loadXML(xml.transformNode(xsl)); if transforming the xml using the xml already loaded.. so the source xml is from the target object

Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: rob.koberg@gmail.com [mailto:rob.koberg@gmail.com] On Behalf Of Rob Koberg
Sent: Wednesday, February 23, 2011 9:51 AM
To: Tomcat Users List
Cc: Robert Jenkin
Subject: Re: loading an xsl file in javascript

>           // sort the xml using xsl stylesheet
> alert(getUrl() + "/reportwriter/xsl/treesort.xsl");
>           xsl.load(getUrl() + "/reportwriter/xsl/treesort.xsl");
-------------^

>           xml.loadXML(xml.transformNode(xsl));
---------------------------------^

>
>           // Load XSL
> alert(getUrl() + "/reportwriter/xsl/tree.xsl");
>           xsl.load(getUrl() + "/reportwriter/xsl/tree.xsl");

Unless it is a typo, you are transforming your xml before you load it.

You might want to check out Sarissa for client side transforms.

best,
-Rob

This mail was sent via Mail-SeCure System.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: loading an xsl file in javascript

Posted by Ro...@surecomp.com.
Hi

The code is correct we first load the xsl and transform xml using the xsl.

I like also to point out that the code as it stands is working without issue with weblogic 10 and websphere 7. The issue is after the xsl.load() method is called the xsl is blank.

Sincerely,

Robert Jenkin
Surecomp Services, Inc.
2 Hudson Place, 4th Floor
Hoboken, NJ 07030
Skype: robert.jenkin
Office: 201 217 1437 | Direct: 201 716 1219 | Mobile: 908 251 0537
http://www.Surecomp.com


-----Original Message-----
From: rob.koberg@gmail.com [mailto:rob.koberg@gmail.com] On Behalf Of Rob Koberg
Sent: Wednesday, February 23, 2011 9:51 AM
To: Tomcat Users List
Cc: Robert Jenkin
Subject: Re: loading an xsl file in javascript

>           // sort the xml using xsl stylesheet
> alert(getUrl() + "/reportwriter/xsl/treesort.xsl");
>           xsl.load(getUrl() + "/reportwriter/xsl/treesort.xsl");
-------------^

>           xml.loadXML(xml.transformNode(xsl));
---------------------------------^

>
>           // Load XSL
> alert(getUrl() + "/reportwriter/xsl/tree.xsl");
>           xsl.load(getUrl() + "/reportwriter/xsl/tree.xsl");

Unless it is a typo, you are transforming your xml before you load it.

You might want to check out Sarissa for client side transforms.

best,
-Rob

This mail was sent via Mail-SeCure System.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org