Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile 


i.e.:
_RUNJAVA=%JAVA_HOME%\bin\java
_RUNJAVAW=%JAVA_HOME%\bin\javaw
_RUNJDB=%JAVA_HOME%\bin\jdb
_RUNJAVAC=%JAVA_HOME%\bin\javac
but I'm still getting the HTTP Status 500 Error message:

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] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
OK so what am I still doing wrong?
How know if everything is OK? Is it enough to just do go to 
http://localhost:8080/, even when I have no servlets?

Or could I just try an older version of Tomcat?

Thanks for helping the novice

- Olumide

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


Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile

Here is the full error log - I hope it helps your diagnosis.

Thanks

- Olumde

**  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] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
   at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
   at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:536)



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


Re: Configuring Tomcat (NEWBIE)

2003-07-23 Thread Olumide
Sweet success at last !!!  :-)

I have tried the ENV values  suggested in

http://jakarta.apache.org/tomcat/faq/misc.html#compile 


i.e.:
_RUNJAVA=%JAVA_HOME%\bin\java
_RUNJAVAW=%JAVA_HOME%\bin\javaw
_RUNJDB=%JAVA_HOME%\bin\jdb
_RUNJAVAC=%JAVA_HOME%\bin\javac 


After making the ENV changes, I reinstalled Tomcat and then it worked!

HOORAY!

- Olumide



but I'm still getting the HTTP Status 500 Error message:

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] Since fork is true, ignoring compiler setting.
   [javac] Compiling 1 source file
   [javac] Since fork is true, ignoring compiler setting.
OK so what am I still doing wrong?
How know if everything is OK? Is it enough to just do go to 
http://localhost:8080/, even when I have no servlets?

Or could I just try an older version of Tomcat?

Thanks for helping the novice

- Olumide



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


Configuring Tomcat (NEWBIE)

2003-07-22 Thread Olumide
Hello

I'm sure this is a FAQ and I've tried to retrieve the list of FAQ's 
without success, so please bear with me.

I have installed the Apache HTTP server (its up and running) and Tomcat 
(at least I can see a tomcat.exe is one of the currently running 
processes on my Windows 2000 machine).

What more, when I try accessing the server, I get the  HTTP Status 500 
error:

type: Exception report
message
description: The server encountered an internal error () that prevented 
it from fulfilling this request.
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] Since fork is true, ignoring compiler setting. [javac] 
Compiling 1 source file [javac] Since fork is true, ignoring compiler 
setting. at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) 
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) 
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
..
..
..

I can also see a blue bar below in the browser window in which is 
written Apache Tomcat/4.1.24. So that  probably means tomcat is up and 
running. Ok, so why am I not getting the dynamic HTML pages I expected? 
I am trying to run the Hello World sample servlet 
(http://www.servlets.com/jservlet2/examples/ch02/HelloWorld.java) in 
Jason Hunter's book, Java Servlet Programming. I have successfully 
complied the HelloWorld source code and placed the *.class file in the 
directory: server_root/webapps/ROOT/WEB-INF/classes.

Thanks for helping the novice.

- Olumide

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


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread Olumide

  You're saying that you cannot view
http://jakarta.apache.org/tomcat/faq ? 


I tried via e-mail to: [EMAIL PROTECTED], but got a 
back a message saying : FAQ - Frequently asked questions of the 
[EMAIL PROTECTED] list. None available yet. Thansks however 
for the new links.

Most servlet books are out of date.  They were written when Tomcat had 
something called the Invoker servlet enabled by default.  This is no 
longer the case, because the Invoker servlet is a security risk, so in 
later versions of Tomcat (released after the book was published) the 
Invoker is disabled.  Thus, the example from the book will not work.

See:

http://jakarta.apache.org/tomcat/faq/misc.html#compile
http://jakarta.apache.org/tomcat/faq/misc.html#invoker
http://jakarta.apache.org/tomcat/faq/misc.html#evil 


Thanks again.

Also, as a novice, you are setting yourself up for some potential 
grief by using Apache. 
Ok I will stick to tomcat. Does this mean I should stop the Apache server?

There is no requirement to use Apache to learn JSP and servlet 
development.  You will make things much easier on yourself if you 
ignore Apache for now and simply use Tomcat.  Tomcat is perfectly 
capable of handling all of your needs, both as a normal web server and 
as a servlet container for JSP and servlet development. 
Er ... whats all the talk ablout JSP? All I'm trying to develop is a 
servlet. How closely are servlets related to JSP? I'm sorry to ask. Its 
only because I would like to know.

Thanks for the link 
http://jakarta.apache.org/tomcat/faq/misc.html#compile. I will try the 
environment issue.

- Olumide

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