[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

java servlet with xsl/xml transform. or java/xml lists

Subject: java servlet with xsl/xml transform. or java/xml listserv(xalan/tomcat)
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 31 Jan 2001 13:16:57 -0800
mapping clash for servletwrapper
(using Xalan and Tomcat & my classpath is at the bottom of this post)

I don't know if this is the correct forum for this question (please point me
to the correct one?).  I am trying to use the servlet example from the
xml.apache.org and xalan2
(http://xml.apache.org/xalan-j/samples.html#servlet).  I am new to java, but
I have servlets working. I compile the source provided by the servlet
example and put it into the examples directory provided by tomcat (servlets
work there).  But when I try to hit the servlet I get:
----------------------------------------------------------------------------
---
Error: 500
Location: /examples/servlet/ApplyXSLT
Internal Servlet Error:

java.lang.NullPointerException
 at java.lang.ClassLoader.resolveClass0(Native Method)
 at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
 at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:518)
 at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java:174)
 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Thread.java:484)
----------------------------------------------------------------------------
-------
So that would seem to me to be a classpath problem but I am pretty sure I
have everything there:

.;%JAVA_HOME%\lib\classes.zip;%XALAN_HOME%\xalan.jar;%XALAN_HOME%\xerces.jar
;%XALAN_HOME%\bsf.jar;%XALAN_HOME%\xalansamples.jar;%XALAN_HOME%\xalanservle
t.jar;%XALAN_HOME%\ant.jar;%XALAN_HOME%\xalan2jdoc.jar;%XALAN_HOME%\xalanj1c
ompat.jar;c:\jsdk2.0\lib\jsdk.jar;c:\xt\sax.jar;c:\xt\xt.jar


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.