tomcat server question

2001-07-17 Thread Nick Stoianov



Hey guys,

I have the following question. I set up a tomcat 
server. I have an Apache server on a different machine. What should I put in the 
configuration of Apache and Tomcat so that when apache receive a request for a 
jsp file it will redirect the request to the Tomcat server? And Apache will 
serve only the HTML andimage files - but not the jsp files.


Nick


Re: tomcat server question

2001-07-17 Thread Nick Stoianov



The link that you sent is about Apache with 
mod_jserv - I'm using mod_jk. I saw mod_jk howto (in case you decide to send me 
that link too) but there is no information there how to redirect the jsp 
requests to a different machine

Nick


  - Original Message - 
  From: 
  Filip Hanik 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, July 17, 2001 3:06 
PM
  Subject: RE: tomcat server question
  
  http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
  
  ~Namaste - I bow to the divine in you~Filip 
  HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 
  
-Original Message-From: Nick Stoianov 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 17, 2001 2:54 
PMTo: [EMAIL PROTECTED]Subject: 
tomcat server question
Hey guys,

I have the following question. I set up a 
tomcat server. I have an Apache server on a different machine. What should I 
put in the configuration of Apache and Tomcat so that when apache receive a 
request for a jsp file it will redirect the request to the Tomcat server? 
And Apache will serve only the HTML andimage files - but not the jsp 
files.


Nick


tomcat and apache on different machines

2001-07-17 Thread Nick Stoianov




Hey guys,

I have the following question. I set up a tomcat 
server. I have an Apache server on a different machine. What should I put in the 
configuration of Apache and Tomcat so that when apache receive a request for a 
jsp file it will redirect the request to the Tomcat server? And Apache will 
serve only the HTML andimage files - but not the jsp files.
I'm running Apache with mod_jk


Nick


an idea about a Tomcat book

2001-06-29 Thread Nick Stoianov



Hey guys,

It will be cool if there is a Tomcat book project 
(I know that there is one at sourceforge but it doesn't seem to have anything 
for download). It is a nice ideaif this project is somethinglike a 
posting list in the beginning where people will post problems(not 
questions)they have had with Tomcat together with the solutionsof 
these problems.

It will be helpful especially if the problems are 
categorized in categories (tomcat 3.2 , 3.3 , 4.0 , mod_jk , etc.)

Thanks,
Nick


TOMCAT SUCKS

2001-06-27 Thread Nick Stoianov

Hi guys,

I really think that TOMCAT SUCKS so bad. I'm not against the open source 
community but this is why I think that TOMCAT sucks:

1. The documentation for Tomcat is so bad and it covers only the basic 
server installation. HELL - usually for production purposes people have 
load balancers, virtual hosts, etc.

2. Virtual hosting for Tomcat is almost impossible - especially if you have a 
load balancer in front of the web server. 

3. The integration with apache (using mod_jk) sucks. It slows down the 
productivity of the web server with at least 1000%

4. And guess what is the hell you have to go through if your virtual hosts 
have different servlets mappings. You waste time and you know - time is money.

5. And what if you have a problem that is not in the documentation (99% of 
the problem with Tomcat are not even mentioned in the documentation)? I guess 
the only way is to post in the mailing list. And guess what happens if nobody 
has experienced this problem before? You have to start wasting your time 
again.

I really think that TOMCAT is OK for testing purposes. Trust me - for complex 
configurations it sucks. 
If you want to use a good production application server - take a look at 
WebLogic, Resin, Allaire JRun, etc.

Nick



Re: TOMCAT SUCKS

2001-06-27 Thread Nick Stoianov

To all of you tomcat fans,

Attacking me with these immature e-mails shows the following things:
1. not accepting other people's opinions and experiences
2. blindly repeating the same things over and over again.

1st of all - how many of you have installed Tomcat with about 30 virtual 
servers with integrated Apache behind a load balancer?
When you make this work - then you can tell me how good Tomcat is.
I tried it - it works - but it's not stable and mod_jk is slow when you have 
this multihost environment.

2nd of all - you are right, there is no sign Get your complete and 
comprehensive documentation here. But this doesn't solve the problem with 
the lack of documentation. Linux is open source too - look how many books are 
there on Linux.

3rd - it's not my job to hire somebody to write a book about Tomcat. I'm just 
stating that I will not use it until somebody writes something. Unfortunately 
I don't have the time to write a book about Tomcat.

4th - reading your solution about writing a shell or Perl script for the 
servlets mapping problem shows that you have no idea about SHELL scripting 
nor PERL programming (and I guess Tomcat either)

5th - I haven't met anybody in this mailing list who has a complex 
installation of Tomcat with a lot of virtual hosts , different ports and load 
balancers. So - who will help me in situation like this? No books , no 
support, no help from the mailing list. 

Thanks 
Nick

On Wednesday 27 June 2001 04:01 pm, pete wrote:
 If there is a lack of documentation, that is par for the course with any
 project that doesn't have paid technical writers. I don't recall seeing
 a big sign on the front of jakarta.apache.org saying 'Get your complete
 and comprehensive documentation here'.

 If you wanted to, you could probably hire someone from this list to
 write up a good configuration guide for tomcat, for less than the price
 of a WebLogic license. Maybe you could think about that. You would then
 have both solved your problem, contributed in a meaningful way to the
 community and helped a fellow tomcat user financially, instead of
 finding, 6 months down the track, that tomcat outperforms, is more
 stable and a lot cheaper than WebLogic, yet still has no good docs.

 Your comment about mod_jk is just wrong. Exactly how does it slow down
 your web server by 1000%? I imagine if you are using servlets heavily,
 and this results in max CPU usage or something, then apache will
 struggle to serve requests, but this situation would be no different if
 you ran tomcat standalone, or if you switched to another servlet engine.

 If your virtual hosts have different servlet mappings? well, worst case
 scenario you could write a perl or shell script, or better still a GUI
 or servlet-based Java app that automated these configuration chores. You
 know what you could then do? You could contribute it back to the project
 so that other people can use it to save time.

 And if you have a problem no-one has experienced before, and posting to
 the mailing list doesn't elicit a reply? I suppose these commercial
 servlet engines are all 100% bugless, trouble free, and have perfect
 tchnical support. Of course nobody has problems with these servlet
 engines, which is why the Resin, JRun and WebLogic mailing lists are
 completely empty, and you can't find a single link on google when you
 type 'resin problem' or 'weblogic problem' into it.

 If Tomcat does not fit your needs, or you are unable to configure it
 correctly, by all means, ask for help. But don't claim it SUCKs just
 because you can't solve your own problems, or phrase your questions in
 such an obnoxious manner that help is unlikely to be willingly provided.



 -Pete

  Hi guys,
 
  I really think that TOMCAT SUCKS so bad. I'm not against the open source
  community but this is why I think that TOMCAT sucks:
 
  1. The documentation for Tomcat is so bad and it covers only the basic
  server installation. HELL - usually for production purposes people
  have load balancers, virtual hosts, etc.2. Virtual hosting for Tomcat is
  almost impossible - especially if you have a load balancer in front of
  the web server.
 
  3. The integration with apache (using mod_jk) sucks. It slows down the
  productivity of the web server with at least 1000%
 
  4. And guess what is the hell you have to go through if your virtual
  hosts have different servlets mappings. You waste time and you know -
  time is money.
 
  5. And what if you have a problem that is not in the documentation (99%
  of the problem with Tomcat are not even mentioned in the documentation)?
  I guess the only way is to post in the mailing list. And guess what
  happens if nobody has experienced this problem before? You have to start
  wasting your time again.
 
  I really think that TOMCAT is OK for testing purposes. Trust me - for
  complex configurations it sucks.
  If you want to use a good production application server - take a look at
  WebLogic, Resin, Allaire 

Re: TOMCAT SUCKS

2001-06-27 Thread Nick Stoianov

Hey Milt,

I guess you are right. 

Thanks,
Nick


On Wednesday 27 June 2001 05:23 pm, Milt Epstein wrote:
 On Wed, 27 Jun 2001, Nick Stoianov wrote:
  To all of you tomcat fans,
 
  Attacking me with these immature e-mails shows the following things:
  1. not accepting other people's opinions and experiences
  2. blindly repeating the same things over and over again.

 [ ... ]

 Frankly, you're the one that's being immature here -- as evidenced so
 well by the subject of your post.  If you've got your mind made up and
 won't listen to legitimate suggestions from others, what's the point
 of coming in here and posting like you did.  You're acting out,
 something a three year old does.

 Now, this doesn't mean you don't have some legitimate gripes.  It may
 very well be that for your situation, Tomcat isn't suitable.  That
 doesn't mean it sucks, or that it's not suitable for others.  Your
 situation just may be complex enough, or idiosyncratic enough, that it
 will be problematic for you to use Tomcat.  And perhaps for a number
 of reasons, it's just not possible for you to spend a lot of time
 trying to figure out how to get Tomcat to do what you want, you want
 it to work the way you want out of the box, or have someone else
 figure it out for you.  So a heavy duty commercial product with
 support may be a better choice for you.  But it's going to cost you
 (whereas Tomcat is free).  But that's a choice you're making as to how
 best to allocate your resources (and it may perfectly well be a
 legitimate choice).  Again, it doesn't mean Tomcat sucks, it's just
 not what you need (and I've probably heard complaints about most of
 the other products out there, including commercial ones).

 Milt Epstein
 Research Programmer
 Software/Systems Development Group
 Computing and Communications Services Office (CCSO)
 University of Illinois at Urbana-Champaign (UIUC)
 [EMAIL PROTECTED]



huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov



Hi,

I have a Linux server running Apache and Tomcat 
3.2.2 (using mod_jk). I noticed that when I run Apache with mod_jk - Apache 
serves the html pages extremely slow (20 seconds for a simple page). If I 
disable mod_jk - it's fast again.

I will really appreciate if somebody helps me with 
this problem.

Thanks
Nick


Re: huge problem with mod_jk and Apache

2001-06-25 Thread Nick Stoianov

the problem is not only with the servlets - even HTML pages get loaded
really slow

- Original Message -
From: anil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 25, 2001 8:16 PM
Subject: Re: huge problem with mod_jk and Apache


 Hmm. That is strange. I run Tomcat 3.2.2 with
 JBoss+postgreSQL+Apache+security on (every call gets autheticated) I
 can't complain on Dell 800MHz server with 128MB of RAM with RedHat 6.2.
 The JDK is Sun JDK 1.3.1.
 Apache connector is Mod_jk12.
 Email me the the servlet and I will try to run on my server.

 anil

 Nick Stoianov wrote:

  Hi, I have a Linux server running Apache and Tomcat 3.2.2 (using
  mod_jk). I noticed that when I run Apache with mod_jk - Apache serves
  the html pages extremely slow (20 seconds for a simple page). If I
  disable mod_jk - it's  fast again. I will really appreciate if
  somebody helps me with this problem. ThanksNick




invoker interceptor for Tomcat

2001-06-21 Thread Nick Stoianov



Hi,

How can I have several different invoker 
interceptors? For example: I want to be able to call a servlet from http://www.myhost.com/servlets/name_of_the_servlet
and also I want to be able to call a servlet 
from:
http://www.myhost.com/newservlets/name_of_the_servlet

Thanks,
Nick


problem with virtual hosting with tomcat

2001-06-20 Thread Nick Stoianov



Hi,
I'm using Apache 1.3.9, Tomcat 3.2 , 
Linux
I want to setup a virtual host (let's say 
vh1.test.com) so that I will be able to call servlets from http://vh1.test.com/servlets/
What should I put in httpd.conf , mod_jk and 
server.xml?

I will really appreciate any helpful advice on this 
problem. I tried different things but I can't make it work.

Nick Stoianov




404 error with Apache and mod_jk

2001-06-18 Thread Nick Stoianov



Hi,

I'm having the following problem:

I am running Apache (on Linux) , tomcat and 
mod_jk

I have a virtual host and the entry for this 
virtual host in httpd.conf is the following:
--
NameVirtualHost 192.168.100.145

VirtualHost 192.168.100.145ServerAdmin 
mymail@myserver.comDocumentRoot 
/usr/local/apache/html/testDirectoryIndex index.htmlServerName 
test1.myserver.comCustomLog /var/log/httpd/access_log commonJkMount 
/*.jsp ajp12JkMount /servlets/* 
ajp12/VirtualHost-

In /usr/local/tomcat/webapps I have a 
directory test with WEB-INF subdirectory

In server.xml I have the following 
entry:
--
Host name="test1.myserver.com" 
Context path=""docBase="/usr/local/tomcat/webapps/sam" 
/Context 
path="/servlets"docBase="/usr/local/tomcat/webapps/sam/WEB-INF/classes" 
//Host--

I have put my servlets in 
/usr/local/tomcat/webapps/sam/WEB-INF/classes and my HTML files are 
in:
/usr/local/apache/html/test

When I start Apache and Tomcat and try to call a 
servlet from the servlet directory (e.g. http://test1.myserver.com/servlets/name_of_the_servlet) 
I get ERROR 404 - File not found


I know I'm doing something wrong - but I really 
don't know what. Please help

Nick


please help with mod_jk

2001-06-18 Thread Nick Stoianov




Hi,

I'm having the following problem:

I am running Apache (on Linux) , tomcat and 
mod_jk

I have a virtual host and the entry for this 
virtual host in httpd.conf is the following:
--
NameVirtualHost 192.168.100.145

VirtualHost 192.168.100.145ServerAdmin 
mymail@myserver.comDocumentRoot 
/usr/local/apache/html/testDirectoryIndex index.htmlServerName 
test1.myserver.comCustomLog /var/log/httpd/access_log commonJkMount 
/*.jsp ajp12JkMount /servlets/* 
ajp12/VirtualHost-

In /usr/local/tomcat/webapps I have a 
directory test with WEB-INF subdirectory

In server.xml I have the following 
entry:
--
Host name="test1.myserver.com" 
Context path=""docBase="/usr/local/tomcat/webapps/test" 
/Context 
path="/servlets"docBase="/usr/local/tomcat/webapps/sam/WEB-INF/classes" 
//Host--

I have put my servlets in 
/usr/local/tomcat/webapps/sam/WEB-INF/classes and my HTML files are 
in:
/usr/local/apache/html/test

When I start Apache and Tomcat and try to call a 
servlet from the servlet directory (e.g. http://test1.myserver.com/servlets/name_of_the_servlet) 
I get ERROR 404 - File not found


I know I'm doing something wrong - but I really 
don't know what. Please help

Nick


problem with mod_jk and Tomcat

2001-06-15 Thread Nick Stoianov

Hi,

I have the following problem. I was running Apache JServ and decided to 
upgrade to Tomcat with mod_jk and Apache. The installation went well. The 
sample servlets and JSPs work well. But now I'm having the following problems:

1. My old servlets that were working with Jserv don't work with Tomcat. I 
tried to find the reason and I found out that to invoke the servlets you have 
to go to http://localhost/servlet/the_name_of_the_servlet
Okbut my servlets have redirections to http://localhost/servlets (not 
servlet) .  I changed the JkMount in mod_jk.conf to mount /servlets for the 
servlet files. But it still doesn't work. 
My question is: how can I make tomcat to look for servlets in /servlets (not 
in /servlet)?

2. When I try to run the /admin JSP page I get ERROR 500: 
javax.servlet.ServletException: URL contains encoded special chars


I will really appreciate if someone helps me with these problems.

Nick Stoianov



a question about mod_jk.conf-auto

2001-06-15 Thread Nick Stoianov

hi ,

I have a question:

Where does Tomcat gathers the information to create mod_jk.conf-auto?

There is a line in mod_jk.conf-auto saying :
JkMount /examples/servlet/* ajp12


I tried changing web.xml , server.xml, etc. - it always generates :
JkMount /examples/servlet/* ajp12

and I want to change it to:
JkMount /examples/servlets/* ajp12

The problem is that I already have servlets calling different servlets and 
classes from /servlets  (not from /servlet )


Please advice


Nick 




A QUESTION ABOUT CLASSPATHS

2001-04-16 Thread Nick Stoianov

Hi,

I'm running Tomcat/mod_jk on Linux/Apache. I have set up the CLASSPATH
variable to point to the classes directory. However when I execute a servlet
that requires classes I get ERROR:500 Internal Server Error saying that the
class can not be found.
Any idea what I can be doing wrong? Is there another way to setup the
classes directory?

Thanks,
Nick




JSP errors

2001-04-04 Thread Nick Stoianov



Hi,

I installed Tomcat on Apache 1.3.9/Linux. The 
sample servlets are working fine. But the problem is with the JSPs.
Some of them (snoop, plugin) are working great - 
but when I try to load the other JSPs I get the following 
errors:
-
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to 
compile class for 
JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:63: 
Class sessions.DummyCart not 
found. 
sessions.DummyCart cart = 
null; 
^/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:66: 
Class sessions.DummyCart not 
found. 
cart= 
(sessions.DummyCart) 
^/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fsessions_0002fcarts_0002ejspcarts_jsp_0.java:71: 
Class sessions.DummyCart not 
found. 
cart = (sessions.DummyCart) Beans.instantiate(this.getClass().getClassLoader(), 
"sessions.DummyCart"); 
^3 
errors--

Does anyone have an idea what I am doing 
wrong?

Thanks,
Nick


Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov



Hi everybody,

I have a strange problem with serving JSPs with 
Tomcat with mod_jk on Linux Apache.
I'm really new at Tomcat configuration - so I guess 
I'm doing something wrong.
Anyway - when I start the sample servlets that come 
with Tomcat - they work fine. But when I start a JSP I get the following 
errors:

--

Error: 500
Location: /examples/jsp/num/numguess.jspInternal Servlet 
Error:javax.servlet.ServletException: sun/tools/javac/Main
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)
Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main
	at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java, Compiled Code)
	at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java, Compiled Code)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java, Compiled Code)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code)
	at java.lang.Thread.run(Thread.java, Compiled Code)--I will really appreciate if somebody can help me.ThanksNick Stoianov



Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
correctly but it still doesn't work. I'm getting the following error:

Error: 500
Location: /examples/jsp/simpletag/foo.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
/usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
load class examples.FooTag
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java, Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java, Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java, Compiled Code)
at
org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java, Compiled Code)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java, Compiled
Code)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java, Compiled
Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)

Any suggestions about that?
Thanks
Nick

- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 10:29 AM
Subject: RE: Strange JSP problems with Tomcat



 This is not a storage error message at all.  A little searching
 through the archives or reading of the installation guide would have saved
 you some time and trouble - your JAVA_HOME is not set correctly.  Some
 people will probably tell you that tools.jar is not in your classpath, but
 this is a side effect of not setting the JAVA_HOME variable correctly. (It
 should point to the JDK's root so that lib\tools.jar is an actual file.

 Randy
 -Original Message-----
 From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 1:06 PM
 To: [EMAIL PROTECTED]
 Subject: Strange JSP problems with Tomcat


 Hi everybody,

 I have a strange problem with serving JSPs with Tomcat with mod_jk on
Linux
 Apache.
 I'm really new at Tomcat configuration - so I guess I'm doing something
 wrong.
 Anyway - when I start the sample servlets that come with Tomcat - they
work
 fine. But when I start a JSP  I get the following errors:

 --
--
 --
--
 --
 Error: 500
 Location: /examples/jsp/num/numguess.jsp
 Internal Servlet Error:

 javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
 Compiled Code)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
 Code)
 at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
 Compiled Code)
 at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
 Code)
 at
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled
 Code)
 at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
 Compiled Code)
 at
 org.apache.tomcat.core.ContextManag

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Yes - the TOMCAT_HOME points exactly to /usr/local/tomcat

- Original Message -
From: "Martin Mauri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 12:44 PM
Subject: Re: Strange JSP problems with Tomcat


 Did you check your TOMCAT_HOME environment variable?

  Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
  correctly but it still doesn't work. I'm getting the following error:
 
  Error: 500
  Location: /examples/jsp/simpletag/foo.jsp
  Internal Servlet Error:
 
  org.apache.jasper.compiler.CompileException:
  /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
  load class examples.FooTag
  at
 
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
  Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
  rseEventListener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
  istener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
  tListener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
  ner.java, Compiled Code)
  at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
 Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
  Code)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
 Compiled
  Code)
  at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
  Compiled Code)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled
  Code)
  at
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
  rvlet.java, Compiled Code)
  at
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va, Compiled Code)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
  Compiled Code)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
  Code)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
  Compiled Code)
  at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
  Compiled Code)
  at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
  Compiled Code)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
  Compiled Code)
  at
 

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
  (Ajp12ConnectionHandler.java, Compiled Code)
  at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
  Compiled Code)
  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
  Compiled Code)
  at java.lang.Thread.run(Thread.java, Compiled Code)
 
  Any suggestions about that?
  Thanks
  Nick
 
  - Original Message -
  From: "Randy Layman" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 30, 2001 10:29 AM
  Subject: RE: Strange JSP problems with Tomcat
 
 
  
   This is not a storage error message at all.  A little searching
   through the archives or reading of the installation guide would have
 saved
   you some time and trouble - your JAVA_HOME is not set correctly.  Some
   people will probably tell you that tools.jar is not in your classpath,
 but
   this is a side effect of not setting the JAVA_HOME variable correctly.
 (It
   should point to the JDK's root so that lib\tools.jar is an actual
file.
  
   Randy
   -Original Message-
   From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
   Sent: Friday, March 30, 2001 1:06 PM
   To: [EMAIL PROTECTED]
   Subject: Strange JSP problems with Tomcat
  
  
   Hi everybody,
  
   I have a strange problem with serving JSPs with Tomcat with mod_jk on
  Linux
   Apache.
   I'm really new at Tomcat configuration - so I guess I'm doing
something
   wrong.
   Anyway - when I start the sample servlets that come with Tomcat - they
  work
   fine. But when I start a JSP  I get the following errors:
  
 

 --
  --
 

 --
  --
   --
   Error: 500
   Location: /examples/jsp/num/numguess.jsp
   Internal Servlet Error:
  
   javax.servlet.ServletException: sun/tools/javac/Main
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
   Compiled Code)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
   Code)
   at
   org.apache.tomcat.core.ServletWrapper.doService(ServletWrapp

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

and this is what I'm getting from the command line:

2001-03-30 12:50:18 - Ctx( /examples ): JasperException: R( /examples +
/jsp/cal/cal1.jsp + null) Unable to compile class for
JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fcal_0002f
cal_00031_0002ejspcal1_jsp_0.java:15: Package cal not found in import.
import cal.*;
   ^
1 error


- Original Message -
From: "Martin Mauri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 12:44 PM
Subject: Re: Strange JSP problems with Tomcat


 Did you check your TOMCAT_HOME environment variable?

  Thanks for the help. JAVA_HOME was not set up correctly. Now it's set up
  correctly but it still doesn't work. I'm getting the following error:
 
  Error: 500
  Location: /examples/jsp/simpletag/foo.jsp
  Internal Servlet Error:
 
  org.apache.jasper.compiler.CompileException:
  /usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0) Unable to
  load class examples.FooTag
  at
 
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
  Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
  rseEventListener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
  istener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
  tListener.java, Compiled Code)
  at
 

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
  ner.java, Compiled Code)
  at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java, Compiled
 Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled
  Code)
  at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
 Compiled
  Code)
  at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
  Compiled Code)
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
Compiled
  Code)
  at
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
  rvlet.java, Compiled Code)
  at
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va, Compiled Code)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
  Compiled Code)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
Compiled
  Code)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
Code)
  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
  Compiled Code)
  at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
  Compiled Code)
  at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
  Compiled Code)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java,
  Compiled Code)
  at
 

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
  (Ajp12ConnectionHandler.java, Compiled Code)
  at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
  Compiled Code)
  at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
  Compiled Code)
  at java.lang.Thread.run(Thread.java, Compiled Code)
 
  Any suggestions about that?
  Thanks
  Nick
 
  - Original Message -
  From: "Randy Layman" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 30, 2001 10:29 AM
  Subject: RE: Strange JSP problems with Tomcat
 
 
  
   This is not a storage error message at all.  A little searching
   through the archives or reading of the installation guide would have
 saved
   you some time and trouble - your JAVA_HOME is not set correctly.  Some
   people will probably tell you that tools.jar is not in your classpath,
 but
   this is a side effect of not setting the JAVA_HOME variable correctly.
 (It
   should point to the JDK's root so that lib\tools.jar is an actual
file.
  
   Randy
   -Original Message-
   From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
   Sent: Friday, March 30, 2001 1:06 PM
   To: [EMAIL PROTECTED]
   Subject: Strange JSP problems with Tomcat
  
  
   Hi everybody,
  
   I have a strange problem with serving JSPs with Tomcat with mod_jk on
  Linux
   Apache.
   I'm really new at Tomcat configuration - so I guess I'm doing
something
   wrong.
   Anyway - when I start the sample servlets that come with Tomcat - they
  work
   fine. But when I start a JSP  I get the following errors:
  
 

 --
  --
 

 --
  --
   --
   Error: 500
   Location: /examples/jsp/num/numguess.jsp
   In

Re: Strange JSP problems with Tomcat

2001-03-30 Thread Nick Stoianov

Yes - all the class files are there

- Original Message -
From: "Martin Mauri" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 1:01 PM
Subject: Re: Strange JSP problems with Tomcat


 Mmm...it seems to be a problem in the location of your class files, have
you
 placed them in $TOMCAT_HOME/webapps/(context_name)/WEB-INF/classes ?

  and this is what I'm getting from the command line:
 
  2001-03-30 12:50:18 - Ctx( /examples ): JasperException: R( /examples +
  /jsp/cal/cal1.jsp + null) Unable to compile class for
 

JSP/usr/local/tomcat/work/localhost_8080%2Fexamples/_0002fjsp_0002fcal_0002f
  cal_00031_0002ejspcal1_jsp_0.java:15: Package cal not found in import.
  import cal.*;
 ^
  1 error
 
 
  - Original Message -
  From: "Martin Mauri" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, March 30, 2001 12:44 PM
  Subject: Re: Strange JSP problems with Tomcat
 
 
   Did you check your TOMCAT_HOME environment variable?
  
Thanks for the help. JAVA_HOME was not set up correctly. Now it's
set
 up
correctly but it still doesn't work. I'm getting the following
error:
   
Error: 500
Location: /examples/jsp/simpletag/foo.jsp
Internal Servlet Error:
   
org.apache.jasper.compiler.CompileException:
/usr/local/tomcat/webapps/examples/jsp/simpletag/foo.jsp(11,0)
Unable
 to
load class examples.FooTag
at
   
 
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java,
Compiled Code)
at
   
  
 

org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspPa
rseEventListener.java, Compiled Code)
at
   
  
 

org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventL
istener.java, Compiled Code)
at
   
  
 

org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEven
tListener.java, Compiled Code)
at
   
  
 

org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe
ner.java, Compiled Code)
at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java,
Compiled
   Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled
Code)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java,
Compiled
Code)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java,
   Compiled
Code)
at
 org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java,
  Compiled
Code)
at
   
  
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java, Compiled Code)
at
   
  
 

org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va, Compiled Code)
at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java,
  Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java, Compiled
  Code)
at
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java,
Compiled Code)
at org.apache.tomcat.core.Handler.service(Handler.java, Compiled
Code)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java,
Compiled Code)
at
   
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
   
  
 

org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java, Compiled Code)
at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
Compiled Code)
at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
Compiled Code)
at java.lang.Thread.run(Thread.java, Compiled Code)
   
Any suggestions about that?
Thanks
Nick
   
- Original Message -
From: "Randy Layman" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 30, 2001 10:29 AM
Subject: RE: Strange JSP problems with Tomcat
   
   

 This is not a storage error message at all.  A little searching
 through the archives or reading of the installation guide would
have
   saved
 you some time and trouble - your JAVA_HOME is not set correctly.
 Some
 people will probably tell you that tools.jar is not in your
 classpath,
   but
 this is a side effect of not setting the JAVA_HOME variable
 correctly.
   (It
 should point to the JDK's root so that lib\tools.jar is an actual
  file.

 Randy
 -Original Message-
 From: Nick Stoianov [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 1:06 PM
 To: [EMAIL PROTEC