tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aparna Ramakrishnan <aparna_...@yahoo.com>
Subject Re: jsp pages do not run in tomcat
Date Fri, 18 Nov 2005 13:38:24 GMT
    Hello,
  thnx for ur reply.
   
  Now the jsp pages work fine. i deployed them as a .war file.
  but now, the problem is with the compiler. 
  when i type javac -help, i get Jikes Compiler . (I use Debian LINUX in which jikes comes
bundled with kaffe VM.)
   
  But earlier when i was not using Tomcat, i worked in Netbeans using J2SDK 1.4.
  then the java files could be compiled. but now, after installing tomcat with kaffe and jikes,
both compilers (jikes as well as javac) do not work.
   
  jikes filename.java givs errors.
   
  Error:
  Found 1 System error
  ***Semantic Error: You need to modify your classpath, sourcepath, bootclasspath and/or extdirs
setup.Jikes could not find package java.lang in:
            .
   
    javac filename.java also givs errors.
   
  Error:
  found 20 Semantic errors
  similar to the 1 stated above. servlet.http, variable names, method names nothing found!
   
  how should i correct this? im unable to proceed now. kindly guide me.
   
  thnx in advance
  regards
  aparna

  

Santosh Asbe <santosh.asbe@gmail.com> wrote:
   

  check whether .java & .class files for the JSP are being created in the work folder.
Work folrder is located at <tomcat installation>/work/Standalone/localhost/<application
name>.
  If class files are not being created here for the JSP then check ur JSP for extra semi colons
which sometime creates problems for compilation.
   
   
  

 
  On 11/18/05, Aparna Ramakrishnan <aparna_grk@yahoo.com> wrote:   Hello,
I am running tomcat4. when i start Tomcat using /etc/init.d/tomcat4 start using JAVA_HOME=/usr/lib/kaffe,
tomcat stops to run almost immediately but says the pid file still exists. 

Now if i export JAVA_HOME=/usr/j2sdk1.4.2_09, and start tomcat again, it runs comfortably.

But when i run jsp pages, on the browser, i get the following error.

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


An error occurred at line: -1 in the jsp file: null


Generated servlet error:
[javac] Compiling 1 source file

[javac] Issued 1 system warning:

[javac] *** Semantic Warning: I/O warning: "No such file or directory" while trying to open
/usr/lib/kaffe/pthreads/lib/*.jar. 

[javac] Found 1 semantic error and issued 1 warning compiling "/usr/share/tomcat4/work/Standalone/localhost/_/SeamlessMobility1/centerframe_jsp.java":


[javac] 8. import servlet_classes.Database;; 
[javac] ^----------------------^
[javac] *** Semantic Error: The import "servlet_classes/Database" is not valid, since it does
not name a type in a package.


[javac] 23. javax.servlet.jsp.PageContext pageContext = null;
[javac] ^---------^
[javac] *** Semantic Warning: Local "pageContext" shadows a field of the same name in "org.apache.jasper.runtime.HttpJspBase".



at org.apache.jasper.compiler.DefaultErrorHandler.javacError (DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile (Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:142)
at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:187)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:209)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:144)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java
:596)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.catalina.core.StandardContext.invoke ( StandardContext.java:2358)
at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:133)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java
:596)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve.java:118)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java:594)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:116)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java:594)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:127)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext (StandardPipeline.java:596)
at org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:948)
at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:152)
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:683)
at java.lang.Thread.run (Thread.java:673)
at java.lang.VMThread.run (VMThread.java:123)

Kindly plz guide me, since am a newbie to Tomcat and java.

Thanks in advance.
aparna


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message