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 Shapira, Yoav

Howdy,
Is this the full trace: there's no root cause??

Take the .java file for your .jsp from tomcat's work directory and try
to compile it yourself.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Olumide [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 9:30 AM
To: Tomcat Users List
Subject: Re: Configuring Tomcat (NEWBIE)

 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(DefaultErrorH
andl
er.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
ava:
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.j
ava:
473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
ava:
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(Applic
atio
nFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
terC
hain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
ve.j
ava:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(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(StandardContextVal
ve.j
ava:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(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:24
15)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a:18
0)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
alve
.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a:17
2)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(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
.jav
a:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
invo
keNext(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:5
94)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
Conn
ection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
65)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l.ja
va:619)
at java.lang.Thread.run(Thread.java:536)




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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please

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]


RE: Configuring Tomcat (NEWBIE)

2003-07-22 Thread Shapira, Yoav

Howy,
It's trying to load the page you requested, but failing, because of a
compilation error.  It looks like you're trying to run a JSP, not a
servlet.  Apache is correctly forwarding to tomcat, which attempts to
compile the JSP in order to serve it, but fails.

Post the JSP source code for more help.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Olumide [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:15 PM
To: [EMAIL PROTECTED]
Subject: Configuring Tomcat (NEWBIE)

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(DefaultErrorH
andl
er.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
ava:
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]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread John Turner
Olumide wrote:

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 find this hard to believe.  You're saying that you cannot view
http://jakarta.apache.org/tomcat/faq ?
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.
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
Also, as a novice, you are setting yourself up for some potential grief 
by using Apache.  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.

You can always add Apache into your environment later should you feel 
the need to do so.

John



-
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]


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread John Turner
Olumide wrote:

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?
Sure.  Then, change Tomcat's server.xml file so that the HTTP Connector 
configured for port 8080 is configured for port 80.  Then restart 
Tomcat.  You'll have to make sure that neither Apache nor anything else 
starts up on port 80 that would conflict with Tomcat.


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.
JSP are compiled into servlets.  JSP are optional, but you need 
something like Tomcat to deal with them.

John



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


Re: Configuring Tomcat (NEWBIE)

2003-07-22 Thread epyonne
  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.


Tomcat is a servlet container.  You can run servlet on Tomcat or you can run
JSP which will be translated to servlet on Tomcat as well.  Anyway, if all
you do are servlets, you do not need the application server.  It will save
yourself a lot of grief.

Hope this helps.

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