Servlet chaining in Tomcat

2000-11-22 Thread Rama Venkata Kunapuli

Folks:

I am trying to chain servlets so output of one is directed to next servlet.

Lacking information, I have tried modifying web.xml and made the following 
entries -- ofcourse, it didn't work!

servlet
servlet-nameServletChain/servlet-name
servlet-classSimpleTextServlet,UpperCaseServlet/servlet-class
/servlet

servlet-mapping
servlet-nameServletChain/servlet-name
url-pattern/cha/url-pattern
/servlet-mapping

Output of SimpleTextServlet is supposed to go to UpperCaseServlet.

Any suggestions on how to make this work ?

Thanks,
Rk

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: NoClassDefFoundError in Tomcat installation

2000-11-17 Thread Rama Venkata Kunapuli

Hi:

I got similar error while trying to execute build.bat file to compile my 
servlets.

I have solved is by making sure that the following are in the CLASSPATH.

jdk's tools.jar -- (needed if you running ant) jaxp.jar -- (needed if you 
are running ant) parser.jar -- server.jar -- servlet.jar

Trust this helps.

Cheers,
Rk

From: "Gregor v. Bochmann" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: NoClassDefFoundError in Tomcat installation
Date: Fri, 17 Nov 2000 10:45:56 -0500

I have just installed the tomcat system under Windows NT and want to serve
some jsp pages. When the first jsp page is executed, I get the
NoClassDefFoundError message (the error message is given below).

Does somebody have an idea what is wrong ?

Can somebody tell me how to obtain a more detailed error log ?

I got the error message below by executing the
 /examples/jsp/sessions/carts.html
page in the examples provided with the tomcat system and then by clicking
on the ADD button.

Thanks for any help

Gregor v. Bochmann
--

Unhandled error! You might want to consider having an error page to report
such errors more gracefully

java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:238)
 at 
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:149)
 at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va:161)
 at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
 at 
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160)
 at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
 at java.lang.Thread.run(Unknown Source)

Gregor v. Bochmann  Tel (613) 562-5800 ext. 6205, Fax 562-5175
School of Information Technology  Engineering,   University of Ottawa
161 Louis Pasteur(CBY A617),PO.Box 450,Stn A,Ottawa,Ont,K1N 6N5,Canada
email:[EMAIL PROTECTED]  http://www.site.uottawa.ca/~bochmann

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.




Re: very very urgent!!!

2000-11-15 Thread Rama Venkata Kunapuli


Rasika:

Please see Tomcat development documentation in jakarta-tomcat\doc\appdev. It 
has excellent approach to build your servlet/jsp applications.

In short you should
make a directory for your application. Say c:\test\cusinf where cusinf is 
the application.
cd test\cusinf
mkdir src
mkdir etc
mkdir lib
mkdir web
copy/build web.xml into etc ( See sample directory listed in documentation)
copy/build build.xml and build.bat files for compilations in c:\test\cusinf 
area
copy your servlet java files into src
run build.bat file in the c:\test\cusinf

It should build the applications move your directory tree into webapps.

Cheers,
Rk

From: "Rasika" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: very very urgent!!!
Date: Thu, 16 Nov 2000 11:43:28 +0800

I have installed Apache3.1 and TOMCAT 3.1
  Inside Apache\donf\httpd.conf I have included reference to 
tomcat-apache.conf file. I have also downloaded apachemodulejserv.dll But 
I'm not able to run my servlets stored inside 
tomcat\webapps\root\web-inf\classes directory. I'm able to run servlets 
created inside tomcat\webapps\examples\web-inf\classes directory. Please 
tell me what configuration I need to do in order to run servlets from 
tomcat root???
Thanks.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.