Re: dear friend i'm in a big trouble

2004-11-10 Thread Phillip Mangwiro
Raasi Potluri wrote:
I'm just a beginner and I have installed Tomcat5.0 and
try to run a simple servlet. I have copied the
compiled servlet on the webapps/root/WEB-INF/classes
and added the servlet name and servlet mapping in the
web.xml file. I'm trying to call my HelloClientServlet
from http://localhost:3030/servlet/HelloClientServlet
from the web browser, after restarting the tomcat http
server it says the follwing
my tomcat server is listening at port 3030
***
HTTP Status 404 - /servlet

type Status report
message /servlet
description The requested resource (/servlet) is not
available.

 

Since you copied your servlet to the root web  I've assumed that you've 
created a ServletContext using /HelloClientServlet
I think need to use this url http://localhost/HelloClientServlet

Apache Tomcat/5.0.28
***
and I have tried to run a simple example JSP already
in the examples folder, it gives me the follwing error
*
HTTP Status 500 - 


type Exception report
message 

description The server encountered an internal error
() that prevented it from fulfilling this request.
exception 

org.apache.jasper.JasperException: Unable to compile
class for JSP
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause 

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is
available in the Apache Tomcat/5.0.28 logs.
 


 

Apache Tomcat/5.0.28
*
 

Copy the tools.jar from your JDK installation to the $TOMCAT_DIR/common/lib
where $TOMCAT_DIR is where you have your installed tomcat binaries.
please help me, i'm troubling with this error since
three days and I have read lot of manuals and changed
the class path and set the jdk home and catalina home
as environment variable, still this error, please help
me
regards, raasi
		
__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 


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


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


Re: wrong version 49.0

2004-11-10 Thread Phillip Mangwiro
Wei Wei wrote:
After installed 5.0.29 TC, I tried to bring up the new application I just start 
today. I get the following error message. Can some tell me what is wrong here.
2004-11-04 10:42:39 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 
5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot 
access java.lang.Object
Generated servlet error:
bad class file: C:\Program 
Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error

at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:492)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:471)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:459)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
2004-11-04 10:44:25 StandardWrapperValve[jsp]: Servlet.service() for servlet 
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 
5.0\work\Catalina\localhost\gallery\org\apache\jsp\index_jsp.java:7: cannot 
access java.lang.Object
Generated servlet error:
bad class file: C:\Program 
Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the 
classpath.
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
^
1 error

	at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
	at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
	at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:432)
	at 

Re: Tomcat 5.5 JRE 1.5

2004-09-30 Thread Phillip Mangwiro
Caldarale, Charles R wrote:
From: Phillip Mangwiro [mailto:[EMAIL PROTECTED]
Subject: Tomcat 5.5  JRE 1.5
Can anyone send me the install doc or a link to jre1.5?
   

Sun renamed 1.5 to 5.0 some weeks back.  There's a link to the download on the right hand side of the Java home page (http://java.sun.com).
 

Tried link java.sun.com.
Got as far as the list page where it lists the JDK  JVM but kept on 
getting Document contains no data! error on clicking download.
Can you send me the actual link to the JRE  or JDK setup file?


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


Tomcat 5.5 JRE 1.5

2004-09-28 Thread Phillip Mangwiro
I have been using Tomcat 5.0 successfully for sometime now  I recently 
downloaded Tomcat 5.5. I read the docs on 5.5  it requires jre 1.5 or 
as the docs say read the install doc to modify it to work with 1.4.x, 
there was no such doc in my distribution  I can't sem to find a  jre1.5 
installer anywhere. I have jre1.4.2_05,. Java Web Start tells me that 
there are no available updates. Can anyone send me the install doc or a 
link to jre1.5?

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