Could you do something like the following? You'll be essentially doing
something like curl to get the output from the other app and simply writing
it out in your app. This has been tested but should help you get the idea. I
did something similar to send a POST request to an external site and then
Put the load-on-startup tags after the init-param tags.
- Original Message -
From: Phil Campaigne [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 4:30 PM
Subject: Servlet won't run init()
Hello,
I want a servlet to run its init() method when I start
I am having the same problem since last 3 days and no final solution yet I
hv posted the msg 2 time to this gr but all in vain
Pls share it with me if u hv any solution..
/DBTest/WEB-INF/foo/DBTest.class
Not sure if this is the problem but your class file should be under:
It appears that the init params of the servlet and its
context are different. Can someone clear up this
misunderstanding for me?
Yes you are right.
There's also a getInitParameter() method in the
javax.servlet.ServletContext class. I thought it,
too, gave access to the init-param values.
Try adding a worker definition to the workers2.properties like below. Your
jsp-examples uri mapping specifies a worker but there's none defined in the
file.
# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
Hope that helps.
LD
- Original Message -
From:
PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 1:42 PM
Subject: Re: mod_jk2/2.0.2 failure in Tomcat 5.0.16 / Apache 2.0.48
At 01:13 PM 12/23/2003 -0800, Liem Do wrote:
Try adding a worker definition to the workers2.properties like below.
Your
jsp-examples uri
If each virtual host has their own set of applications then you should set
the appBase for each host to different directories.
So in your case the Host defs should look like the following:
Host name=raible.net debug=0 appBase=webapps unpackWARs=true
...
/Host
Host name=raible.net debug=0
I just had another thought about this, where do you have the jdbc driver
jars? You may also need a copy of the driver jars in the common/lib
directory in order for the container to see it at start up time. The stack
trace indicates that it not able to find the jdbc driver class.
HTH
Liem
-
Chris,
I'm not sure if it makes a difference but try putting the ResourceLinks
before the Realm definition in server.xml.
HTH
Liem
- Original Message -
From: Chris Ward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 12:23 PM
Subject: Intermittent failures
Hello,
I have a jsp page with a SpellChecker applet defined using the applet
tags. For some reason this doesn't seem to work when the app is deployed in
tomcat but the same app works when deployed from IPlanet webserver. It seems
that the browser isn't able to download the applet code when it's
If you have a cvs client (which is free) then you can get the source
directly from the cvs source tree. This should tell you how:
http://www.apache.org/foundation/cvs.html
- Original Message -
From: David Kramer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003
You could also use the style task to do this.
== START EXAMPLE ==
== build.xml ==
xmlcatalog id=commondtds
dtd
publicId=-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN
location=${src}/conf/web-app_2_3.dtd/
/xmlcatalog
target name=jspc
.. your jspc
Hi,
You could have a myapp.xml file that defines the context for your
application and include the necessary resource definitions in it. Then you
can take out your application's context element from server.xml and tomcat
will create the context from this file. This file is placed in the webapps
13 matches
Mail list logo