tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32096] New: - tomcat+tiles exception:javax.servlet.ServletException: Can't get definitions factory from context.
Date Sat, 06 Nov 2004 22:16:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32096>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32096

tomcat+tiles exception:javax.servlet.ServletException: Can't get definitions factory from
context.

           Summary: tomcat+tiles exception:javax.servlet.ServletException:
                    Can't get definitions factory from context.
           Product: Tomcat 5
           Version: 5.0.28
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: jieli98@yahoo.com


I am trying to use tile feature with tomcat5.0.28. But I get the following 
exectpion:
javax.servlet.ServletException: Can't get definitions factory from context.

Here are some links what I got from the internet.

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg13864.html

I had the same problem until I started from "scratch" with a clean tomcat +
jaxp configuration.
I think there was an XML parsing problem using an appropriate version of
jaxp.

let's try this:
1) unpack tomcat4.0b07 into a $TOMCAT_HOME
2) copy $TOMCAT_HOME/jasper/jaxp.jar and $TOMCAT_HOME/jasper/crimson.jar
into $TOMCAT_HOME/lib
3) copy the tiles-webapps into $TOMCAT_HOME/webapps
4) make sure your CLASSPATH is minimal (contains just .; (Win) or .: (Unix)
is the best)
4) start tomcat and go to http://localhost:8080/tiles-doc

if it works, try your custom application.
otherwise let me(us) know.

cheers,

nicolas b.
------------------------------------------------------------------------------
http://www.jguru.com/faq/view.jsp?EID=416062

I spent some time figureing this out myself too. The easiest way to fix this 
is: 
1) Take out the jaxp.jar and parser.jar files from the $TOMCAT_HOME/lib 
directory. 

2) Go to http://java.sun.com/xml and download the JAXP v1.1 zip. 

3) Copy the jaxp.jar and crimson.jar files into $TOMCAT_HOME/lib. 

Restart Tomcat and you'll be set. :o) You can now use the JAXP 1.1 API in your 
apps and Tomcat won't complain one bit. I would imagine you can do this with 
other JAXP parsers too.

But I can't find jaxp.jar and crimson.jar from sun web site. I am looking 
forward to apache's fix and deliver a cleaner tomcat version. Where do I 
download from apache site?

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


Mime
View raw message