Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-14 Thread RSEQUEIRA







Ravi Naidu [EMAIL PROTECTED] on 01/14/2002 12:39:28 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  Re: TC 4.0.1/SAXParserFactory.newInstance() error

Dear All,

Tomcat 4 is installed on D drive of my machine. and my web directory for
jsp
pages is  situated on E drive.

How do i set my web driectory path for the web server in the configuration
files.

Create a new Context element in your $CATALINA_HOME/conf/server.xml.
Specify the absolute path in the docBase attribute.
Restart Tomcat for the changes to take effect.

Please help.

Regards,
Ravi.

Hope this helps.
Thanks.
RS







--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-14 Thread Arnaud Héritier

In your server.xml you add a context like this :

Context path=/myContext docBase=E:/Where/ever/you/have/your/webapp debug=0
/Context

arno

 -Message d'origine-
 De:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
 Date: lundi 14 janvier 2002 15:11
 À:Tomcat Users List
 Objet:Re: TC 4.0.1/SAXParserFactory.newInstance() error
 
 
 
 
 
 
 
 Ravi Naidu [EMAIL PROTECTED] on 01/14/2002 12:39:28 AM
 
 Please respond to Tomcat Users List [EMAIL PROTECTED]
 
 To:   Tomcat Users List [EMAIL PROTECTED]
 cc:
 
 Subject:  Re: TC 4.0.1/SAXParserFactory.newInstance() error
 
 Dear All,
 
 Tomcat 4 is installed on D drive of my machine. and my web directory for
 jsp
 pages is  situated on E drive.
 
 How do i set my web driectory path for the web server in the configuration
 files.
 
 Create a new Context element in your $CATALINA_HOME/conf/server.xml.
 Specify the absolute path in the docBase attribute.
 Restart Tomcat for the changes to take effect.
 
 Please help.
 
 Regards,
 Ravi.
 
 Hope this helps.
 Thanks.
 RS
 
 
 
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-13 Thread Sriram Narayanan

Hi Mark,

1/13/02 3:00:50 AM, Mark [EMAIL PROTECTED] wrote:

I thought CLASSPATH isn't used for locating jars in TC 4.0?  

You're right, it is not. 

I'd meant to say that there's a jaxp implementation being loaded somehow.

In any case, I
do use the startup scripts that come with Tomcat and was already through
step 3 of your suggestions when I originally posted the question (eg. no
jaxp/crimson available in any Tomcat or $JAVA_HOME directories, and The TC
version of xerces.jar in common/lib).  To answer your question, no my app
isn't bundling xerces or crimson.

I'm not sure why this exception is being thrown to begin with...



Since the tomcat startup script sets aside the CLASSPATH env. variable, and assembles 
together one of it's own,
the only places from where jars are going to be loaded from are:
1. The $JAVA_HOME/jre/lib/ext directory.
2. The tomcat folder hierarchy

For the first, point, please check that you indeed have nothing in the 
$JAVA_HOME/jre/lib/ext directory.
It may even be something silly like having two JDKs installed, and you thinking you're 
using one, where as you might be using the other.

For the second point,
1. List out all jar files, and see if there's any repeat xerces or jaxp or crimson jar 
from somewhere.
2. If this doesn't work, then try setting up a fresh Tomcat 4.0.1 directory and 
running you app in this newly setup tomcat.

Lastly, if all this doesn't help, post your complete StackTrace. Someone might be able 
to help.

Sriram



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-13 Thread Ravi Naidu

Dear All,

Tomcat 4 is installed on D drive of my machine. and my web directory for jsp
pages is  situated on E drive.

How do i set my web driectory path for the web server in the configuration
files.

Please help.

Regards,
Ravi.
- Original Message -
From: Sriram Narayanan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 12:09 AM
Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error


 Hi,

 Looks like there's may be another copy of the Jaxp classes somewhere in
the classpath..Please try the following:

 1. Use the startup scripts that come with tomcat 4.0.1. These unset the
CLASSPATH environment variables and crete custom variables for
 Tomcat's startup.

 2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars
files in $JAVA_HOME/lib/ext

 3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar
and jaxp.jar from where ever you have placed them in the $CATALINA_HOME
 sub directories.
 Having done that, place a copy of xerces.jar in $CATALINA_HOME/common/lib
 The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size
(1,808,883 bytes)

 4. Just a question, is your app also bundling Xerces/crimson ? Look for
the jars in the WIB-INF/lib sub-directory.


 Sriram

 1/12/02 11:17:36 PM, Mark [EMAIL PROTECTED] wrote:

 I'm attempting to port a working application to Tomcat 4.0.1 and hit a
 problem with SAX parsing.  When this line of code is executed
 
   SAXParserFactory factory = SAXParserFactory.newInstance();
 
 I got a ClassCastException error:
 
 java.lang.ClassCastException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
  at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148)
 
 I looked at the Tomcat archives and tried what the Tomcat documentation
 says to do, eg. move xerces.jar into my WEB-INF directory or into the
 $CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out.
 Documentation located at

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tom
c
 at%204%20and%20XML%20Parsers   After doing that however, I get the same
 error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs.
 crimson.
 
 Has someone slayed this dragon before?  If so, any help would be greatly
 appreciated.
 
 Mark
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 




 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-12 Thread Mark

I'm attempting to port a working application to Tomcat 4.0.1 and hit a
problem with SAX parsing.  When this line of code is executed

  SAXParserFactory factory = SAXParserFactory.newInstance();

I got a ClassCastException error:

java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl
 at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148)

I looked at the Tomcat archives and tried what the Tomcat documentation
says to do, eg. move xerces.jar into my WEB-INF directory or into the
$CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out.
Documentation located at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tomc
at%204%20and%20XML%20Parsers   After doing that however, I get the same
error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs.
crimson.

Has someone slayed this dragon before?  If so, any help would be greatly
appreciated.

Mark



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-12 Thread Mark

I thought CLASSPATH isn't used for locating jars in TC 4.0?  In any case, I
do use the startup scripts that come with Tomcat and was already through
step 3 of your suggestions when I originally posted the question (eg. no
jaxp/crimson available in any Tomcat or $JAVA_HOME directories, and The TC
version of xerces.jar in common/lib).  To answer your question, no my app
isn't bundling xerces or crimson.

I'm not sure why this exception is being thrown to begin with...


At 12:09 AM 1/13/2002 +0530, you wrote:
Hi,

Looks like there's may be another copy of the Jaxp classes somewhere in
the classpath..Please try the following:

1. Use the startup scripts that come with tomcat 4.0.1. These unset the
CLASSPATH environment variables and crete custom variables for 
Tomcat's startup.

2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars
files in $JAVA_HOME/lib/ext

3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar
and jaxp.jar from where ever you have placed them in the $CATALINA_HOME  
sub directories.
   Having done that, place a copy of xerces.jar in $CATALINA_HOME/common/lib
   The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size
(1,808,883 bytes)

4. Just a question, is your app also bundling Xerces/crimson ? Look for
the jars in the WIB-INF/lib sub-directory.


Sriram

1/12/02 11:17:36 PM, Mark [EMAIL PROTECTED] wrote:

I'm attempting to port a working application to Tomcat 4.0.1 and hit a
problem with SAX parsing.  When this line of code is executed

  SAXParserFactory factory = SAXParserFactory.newInstance();

I got a ClassCastException error:

java.lang.ClassCastException:
org.apache.crimson.jaxp.SAXParserFactoryImpl
   at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148)

I looked at the Tomcat archives and tried what the Tomcat documentation
says to do, eg. move xerces.jar into my WEB-INF directory or into the
$CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out.
Documentation located at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tomc
at%204%20and%20XML%20Parsers   After doing that however, I get the same
error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs.
crimson.

Has someone slayed this dragon before?  If so, any help would be greatly
appreciated.

Mark



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED].


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: TC 4.0.1/SAXParserFactory.newInstance() error

2002-01-12 Thread George Shafik


I encountered something similar with building Tomcat 3.2.4. It appears that
it used relative paths to find jar files. Keep in mind these relative
paths are based on what you have set the following environment variables to
JAKARTA_HOME, JAVA_HOME and ANT_HOME. You will find the CRIMSON.jar and
JAXP.jar created for you when you use Jakart-ant. Copy these files to the
location its looking for them when you do your Tomcat build.


- Original Message -
From: Mark [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, January 13, 2002 8:30 AM
Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error


 I thought CLASSPATH isn't used for locating jars in TC 4.0?  In any case,
I
 do use the startup scripts that come with Tomcat and was already through
 step 3 of your suggestions when I originally posted the question (eg. no
 jaxp/crimson available in any Tomcat or $JAVA_HOME directories, and The TC
 version of xerces.jar in common/lib).  To answer your question, no my app
 isn't bundling xerces or crimson.

 I'm not sure why this exception is being thrown to begin with...


 At 12:09 AM 1/13/2002 +0530, you wrote:
 Hi,
 
 Looks like there's may be another copy of the Jaxp classes somewhere in
 the classpath..Please try the following:
 
 1. Use the startup scripts that come with tomcat 4.0.1. These unset the
 CLASSPATH environment variables and crete custom variables for
 Tomcat's startup.
 
 2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars
 files in $JAVA_HOME/lib/ext
 
 3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar
 and jaxp.jar from where ever you have placed them in the $CATALINA_HOME
 sub directories.
  Having done that, place a copy of xerces.jar in
$CATALINA_HOME/common/lib
  The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size
 (1,808,883 bytes)
 
 4. Just a question, is your app also bundling Xerces/crimson ? Look for
 the jars in the WIB-INF/lib sub-directory.
 
 
 Sriram
 
 1/12/02 11:17:36 PM, Mark [EMAIL PROTECTED] wrote:
 
 I'm attempting to port a working application to Tomcat 4.0.1 and hit a
 problem with SAX parsing.  When this line of code is executed
 
   SAXParserFactory factory = SAXParserFactory.newInstance();
 
 I got a ClassCastException error:
 
 java.lang.ClassCastException:
 org.apache.crimson.jaxp.SAXParserFactoryImpl
  at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148)
 
 I looked at the Tomcat archives and tried what the Tomcat documentation
 says to do, eg. move xerces.jar into my WEB-INF directory or into the
 $CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out.
 Documentation located at

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#To
mc
 at%204%20and%20XML%20Parsers   After doing that however, I get the same
 error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs.
 crimson.
 
 Has someone slayed this dragon before?  If so, any help would be greatly
 appreciated.
 
 Mark
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED].


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]