RE: What is that maximum file size tomcat can serve?

2003-07-31 Thread Robert Wray
Are you getting a java.lang.OutOfMemoryError ?
If so, could you post the entire error?
If not, in what manner is tomcat failing?
At 09:34 AM 31/07/2003 -0400, you wrote:

Howdy,
This would almost definitely be an OS/JDK limit somewhere along the
line.  Tomcat will just stream the file, so its size is not really an
issue AFAIK.
Yoav Shapira
Millennium ChemInformatics
-Original Message-
From: Lee Peik Feng [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 30, 2003 11:27 PM
To: Tomcat Users List
Subject: What is that maximum file size tomcat can serve?

Hi,
I have some mpeg file larger than 2GB and tomcat fail to serve
these
file.

What is that maximum file size tomcat can serve? Is there any other
limitation beside OS issue?
Where can I find more info regarding this issue?

Thanks.

Regards,
Peik Feng



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


Re: Custom Homepage

2003-07-22 Thread Robert Wray
You can redirect to your servlet by placing the following in your index file:

meta http-equiv=refresh content=0; URL=http://www.asite.com/anapp/aservlet/

(surrounded by  and )

At 01:23 PM 22/07/2003 +0600, you wrote:
hi

write a xml file in the webapps dir of tomcat for ur custom page as done in
the axis installation.
regards
thaya
- Original Message -
From: Me [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 4:23 AM
Subject: Custom Homepage
 I installed tomcat yesterday and i am totally confused about its config
 files. i am trying to change the default homepage so that tomcat calls a
 servlet in the preconfigured servet directory instead of the index.jsp
page.
 Is it possible
Thanks in advance
A tomcat newbie



Re: Problems with dir structure

2003-07-21 Thread Robert Wray
HTML files can be placed in a sub-directory of the webapps folder.
Servlets should be placed in a sub-directory of the webapps folder under 
/WEB-INF/classes

For example, if you installed tomcat to c:\tomcat and have an application 
called testApp you might have something like the following:

c:\tomcat\webapps\testApp\pictures\*.jpg
c:\tomcat\webapps\testApp\*.html
c:\tomcat\webapps\testApp\someotherdirectory\*.html
c:\tomcat\webapps\testApp\WEB-INF\web.xml
c:\tomcat\webapps\testApp\WEB-INF\classes\*.class
c:\tomcat\webapps\testApp\WEB-INF\classes\org\someorg\*.class
c:\tomcat\webapps\testApp\WEB-INF\lib\*.jar
At 01:27 PM 21/07/2003 -0700, you wrote:

Hello,

where do i put static html files and servlets so that the can be called in 
tomcat 4.1


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


RE: Location of servlets?

2003-07-17 Thread Robert Wray
Which means you need a sub-directory of your tomcat4 directory/webapps
perhaps your tomcat4 directory/webapps/hello
your compiled servlet should be placed in your tomcat4 
directory/webapps/hello/WEB-INF/classes
assuming that it isn't in a package. This is the location that tomcat looks 
for your servlets.

At 05:21 PM 17/07/2003 -0400, you wrote:
You put all your servlet mappings in the web.xml file.

check out the web.xml file in Tomcat's examples webapp.  The file is in 
/WEB-INF.

-Original Message-
From: Jeff Howard [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 5:15 PM
To: Tomcat Users List
Subject: Location of servlets?
Thanks for everyone's help earlier today. Upgrading
to JDK 1.4.2 from 1.2.2 allowed me to get Tomcat
running.
Now I'm trying the sample servlet Hello.java by calling it
from a simple webpage with the line:
http://localhost:8080/servlet/hello

I put the compiled servlet in my tomcat4
directory/webapps. When I click on the
link to call this servlet I get an HTTP Status 500
window from Tomcat saying no context configured to provess this
request. Makes me think it can't find the servlet.
I looked in the log files and there's an entrythat says:
MAPPING configuration error for request URI /Hello
Any ideas?

Thanks very much!

Jeff H.

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


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


Re: tomcat-WEB-INF

2003-07-17 Thread Robert Wray
This is right.

Tomcat checks the webapplication/WEB-INF/classes directory for servlet classes.
Tomcat checks the webapplication/WEB-INF/lib directory for library files.
A users web browser will check any file under the webapplication directory 
that is not under the webapplication/WEB-INF directory that is specified in 
an applet.

Why do you want to place your classes and libraries outside of the WEB-INF 
directory?

At 02:05 PM 17/07/2003 +0200, you wrote:
yeah, that`s what i mean. you have a structure like this 
/webapps/mywebapplication/newsubfolder and tomcat didn`t find the classes 
in the subfolder. is this right?
bernd
Elif Akten schrieb:

no,
I tried put some subfolders under my webapplication, and there was an 
class path error..

Original Message Follows

don`t really understand what you are doing. did you have a structure like 
this /webapps/mywebapplication/anotherwebapplication ?
that won`t go. it must be /webapps/mywebapplication
/webapps/anotherwebapplication  bernd
Elif Akten schrieb:

I have an webapplication under /webapp/mywebapplication,
I put all classes and lib files under WEB-INF directory classes  and lib 
directory, it works fine, but if I put a new directory under 
mywebapplication folder it gives NoClasssDef error.
what Shoul I do?


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


RE: XML DOCTYPE problem

2003-07-10 Thread Robert Wray
Have you tried moving your .dtd file to somewhere else? Try moving so that 
is accessible via web or say in the /WEB-INF/dtds/innovtech/datasheet.dtd 
of your application. Is there a particular reason you need to store all 
your dtd's in c:/dtds ?

At 07:42 AM 10/07/2003 -0700, you wrote:
This seems very strange. Almost any xml editor or xml system uses the public
or system identifier to point to a the DTD so it can vaildate the instance.
The public or system identifier is part of EVERY valid xml file. There must
be some way to handle it?? It's true that the jstl xml parser doesn't
validate it, that's not what I need since I will be producing valid xml, I
just need the jstl x:parse to ignore it so I don't get an error?? Someone
must have run into this before.
Thanks for the help though. I'll keep researching it.

-Brian

-Original Message-
From: Abid Ali Teepo [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 10, 2003 1:15 AM
To: Tomcat Users List
Subject: RE: XML DOCTYPE problem
And i think it even has to have a http:// in front

-Original Message-
From: Abid Ali Teepo
Sent: 10. juli 2003 09:38
To: Tomcat Users List
Subject: RE: XML DOCTYPE problem
I think the reference to a doctype has to be on the format
www.somesite.com/dtd/data.dtd or similar
Besides i don't thinkt it will actually validate against that
DTD anyway 
-Original Message-
From: Brian Menke [mailto:[EMAIL PROTECTED]
Sent: 10. juli 2003 07:21
To: Tomcat Users List
Subject: XML DOCTYPE problem
Hi everyone,

I have created a JSP page that use the jstl xml tag library, specifically
using
xpath. Everything works perfectly fine as long as I don't have a doctype
declaration like the following in my XML instance:
!DOCTYPE datasheet PUBLIC -//Innovtech//DTD datasheet//EN
c:/dtds/innovtech/datasheet.dtd
If I remove it, everything works great, but if I don't, I get a java error
like this:
org.apache.jasper.JasperException: Could not resolve entity reference:
///c:/dtds/innovtech/datasheet.dtd
I have to have the doctype in the xml. Does anyone know how I can fix this??

I did post this to the taglib email list, but it doesn't seem to get near
the traffic as this group.
Thanks!

-Brian



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


Re: how to create servlet?

2003-07-09 Thread Robert Wray
The SendMailServlet code should be located in 
tomcat_installation_directory\webapps\examples\WEB-INF\classes\SendMailServlet.java

The web.xml file in the WEB-INF directory should have a tags:
servlet
servlet-nameSendMailServlet/servlet-name
servlet-classSendMailServlet/servlet-class
/servlet
and
servlet-mapping
servlet-nameSendMailServlet/servlet-name
url-pattern/SendMailServlet/url-pattern
/servlet-mapping
which tell tomcat where to find the servlet when you request 
http://localhost:/examples/SendMailServlet

At 07:07 AM 09/07/2003 -0400, you wrote:
To create/use servlets, you just need to folow Sun's Servlet Specification.

http://java.sun.com/webservices/docs/1.1/tutorial/doc/
http://servlets.com/index.tea
http://moreservlets.com/
-Tim

kitty winslet wrote:
Hi..  I used the JSP example in my newly setup Tomcat server to send mail.
http://localhost:8080/examples/jsp/mail/sendmail.jsp
and after I type in info, the mail sent successfully and it go to the 
following page.
http://localhost:/examples/SendMailServlet
I took a look on the JSP (sendmail.jsp) content and found that it is the 
following statement make the mail works.  May I know what is 
SendMailServlet? and How to create it???
form method=POST action=\examples\SendMailServlet




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Robert Wray, Engineer
Forestry Products, Alberta Research Council
Phone: (780) 450-5045
Fax: (780) 450-5397
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat servlet shutting down Tomcat

2003-07-08 Thread Robert Wray
Questions:
Why is tomcat stopping?
What do the following 2 localhost_log statements mean in lay mans terms?
HostConfig[localhost]: HostConfig: Processing STOP
StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to be 
deallocated

How or where else should I be looking for more error information?

Are hidden non-jar/class files (inside WEB-INF) accessed by servlets using 
the web-app directory as a base directory?



Problem Details:
I am trying to access a mysql db via servlet. I have no problems creating 
HTML code to a file using a java application that accesses the db. I had no 
problems creating HTML code to a web browser using a servlet that accesses 
a local xml file. I attempted to merge the code by altering my servlet to 
include the following code in the doGet method:

QueryToHTML qTH=new QueryToHTML(query, new StreamResult(out));
try{
qTH.transform();
}catch(Exception e){out.println(invalid xsl transform);}
where originally the javax.xml.stream.StreamResult constructor used was 
taking in a java.io.File object, the new StreamResult constructor is using 
out which is of type java.io.PrintWriter which extends the java.io.Writer 
class.

When I access this code tomcat shuts down and my browser (IE6) gives me an 
error page of some sort and quickly redirects me to the icky xupiter.com 
site (OT: anyone know how to fix IE error page redirection?)

with debug set to 99, I get the following from my localhost_log:

HostConfig[localhost]: Deploying discovered web applications
StandardHost[localhost]: Mapping request URI '/test/connection/Press'
StandardHost[localhost]:   Trying the longest context path prefix
StandardHost[localhost]:  Mapped to context '/test'
HostConfig[localhost]: HostConfig: Processing STOP
HostConfig[localhost]:  Stopping background thread
HostConfig[localhost]: Deploying discovered web applications
HostConfig[localhost]: BACKGROUND THREAD Stopping
HostConfig[localhost]: Undeploying deployed web applications
HostConfig[localhost]: Undeploying web application at context path /manager
StandardHost[localhost]: Removing web application at context path /manager
HostConfig[localhost]: Undeploying web application at context path /test
StandardHost[localhost]: Removing web application at context path /test
StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to be 
deallocated
HostConfig[localhost]: Undeploying web application at context path /examples
StandardHost[localhost]: Removing web application at context path /examples
HostConfig[localhost]: Undeploying web application at context path /tomcat-docs
StandardHost[localhost]: Removing web application at context path /tomcat-docs
HostConfig[localhost]: Undeploying web application at context path /webdav
StandardHost[localhost]: Removing web application at context path /webdav
HostConfig[localhost]: Undeploying web application at context path
StandardHost[localhost]: Removing web application at context path
HostConfig[localhost]: Undeploying web application at context path /admin
StandardHost[localhost]: Removing web application at context path /admin

Also, the xslt file I am using is being kept in /WEB-INF/data/someTranform.xsl
from reading other peoples code I am assuming you refer to all files 
relative to the base application directory rather than relative to the 
servlet or base class directory. Is this correct? I haven't been able to 
find anywhere that specifically states this.

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


Re: images not appearing

2003-07-08 Thread Robert Wray
Is capitalization important? docbase instead of docBase?

At 03:09 PM 08/07/2003 -0400, you wrote:
I am deploying a test servlet on Tomcat 4.1.24.  Everything works great, the
servlet executes, I get results back at my browser, but none of the images
show up.
In conf/server.xml, I have added the following:

Context path= docbase=helloworld debug=99
Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_helloworld_log. suffix=.txt
  timestamp=true/
/Context
In webapps/hello/WEB-INF/web.xml, I have the following:

web-app
...
servlet
servlet-namehelloworld/servlet-name
servlet-classhelloworld.Hello/servlet-class
/servlet
servlet-mapping
servlet-namehelloworld/servlet-name
url-pattern//url-pattern
/servlet-mapping
/web-app

The image directory has been created in webapps/hello, and the requested
image does exist.  As part of trying to resolve this, have placed copies of
the image directory up and down the directory tree and tried calling the
image in the servlet in a number of ways (ie: /images/image.gif,
../images/image.gif, images/image.gif).  Nothing seems to work to get the
image to display!!!
Any and all ideas would be greatly appreciated at this point!!!

Mark
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Robert Wray, Engineer
Forestry Products, Alberta Research Council
Phone: (780) 450-5045
Fax: (780) 450-5397
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: images not appearing

2003-07-08 Thread Robert Wray
It seems that the problem I was having in another thread is partially 
related to this and I' would like to know how to fix it. It seems that with 
the current setup I have, the files (in this case an image file) is being 
referred to the base OS directory, (in my case c:\). So for my 
installation, if I wanted to use a file transform.xsl in an application 
test in subfolder transforms with a tomcat installation directory of 
c:\jakarta-tomcat-4.1.18, my servlet that wants to use that particular 
file would have to refer to it as 
/jakarta-tomcat-4.1.18/webapps/test/transforms/transform.xsl

Is this what should be happening? How do you set up the servlet such that 
you can use a path relative to the base war directory?

At 04:11 PM 08/07/2003 -0400, you wrote:
What happens if you type in browser:
http://helloworld/images/specificImage.jpg; or whatever the name of your
specific image is?


-Original Message-
From: Mark Biciunas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:08 PM
To: Tomcat Users List
Subject: Re: images not appearing
Again,  I have a transcription error.  In server.xml, it is actually
docBase so that shouldn't be the problem.
Mark Biciunas
[EMAIL PROTECTED]
- Original Message -
From: Robert Wray [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:58 PM
Subject: Re: images not appearing
 Is capitalization important? docbase instead of docBase?

 At 03:09 PM 08/07/2003 -0400, you wrote:
 I am deploying a test servlet on Tomcat 4.1.24.  Everything works great,
the
 servlet executes, I get results back at my browser, but none of the
images
 show up.
 
 In conf/server.xml, I have added the following:
 
  Context path= docbase=helloworld debug=99
  Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_helloworld_log. suffix=.txt
timestamp=true/
  /Context
 
 In webapps/hello/WEB-INF/web.xml, I have the following:
 
  web-app
  ...
  servlet
  servlet-namehelloworld/servlet-name
  servlet-classhelloworld.Hello/servlet-class
  /servlet
 
  servlet-mapping
  servlet-namehelloworld/servlet-name
  url-pattern//url-pattern
  /servlet-mapping
 
  /web-app
 
 
 The image directory has been created in webapps/hello, and the requested
 image does exist.  As part of trying to resolve this, have placed copies
of
 the image directory up and down the directory tree and tried calling the
 image in the servlet in a number of ways (ie: /images/image.gif,
 ../images/image.gif, images/image.gif).  Nothing seems to work to get the
 image to display!!!
 
 Any and all ideas would be greatly appreciated at this point!!!
 
 Mark
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Robert Wray, Engineer
 Forestry Products, Alberta Research Council
 Phone: (780) 450-5045
 Fax: (780) 450-5397
 [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Robert Wray, Engineer
Forestry Products, Alberta Research Council
Phone: (780) 450-5045
Fax: (780) 450-5397
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: images not appearing

2003-07-08 Thread Robert Wray
I have the following in my server.xml file:

  Host name=localhost debug=99 appBase=webapps
   unpackWARs=true autoDeploy=true
and

Context path=/test docBase=test debug=99 reloadable=true
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_test_log.
  suffix=.txt
  timestamp=true/
/Context
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html says that 
webapps (relative to my $CATALINA_HOME directory) is the base directory 
of my applications
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html says 
that test (relative to my appBase directory of the owning host) is the 
base directory for this web application

So shouldn't I be able to access my document using 
c:\jakarta-tomcat-4.1.18\webapps\test\ rather than c:\ ?
What is the possible problem? I'm on Windows 2000 Pro. running standalone 
with standard installation.

At 02:30 PM 08/07/2003 -0600, you wrote:
It seems that the problem I was having in another thread is partially 
related to this and I' would like to know how to fix it. It seems that 
with the current setup I have, the files (in this case an image file) is 
being referred to the base OS directory, (in my case c:\). So for my 
installation, if I wanted to use a file transform.xsl in an application 
test in subfolder transforms with a tomcat installation directory of 
c:\jakarta-tomcat-4.1.18, my servlet that wants to use that particular 
file would have to refer to it as 
/jakarta-tomcat-4.1.18/webapps/test/transforms/transform.xsl

Is this what should be happening? How do you set up the servlet such that 
you can use a path relative to the base war directory?

At 04:11 PM 08/07/2003 -0400, you wrote:
What happens if you type in browser:
http://helloworld/images/specificImage.jpg; or whatever the name of your
specific image is?


-Original Message-
From: Mark Biciunas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:08 PM
To: Tomcat Users List
Subject: Re: images not appearing
Again,  I have a transcription error.  In server.xml, it is actually
docBase so that shouldn't be the problem.
Mark Biciunas
[EMAIL PROTECTED]
- Original Message -
From: Robert Wray [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 3:58 PM
Subject: Re: images not appearing
 Is capitalization important? docbase instead of docBase?

 At 03:09 PM 08/07/2003 -0400, you wrote:
 I am deploying a test servlet on Tomcat 4.1.24.  Everything works great,
the
 servlet executes, I get results back at my browser, but none of the
images
 show up.
 
 In conf/server.xml, I have added the following:
 
  Context path= docbase=helloworld debug=99
  Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_helloworld_log. suffix=.txt
timestamp=true/
  /Context
 
 In webapps/hello/WEB-INF/web.xml, I have the following:
 
  web-app
  ...
  servlet
  servlet-namehelloworld/servlet-name
  servlet-classhelloworld.Hello/servlet-class
  /servlet
 
  servlet-mapping
  servlet-namehelloworld/servlet-name
  url-pattern//url-pattern
  /servlet-mapping
 
  /web-app
 
 
 The image directory has been created in webapps/hello, and the requested
 image does exist.  As part of trying to resolve this, have placed copies
of
 the image directory up and down the directory tree and tried calling the
 image in the servlet in a number of ways (ie: /images/image.gif,
 ../images/image.gif, images/image.gif).  Nothing seems to work to get the
 image to display!!!
 
 Any and all ideas would be greatly appreciated at this point!!!
 
 Mark
 [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Robert Wray, Engineer
 Forestry Products, Alberta Research Council
 Phone: (780) 450-5045
 Fax: (780) 450-5397
 [EMAIL PROTECTED]


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


Re: images not appearing

2003-07-08 Thread Robert Wray
Chapter 11 of  http://www.alexandria.ucsb.edu/dev/doc/java/servlet_2.3.pdf

I don't see how this spec applies to this problem however. Can someone 
please post one specific example of how to reference a file of some sort 
that is being requested from a servlet.

At 05:49 PM 08/07/2003 -0400, you wrote:
Hi,

I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of
/hello.  I also changed conf/server.xml to set the Context path=/hello.
When I go to my browser with http://192.168.1.3/hello, I get a directory
listing for /.  This is great because I can see the images directory (with
my images properly in place).  Unfortunately, the servlet doesn't execute at
all
I would like to think I would see the servlet executing.  Any ideas?  Also,
this solution is problematic anyways, as I need to parse all incoming
requests and respond to them, Only multimedia (images, etc.) should not be
handled by the servlet.
BTW, I can't find the spec SVR.11 - anyone have a link?

Mark Biciunas
[EMAIL PROTECTED]
- Original Message -
From: Stefan Radzom [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 4:44 PM
Subject: RE: images not appearing
  -Original Message-
  In webapps/hello/WEB-INF/web.xml, I have the following:
 
  web-app
  ...
  servlet
  servlet-namehelloworld/servlet-name
  servlet-classhelloworld.Hello/servlet-class
  /servlet
 
  servlet-mapping
  servlet-namehelloworld/servlet-name
  url-pattern//url-pattern
  /servlet-mapping
 
  /web-app
 
 

 You are trying to map every request to your helloworld servlet. This means
 really *all* requests (including images etc.) Try to be a bit more
specific,
 like url-pattern/helloworld/url-pattern . See the spec (SRV.11) for
more
 details on request mappings.

 -Stefan



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


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


Re: Tomcat servlet shutting down Tomcat

2003-07-08 Thread Robert Wray
Follow up:

Tomcat will shutdown when it executes a servlet that tries to reference a 
jdbc jar file that isn't loaded at startup.
Ensure you have your jdbc jar file in the WEB-INF/lib directory at startup.

Date: Tue, 08 Jul 2003 11:21:56 -0600
To: Tomcat Users List [EMAIL PROTECTED]
From: Robert Wray [EMAIL PROTECTED]
Subject: Tomcat servlet shutting down Tomcat
Questions:
Why is tomcat stopping?
What do the following 2 localhost_log statements mean in lay mans terms?
HostConfig[localhost]: HostConfig: Processing STOP
StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to 
be deallocated



Problem Details:
I am trying to access a mysql db via servlet. I have no problems creating 
HTML code to a file using a java application that accesses the db. I had 
no problems creating HTML code to a web browser using a servlet that 
accesses a local xml file. I attempted to merge the code by altering my 
servlet to include the following code in the doGet method:

When I access this code tomcat shuts down and my browser (IE6) gives me an 
error page of some sort and quickly redirects me to the icky xupiter.com 
site (OT: anyone know how to fix IE error page redirection?)

with debug set to 99, I get the following from my localhost_log:

HostConfig[localhost]: Deploying discovered web applications
StandardHost[localhost]: Mapping request URI '/test/connection/Press'
StandardHost[localhost]:   Trying the longest context path prefix
StandardHost[localhost]:  Mapped to context '/test'
HostConfig[localhost]: HostConfig: Processing STOP
HostConfig[localhost]:  Stopping background thread
HostConfig[localhost]: Deploying discovered web applications
HostConfig[localhost]: BACKGROUND THREAD Stopping
HostConfig[localhost]: Undeploying deployed web applications
HostConfig[localhost]: Undeploying web application at context path /manager
StandardHost[localhost]: Removing web application at context path /manager
HostConfig[localhost]: Undeploying web application at context path /test
StandardHost[localhost]: Removing web application at context path /test
StandardWrapper[/test:PressRequestServlet]: Waiting for 1 instance(s) to 
be deallocated
HostConfig[localhost]: Undeploying web application at context path /examples
StandardHost[localhost]: Removing web application at context path /examples
HostConfig[localhost]: Undeploying web application at context path 
/tomcat-docs
StandardHost[localhost]: Removing web application at context path /tomcat-docs
HostConfig[localhost]: Undeploying web application at context path /webdav
StandardHost[localhost]: Removing web application at context path /webdav
HostConfig[localhost]: Undeploying web application at context path
StandardHost[localhost]: Removing web application at context path
HostConfig[localhost]: Undeploying web application at context path /admin
StandardHost[localhost]: Removing web application at context path /admin


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


Re: (trying to understand) Tomcat class loading mechanism

2003-06-10 Thread Robert Wray
At 03:02 PM 10/06/2003 +0100, you wrote:
Hi,

I'm trying to understand the tomcat class loading mechanism and have read
through the Class Loader HOW-TO (
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html ).
How does one make additional jars available to tomcat? I understand one can
add them to WEB-INF/lib,but there are sometimes that approach does not work.
Here's a scenario:
I'm using tomcat 4.1.24 with jdk 1.4.1_02. One of the required libraries for
my web app is oc4j.jar. If I put that oc4j.jar into the WEB-INF/lib, tomcat
throws the following error on startup:
=
Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
WebappClassLoader:
validateJarFile(D:\jakarta-tomcat-4.1.24\bin\..\webapps\graphics\WEB-INF\lib
\oc4j.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class: javax/servlet/Servlet.class
=
Upon checking, I found oc4j.jar has javax.servlet.Servlet and I suspect it
does not adhere to Servlet Spec 2.3 (but probably something earlier than
that).
I would think javax.servlet.Servlet is being used by tomcat, why is it 
included in the jar file?
Try extracting the jar file, deleting all the unnecessary files (those that 
are already included in another base jar that tomcat uses), and recompile 
it into a new jar file. Replace the old oc4j.jar with the new one.

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


ClassNotFoundException and FileNotFoundException

2003-06-09 Thread Robert Wray


Question:
Is there a tag I need to place in a config file, web.xml file, or somewhere 
else to allow an applet access to use/find data/class (non-servlet) files 
in a local (non-ROOT) WEB-INF subdirectory?



Problem:
For non-servlets or servlets that have dependencies on other local 
classes/files, I am not able to locate files other than servlets specified 
in the local WEB-INF/web.xml file.
Files found in the webapps/ROOT/WEB-INF/lib and 
webapps/ROOT/WEB-INF/classes are being found and used by my server. So I am 
able to make an applet dependant on certain .jar .xml or .class files work 
if I place those files in the proper subdirectory under ROOT/WEB-INF . The 
applet will work if files are place in the same base local directory as the 
applets' .html file, but it will not work when placed in the local WEB-INF 
subdirectories.



Example:
Using: Windows2K Pro. SP3 ; Tomcat 4.1.18 ; Java 2 SDK, SE, 1.4.0
I have a file arc.war with a structure as follows:
META-INF/
META-INF/MANIFEST.MF
Time.html
index.html
WEB-INF/
WEB-INF/data/Time.xml
WEB-INF/lib/
WEB-INF/lib/jcommon-0.8.0.jar
WEB-INF/classes/
WEB-INF/classes/connectionServlet.class
WEB-INF/classes/arcChart.class
WEB-INF/web.xml
I place the .war file into the webapps directory and it expands on startup 
assuming it hasn't already.

index.html refers to the servlet connectionServlet returning html and 
having no dependencies. This servlet works.

Time.html containing an applet using archive=jcommon-0.8.0.jar and 
code=arcChart
arcChart.class uses the file Time.xml
The applet gives a java.lang.ClassNotFoundException or 
FileNotFoundException for the .jar .class and .xml files.
If I move these 3 files to the arc.war base directory or the same 
subdirectories but using webapps/ROOT as the base directory, the applet works.

From the localhost_log I get messages including:

HostConfig[localhost]: Expanding web application archive arc.war
StandardHost[localhost]: Installing web application at context path /arc 
from URL file:c:/jakarta-tomcat-4.1.18/webapps/arc
WebappLoader[/arc]: Deploying class repositories to work directory 
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\arc
WebappLoader[/arc]: Deploy class files /WEB-INF/classes to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\classes
WebappLoader[/arc]: Deploy JAR /WEB-INF/lib/jcommon-0.8.0.jar to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\lib\jcommon-0.8.0.jar
StandardManager[/arc]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/arc]: Seeding of random number generator has been completed
StandardWrapper[/arc:default]: Loading container servlet default
StandardWrapper[/arc:invoker]: Loading container servlet invoker

So I know the .jar file is being loaded without any error messages...



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


Applet exceptions in non-ROOT WEB-INF subdirectories

2003-06-06 Thread Robert Wray
Newbie here so I'm probably missing something really basic... I've been 
looking at this for a few days and decided to be enlightened.



Question:
Is there a tag I need to place in a config file, web.xml file, or somewhere 
else to allow an applet access to use/find data/class (non-servlet) files 
in a local (non-ROOT) WEB-INF subdirectory? If not, what am I doing wrong?



Problem:
For non-servlets or servlets that have dependencies on other local 
classes/files, I am not able to locate files other than servlets specified 
in the local WEB-INF/web.xml file.
Files found in the webapps/ROOT/WEB-INF/lib and 
webapps/ROOT/WEB-INF/classes are being found and used by my server. So I am 
able to make an applet dependant on certain .jar .xml or .class files work 
if I place those files in the proper subdirectory under ROOT/WEB-INF . The 
applet will work if files are place in the same base local directory as the 
applets' .html file, but it will not work when placed in the local WEB-INF 
subdirectories.



Example:
Using: Windows2K Pro. SP3 ; Tomcat 4.1.18 ; Java 2 SDK, SE, 1.4.0
I have a file arc.war with a structure as follows:
META-INF/
META-INF/MANIFEST.MF
Time.html
index.html
WEB-INF/
WEB-INF/data/Time.xml
WEB-INF/lib/
WEB-INF/lib/jcommon-0.8.0.jar
WEB-INF/classes/
WEB-INF/classes/connectionServlet.class
WEB-INF/classes/arcChart.class
WEB-INF/web.xml
I place the .war file into the webapps directory and it expands on startup 
assuming it hasn't already.

index.html refers to the servlet connectionServlet returning html and 
having no dependencies. This servlet works.

Time.html containing an applet using archive=jcommon-0.8.0.jar and 
code=arcChart
arcChart.class uses the file Time.xml
The applet gives a java.lang.ClassNotFoundException or 
FileNotFoundException for the .jar .class and .xml files.
If I move these 3 files to the arc.war base directory or the same 
subdirectories but using webapps/ROOT as the base directory, the applet works.

From the localhost_log I get messages including:

HostConfig[localhost]: Expanding web application archive arc.war
StandardHost[localhost]: Installing web application at context path /arc 
from URL file:c:/jakarta-tomcat-4.1.18/webapps/arc
WebappLoader[/arc]: Deploying class repositories to work directory 
C:\jakarta-tomcat-4.1.18\work\Standalone\localhost\arc
WebappLoader[/arc]: Deploy class files /WEB-INF/classes to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\classes
WebappLoader[/arc]: Deploy JAR /WEB-INF/lib/jcommon-0.8.0.jar to 
c:\jakarta-tomcat-4.1.18\webapps\arc\WEB-INF\lib\jcommon-0.8.0.jar
StandardManager[/arc]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/arc]: Seeding of random number generator has been completed
StandardWrapper[/arc:default]: Loading container servlet default
StandardWrapper[/arc:invoker]: Loading container servlet invoker

So I know the .jar file is being loaded without any error messages...
Virtually all my settings are standard from setup except for the automatic 
reloading when something changes so I don't have to always restart the server.



I'm open to suggestions or any links anyone could provide for further 
reading on this matter. I'm just not sure where else to look.



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