It is platform independent, but not guaranteed to work in the case that
your webapp is running directly out of a .war file. In that case, doing
sc.getRealPath(/) will return null since the app does not exist on the
file system.
So, as long as you make sure that your app is deployed from a
http://www.acg-gmbh.de/mod_jk/
Jake
At 11:32 AM 7/10/2002 -0700, you wrote:
Liam, this is steve Burrus, and I posted yesterday to the newsgroup asking
someone
(I forgot who it was that I emailed!!!) to please send me the link to
access the
mod_jk.dll file to connect the Tomcat Server with the
Hi Clay,
Notice that your docBase is DBTest and you go on to mention:
...In my web.xml for my application
($CATALINA_HOME/webapps/test/WEB-INF/web.xml) I have added...
Did you just create an arbitary directory called DBTest under webapps,
but then use a directory called test under webapps to
Hi Lenny,
Well, unless you use the RepositorySelector technique (which I've only
heard about and don't know how to implement) you will need to put
log4j-1.2.5.jar in your WEB-INF/lib directory. You can put your
log4j.properties in WEB-INF/classes and it should get used the first time a
new
/2002 -0600, you wrote:
There is no platform independent manner to specify JNI code library
locations.
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 10 July, 2002 9:54 PM
To: Tomcat Users List
Subject: RE: PATH issue
It is platform independent, but not guaranteed
in the log file, is the some little step that I may have
CG missed?
CG clay
CG -Original Message-
CG From: Jacob Kjome [SMTP:[EMAIL PROTECTED]]
CG Sent: Monday, July 08, 2002 7:04 PM
CG To: Tomcat Users List
CG Subject:Re: going crazy with DBCP
CG Try using Tomcat
-dbcp.jar with the 4.1.3 version made everything work again.
JK I guess this definitely means a regression was introduced into
JK commons-dbcp in 4.1.6.
JK Jake
JK Tuesday, July 02, 2002, 2:09:40 AM, you wrote:
RM Jacob Kjome wrote:
Hi,
I'm just checking to confirm whether others that used DBCP
Try this with Either Tomcat-4.1.3 which I've tested with the instructions
at the link below and know it to work. Also, you might try Tomcat-4.1.7
whch just came out. I had tried Tomcat-4.1.6 and it failed so, presumably,
the nightly builds around the time of 4.1.6 development were broken as
Try using Tomcat 4.1.3 or 4.1.7 (not anything in between because I think
DBCP was broken for a bit there). Everything should work just great.
Jake
At 04:36 PM 7/8/2002 -0700, you wrote:
I will pay someone to help me at this point, I am not rich but I know when
to admit when need help. I am
At 11:05 PM 7/8/2002 -0400, you wrote:
Hey Clay, here's something I noticed. With Tomcat 4.0.x the place to
put your jars for server wide access is in %CATALINA%\lib, not
%CATALINA%\common\lib. (the common\lib is the new location for 4.1.x)
This is not at all correct.
%CATALINA%\common\lib
Hello Remy,
Cool, that did it! Just by replacing the 4.1.6 version of
commons-dbcp.jar with the 4.1.3 version made everything work again.
I guess this definitely means a regression was introduced into
commons-dbcp in 4.1.6.
Jake
Tuesday, July 02, 2002, 2:09:40 AM, you wrote:
RM Jacob Kjome
Hello Kevin,
See this:
http://marc.theaimsgroup.com/?l=tomcat-userm=102348915728231w=2
and this:
http://marc.theaimsgroup.com/?l=tomcat-userm=102383138524775w=2
also this:
http://marc.theaimsgroup.com/?l=tomcat-userm=101631189730747w=2
They might be what you are looking for.
Jake
Hello rory,
Yes,
Follow the instructions in the following archived message and you will
be up and running:
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
I also wrote a snippet of code here:
http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2
Jake
Monday, July
Hello Luminous,
Works fine for me using Tomcat-4.1.6, Apache-2.0.39, and j2sdk1.4.0_01
on Win2k.
Jake
Monday, July 01, 2002, 2:28:22 PM, you wrote:
LH I am using new directory for each version of tomcat.
LH But the problem, that I noticed is that tomcat4.1.x
LH does not like JDK1.4. Is it
Hi,
I'm just checking to confirm whether others that used DBCP connection
pooling successfully in Tomcat-4.1.3 are running into problems when using
Tomcat-4.1.6? That is the case for me. I'll check again tomorrow to see
if I did anything stupid, but the only difference seems to be the
first of all, if WEB-INF/files is where you *always* want to write stuff,
why not do something more portable like this:
servlet
servlet-nameparts/servlet-name
servlet-classPartsDepotServlet/servlet-class
init-param
param-namephysicalFilePath/param-name
That error happens when you define the following for JMX beans support: in
server.xml.
Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
and you
You can grab the binary for mod_jk for Apache 2.0.39 from here:
http://www.acg-gmbh.de/mod_jk/
just grab mod_jk.dll, put it in your Apache2/modules directory, configure
everything else like it says on the flashguides page, and you should be up
and running.
Jake
At 01:24 PM 6/29/2002 +,
how do I enter this? Maybe Im putting it in wrong..
where do I put this?. and do I just copy and paste it?
Include c:/apps/jakarta-tomcat-4.0.3/conf/auto/mod_jk.conf
can you have a look pls
From: Jacob Kjome
[EMAIL PROTECTED]
Reply-To: Tomcat Users List
[EMAIL PROTECTED]
To: Tomcat Users List
Hi Jack,
Tomcat ignores your classpath. Believe me, this solves a *ton* of
problems. If you want to use the classpath, go back to using Tomcat
2.x.x. I wouldn't give it the time of day now that 3.3.x and 4.x.x are
out. Seriously, do yourself a favor and just copy the jar into
Hello Ignacio,
I don't think yours statement that jk2.properties is on port 8019 by
default. If you comment all the stuff out in jk2.properties, Tomcat
just generates a jk2.properties.save which has the following for me:
#AUTOMATICALLY GENERATED
#Tue Jun 25 11:09:03 CDT 2002
maxThreads=75
Check out the Tomcat 4.x.x conf/web.xml. You can use that format and that
ordering and apply it to your own app's web.xml. I don't think that Tomcat
3.3.x uses a conf/web.xml.
Also, take a look at the dtd by downloading it. It specifies the tag
order. Use the URI in your dtd declaration
Milt,
You can set up a static mod_jk.conf file for Apache to load that includes
references to contexts that you may not have installed yet, but you plan on
installing. Then, once it is actually installed in Tomcat, the redirector
will get the request to Tomcat just fine. Just plan a bit in
Hello Les,
I run Tomcat 4.1.3 under j2sdk1.4_01 with classes12.zip (renamed to
.jar with is absolutely required). I keep it in
TOMCAT_HOME/common/lib. I connect to a pretty old Oracle 8 database
and a newer Oracle 8i database. Tomcat and Oracle are *not* on the
same machine. I have never
Hello Chris,
FYI,
the format used for .jar files is zip. So, if you have a zip file,
you can just rename it to .jar and that will be *exactly* the same
thing as if you unzipped and then jarred the files.
Jake
Tuesday, June 25, 2002, 11:07:18 AM, you wrote:
CF Its not that it doesn't accept
datasource
LH or just Class.forName() with the Oracle driver?
LH Les
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: 25 June 2002 15:59
To: Tomcat Users List
Subject: Re[2]: tomcat won't load oracle driver
Hello Les,
I run Tomcat 4.1.3 under j2sdk1.4_01
Hello Mark,
A binary version of mod_jk for Windows that works with Apache 2.0.39 has been made
available at this
site:
http://www.acg-gmbh.de/mod_jk/
Note that the only reason the old module didn't work with Apache
2.0.39 is that something changed in Apache, not the Tomcat connectors.
The
Hello Johnny,
Use context-param's in your web.xml.
For instance:
context-param
param-namedatabaseUrl/param-name
param-valuejdbc:postgresql:msrd/param-value
/context-param
Context parameters can be added to your web.xml near the top of the
file after display-name and
part). Also, I'm trying to build for
FM Solaris 8. Got a binary for that? I do, but mine doesn't seem to be
FM working.
FM Thanks,
FM -Mark
FM -Original Message-
FM From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
FM Sent: Monday, June 24, 2002 9:39 AM
FM To: Tomcat Users List
FM Subject
Hello Kumar,
Try using the username parameter.
Also, the solution that has worked flawlessly for me is here:
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
Note that this is with the new 4.1.x versions of Tomcat. If you are
using 4.0.x versions, your mileage may vary.
Jake
Hello Rory,
Actually, a working version of mod_jk2.dll has already been provided
by Apache here:
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/nightly/win32/
However, the real issue now is how does one configure all this? Rory,
you would be providing a super service to a lot
With the old ajp13 handler, you used to be able to write
tomcatAuthentication=false and take the Basic Authentication
information from Apache and read it in Tomcat. If you didn't do this,
tomcatAuthentication would default to true and a call to
request.getRemoteUser() would return null if the
Hello Ignacio,
Sorry Ignacio,
I should have mentioned what server I am running. I am running
Tomcat-4.1.3 fronted by Apache 2.0.39 on Win2k using mod_jk (not
mod_jk2) compiled for 2.0.39.
Jake
Monday, June 24, 2002, 2:57:22 PM, you wrote:
De: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Enviado
Hi,
I've been using the ant tasks for the manager app and they are really
slick. Makes testing much easier.
However, how does one dynamically install an application when one has
to specify context stuff in the server.xml or in a standalone
[myapp].xml (using Tomcat 4.1.3)?
I'd like to run my
Hello Avnish,
here's the scoop.
For each context you want to map from Apache to Tomcat, do the
following (examples based on the Win32 platform):
First, the common stuff at the top of the mod_jk.conf file (Note that
you would put the following info in the mod_jk.conf which
would be included at
Ok, I've seen others clamoring for this in other messages. Surely
there is someone out there who has successfully gotten mod_jk2 to work
for them. All I ask for is a sample configuration example with *all*
files required. I just did this for another person on the list having
trouble with
Hello John,
That isn't an issue anymore. The nightly binaries were rebuilt.
However, that only includes mod_jk2, not mod_jk. The fact that Rory
got Apache running at all means he was using a binary compatible with
Apache 2.0.39.
Now if someone can provide a configuration example for how
Hi,
There seems to be sparse documentation on how to configure mod_jk2.
Does anyone have some example configuration files and instructions on
use? I'll keep searching and post the example myself if I find it.
thanks,
Jake
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional
Hello Jerry,
don't you need to do getSession(true) in order for getSession to
return a non-null session whether one exists currently or not?
If you just call getSession(), it will return null if the current
session is null (not created yet).
Jake
Thursday, June 20, 2002, 2:17:45 PM, you
something wrong..however I don't know what it means..
Michael
On Saturday, June 15, 2002, at 06:28 PM, Jacob Kjome wrote:
The servlet-name parameter inside servlet-mapping must match up
*exactly* with the servlet-name inside the servlet element.
So, try the follwing exactly as written
/
/Context
!-- Tomcat Examples Context --
--
Sorry about this...I really want to develop webapps in Java!! Hmm maybe I
should buy WebObjects ... hehe
Michael
On Friday, June 14, 2002, at 11:54 PM, Jacob Kjome wrote:
You need to either provide a servlet mapping for your Hi
Not sure if this is true, but somewhere I read that you have to have both
manager and admin roles assigned to the user attempting access to the
manager context.
Jake
At 04:37 PM 6/14/2002 +0530, you wrote:
Hi,
I have installed my tomcat 4.0.3. i had changed the user name, password and
role
AM 6/14/2002 +0200, you wrote:
Jacob Kjome wrote:
The definitive solution has been provided by Leslie Hughes
[EMAIL PROTECTED] here:
snip
So, please, do yourselves a favor and ignore the docs for a bit on this
one. Copy the configuration line for line that Leslie has provided.
Then, of course
You need to either provide a servlet mapping for your Hi servlet or
access it like this:
http://localhost:8080/mine/servlet/Hi
Tomcat provides a default servlet mapping of /servlet/* in its web.xml in
TOMCAT_HOME/conf
Also, you probably want to keep your servlet-name values non-spaced. For
I get mine printed out with the following just inside my Host element...
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true
forwardAll=false/
Jake
At 08:47 PM 6/14/2002 -0400, you wrote:
Trying to run Tomcat 4.0.3 with APcahe 1.3 on a lInux box
Hello Steven,
Actually, you can leave the directory as-is, but refer to it like
this:
CATALINA_BASE=C:\Apache\Tomcat~1
Do the same for the other environment vars. That give Tomcat a
directory to look at with no spaces and NT will resolve the directory
to the proper C:\Apache\Tomcat 4.0
Jake
Hello Bernard,
Well, that is almost certainly not the case. Here is where my
catalina install is:
C:\Program Files\Apache Group\Jakarta\tomcat-4.1.3
Here is how my CATALINA_HOME environment var is set up:
CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.3
I have absolutely no issues
Hello Remy,
Related to this, how do I use the Coyote JK2 connector? Where are the
documentation and examples of the jk workers and conf
files...especially since, by default, the JK AJP 1.3 connector is
commented out in the default server.xml in 4.1.3beta.
!-- Define a Coyote/JK2 AJP 1.4
Hello Remy,
Actually, I think I am using a 1.2.0 version, but it doesn't seem to
be able to use the AJP 1.4 protocol. Does the CoyoteConnector support
the 1.3 protocol, or the just 1.4?
Jake
Thursday, June 13, 2002, 4:42:21 PM, you wrote:
RM Jacob Kjome wrote:
Hello Remy,
Related
The definitive solution has been provided by Leslie Hughes
[EMAIL PROTECTED] here:
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
That is for the following configuration:
Tomcat 4.0.3 LE JDK 1.4 Build
mySQL 4.0.1 alpha
mm.mysql 2.0.14
Jakarta-Commons projects
DBCP
I'm looking for a way to set unique system properties for any
individual webapp. Maybe an example of what I need will help to
explain:
For instance, I want to set a [unique_webapp_key].log.home system
property.
so, I would do:
System.setProperty([unique_webapp_key].log.home)
I don't want to
ChemInformatics
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:48 PM
To: Tomcat Users List
Subject: query unique identifier of a webapp from init()?...
I'm looking for a way to set unique system properties for any
individual webapp
Hello John,
Well, I have been using the classes12.jar in TOMCAT_HOME/common/lib.
I've used it with both the JNDI javax.sql.DataSource deal provided by
the Jakarta-Commons project and another connection pooler. I've never
had a single problem. I've used JDK-1.3.x and JDK-1.4 and haven't had
to
Hello Ryan,
Check this out:
http://www.peacetech.com/java/files/apache/tomcat/
I haven't used it (nor have I used JNDIRealm at all so far), but I
grab stuff that looks like useful info off the list and put it in my
Vault ( http://www.personalmicrocosms.com/ ) from time to time. Hopefully it is
Browsers opened from an opened browser window using something like ctrl+n
or window.open() will open within the same memory space. Browser opened by
clicking on the icon are opened up in a new memory space. However, I have
also seen some weirdness with session sharing in, supposedly,
Do you use Class.forName(MyClass) to load classes anywhere? If so, your
libraries in WEB-INF/lib or WEB-INF/classes that attempt to load the
caching library in TOMCAT_HOME/lb (called TOMCAT_HOME/shared/lib in 4.1.x)
or TOMCAT_HOME/common/lib won't be able to find it because that package was
2 things I see wrong with your scenario.
1. When you refer to a servlet, you don't append .class to the end of
the servlet name. For instance, you wrote:
http://localhost:80/examples/servlet/abc.class
which should be:
http://localhost:80/examples/servlet/abc
2. You are going through port
Sorry, I was tired when I wrote this and my answer makes no
sense. Obviously, the context is lt2001 and the syntax provided by
Shapira is propper. The only other reason why this might not be working is
that the path in which Tomcat is installed contains spaces. If so, an you
are on a
the /servlet/ mapping is only available off the root of the context.
It should work if you go to:
http://localhost:8080/servlet/ltshoppingcart.Login
Jake
At 11:02 PM 6/6/2002 -0500, you wrote:
Thanks for the help, but I'm still having problems.
The package of the servlet I'm trying to access
At 02:00 AM 6/5/2002 +0200, you wrote:
Hello Adam,
AP I just began playing with the manager app and am confused on how it
deploys a new web application.
AP Here is the lowdown.
AP /opt/jakarta-tomcat-4.0.3/webapps/trips-dev in order to set up a
development environment.
AP This worked, the
All Tomcat is doing is expanding the directory. If it was Web-inf there,
then that is what it will be expanded as. One thing to do is to make sure
that Windows explorer isn't just displaying it that way even though it is
properly upper-cased. You might want to look at it though the command
Hello Patrick,
Do you have DOM packages in WEB-INF/lib or WEB-INF/classes? If so,
this violates the Sun classloading spec and, as of Tomcat 4.0.2, this
is enforcedalthough not very cleanly until the latest betas of
Tomcat 4.0.4 and 4.1. The solution is to move your DOM classes into a
Hello Sean,
See this email. It has links to a few resources that tell about a
proven way to use DBCP.
http://marc.theaimsgroup.com/?l=tomcat-userm=102242646003357w=2
Take a look at your parameters. For instance, user should be
username. Just check and double check that all your
Is finep trying to load the Oracle driver using Class.forName(String
aClassName)?
You should be using
Thread.currentThread().getContextClassLoader().loadClass(String aClassName);
That will find your Oracle Driver across multiple classloaders. It is the
Java2 way of loading classes and
Hello Christian,
By chance, are the libraries that you put in TOMCAT_HOME/lib refer to
libraries that you put in your webapp's WEB-INF/lib? If so, this just
isn't going to work. The WEB-INF/lib libraries can see libraries in
TOMCAT_HOME/lib, but not the other way around.
For instance, the
See...
http://marc.theaimsgroup.com/?l=tomcat-userm=102230335008606w=2
and
http://marc.theaimsgroup.com/?l=tomcat-userm=102230398708809w=2
which both reference...
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
it provides a pretty definitive and working solution for using
Hello Vincent,
Check out Barracuda at http://barracuda.enhydra.org/
Barracuda uses XMLC ( http://xmlc.enhydra.org/ ) to do DOM manipulation to
get the data where you need it in your document. Actually, it extends
XMLC and provides another level of abstraction. You can use a
templating system
Hello Mariano,
I use BitMechanic's JDBCPool
http://www.bitmechanic.com/projects/jdbcpool/
It works great and is very fast. I have also been trying to use
Tomcat standard pooling mechanism, but haven't been very successful.
I'll be sticking with BitMechanic for now.
Jake
Friday, May 24, 2002,
I think you will fine a fine solution here:
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
This solved the issue for me...although I am using the latest nightly
builds of Barracuda, which use DBCP by default, but you can also use DBCP
with Tomcat 4.0.3 as long as you add the
I'm answering my own question on this. I found my solution here:
http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2
The one thing I added was a slightly different Java code snippet since I
return a Connection rather than grab the DataSource and use the connection
right there:
I've got a question about setting up a connection pool using DBCP.
Back when I was testing the nightly build from 20020404, I could swear
I was getting back a PooledDataSource. Now with todays build
(20020523), I am getting back a BasicDatasource.
The code that I have looks like:
Hello John,
I wouldn't mind see your working version even if it is copy/pasted.
At least we know that it works and can extend from that example.
thanks,
jake
Wednesday, May 22, 2002, 10:07:59 AM, you wrote:
-Original Message-
From: Marc Logemann [mailto:[EMAIL PROTECTED]]
Sent:
Hello Michael,
Check out http://barracuda.enhydra.org/cvs_source/Barracuda/index_details.html
I am a developer of Barracuda and can tell you that it is a fantastic
way to develop servlets based on Model 2. It is actually inspired by
the way Swing apps work. It uses Components to deal with the
you need to put $JAVA_HOME/lib/tools.jar in your classpath.
Jake
At 06:24 PM 5/17/2002 +0530, you wrote:
Hi gary .. i think for this problem u need to include the tools.jar file in
u'r class path !! try including that if u haven't and then we can see what
else can be done if it still doesn't
Hello JoaquĆn,
This is a nice thought, but I can disable it by turning off javascript
or using a browser that doesn't even support javascript. Javascript
is to be used for functional enhancements. It shouldn't be used as a
backstop for error handling or any other function that you need to
Hello Adam,
I believe you just set the target of the form:
form target=[target frame name here]
Jake
Friday, May 17, 2002, 3:31:59 PM, you wrote:
AP This is an html question, but I figure a lot of you have run into this. I have a
2 frame page
AP with a top and bottom frame. The top frame
Most likely, you have XML or DOM libraries in your webapp. They are not
allowed there according to the Sun classloading spec and, beginning with
Tomcat 4.0.2, this is enforced by Tomcat. They must be in the parent
classloader in $TOMCAT_HOME/lib or $TOMCAT_HOME/common/lib or as part of
the
Hello Fritz,
You need to set tomcatAuthentication=false on your ajp13 connector
config in server.xml (if not present, it defaults to true)...
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10
Hmm... you should have the following as the base minimum for any
context...in your case, the ROOT context:
IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /var/log/tomcat/jk.log
JkLogLevel emerg
# Static files
Alias / /usr/local/tomcat/webapps/ROOT
try http://www.multitask.com.au/default.html?page=mtSOS
jake
At 05:07 PM 5/13/2002 -0700, you wrote:
Hi
Does anybody help me finding out right commercial supporting company
for apache +tomcat on windows other than covalent ?
thanks in advance
BM
--
To unsubscribe, e-mail: mailto:[EMAIL
Hello Lloyd,
On your Connector tag in Server.xml, you need to have
tomcatAuthentication=false. It defaults to true. If true,
getRemoteUser() will give you a null value. When false, you will get
the remote user from Apache.
For example:
Connector
Hello joshua,
Well, actually, all you've done here is specify a context called
servlet which has it's docbase sitting on the file system as
/spike/servlet. This would assume that you are on a Unix system and
you have a directory called spike off the root of your sytem with a
directory called
fixing this would be trivial).
jw Josh
jw - Original Message -
jw From: Jacob Kjome [EMAIL PROTECTED]
jw To: Tomcat Users List [EMAIL PROTECTED]
jw Sent: Tuesday, May 07, 2002 12:01 PM
jw Subject: Re[2]: Tomcat redirect
Hello joshua,
Well, actually, all you've done here is specify
Hello Helen,
The media player is a client side thing. It has no clue whatsoever
that you sent the media content via a servlet or a static file. You
just have to make sure that when you send the content in the response
that you set the appropriate mime-type. If the user has media player
Hello Sankaranarayanan,
Just download the full version. The only difference is that if you
are using JDK1.4, the JDK already contains some of the necessary
libraries so they don't need to be included in Tomcat, but it won't
hurt anything if they are. Just use the full version and you won't
Hello Kris,
You probably could use a servlet to serve up the .jar file for the
applet. In the archive attribute, you could have a call to the
servlet which would serve up the .jar file from somewhere other than
the public area of the webapp. However, they'd still be able to go to
that address
Hello Bharanidharan,
Don't confuse the system file path with the URL path.
What URL is in your browser on the page that contains the
window.open()?
window.open will try to find the page relative to your domain root.
If you are at:
http://www.myserver.com/mywebapp/servlet/myservlets.login
Hello Emilio,
Are you using Apache and mod_jk to front requests to Tomcat? If so,
you need to protect the static files or directories using Apache
directives. Only if you forward *all* requests to Tomcat or just go
directly to Tomcat on port 8080 will the
previously mentioned solutions work.
to comprehend the url path.
MB thanks
MB bharani
MB -Original Message-
MB From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
MB Sent: Monday, May 06, 2002 1:08 PM
MB To: Tomcat Users List
MB Subject: Re: file path problem
MB Hello Bharanidharan,
MB Don't confuse the system file path with the URL
/servlet-mapping
MB how do i map the html file in my NewLogin.class servlet. i still dont get
MB how the webpath is mapped to the system file path...
MB sorry for the inconvenience.
MB please let me know..
MB thanks
MB bharani.
MB -Original Message-
MB From: Jacob Kjome [mailto
Hi Ryan,
Check the archives for the subject: mod_jk for Apache 2 on Win32?. You
probably have issues with your mod_jk.conf and/or your
workers.properties. I posted my files there as examples of something that
works. Of course you need to adapt it for your own purposes, but it should
get
You put .jsp files in the same place as you would put the .html files for
your webapp.
However, you do need to make sure that you have the following mapping:
JkMount /*.jsp ajp13
Jake
At 02:26 PM 5/3/2002 -0400, you wrote:
Here is my set up.
Windows2000Professional
Apache2.0
Tomcat4.0.3
You really need to look at the structure of the other webapps. For
instance, look at the examples webapp that comes with Tomcat. Notice
that it has a WEB-INF directory with classes and lib directories
underneath. That is where servlets go. Also, the web.xml file goes in
WEB-INF. *.jsp
Hello Tom,
Well, how about here:
http://www.alexandriasc.com/software/JavaService/source.html
Tomcat.exe is simply a program called JavaService:
JavaService is a Win32 executable that allows any Java class to be
run as an NT service. It uses JNI's invocation API to create a Java
Virtual
Hello Gianluca,
Or use:
Thread.currentThread().getContextClassLoader().loadClass(dbDriver);
Instead of:
Class.forName(dbDriver);
The latter won't find the driver if it isn't immediately within the
same classloader as the class calling Class.forName where the first
one will find it in parent
I assume you are using Windows.
Just use tilde's to shorten the file path so there are no spaces such as:
C:\Progra~1\Apache~1\Jakarta\tomcat-4-nightly-20020404
However, I wouldn't bother with the installer. Just use the zip builds.
Jake
At 01:25 PM 5/2/2002 +0800, you wrote:
Today, I
Assuming you are using mod_jk
JkMount /mycontext/*.jsp ajp13
When specifically doing this, you will have to make sure that you have a
JkMount statement for all servlet mappings including default ones like
*.jsp and all the ones specified in your own web.xml.
At a minimum, you'd also want
The container can't see your mysql dirver if you put it in
WEB-INF/lib...Anything you specifiy in the server.xml for the container to
manage needs to be in either server/lib or common/lib. If you also want
your webapp to see it also, then the only place for it is common/lib.
Jake
At 10:09
Yes, everyone has experience problems with mod_webapp on windows. My
suggestion is don't use it at all. Use mod_jk until mod_webapp becomes
more stable.
Jake
At 02:28 PM 5/1/2002 +0200, you wrote:
Hi
Having installed Tomcat 4.0.4-b2 successfully on my Windows 2000 together
with the Java
Sure,
Add the following to your web.xml...
welcome-file-list
welcome-fileindex.xml/welcome-file
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list
At least you can do that in the
801 - 900 of 973 matches
Mail list logo