tomcat 3.2 and 3.2.1 slow

2001-01-13 Thread Mohan Surender

Tomcat gurus,
I have been facing this peculiar problem with tomcat 3.2 and 3.2.1 for a
while.

when i run tomcat from jbuilder3 i notice a significant delay in running
jsps ( the num guess jsp for example takes 50 seconds every first time i
start tomcat and run it)
the same jsp executes very fast in tomact 3.1.
any ideas 

thanks for your time

mohan

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




Query regarding applet calling

2001-01-13 Thread Ayyappa



i am calling a applet from a .jsp page in the 
following manner

applet code="crossword.Test" 
height="200" width="200"/applet
i am having the .class file of the applet in a 
package inside the classes folder in WEB-INF. It says that class Test not 
found
I even tried using the jsp:plugin tag but 
it asks me to install the java plugin. can i call the applet using the applet 
tag above or is it important to use the jsp:plugin tag.

Ayyappa

email-id  [EMAIL PROTECTED]




Re: Query regarding applet calling

2001-01-13 Thread William Brogden



 Ayyappa wrote:
 
 i am calling a applet from a .jsp page in the following manner
 
 applet  code="crossword.Test"  height="200" width="200"
 /applet
 i am having the .class file of the applet in a package inside the
 classes folder in WEB-INF. It says that class Test not found
 I even tried using the jsp:plugin tag but it asks me to install the
 java plugin. can i call the applet using the applet tag above or is it
 important to use the jsp:plugin tag.
 
 Ayyappa
 
 email -id  [EMAIL PROTECTED]

The way you have this set up now, the browser will 
request the class files from the server using
the url for the servlet. Servers are forbidden to directly
serve anything from WEB-INF. This same problem also affects 
image files. One solution is to define a base tag in the
head area of the page you generate - this tag gives a href
to a location the server CAN serve files from - anywhere you
would put a normal static HTML page.


-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




Re: Install the Binary Version of Tomcat

2001-01-13 Thread Kief Morris

Shicheng TIAN(CMS) typed the following on 01:20 AM 1/13/2001 +
Hello there,
I followed the instruction below trying to install Tomcat (on Windows 2000),
but failed to do so?!
...
D:\jakarta-tomcat-3.2.1\bin\startup

a new window (Tomcat 3.2) would appear for one/two seconds, then
it killed itself immediately!?

Try opening a DOS window, change to the D:\jakarta-tomcat-3.2.1\bin
directory, and run: "tomcat run"

This should run tomcat in the same window, so you can see the error
messages. Also check the logs in jakarta-tomcat-3.2.1\logs.

Kief


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




Re: tomcat 3.2 and 3.2.1 slow

2001-01-13 Thread Kief Morris

Mohan Surender typed the following on 03:46 AM 1/13/2001 -0600
when i run tomcat from jbuilder3 i notice a significant delay in running
jsps ( the num guess jsp for example takes 50 seconds every first time i
start tomcat and run it)
the same jsp executes very fast in tomact 3.1.

Is it also slow when you run 3.2.1 independently of jbuilder? I've found
running Tomcat under a debugger is fantastically slow (not really worth 
it IMO).

Kief


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




RE: Catalina configuration

2001-01-13 Thread Federico Delpino


Craig McClanahan wrote

 Which build of Tomcat 4 are you using?  I would
 suggest trying this with beta-1.  I
 know that there have been changes to the
 handlePageException() method, but that was
 quite a while ago.  This kind of error might also
 occur if you've got an old jsdk.jar
 or servlet.jar file in your
 $JAVA_HOME/jre/lib/ext directory.

 Craig McClanahan

Hello Craig,
 You did see right, too garbage in my
.../jre/lib/ext directory.
It was enough renaming that in order to solve problems and
disperse
some irritating  fog.
Thanks again.
federico



--
Federico Delpino   Tel. 39-51-20-95722
Osservatorio Astronomico di BolognaFax. 39-51-20-95700
via Ranzani,1 - 40126 Bologna, Italy   e-mail:
[EMAIL PROTECTED]


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




Re: need help using bean

2001-01-13 Thread Kervin Pierre

William Brogden wrote:
 
 Kervin Pierre wrote:
 
  Hello,
 
  I can't seem to get this to work. The bean compiles OK but when I try to
  load it, I get a "Error: 500" below saying that my package couldn't be
  loaded.
 
  ...
  org.apache.jasper.JasperException: Unable to compile class for
  
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002findex_0002ejspindex_jsp_0.java:15:
  Package edu.fit.eng.networkdb.sqlConnObj not found in import.
  import edu.fit.eng.networkdb.sqlConnObj.*;
  ...
 
  My jsp page begins like this
 
  %@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%
  jsp:useBean id="connBean" class="sqlConnBean" scope="page" /
 
 When you name your class in the useBean tag you MUST use the
 complete package - it doesn't matter that you imported the package
 

Thanks,

I tried this but I'm getting the same error.

[...]
org.apache.jasper.JasperException: Unable to compile class for
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002findex_0002ejspindex_jsp_0.java:15:
Package edu.fit.eng.networkdb.sqlConnObj not found in import.
import edu.fit.eng.networkdb.sqlConnObj.*;
[...]

My page reads now

%@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%
jsp:useBean id="connBean"
class="edu.fit.eng.networkdb.sqlConnObj.sqlConnBean" scope="page" /
[...]


What does this error mean? How do I fix it?

-Kervin

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




Re: tomcat 3.2 and 3.2.1 slow

2001-01-13 Thread Stein M. Eliassen

Kief Morris wrote:
 
 Mohan Surender typed the following on 03:46 AM 1/13/2001 -0600
 when i run tomcat from jbuilder3 i notice a significant delay in running
 jsps ( the num guess jsp for example takes 50 seconds every first time i
 start tomcat and run it)
 the same jsp executes very fast in tomact 3.1.
 

When running Tomcat 3.2.1 in Visual Age for Java on Linux, the numguess took
less then five secs. on the first run, and after that it is no delay.


 Is it also slow when you run 3.2.1 independently of jbuilder? I've found
 running Tomcat under a debugger is fantastically slow (not really worth
 it IMO).
 

What debugger, or IDE, is that?

Use taglibs and beans if you want to avoid some of that jsp-recompiling time.


Regards
Stein

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




RE: tomcat 3.2 and 3.2.1 slow

2001-01-13 Thread andyjee

Cannot start tomcat under windows 98? attached is log file. Already
increased environment variable to 2016mb. Got any ideas

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 10:04 AM
To: [EMAIL PROTECTED]
Subject: Re: tomcat 3.2 and 3.2.1 slow


Mohan Surender typed the following on 03:46 AM 1/13/2001 -0600
when i run tomcat from jbuilder3 i notice a significant delay in running
jsps ( the num guess jsp for example takes 50 seconds every first time i
start tomcat and run it)
the same jsp executes very fast in tomact 3.1.

Is it also slow when you run 3.2.1 independently of jbuilder? I've found
running Tomcat under a debugger is fantastically slow (not really worth
it IMO).

Kief


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

 jasper.log
 servlet.log
 tomcat.log

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


How to setup servlet path other than the default /servlet

2001-01-13 Thread Tong Sun

Hi,

How can I setup servlet path other than the default /servlet? 

I've got a web package that use /newZone as its servlet location other
than the default /servlet, and I'm having a hard time configuring tomcat
that way. This is what I've done:

in server.xml add in the appropriate location:

Context path="/newZone" 
 docBase="/java/e-site/web/newZone" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context

in tomcat.conf add in the appropriate location:

Alias /newZone "/java/e-site/web/newZone"
Directory "/java/e-site/web/newZone"
Options Indexes FollowSymLinks
/Directory
ApJServMount /newZone/* /newZone

and the servlet class are put in
/java/e-site/web/newZone/WEB-INF/classes/

when visiting http://localhost/newZone/HelloWorldExample

I got 

The requested URL /newZone/HelloWorldExample was not found on this
server.

please tell me what else I should have done and (maybe) what I had done
is not necessary.

thank a lot

-- 
SUN, Tong

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




Error: starting Tomcat?!

2001-01-13 Thread Shicheng TIAN(CMS)

Hello there,
From the dir D:\jakarta-tomcat-3.2.1\bin, I opened a DOS window and issued
the commend: "tomcat run"; then I found "tomcat" was not started, instead, I
got the following error:

D:\jakarta-tomcat-3.2.1\bintomcat run
Including all jars in D:\jakarta-tomcat-3.2.1\lib in your CLASSPATH.

Using CLASSPATH:
D:\jakarta-tomcat-3.2.1\classes;D:\jakarta-tomcat-3.2.1\lib\ant
.jar;D:\jakarta-tomcat-3.2.1\lib\jasper.jar;D:\jakarta-tomcat-3.2.1\lib\jaxp.jar
;D:\jakarta-tomcat-3.2.1\lib\parser.jar;D:\jakarta-tomcat-3.2.1\lib\servlet.jar;
D:\jakarta-tomcat-3.2.1\lib\webserver.jar;C:\jack\lib\jack.jar;C:\jack\lib\jackd
ev.jar;;.;C:\JMF21~1.1_B\lib\sound.jar;C:\JMF21~1.1_B\lib\jmf.jar;.;D:\website\a
pps\jdbc\server;C:\jdk1.3\jre\classes;D:\jakarta-tomcat-3.2.1\lib\ant.jar;D:\jak
arta-tomcat-3.2.1\lib\jasper.jar;D:\jakarta-tomcat-3.2.1\lib\jaxp.jar;D:\jakarta
-tomcat-3.2.1\lib\parser.jar;D:\jakarta-tomcat-3.2.1\lib\servlet.jar;D:\jakarta-
tomcat-3.2.1\lib\webserver.jar;C:\jdk1.3\lib\tools.jar

Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.Miss
ingResourceException: Can't find bundle for base name
org.apache.tomcat.resource
s.LocalStrings, locale en_GB
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at org.apache.tomcat.util.StringManager.init(StringManager.java:115)
at
org.apache.tomcat.util.StringManager.getManager(StringManager.java:26
0)
at org.apache.tomcat.startup.Tomcat.clinit(Tomcat.java:24)
the error is: Can't find bundle for base name org.apache.tomcat.resource
s.LocalStrings, locale en_GB?!

BTW, I haven't got a dir "jakarta-tomcat-3.2.1\logs"; is there anything wrong
with
my installation?

Any advice to get around this problem, please!

Thanks,

Shicheng


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




URGENT - jsp isn't working at all !!!!

2001-01-13 Thread Kim, KyoungA



I 've just installed Tomcat3.1 +Apache3.1.14 
on Solaris2.5.1(X86).
I could see http://localhost/Examplesand Survlets 
Examples are working very well but JSP Examples are not working at 
all.
And there is one thing I feel strange 
is,
when I execute an JSP example and 
thenTomcat tries to generate a java file in $TOMCAT-HOME/work directory 
and
the jave file is being increased and it makes 
system full.(The jave filewas almost 500 MB...)
So, I had to shutdown the tomcat and remove 
the jave file.(The otherJSP files are same...)

For examples, 
This isthe JSP file that I want to 
execute.

 %@page import="java.util.Date"% 
html body The 
current time is %= new Date().toString() % 
/body /html

This is the JAVA that tomcat made

import javax.servlet.*;import 
javax.servlet.http.*;import javax.servlet.jsp.*;import 
javax.servlet.jsp.tagext.*;import java.io.PrintWriter;import 
java.io.IOException;import java.io.FileInputStream;import 
java.io.ObjectInputStream;import java.util.Vector;import 
org.apache.jasper.runtime.*;import java.beans.*;import 
org.apache.jasper.JasperException;import java.util.Date;

public class 
_0002fsimpleJSP_0002ejspsimpleJSP_jsp_0 extends HttpJspBase {

 static 
{ } public 
_0002fsimpleJSP_0002ejspsimpleJSP_jsp_0( ) { 
}

 private static boolean 
_jspx_inited = false;

 public final void 
_jspx_init() throws JasperException { }

 public void 
_jspService(HttpServletRequest request, HttpServletResponse 
response) throws IOException, 
ServletException {

 
JspFactory _jspxFactory = null; 
PageContext pageContext = null; 
HttpSession session = null; 
ServletContext application = null; 
ServletConfig config = null; 
JspWriter out = null; Object page 
= this; String _value = 
null; try {

 
if (_jspx_inited == false) 
{ 
_jspx_init(); 
_jspx_inited = 
true; 
} 
_jspxFactory = 
JspFactory.getDefaultFactory(); 
response.setContentType("text/html;charset=8859_1"); 
pageContext = _jspxFactory.getPageContext(this, request, 
response, 
"", true, 8192, true);

 
application = 
pageContext.getServletContext(); 
config = 
pageContext.getServletConfig(); 
session = 
pageContext.getSession(); 
out = pageContext.getOut();
 
// HTML // begin 
[file="/home/jakarta-tomcat/webapps/JSPExamples/simpleJSP.jsp";from=(0,33);to=(3,20)] 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");
 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");
 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");
 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");
 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is ");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
"); 
out.write("\r\nhtml\r\nbody\r\nThe current time is 
");   
 out.write("\r\nhtml\r\nbody\r\nThe current 
time is 
");..


Re: need help using bean

2001-01-13 Thread karanmalhi

Please tell me if you have made your own web application or using the
default and have you put your directories(packages) in the classes directory
of the web-inf directory
i.e.
your package should be placed here
tomcat_home\webapps\web-inf\classes

or if you make your own webapplication e.g. kervin  then

tomcat_home\webapps\kervin\web-inf\classes

hope this will help you

karan
- Original Message -
From: "Kervin Pierre" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 14, 2001 1:09 AM
Subject: Re: need help using bean


 William Brogden wrote:
 
  Kervin Pierre wrote:
  
   Hello,
  
   I can't seem to get this to work. The bean compiles OK but when I try
to
   load it, I get a "Error: 500" below saying that my package couldn't be
   loaded.
  
   ...
   org.apache.jasper.JasperException: Unable to compile class for
  
JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f
index_0002ejspindex_jsp_0.java:15:
   Package edu.fit.eng.networkdb.sqlConnObj not found in import.
   import edu.fit.eng.networkdb.sqlConnObj.*;
   ...
  
   My jsp page begins like this
  
   %@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%
   jsp:useBean id="connBean" class="sqlConnBean" scope="page" /
 
  When you name your class in the useBean tag you MUST use the
  complete package - it doesn't matter that you imported the package
 

 Thanks,

 I tried this but I'm getting the same error.

 [...]
 org.apache.jasper.JasperException: Unable to compile class for

JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f
index_0002ejspindex_jsp_0.java:15:
 Package edu.fit.eng.networkdb.sqlConnObj not found in import.
 import edu.fit.eng.networkdb.sqlConnObj.*;
 [...]

 My page reads now

 %@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"%
 jsp:useBean id="connBean"
 class="edu.fit.eng.networkdb.sqlConnObj.sqlConnBean" scope="page" /
 [...]


 What does this error mean? How do I fix it?

 -Kervin

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



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




Tomcat 4.0-b1, mod_webapp documentation

2001-01-13 Thread Matthias Brantner

-BEGIN PGP SIGNED MESSAGE-

Hi,

does anybody no about a good documentation of Jakarta-Tomcat 4.0-b1 together 
with Apache 1.3. I'am looking for all kinds of documentation, like 
installing, configuring,... .
Thanx in advance for your help.

- -- 

mfg/best regards
Matthias Brantner

- --
Tel.:   0621-4055337
Mobil.: 0179-1006325
PGP:http://www.m-brantner.de/MatthiasBrantner.asc
- -
-BEGIN PGP SIGNATURE-
Comment: URL: http://www.m-brantner.de

iQEVAwUBOmDPD4wOhqJXuTDPAQHKywgAmJkYoKLYj4zPhCays1nFq0sfchotY93+
0vPrpbk2/9MCvmZ95ZYTWsPla9MKp0Oa5/wWSRMUi1izmMloygV+wq5LAioSnE73
1bsMAy275dgYpfxQ4phB3EPSpXcT8ig2PE0If79dQ/QwB0udOVltC+HQfHBG0PAp
fdCpKpRQpsE2Bvj1QP0Ei6y5p8SSa/rtFMUmbCJP7U/habCUJkfn6ldgS+bTyXHI
JQvlYD9RAQ6+xDcIIfQvniWNN4U59FJkwQC8h5UGInaOxNwPSO9y7bKn4EfFYe2a
SUkjDExiSRIo4tzJMG1tsc6M7LG2lkH7imU4CyvFrxNu8fEI8LvQQw==
=oHbT
-END PGP SIGNATURE-

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




Tomcat 4.0 m5 and Tomcat 4.0 b-1 question

2001-01-13 Thread Jayson Falkner

I was trying out the new features on Tomcat 4.0 m5 and it was working
well.Recently I switched computers and I now get the error included at the
bottom of this message.

Has anyone encountered this before? I think I might be missing a imple
install issue. All the servlets run fine. The error only happens on JSP.

JAVA_HOME and CATALINA_HOME are set correctly and I am not running it with
Apache.

Thanks,
Jayson

/// Error messge //

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\tomcat\work\localhost\examples\_0002fjsp_0002fdates_0002fdate_0002ejsp
date_jsp_0.java:164: Incompatible type for method. Explicit cast needed to
convert java.lang.Throwable to java.lang.Exception.
if (pageContext != null) pageContext.handlePageException(t);
 ^
1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:294)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:478)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:449)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:159)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:171)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:328)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:407)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:215)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:251)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:464)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2041)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:414)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
818)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:897)
at java.lang.Thread.run(Thread.java:484)




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




Tomcat+Apache+JBoss: Is this possible?

2001-01-13 Thread Chris Mayes

Hello, all.  Is it possible to get an EJB container stuffed into Tomcat
while still piping stuff through mod_jk to Apache?  I have the
Tomcat+Apache thing working quite nicely (After dinking with it for a
couple of days and finally getting it in working order, I discovered
that the .debs for Tomcat and mod_jk had finally made it into the Woody
tree :-P), but we're starting to gear up to use EJBs for a project at
work (whether we actually need to or not is another matter...), so I'd
like to set up an EJB container to practice making EJBs (I just started
learning about 'em on Thursday, so I have a lot to learn).

I wasn't able to find a thread on this or the JBoss list where someone
had actually gotten the three pieces to work together (Though someone
did ask whether it was possible on the JBoss list... no definitive
response).  

So, before I go and wreck my perfectly happy Apache+Tomcat setup, has
anyone gotten EJB working correctly without messing up the mod_jk link?
 I don't particularly care which EJB container I use (though I do
require that it actually works, of course) since I don't plan on using
EJBs for any of my personal projects (It'd be overkill for 99% of what
I do).  It's just for practice.

If it's not possible, is there a simple way to have an instance of
Tomcat+JBoss working alongside an instance of Apache+Tomcat?  Would
this be a resource hog?

TIA,

-Chris 

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




RE: Install the Binary Version of Tomcat

2001-01-13 Thread Craig O'Brien

I had a similar problem and found it to be a semicolon at the end of my
classpath.  Look at your classpath very closely.  I am running tomcat 3.2.1
on Windows 2000 server with no problems.

I start tomcat by simply double-clicking on the startup.batch file in the
tomcat\bin directory.  This opens its own dos window. Shut it down by
double-clicking on the shutdown.batch file which closes the dos window.  You
can make a shortcut on your desktop.

Hope this helps.

Craig

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Install the Binary Version of Tomcat


Shicheng TIAN(CMS) typed the following on 01:20 AM 1/13/2001 +
Hello there,
I followed the instruction below trying to install Tomcat (on Windows
2000),
but failed to do so?!
...
D:\jakarta-tomcat-3.2.1\bin\startup

a new window (Tomcat 3.2) would appear for one/two seconds, then
it killed itself immediately!?

Try opening a DOS window, change to the D:\jakarta-tomcat-3.2.1\bin
directory, and run: "tomcat run"

This should run tomcat in the same window, so you can see the error
messages. Also check the logs in jakarta-tomcat-3.2.1\logs.

Kief


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


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




Re: Install the Binary Version of Tomcat

2001-01-13 Thread Filip Hanik

you probably don't have JAVA_HOME set properly.
set your JAVA_HOME variable and everything should be fine

Filip

Filip Hanik
Technical Architect
[EMAIL PROTECTED]


"Windows is a 32 bit patch to a 16 bit GUI based on a 8 bit operating system
written for a 4 bit processor by a 2 bit company which can not stand 1 bit
of competition."
- Original Message -
From: "Craig O'Brien" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, January 13, 2001 5:29 PM
Subject: RE: Install the Binary Version of Tomcat


I had a similar problem and found it to be a semicolon at the end of my
classpath.  Look at your classpath very closely.  I am running tomcat 3.2.1
on Windows 2000 server with no problems.

I start tomcat by simply double-clicking on the startup.batch file in the
tomcat\bin directory.  This opens its own dos window. Shut it down by
double-clicking on the shutdown.batch file which closes the dos window.  You
can make a shortcut on your desktop.

Hope this helps.

Craig

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Install the Binary Version of Tomcat


Shicheng TIAN(CMS) typed the following on 01:20 AM 1/13/2001 +
Hello there,
I followed the instruction below trying to install Tomcat (on Windows
2000),
but failed to do so?!
...
D:\jakarta-tomcat-3.2.1\bin\startup

a new window (Tomcat 3.2) would appear for one/two seconds, then
it killed itself immediately!?

Try opening a DOS window, change to the D:\jakarta-tomcat-3.2.1\bin
directory, and run: "tomcat run"

This should run tomcat in the same window, so you can see the error
messages. Also check the logs in jakarta-tomcat-3.2.1\logs.

Kief


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


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


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




Re: Blending webapps with HTML files

2001-01-13 Thread Martin Smith

Isn't that just the result of the http server config?  If the web server
sends all requests to the servlet/JSP container, I think it will handle
them OK in the webapp area.
mfs


David Wall wrote:

 I'm new to Tomcat 3.2.1 and Servlet 2.2 in particular, having just
 come from JRun before webapps made their debut. I'm struggling with
 the "best practices" people are using for storing their JSPs and Java
 class files in the webapps directory, while storing images and html
 files in the web server directory root. For example, in Apache 1.3.14,
 my document root is htdocs and I am putting some files there for
 serving by apache,
 like: htdocs/images/a.gifhtdocs/images/b.gifhtdocs/index.jsp --
 empty dummy file workaround so that Apache will send a request for "/"
 to Tomcat's ROOT index.jsphtdocs/app.jshtdocs/app.cssetc... And in my
 webapps under Tomcat I have: webapps/ROOT/index.jsp-- the actual
 index.jsp served up when I enter "/" for
 apachewebapps/ROOT/WEB-INF/classes/   (all of my class files needed
 just by the index.jsp
 
file)webapps/pub/index.jspwebapps/pub/company.jspwebapps/pub/news.jspwebapps/pub/WEB-INF/classes/
 (all the class files needed by 'pub' application, even though they are
 the same as those for ROOT). My questions are: 1) This separation of
 the JSP files from stuff like images, javascripts, stylesheets when
 deployed seems like a pain since they need to be in the same directory
 when I'm using my editing tools (like Dreamweaver).  Only when I
 deploy do I need to move the static files to the apache locations and
 the JSPs to the Tomcat webapps area.  Don't others find this to be a
 pain, or I am just not doing it right? 2) The ROOT and pub
 applications are really not distinct applications, only a separation
 of JSPs and such from the root to a public directory.  I had this
 subdirectory structure back before webapps, and they were done to
 organize the JSPs into logical groups like how all HTML sites are
 done.  They are not put into separate subdirectories because they are
 separate webapps.  Can a single webapp support multiple directories,
 or at least a directory and all subdirectories?  Perhaps ROOT is just
 abnormal because everybody wants a page to be displayed when they
 enter your URL like http://myeastside.com/ 3) When Java classes are
 shared by several webapps, they have to appear in each of the webapps'
 WEB-INF/classes directories.  Is that what people are doing, or are
 they JARing them up and then putting them in a common location (like
 Tomcat's 'lib') to be shared by all? Any thoughts will help.  The
 separation forced by the webapps concept seems broken to me since it
 seems unlikely that web servers and their standard document root
 processing is not going to go away anytime soon (we still have PHP,
 CGI, images, etc. besides JSPs). David


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




Re: Catalina configuration

2001-01-13 Thread Craig R. McClanahan

Federico Delpino wrote:

 Craig McClanahan wrote

  Which build of Tomcat 4 are you using?  I would
  suggest trying this with beta-1.  I
  know that there have been changes to the
  handlePageException() method, but that was
  quite a while ago.  This kind of error might also
  occur if you've got an old jsdk.jar
  or servlet.jar file in your
  $JAVA_HOME/jre/lib/ext directory.
 
  Craig McClanahan

 Hello Craig,
  You did see right, too garbage in my
 .../jre/lib/ext directory.
 It was enough renaming that in order to solve problems and
 disperse
 some irritating  fog.
 Thanks again.
 federico


For general assistance in configuring Tomcat 4.0, I just did a major update on
the documentation bundle.  Among other things, it is also visible online now,
at:

http://jakarta.apache.org/tomcat

Follow the links at the bottom of the page.

Craig



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




need help with caching!!!

2001-01-13 Thread Erick Papadakis

hello all

i have implemented a servlet where the images are
coming from the database. this means my url will look
normally like this,

   mysite.com/servlets/getimage?record_id=123

but now the problem is that the client's browsers do
not cache this. if i try images from a physical disk
from my website in the webserver, then it works well -
both IE and netscape remember the images!!! with
servlets as abvoe, everytime i reload my servlet in my
browser, my servlet calls the database. this is
affecting the performance.

is there anything i can do to achieve this caching?   

 1. either on the server side - is there any cache
class i can look at?

 2. or the client side - i mean some header tags or
anything like that which will tell the browser to
cache the images?

any other ideas also much much appreciated!!!

thanks people/erick


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: Tomcat 4.0 m5 and Tomcat 4.0 b-1 question

2001-01-13 Thread Craig R. McClanahan

Jayson Falkner wrote:

 I was trying out the new features on Tomcat 4.0 m5 and it was working
 well.Recently I switched computers and I now get the error included at the
 bottom of this message.

 Has anyone encountered this before? I think I might be missing a imple
 install issue. All the servlets run fine. The error only happens on JSP.

 JAVA_HOME and CATALINA_HOME are set correctly and I am not running it with
 Apache.


Check your $JAVA_HOME/jre/lib/ext directory for obsolete copies of servlet.jar.  The
method signatures for some of the servlet API classes are different in the most recent
release, and you *must* use the correct servlet.jar file for the current version of
Tomcat 4.0.


 Thanks,
 Jayson


Craig McClanahan



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




Re: Tomcat 4.0-b1, mod_webapp documentation

2001-01-13 Thread Craig R. McClanahan

Matthias Brantner wrote:

 -BEGIN PGP SIGNED MESSAGE-

 Hi,

 does anybody no about a good documentation of Jakarta-Tomcat 4.0-b1 together
 with Apache 1.3. I'am looking for all kinds of documentation, like
 installing, configuring,... .
 Thanx in advance for your help.


The only real "docs" for this at the moment are some comments in the
"conf/server.xml" file that tell you what needs to be done.  This information
will be supplemented shortly.

For general Tomcat 4.0 configuration information, I've recently done a major
update to the existing docs, as well as made them available on the Tomcat web
site at:

http://jakarta.apache.org/tomcat


 - --

 mfg/best regards
 Matthias Brantner


Craig McClanahan



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