Help coderanch get a
new server
by contributing to the fundraiser

Ria Mathur

Greenhorn
+ Follow
since Oct 11, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ria Mathur

strange!!!
When I put this jsp under ROOT folder, it works...
But not in my the directory I have created???
21 years ago
JSP
I am unable to run my hello world JSP on Tomcat 4.0. It gives me internal server error. What couldbe the reason?
ype 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:946)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
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/xml/sax/ext/Attributes2
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1643)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:937)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1372)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at gnu.xml.aelfred2.XmlReader.(XmlReader.java:67)
at gnu.xml.aelfred2.JAXPFactory$JaxpParser.(JAXPFactory.java:140)
at gnu.xml.aelfred2.JAXPFactory.setFeature(JAXPFactory.java:98)
at gnu.xml.dom.JAXPFactory.newDocumentBuilder(JAXPFactory.java:96)
at org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:198)
at org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.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:918)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
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)
21 years ago
JSP
Is there a Map implementation that allows duplicate keys? I wand to use it for storing parameters and their values, and some parameters can have same names.
21 years ago
Is it posible to send request object and its parameters to another servlet, using response.sendRedirect() or something similar.
i have posted lot of data to the servlet, and the servlet needs to send some data to another servlet. It cannot be GET. How to do this?
21 years ago
Is java.util.properties a part of java collection framework classes?
Where can I find latest version of JLS, with information on assertion, nio and all? The one I have downloaded from Sun's site looks dated - http://java.sun.com/docs/books/jls/index.html
Thnaks,
Ria
Thank you everyone, it works now.
Can someone explain the tomcat and apache conflict?
- Ria
22 years ago
How can I use tomcat as a service on windows 2000?
Also, is Apache a better option than tomcat?
- Ria
22 years ago
I have recently installed Tomcat on my win 2k machine. I have set the necessary env vaiables and I am able to run the sample servlets successfully. How can I run my own servlets here? Where do I put them? I have made a dir "TEST" under webapps and put my servlet class files there, but no luck. Do I need to write some XML files here? I know nothing abt XML, how can I run my servlets using tomcat?
Also, is it true that tomcat is not used for commercial purpose? Can I run servlets with apache?
Thanks,
- Ria
22 years ago
The main() method needs to be inside the the class.
Hope it helps,
- Ria
22 years ago
The statement is from Manish's notes -
"If the compiler gives you the default no-args constructor for the class, its accessibility is same as the class. "
How can we see accessibility of the constructor which is given by the compiler? I mean since it is not in the source file?
Thanks,
- Ria
Thanx Manish,
It was the classpath in JRun, It couldn't get it to convert into a servlet, now the problem is solvd. Thanx a lot.
-Ria
22 years ago
JSP
I am trying to run my first JSP page with JRun,
The code is plain "hello world" in HTML, but I am getting internal server error 500 when I try to view the page. The same installation of JRun runs servlets w/o any problem, so there's is no problem with the installation.
Am I supposed to put these JSP pages in a specific directory of JRun like servlets? The documentation doesn't mention this. Anyone with JRun exp pls help. I am running JRun on Win2k
Thanks,
Ria
22 years ago
JSP
Thank you Manish,
This is a very useful information. I'll also register for it and I can also purchase J@whiz from the money saved.
Thank you again.
~ Ria