Tomcat 5.0.28 not starting

2004-10-20 Thread Andrea Mennini
Hi,
I've tried to add SSL support to Tomcat 5.0.28 under Win 2000.
In server.xml I've added:

   
  maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
  enableLookups="true" disableUploadTimeout="true"
  acceptCount="100" debug="1" scheme="https" secure="true"
  clientAuth="false" sslProtocol="TLS" />


When I restart tomcat I have the following error:

Oct 20, 2004 4:13:17 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 0 ms
java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: java.lang.NullPointerException
   at org.apache.catalina.startup.Catalina.await(Catalina.java:619)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:579)
   ... 6 more

What's wrong?
--
Andrea Mennini
Cisco Certified Network Associate (CCNA (r))
ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Well, did you start tomcat from a console (DOS command line) which was
open already before the installation of Tomcat and or Java ?
 

No. After the install I rebooted (under windoze it's the best way to 
ensure that all is set up)

BTW, you are sending mails to the mailing list with a request for reply
(Return Receipt).
This is somewhat annoying, because you have to click that dumb message
away. I at least wouldn't send such a reply to newgroup postings.
 

Yes, you're right and my apologizes for this.
Anyway, I didn't mind it too much (but I'll do in the future) because 
usually mailing lists are set up to filter reply requests. I set it on 
by mistake but, if I would get from this list some valid email address 
to spam, it could be a good way to do it.

Cheers
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Harald Henkel wrote:
Dumb question:
Did you install a Javac compiler ?
This is included only in the J2SDK, not in the JRE.
 

It's not dumb, but I have installed it. I have solver the problem by setting the 
CATALINA_HOME variable, although I don't understand why it works right now.
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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


Re: Unable to find a javac compiler error

2004-10-19 Thread Andrea Mennini
Antony Paul wrote:
Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpath. Usually
[...]
 

No. It does not work.
This is the 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

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)
--
Andrea Mennini
Cisco Certified Network Associate (CCNA (r))
ICQ:5459894
Registered Linux User #24583

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


Unable to find a javac compiler error

2004-10-18 Thread Andrea Mennini
Hi,
I'm trying to run this silly hello.jsp, just to be sure tomcat 5.0.28 is 
running under win2k:

===



JSP Test

JSP Test
Time: <%= new java.util.Date() %>


===

When I run it, I receive a message like this one:
===
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
===
I've got a command line and typed %JAVA_HOME%\bin\javac, and javac is run.
What am I doing wrong?
TIA
--
Andrea 

ICQ:5459894
Registered Linux User #24583

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