You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Bruno Salgueiro <bs...@sibs.pt> on 2000/03/14 18:03:07 UTC

Problems with Tomcat 3.1 Beta

Dear all.

  Unfortunately I haven't received any help using Tomcat until now
and I hope that this email may deserve some attention. I am well
aware of the fact that Open Source projects/software imply some
voluntary contribution but, unlike OpenSSL or OpenLDAP, I tried to
post some problems to the list and didn't have any replies without
understanding why. If I can't solve the problem with the latest version
of Tomcat I must abandon it, which makes me really sad, but I cannot
jeopardize an entire project just because I can't get any kind of
support. It is a pity because we are going to use it mainly in a na-
tional PKI project.

  In the earlier versions I had some problems using JSPs due to
CLASSPATH
problems and contexts but I was unable to figure out how it could be
solved.
Nevertheless Tomcat and the examples always turned out to run fine
unless
I created new context (/home/httpd/site) with new classes in the
WEB-INF/classes
directory (the class loader wouldn't find them).

  With the latest version I believe (from some postings I read on the
list)
that this problem might be solved already but now I'm getting some weird
messages when I connect to Tomcat through Apache (1.3.11)+JServ and when
I
try to use JSPs. The console message, the browser message, web.xml and
server.xml are attached. It seems that Tomcat is choping the URI sent by
the
browser when I try to get a JSP and some weird StringIndexOutOfBounds
exceptions
are raised mentioning different indexes, but usually negative.

Thank you for your help and sorry for the long email, but I really
believe
that the project leaders should devote a bit more attention to the
problems
posted. Or is it just me? :)
-- 
=======================================================
Bruno Salgueiro       (mailto:bs@sibs.pt)
                   
SIBS - Sociedade Interbancária de Serviços
Rua Soeiro Pereira Gomes, Lote 1, 1600 Lisboa, Portugal

Tel: + 351 21 791 88 33
Fax: + 351 21 793 50 80
http://www.sibs.pt

Esta mensagem foi assinada com certificado MULTIcert.
Para obter o certificado da Autoridade de Certificação
PILOTO MULTIcert dirija-se ao site
            http://www.sibs.multicert.com

"Computers are useless. They can only give you answers."
                                        --Pablo Picasso
=======================================================

Re: Is Tomcat REALLY What I Want?

Posted by Jason Hunter <jh...@acm.org>.
> 3. Are there decent thrid party JSP products / servlet add-ons,
> class packages etc? If so, where do I find them? (Sun's www site
> isnt too impressive for this)

http://www.servlets.com/resources/urls/tools.html

-jh-

-- 
Jason Hunter
jhunter@acm.org
Book:    http://www.servlets.com/book
2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html

Re: Is Tomcat REALLY What I Want?

Posted by Hien Nguyen <hq...@netzero.net>.
I am playing with Tomcat 3.1 beta 1 and Forte For Java (Community Edition), a
Sun's IDE, and able to step into and debug my servlets.  Forte for Java is only
beta but works pretty well.


Kevin Galligan wrote:

> I'm no help with most of your questions, but I would also like to ask about
> dev environments.
>
> I've been doing servlets and JSP's for a few months now.  My development
> environment consists of J++ for the non-JSP classes (for visual knick-nacks
> only, like the auto complete), Visual C++ for the JSP coding (basically for
> source coloring), and the Java SDK command line debugger (jdb) for the
> servlet debugging.  Previously I was using EMACS and JRun (with jdb also).
> Sounds fun, huh?
>
> Is there a product available that might be a bit better?  Is there a dev
> environment that can attach to a jvm like jdb does?  As a debugger it works
> fine, but it would be nice to have a visual front end to it.  I'd really
> like something for debugging jsp's too (if possible).  Visual C++ isn't
> really getting the job done how I'd like it to.
>
> -Kevin Galligan
>
> > -----Original Message-----
> > From: Greg Wale [mailto:gregwale@verinet.com]
> > Sent: Wednesday, March 15, 2000 2:47 PM
> > To: general@jakarta.apache.org
> > Subject: Is Tomcat REALLY What I Want?
> >
> >
> > Hi,
> >
> > I'm considering developing and placing into production a small
> > but scalable web database / email application with Java Servlets
> > / JSP and Tomcat.  Tomcat and JSP appear to be the logical
> > successor to JHTML and Sun's JavaWebServer which I've used.
> >
> > My Questions
> > ---------------
> > 1.
> > Which web server is my best choice to deploy Tomcat & JSP on? I
> > don't like Microsoft's stupid limits of 5 or 10 connections on NT
> > or Win2000 pro, and their high cost / high support / low
> > reliability / admin complexity.
> > I'm open to deployment Windows 2000 or Linux.
> >
> > 2.
> > Is Visual Age the best Java dev environment for Tomacat / JSP /
> > Servlets?  IBM says you can reload servlet classes without having
> > to stop a Web Server and can completely debug in the IDE itself.
> > Can anyone vouch for this for me?
> >
> > 3. Are there decent thrid party JSP products / servlet add-ons,
> > class packages etc? If so, where do I find them? (Sun's www site
> > isnt too impressive for this)
> >
> > 4. Am I missing any more serious issues here? Like, is Tomcat
> > ready for production sites yet?
> >
> > best regards,
> > Greg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: general-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html

RE: Is Tomcat REALLY What I Want?

Posted by Kevin Galligan <ke...@ospreypartners.com>.
I'm no help with most of your questions, but I would also like to ask about
dev environments.

I've been doing servlets and JSP's for a few months now.  My development
environment consists of J++ for the non-JSP classes (for visual knick-nacks
only, like the auto complete), Visual C++ for the JSP coding (basically for
source coloring), and the Java SDK command line debugger (jdb) for the
servlet debugging.  Previously I was using EMACS and JRun (with jdb also).
Sounds fun, huh?

Is there a product available that might be a bit better?  Is there a dev
environment that can attach to a jvm like jdb does?  As a debugger it works
fine, but it would be nice to have a visual front end to it.  I'd really
like something for debugging jsp's too (if possible).  Visual C++ isn't
really getting the job done how I'd like it to.

-Kevin Galligan

> -----Original Message-----
> From: Greg Wale [mailto:gregwale@verinet.com]
> Sent: Wednesday, March 15, 2000 2:47 PM
> To: general@jakarta.apache.org
> Subject: Is Tomcat REALLY What I Want?
>
>
> Hi,
>
> I'm considering developing and placing into production a small
> but scalable web database / email application with Java Servlets
> / JSP and Tomcat.  Tomcat and JSP appear to be the logical
> successor to JHTML and Sun's JavaWebServer which I've used.
>
> My Questions
> ---------------
> 1.
> Which web server is my best choice to deploy Tomcat & JSP on? I
> don't like Microsoft's stupid limits of 5 or 10 connections on NT
> or Win2000 pro, and their high cost / high support / low
> reliability / admin complexity.
> I'm open to deployment Windows 2000 or Linux.
>
> 2.
> Is Visual Age the best Java dev environment for Tomacat / JSP /
> Servlets?  IBM says you can reload servlet classes without having
> to stop a Web Server and can completely debug in the IDE itself.
> Can anyone vouch for this for me?
>
> 3. Are there decent thrid party JSP products / servlet add-ons,
> class packages etc? If so, where do I find them? (Sun's www site
> isnt too impressive for this)
>
> 4. Am I missing any more serious issues here? Like, is Tomcat
> ready for production sites yet?
>
> best regards,
> Greg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org
>
>


Re: Is Tomcat REALLY What I Want?

Posted by Shachor Gal <sh...@techunix.technion.ac.il>.

>
> I'm considering developing and placing into production a small
> but scalable web database / email application with Java Servlets
> / JSP and Tomcat.
>
When you say scalable what do you mean? 
Also what machine did you use CPU/Mem?
What is the pattern of the application?
What is the time eating portion of the application?

As for deployment...
I am biased... I think that by 3.1 Tomcat should be stable enough for 
deployment.

My recomendations will be:
FreeBSD/Linux for the Web Server.
Apache as the web server.
Linux for Tomcat.
IBM JDK 1.1.8 for Linux (in my internal tests it was 50% faster then
the current SUN 1.2.2, do not believe test it for yourself)

If you will need extream scalability, all the Tomcat plugins knows how to
load balance among several Tomcat JVMs and these JVMs can run on different 
hosts (soething that JWS could not do).

As for development environment, I heard for several people that VAJ can 
really do the debug job that you are looking for. I also heard that it can
debug JSP at the source level (but this is a hearsay).

As a last resort, do not forget that Tomcat is nothing but a big Java 
application, start it in your IDE and you should be able to step through
the code.

	Gal Shachor



Is Tomcat REALLY What I Want?

Posted by Greg Wale <gr...@verinet.com>.
Hi,

I'm considering developing and placing into production a small
but scalable web database / email application with Java Servlets
/ JSP and Tomcat.  Tomcat and JSP appear to be the logical
successor to JHTML and Sun's JavaWebServer which I've used.

My Questions
---------------
1.
Which web server is my best choice to deploy Tomcat & JSP on? I
don't like Microsoft's stupid limits of 5 or 10 connections on NT
or Win2000 pro, and their high cost / high support / low
reliability / admin complexity.
I'm open to deployment Windows 2000 or Linux.

2.
Is Visual Age the best Java dev environment for Tomacat / JSP /
Servlets?  IBM says you can reload servlet classes without having
to stop a Web Server and can completely debug in the IDE itself.
Can anyone vouch for this for me?

3. Are there decent thrid party JSP products / servlet add-ons,
class packages etc? If so, where do I find them? (Sun's www site
isnt too impressive for this)

4. Am I missing any more serious issues here? Like, is Tomcat
ready for production sites yet?

best regards,
Greg


Re: Problems with Tomcat 3.1 Beta

Posted by Bruno Salgueiro <bs...@sibs.pt>.
Hi to all.

  Well, it worked! There wasn't the zone concept in the earlier versions
of Tomcat. The problem wasn't in the mod_jserv.o lib because it worked
perfectly with the previous versions unless you had changed something...

  I don't have any error messages now regarding the IndexOutOfRange
exceptions. Nevertheless, the root zone mentions a configuration file
that
doesn't exist (@JSERV_CONF@/zone.propoerties)... Isn't that weird? Where
does Tomcat fetches the @JSERV_CONF@ variable name?

  Unfortunately the old problem persists... I moved the Number Guess
example to the new context. I created a subdir with the class 
in /WEB-INF/classes/num/NumberGuessBean.class and I copied the
numguess.jsp
from the examples directory.

  In order to see if a servlet could reference the class in this new
context I inserted the line
     Class t=Class.forName("num.NumberGuessBean");
which didn't throw an exception. So, I guess that the classloader of the
servlets
(which I think it would be the same for JSPs) can reference this class.
So, what's going wrong?...

  Here is the error message that appears in the browser:

Error: 500
Location: /tomcat/html/numguess.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for
JSPwork/localhost_8080%2Ftomcat/_0002fhtml_0002fnumguess_0002ejspnumguess_jsp_0.java:15:
Class num.NumberGuessBean not found in import.
import num.NumberGuessBean;
       ^
1 error

        at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:240)
        at
org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:412)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:147)
        at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:159)
        at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:259)
        at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:367)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:390)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:523)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:147)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:334)
        at java.lang.Thread.run(Thread.java)

Regards and thank you for your attention.

Shachor Gal wrote:
> 
>  Bruno,
> 
> You did not send the single most important file, the .conf file that you
> are including in httpd.conf.
> 
> In any case here is an idea, can it be that you added an ApJServMount
> command in your .conf file with a zone part that does not match your
> context name?
> 
> Anyway, remove your ApJServMount /tomcat /something
> 
> and instead put ApJServMount /tomcat /root
> and tell us if it fix your problems.
> 
>         Gal Shachor
> 
> On Tue, 14 Mar 2000, Bruno Salgueiro wrote:
> 
> > Dear all.
> >
> >   Unfortunately I haven't received any help using Tomcat until now
> > and I hope that this email may deserve some attention. I am well
> > aware of the fact that Open Source projects/software imply some
> > voluntary contribution but, unlike OpenSSL or OpenLDAP, I tried to
> > post some problems to the list and didn't have any replies without
> > understanding why. If I can't solve the problem with the latest version
> > of Tomcat I must abandon it, which makes me really sad, but I cannot
> > jeopardize an entire project just because I can't get any kind of
> > support. It is a pity because we are going to use it mainly in a na-
> > tional PKI project.
> >
> >   In the earlier versions I had some problems using JSPs due to
> > CLASSPATH
> > problems and contexts but I was unable to figure out how it could be
> > solved.
> > Nevertheless Tomcat and the examples always turned out to run fine
> > unless
> > I created new context (/home/httpd/site) with new classes in the
> > WEB-INF/classes
> > directory (the class loader wouldn't find them).
> >
> >   With the latest version I believe (from some postings I read on the
> > list)
> > that this problem might be solved already but now I'm getting some weird
> > messages when I connect to Tomcat through Apache (1.3.11)+JServ and when
> > I
> > try to use JSPs. The console message, the browser message, web.xml and
> > server.xml are attached. It seems that Tomcat is choping the URI sent by
> > the
> > browser when I try to get a JSP and some weird StringIndexOutOfBounds
> > exceptions
> > are raised mentioning different indexes, but usually negative.
> >
> > Thank you for your help and sorry for the long email, but I really
> > believe
> > that the project leaders should devote a bit more attention to the
> > problems
> > posted. Or is it just me? :)
> > --
> > =======================================================
> > Bruno Salgueiro       (mailto:bs@sibs.pt)
> >
> > SIBS - Sociedade Interbancária de Serviços
> > Rua Soeiro Pereira Gomes, Lote 1, 1600 Lisboa, Portugal
> >
> > Tel: + 351 21 791 88 33
> > Fax: + 351 21 793 50 80
> > http://www.sibs.pt
> >
> > Esta mensagem foi assinada com certificado MULTIcert.
> > Para obter o certificado da Autoridade de Certificação
> > PILOTO MULTIcert dirija-se ao site
> >             http://www.sibs.multicert.com
> >
> > "Computers are useless. They can only give you answers."
> >                                         --Pablo Picasso
> > =======================================================
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: general-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: general-help@jakarta.apache.org

-- 
=======================================================
Bruno Salgueiro       (mailto:bs@sibs.pt)
                   
SIBS - Sociedade Interbancária de Serviços
Rua Soeiro Pereira Gomes, Lote 1, 1600 Lisboa, Portugal

Tel: + 351 21 791 88 33
Fax: + 351 21 793 50 80
http://www.sibs.pt

Esta mensagem foi assinada com certificado MULTIcert.
Para obter o certificado da Autoridade de Certificação
PILOTO MULTIcert dirija-se ao site
            http://www.sibs.multicert.com

"Computers are useless. They can only give you answers."
                                        --Pablo Picasso
=======================================================

Re: Problems with Tomcat 3.1 Beta

Posted by Shachor Gal <sh...@techunix.technion.ac.il>.
 Bruno,

You did not send the single most important file, the .conf file that you
are including in httpd.conf.

In any case here is an idea, can it be that you added an ApJServMount
command in your .conf file with a zone part that does not match your
context name?

Anyway, remove your ApJServMount /tomcat /something

and instead put ApJServMount /tomcat /root 
and tell us if it fix your problems.

	Gal Shachor

On Tue, 14 Mar 2000, Bruno Salgueiro wrote:

> Dear all.
> 
>   Unfortunately I haven't received any help using Tomcat until now
> and I hope that this email may deserve some attention. I am well
> aware of the fact that Open Source projects/software imply some
> voluntary contribution but, unlike OpenSSL or OpenLDAP, I tried to
> post some problems to the list and didn't have any replies without
> understanding why. If I can't solve the problem with the latest version
> of Tomcat I must abandon it, which makes me really sad, but I cannot
> jeopardize an entire project just because I can't get any kind of
> support. It is a pity because we are going to use it mainly in a na-
> tional PKI project.
> 
>   In the earlier versions I had some problems using JSPs due to
> CLASSPATH
> problems and contexts but I was unable to figure out how it could be
> solved.
> Nevertheless Tomcat and the examples always turned out to run fine
> unless
> I created new context (/home/httpd/site) with new classes in the
> WEB-INF/classes
> directory (the class loader wouldn't find them).
> 
>   With the latest version I believe (from some postings I read on the
> list)
> that this problem might be solved already but now I'm getting some weird
> messages when I connect to Tomcat through Apache (1.3.11)+JServ and when
> I
> try to use JSPs. The console message, the browser message, web.xml and
> server.xml are attached. It seems that Tomcat is choping the URI sent by
> the
> browser when I try to get a JSP and some weird StringIndexOutOfBounds
> exceptions
> are raised mentioning different indexes, but usually negative.
> 
> Thank you for your help and sorry for the long email, but I really
> believe
> that the project leaders should devote a bit more attention to the
> problems
> posted. Or is it just me? :)
> -- 
> =======================================================
> Bruno Salgueiro       (mailto:bs@sibs.pt)
>                    
> SIBS - Sociedade Interbanc�ria de Servi�os
> Rua Soeiro Pereira Gomes, Lote 1, 1600 Lisboa, Portugal
> 
> Tel: + 351 21 791 88 33
> Fax: + 351 21 793 50 80
> http://www.sibs.pt
> 
> Esta mensagem foi assinada com certificado MULTIcert.
> Para obter o certificado da Autoridade de Certifica��o
> PILOTO MULTIcert dirija-se ao site
>             http://www.sibs.multicert.com
> 
> "Computers are useless. They can only give you answers."
>                                         --Pablo Picasso
> =======================================================