RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -HELP-ME-PLEASE

2002-03-28 Thread Randy Layman


A few questions to remove the obvious:
1.  Have you restarted Tomcat after copying the jco.jar file?
2.  Does the jco.jar file really have a file /com//jco.class?
3.  Does Tomcat have permissions to read this file (more of an issue
on Unix, but possible on windows)?
4.  Can you run jar -xvf jco.jar to extract the jar file?
5.  Have you tried putting the jar fine in the WEB-INF/lib directory
to see if it works there?
6.  Is Tomcat printing any error message (to catalina.log or the
console) during startup that might indicate its not loading this jar?

That's all I can think of right now.  Try these and see if anything
pops up, if not post back and I'll try another round.

Randy


> -Original Message-
> From: Korakaki Stella [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 7:59 AM
> To: Tomcat Users List
> Subject: RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server
> Error -HELP-ME-PLEASE
> 
> 
> Thanx Randy but I've placed my jar file with the classes needed at
> $CATALINA_HOME/common/lib/jCO.jar . This is not enough ?
> 
> Stella
> 
> > 
> > 
> > > -Original Message-
> > > From: Korakaki Stella [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 28, 2002 7:39 AM
> > > To: Tomcat Users List
> > > Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal 
> Server Error
> > > -HELP-ME-PLEASE
> > > 
> > > 
> > > 
> > > java.lang.NoClassDefFoundError
> > > at Login2.doGet(Login2.java:51)
> > > at 
> > > -
> > > Could someone tell me what is wrong ?
> > > Please help me !!
> > > 
> > > 
> > 
> > Whatever class you are trying to load on line 51 of 
> Login2.java is
> > not available to Tomcat.
> > 
> > Randy
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> > 
> > 
> 
> 
> Stella Korakaki
> Koutoudis Consulting
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -HELP-ME-PLEASE

2002-03-28 Thread Randy Layman



> -Original Message-
> From: Korakaki Stella [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 7:39 AM
> To: Tomcat Users List
> Subject: Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
> -HELP-ME-PLEASE
> 
> 
> 
> java.lang.NoClassDefFoundError
> at Login2.doGet(Login2.java:51)
> at 
> -
> Could someone tell me what is wrong ?
> Please help me !!
> 
> 

Whatever class you are trying to load on line 51 of Login2.java is
not available to Tomcat.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Who use Tomcat as a stand-alone server in production environment ?

2002-03-27 Thread Randy Layman



> -Original Message-
> From: Laurent Comte [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 11:17 AM
> To: Tomcat Users List
> Subject: RE: Who use Tomcat as a stand-alone server in production
> environment ?
> 
> 
> Hmm hmm ... Not so hard, but look at the messages of this 
> group ... ;-)

If you are going to use this group to define relative difficulties then you
would also assume that knowing how to import classes is a difficulty and
reading the servlet specs a complicated issue.

> 
> For the configuration, I tried both on Windows and Linux, but 
> I don't want
> to go in details for now ...

I have to agree with the response you got - its not all that difficult if
you follow the directions EXACTLY.

> 
> But my question was : "Who use Tomcat as a stand-alone server in a
> production environment ?"

I don't, not do I know anyone who does.

Rand


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: strange error..

2002-03-27 Thread Randy Layman


Am I correct that your "servlet" doesn't extend
javax.servlet.Servlet or javax.servlet.http.HttpServlet?  If so, that is
your problem - servlets must extend Servlet or one of its subclasses.

Randy

> -Original Message-
> From: Shashank [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 11:17 AM
> To: Tomcat Users List
> Subject: strange error..
> 
> 
> Hi !
> 
> I have a servlet "A", that extends an abstract class that extends 
> another class.
> 
> I checked out every piece of code executing is correct.
> 
> but when I create an object of this class A, it gives trange error,
> 
> java.lang.ClassCastException: [Ljava.lang.Object;
> at 
> com.sun.j2ee.blueprints.petstore.control.web.handlers.CartHandler.cre
> atePurchaseItemEvent(CartHandler.java:150)
> 
> What kind of error is this, I am puzzled ??
> 
> take care,
> Shashank
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Does redirect stop processing of originally-targeted jsp?

2002-03-25 Thread Randy Layman



> -Original Message-
> From: Marc Elliott [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 25, 2002 8:43 AM
> To: [EMAIL PROTECTED]
> Subject: Does redirect stop processing of originally-targeted jsp?
> 
> 
> In a nutshell:  I have a process the runs in a javabean/jsp 
> that takes a long
> time and I don't want the user to have to wait for process to 
> finish before
> getting a response. So, I want the user to start the process, 
> then move on
> and do other things on the site.
> 
> If I send the user to the jsp with the javabean, and redirect 
> to another
> page, will the process on that first jsp continue to run?  
> How do I separate
> the presentation of jsp pages from the process being run by the client
> javabean?  Is that possible.

When you call response.sendRedirect, that only sets a response
header.  The JSP continues processing to the next statement and continues
until the end of the JSP page, a return command, or an exception is thrown -
all of which would stop execution of that JSP page.

What you are really looking for is to use threads.  You will need to
start a thread and put it into the session or some other object that won't
be garbage collected.  I would advise you to understand threads before going
very far down this path - threads can be complicated and the problems that
they can cause are not always very straight forward and easy to debug.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JSP on IIS 5.0

2002-03-22 Thread Randy Layman


This error message indicates one of:
1.  isapi_redirect.dll is not at the file path listed
2.  the user trying to start IIS (the System Account usually)
doesn't have permissions to access the dll
3.  There is some configuration that is very wrong making
isapi_redirect not to load (usually one of the registry entries).

Randy


> -Original Message-
> From: A. Lai [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 12:53 PM
> To: Tomcat Users List
> Subject: Re: JSP on IIS 5.0
> 
> 
> Problem is I am NOT getting any error.
> I can get the page like http://localhost/jsp/cal/cal1.jsp
> 
> However, all the JSP's are not parsed.
> 
> the iis_redirect.log is empty.
> 
> I did get something in the system log for W2K that said
> " The HTTP filiter DLL 
> d:\tomcat4\bin\native\isapi_redirect.dll failed to
> load. The data is the error"
> 
> How to make it redirect?
> 
> Thanks
> 
> Alec
> 
> 
> >
> > What errors are you getting (500 Internal Server Error, 404 Page Not
> > Found, 403 Permission Denied, etc) and what is generating 
> them (Tomcat,
> > IIS)?
> >
> > You probably want to look at your log files (IIS,
> > isapi_redirect.log, and Tomcat's) and you will probably be able to
> determine
> > the problem from that.
> >
> > Randy
> >
> >
> > > -Original Message-
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JSP on IIS 5.0

2002-03-22 Thread Randy Layman


What errors are you getting (500 Internal Server Error, 404 Page Not
Found, 403 Permission Denied, etc) and what is generating them (Tomcat,
IIS)?

You probably want to look at your log files (IIS,
isapi_redirect.log, and Tomcat's) and you will probably be able to determine
the problem from that.

Randy


> -Original Message-
> From: A. Lai [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 11:58 AM
> To: Tomcat Users List
> Subject: JSP on IIS 5.0
> 
> 
> Anyone has some luck in getting Tomcat 4 to run with IIS?
> 
> After installing everything according to
> http://www.vacodi.com/howto/tomcat/iisnt/index.html
> 
> and set up all ISAPI filters. Looks like JSP is not kicking 
> in while it's
> well alive on port 8080.
> I have checked ALL IIS mapping, registry key and config XML 
> files, to no
> avail.
> 
> Any suggestions?
> 
> Alec
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


To make /search/hello work just set the URL pattern to "/help"
(without quotes).  This will match the literal (and only the literal) /help
within your webapp (which is /seach, apparently).

Randy

> -Original Message-
> From: Lance Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 1:59 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet Deploy Problem Help
> 
> 
> Now try http://localhost:8080/search/hello/abc
> it should work also.
> getting it to work with just /search/hello gets into
> mapping issues I haven't had to work out yet sorry.
> Lance
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 12:42 PM
> To: Tomcat Users List
> Subject: RE: Servlet Deploy Problem Help
> 
> 
> Lance - yes it works thanks a lot.
> But what are other shorter forms that I can use to
> call the servlet. I would hope to call it with like
> /search/hello. What has the /hello/* mapping bought
> me.
> Thanks
> Sanjay
> --- Lance Smith <[EMAIL PROTECTED]>
> wrote:
> > try http://localhost:8080/search/hello/HelloWorld
> > let me know if this works.
> > Lance
> >
> > -Original Message-
> > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, March 21, 2002 10:13 AM
> > To: Tomcat Users List
> > Subject: RE: Servlet Deploy Problem Help
> >
> >
> > Lance,
> > So in other words if I may to /hello/* I would be
> > able
> > to call my servelet with /hello? or the full URL
> > http://localhost:8080/search/hello? I tried it did
> > not
> > work- requested resource (/hello) is not available.
> >
> > Thanks a lot,
> > Sanjay
> > --- Lance Smith <[EMAIL PROTECTED]>
> > wrote:
> > > Sanjay,
> > > The servlet-mapping is a tag that allows you to
> > map
> > > a specified pattern to the specified servlet.
> > Don't
> > > get me started on the pattern syntax I still
> > haven't
> > > taken the time to fully comprehend it. So
> > basically
> > > what we told the server was that anytime it sees
> > the
> > > pattern "/hello/" in the context of this app send
> > it
> > > to the HelloWorld servlet. The  means
> > > anything
> > > you want to type after the "/hello/" since we told
> > > it to
> > > match on the "/hello/".
> > > Lance
> > >
> > > -Original Message-
> > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 21, 2002 9:01 AM
> > > To: Tomcat Users List
> > > Subject: RE: Servlet Deploy Problem Help
> > >
> > >
> > > Lance Thanks.
> > > What does servlet-mapping mean- is it directory
> > > structure or an alias to a servlet.I was trying to
> > > use
> > > /hello as an alias for the HelloWorld servlet and
> > > try
> > > calling it by /hello or by full URL /hello- am I
> > > completely off on this. and what is this
> > ?
> > > Thanks again
> > >
> > >
> > > 
> > >   HelloWorld
> > >   /hello/*
> > > 
> > >
> > > Then you  should be able to call it like:
> > > http://localhost:8080/search/hello/
> > >
> > > --- Lance Smith <[EMAIL PROTECTED]>
> > > wrote:
> > > > In you're web.xml change:
> > > > 
> > > >   HelloWorld
> > > >   /hello
> > > > 
> > > >
> > > > to :
> > > > 
> > > >   HelloWorld
> > > >   /hello/*
> > > > 
> > > >
> > > > Then you  should be able to call it like:
> > > > http://localhost:8080/search/hello/
> > > >
> > > > Hope this helps
> > > > Lance
> > > >
> > > >
> > > > -Original Message-
> > > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, March 21, 2002 8:21 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Servlet Deploy Problem Help
> > > >
> > > >
> > > > I am just restarting this thread. My problem
> > > remains
> > > > unsolved. I am running Tomcat4.01/NT. The setup
> > > > should
> > > > be OK as the examples run.
> > > > I am trying to deploy the HelloWorldExample.
> > > > My directory structure is-
> > > > Tomcat4\webapps\search\WEB-INF\classes
> > > > I have my .htm file in the \search directory and
> > > my
> > > > class in the \classes and my web.xml in the
> > > > \WEB-INF.
> > > > My web.xml looks like this- I have used the
> > > example
> > > > file to create it-
> > > > 
> > > >   HelloWorld
> > > >   
> > > > HelloWorld
> > > >   
> > > >
> > > > HelloWorldExample
> > > > 
> > > > 
> > > >   HelloWorld
> > > >   /hello
> > > > 
> > > > Is this web.xml correct?
> > > >
> > > > I have not been able to execute my servelt any
> > > which
> > > > way:
> > > > /hello
> > > >
> > >
> >
> http://localhost:8080/search/servlet/HelloWorldExample
> > > > http://localhost:8080/search/servlet/HelloWorld
> > > > http://localhost:8080/search/HelloWorld
> > > > I either get a resource not found or
> > > > java.util.MissingResourceException: Can't find
> > > > bundle
> > > > for base name LocalStrings, locale en_US
> > > > at
> > > >
> > >
> >
> java.util.ResourceBundle.throwMissingResourceException(Resourc
> eBundle.java:7
> > > 

RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


Your problem isn't in the loaded classes (that would be a class not
found).  Instead look at where you are calling the method
java.util.ResourceBundle.getBundle.  The parameter you are passing in
references a resource that Tomcat can't find.

Randy

> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 9:56 AM
> To: Tomcat Users List
> Subject: RE: Servlet Deploy Problem Help
> 
> 
> Thanks of the insight. The servlet is a HelloWorld
> example. The only imports in the class are:
> import java.io.*;
> import java.text.*;
> import java.util.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> I would easily suppose these should be available to
> Tomcat. If not what do I do.
> Thanks
> Sanjay
> --- Randy Layman <[EMAIL PROTECTED]> wrote:
> > 
> > The stack trace you included indicates that you are
> > running the
> > servlet, but its throwing an exception.
> > 
> > > -Original Message-
> > > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 21, 2002 9:21 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Servlet Deploy Problem Help
> > > 
> > > 
> > > I either get a resource not found or 
> > > java.util.MissingResourceException: Can't find
> > bundle
> > > for base name LocalStrings, locale en_US
> > >   at
> > >
> >
> java.util.ResourceBundle.throwMissingResourceException(Resourc
> > > eBundle.java:707)
> > >   at
> > >
> >
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
> > >   at
> > >
> >
> java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
> > >   at HelloWorldExample.doGet(Unknown Source)
> > > 
> > 
> > If your servlet wasn't being called then you
> > wouldn't see it in the
> > stack trace.  I would suggest that you look at how
> > you are loading resources
> > in your servlet (they are probably not in the
> > classpath).
> > 
> > Randy
> > 
> > --
> > To unsubscribe:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands:
> > <mailto:[EMAIL PROTECTED]>
> > Troubles with the list:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Servlet Deploy Problem Help

2002-03-21 Thread Randy Layman


The stack trace you included indicates that you are running the
servlet, but its throwing an exception.

> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 9:21 AM
> To: [EMAIL PROTECTED]
> Subject: Servlet Deploy Problem Help
> 
> 
> I either get a resource not found or 
> java.util.MissingResourceException: Can't find bundle
> for base name LocalStrings, locale en_US
>   at
> java.util.ResourceBundle.throwMissingResourceException(Resourc
> eBundle.java:707)
>   at
> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:604)
>   at
> java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
>   at HelloWorldExample.doGet(Unknown Source)
> 

If your servlet wasn't being called then you wouldn't see it in the
stack trace.  I would suggest that you look at how you are loading resources
in your servlet (they are probably not in the classpath).

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: petstore 1.3 on Tomcat 4 as J2EE server

2002-03-21 Thread Randy Layman



> -Original Message-
> From: robert rowntree [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 21, 2002 12:17 AM
> To: [EMAIL PROTECTED]
> Subject: petstore 1.3 on Tomcat 4 as J2EE server
> 
> 
> without running the J2EE server that comes with the 
> "J2SDKEE1.3" download, I tried deploying the Petstore app. 
> directly to a running instance of Tomcat 4.04. and got ANT 
> 1.4.1 deployment errors like:
>



> 
> Isn't enough of the J2EE stuff  built in Tomcat4 so that I 
> could just use the "localhost" instance of tomcat in place of 
> the J2EE server that is bundled with the Petstore. I checked 
> docs. for Tomcat and for config attrs. like "useNaming" that 
> allude to built in J2EE stuff in the InitialContexts from the 
> container. 
> 
> My question is what options do i have to run J2EE sample 
> apps. directly on Tomcat4.0.4 as a J2EE implementation?

None.  You need an J2EE server to run enterprise beans, etc.  Tomcat only
supports JSPs and Servlets (and includes a few other APIs like JNDI and
JavaMail), but doesn't include support for the full environment.  You will
need another package (like the Sun's J2EE implementation, JBoss, WebSphere,
Weblogic, etc).

Randy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: RE: newbie jsp question

2002-03-20 Thread Randy Layman


>From the Javadocs for java.lang.VerifyError (great source of information, by
the way):

Thrown when the "verifier" detects that a class file, though well formed,
contains some sort of internal inconsistency or security problem. 

So I would say that somehow your JDBC drivers are corrupt.  I have seen
JBuilder produce classes that caused this - a simple recompile fixed
everything for me.  The Stack Trace would seem to indicate the problem is in
interbase.interclient.ErrorKey.  I would suggest trying to create a
standalone application that exhibits this problem and contact the vendor's
technical support with the issue.

Randy


> -Original Message-
> From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 20, 2002 3:14 AM
> To: [EMAIL PROTECTED]
> Subject: Ang: RE: newbie jsp question
> 
> 
> Well! I already have a connection to the database, I can 
> extract information out from the database but when I use 
> execute procedure commando I only get that very hard to debug 
> error page from tomcat. here is a copy of it:
> 
> java.lang.VerifyError: (class: 
> interbase/interclient/ErrorKey, method:  signature: ()V) 
> Expecting to find object/array on stack
>   at interbase.interclient.SQLException.(SQLException.java:96)
>   at 
> interbase.interclient.RecvMessage.createSQLException(RecvMessa
> ge.java:694)
>   at 
> interbase.interclient.RecvMessage.makeSQLException(RecvMessage
> .java:593)
>   at 
> interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.j
> ava, Compiled Code)
>   at 
> interbase.interclient.Statement.remote_EXECUTE_QUERY_STATEMENT
> (Statement.java, Compiled Code)
>   at 
> interbase.interclient.Statement.executeQuery(Statement.java, 
> Compiled Code)
>   at 
> matsedel.input.updatematsedel_13._jspService(updatematsedel_13
> .java:117)
>   at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
>   at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java, 
> Compiled Code)
>   at 
> org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
>   at org.apache.tomcat.core.Handler.invoke(Unknown Source)
>   at org.apache.tomcat.core.Handler.service(Unknown Source)
>   at 
> org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
>   at 
> org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
>   at org.apache.tomcat.core.ContextManager.service(Unknown Source)
>   at 
> org.apache.tomcat.modules.server.Ajp13Interceptor.processConne
> ction(Unknown Source)
>   at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
>   at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> Unknown Source)
>   at java.lang.Thread.run(Unknown Source)
> 
> I havent got a clue what is wrong.
> 
> here is the execute procedure part of my jsp page
> 
> 
> if (request.getParameter("MandagLunchUID") == null)
>   {
>   MyQuery = "EXECUTE PROCEDURE INSERT_INTO_MATSEDEL 'Mat 
> mat mat' '2002-03-18' 1 0";
>   
> //MyQuery = "EXECUTE PROCEDURE 
> INSERT_INTO_MATSEDEL (";
>   //MyQuery = MyQuery + 
> request.getParameter("MandagLunchText") + ",";
>   //MyQuery = MyQuery + 
> request.getParameter("MandagLunchDatum") + ",";
>   //if (IsVego.booleanValue())
>   //{
>   //  MyQuery = MyQuery + "1" + ",";
>   //}
>   //else
>   //{
> // MyQuery = MyQuery + "0" + ","; 
>   //};
>   //MyQuery = MyQuery + "0)";
> 
> MyRecordSet = 
> StatementRecordset1.executeQuery(MyQuery);
> 
>   out.print("OK insert måndag lunch");
>   }
> 
> As you can see there is a lot of remarks there, I only have 
> that static call right now for test purpose..
> 
> 
> 
> >>> [EMAIL PROTECTED] 2002-03-19 16:44:05 >>>
> 
>   You will need to learn how to use JDBC to access 
> databases.  I would
> suggest either going to Sun's JDBC site or looking at 
> Interbase.  Once you
> know how to execute the stored procedure from regular Java, 
> JSP is trivial.
> 
>   Randy
> 
> 
> > -Original Message-
> > From: Magnus Jansson [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, March 19, 2002 11:22 AM
> > To: [EMAIL PROTECTED] 
> > Subject: newbie jsp question
> > 
> > 
> > I'm getting nuts I tries to execute a stored procedure that 
> > looks like this:
> > 
> > INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO 
> > Integer, ISLUNCH Integer) 
> > 
> > But I haven't got a clue how to write the jsp code to execute 
> > that procedure.
> > 
> > I'm using Interbase 6.5 Pleeeaseee help me.
> > 
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> > - - - - - - - - - - - - - - 
> > Magnus Jansson
> > IT-Manager
> > Väddö folkhögskola
> > 760 40 Väddö
> > Sweden
> > 
> > Phone: +46 (0) 176-528 00
> > Cellular: +46 (0) 70-370 33 16
> > Fax: +46 (0) 176-528 28
> > http://www.vaddo.fhsk.se (work)
> > http://www.jason.pp.se (private)
> >

RE: Tomcat 3.2.1, 3.2.3, 3.2.4a

2002-03-20 Thread Randy Layman


The Tomcat 3.2 series had a number of issues with indirect loading
of classes - the servlet or class would call one of Sun's classes to load a
class (like JNDI).  The problem was that the web app's class loader wasn't
visible to the system classes.  In Tomcat 3.2 you can put all your classes
(servlets, utility classes, beans, etc) into a jar file in TOMCAT_HOME/lib
and this should work - although dynamic class reloading will not work!

Tomcat 3.3 works much better in this regard and classes placed into
the WEB-INF/classes and jars in WEB-INF/lib should work just fine with one
exception:  there are certain classes that Tomcat doesn't allow you to load
in the webapp (I don't really understand why, but they do it).  Apparently
the list is a little to long in the current release and the Tomcat 3.3.1
release will allow more classes to be loaded from web app jar files.  If you
search the list archives for articles referencing Tomcat 3.3.1 you should be
able to find the messages about this problem.  To get around this you can
place the classes in TOMCAT_HOME/lib/apps or TOMCAT_HOME/lib/common.

Randy


> -Original Message-
> From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 7:51 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 3.2.1, 3.2.3, 3.2.4a
> 
> 
> I've now tried using the WEB-INF/lib directory with all of 
> the above versions 
> to no avail.  No matter what, certain lib files I put into 
> the WEB-INF/lib 
> directory won't load.  Also, specific class files within 
> specific jar files 
> won't load; extracting them into the WEB-INF/classes 
> directory doesn't help.  
> Putting everything into the system lib directory works until 
> I get to the 
> point where I need to run a servlet.  Then I'm SOL, as it 
> expects to find the 
> servlet class files under the WEB-INF/lib or WEB-INF/classes 
> directory.
> 
> I have also tried with the following JDK's:
> 
> Sun JDK 1.3.1-b24
> Sun JDK 1.3.1_02
> Blackdown JDK 1.3.0 FCS
> 
> For some quick examples, the following fail every time:
> 
> jnp-client.jar comes with JBoss 2.4.x (I'm using 2.4.4)
> jnp-client.jar:  org.jnp.interfaces.NamingContextFactory
> 
> The home interface from my jar file that I've archived up for the 
> application, but other classes within the same jar file load up fine.
> 
> log4j is v1.1.3
> log4j.jar:  Cannot find the context for  (this works in 
> 3.2.4a and 3.2.3 
> but not in 3.2.1); it is fixed by including the 
> $TOMCAT_HOME/lib directory in 
> the classpath, and dumping the log4j.properties file in there.
> 
> jboss-client.jar comes with JBoss 2.4.x (I'm using 2.4.4)
> jboss-client.jar:  fails to load proxy class when attempting 
> to get the 
> remote interface from the home interface (this is after I've put 
> jnp-client.jar into the $TOMCAT_HOME/lib directory).
> 
> I could list 3 or 4 more jar files, but I'm sure you get the 
> idea, and can 
> appreciate the fact that this isn't a complicated setup.  I'm 
> wondering if 
> there's something special I have to do in my startup scripts?
> 
> Also, I'm running Linux kernel v2.2.19, and glibc 2.2.3.
> 
> Thanks in advance for any help you might be able to offer.
> 
> I just want to make sure this is a bug, and not a 
> configuration error, before 
> submitting it to bugzilla.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: problems connecting to MS Access when Tomca3.2 runs as service

2002-03-20 Thread Randy Layman


The cause of your error message is that you have the file open
(probably in Access) and the System Account is trying to read the file.  The
JET engine doesn't allow this.

Your more significant and potentially more dangerous problem is that
you are using the JDBC-ODBC bridge.  This component is not thread safe and
can't/shouldn't be used in a concurrent threads.  Sun also considers this
component "experimental" and not for production usage.  You can see Java's
BugParade for more information on this.

Randy


> -Original Message-
> From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 8:08 PM
> To: TomcatUser (E-mail)
> Subject: problems connecting to MS Access when Tomca3.2 runs 
> as service
> 
> 
> Hi
> 
> I am running  Tomcat3.2 on Windows2000. I am facing a 
> problem when I try
> to connect (from a Servlet) to an MS Access database when 
> Tomcat is running
> as an NT service. When I manually run Tomcat from the console the same
> servlet works perfectly. The link
> http://www.apachelabs.org/tomcat-user/200101.mbox/%3COFB012A4B
8.0583C846-ONC
[EMAIL PROTECTED]%3E discusses the problem where the
driver is not getting loaded. But, the error I get is different -

--
SQL EXCEPTION OCCURRED CONNECTING TO DB -[Microsoft][ODBC Microsoft Access
Driver] The Microsoft Jet database engine cannot open the file '(unknown)'.
It is already opened exclusively by another user, or you need permission to
view its data.
--
 so it seems like the drivers are getting loaded. I am unable to figure out
the problem. Any help would be greately appreciated. I looked at the ODBC
data source that I have created but found nothing that is out of place.

thanks
Srinivas 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: bug JDK 1.3

2002-03-20 Thread Randy Layman


You need to pass the flag -Xrs to the Sun implementations on
startup.  For Tomcat 3.3 this means setting the environment variable
TOMCAT_OPTS to -Xrs.

Randy

> -Original Message-
> From: vmfa [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:51 PM
> To: [EMAIL PROTECTED]
> Subject: bug JDK 1.3
> 
> 
> Hi,
> 
> I was reading this document:Working with the Jakarta NT 
> Service 
> 
> I am working with tomcat 3.3a this document told about a 
> bug in Java 1.3
> 
> "Notice for JDK 1.3 users: There is a known problem in 
> JDK 1.3 that affects Java applications being run as 
> Windows NT services. The bug causes the service to 
> terminate when the currently logged in user logs out. 
> The simplest way to work around this problem is to use 
> JDK 1.2. If your application requires JDK 1.3 features 
> then you may want to look into javaserv or JavaService . 
> Users have reported success with both of these packages 
> but there may be others that work as well."
> 
> 
> 
> I d like to know if this bug was fixed in jdk 1.3.1_01
> 
> I am using JdK 1.3.1_01 I will have this problem?
> 
> Vanessa
> 
> 
> 
>  
> __
> 
> Quer ter seu próprio endereço na Internet?
> Garanta já o seu e ainda ganhe cinco e-mails personalizados.
> DomíniosBOL - http://dominios.bol.com.br
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: newbie jsp question

2002-03-19 Thread Randy Layman


You will need to learn how to use JDBC to access databases.  I would
suggest either going to Sun's JDBC site or looking at Interbase.  Once you
know how to execute the stored procedure from regular Java, JSP is trivial.

Randy


> -Original Message-
> From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 11:22 AM
> To: [EMAIL PROTECTED]
> Subject: newbie jsp question
> 
> 
> I'm getting nuts I tries to execute a stored procedure that 
> looks like this:
> 
> INSERT_INTO_MATSEDEL (MATTEXT BLOB, DATUM Date, ISVEGO 
> Integer, ISLUNCH Integer) 
> 
> But I haven't got a clue how to write the jsp code to execute 
> that procedure.
> 
> I'm using Interbase 6.5 Pleeeaseee help me.
> 
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
> - - - - - - - - - - - - - - 
> Magnus Jansson
> IT-Manager
> Väddö folkhögskola
> 760 40 Väddö
> Sweden
> 
> Phone: +46 (0) 176-528 00
> Cellular: +46 (0) 70-370 33 16
> Fax: +46 (0) 176-528 28
> http://www.vaddo.fhsk.se (work)
> http://www.jason.pp.se (private)
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Deployment from directories not under webapps

2002-03-19 Thread Randy Layman


You need to rename classesXXX.zip to classesXXX.jar and put it in
the WEB-INF/lib directory of your webapp.

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 10:54 AM
> To: Tomcat Users List
> Subject: RE: Deployment from directories not under webapps
> 
> 
> Where do you put the Oracle drivers?This is the error message 
> I get from 
> my log. I am running tomcat 4 on a win2000 machine
> Tue Mar 19 10:40:54 EST 2002: Can't create a new connection for 
> jdbc:oracle:thin:@172.17.112.10:1525:DTSAPPS
> java.sql.SQLException: No suitable driver
> at 
> java.sql.DriverManager.getConnection(DriverManager.java:537)
> at 
> java.sql.DriverManager.getConnection(DriverManager.java:177)
> at 
> dtsServlets.DBConnectionManager$DBConnectionPool.newConnection
> (DBConnectionManager.java:380)
> at 
> dtsServlets.DBConnectionManager$DBConnectionPool.getConnection
> (DBConnectionManager.java:314)
> at 
> dtsServlets.DBConnectionManager.getConnection(DBConnectionMana
> ger.java:77)
> at dtsServlets.connDB.getConnection(connDB.java:18)
> at dtsServlets.FruitTest.showFruitTable(FruitTest.java:61)
> at dtsServlets.FruitTest.doGet(FruitTest.java:33)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Unknown 
> Source)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Unkno
> wn Source)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> at 
> org.apache.catalina.core.StandardContext.invoke(Unknown Source)
> at org.apache.catalina.core.StandardHostValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.valves.AccessLogValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown 
> Source)
> at org.apache.catalina.core.StandardPipeline.invoke(Unknown 
> Source)
> at 
> org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
> at 
> org.apache.catalina.connector.http.HttpProcessor.process(Unkno
> wn Source)
> at 
> org.apache.catalina.connector.http.HttpProcessor.run(Unknown 
> Source)
> at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 
> Rodrigo Gonzalez Asensio <[EMAIL PROTECTED]>
> 19/03/2002 10:18 AM
> Please respond to Tomcat Users List
> 
>  
> To: Tomcat Users List <[EMAIL PROTECTED]>
> cc: 
> Subject:RE: Deployment from directories not 
> under webapps
> 
> 
> JUST PUT YOUR SERVLETS IN 
> WEB-INF/classes 
> JUST PUT YOUR JARs IN
> jar files /WEB-INF/lib
> 
> --- 
> 
> Rodrigo Gonzalez Asensio
> División de Ingeniería - Platino - GUI Development
> Gilbarco Latin America
> Congreso 3450 - C1430AZD Buenos Aires - Argentina
> TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
> Sent: Martes, 19 de Marzo de 2002 11:42 a.m.
> To: Tomcat Users List
> Subject: RE: Deployment from directories not under webapps
> 
> 
> 
> 
> 
> 
> 
> 
> "Yuval Levav" <[EMAIL PROTECTED]> on 03/19/2002 01:09:22 AM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:   "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> 
> Subject:  RE: Deployment from directorie

RE: exception.getMessage() returns null?

2002-03-18 Thread Randy Layman


Two possibilities:
1.  The exception that you are catching is a NullPointerException
(which has null as its message).  You can check this by adding
exception.getClass().getName() to your output.
2.  The exception that you are catching is not one provided by Sun
and the developer didn't set the message properly.

Randy

> -Original Message-
> From: Juan J. Merelo [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 17, 2002 6:48 PM
> To: [EMAIL PROTECTED]
> Subject: exception.getMessage() returns null?
> 
> 
> Hi,
>   I'm trying to set up an error page, which looks like this:
> <%@ page isErrorPage="true" %>
> 
> Se ha producido un error
> <%@ include file ="cabecera.jsp" %>
> Se ha producido un error
> 
> Endeluego, que a ver si tenemos cuidaico, que se ha producido el 
> siguiente error:
> <%= exception.getMessage() %>
> 
> (basically cut/paste from the JSP book by Bergsten). I would 
> like it to 
> display an exception thrown from a bean, but it displays 
> null. What can 
> be the problem here? Do I need to set up something else? Besides, 
> exception prints just JasperException or suchlike; I would like it to 
> print the message I included in the RuntimeException
> 
> Thanks for any info...
> 
> J
> -- 
> PPSN2002 => http://ppsn2002.ugr.es
> Home => http://geneura.ugr.es/~jmerelo
> Tutorial Perl => http://granavenida.com/perl
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Charts in Jsp doesn't work [urgent!]

2002-03-15 Thread Randy Layman


For Tomcat 3.3 change CATALINA_OPTS to TOMCAT_OPTS.  Otherwise the
directions quoted are correct.  If you insist on modifying the .sh file then
add this command as the second line of the sh file.

Randy

> -Original Message-
> From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 3:17 PM
> To: Tomcat Users List
> Subject: Re: Charts in Jsp doesn't work [urgent!]
> 
> 
> Do somebody know how to set Java to run in headless mode  in 
> Tomcat 3.3 ?
> 
> Do you want give me a hint?
> I really tried to modify the tomcat.sh script but I 
> couldn't.. It's very
> hard to understand!!!
> Could you please help me?
> 
> 
> 
> 
> "Christopher K.St.John" wrote:
> 
> > Andy Eastham wrote:
> > >
> > > 1) To run in headless mode, you do need to modify tomcat.sh,
> > >
> >
> >$ export CATALINA_OPTS="-Djava.awt.headless=true"
> >$ bin/startup.sh
> >
> >  No need to actually modify the catalina.sh code, it will
> > automatically pick up the environment variable.
> >
> 
> Andy Eastham wrote:
> 
> > Nancy,
> >
> > You either need X windows or (if your server has no graphics card):
> >
> > 1) Use j2se1.4 and run it in "headless" mode - the JAva VM 
> needs to be
> > started with the
> > -Djava.awt.headless=true option in the Tomcat startup scripts.
> >
> > 2) Get the virtual frame buffer (VFB) version of X windows and run
> > that.  (I
> > know we did this at my previous company but I'm afraid I 
> can't remember
> > how
> > to set it up).  Try typing "xwindows virtual frame buffer" into your
> > favourite search engine.
> >
> > Andy
> >
> > > -Original Message-
> > > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> > > Sent: 14 March 2002 16:48
> > > To: Tomcat Users List
> > > Subject: Charts in Jsp doesn't work
> > >
> > >
> > > Hi Everybody!
> > >
> > > Do you know what is X Windows System for?
> > > Do I need to install it to work with charts?.. I mean, I 
> couldn't see
> >
> > > the charts displayed and someone told me that I need to install X
> > Window
> > > System... Is that true?
> > > The jsp wich displays a chart are placed in a Solaris Sparc server
> > > running on Tomcat 3.3, but I want to see the charts in a 
> Windows PC
> > and
> > > I couldn't
> 
> >
> > --
> > Christopher St. John [EMAIL PROTECTED]
> > DistribuTopia http://www.distributopia.com
> >
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Novice here! Classpath issue...Tomcat 3.3/IIS5.0/Win2k/Oracle

2002-03-15 Thread Randy Layman


You are calling Long.parseLong with a string parameter that is null
(either equal to null or is a literal "null" - I can't remember how this
message is structured right now).

You are making the call from line 77 of the generated .java file for
the JSP page.

Randy

> -Original Message-
> From: Robert Keddie [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 1:00 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: Jim Saullo
> Subject: RE: Novice here! Classpath issue...Tomcat
> 3.3/IIS5.0/Win2k/Oracle
> 
> 
> I did everything you said and now I get this error( last 
> error gone which is good!)...what could this mean?
> 
> 2002-03-15 08:49:10 - Ctx(/marion) : Exception in R( /marion 
> + /permit_details.jsp + null) - javax.servlet.Ser
> vletException: null
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImpl.java:460)
> at permit_details_1._jspService(permit_details_1.java:430)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandl
> er.java:484)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at 
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler
> .java:432)
> at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:915)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
> at 
> org.apache.tomcat.modules.server.Ajp12Interceptor.processConne
> ction(Ajp12Interceptor.java:207)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:477)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:517)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Long.java:279)
> at java.lang.Long.parseLong(Long.java:363)
> at permit_details_1._jspService(permit_details_1.java:77)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandl
> er.java:484)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at 
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler
> .java:432)
> at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:915)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
> at 
> org.apache.tomcat.modules.server.Ajp12Interceptor.processConne
> ction(Ajp12Interceptor.java:207)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:477)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:517)
> at java.lang.Thread.run(Thread.java:484)
> 
> Robert Keddie
> web development
> Marion County, FL
> 
> Robert Keddie
> web development
> Marion County, FL
> 
> >>> [EMAIL PROTECTED] 03/14/02 11:19AM >>>
> Note that the tomcat.bat batch file includes:
> 
> set CLASSPATH=%TOMCAT_INSTALL%\lib\tomcat.jar
> 
> which will override your previously set CLASSPATH environment
> variable.  For info on the recommended way to add classes to
> Tomcat 3.3, please refer to:
> 
>  l#configuring_classes>
> 
> I would recommend as a first approach, renaming the two ".zip" files
> to ".jar" files and copy them to TOMCAT_HOME\lib\common.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Robert Keddie [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, March 14, 2002 11:02 AM
> > To: [EMAIL PROTECTED] 
> > Cc: Jim Saullo
> > Subject: Novice here! Classpath issue...Tomcat 
> 3.3/IIS5.0/Win2k/Oracle
> > 
> > 
> > I recieve the following error, but I shouldn't because the 
> > classpath has the following : 
> > CLASSPATH=.;C:\jdk1.3.1;C:\Oracle\Ora81\jdbc\lib\classes111.zi
> > p;C:\Oracle\Ora81\jdbc\lib\nls_charset11.zip;
> > 
> > Im using Tomcat 3.3 on IIS 5.0 on Win 2k ... the page source 
> > is at the bottom.
> > When I first received this error I made subfolders under 
> > classes/oracle/jbdc/driver/* with the oracle driver classes 
> > but it then couldnt process this part  
> > "call.registerOutParameter(2, OracleTypes.CURSOR);   
> > call.registerOutParameter(3, OracleTypes.CURSOR)" of the page 
> > source at bottom. 
> > Please anyone help this novice!
> > 
> > 2002-03-14 08:25:52 - ServerXmlReader: 
> > Config=$TOMCAT_HOME\conf\server.xml
> > 2002-03-14 08:25:52 - PathSetter: home

RE: Large pages not completely displayed with IE 5.x and Tomcat 4.0.x

2002-03-12 Thread Randy Layman


I think an obvious first couple of questions:
1.  Is the page competing execution or is it throwing an exception
or perhaps hanging up due to deadlock?
2.  Are you ever clicking the stop button in IE (perhaps causing the
browser to give up before the connection is completed?)

Randy

> -Original Message-
> From: Michael Gerdau [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 12, 2002 8:46 AM
> To: [EMAIL PROTECTED]
> Subject: Large pages not completely displayed with IE 5.x and Tomcat
> 4.0.x
> 
> 
> Hi !
> 
> I have the following problem:
> I'm running Tomcat 4.0.x (x == 1, 2 or 3) standalone on a Win2000
> machine. I have a WebApp (written with Struts) that accesses a RDBMS
> and creates pages which occasionally are 100+ kB in size. This takes
> some time (between 20-50 seconds).
> 
> When I run Internet Explorer 5.0 or 5.5 on the machine running
> Tomcat (e.g. my development environment) everything works 
> fine. When I'm
> trying to access those pages from another machine within the 
> local network
> (e.g. the production environment) some of these pages don't display
> completely. Examining the HTML inside the browser reveals 
> they are indeed
> incomplete.
> 
> What could cause this ?
> What additional info would be needed to debug this ?
> 
> Any help appreciated, thank you,
> Michael
> --
>  Vote against SPAM - see http://www.politik-digital.de/spam/
>  Michael Gerdau   email: [EMAIL PROTECTED]
>  PCDOS&MSDOS&CP/M&WINDOWSI'LLFIDDLEWITHLINUXWOULDN'TYOU
>  PGP-keys available on request or at public keyserver
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat tools error

2002-03-11 Thread Randy Layman


Tomcat can't find the Java Compiler.  This is generally due to an
incorrect JAVA_HOME setting (JAVA_HOME/lib/tools.jar must be valid).  You
can create a symbolic link from the TOMCAT_HOME/lib/container to tools.jar
if you think you set the variable correctly.

Randy

PS This question is asked on a weekly basis and can be found in the archive.
Next time you might want to look there before asking here.

> -Original Message-
> From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 3:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat tools error
> 
> 
> Has anyone encountered this error trying the JSP examples on 
> Tomcat 4.0.3, using Sun JDK1.4.0, on Sun Solaris 2.6?  
> 
> Internal Server Error
> 
> type Exception report
> message Internal Server Error
> description The server encountered an internal error 
> (Internal Server Error) that prevented it from fulfilling 
> this request.
> exception 
> javax.servlet.ServletException: sun/tools/javac/Main
>   at 
> root cause 
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: checksum errors

2002-03-11 Thread Randy Layman


You need to use GNU TAR, not the TAR that comes with Solaris.

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 9:43 AM
> To: Tomcat Users List
> Subject: checksum errors
> 
> 
> I have been trying to install Tomcat and am getting checksum 
> errors when
> untarring.  Is there a location I can get an ftp connection 
> to ensure it
> comes down as a binary file?  I have tried this with both 
> 4.0, 4.01 and
> 4.03.  Has anyone done this recently? Is there something 
> wrong with the
> files posted to jakarta.apache.org?  Does anyone know of an alternate
> download location?
> 
> Thanks much
> Jeff
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: IE 5 on Mac is incompatible with TC 4?

2002-03-08 Thread Randy Layman


I haven't been following this thread but it seems like you are
saying that Tomcat should be modified to work correctly with IE 5.  The
problem with that is that Tomcat is an reference implementation of a
particular spec (JSP/Servlet) which dictates how things have to work - it is
the reference by which all others are implemented.  It can't change to
accommodate bugs or "special features" of client software.

Randy

> -Original Message-
> From: Anders Rundgren [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 7:51 AM
> To: Tomcat Users List
> Subject: Re: IE 5 on Mac is incompatible with TC 4?
> 
> 
> Ralph,
> 
> >I got the impression from your previous posts, that
> >the browser is the source not tomcat.
> 
> Well  This is matter of "taste".  As IE 5 is the current 
> Mac release and
> IE is relatively popular even by Mac-user's, I believe that TC should
> adopt to IE 5 rather than the revse.  A *really* strange thing is that
> persistant cookies work.  But the problem is only related to SSL.
> 
> /anders
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: tuning tomcat!!

2002-03-07 Thread Randy Layman


For Tomcat on NT as a service, you can set the -Xms and -Xmx in the
registry.  Its HKEY_LOCAL_MACHINE\Service\CurrentControlSet\\Configuration.  You can add new JVM Option Number X (and make sure
to increment the JVM Option Count key) to contain the additional parameters.

Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 7:32 AM
> To: Rahul Asanikar
> Cc: Tomcat Users List
> Subject: Re: tuning tomcat!!
> 
> 
> What borthers you with that ?
> Is the system too slow / sloppy ?
> I would also try to switch some flags like the green threads / native
> threads & see how it behaves.
> 
> Have you try these while running as a normal APP ?
> I mean not an NT-service ?
> 
> Another thing you could do is to simply have a dummy jsp / 
> servlet creating
> an chain of Objects to force allocation of lots of memeory & 
> see then what
> you do monitor !
> 
> R U using "perfmon" to do so ?
> 
> thomas,
> 
> 
> --
> Thomas SMETS
> rue J. Wytsmanstraat 62
> 1050 Bruxelles
> yahoo-id : smetsthomas
> - Original Message -
> From: "Rahul Asanikar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 07 March, 2002 12:30 PM
> Subject: Re: tuning tomcat!!
> 
> 
> > Hi Thomas,
> >
> > I have tried it, but in vain :-(
> > Anyway its using only 20-25 MB out of default 64 MB memory.
> >
> > Any thoughts?
> >
> > Rahul.
> >
> >
> >
> > - Original Message -
> > From: <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 07, 2002 2:26 PM
> > Subject: re : tuning tomcat!!
> >
> >
> > >
> > >
> > > Rahul,
> > > Have you tried to pass to the VM unsupported argument like
> > java -xms -xmx 
> ClasstoStart
> > > (I would not have a clue on how you 'd it when it's as a 
> NT-service).
> > >
> > > Thomas,
> > >
> > > ===
> > >
> > >
> > > Hi,
> > >
> > > I am using Tomcat 4.0.1 with IIS 5 on Win2K as a service.
> > > The no. of hits on the IIS & Tomcat are 250 per sec. When 
> this happens,
> > > tomcat & IIS start eating up CPU upto 30-80%. This is 
> directly related
> to
> > > the no. of hits to the server as it calms down when the 
> no. of users
> > > (hits/sec) are less.
> > >
> > > I am using default configuration of tomcat. Is that 
> enough? or Is there
> > any
> > > way of tuning the tomcat. I have 512 MB RAM out of which 
> 50% is still
> free
> > > and my servlet uses only 20-25 MB. So its not using its 
> default 64 MB
> > also.
> > >
> > > Any suggestions?
> > >
> > > Best Regards,
> > > Rahul.
> > >
> >
> >
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Moving to windows from linux ? bug ?

2002-03-07 Thread Randy Layman


You need to make sure that the directory names are the correct case.
The only way I know to do this is using a command prompt (Windows Explorer
assumes that the first character is upper case and all others are lower).
The only way to fix it is to remove the directory (delete, not rename) and
then create a new directory with the correct capitalization.  You can use
anything you want to create the directories (including mkdir and Explorer),
but they must be the correct capitalization.

Randy


> -Original Message-
> From: Romain Slootmaekers [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: Moving to windows from linux ? bug ?
> 
> 
> Yo,
> 
> I'm moving from linux to windows  (yeah, yeah I know  :( )
> 
> On the linux platform, our web application runs PERFECTLY
> but on windows we have problems when the jsp pages are compiled.
> 
> appearantly, tomcat doesn't like the following situation.
>  file : /PROBLEM/abc.jsp
>  <%@ page language="java" import="xxx.*" %>
>  <% SomeClass x=new SomeClass();
> // class really exists in package xxx
> // and was compiled with the same compiler.
>   %>
> 
>  it gives following error:
> 
> org.apache.jasper.JasperException: Unable to compile 
> Found 2 semantic errors compiling
> ".../XXX/abc_1.java":
> 
>   SomeClass  x=new SomeClass();
>   <--->
> *** Error: The type "SomeClass" was found in package
> "XXX". However, that type is associated with another named package,
> "xxx".
> 
> I guess the compiler gets confused with the cases on windows, because 
> he has both an XXX and xxx package in the classpath.
> 
> Is this a bug ? or is this 'known/specified behaviour' and what do I
> do about it ?
> 
> TIA,
> 
> Sloot.
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?

2002-03-07 Thread Randy Layman


You are correct - once a servlet is loaded into Tomcat it is never
unloaded (it could be according to the spec, but Tomcat doesn't implement
this).  Remember - there is only one instance of the JSP/Servlet for all the
requests, so this isn't the cause of leaking memory, although class
variables that continue to grow in size (string buffers, lists, arrays,
maps, etc) would cause this behavior.

Randy

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 9:43 AM
> To: Tomcat Users List
> Subject: RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> Thanks Randy, I'll look into it more.  Restarting Tomcat does 
> seem to help,
> but it slowly starts to grow again.  I'm thinking that rules 
> out JavaC.  I
> read that servlets and jsp's get loaded into memory when they 
> are accessed
> and never get released.  Is there any truth to this?  I have 
> seen a lot of
> questons in the list about this same topic, so either way, I'll post
> whatever information I find.
> 
> Brandon
> 
> -Original Message-
> From: Randy Layman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 5:43 AM
> To: 'Tomcat Users List'
> Subject: RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> 
>   80MB is definitely possible (our application generally 
> runs at about
> 130MB with peaks into the 300MB range for users, some nightly 
> processing can
> push that to more than 500MB), it really depends on your application.
> 
>   Places where you could be loosing memory:
>   1.  JavaC.  Apparently JavaC has a memory leak and that 
> memory can
> only be reclaimed by stopping and restarting Tomcat.  To 
> avoid this memory
> leak you have two options:  A - use JSPC and precompile all 
> your JSPs into
> servlets and B - When you do a new release launch Tomcat, 
> have someone hit
> every page in the application, and restart Tomcat.
>   2.  You might want to look at your session timeout 
> along with how
> much data you are putting into the session, this could cause 
> you to hold
> memory longer than is really necessary
>   3.  Static variables on classes that somehow grow (like lists or
> maps that you keep putting data in and never remove).
> 
>   You can try running something like OptimizeIt! to 
> determine where
> you are using the memory, but you might want to try and 
> narrow down where
> the leak is occurring (some small set of actions or screens).
> 
>   Randy
> 
> > -Original Message-
> > From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 8:08 PM
> > To: Tomcat Users List
> > Subject: RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> >
> >
> > I am using Linux RedHat 7.1, Sun JDK 1.3.1_01.  Actually, it
> > looks like it
> > has gone down a bit.  The memory was slowly growing all day
> > today, up to
> > about 80MB for java.  It has gone back down a bit, so
> > hopefully that means
> > that something (gc) is working.
> >
> > Do those numbers sound right for an application that is
> > mostly jsp's, and
> > usually has around 15-20 concurrent database connections?
> > Sessions are
> > stored for each user as well.
> >
> > Maybe that's what I should be expecting???
> >
> >
> > -Original Message-
> > From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 6:58 PM
> > To: Tomcat Users List
> > Subject: Re: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> >
> >
> > Can you give a bit more information, Brandon?  Which Linux?
> > What JVM?  Etc.?
> >
> > At 02:32 PM 3/6/02 -0600, you wrote:
> > >This is probably a problem with our application, but does
> > anyone know of
> > any
> > >possible misconfiguration or anything that will cause a very
> > slow increase
> > >in the amount of memory that Tomcat is using on Linux?  If
> > nobody has had a
> > >similar experience, what about possible solutions to
> > tracking down the
> > cause
> > >of this slow memory usage increase?  We have hundreds of
> > classes to search.
> > >Is there a tool or anything to help us out?
> > >
> > >Any help is GREATLY appreciated!!!
> > >
> > >Brandon
> > >
> > >
> > >--
> > >To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > >For additional commands: 
> <mailto:[EMAIL PROTECTED]&

RE: Upgrade to JDK1.4 --> unable to compile JSPs

2002-03-07 Thread Randy Layman


The ONLY way you get this message is to use a JVM 1.4 JAR file with
a previous version.  If you have only one JVM installed it is NOT 1.4.

Randy

> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 9:36 AM
> To: 'Tomcat Users List'
> Subject: RE: Upgrade to JDK1.4 --> unable to compile JSPs
> 
> 
> Randy and Ralph,
> 
> Thanks for you quick replies.
> 
> I've quadruple checked - I deleted all JDKs and JVMs on my machine
> except for the one I just installed.  The problem remains, unmodified.
> 
> Is it possible that some of my jar files need updating?
> 
> Thanks,
> Scott
> 
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, March 07, 2002 8:42 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Upgrade to JDK1.4 --> unable to compile JSPs
> > 
> > 
> > 
> > Double (and triple check) that you are really running 
> > Tomcat with JDK 1.4.  This error message is only generated by 
> > older JVMs when presented with newer JAR files (i.e. a 1.3 
> > JVM trying to read a 1.4 JAR file).
> > 
> > Randy
> > 
> > > -Original Message-
> > > From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 07, 2002 9:12 AM
> > > To: 'Tomcat Users List'
> > > Subject: Upgrade to JDK1.4 --> unable to compile JSPs
> > > 
> > > 
> > > Hi all,
> > > 
> > > I've browsed the archives and found people asking this 
> > question, but 
> > > couldn't find any answers to it, so here goes...
> > > 
> > > Platform: Win2K + Cygwin
> > > Tomcat: 4.0.1
> > > 
> > > I upgraded to JDK1.4 in order to take advantage of the 
> > java.util.regex 
> > > package (yay, no reason to use perl again!).  Everything 
> was going 
> > > swimmingly until it was time to recompile some JSPs, and I now 
> > > consistently get errors of the form:
> > > 
> > > org.apache.jasper.JasperException: Unable to compile class
> > > for JSPerror:
> > > Invalid class file format in
> > > C:\cygwin\usr\local\java\jdk1.4\jre\lib\rt.jar(java/lang/Objec
> > > t.class).
> > > The major.minor version '48.0' is too recent for this tool to
> > > understand.
> > > 
> > > Any assistance will be greatly appreciated...
> > > 
> > > Thanks,
> > > Scott
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > > For 
> > additional commands: 
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: 
> > <mailto:[EMAIL PROTECTED]>
> > > 
> > 
> > --
> > To 
> > unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Upgrade to JDK1.4 --> unable to compile JSPs

2002-03-07 Thread Randy Layman


I believe that your problem might stem from a problem in the
catalina.bat file.

First, from a command prompt, type
java -fullversion
and I believe that you will see a response indicating JVM 1.3 or before (not
1.4).  Edit your path statement so that the 1.4 JDK is before the other JVMs
and try the above command again.  Once you get the 1.4 version of java to be
the default version Tomcat should work correctly.

The problem seems to be that catalina.bat doesn't use the absolute
path to the JVM.

Randy  

> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 9:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Upgrade to JDK1.4 --> unable to compile JSPs
> 
> 
> Okay, I look again and find information, but it doesn't seem to be
> enough to fix the problem.
> 
> Just to follow up:
> 
>   I did set my JAVA_HOME to the new location.  
>   I did delete all of my tomcat work directories.
> 
> Those were the only items I saw recommended as solutions in the
> archives, but they didn't do the trick.
> 
> Thanks in advance,
> Scott
> 
> > -Original Message-
> > From: Scott Shorter [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, March 07, 2002 9:12 AM
> > To: 'Tomcat Users List'
> > Subject: Upgrade to JDK1.4 --> unable to compile JSPs
> > 
> > 
> > Hi all,
> > 
> > I've browsed the archives and found people asking this 
> > question, but couldn't find any answers to it, so here goes...
> > 
> > Platform: Win2K + Cygwin
> > Tomcat: 4.0.1
> > 
> > I upgraded to JDK1.4 in order to take advantage of the 
> > java.util.regex package (yay, no reason to use perl again!).  
> > Everything was going swimmingly until it was time to 
> > recompile some JSPs, and I now consistently get errors of the form:
> > 
> > org.apache.jasper.JasperException: Unable to compile class 
> > for JSPerror: Invalid class file format in 
> > C:\cygwin\usr\local\java\jdk1.4\jre\lib\rt.jar(java/lang/Objec
> > t.class).
> > The major.minor version '48.0' is too recent for this tool to 
> > understand.
> > 
> > Any assistance will be greatly appreciated...
> > 
> > Thanks,
> > Scott
> > 
> > 
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> > 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Upgrade to JDK1.4 --> unable to compile JSPs

2002-03-07 Thread Randy Layman


Double (and triple check) that you are really running Tomcat with
JDK 1.4.  This error message is only generated by older JVMs when presented
with newer JAR files (i.e. a 1.3 JVM trying to read a 1.4 JAR file).

Randy

> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 9:12 AM
> To: 'Tomcat Users List'
> Subject: Upgrade to JDK1.4 --> unable to compile JSPs
> 
> 
> Hi all,
> 
> I've browsed the archives and found people asking this question, but
> couldn't find any answers to it, so here goes...
> 
> Platform: Win2K + Cygwin
> Tomcat: 4.0.1
> 
> I upgraded to JDK1.4 in order to take advantage of the java.util.regex
> package (yay, no reason to use perl again!).  Everything was going
> swimmingly until it was time to recompile some JSPs, and I now
> consistently get errors of the form:
> 
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPerror:
> Invalid class file format in
> C:\cygwin\usr\local\java\jdk1.4\jre\lib\rt.jar(java/lang/Objec
> t.class).
> The major.minor version '48.0' is too recent for this tool to
> understand.
> 
> Any assistance will be greatly appreciated...
> 
> Thanks,
> Scott
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: why do i get this error?

2002-03-07 Thread Randy Layman


For all classes without a package you need to import them
explicitly. (i.e. <%@ page import="Course" %>

Randy

> -Original Message-
> From: Peter Choe [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 8:08 AM
> To: [EMAIL PROTECTED]
> Subject: why do i get this error?
> 
> 
> what does this error mean?
> 
> i install tomcat 4.0.3 from binaries on to my solaris 8 for intel and
> tried to migrate some jsps i had on tomcat 3 to the new one.  
> i have my
> jar files in $TOMCAT_HOME/lib.  i thought that tomcat was suppose to
> read the jar files from that directory?  i am wrong to assume 
> this with
> tomcat 4?
> 
> and why is it looking for my PoolManager class in org.apache.jsp
> package?  i didn't set that as the package.  is it just automatically
> assuming it?
> 
> 
> 
> 
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPNote: 
> sun.tools.javac.Main has been deprecated.
> 
> 
> An error occurred at line: 3 in the jsp file: /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:66: Class 
> org.apache.jsp.Course not found.
>  Course course = null;
>  ^
> 
> 
> An error occurred at line: 3 in the jsp file: /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:69: Class 
> org.apache.jsp.Course not found.
>  course= (Course)
>   ^
> 
> 
> An error occurred at line: 3 in the jsp file: /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:74: Class 
> org.apache.jsp.Course not found.
>  course = (Course) 
> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
>  "Course");
>^
> 
> 
> An error occurred between lines: 75 and 81 in the jsp file: 
> /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:116: Class 
> org.apache.jsp.PoolManager not found.
>  PoolManager poolMgr = 
> PoolManager.getInstance();
>  ^
> 
> 
> An error occurred between lines: 75 and 81 in the jsp file: 
> /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:116: Class 
> org.apache.jsp.PoolManager not found.
>  PoolManager poolMgr = 
> PoolManager.getInstance();
>^
> 
> 
> An error occurred between lines: 75 and 81 in the jsp file: 
> /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:116
> : Undefined 
> variable or class name: PoolManager
>  PoolManager poolMgr = 
> PoolManager.getInstance();
>^
> 
> 
> An error occurred between lines: 97 and 100 in the jsp file: 
> /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:138: Class 
> org.apache.jsp.CourseData not found.
>  CourseData dc = 
> (CourseData)data.elementAt(i);
>  ^
> 
> 
> An error occurred between lines: 97 and 100 in the jsp file: 
> /courses.jsp
> 
> Generated servlet error:
> /export/home/tomcat/work/localhost/roster/courses$jsp.java:138: Class 
> org.apache.jsp.CourseData not found.
>  CourseData dc = 
> (CourseData)data.elementAt(i);
>   ^
> 8 errors, 1 warning
> 
>  at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
>  at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
>  at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspServlet.java:177)
>  at 
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.java:189)
>  at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:382)
>  at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>  at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>  at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve

RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?

2002-03-07 Thread Randy Layman


80MB is definitely possible (our application generally runs at about
130MB with peaks into the 300MB range for users, some nightly processing can
push that to more than 500MB), it really depends on your application.

Places where you could be loosing memory:
1.  JavaC.  Apparently JavaC has a memory leak and that memory can
only be reclaimed by stopping and restarting Tomcat.  To avoid this memory
leak you have two options:  A - use JSPC and precompile all your JSPs into
servlets and B - When you do a new release launch Tomcat, have someone hit
every page in the application, and restart Tomcat.
2.  You might want to look at your session timeout along with how
much data you are putting into the session, this could cause you to hold
memory longer than is really necessary
3.  Static variables on classes that somehow grow (like lists or
maps that you keep putting data in and never remove).

You can try running something like OptimizeIt! to determine where
you are using the memory, but you might want to try and narrow down where
the leak is occurring (some small set of actions or screens).

Randy

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 8:08 PM
> To: Tomcat Users List
> Subject: RE: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> I am using Linux RedHat 7.1, Sun JDK 1.3.1_01.  Actually, it 
> looks like it
> has gone down a bit.  The memory was slowly growing all day 
> today, up to
> about 80MB for java.  It has gone back down a bit, so 
> hopefully that means
> that something (gc) is working.
> 
> Do those numbers sound right for an application that is 
> mostly jsp's, and
> usually has around 15-20 concurrent database connections?  
> Sessions are
> stored for each user as well.
> 
> Maybe that's what I should be expecting???
> 
> 
> -Original Message-
> From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 6:58 PM
> To: Tomcat Users List
> Subject: Re: Does anyone know of a Tomcat 3.2.4 Memory Leak Problem?
> 
> 
> Can you give a bit more information, Brandon?  Which Linux? 
> What JVM?  Etc.?
> 
> At 02:32 PM 3/6/02 -0600, you wrote:
> >This is probably a problem with our application, but does 
> anyone know of
> any
> >possible misconfiguration or anything that will cause a very 
> slow increase
> >in the amount of memory that Tomcat is using on Linux?  If 
> nobody has had a
> >similar experience, what about possible solutions to 
> tracking down the
> cause
> >of this slow memory usage increase?  We have hundreds of 
> classes to search.
> >Is there a tool or anything to help us out?
> >
> >Any help is GREATLY appreciated!!!
> >
> >Brandon
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problems with SendMailServlet

2002-03-06 Thread Randy Layman


You will need to compile the SendMailServlet yourself for Tomcat
versions 4 through 4.0.3.  There was apparently a problem with the build
script that has been resolved with Tomcat 4.0.4 B1.

Randy

> -Original Message-
> From: Gustavo Souza [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 06, 2002 8:49 AM
> To: Tomcat Users List
> Subject: Problems with SendMailServlet
> 
> 
> hello, i installed Jacarta Tomcat v4.0.3 binaries on a linux 
> slackware v8.0 
> box with J2SDK1.3.1 from blackdown (i tried with J2SDK1.4.0 
> from sun too )
> 
> i run it with default configurations and open it on my browser.
> 
> All examples worked fine with one exeption: the send mail example.
> 
> when i try to send an email with jsp example, i got this error:
> 
> Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
> 
> type Exception report
> message Internal Server Error
> description The server encountered an internal error (Internal Server 
> Error) that prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: Wrapper cannot find servlet class 
> SendMailServlet or a class it depends on
>  at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:871)
>  at 
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
> per.java:653)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:214)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:190)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBase.java:475)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
>  at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>  at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>  at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1012)
>  at 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1107)
>  at java.lang.Thread.run(Thread.java:484)
> root cause
> java.lang.ClassNotFoundException: SendMailServlet
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader.java:1394)
>  at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader.java:1243)
>  at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:865)
>  at 
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
> per.java:653)
>  at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:214)
>  at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>  at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java

RE: Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet SendMailServlet is currently unavailable

2002-03-05 Thread Randy Layman


There is/was apparently a build problem with Tomcat before 4.04,
which causes SendMailServlet to not be build.  You can build it yourself
using javac, or download the Tomcat 4.04 beta.

Randy

> -Original Message-
> From: Hostmaster of the day [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 12:15 PM
> To: [EMAIL PROTECTED]
> Subject: Apache Tomcat/4.0.3 - HTTP Status 503 - Servlet 
> SendMailServlet
> is currently unavailable
> 
> 
> Apache Tomcat/4.0.3 - HTTP Status 503 - 
> Servlet SendMailServlet is currently unavailable
> 
> Tomcat 4.0.3 is very nice. The best you can
> get 6,000 miles around. Thank you very much.
> 
> But where is the SendMailServlet ?
> 
> Forgotten ?
> 
> Cheers,
> Mark Wollner
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Need guidance with servlet deployment.

2002-03-05 Thread Randy Layman



> -Original Message-
> From: Carver, Christopher [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 10:56 AM
> To: [EMAIL PROTECTED]
> Subject: Need guidance with servlet deployment.
> 
> 
>   
> gizmoservlet
> gizmoservlet

I'm pretty sure this should be 
 /gizmoservlet

(Note the preceding /).

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0 NT Service and OutOfMemory

2002-03-05 Thread Randy Layman


In the registry, the Tomcat service has a JVM Option Number X string
value key (and a corresponding JVM Option Count).  You will want to
increment the count by 2 and create separate entries for -Xms and -Xmx.

Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 10:44 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4.0 NT Service and OutOfMemory
> 
> 
> I'm using Tomcat 4.0.3 on Windows 2000.  I'm also running 
> Apache SOAP and
> must transfer a large number of files between client and 
> server.  I was
> receiving a socket write error each time I tried to send more 
> than ~445
> files (about 130 Kb each).  Based on some posts I found in 
> the archives, I
> set CATALINA_OPTS=-Xms128m -Xmx512m to increase the memory 
> allocation to
> tomcat.  My client works perfectly when tomcat is launched from the
> startup.bat file but the CATALINA_OPTS settings seem to have 
> no effect on
> the NT service or the startup file stored in the Windows 
> programs menu.
> I've looked at the startup file in the programs menu and 
> noticed that it's
> launching the .jar file explicitly without using the 
> startup.bat file, so I
> guess that explains why my CATALINA_OPTS settings are ignored 
> in that case.
> Launching Tomcat as a Windows service would be extremely 
> convenient (ability
> to have it start after a reboot, and not having to worry 
> about locking out
> tomcat by clicking in the DOS console window by accident and 
> putting it in
> "select" mode).  My question is:  Is there some way to make 
> my CATALINA_OPTS
> settings available to the NT service?
> 
> Thanks for any advice,
> 
> Jason Donmoyer
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: How to use swing classes without X-server

2002-03-05 Thread Randy Layman


1.  Use JDK1.4 with its new headless command line option
2.  Use one of the psuedo-X servers (search the list archives, this
has been discussed numerous times and names of options and installation
directions should be listed).

Randy


> -Original Message-
> From: Serge A. Redchuk [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: How to use swing classes without X-server
> 
> 
> Hello All !
> 
> I want to use some of Swing classes like
> 
> import javax.swing.tree.TreeModel;
> import javax.swing.tree.TreePath;
> 
> by tomcat in environment where no X-server running.
> 
> And I see in catalina.out:
> 
> java.lang.InternalError: Can't connect to X11 window server 
> using ':0.0' as the
> value of the DISPLAY variable.
> at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
> at 
> sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:5
> 9)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at 
> java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi
> ronment.java:58)
> at sun.awt.motif.MToolkit.(MToolkit.java:57)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at java.awt.Toolkit$2.run(Toolkit.java:512)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
> at java.awt.Toolkit.getEventQueue(Toolkit.java:1150)
> at java.awt.EventQueue.invokeLater(EventQueue.java:511)
> at 
> javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1091)
> at javax.swing.Timer.post(Timer.java:342)
> at 
> javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:195)
> at javax.swing.TimerQueue.run(TimerQueue.java:231)
> at java.lang.Thread.run(Thread.java:484)
> 
> Huh !! I do not need X-server !!! I just want to use a pair of Swing
> classes.
> 
> Anybody know what to do ???
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Using errorPage

2002-03-05 Thread Randy Layman


I only ask because you don't mention it - are you throwing the
error?  JSPs only route to the error page if the exception is thrown and not
caught during the execution of your page.  If you don't throw it, or you
throw it and catch it, JSP will never see the error.

Randy


> -Original Message-
> From: Peter Lewandowski [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 9:34 AM
> To: 'Tomcat Users List'
> Subject: Using errorPage
> 
> 
> Hi All...
> 
> I'm trying to redirect my jsp pages to a common error page, 
> when ever an
> exception is raised, but with no success :(
> 
> In my jsp page, I define:
> <%@ page errorPage="error.jsp" %>
> 
> and in my error page, I've defined (at the very top of the page):
> <%@ page isErrorPage="true" %>
> 
> In my jsp page I create an exception, but I am never 
> redirected to my error
> page. Have I forgotten anything? Do I have to set something up in the
> configuration files? 
> 
> Thanks
> 
> Best Regards,
> Peter Lewandowski
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.02 stalling?

2002-03-05 Thread Randy Layman


The developers hang out on [EMAIL PROTECTED]


> -Original Message-
> From: GCS [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 8:08 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 4.02 stalling?
> 
> 
> On Tue, Mar 05, 2002 at 03:45:39PM +0800, Keith Ng 
> <[EMAIL PROTECTED]> wrote:
> > Using 1.3.1, 4.0.2 and It happens to me occassionally when 
> i try to access
> > from Internet
>  Ok, at least four users have this problem. Is there any 
> developer looking
> into it? I would appreciate if it is solved soon. Should I 
> file a bug entry?
> 
> Cheers,
> GCS
> -- 
> BorsodChem Joint-Stock CompanyLinux Support Center
> University of Miskolc
> Software engineer Programmer  System 
> administrator
> +36-48-511211/27-90   +36-20-4441745
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: How to log shutting down of tomcat

2002-03-05 Thread Randy Layman


Are you running Tomcat as a service and it happens to shutdown every
time you log off the machine?  If so then you are having a problem with one
of Sun's "feature" enhancements to the JVM.  You need to pass the JVM -Xrs
when it starts up so that it doesn't pay attention to the logoff signal.  In
Tomcat 4 you do this by editing the registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache
Tomcat\Parameters is the group of setting you will be working with.

First check your JVM Option Number X parameters to make sure you aren't
already passing in a -Xrs.

If not, increase the JVM Option Count's value by one (call this value X for
future reference).  Create a new String Value entry names JVM Option Number
X-1 and the value is -Xrs.  Restart the service, log off, and Tomcat should
still be running.

Randy

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 2:38 AM
> To: Tomcat Users List
> Subject: How to log shutting down of tomcat
> 
> 
> is there anyway to log the shutting down of tomcat? My tomcat 
> server tend to
> auto shutdown for unknown reasons. I have been trying to 
> trace to no avail.
> Currently using 1.3.1 and tomcat 4.0.2. it shuts down like 
> after 4-5 hours
> and i wasnt able to track why did it shutdown. I have changed 
> my ODBC-JDBC
> bridge(type 1) to type 4 drivers. It could also be my tomcat 
> crashing... i
> do not know.
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: runaway process in java while using tomcat

2002-03-05 Thread Randy Layman



> -Original Message-
> From: Halfmann, Klaus [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 2:45 AM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: RE: runaway process in java while using tomcat
> 
> 
> 
> [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote :
> 
> > I am hoping someone can help me with this problem I am having.
> > I am using tomcat 4.0.1 to run a web site with jsps. This 
> > site uses alot of database connecting with Informix.
> > For some reason, usually within 2 hours of starting up 
> > tomcat, a process will start to take up 100% of the CPU.
> > The time it takes for this to happen varies.  
> 
> With Linux every JavaThread looks like a process of its own
> (other as with e.g.  Solaris). So your runaway task should
> normally be a Java Thread. To Monitor your application you 
> could try to periodically dump the names and Status of all
> Threads.  Threads created by your code should have reasonable 
> names.
> 
> Another Problem might be the Informix driver. Eventually due
> to some bad SQL you might receive an "infinite" amount of Data
> or the Driver may produce an infinite loop. Try logging
> all sql statements and have a look at them.

Another thought might be are you encountering some form of deadlock on the
database?  (Using transactions and thread 1 holds a lock on an object thread
2 needs and thread 2 holds a lock on an object thread 1 needs.)  The
Informix management software should be able to give you a list of all
connections and what they are doing.  If it doesn't seem obvious what is
happening, try randomly killing them off to see if the problem goes away.
If it does you will know the problem is somewhere in your database logic.
Depending upon how your error reporting works, you might even know where the
problem is (server dropping a connection generally a SQLException).
> 
> How is the memory consumption of you application when it "runs
> away" ? It may be that the Server is trashing and wasting its
> time with GCs. You might wish to reduce the number of Threads
> in your server.xml in this case.

This is also a possibility.  You can use top to capture current memory
usage.  Also, you can use top to determine the number of thread in the jvm
that is causing a problem.  If its one then you have some kind of loop, two
or more implies a threading problem where things are doing a busy wait for
something to happen.

> 
> Try writing HTTPUnit Testcases to stress your pages.
> ( http://sourceforge.net/project/showfiles.php?group_id=6550)
> You might want to create something like a "crawler" that
> follows every link and "presses" every button.
> 
> As a last resort you could use a debugger (jdb should do) and
> try to find out about your Application this way.
> 

I think what most everyone is going to say is - we haven't seen this problem
caused by Tomcat.  We might have caused something like this ourselves, but
not Tomcat.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Unable to run examples

2002-03-04 Thread Randy Layman



> -Original Message-
> From: KC Berg [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 10:42 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to run examples
> 
> 
> Do you have your JAVA_HOME sys var pointed at your JDK or 
> your JRE? It needs
> to point at your JDK so that the jsp can get compiled when 
> you request the
> page. From the error it looks like your missing the JSP 
> compiler the above
> suggestion should work.

How did you come to that conclusion?
> 
> 
> -Original Message-
> From: RFelipe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 8:41 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to run examples
> 
> 
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:93
> 5)
> at
> 
> root cause
> 
> java.lang.NoSuchMethodError
> at
> org.apache.jasper.compiler.TldLocationsCache.processJars(TldLo
> cationsCache.j
> ava:202)
> at 

This looks to me like either a botched upgrade (you didn't replace
all the JAR files) or a problem with the upgrade (the person who built the
binaries didn't get it quite right).  If you could try upgrading again
(deleting all Tomcat JARs, installing the new ones, and then testing) and
letting this forum know someone will take care of the builds if it is a
problem.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TOMCAT 4.0.2 server crash

2002-03-04 Thread Randy Layman


Sun has a page on their website listing all the registered driver
vendor and they have JDBC mailing lists and forums where these questions
would be appropriate.

Randy

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 10:33 AM
> To: Tomcat Users List
> Subject: RE: TOMCAT 4.0.2 server crash
> 
> 
> Ok this is a little off topic but i reli need help on this..
> 
> the odbc-jdbc bridge has crashed my tomcat more den 1 time 
> and i need to ask
> if anyone here uses any type 3/4 drivers and finds it very 
> stable?(like not
> crashing tomcat) and has very good perfromance? And btw... i 
> noe for applets
> u definately have to use type 3 drivers, but for web 
> applications(tomcat and
> jsp/servlets) which one is recommended ? 3 or 4? Im currently using
> ThinAccess 2.3 right now, and its type 3 driver , i used it 
> for applets, but
> aint very sure if its good for jsp/servlets connections
> 
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 11:23 PM
> To: Tomcat Users List
> Subject: RE: TOMCAT 4.0.2 server crash
> 
> 
> Microsoft licensed the Merant msSQL JDBC driver, it´s downloadable for
> free from the Microsoft website.
> 
> Last time I checked it was quite good.
> 
> hope it helps
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: Keith Ng [mailto:[EMAIL PROTECTED]]
> > Sent: 1. mars 2002 15:12
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: TOMCAT 4.0.2 server crash
> >
> >
> >
> > Oooh I didnt noe tat matters. So wat about other drivers?
> > which is thread
> > safe and which is not?
> > I also realise i do have many problems regarding database access.
> > Im using MSSQL 2000 btw. whcih driver do u recommend?
> >
> >
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 01, 2002 7:43 PM
> > To: 'Tomcat Users List'
> > Subject: RE: TOMCAT 4.0.2 server crash
> >
> >
> >
> > Stop using the JDBC-ODBC bridge.  Its not thread safe
> > and will crash
> > Tomcat (or any other JVM for that matter) that attempts
> > concurrent database
> > access.
> >
> > Randy
> >
> > > -Original Message-
> > > From: Keith Ng [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 4:19 AM
> > > To: Tomcat Users List
> > > Subject: TOMCAT 4.0.2 server crash
> > >
> > >
> > > Hi
> > >
> > > I set up my tomcat server from home and then went to school
> > > to try access.
> > > for a while it was ok, but after repeatly doing many database
> > > queries and
> > > processing, suddenly i wasnt able to access the server. It
> > returned a
> > > gateway timeout error. I den went home just now and realise
> > > the Tomcat does
> > > window is gone. I went to the log and track the following.
> > >
> > >
> > > ACCESS LOG
> > > ===
> > > 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] "GET
> > > /ps/jscripts/validateRegister.js HTTP/1.1" 304 -
> > > 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] "GET
> > > /ps/jscripts/validateAdvSearch.js HTTP/1.1" 304 -
> > > //153.20.95.66 is my school's pc ip. its the last GET request
> > > 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] "GET
> > > /ps/css/PSCSS.css HTTP/1.1"
> > > 304 -
> > > ==
> > >
> > > LOG
> > > 2002-03-01 13:42:40 jsp: init
> > > 2002-03-01 13:42:40 jsp: init
> > > 2002-03-01 13:43:27 jsp: init
> > > 2002-03-01 13:43:29 jsp: init
> > > 2002-03-01 13:43:45 jsp: init
> > >
> > > after this supposedly there is no more request from school pc
> > > i went home and found tomcat server dos window gone
> > >
> > > as u can see, there is no clear wat has happened at all. Is
> > > there any other
> > > logs i have missed regarding the auto shutdown of tomcat? Can
> > > anyone tell me
> > > wat could have happened to cause tomcat to auto shutdown? 
> Thanks...
> > >
> > >
> > >
> > > _
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > --
> > > To unsubscribe:
> <mailto:[EMAIL PR

RE: jspInit and load-on-startup

2002-03-01 Thread Randy Layman


What does your web.xml file look like for this tag?  (Please include
the entire  declaration.)

Randy

> -Original Message-
> From: Mark Lines-Davies [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: FW: jspInit and load-on-startup
> 
> 
> Hello
> 
> I would like to have a JSP page loaded by Tomcat 3.3 when it 
> starts up.
> 
> I have added  to the web.xml file and my JSP 
> page looks
> like this:
> 
> <%@ page import="java.io.*" contentType="text/xml" %>
> <%!
> public void
> Init(){
> System.out.println("Hello World");
> }
> %>
> <%
> System.out.println("Normal call");
> out.println("Hi there");
> %>
> 
> I assumed that when Tomcat starts, I would see the "Hello 
> World" message
> displayed in my Tomcat console window. Instead, I see a message saying
> "LoadOnStartupInterceptor: Initializing JSP with JspWrapper".
> 
> If I then make a browser call to this JSP page I get
> 
> Hello World
> Normal call
> 
> and subsequent calls just give "Normal call".
> 
> I guess I have misunderstood what  is for?
> 
> regards
> 
> Mark Lines-Davies
> 
> 
> 
> 
> **
> ***
> The information contained in this message or any of its
> attachments may be privileged and confidential and intended 
> for the exclusive use of the addressee. If you are not the
> addressee any disclosure, reproduction, distribution or other
> dissemination or use of this communication is strictly prohibited
> **
> ***
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problem with Tomcat or Servlet?

2002-03-01 Thread Randy Layman


Since Tomcat knows nothing about MySQL (or your database in
particular), I would be willing to be that you have a problem in your code.
You probably want to look at the line where the NullPointer is being thrown.

A random guess - you only create your Connection or Statement object
when you create a new record and not for select.

Randy

> -Original Message-
> From: Stephan Mülhaus [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:28 AM
> To: Tomcat Users List
> Subject: Problem with Tomcat or Servlet?
> 
> 
> Hi everybody,
> 
> i have a strange Problem, i have developed a servlet in which 
> i can create 
> new records in a mysql database and where i can list these 
> records in a 
> htmlpage.
> Now the strange behaviour:
> If i try to get the list of records Tomcat throws an 
> NullPointerException 
> although the source is okay but if i create a new record and 
> let my servlet 
> list all my records it shows me all my records!
> I couldn't find any strange entries in my logfiles, 
> everything is normal...
> Now, perhaps you can help me, is this a problem of my servlet 
> or a problem 
> of my tomcat?
> 
> Thanx in Advance
> Stephan
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Randy Layman


I guess what I said has led to some confusion.  I meant that each
 tag creates an instance.

Here are the possible reasons for getting multiple instances:
1.  Multiple  tags in web.xml
2.  One or more  tag(s) in web.xml and using /servlets/ to
access your servlet
3.  Having the same context loaded multiple times.  This generally
happens because the AutoContextLoader (or whatever its called) is still
enabled and an explicit Context is also defined, making two contexts (and
two instances of the servlets).

Randy


> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 9:05 AM
> To: 'Tomcat Users List'
> Subject: RE: Getting multiple instances of my servlet, although it
> doesn't implement SingleThreadModel
> 
> 
> Randy,
> 
> The servlet is defined once in web.xml - one  tag, 
> that is.  In
> addition it is mapped to the root URL with a statement of the form:
> 
>   
> MessageDispatcherServlet
> /
>   
> 
> Are you saying the servlet mapping is responsible for the multiple
> instances?
> 
> I don't think that's the case, because I can comment out the 
> mapping and
> still get the same results.
> 
> Thanks, though.  I'll keep working at it.
> -
> Scott
> 
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Friday, March 01, 2002 6:38 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Getting multiple instances of my servlet, 
> > although it doesn't implement SingleThreadModel
> > 
> > 
> > 
> > Basically, Tomcat will create a separate instance for 
> > each unique URL that the servlet responses to.
> > 
> > (Technically, every time you define the servlet in the 
> > web.xml there is a separate instance, and another instance is 
> > created when you use the ServletInvoker to invoke the servlet 
> > by /servlet/className.)
> > 
> > Randy
> > 
> > 
> > > -Original Message-
> > > From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, February 28, 2002 4:34 PM
> > > To: 'Tomcat Users List'
> > > Subject: Getting multiple instances of my servlet, although 
> > it doesn't 
> > > implement SingleThreadModel
> > > 
> > > 
> > > All,
> > > 
> > > I have a servlet that loads on startup, per the 
> >  tag 
> > > in web.xml.  It does *not* implement SingleThreadModel.
> > > 
> > > Unfortunately, two instances start up every time Tomcat 
> > starts - I can 
> > > tell because I have a System.out.println call in init().  I 
> > need for 
> > > there to be only one instance.
> > > 
> > > What other settings could be causing multiple instances to happen?
> > > 
> > > Thanks in advance,
> > > Scott
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > > For 
> > additional commands: 
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: 
> > <mailto:[EMAIL PROTECTED]>
> > > 
> > 
> > --
> > To 
> > unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: [Dim Question] Redirecting GET http://blah.com/ resource -> GET /resource - Tomcat 4

2002-03-01 Thread Randy Layman


The HTTP Protocol says requests must be formatted as:
GET /resource

and you are sending:
GET http://server/

and you want to know if these should be reformatted before they get to
Tomcat?  The should be reformatted before they are sent!  I would guess that
your proxy can't deal with HTTP requests on non-standard ports.  Probably
the only way to solve this without recoding the proxy would be to run Tomcat
on port 80 (the standard).

However, the question remains as to why you are even trying to use a
proxy for this - Tomcat 4's filters give you a good opportunity to read and
log all parts of the request.

Randy


> -Original Message-
> From: CAM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 7:38 AM
> To: Tomcat Users List
> Subject: Re: [Dim Question] Redirecting GET http://blah.com/ 
> resource ->
> GET /resource - Tomcat 4
> 
> 
> I hate to repost but I can't get anywhere with this - the 
> Proxy-Support Howto 
> and the high level entity docs don't seem to be relevant (on 
> an associated 
> point, does anyone know of a searchable set of the tomcat docs?).
> 
> Am I trying to rewrite this URL in the wrong place - I mean 
> should these 
> requests be getting reformatted before they even arrive at 
> Tomcat? I'm not sure 
> if it will support this form of request.
> 
> I am currently attempting to decode RFC 2068 to see if these 
> are legal requests 
> but, as I say, other servers seem happy with them...
> 
> Any clues *very* gratefully accepted...
> 
> TIA
> cam
> 
> CAM wrote:
> 
> > Hello all,
> > 
> > I'm sure I'm missing something very basic here but I can't 
> think what. 
> > I'm using a little proxy (HttpSniffer) to debug header and 
> cookie info 
> > between my browser and a remote Tomcat 4-b6. I'm getting 
> failures to 
> > requests (404's) when I go thru the proxy and I can see in 
> my access 
> > logs that this is because the requests are arriving as:
> > 
> > 192.x.x.x - - [28/Feb/2002:17:30:49 00] "GET 
> > http://my.host.com:8080/dms/servlet/dms HTTP/1.0" 404 263
> > 
> > instead of:
> > 
> > 192.x.x.x - - [28/Feb/2002:17:24:16 00] "GET 
> /dms/servlet/dms HTTP/1.1" 
> > 200 2294
> > 
> > Rather than rewrite httpsniffer, I suspect I need some form 
> of redirect 
> > - besides, the sniffer works with other sites (e.g. 
> Google). I haven't 
> > managed to dig out anything about redirection from the docs 
> - there are 
> > a lot of facets to the information. Is redirection 
> associated with the 
> > Engine? The connector?
> > 
> > So, an RTFM is probably deserved but a clue as to where would be 
> > tremendous.
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.2 exception triying to access a Jsp ...

2002-03-01 Thread Randy Layman



> -Original Message-
> From: Julien OIX [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 4:25 AM
> To: Tomcat list
> Subject: Tomcat 4.0.2 exception triying to access a Jsp ...
> 
> 

> root cause java.lang.NoClassDefFoundError:
> sun/tools/javac/Main

.
> any ideas ... ?
> 
> 

You haven't correctly set your JAVA_HOME environment variable.  You
must set JAVA_HOME so that JAVA_HOME\bin\java.exe and
JAVA_HOME\lib\tools.jar are both valid paths.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: TOMCAT 4.0.2 server crash

2002-03-01 Thread Randy Layman


Stop using the JDBC-ODBC bridge.  Its not thread safe and will crash
Tomcat (or any other JVM for that matter) that attempts concurrent database
access.

Randy

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 4:19 AM
> To: Tomcat Users List
> Subject: TOMCAT 4.0.2 server crash
> 
> 
> Hi
> 
> I set up my tomcat server from home and then went to school 
> to try access.
> for a while it was ok, but after repeatly doing many database 
> queries and
> processing, suddenly i wasnt able to access the server. It returned a
> gateway timeout error. I den went home just now and realise 
> the Tomcat does
> window is gone. I went to the log and track the following.
> 
> 
> ACCESS LOG
> ===
> 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] "GET
> /ps/jscripts/validateRegister.js HTTP/1.1" 304 -
> 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] "GET
> /ps/jscripts/validateAdvSearch.js HTTP/1.1" 304 -
> //153.20.95.66 is my school's pc ip. its the last GET request
> 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] "GET 
> /ps/css/PSCSS.css HTTP/1.1"
> 304 -
> ==
> 
> LOG
> 2002-03-01 13:42:40 jsp: init
> 2002-03-01 13:42:40 jsp: init
> 2002-03-01 13:43:27 jsp: init
> 2002-03-01 13:43:29 jsp: init
> 2002-03-01 13:43:45 jsp: init
> 
> after this supposedly there is no more request from school pc
> i went home and found tomcat server dos window gone
> 
> as u can see, there is no clear wat has happened at all. Is 
> there any other
> logs i have missed regarding the auto shutdown of tomcat? Can 
> anyone tell me
> wat could have happened to cause tomcat to auto shutdown? Thanks...
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Getting multiple instances of my servlet, although it doesn't implement SingleThreadModel

2002-03-01 Thread Randy Layman


Basically, Tomcat will create a separate instance for each unique
URL that the servlet responses to.

(Technically, every time you define the servlet in the web.xml there
is a separate instance, and another instance is created when you use the
ServletInvoker to invoke the servlet by /servlet/className.)

Randy


> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 4:34 PM
> To: 'Tomcat Users List'
> Subject: Getting multiple instances of my servlet, although it doesn't
> implement SingleThreadModel
> 
> 
> All,
> 
> I have a servlet that loads on startup, per the  tag
> in web.xml.  It does *not* implement SingleThreadModel.
> 
> Unfortunately, two instances start up every time Tomcat starts - I can
> tell because I have a System.out.println call in init().  I need for
> there to be only one instance.
> 
> What other settings could be causing multiple instances to happen?
> 
> Thanks in advance,
> Scott
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JSP programming under Tomcat 4.0.2

2002-02-28 Thread Randy Layman


I would suggest looking at the Servlet spec, chapter 9 covers the
Web Application and sections 9.4, 9.5, and 9.7.1 seems especially relevant
to your question.

Randy

> -Original Message-
> From: Ming [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 2:08 PM
> To: Tomcat Users List
> Subject: Re: JSP programming under Tomcat 4.0.2
> 
> 
> Hi, Randy,
> 
> Thanks a lot for your reply. I think you raised a very good 
> question regarding
> portable JSP development. Everytime when  I try to move the 
> JSP codes from one
> place to another, I spent so much time on just making them work again.
> 
> I'm very slow on this. So, is that possible for you to 
> explain to me what
> should be the right way to develop a set of portable JSP codes?
> 
> This is what I'm currently doing:
> 
> 1. I make a directory under webapps, call it xml.
> 2. Under xml, I have the following directories:
> WEB-INF (with  classes, jsp, lib web.xml),
> images (contains all my images)
> search.jsp  ( the main JSP script used for searching and 
> some other jsp
> scripts)
> includes   ( contains all my includes files, including 
> .txt file, .jsp file
> which will be used in the main search.jsp and other jsp files)
> servlets
> 3. And I put all my class files and jar files under 
> WEB-INF/classes and
> WEB-INF/lib directories in the xml directory.
> 
> 4. And I have a source directory in $HOME/local/src/ and put 
> all my java source
> files there.
> 
> I'm a beginner for JSP programming (and JAVA programming) and 
> would like to
> start the right way. Can you give me some suggestions on this?
> 
> Thanks a lot and really appreciate your help.
> 
> Ming
> 
> 
> 
> 
> Randy Layman wrote:
> 
> > I believe that this is one of the ambiguities of 
> the JSP/Servlet
> > spec.  You old version will only work on Tomcat 3.3, not TC 
> 3.2 or the newer
> > 4.0, and it will only work if the JSP file is in the root 
> directory of your
> > webapp.  The reason is how the .java files are generated.
> >
> > Under Tomcat 3.3 the package is set to be the path 
> within the web
> > app.  The root directory is in the unnamed package and JSP 
> files in an
> > sample1 directory are in the sample1 package.  Since Java 
> implicitly imports
> > all classes in the same package, jcrypt, which is also in 
> the unnamed
> > package, is found under this scheme.
> >
> > Under other versions of Tomcat the package has 
> other text preprended
> > to the directory to make the package name (I believe one of 
> them uses
> > org.apache.jsp, but I'm not absolutely sure about that).  
> In this case only
> > other JSP files in the same directory are implicitly 
> imported and jcrypt
> > isn't.
> >
> > I don't believe that the spec specifies a 
> requirement on this (I'm
> > sure Craig will correct me if I'm wrong), which leads to 
> the portable JSP
> > developers rule - Import all classes needed!
> >
> > Randy
> >
> > > -Original Message-
> > > From: Ming [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, February 28, 2002 12:25 PM
> > > To: Tomcat Users List
> > > Subject: Re: JSP programming under Tomcat 4.0.2
> > >
> > >
> > > Hi, Randy,
> > >
> > > Thanks a lot for your information.
> > >
> > > Here is my situation:
> > >
> > > My older tomcat is version 3.3 and new tomcat is version 4.0.2.
> > >
> > > This is the script in the older tomcat directory(very simple one):
> > >
> > > <%@ page language="java" contentType="text/html" %>
> > > <%@ page info="Simple testing program" %>
> > > <%@ page import="java.util.*" %>
> > > <%@ page import="java.io.*" %>
> > > <%@ page import="java.net.URL" %>
> > >
> > > <%@ include file="includes/js_include.txt" %>
> > >
> > > 
> > > 
> > >
> > > <%  String inputString = "passwd";
> > > jcrypt jcrypt = new jcrypt();
> > > String cryptedPassword = jcrypt.crypt("MM", inputString);
> > >
> > > %>
> > >
> > > Simple testing program
> > > 
> > > <%= inputString %> and <%= cryptedPassword %>
> > >
> > > 
> > >
> > >
> > > But under the new version

RE: JSP programming under Tomcat 4.0.2

2002-02-28 Thread Randy Layman


I believe that this is one of the ambiguities of the JSP/Servlet
spec.  You old version will only work on Tomcat 3.3, not TC 3.2 or the newer
4.0, and it will only work if the JSP file is in the root directory of your
webapp.  The reason is how the .java files are generated.  

Under Tomcat 3.3 the package is set to be the path within the web
app.  The root directory is in the unnamed package and JSP files in an
sample1 directory are in the sample1 package.  Since Java implicitly imports
all classes in the same package, jcrypt, which is also in the unnamed
package, is found under this scheme.

Under other versions of Tomcat the package has other text preprended
to the directory to make the package name (I believe one of them uses
org.apache.jsp, but I'm not absolutely sure about that).  In this case only
other JSP files in the same directory are implicitly imported and jcrypt
isn't.

I don't believe that the spec specifies a requirement on this (I'm
sure Craig will correct me if I'm wrong), which leads to the portable JSP
developers rule - Import all classes needed!

Randy


> -Original Message-
> From: Ming [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 12:25 PM
> To: Tomcat Users List
> Subject: Re: JSP programming under Tomcat 4.0.2
> 
> 
> Hi, Randy,
> 
> Thanks a lot for your information.
> 
> Here is my situation:
> 
> My older tomcat is version 3.3 and new tomcat is version 4.0.2.
> 
> This is the script in the older tomcat directory(very simple one):
> 
> <%@ page language="java" contentType="text/html" %>
> <%@ page info="Simple testing program" %>
> <%@ page import="java.util.*" %>
> <%@ page import="java.io.*" %>
> <%@ page import="java.net.URL" %>
> 
> <%@ include file="includes/js_include.txt" %>
> 
> 
> 
> 
> <%  String inputString = "passwd";
> jcrypt jcrypt = new jcrypt();
> String cryptedPassword = jcrypt.crypt("MM", inputString);
> 
> %>
> 
> Simple testing program
> 
> <%= inputString %> and <%= cryptedPassword %>
> 
> 
> 
> 
> But under the new version of tomcat, this won't work until I 
> put a line <%@
> page import="jcrypt" %>at the beginning. I've put my 
> jcrypt.class file in
> WEB-INF/classes and under $CATALINA_HOME/classes as well and 
> restart the
> tomcat and apache. Still seems not working.
> 
> I just read the documentation from jakarta site and you are 
> right, tomcat 3.3
> and above version ignore the CLASSPATH variable. But my 
> question is, my older
> version tomcat is 3.3 and new one is 4.0.2. Why does this 
> script work under
> the older one and not the new one?
> 
> Thanks a lot for your help.
> 
> Ming
> 
> Randy Layman wrote:
> 
> > All versions of Tomcat (and all JSP containers for 
> that matter)
> > require you to add <%@ page import=""%> to your JSP files.
> >
> > Also, Tomcat versions 3.3 and beyond ignore your 
> system's classpath
> > variable - it causes to may problems with people not 
> understanding how this
> > interacted with the web apps.
> >
> > Lastly, lots of people have experience using JSP 
> with Tomcat 4.02.
> > If you have more specific questions please ask - this is 
> the right forum.
> >
> > Randy
> >
> > > -Original Message-
> > > From: Ming [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 27, 2002 6:29 PM
> > > To: Tomcat Users List
> > > Subject: JSP programming under Tomcat 4.0.2
> > >
> > >
> > > I'm using Tomcat 4.0..2 and apache 1.3.23. I move all my
> > > class files to the
> > > WEB-INF classes folder and jar files to the lib folder.
> > >
> > > I'm programming in JSP. But it seems that although all the
> > > necessary class
> > > files and jar files are in the classes and lib folder, I
> > > still need to import
> > > them in my JSP script. This wasn't the case before I upgraded
> > > the tomcat and
> > > apache.  Since the new tomcat is on the same machine as the
> > > old one, the
> > > classpaths are the same too.
> > >
> > > Does anybody have experience on programming JSP under Tomcat
> > > 4.0.2? I really
> > > appriciate if you can help.
> > >
> > > Thanks.
> > >
> > > Ming
> > >
> > >
> > > --
> > > To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Scope / Instantiation of JSP pages / declarations

2002-02-28 Thread Randy Layman


see intermixed

> -Original Message-
> From: Thorsten Barth [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 9:55 AM
> To: Tomcat Users List
> Subject: Scope / Instantiation of JSP pages / declarations
> 
> 
> If two requests are accessing the same page at the same time, 
> this messes 
> all up, so I would like to change this behaviour. I searched 
> Suns JSP specs 
> and the tomcat documentation, but I just found an attribute 
> in the page 
> directive that forces serialization of the requests 
> (threadsafe="false") - 
> but I think that would significantly reduce performance...
Yes it would.
> 
> Do you know
> - if and why the current behaviour of tomcat is intended?
Yes - it keeps memory consumption down (instead of having thousands of
instances of the JSP class for thousands or requests, you have only one)
> - where I can search for more info?
The JSP Spec and Servlet Spec would probably be good resources
> - if there is an option that tells Tomcat to create a new 
> instance of JSP 
> pages every time they are called
I don't believe so
> 
> P.S: Allaire JRUN seems to behave different 
If so then it doesn't comply with the JSP spec.


One thing to remember is that only variables declared in the <%! ...
%> blocks and page scoped beans are shared between requests.  If you want
variables that are used only in the scope of one request then either use <%
... %> blocks or set your bean scope to request.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Why "localhost:8080" NOT expanded to "http://localhost:8080"

2002-02-28 Thread Randy Layman


Not quite - A fully qualified URL is formatted like:
procotol://hostname:port/path
The hostname is immediately follows // and is terminated by the next
element.  This allows the : to unambiguous, even if the optional elements
are left out.

Randy

> -Original Message-
> From: Chris Campbell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 9:27 AM
> To: 'Tomcat Users List'
> Subject: RE: Why "localhost:8080" NOT expanded to
> "http://localhost:8080";
> 
> 
> 
> This is not surprising really. In most URI addresses the 
> protocol (http, ftp
> etc) is the part before the colon. If you leave 'http:' out 
> of a URI with a
> colon in it, the part before the colon becomes the protocol, 
> in this case
> 'localhost'.
> 
> ChrisC
> 
> > -Original Message-
> > From: Thomas Stiller [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 28, 2002 10:30 PM
> > To: [EMAIL PROTECTED]
> > Subject: Why "localhost:8080" NOT expanded to 
> "http://localhost:8080";
> > 
> > 
> > After having started Tomcat 4.0.2 I entered
> > the URL 
> > localhost:8080 
> > into my browsers URL entryfield.
> > Surprisingly it is not automatically expanded to
> > http://localhost:8080
> > but gave an error (page not found)
> > 
> > With other URLs in the outside internet world(when I am 
> > connected through my providers connection) it works fine.
> > 
> > Which option do I have to change to get an auto-complete?
> > 
> > Thx Thomas
> > -- 
> > 
> > ___
> > Sign-up for your own FREE Personalized E-mail at Email.com
> > http://www.email.com/?sr=signup
> > 
> > 
> > 
> > --
> > To unsubscribe:   

> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Why "localhost:8080" NOT expanded to "http://localhost:8080"

2002-02-28 Thread Randy Layman


ICANN assigned HTTP traffic (that for the web) to port 80.
Consequently, web browsers assume that web traffic will occur over port 80.
They also handle other protocols (like FTP on 21).  Since 8080 is no an
assigned number for a protocol the web browser doesn't know how to talk to
the other end.  Therefore you have to tell it what protocol to use (HTTP).

Randy

> -Original Message-
> From: Thomas Stiller [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 28, 2002 8:30 AM
> To: [EMAIL PROTECTED]
> Subject: Why "localhost:8080" NOT expanded to "http://localhost:8080";
> 
> 
> After having started Tomcat 4.0.2 I entered
> the URL 
> localhost:8080 
> into my browsers URL entryfield.
> Surprisingly it is not automatically expanded to
> http://localhost:8080
> but gave an error (page not found)
> 
> With other URLs in the outside internet world(when I am 
> connected through my providers connection) it works fine.
> 
> Which option do I have to change to get an auto-complete?
> 
> Thx Thomas
> -- 
> 
> ___
> Sign-up for your own FREE Personalized E-mail at Email.com
> http://www.email.com/?sr=signup
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: [TC402] Manager Context in IIS 5 is access denied

2002-02-28 Thread Randy Layman


Check the permissions for the redirector dll and the virtual
directory.  Also, if you want Tomcat to handle authentication (which you
need for the manager app), IIS must be configured to allow anonymous access
to the virtual directory.

Randy


> -Original Message-
> From: Frans Thamura [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 5:04 PM
> To: Tomcat Users List
> Subject: [TC402] Manager Context in IIS 5 is access denied
> 
> 
> I install IIS + Tomcat 4.02 and activate the manager.
> 
> i tomcat with manager context (http://localhost:8080/manager) 
> it is work well.. 
> 
> but when i try the port 80 (IIS) access denied.
> 
> Do you know this problem.
> 
> Frans
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: JSP programming under Tomcat 4.0.2

2002-02-28 Thread Randy Layman


All versions of Tomcat (and all JSP containers for that matter)
require you to add <%@ page import=""%> to your JSP files.

Also, Tomcat versions 3.3 and beyond ignore your system's classpath
variable - it causes to may problems with people not understanding how this
interacted with the web apps.

Lastly, lots of people have experience using JSP with Tomcat 4.02.
If you have more specific questions please ask - this is the right forum.

Randy

> -Original Message-
> From: Ming [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 6:29 PM
> To: Tomcat Users List
> Subject: JSP programming under Tomcat 4.0.2
> 
> 
> I'm using Tomcat 4.0..2 and apache 1.3.23. I move all my 
> class files to the
> WEB-INF classes folder and jar files to the lib folder.
> 
> I'm programming in JSP. But it seems that although all the 
> necessary class
> files and jar files are in the classes and lib folder, I 
> still need to import
> them in my JSP script. This wasn't the case before I upgraded 
> the tomcat and
> apache.  Since the new tomcat is on the same machine as the 
> old one, the
> classpaths are the same too.
> 
> Does anybody have experience on programming JSP under Tomcat 
> 4.0.2? I really
> appriciate if you can help.
> 
> Thanks.
> 
> Ming
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: trouble in untar tomcat binary file.

2002-02-27 Thread Randy Layman

You need GNU tar, not the TAR that comes from Sun.

Randy

> -Original Message-
> From: Cheng Yan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: trouble in untar tomcat binary file.
> 
> 
> Hi, there,
> 
> I am having trouble in untar tomcat binary file.
> 
> I downloaded both jakarta-tomcat-4.0.2-LE-jdk14.tar.gz and 
> jakarta-tomcat-4.0.2.tar.gz. However, when I tried to untar them,
> I got following error message:
> 
> tar: directory checksum error
> 
> What is the problem?
> 
> BTW, I am using an ultra-sparc I box running solaris 2.7.
> 
> Thanks for help.
> 
> Cheng Yan
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: REPOST: Please HELP!: URL Mapping Problems in servlet

2002-02-27 Thread Randy Layman


I think that this approach is very close to what you want.  Instead
of lastIndexOf("/") you could do lastIndexOf (or indexOf) getServletName.
Another alternative would be to use lastIndexOf(getPathInfo()) on the
request URI.

As to why the methods return what they do, its because the spec says
so.  

Randy


> -Original Message-
> From: Mark B. Indictor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 2:03 PM
> To: 'Tomcat Users List'
> Subject: RE: REPOST: Please HELP!: URL Mapping Problems in servlet
> 
> 
> I appreciate the help, but this still does not solve my problem.
> 
> You see, I need to handle URLs of the following forms:
> 
> http://hostname/context/servlet/xxx
> 
> as well as:
> 
> http://hostname/context/servlet
> 
> 
> With your suggestion, I would be truncating these to:
> 
> http://hostname/context/servlet
> 
> and
> 
> http://hostname/context
> 
> Respectively. 
> 
> The first behavior is desirable, the second is not!
> 
> What I do not understand is why Apache and Tomcat conspire hide the
> 'context' element of the URL. I either need to find a way to 
> isolate and
> retrieve the full path to the servlet (/context/servlet) or I 
> need to find a
> way to set up Apache and Tomcat to recognize a URL that does 
> not contain a
> context component (/servlet).
> 
> Why does getServletPath() not return the whole path to the servlet,
> including its context, if this information is, in fact, 
> required to access
> the servlet with a URL!?
> 
> Any suggestions?
> 
> Thanks!
> 
> - mbi
> ==
> Mark Indictor -- Site2 Corporation
> [EMAIL PROTECTED]
> 
> Phone:(310)451-3472 FAX:(240)220-6341
> http://keyserver.pgp.com/pks/lookup?op=get&search=0x8959F966
> == 
> 
> 
> 
> 
> 
> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 27, 2002 10:44 AM
> To: 'Tomcat Users List'
> Subject: RE: REPOST: Please HELP!: URL Mapping Problems in servlet
> 
> 
> I don't think there is a function to get the full request 
> path without the
> final page/servlet name. 
> 
> This should get what you need:
> req.getRequestURI().substring(0,req.getRequestURI().lastIndexOf("/"))
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Unable to compile class for JSP

2002-02-27 Thread Randy Layman



> -Original Message-
> From: Andrew Rodwell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 11:31 AM
> To: Tomcat Users List
> Subject: Unable to compile class for JSP
> 
> 
> Hi,
> 
> 
> 
> 
> when it is run I get the following.
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 9 in the jsp file: /fwView.jsp
> 
> Generated servlet error:
> C:\tomcat\work\localhost\_\fwView$jsp.java:61: Class 
> org.apache.jsp.fwLine
> not found.
> fwLine lineB = null;
> ^
> 
> 
> An error occurred at line: 9 in the jsp file: /fwView.jsp
> 
> have I missed something on the setup, like in web.xml
> 

In JSP
<% @ page import="fwView" %>
or
<% @ page import="package.fwView" %>
depending on the package name of fwView.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: ClassNotFoundException

2002-02-27 Thread Randy Layman


I don't' believe what you are trying to do is possible.  Class
loaders are created in a hierarchical manner with the children knowing about
their parents, but not the parents knowing about the children.  This makes
it impossible for the current class loader (using Class.forName) to find the
class file loaded by a child class loader (which the WEB-INF is).

I see that you have three options:
1.  Engineer another solution to your problem
2.  Move MyServletClass into common
3.  Move MyBaseServletClass into all the WEB-INFs.

Personally the order of approach I would take is 3, 2, and then 1.

Randy

> -Original Message-
> From: Ken Ramirez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 12:11 AM
> To: [EMAIL PROTECTED]
> Subject: ClassNotFoundException
> 
> 
> Hope someone can help:
> 
> I have a TOMCAT app containing a servlet as follows:
> 
> /webapps/MyApp/WEB-INF/classes/com/mycomp/MyServl
> etClass.cl
> ass
> 
> This class extends a base class that provides common functionality for
> all of my apps, and is stored in:
> 
> /common/classes/com/mycomp/MyBaseServletClass.cla
> ss  (which
> extends HttpServlet)
> 
> Through some context information, the MyBaseServletClass receives the
> classname of a class stored in my app's classes directory, 
> which it is responsible for creating an instance of, using
> Class.forName().  This is the path of the class to be created:
> 
> /webapps/MyApp/WEB-INF/classes/com/mycomp/MyOther
> Class.clas
> s
> 
> When the MyServletClass calls Class.forName, it fails with a
> ClassNotFoundException, but if I move the MyServletClass 
> to the MyApp/WEB-INF/classes path, everything works fine.
> 
> What gives?  I thought that Tomcat reads adds the classes 
> directory for
> all of the apps deployed in the server.xml 
> (with Context info), which I defined as follows:
> 
> reloadable="true" />
> 
> 
> Thanks,
> 
> Ken Ramirez - Principal/CTO
> [EMAIL PROTECTED]
>   
> Master-Mind Consulting Services
> http://www.mastermind.com  
> Ph - 570-688-9600
> Fx - 208-275-2301
>  
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet POST results in 404 error

2002-02-26 Thread Randy Layman


It sounds like the servlet is trying to use PathInfo (extra
characters beyond the real servlet's name for parameters).  In your web.xml
you probably want to make your URL mapping something like /servletname/* so
that every URL that starts with servletname is called for that servlet.

Randy

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet POST results in 404 error
> 
> 
> The servlet is an application that has numerous modes. If I 
> want to create a
> new user of the app, I type the URL:
> 
> servername/webapp/servletname?mode=19
> 
> I enter all the details of the new user, and the servlet 
> "posts" this info -
> a get would show password details in the URL. It then creates a page:
> 
> servername/webapp/servletname/stringofnumbers
> 
> Informing me of the outcome of the attempt to create a new user - i.e.
> success or failure. At this point it fails with a 404. The 
> logs give exactly
> the same info. I've checked everything I can think of and changed the
> DocumentRoot in Apache to the webapps/webappname directory. 
> No joy! As I see
> it there are two possibilities:
> 
> I've misconfigured TC and/or Apache - but how?
> The servlet implements or does something that is no longer 
> supported in
> TomCat and/or the latest servlet API.
> 
> I'm at a loss!
> 
> Thanks,
> 
> John
> 
> 
> -Original Message-
> From: Ken Martin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 19:08
> To: Tomcat Users List
> Subject: Re: Servlet POST results in 404 error
> 
> 
> On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote:
> 
> > I'd give you the URL but I'd have to give passwords and 
> > stuff... It goes
> > like this:
> >
> > servername/webapp/servletname/stringofnumbers
> 
> I had some JSP pages that worked on Netscape but not Tomcat. It 
> turned out that Tomcat wanted to see a "=" separating the 
> name=value pairs. From your example above, it looks like you're 
> just trying to pass some numbers so you don't actually need 
> the "=" (informationally), but Tomcat does to pass it on through 
> the request.
> 
> Simply adding the "=" fixed it for me. Now, sometimes I'll add a 
> label as the value, like: thedata=a_label, which is a visual 
> convenience but ignored by the backend.
> 
> Just my experience.
> 
> Ken Martin
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet POST results in 404 error

2002-02-26 Thread Randy Layman


Is it possible that your servlet is seeing the POST, processing it,
and then sending a redirect to a non-existent page?

You might want to check the Tomcat and IIS/Apache/iPlanet logs to
find out what URL is being used to get the 404, that way you will know how
Tomcat or the connector is trying to interpret your request.

Randy

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 1:05 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet POST results in 404 error
> 
> 
> I'd appreciate a response on this! I've spent time searching 
> the Net but
> haven't turned up anything useful. I don't think I've 
> misconfigured anything
> in my server.xml or web.xml...
> It's just the POST method that doesn't work - no idea why!
> 
> Suggestions please!!
> 
> Thanks,
> 
> John
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 16:11
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is 
> sent. GET works
> fine. The servlet uses sessions - not sure if this has 
> anything to do with
> it. My server.xml just defines a context and a logger. The 
> web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this 
> have something to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Ho can I make my URL shorter?

2002-02-25 Thread Randy Layman


/adminContact/* indicates that the servlet should only respond if
the trailing slash is present.  What you probably want is /adminConcact
(respond to one specific URL).

Randy

> -Original Message-
> From: C Cayetano [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 2:01 PM
> To: Tomcat Users List
> Subject: RE: Ho can I make my URL shorter?
> 
> 
> I've got the same problem, but in trying the recommentation 
> below I get a
> 404
> 
> OLD method:
> 
> http://servername/servlet/admin.contactInfo
> 
> 
> NEW method:
> 
> Trying to get: http://servername/adminContact
> 
> 
> In file \webapps\ROOT\WEB-INF\web.xml :
> 
> 
> 
> contactAdmin
> admin.contactInfo
> 
> 
>   contactAdmin
>   /adminContact/*
> 
> 
> 
> Restart Tomcat, so now I tried, :  
> http://servername/adminContact and got a
> 404. Am I doing something wrong?
> 
> Thanks
> 
> 
> 
> > -Original Message-
> > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 25, 2002 10:36 AM
> > To: Tomcat Users List
> > Subject: RE: Ho can I make my URL shorter?
> >
> >
> > reed inline comments :
> >
> >
> > > -Original Message-
> > > From: Rudi Doku [mailto:[EMAIL PROTECTED]]
> > > Sent: 25. febrúar 2002 18:37
> > > To: [EMAIL PROTECTED]
> > > Subject: Ho can I make my URL shorter?
> > >
> > >
> > > Hello,
> > >
> >  HLLOOO!!
> >
> > > I have a URL which is too long. I would appreciate it of
> > > someone could help
> > > me with the following queries:
> > >
> > > 1. Is it possible to confugure the application so I can
> > > remove the port
> > > "8080" from the URL?
> > >
> > YEP check server.xml (in tomcat/conf/) and change the port of your
> > Connector element.
> >
> > mine looks like this :
> >
> >   className="org.apache.catalina.connector.http.HttpConnector"
> >port="80" minProcessors="5" maxProcessors="150"
> >enableLookups="true" redirectPort="8443"
> >acceptCount="100" debug="0" 
> connectionTimeout="6"/>
> > ok ?
> >
> > > 2. Can I declare an alias for
> > > com.docutech.viewer.web.LoginAction so I don't
> > > have to display the entire package? The action for my form is
> > > "servlet/com.docutech.viewer.web.LoginAction"
> >
> > yes, in web.xml (for your webapplication) in 
> webappname/WEB-INF/web.xml
> > you can define servlet mappings.
> >
> > 
> > LoginAction
> > 
> com.docutech.viewer.web.LoginAction
> > 
> > 
> >   LoginAction
> >   /login/*
> > 
> >
> >
> > hope it helps
> > [EMAIL PROTECTED]
> >
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Path error in Tomcat startup scripts on Linux

2002-02-25 Thread Randy Layman


Is it possible that in your Context definition in either server.xml
or apps-XXX.xml you are specifying an absolute path instead of a relative
one?

Randy


> -Original Message-
> From: Luke Studley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 11:24 AM
> To: 'Tomcat Users List'
> Subject: Path error in Tomcat startup scripts on Linux
> 
> 
> {See also thread [Apache Tomcat/4.0.2 - HTTP Status 404 - 
> /examples/jsp/]
> which seems a similar problem}
> 
> Have an application which works fine on Win2k with Tomcat 
> 4.0.1 - but is
> failing on Linux.
> 
> I have an app under $CATALINA_HOME/webapps/webcare/web - and 
> an entry in
> server.xml which maps to it.
> 
> However in the logs on Linux Catalina apparently binds perfectly to
> $CATALINA_HOME/webapps/ROOT but fails miserably when trying 
> to bind to my
> app.
> 
> In the log it says it fails to find the app at /webcare/web - and sure
> enough if I create a directory at /webcare/web - i.e. in the 
> filesystem root
> directory - it works again.
> 
> Looks like something in the unix version is not picking up 
> paths properly.
> Anybody else come across this - and especially anyone know 
> how to fix it?
> 
> Regards
> 
> Luke
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: General questions about Tomcat<->Apache

2002-02-25 Thread Randy Layman



> -Original Message-
> From: Thomas Stiller [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 24, 2002 8:01 PM
> To: [EMAIL PROTECTED]
> Subject: General questions about Tomcat<->Apache
> 
> 
> After having worked with some other servers I am currently 
> evaluating Apache and Tomcat.
> The problem is that I could not find any article or tutorial 
> which gives an general over view over the relationship 
> between Apache and Tomcat (and jdk).
> 
> E.g http://www.moreservlets.com/Using-Tomcat-4.html#Introduction
> indicates that Tomcat can be run independently from Apache. 
> But what can I do with Apache
> what I can not with Tomcat or vice versa ?

Apache is a web server.  Tomcat is a JSP/Servlet container.  Tomcat can run
JSPs and Servlets (which Apache can't without something like Tomcat).
Tomcat can serve web pages (latest versions have support for SSI and CGI),
but its primary focus is Servlets, making Apache much faster at other forms
of content than Tomcat.

> 
> Is Tomcat an add-on or a replacement of Apache ?
Both.  It can replace Apache, but with a performance hit for static content.
It can be an add-on to give Apache JSP/Servlet functionality.

> If Tomcat has the full functionality of a web server why do I 
> need in addition Apache web server?
Speed.  Perhaps feature support that isn't in Tomcat (i.e. mod_perl).

> 
> Which version of Tomcat works (is compatible) with which 
> version of Apache ?
> Is Tomcat 4.0.2 working with Apache 1.3.23 or only with 2.0.* ?
> 
All Tomcat 3 and 4 can be set up for Apache 1.3.x (perhaps 1.2.x, but don't'
quote me on that).  Apache 2.0.x support isn't fully completed, I believe.

> A link on the page mentioned above promises a description on 
> how to integrate Tomcat into
> Apache but on the referred page I cannot find such a 
> description. How do I do it ?
> 
> Does the same Tomcat binary work as a plug-in for Apache and 
> as a stand-alone server or do I have to download two separate 
> binaries ?
> 
Tomcat website is http://jakarta.apache.org/tomcat.  There is a lot of
documentation there about Tomcat and from there you can browse the CVS
repository, which has even more documentation.

> Sorry for these general questions but I found them not 
> answered in the internet.
> 
> Thank you
> Thomas
> 
> -- 
> 
> ___
> Win a ski trip!
> http://www.nowcode.com/register.asp?affiliate=1net2phone3a
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: HOW to Configure Tomcat on IIS and deploy our own web Application .

2002-02-25 Thread Randy Layman

http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-iis-howto.html
epically the section labeled "Adding additional Contexts".

Aren't manuals really useful?

Randy


> -Original Message-
> From: Vishal Mukherjee [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 24, 2002 11:57 PM
> To: Tomcat Users List
> Subject: HOW to Configure Tomcat on IIS and deploy our own web
> Application .
> Importance: High
> 
> 
> Hi all,
> 
> I an a NewBie to Tomcat. Having installed TC 3.2.3 on IIS 4 
> with the help of
> your guidance from the link suggested below.
> http://www.verysimple.com/scripts/support_tc_iis.html
> 
> All works fine. I have a web application which i have to deply to our
> intranet server, mearly copying the files in a directory and 
> adding the
> context does not work. Can anyone help to delpoy our 
> application where i can
> get step-by-step methods to configure the application for 
> JSP, Servlets and
> beans directories  and deploy it.
> 
> Thanks & Regards
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
> Vishal Mukherjee
> IRSSL  Vashi
> 91.022.7896004.155 (voice)  022.7896020(fax)
> "Don't take life too serious. You'll never escape it alive anyway."
> - Ebert Hubbard
> ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
> 
> 
> Visit Our Cement Site at http://www.indorama.co.in
>   Our Software Site at http://www.irssl.com 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Create a log file under my application directory

2002-02-25 Thread Randy Layman


Tomcat doesn't support .zip on any platform, and its because of the
spec, not the developer's preference.  Simply rename your .zip to .jar (they
are the same structure, just different names).

Randy

> -Original Message-
> From: Bing Zhang [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 25, 2002 3:12 AM
> To: Bing Zhang
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Create a log file under my application directory
> 
> 
> Never mind my question. I developed my application on NT with 
> JBuilder,
> debugged it with Tomcat that coming with JBuilder. However 
> when I deployed
> it on linux, it turned out that the path info is quite 
> different and more
> restrict on linux. 
> 
> Another question I put database driver, classes111.zip under
> webapps/myapp/WEB-INF/lib on linux, it gave me exception. 
> However under NT
> development environment, it worked with no error. Is it true 
> that tomcat on
> linux does not recognize the *.zip file?
> 
> Thanks,
> 
> Bing
> 
> -Original Message-
> From: Bing Zhang
> To: '[EMAIL PROTECTED]'
> Sent: 2/24/02 9:44 PM
> Subject: Create a log file under my application directory
> 
> Hi,
> 
> I am running tomcat 4.0.1.
> 
> The connection pooling part of my application needs a new log 
> file every
> time it starts via "new File(fileName)". The filename is a file just
> under
> my application, such as webapps/myapp/connectionpool.log. But 
> every time
> I
> run it, I got an exception: permission denied. 
> 
> I tried to use catalina.policy to add create and write permission for
> that
> particular file, but no fruit. What have I missed? I do not 
> want to use
> the
> usual sevlet log() method for my connection pooling log.
> 
> Thanks,
> 
> Bing
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: war files

2002-02-22 Thread Randy Layman


Is tomcat running at root?  (Hint, if your files are being unpacked
as part of Tomcat's execution, then they are owned by the user running
Tomcat.)

Randy


> -Original Message-
> From: chad kellerman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:23 PM
> To: [EMAIL PROTECTED]
> Subject: war files
> 
> 
> Good Day,
>   I have virtual hosts configured for tomcat I ran into a 
> problem testing out a war file.
> 
> Does anyone have any idea why a war file would unpack with 
> the ownership of root when called from the web???
> 
> I am on a redhat 6.2 box with tomcat 4 and webapp.
> 
> Thanks,
> Chad
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: oracle/TC4.0.2/linux

2002-02-22 Thread Randy Layman


Because the Contexts are managed by Tomcat you need to put the
classes12.jar into the CATALINA_HOME/lib/common directory (Tomcat needs to
see them, lib/container might also work).

Randy

> -Original Message-
> From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 2:06 PM
> To: Tomcat Users List
> Subject: Re: oracle/TC4.0.2/linux
> 
> 
> I have already rename classes12.zip in classes12.jar
> I obtain : No suitable driver
> this code works :
>  String url="jdbc:oracle:thin:@62.52.53.213:1521:db8ir3";
>  String password="jdev";
>  String user="jdev";
>  String driver = "oracle.jdbc.driver.OracleDriver";
>//Class.forName(driver).newInstance();<-- so the driver is in 
> CLASSPATH
> Connection conn = 
> DriverManager.getConnection(url,user,password);
> 
> 
> this no
> try{
>Context envCtx = (Context) initCtx.lookup("java:comp/env");
> System.out.println("2");
>DataSource ds = (DataSource)envCtx.lookup("jdbc/HelloDB");
> System.out.println("DataSource="+ds );//DataSource=Enabled
>Connection conn = ds.getConnection();
> }catch (Exception e) {
> System.out.println("erreur"+e.getMessage() ); //No Suitable Driver
> 
> Have you any idea ??
> 
> P.S : The same configuaration and same code under WinNT works
> 
> 
> Randy Layman wrote:
> 
> > The most common problem is not renaming classesXXX.zip to
> >classesXXX.jar.  (Tomcat doesn't automatically see ZIP 
> files, but it does
> >JAR).
> >
> > Randy
> >
> >>-Original Message-
> >>From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> >>Sent: Friday, February 22, 2002 1:00 PM
> >>To: Tomcat Users List
> >>Subject: oracle/TC4.0.2/linux
> >>
> >>
> >>Has anybody succeeded in making this specific configuration 
> working ?
> >>Has anybody can access to a database with a Datasource??
> >>Could you send me you're configuration please...
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> >>For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> >>Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> >>
> >
> >--
> >To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >For additional commands: <mailto:[EMAIL PROTECTED]>
> >Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> >
> 
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: oracle/TC4.0.2/linux

2002-02-22 Thread Randy Layman


The most common problem is not renaming classesXXX.zip to
classesXXX.jar.  (Tomcat doesn't automatically see ZIP files, but it does
JAR).

Randy

> -Original Message-
> From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 1:00 PM
> To: Tomcat Users List
> Subject: oracle/TC4.0.2/linux
> 
> 
> Has anybody succeeded in making this specific configuration working ?
> Has anybody can access to a database with a Datasource??
> Could you send me you're configuration please...
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Strange javabean problem

2002-02-22 Thread Randy Layman


You are not creating a bean named emp for the jsp:getProperty.  You
need to use jsp:useBean first (I believe) or use <%=emp.getFirstName()%>.

Randy

> -Original Message-
> From: Rich Sneiderman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 11:39 AM
> To: Tomcat Users List
> Subject: RE: Strange javabean problem
> 
> 
> I can't believe we're the only people who have ever seen this problem.
> 
> I'm still having the problem but I got to the same place differently.
> 
> I load the data from a data base in a servlet.  The servlet reads from
> the database it creates a javabean for each record and adds it to a
> ListArray.  I then add the ArrayList to the request object and forward
> on to my JSP.  It's this ArrayList that I'm iterating through 
> in my JSP
> when I have the problem.
> 
> Again here is my code snippet that fails:
> 
> <%
>   ArrayList la = (ArrayList) request.getAttribute("list");
>   if ( la != null ) {
> Iterator iter = la.iterator();
> while(iter.hasNext()) {
>   emp = (EmployeeBean)iter.next();
> %>
> <%= emp.getFirstName() %>
> <%= emp.getLastName() %>
> <%= emp.getTitle() %>
> 
> 
> 
> 
>   <%
> }
>   }
> %>
> 
> Could there be something wrong with the way we're defining our
> Javabeans?
> 
> Please folks.  A little help here.
> 
> Thanks in advance.
> 
> - Rich
> 
> -Original Message-
> From: Michael J. McCormac [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, February 21, 2002 7:45 PM
> To: [EMAIL PROTECTED]
> Cc: Rich Sneiderman
> Subject: RE: Strange javabean problem
> 
> 
> > Hi Folks,
> > 
> > I'm using Tomcat 4.01 with Jbuilder 6.  I've got a strange problem.
> > It seems that if I try to dump data from a Java bean using the
> >  tag I don't get the data.  However, if I 
> reference 
> > the value of the bean directly in a scriptlet it works fine.
> 
> greetings all,
> 
> i am having pretty much the same problem, but the implementation is a
> little bit different.  i tried using an rmi process to 
> retrieve the bean
> directly from the JSP like so:
> 
> 
> <%
>   rmiInt rmiServer = (rmiInt)Naming.lookup( "//server/service" );
>   myBean = (MyClass)rmiServer.getBean();
> %>
>   <- 
> doesn't work!
> 
> one way i've managed to work around the problem was by creating and
> loading the beans in a servlet first, throwing the beans in 
> the session
> object, then redirecting to the JSP file where i could pull them back
> out of the session like this:
> 
> 
> <% session.getAttribute( "mybean" ); %>
>  <- works ok!!
> 
> but i don't like this solution...  it's inelegant ;)
> 
> thanks,
> mike
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?

2002-02-22 Thread Randy Layman


This error message indicates that you are not running Catalina in
JDK 1.4 because the JDK produces file in format 48, but the previous
versions of the JDK/JRE are not able to read the file format (which is
indicated by the "version is to recent for this tool to understand").

Double check how you start JBoss to verify that it is running on the
new JDK and not using just the first JRE in your path.  You also might want
to try and remove all old versions of Java.

Randy


> -Original Message-
> From: Jarecsni János [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 9:25 AM
> To: Tomcat Users List
> Subject: Running Tomcat 4.0.2 on a Sun 1.4.0 JVM?
> Importance: High
> 
> 
> Hi,
> 
> I'm a bit frustrated... I've just tried Catalina 4.0.2 
> (release) [embedded
> in JBoss 2.4.4] on J2SDK 1.4.0 (Win32) and it doesn't work. 
> The JSP compiler
> complains in some cases about the 48.0 class file version:
> 
> 
> [ERROR,EmbeddedCatalinaServiceSX] ApplicationDispatcher[/istore]
> Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPerror:
> Invalid class file format in f:\j2sdk1.4.0\jre\
> lib\rt.jar(java/lang/Object.class).  The major.minor version 
> '48.0' is too
> recent for this tool to understand.
> 
> F:\JBoss-2.4.4_Tomcat-4.0.2b\catalina\work\localhost\istore\bi
bliofil_0005fe
> n$jsp.java:0: Class java.lang.Object not fou
> nd in class javax.servlet.GenericServlet.
> package org.apache.jsp;
> ^
> 2 errors
> 
> at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
> at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
ecessary(JspSe
> rvlet.java:177)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:189)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:382)
> at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.catalina.core.ApplicationDispatcher.invoke(Applicat
ionDispatcher.
> java:683)
> 
> Has anyone of you run into a similar problem? It would be 
> good if we could
> upgrade the JVM because we have other problems with 1.3.1_02
> 
> 
> Cheers,
> János
> 
> --
> Jarecsni, János
> MORGAN HILL CONSULTING, Internet Applications Unit
> mailto:[EMAIL PROTECTED]
> http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: web.xml in Tomcat 4.0 -- HELP

2002-02-21 Thread Randy Layman


Your question is missing what the Tomcat logs are saying.  

If I had to make a blind guess, you have the parameters in web.xml
out of order, which is causing Tomcat to not load the web.xml file (and thus
causing the 404 error).

Randy

> -Original Message-
> From: Surya Suravarapu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 12:16 PM
> To: Tomcat Users List
> Subject: Re: web.xml in Tomcat 4.0 -- HELP
> 
> 
> No body replied to this yet .. I'd like to explain it
> again and see if some body can help me.
> 
> I have a web application running perfectly fine with
> Tomcat 3.2.1. When I upgrade to 4.0.2 I couldn't run
> that.
> 
> After installing 4.0.2, I've added a servlet context
> for my web application in
> /conf/server.xml
> and registered my servlet (servlet name:
> MainController) in WEBAPP/Web-Inf/web.xml. I've also
> added a url-pattern for it.
> 
> After all that and restarting tomcat, I've tried to
> access that servlet by localhost:8080/testwebapp/main
> - I'm getting a response 404 error. The error is some
> thing like this:
> 
> --
> Apache Tomcat/4.0.2 - HTTP Status 404 - /main
> 
> type: Status report
> 
> message: /main
> 
> description: The requested resource (/main) is not
> available.
> ---
> 
> What is that I'm missing? Can some body please help
> ...
> 
> -Surya
> 
> --- Surya Suravarapu <[EMAIL PROTECTED]> wrote:
> > I've observed that Tomcat is reading conf/web.xml in
> > version 4.0 unlike 3.2. 
> > 
> > I have a web-inf/web.xml in my web application
> > folder.
> > I have my servlet registered there and have a
> > URL-pattern mapped for it. But when I try to run the
> > application I am getting 404 File Not Found error.
> > 
> > Error message:
> > Apache Tomcat/4.0.2 - HTTP Status 404 - /main
> > 
> > Can some body please help me.
> > 
> > Thanks.
> > -Surya
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe:  
> > 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: HELP PLEASE!!!: JSP/Tomcat/MySQL

2002-02-21 Thread Randy Layman


First, you probably want to send messages in plain text and not HTML
- a number of the people who can answer your question have mail readers that
make it difficult to view HTML messages.

Second, you need to add import statements to the top of your JSP
page for the java.sql package (i.e. <%@ page import="java.sql.*" %>

Randy

-Original Message-
From: fusterjj [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 11:23 AM
To: Tomcat Users List
Subject: HELP PLEASE!!!: JSP/Tomcat/MySQL


Hello JSP developers! 

I have a problem trying to connect to MySQL database when I am doing a JSP
or a servlet. I think the problem has to be with Tomcat, because when I do a
java application with a database connection works perfectly, so there must
be Tomcat. 

I am working with Java j2sdk1.4.0 and Netbean as my IDE. When I compile the
JSP under the IDE does not give me any errors but when I try to see the
result with Tomcat 4.0 does not seem to recognize the mm.mysql driver and
gives me the following errors:

Generated servlet error:
D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class
org.apache.jsp.Connection not found.

Generated servlet error:
D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class
org.apache.jsp.ResultSet not found.
ResultSet results;

It gives me more errors, related to the connection. If you are willing to
help me I can send you the exception report that Tomcat generates. 

I would really appreciate if you help me about this issue, because I am
beginnig to get frustated. 

Thanks

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Forwarding requests to other Services?

2002-02-21 Thread Randy Layman


Response.sendRedirect sends the client web browser a Resource
Temporarily Moved header (I believe its header 302).  The client then makes
a second request to the referred resource.  If you want any parameters
passed, you must put them in the redirected resource URL yourself, and you
are limited to GET parameters.  Example -
response.sendRedirect("http://otherserver:443/path/to/other/servlet?ID=value
&id2=value");
Also you must return from the method that sends this because all its really
doing is calling setHeader.

Randy


> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 10:20 AM
> To: 'Tomcat Users List'
> Subject: RE: Forwarding requests to other Services?
> 
> 
> I was afraid you would say that.  Bleah.
> 
> Of course the good news about that is I realized that the 
> other servlet
> then tries to forward back to the first after it's done its 
> thing.  I'll
> try redirects instead and see how that works.
> 
> Will the redirect maintain request attributes like forward will?
> 
> Thanks,
> Scott
> 
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, February 21, 2002 9:31 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Forwarding requests to other Services?
> > 
> > 
> > 
> > You could either use response.sendRedirect to the 
> > servlet or jva.net.URLConnection to call the other servlet 
> > and then stream the output from the servlet to your 
> > response.getOutputStream.
> > 
> > Randy
> > 
> > > -Original Message-
> > > From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, February 21, 2002 10:09 AM
> > > To: 'Tomcat Users List'
> > > Subject: Forwarding requests to other Services?
> > > 
> > > 
> > > All,
> > > 
> > > I read in the API that the path to use as a parameter to 
> > > ServletRequest.getRequestDispatcher(String path) cannot 
> > extend beyond 
> > > the current context.  This is a problem, because I need to 
> > forward a 
> > > request to a servlet that listens on a different port, 
> and hence is 
> > > part of a different service and different context.
> > > 
> > > Can someone recommend a solution?
> > > 
> > > Thanks in advance,
> > > Scott
> > > 
> > > 
> > > --
> > > To unsubscribe:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > > For 
> > additional commands: 
> > <mailto:[EMAIL PROTECTED]>
> > > Troubles with the list: 
> > <mailto:[EMAIL PROTECTED]>
> > > 
> > 
> > --
> > To 
> > unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Forwarding requests to other Services?

2002-02-21 Thread Randy Layman


You could either use response.sendRedirect to the servlet or
jva.net.URLConnection to call the other servlet and then stream the output
from the servlet to your response.getOutputStream.

Randy

> -Original Message-
> From: Scott Shorter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 10:09 AM
> To: 'Tomcat Users List'
> Subject: Forwarding requests to other Services?
> 
> 
> All,
> 
> I read in the API that the path to use as a parameter to
> ServletRequest.getRequestDispatcher(String path) cannot extend beyond
> the current context.  This is a problem, because I need to forward a
> request to a servlet that listens on a different port, and 
> hence is part
> of a different service and different context.
> 
> Can someone recommend a solution?
> 
> Thanks in advance,
> Scott
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: application object size.

2002-02-21 Thread Randy Layman


I don't know of a recommendation, but there is no maximum.  The
Application object is stored as a map in the JVM process so you are only
limited by the memory available to the JVM.

Randy


> -Original Message-
> From: rob [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 10:47 PM
> To: [EMAIL PROTECTED]
> Subject: application object size.
> 
> 
> Currently I'm writing a lot of applications that attempt to 
> avoid utilizing
> space in the application object.  Is there a recommended and 
> or maximum size
> for the application object?  If not I'd like to use it for things like
> caching to avoid having to read in application specific data for every
> request. (Which in some cases requires the opening of 10-30 files (in
> sequence of course) just to get information to fufil the request.
> 
> Thanks
> 
> Rob
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Jakarta Tomcat 3.2.3 Windows NT Service Problem

2002-02-21 Thread Randy Layman



> -Original Message-
> From: MARSHALL,John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 7:27 PM
> To: [EMAIL PROTECTED]
> Subject: Jakarta Tomcat 3.2.3 Windows NT Service Problem
> 
> 
> > wrapper.tomcat_home=
> > wrapper.java_home=

It these are the exact lines then this is your problem - you don't need the
< and > characters.  They are in the sample file to show you where to place
your paths.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0 crash

2002-02-21 Thread Randy Layman


Are you using
1.  The JDBC-ODBC Bridge
2.  Native Code
these are the most common source of crashes.  The JDBC-ODBC bridge
is not thread safe and concurrent access will crash the JVM.  Native code
can have similar problems (and other memory-related problems) that will also
cause a crash.  The last source of a crashing problem would be a JVM bug
which would require an upgrade, downgrade, or side grade, depending upon
which version you are currently using.

Are you running any code that calls System.exit?  This would be the
only way that the JVM would exit Tomcat and it not be a crash.

Randy


> -Original Message-
> From: Al Tingley [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 5:02 PM
> To: 'Tomcat User List'
> Subject: Tomcat 4.0 crash
> 
> 
> Hello,
> Has anyone had an experience with Tomcat 4.0 simply going down with no
> trace?  No log message, no exception, ...  We've seen 
> instances where our
> applications are running, then Tomcat just goes away and must 
> be restarted
> manually.
> Thanks,
> Al Tingley
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: URGENT!!!! encodeURL()

2002-02-20 Thread Randy Layman

java.net.URLEncoder/java.net.URLDecoder

> -Original Message-
> From: Emerson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 20, 2002 1:44 PM
> To: Tomcat Users List
> Subject: URGENT encodeURL()
> 
> 
> Please, these is really urgent...
> 
> How do I encode a URL without HttpServletResponse at hand???
> I need to read a URL from a service, but i have to encode it, changing
> spaces to %20, how do i do it??? have anyone done that
> 
> Please, I really have to end this by today
> 
> 
> Emerson Cargnin
> TRE-SC
> Setor de Desenvolvimento 
> Tel: (48) 251-3700 - Ramal 3134
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: cannot compile JSP in tomcat 4.02 + JSDK 1.4

2002-02-20 Thread Randy Layman


It would seem that you are running Java with a 1.3 or before version
of the JVM, but using 1.4 version of the classes.

If possible, I would remove all versions of Java that are not 1.4,
or at least get them out of your PATH environment variable.  

Double check your JAVA_HOME variable to make sure its pointing to
1.4.

If none of that works, try running JAVA_HOME\bin\java -fullversion
to make sure you are running 1.4 and if not, reinstall.

Randy

> -Original Message-
> From: Frans Thamura [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 8:35 PM
> To: Tomcat Users List
> Subject: cannot compile JSP in tomcat 4.02 + JSDK 1.4
> 
> 
> Hi I got this error
> 
> most of my script cannot be compiled when i execute the JSP
> 
> this is the error
> 
> org.apache.jasper.JasperException: Unable to compile class 
> for JSPerror: Invalid class file format in 
> C:\jsdk1.4\jre\lib\rt.jar(java/lang/Object.class).  The 
> major.minor version '48.0' is too recent for this tool to understand.
> 
> C:\tomcat402\work\localhost\examples\test$jsp.java:0: Class 
> java.lang.Object not found in class javax.servlet.GenericServlet.
> package org.apache.jsp;
> ^
> 2 errors
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat in an academic development enviroment

2002-02-20 Thread Randy Layman



> -Original Message-
> From: Zoko, Anthony [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 8:32 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat in an academic development enviroment
> 
>  
> 1) How do I isolate student applications into there own 
> process space to prevent them from crashing Tomcat (these 
> students don't have much development experience)?

I don't believe that this is possible.  On the up side, though, the only way
a student could crash Tomcat is by calling System.exit or loading native
code that crashes.  Both of these options can be disabled using the security
settings for the JVM.  One student would still be able to hog all the
processor, memory, and hard drive resources that you allow Tomcat to take,
though.

> 2) I was tinkering with the ISAPI filter for Tomcat and read 
> an article that it was possible to load Tomcat in the same 
> process space as IIS 
> (http://jakarta.apache.org/tomcat/tomcat-3.2-doc/in-process-ho
>wto.html).  Can this technique be extended to load an instance of Tomcat
for 
>every student using IIS process isolation (I realize this means loading a
Java 
>VM for each student process.)?

The question would be how do you currently set up IIS (I'm not very familiar
with what you are doing with IIS).  I believe that you can only load each
filter once for each host (real or virtual), which would mean that you
couldn't load the filter for each student unless they each have their own
virtual host.
 
> With the current setup, IIS rarely crashes and runs extremely well... I
would
> like to have that same stability if we switch the program over to
JSP/Servlets 
> running Tomcat.  Anybody out there trying to run a similar program?

I haven't seen anyone ask these questions about IIS, but the questions of
this type do come up for Apache - epically from ISPs trying to set up Tomcat
for their clients.
 
Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat as an NT service again...

2002-02-20 Thread Randy Layman


This probably won't come as a surprise to you, but the problem is
your classpath.  The error you posted indicates that Tomcat can't load the
XML parser.  I would check the JavaService syntax for setting the classpath
and then verify that jaxp and parser are at the path indicated.

By the way - to make jk_nt_service work with JDK 1.3 you need to
pass the -Xrs option to the Java Command created on the last line of the
wrapper.properties file.
Randy

> -Original Message-
> From: Mike Welch [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 5:45 PM
> To: [EMAIL PROTECTED]
> Cc: mwelch
> Subject: Tomcat as an NT service again...
> 
> 
> Configuration: 
> 
> Win NT 4 sp6a
> Tomcat 3.2.4
> JDK 1.3.1_02
> IIS
> Javaservice.exe
> 
> Tomcat is running great when I use "startup.bat" interactively.
> 
> I've spent two days trying to figure out how to run Tomcat has a
> service.  I've read every single post I could find.  Mostly
> I've read other people describing the same problem that I have
> encountered.  However, very few times to I see a solution posted.
> Hopefully, this time it will be different.
> 
> I've tried jk_nt_service, that didn't work.  I've gone through the
> steps about 10 times.
> 
> I'm now focusing on getting javaservice.exe to work, since it
> seems to work better with JDK 1.3.1. (when you log out)
> 
> (http://www.alexandriasc.com/software/JavaService/documentation.html)
> 
> Here is the command I'm using to install the service : 
> 
> c:\jakarta-tomcat-3.2.4\bin\javaservice.exe -install Tomcat
> c:\jdk1.3.1_02\jre\bin\hotspot\jvm.dll
> -Djava.class.path=c:\jakarta-tomcat-3.2.4\lib\webserver.jar;c:
> \jakarta-tomcat-3.2.4\lib\jasper.jar;c:\jakarta-tomcat-3.2.4\l
> ib\jaxp.jar;c:\jakarta-tomcat-3.2.4\lib\parser.jar;c:\jakarta-
> tomcat-3.2.4\lib\ant.jar;c:\jakarta-tomcat-3.2.4\lib\servlet.j
> ar;c:\jdk1.3.1_02\lib\tools.jar
> -Dtomcat.home=c:\jakarta-tomcat-3.2.4 -start
> org.apache.tomcat.startup.Tomcat -params -config
> c:\jakarta-tomcat-3.2.4\conf\server.xml -stop
> org.apache.tomcat.startup.Tomcat -params -stop -config
> c:\jakarta-tomcat-3.2.4\conf\server.xml -out
> c:\jakarta-tomcat-3.2.4\logs\stdout.log -err
> c:\jakarta-tomcat-3.2.4\logs\stderr.log
> 
> The only message I receive is : 
>   
>   The service was successfully installed.
> 
> I wouldn't be surprized if there was a problem with this statement,
> but I've looked through it several times and don't see anything wrong.
> 
> When I goto the services control panel and try to start the service,
> I receive the error : 
> 
>   Could not start the Tomcat service on \\MACHINE
>   Error 2140: An internal Windows NT error occurred.
> 
> The event viewer shows " Could not call the start method "
> 
> In the error log "c:\jakarta-tomcat-3.2.4\logs\stderr.log"  
> 
> java.lang.NoClassDefFoundError: org/xml/sax/HandlerBase
>   at java.lang.ClassLoader.defineClass0(Native Method)
>   at java.lang.ClassLoader.defineClass(ClassLoader.java:493)
>   at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.
> java:111)
>   at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>   at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>   at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
>   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>   at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
>   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
>   at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:178)
>   at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240)
> 
> Can anyone explain this error?
> 
> Any suggestion for getting this to work?
> 
> Thanks,
> 
> Mike
> -- 
> Mike Welch
> Director of Internet Media
> Sanger & Eby Design
> (513)784-9046
> [EMAIL PROTECTED]
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat as a service...

2002-02-19 Thread Randy Layman



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 11:24 AM
> To: Tomcat Users List
> Subject: RE: Tomcat as a service...
> 
> 
> 
> 
> 
> BTW... Someone should fix it so that it works under ANY 
> installed path!!!
> 
> 

I don't know what tool the Jakarta guys use to build the installer,
but I know that for a project I worked on last year we had the same
restriction because the install builder (InstallAnywhere) wouldn't allow us
to escape the strings properly.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat as a service...

2002-02-19 Thread Randy Layman


I just downloaded and installed Tomcat 4.02 binary and everything
works fine for me.  The installer detected the JVM (1.3) on installation.
The only difference is that I installed to a directory without spaces in it.

It would seem that the service configuration is stored in the
registry at HKEY_LOCAL_MACHINE\SYSTEM\Services\Apache Tomcat\Parameters.
You might want to check these and make sure that the installer filled in the
parameters correctly (epically quoting the parameters correctly).

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 9:41 AM
> To: Tomcat Users List
> Subject: RE: Tomcat as a service...
> 
> 
> 
> 
> When I look at the properties for the service, it says that 
> the path to the
> executable is:
> C:\Program Files\Apache Tomcat 4.0\bin\tomcat.exe
> When I try to run this exe from the command line, tomcat, of 
> course, doesnt start.
> How does the service know to perform all the stuff that 
> startup.bat does???
> Also, the service has no settings for environmental 
> variables, so I assume it goes
> directly off whats in the system variables, correct?  
> Question: Is a reboot needed if
> one of the env variables changes?
> Also, it has a line for "Start parameters" which is empty.  
> Should something be here
> maybe???
> Dependencies tab, how do I set it up so that Tomcat starts up 
> before Apache does.
> Because, I have noticed, runnning on the command line, that 
> Apache needs a restart
> once you load up Tomcat.  Will the order of the services 
> booting affect it?  If so, it seems
> to me that the installer should detect if Apache is present 
> or not and set it up for the user.
>  Questions, questions...
>  -Kevin
> 
> 
> 
> 
> 
> Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:36:17 AM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> cc:
> Subject:  RE: Tomcat as a service...
> 
> 
> 
>  They should be in the logs directory, but you might want to try
> searching the system for the files.  Their lack of existence 
> would point to
> the service not even getting loaded, probably a problem with your
> JAVA_HOME.
> I don't know about Tomcat 4, but with Tomcat 3 you had to edit the
> wrapper.properties file in the conf directory to set the 
> JAVA_HOME. Maybe
> someone more familiar with Tomcat 4 could indicate how to set 
> the JAVA_HOME
> for the service?
> 
>  Randy
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 19, 2002 9:16 AM
> > To: Tomcat Users List
> > Subject: RE: Tomcat as a service...
> >
> >
> >
> >
> > Where can I find jvm.stderr and jvm.stdout? I dont see them 
> in the log
> > dir???
> > Sorry if I seem stupid, but I am a SUN Certified Programmer,
> > not a system
> > admin type
> > guy.
> >  -Kevin
> >
> >
> >
> >
> >
> > Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:08:51 AM
> >
> > Please respond to "Tomcat Users List" 
> <[EMAIL PROTECTED]>
> >
> > To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > cc:
> > Subject:  RE: Tomcat as a service...
> >
> >
> >
> >  The reason that you get the message is because the only
> > errors that
> > can be reported are those detected by 2000 (like missing
> > binary, improper
> > permissions, etc).
> >
> >  I would suggest that you look at the jvm.stderr and
> > jvm.stdout for
> > more information about what the error is that you are getting.
> >
> >  Randy
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, February 19, 2002 8:51 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat as a service...
> > >
> > >
> > >
> > > One other thing... I have tried now, every now and then over
> > > the past 6 months to get Tomcat to run as an NT service.
> > > I have NEVER been sucessful and I have tried 4 or 5 different
> > > ways.  I kept thinking that there was some silly bug that 
> was going
> > > to be fixed in the next release.  Well, I just installed the
> > > Tomcat 4.0.2
> > > exe file, and during the install, checked the option to
> > install as NT
> >

RE: Tomcat as a service...

2002-02-19 Thread Randy Layman


They should be in the logs directory, but you might want to try
searching the system for the files.  Their lack of existence would point to
the service not even getting loaded, probably a problem with your JAVA_HOME.
I don't know about Tomcat 4, but with Tomcat 3 you had to edit the
wrapper.properties file in the conf directory to set the JAVA_HOME. Maybe
someone more familiar with Tomcat 4 could indicate how to set the JAVA_HOME
for the service?

Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 9:16 AM
> To: Tomcat Users List
> Subject: RE: Tomcat as a service...
> 
> 
> 
> 
> Where can I find jvm.stderr and jvm.stdout? I dont see them in the log
> dir???
> Sorry if I seem stupid, but I am a SUN Certified Programmer, 
> not a system
> admin type
> guy.
>  -Kevin
> 
> 
> 
> 
> 
> Randy Layman <[EMAIL PROTECTED]> on 02/19/2002 08:08:51 AM
> 
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
> 
> To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> cc:
> Subject:  RE: Tomcat as a service...
> 
> 
> 
>  The reason that you get the message is because the only 
> errors that
> can be reported are those detected by 2000 (like missing 
> binary, improper
> permissions, etc).
> 
>  I would suggest that you look at the jvm.stderr and 
> jvm.stdout for
> more information about what the error is that you are getting.
> 
>  Randy
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 19, 2002 8:51 AM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat as a service...
> >
> >
> >
> > One other thing... I have tried now, every now and then over
> > the past 6 months to get Tomcat to run as an NT service.
> > I have NEVER been sucessful and I have tried 4 or 5 different
> > ways.  I kept thinking that there was some silly bug that was going
> > to be fixed in the next release.  Well, I just installed the
> > Tomcat 4.0.2
> > exe file, and during the install, checked the option to 
> install as NT
> > service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
> > set properly, and reboot, and ONCE AGAIN, no tomcat service.
> > The service is listed in the Admin Services console as being
> > automatically started, but it wont actually start.  When I
> > try to start it
> > manually from the services panel, I get this message, "Could not
> > start Tomcat on local computer.  The service did not return 
> an error.
> > Could be windows internal error or internal error."  If there
> > was no error
> > returned, then why WONT IT START   And if there was 
> an error,
> > why not REPORT IT.  How about telling the user what is wrong so that
> > he/she can fix it.  Duh. Sorry to be so brash, but it has
> > been this way
> > for a long time and noone seems to care about fixing it.
> >  -Kevin Schmidt
> >  Cincinnati, OH
> >
> >
> >
> >
> > --
> >
> > NOTICE:  The information contained in this electronic mail
> > transmission is
> > intended by Convergys Corporation for the use of the named
> > individual or
> > entity to which it is directed and may contain information that is
> > privileged or otherwise confidential.  If you have received
> > this electronic
> > mail transmission in error, please delete it from your 
> system without
> > copying or forwarding it, and notify the sender of the error
> > by reply email
> > or by telephone (collect), so that the sender's address 
> records can be
> > corrected.
> >
> >
> >
> > --
> > To unsubscribe:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands: 
> <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: 
> <mailto:[EMAIL PROTECTED]>
> >
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> 
> 
> 
> --
> 
> NOTICE:  The information contained in this electronic mail 
> transmission is
> intended by Convergys Corporation for the use of the named 
> individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential.  If you have received 
> this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error 
> by reply email
> or by telephone (collect), so that the sender's address records can be
> corrected.
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




RE: Tomcat as a service...

2002-02-19 Thread Randy Layman


The reason that you get the message is because the only errors that
can be reported are those detected by 2000 (like missing binary, improper
permissions, etc).

I would suggest that you look at the jvm.stderr and jvm.stdout for
more information about what the error is that you are getting.

Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 8:51 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat as a service...
> 
> 
> 
> One other thing... I have tried now, every now and then over
> the past 6 months to get Tomcat to run as an NT service.
> I have NEVER been sucessful and I have tried 4 or 5 different
> ways.  I kept thinking that there was some silly bug that was going
> to be fixed in the next release.  Well, I just installed the 
> Tomcat 4.0.2
> exe file, and during the install, checked the option to install as NT
> service.(I am running W2K), I have JAVA_HOME and CATALINA_HOME
> set properly, and reboot, and ONCE AGAIN, no tomcat service.
> The service is listed in the Admin Services console as being
> automatically started, but it wont actually start.  When I 
> try to start it
> manually from the services panel, I get this message, "Could not
> start Tomcat on local computer.  The service did not return an error.
> Could be windows internal error or internal error."  If there 
> was no error
> returned, then why WONT IT START   And if there was an error,
> why not REPORT IT.  How about telling the user what is wrong so that
> he/she can fix it.  Duh. Sorry to be so brash, but it has 
> been this way
> for a long time and noone seems to care about fixing it.
>  -Kevin Schmidt
>  Cincinnati, OH
> 
> 
> 
> 
> --
> 
> NOTICE:  The information contained in this electronic mail 
> transmission is
> intended by Convergys Corporation for the use of the named 
> individual or
> entity to which it is directed and may contain information that is
> privileged or otherwise confidential.  If you have received 
> this electronic
> mail transmission in error, please delete it from your system without
> copying or forwarding it, and notify the sender of the error 
> by reply email
> or by telephone (collect), so that the sender's address records can be
> corrected.
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: No suitable driver Datasource Problem

2002-02-19 Thread Randy Layman


I'm would guess that your JDBC driver is not available to the
correct class loader.  Try moving the JDBC driver up to the
TOMCAT_HOME/lib/common directory, restart Tomcat, and see if that works.

Randy

> -Original Message-
> From: remy.menetrieux [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 19, 2002 7:51 AM
> To: Tomcat Users List
> Subject: No suitable driver Datasource Problem
> 
> 
> When I use a datasource I obtain this error.
> But when i use same option directly in my servelt all is OK.
> Have you seen this errors ???
> regards
> Remy
> 
> Java.sql.SQLException: No suitable driver at
> java.sql.DriverManager.getDriver(DriverManager.java:249) at
> tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc
> e.java:233) 
> at
> tyrex.jdbc.xa.EnabledDataSource.getConnection(EnabledDataSourc
> e.java:204) 
> at
> fr.pixelpark.erh.servlets.ApplicantServlet.performTask(Applica
> ntServlet.java 
> 
> :92) at
> fr.pixelpark.toolbox.servlets.PixelServlet.doGet(PixelServlet.
> java:33) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application 
> 
> FilterChain.java:247) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh 
> 
> ain.java:193) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja 
> 
> va:243) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 66) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> va:943) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja 
> 
> va:190) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 66) at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:2 
> 
> 46) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 64) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> va:943) at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180 
> 
> ) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 66) at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve. 
> 
> java:170 ) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 64) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170 
> 
> ) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 64) at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468) 
> at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 64) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> va:943) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java 
> 
> :174) at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5 
> 
> 66) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.ja
> va:943) at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java: 
> 
> 1012) at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1107 
> 
> ) at java.lang.Thread.run(Thread.java:484)
> 
> 
> 
> 
> Le code :
> 
>Context initCtx = new InitialContext();
> 
> Context envCtx = (Context) initCtx.lookup( 
> "java:comp/env" );
> 
> // Look up our data source
> out.println("envCtx ="+envCtx);
> DataSource ds = envCtx.lookup("jdbc/ErhDB");
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: jsp and tomcat4

2002-02-18 Thread Randy Layman


This message actually showed up before your other one (at least in
my mail box).

The source of this problem is an improperly set JAVA_HOME.  You must
set JAVA_HOME such that JAVA_HOME/lib/tools.jar is a valid file.

Randy

> -Original Message-
> From: Jolet, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 3:31 PM
> To: Tomcat List (E-mail)
> Subject: FW: jsp and tomcat4
> 
> 
> more information, since i've encountered truly deafening 
> silenceif i go
> into the tomcathome/work directory for, say the numberguess 
> jsp example
> program and manually, at the command line, compile the .java 
> file I find
> there, using the -classpath list from the log file, it 
> compilesit then
> runs fine.  So the problem is getting it to find the 
> compiler, which the
> docs say lives at $JAVA_HOME/lib/tools.jarit is, in fact 
> there in that
> jar file (java home being listed correctly on startup).  What 
> next?  mind,
> this works fine on another machine.  I can't figure out what I did
> differently.
> 
> >  -Original Message-
> > From:   Jolet, John  
> > Sent:   Monday, February 18, 2002 12:11 PM
> > To: Tomcat List (E-mail)
> > Subject:jsp and tomcat4
> > 
> > i'm running tomcat4 on redhat 7.2.  it serves up servlets 
> just fine, but
> > get the following when I try to look at the jsp examples:  
> is it telling
> > me it can't find my javac?
> > javax.servlet.ServletException: sun/tools/javac/Main
> > at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> > at
> > 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Applicati
> > onFilterChain.java:247)
> > at
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilter
> > Chain.java:193)
> > at
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.
> > java:243)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :566)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472
> > )
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > 
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.
> > java:190)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :566)
> > at
> > 
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBa
> > se.java:475)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :564)
> > at
> > 
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java
> > :246)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :564)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472
> > )
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > 
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
> > at
> > 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:1
> > 80)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :566)
> > at
> > 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValv
> > e.java:170)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :564)
> > at
> > 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:1
> > 70)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :564)
> > at
> > 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :564)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472
> > )
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.ja
> > va:174)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java
> > :566)
> > at
> > 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472
> > )
> > at
> > 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > at
> > 
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.jav
> > a:1012)
> > at
> > 
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:11
> > 07)
> > at java.lang.Thread.run(Thread.java:536)
> > root cause 
> > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> >  

RE: org.apache.jasper.JasperException: Unable to compile class for JSP

2002-02-18 Thread Randy Layman


Open up the generated Java file, but I believe that you will see
some extra stuff before the imports from something at the top of your JSP
file that shouldn't be there.

Randy


> -Original Message-
> From: john bell [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 3:08 PM
> To: [EMAIL PROTECTED]
> Subject: org.apache.jasper.JasperException: Unable to compile 
> class for
> JSP
> 
> 
> Hi,
> 
> Running a web application on Tomcat 3.3 and trying to move to 
>  Tomcat 4.0.2 and now get these errors.  
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp
> \control\homecont$jsp.java:8: 
> Class or interface declaration expected.
> import javax.servlet.*;
> ^
> 
> C:\ApacheTomcat\jakarta-tomcat-4.0.2\work\localhost\coffee\jsp
> \control\homecont$jsp.java:14: 
> Superclass org.apache.jsp.HttpJspBase of class 
> org.apache.jsp.homecont$jsp not found.
> public class homecont$jsp extends HttpJspBase {
>  
> I guess it it some thing very basic - I have looked.
> 
> John.
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Trouble with my web.xml?

2002-02-18 Thread Randy Layman


You have a servlet-mapping before the last servlet.  With Tomcat 4
(and maybe 3.3) you have to have the elements in the right order.

Randy

> -Original Message-
> From: Greer, Darren (MED) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 1:09 PM
> To: '[EMAIL PROTECTED]'
> Subject: Trouble with my web.xml?
> 
> 
> Hey all.  While trying to run my application I am getting the 
> following
> err:
> #
> org.xml.sax.SAXParseException: The content of element type "web-app"
> must match
> "(icon?,display-name?,description?,distributable?,context-para
> m*,filter*
> ,filter-mapping*,listener*,servlet*,servlet-mapping*,session-c
> onfig?,mim
> e-mapping*,welcome-file-list?,error-page*,taglib*,resource-env
> -ref*,reso
> urce-ref*,security-constraint*,login-config?,security-role*,en
> v-entry*,e
> jb-ref*,ejb-local-ref*)".
> #
>  
> Here is my web.xml:
>  
> ##
> 
>  
>  Application
> 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd
>  ">
>  
> 
> Nod.to
> Individuality
> 
> Webmaster
> [EMAIL PROTECTED]
> 
> 
> dbConnect
> 
> to.nod.servlets.dbConnect
> 1
> 
>  
> 
> linksPortlet
>  
> to.nod.servlets.linksPortlet
> 
> 
> linksPortlet
> /links
> 
>  
> 
> Nod
> to.nod.servlets.Nod
> 
> 
> Nod
> /app
> 
> 
> ##
>  
> As far as I know, everything I have in my web.xml is setup correctly.
> Any insight would be great,
>  
> Darren
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Problem with SendMailServlet examples application

2002-02-18 Thread Randy Layman


Tomcat doesn't compile .java files into .class files.  As far as I
know, this is only a feature of Resin and none of the other servlet
containers.  You will need to use javac to convert your .java into a .class
and put that file into the WEB-INF/classes directory.

Randy


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 7:44 AM
> To: 'Tomcat Users List'
> Subject: Problem with SendMailServlet examples application
> 
> 
> Hi,
> 
> I am having a problem while executing one of the examples 
> that comes with the tomcat 4.0.1 and/or 4.0.2 distribution. 
> 
> After a clean installation of tomcat-401/402 i try to execute 
> the sample application /examples that comes with the 
> distribution. Everything goes fine with any of the other 
> appz, but in the JSP samples page the "Send Mail example" 
> application that gives me an error:
> 
> **
> Apache Tomcat/4.0.2 - HTTP Status 500 - Internal Server Error
> 
> --
> --
> 
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error 
> (Internal Server Error) that prevented it from fulfilling 
> this request.
> 
> exception 
> 
> javax.servlet.ServletException: Wrapper cannot find servlet 
> class SendMailServlet or a class it depends on
>   at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:871)
> ... ...
>   at 
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
> ection.java:194)
>   at java.lang.Thread.run(Thread.java:484)
> 
> 
> root cause 
> 
> java.lang.ClassNotFoundException: SendMailServlet
>   at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader.java:1394)
>   at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
> lassLoader.java:1243)
> ... ...
>   at 
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
> ection.java:194)
>   at java.lang.Thread.run(Thread.java:484)
> 
> *
> 
> In $CATALINA_HOME/webapps/examples/WEB-INF/classes directory 
> i don't have the SendMailServlet.class binary, only the 
> SendMailServlet.java source code.
> Any ideas?
> Best regards,
> Jose L. Rojano
> 
> 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Starting server during boot with access to X-Windows

2002-02-15 Thread Randy Layman


Another option for this is to upgrade to JDK 1.4 and then use the
headless option (check Java's docs for more info on how to do this).  Then
you can create images without the need for X.  (This doesn't work if you are
using GUI objects like Frame).

Randy


> -Original Message-
> From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 4:27 AM
> To: Tomcat Users List
> Subject: Re: Starting server during boot with access to X-Windows
> 
> 
> Hi
> 
> Have you tried Xvfb which is a virtual frame buffer ? I have 
> a Tomcat app which also needs access to X for drawing. We 
> simply start an Xvfb instance on a virtual display 
> (:1.0,:2.0, etc) and then use that. We 
> have an xvfb script in init.d for starting  which essentially 
> does this.
> 
> /usr/X11R6/bin/Xvfb :1.0 -screen 0 1280x1024x24 -shmem & # 
> Starts a virtual 24 bit device on :1.0 
> 
> and upon shutdown
> 
> kill -TERM `cat /tmp/.X1-lock`
> 
> Xvfb comes shipped with most ofthe Linux distros and is also 
> available if you look around for  Solaris and HP-UX.
> 
> Chris
> 
> >Hi,
> >
> >I have the following problem:
> >
> >we want to start tomcat during boot time. The servlets can 
> produce some 
> >charts thus the server needs access to X-Windows (thus the 
> server needs 
> >permission to do that). I do know how to start the server 
> during boot but how 
> >can it be assured that it will have access to X-Windows?
> >
> >
> >Zsolt
> >
> >-- 
> >Zsolt Koppany
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Error Executing JSPs

2002-02-14 Thread Randy Layman


Without modifying the startup script I don't believe this will help
- Tomcat ignores any CLASSPATH variable you might have set.  Instead, the
JAVA_HOME must be set so that JAVA_HOME/lib/tools.jar is valid, or tools.jar
needs to be copied (or symlinked) to the TOMCAT_HOME/lib/container
directory.

Randy


> -Original Message-
> From: KC Berg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 3:02 PM
> To: 'Tomcat Users List'
> Subject: RE: Error Executing JSPs
> 
> 
> One more thing make sure that the JAVA_HOME/lib/tools.jar is in your
> CLASSPATH.
> 
> -Original Message-
> From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 12:51 PM
> To: TomcatUser
> Subject: Error Executing JSPs
> 
> 
> 
> I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 
> linux machine
> with Sun J2SDK1.4.0.
> I installed the following rpms:
> regexp-1.2-1.noarch.rpm
> servletapi4-4.0.2-1.noarch.rpm
> xerces-j-1.4.4-1.noarch.rpm
> tomcat4-webapps-4.0.2-1.noarch.rpm
> tomcat4-4.0.2-1.noarch.rpm
> The installation is pretty straight forward but I'm having problems
> executing the JSP examples.
> The servlets executed just fine but when I try to run the JSP 
> examples I get
> the exeption bellow.
> 
> Any help on pointing out what I'm missing will be greatly apreciated.
> Thanks
> 
> 
> Arnaldo
> 
> ===
> type Exception report
> message Internal Server Error
> description The server encountered an internal error 
> (Internal Server Error)
> that prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: sun/tools/javac/Main
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:243)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:190)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBase
> .java:475)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170
> )
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:
> 1012)
>  at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1107
> )
>  at java.lang.Thread.run(Thread.java:484)
> 
> root cause
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>  at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:136)
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:177)
>  at
> org.apache.ja

RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Randy Layman


1.  I believe that you want a PrintWriter or add \n to the end of
the passwords (the user presses enter when running passwd).  This is
probably causing your symptom of nothing happening (passwd waiting for you,
you waiting for passwd).
2.  Only some users (maybe just root) can change other user's
passwords.  You will need to run Tomcat as root, which introduces its own
set of security issues.

Randy


> -Original Message-
> From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:53 PM
> To: Tomcat Users List
> Subject: changing a user's password on linux using jsp exec.
> 
> 
> Is it possible? I wrote this jsp file, but nothing
> seems to happen. Any ideas?
> 
> == Code ===
> <%@ page import="java.io.DataInputStream"%>
> <%@ page import="java.io.DataOutputStream"%>
> 
> <%@ page import="java.io.BufferedWriter"%>
> <%@ page import="java.io.FileWriter"%>
> <%@ page import="java.io.IOException"%>
> 
> 
> 
> <%
> 
> String username = "TestUserId";
> 
> String old_p_word = "oldPassword";
> 
> String new_p_word = "newPassword";
> 
>Process proc = null;
>   
>
> Runtime thisRun = Runtime.getRuntime();
> 
> String cmd = "passwd " + username;
> 
> proc = thisRun.exec(cmd); 
>
> 
> //Returns a Stream connected to the output of the
> child process. 
>
>  DataInputStream inputstream = new
> DataInputStream(proc.getInputStream());
>  //Reads output from process
>  
>  String procOutputline = inputstream.readLine();
>
> if (procOutputline != null)
> {
>out.println("Process output: " +
> procOutputline);
> }
> 
> //Returns a Stream connected to the input of the child
> process. 
> //we assume user exists and that the process will ask
> for the old password first.
> 
> DataOutputStream outputstream = new
> DataOutputStream(proc.getOutputStream());
> outputstream.writeBytes(old_p_word);
> 
>  
> //read output from process. We assume that the process
> will ask for the new password
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //send value of new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
> //Process should ask us to confirm the new password
> //Returns a Stream connected to the output of the
> child process. 
> 
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //confirm the new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
>  //Waits for the subprocess to complete. 
>  proc.waitFor();
> 
>  //Returns the exit value for the subprocess.
>out.println("Process existed with value: "
> +proc.exitValue());
>  
>  //Returns the an InputStream connected to the error
> stream of the child process. 
> DataInputStream errorinputstream = new
> DataInputStream(proc.getErrorStream());
>  String line = errorinputstream.readLine();
> 
>  if (line != null)
>  {
> throw new Exception("There was a problem
> changing password for : " + username + " --" + line);
>  }
> 
> //out.println("The output string is
> "+proc.toString()); 
> proc.destroy(); 
>   
>   
> %>
> 
> = End of code.
> 
> 
> 
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Application in Tomcat 3.2.2 wun work in J2EE?

2002-02-14 Thread Randy Layman


It looks like J2EE can't find the class user.UserBean.  I would
suggest you move that class into the WEB-INF/classes/user directory and try
again.

Randy


> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 9:26 AM
> To: Tomcat Users List
> Subject: Application in Tomcat 3.2.2 wun work in J2EE?
> 
> 
> Ok.
> I have decided to provide a clear example.
> 
> I have moved a webapp folder to J2EE's Public_html
> 
> there is this file, which works completely fine in tomcat.
> 
> 
> ==
> ==
> =
> 
> <%@ page import = "java.util.Calendar;" %>
> 
> 
> 
> 
> 
> 
> 
> 
>  <% if (!memberBean.isUserValid()){ %>
>  action="../jsp/login.jsp">
> 
> 
> 
> 
>"font-family:Arial;font-size:8pt">Login :  
>style="BORDER-BOTTOM: 1px
> solid; BORDER-LEFT: 1px solid; BORDER-RIGHT: 1px solid; 
> BORDER-TOP: 1px
> solid">
>   
> 
>   Password :
> style="BORDER-BOTTOM: 1px solid; BORDER-LEFT: 1px solid; 
> BORDER-RIGHT: 1px
> solid; BORDER-TOP: 1px solid">
>
> 
> 
> 
>   
>type=submit value=Login>
>   
>   
> 
>  
> 
> <%
> }
> else{
>   Calendar cal = Calendar.getInstance();
> %>
> 
> 
> 
> 
>"font-family:Arial;font-size:8pt">Login as :
>   
>Login time : 
><%=cal.getTime()%>
>   
> 
> 
> <%
> }
> %>
> 
> 
> 
> ==
> ==
> 
> 
> 
> 
> 
> 
> 
> but it simply wun work in J2EE's server. It gives an error liek this.
> 
> 
> ==
> ==
> ===
> 
> 
> 
> 
> A Servlet Exception Has Occurred
> Exception Report:
> org.apache.jasper.JasperException: user.UserBean
>   at
> org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepo
> sitory.java:18
> 3)
>   at
> org.apache.jasper.compiler.GetPropertyGenerator.generate(GetPr
> opertyGenerato
> r.java:102)
>   at
> org.apache.jasper.compiler.JspParseEventListener$GeneratorWrap
> per.generate(J
> spParseEventListener.java:831)
>   at
> org.apache.jasper.compiler.JspParseEventListener.generateAll(J
> spParseEventLi
> stener.java:241)
>   at
> org.apache.jasper.compiler.JspParseEventListener.endPageProces
> sing(JspParseE
> ventListener.java:197)
>   at 
> org.apache.jasper.compiler.Compiler.compile(Compiler.java:215)
>   at 
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:528)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:176)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:188)
>   at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
> .java:381)
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:458)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.access$0(Appli
> cationFilterCh
> ain.java:197)
>   at
> org.apache.catalina.core.ApplicationFilterChain$1.run(Applicat
> ionFilterChain
> .java:176)
>   at java.security.AccessController.doPrivileged(Native Method)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:172)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:215)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:2
> 46)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2314)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:164
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSi
> gnOn.java:368)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   

RE: Loading property files using ClassLoader.getSystemResource()

2002-02-13 Thread Randy Layman


First, you could use getResource instead of getSystemResource.
System Resource doesn't use the class loader delegation and only uses the
root class loader.  Second, if you don't want to change your code, you need
to modify the wrapper.properties file.  In there it builds up a classpath
that is then passed on to Java.  You could add your directory to that
classpath.

Randy


> -Original Message-
> From: Bryan Austad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 12, 2002 7:58 PM
> To: [EMAIL PROTECTED]
> Subject: Loading property files using ClassLoader.getSystemResource()
> 
> 
> I use ClassLoader.getSystemResource() to load property files 
> through out my
> application.  I then am able to set the directory of where 
> these property
> files are located in the CLASSPATH.  I then can load the 
> property files.
> With Tomcat 4.0.2 using the NT/2K service, and cannot specify 
> a directory of
> where these property files are, therefore they are not 
> loading.  I tried
> putting these resources(property files) in the 
> WEB-INF/classes directory,
> the %CATALINA_HOME%/classes directory, or the 
> %CATALINA_HOME%/common/classes
> directory.  Still I am unable to load the property files.  I 
> even tried the
> lib directories at all levels.  The only way I could get this 
> to work was
> modifying the catalina.bat file and appending to the 
> CLASSPATH.  I want it
> to work with the NT/2K service though.  Is it possible?  Or 
> am I going to
> need to redesign how I load the property files in my application?
> 
> Thanks
> Bryan
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Can't get IIS and tomcat to work PLEASE HELP !!!

2002-02-11 Thread Randy Layman


-Original Message-
From: Scott Adamson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 10:28 AM
To: Tomcat Users List
Subject: Can't get IIS and tomcat to work PLEASE HELP !!!


Can someone PLEASE help, I have been working on this for the best part of a
week, without making any progress - 
 
2002-02-08 15:15:12 127.0.0.1 - 127.0.0.1 80 GET /jakarta/isapi_redirect.dll
- 404 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.0)
 



First, if you want everyone on the list to read your messages then
you want to follow the recommended procedure and avoid sending HTML/RTF type
messages.  A number of people on the list can't read these messages without
a lot of effort.

Second, the 404 error that you have above is most likely the cause
of your problem.  It would indicate that IIS can't find the DLL.  Possible
reasons:
1.  The "jakarta" virtual directory wasn't created correctly (i.e.
misspelled or doesn't contain isapi_redirect.dll)
2.  The Windows file permissions doesn't allow whoever is running
IIS to see the dll file

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Re: jdbc driver deployment problem.

2002-02-11 Thread Randy Layman



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 8:16 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Re: jdbc driver deployment problem.
> 
> 
> Paul DuBois <[EMAIL PROTECTED]> wrote:
> 
> >>Q: How can I get Tomcat to see 3 specific jar files?  They're 
> >>already in my classpath.
> >>
> >>Details:
> >>Win2k, MSSQL 2k sp1, tomcat 4.0.1 (not a service), apache 
> 1.3.22 (service).
> >
> >Tomcat 4.x doesn't use your CLASSPATH.
> >
> >>
> 
> >
> >If you want it visible only to your application, put it in 
> the application's
> >WEB-INF/lib directory
> >
> >If you want it visible to all applications, put it in the 
> lib directory under
> >the Tomcat root.
> >
> >If you want it visible both to applications and to Tomcat, 
> put it in the
> >common/lib directory under the Tomcat root.
> >
> >
> >>
> >>Regards,
> >>-Phil
> 
> Thank you so much!  However, no workie.  
> I have copied these 3 jars to several locations (noted 
> below).  After copying to each location, I stop tomcat and 
> restart it (something wrong with reloading too, but I can 
> deal), but I don't remember in which order.  After all that, 
> absolutely no visible change in behavior.
> 
> c:\progra~1\tomcat4\common\lib

This should be c:\progra~1\tomcat4\lib\common

> c:\progra~1\tomcat4\lib

I believe the orginial poster intended for this to be
c:\progra~1\tomcat4\lib\apps

> c:\progra~1\tomcat4\webapps\sqaa\WEB-INF\lib

This should work for webapp sqaa

> c:\jdk1.3.1_01\lib
> c:\jdk1.3.1_01\jre\lib
> c:\j2ee\lib

You don't really want to use any of these, they will cause the same kinds of
problems as using the CLASSPATH, which is why Tomcat no longer supports that
configuration option.

Randy

> 
> 
> 
> -- 
> 
> 
> 
> 
> __
> Your favorite stores, helpful shopping tools and great gift 
> ideas. Experience the convenience of buying online with 
> Shop@Netscape! http://shopnow.netscape.com/
> 
> Get your own FREE, personal Netscape Mail account today at 
http://webmail.netscape.com/


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




  1   2   3   4   5   6   7   8   9   >