RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i checked the xercesImpl.jar (from xerces-2.0.2)and it didn't have
org/w3c/dom/ranges/DocumentRange.class so i downloaded the source of
xerces-1.4.4. after building the binary dist i set tomcat's build.properties
to xerces.jar and bang! it worked.

thanks Ralph for you help

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 8:04 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The xerces that is delivered with tomcat 
should be okay (at least it is for 4.0.3).

To view the content of a jar use either 
$JAVA_HOME/bin/jar tvf 
or use an ordinary zip tool.

Are you shure that that you don't have an jar file
on your system that contains the w3c classes that 
might be found before xerces ?

There might be other jar files that contain this 
classes. Have look espcially at jar files in
$JAVA_HOME/jre/lib/ext.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

> -Ursprüngliche Nachricht-----
> Von: Anderson, Richard D ERDC-ITL-MS Contractor
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 12. August 2002 14:54
> An: 'Tomcat Users List'
> Betreff: RE: 500 error on all JSP pages
> 
> 
> i'll do that. funny thing is tomcat comes with xerces.jar and 
> i've used the
> file the came packaged with tomcat 4.0.4.
> 
> i have downloaded the latest xerces.jar and i will try that.  
> if none of that works how do i check the jar file
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

thanks i'm checking my jars now; $JAVA_HOME/jre/lib/ext did not have the
class
and i will definitely check tools.jar and xercesImpl.jar.

xerces2.0.2 does not have xerces.jar or crimson.jar. from what i read, the
classes in both 

are placed in xercesImpl.jar


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 8:04 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The xerces that is delivered with tomcat 
should be okay (at least it is for 4.0.3).

To view the content of a jar use either 
$JAVA_HOME/bin/jar tvf 
or use an ordinary zip tool.

Are you shure that that you don't have an jar file
on your system that contains the w3c classes that 
might be found before xerces ?

There might be other jar files that contain this 
classes. Have look espcially at jar files in
$JAVA_HOME/jre/lib/ext.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de 

> -Ursprüngliche Nachricht-
> Von: Anderson, Richard D ERDC-ITL-MS Contractor
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 12. August 2002 14:54
> An: 'Tomcat Users List'
> Betreff: RE: 500 error on all JSP pages
> 
> 
> i'll do that. funny thing is tomcat comes with xerces.jar and 
> i've used the
> file the came packaged with tomcat 4.0.4.
> 
> i have downloaded the latest xerces.jar and i will try that.  
> if none of that works how do i check the jar file
> 

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i'll do that. funny thing is tomcat comes with xerces.jar and i've used the
file the came packaged with tomcat 4.0.4.

i have downloaded the latest xerces.jar and i will try that.  if none of
that works how do i check the jar file

to see if it contains the class needed?  i tried unsuccessfully to view it
using an editor, i figured i couldn't, but i was worth a try.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 7:43 AM
To: Tomcat Users List
Subject: AW: 500 error on all JSP pages


The relevant part is the root cause (see below).

It looks like your xerces.jar isn't found or the 
jar that is found is an outdated version.

So look where the jar is and if it is the only 
one on your system, and check that it contains 
the org/w3c/dom/ranges/DocumentRange.class.

> -Ursprüngliche Nachricht-
> Von: Anderson, Richard D ERDC-ITL-MS Contractor
> [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 12. August 2002 14:04
> An: 'Tomcat Users List'
> Betreff: RE: 500 error on all JSP pages
> 
> - Root Cause -
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:130)

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: 500 error on all JSP pages

2002-08-12 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i have experienced the same issue using tomcat 4.0.4, have any suggestions?
i'm running red hat 7.2, tomcat 4.0.4,and j2sdk1.4.0_01.

the error log says (it's really long):


2002-08-09 10:13:28 WebappLoader[/examples]: Deploying class repositories to
work directory
/home/u4ih9rda/project/Jakarta/jakarta-tomcat-4.0.4-src/dist/work/Standalone
/localhost/examples
2002-08-09 10:13:28 WebappLoader[/examples]: Reloading checks are enabled
for
this Context
2002-08-09 10:13:28 StandardManager[/examples]: Seeding random number
generator
class java.security.SecureRandom
2002-08-09 10:13:28 StandardManager[/examples]: Seeding of random number
generator has been completed
2002-08-09 10:13:29 ContextConfig[/examples]: Added certificates -> request
attribute Valve
2002-08-09 10:13:29 ContextConfig[/examples]: Configured an authenticator
for
method FORM
2002-08-09 10:13:29 ContextListener: contextInitialized()
2002-08-09 10:13:29 SessionListener: contextInitialized()
2002-08-09 10:13:29 ContextListener:
attributeReplaced('org.apache.catalina.WELCOME_FILES',
'[Ljava.lang.String;@901437')
2002-08-09 10:13:29 StandardWrapper[/examples:default]: Loading container
servlet default
2002-08-09 10:13:29 StandardWrapper[/examples:invoker]: Loading container
servlet invoker
2002-08-09 10:13:29 StandardContext[/examples]: Servlet /examples threw
load()
exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
Parser.java:347)
at
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:1
38)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:35
0)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3279)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(C

RE: Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i tried the trick and it didn't work.  i still get the same error message.
it looked more like a java issue to me. have any more suggestions?

what i doing here is building tomcat straight from source and i have the
most recent src version off the jakarta website.  


-Original Message-
From: Carlos Ferreira [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 12:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Error 500 need help



it looks like you have an xml parser conflict ( tomcat's xerces and the
jdk's xml parser ).

either download tomcat4-LE-jdk14 or reorder your xml parser's jar files in
your classpath ( ie put xml-apis.jar, xercesImpl.jar first in your
CLASSPATH). check xerces' documentation for further info.


good look

> ***i'm getting an error i can't solve.
> during the build process i get a message that states this:
> [javadoc]
>
/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
> r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
> import sun.tools.javac.Main;
>  ^
> the build is successful but the jsp examples generate the error below
>
> any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux
> 7.2. i'm assuming that i get this error because of the message above.
>
>
> Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> Exception
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
> 6)
>   at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
>   at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:214)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:190)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
> .java:475)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
> 46)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>   at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
> )
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :174)
>   at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
>   at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1027)
>   at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
> )
>   at java.lang.Thread.run(Thread.java:536)
> root cause
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
>   at java.lang.Class.forName0(Native Method)
>   at java.lang.Class.forName(Class.java:130)
>   at
>
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
> Parser.java:347)
>   at
>
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
> )
>   at org.apache.xerces.pars

Error 500 need help

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

***i'm getting an error i can't solve. 
during the build process i get a message that states this:
[javadoc]
/Jakarta/jakarta-tomcat-4.0.4-src/jasper/src/share/org/apache/jasper/compile
r/SunJavaCompiler.java:65:package sun.tools.javac does not exist
import sun.tools.javac.Main; 
 ^
the build is successful but the jsp examples generate the error below

any one have a solution??  i'm using j2sdk1.4.0_01 on read hat linux 7.2.
i'm assuming that i get this error because of the message above.


Apache Tomcat/4.0.4 - HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
Exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:94
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
at java.lang.Thread.run(Thread.java:536)
root cause 
java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
org.apache.xerces.parsers.AbstractDOMParser.setDocumentClassName(AbstractDOM
Parser.java:347)
at
org.apache.xerces.parsers.AbstractDOMParser.reset(AbstractDOMParser.java:417
)
at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:151)
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:20
1)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:201)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:138)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:265)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
8)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)

RE: SSL just for a login page

2002-08-09 Thread Anderson, Richard D ERDC-ITL-MS Contractor

i'm using j2sdk1.4.0_01 for linux, and you have to set JAVA_HOME in your
PATH.  now i do know that javac automatically sets the classpath to the
location of the tools.jar file located in /lib 

-Original Message-
From: Drinkwater, GJ (Glen) [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 10:26 AM
To: 'Tomcat Users List'
Subject: RE: SSL just for a login page


just downloaded it version 1.7 using it with java 1.4 beta

installation says that you dont need to do anything (already got JAVA_HOME),
when i run it it just pulls up errors??


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: