. It contains settings for that context.
context.xml is essentially a Context/ element inside its own file.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
they agreed when they signed up...
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
over from scratch.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
process?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
file).
-QM
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
with a Root Cause section that can be quite helpful.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
), etc.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Really, this question comes up every few weeks...
I figure #1 would have the greatest impact (read: result in the fewest
such questions to the list).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
and
: it's not working. I again changed the name to testing and the servlet is
: working fine now.
Problems like this are much easier to resolve when we can all see your
web.xml. =)
Sounds like a typo.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
the
problem.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
are not part of the same webapp, then no, this
isn't possible (read: not possible using standard J2EE session scoping).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e
courtesy to mark messages as off-topic
(prepend the subject with [OT]) if it has little or no relation to
Tomcat.
I've updated your subject accordingly.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
.
For the latter, I haven't seen any such free/open-source products, so
you may end up paying for a commercial app.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail
. Are there any scalability issues of which I should be aware?
Same as the first part of my answer to question #1. -that, and
maintenance: will the app itself be the same code, same version, just
installed 300 times?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
the ContextListener is being fired? (i.e. that it's been
properly registered?)
Another question: I don't have the JavaDoc in front of me, but does
ContextListener (or any of its parent classes) have an init() method?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
of making an object globally accessible) is that
there's now loose coupling between the object's class and its access:
client code (other objects) use the ServletContext as the single point
of contact. If the type of object changes, client code doesn't have to
know...
-QM
--
software -- http
On Sat, Jan 15, 2005 at 10:25:08AM -0500, Parsons Technical Services wrote:
: 13+ hours and no activity. Wow.
: Just testing.
Wow... so maybe .NET really *did* take over! =)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
are, most of the memory consumption is
app-specific.
: which is kind of amusing.
That's debatable. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
is there?
Do you mean, something builtin to Tomcat itself? Not likely. Tomcat
doesn't know about your app. It shouldn't have to.
This one's all you. =)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
and the database
shouldn't require much in the way of noticeable changes.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
... ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
out of Tomcat's
control (e.g. use of sessions, design, network topology, etc).
Load-test your app and size it from there.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e
will be in struts, but currently i have half in servlet and half in
struts. Currently developed separately, but now i want to combine this under
one roof. i mainly worried about web.xml - how i can do it? regardsManisha
Hello,
You probably meant to send this to the Struts list.
-QM
--
software -- http
in the Session
: I mean the other details
? What other details? What are companydetails?
: so for this I have to write the code in all the jsp files
: Is there any better way out
ServletFilter?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
to process your *.jsp files), but that's not portable...
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
. =) Welcome to freelancing.
The rest of the advice I've seen in this thread has been great.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
(that runs in another process, perhaps on another machine).
So as long as JRun4 uses the same connector concept, and the JRun4 and
Tomcat connectors don't conflict, you should be in luck.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
under the same
container? That may be asking for a headache, in all but the most basic
usage scenarios.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
developer on the machine?
I was close, and so were you:
me: early-morning typo, it's called deployOnStartup
you: write site, wrong doc. Check under Host Container for details.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
=.
export JAVA_OPTS=
-QM
[1] = for the archives: set JAVA_OPTS in catalina.sh
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
and
configure it to your heart's delight.
If I've misunderstood your question, please elaborate =)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
: assume).
The 5.5 series is not only OK with JDK 1.5, it requires it. =)
(OK, there's the JDK 1.4 compat package, but that didn't sound as cool)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
://www.junlu.com/msg/87123.html
However, my hypothesis at the time was based on trying to call jsvc as a
nonroot user.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e
hasn't
cleaned up their threads.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
into the mainline
code.
(Good luck.)
Should #3 pass, I suspect the next request would be for a JDBC
connection cleanup Tomcat ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e
question, or did I misunderstand it?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
containers (not all containers support allowLinking), and between
exploded-dir and WAR format webapps.
I'm not saying it won't work; I'm just saying it'll hurt in the long
run.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
problems I prefer to resolve with a
bit of policy instead of a lot of technology. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
(larger than a few buffers' full) then this
should increase performance because the server is performing fewer write
operations on the outbound stream.
In reality:
Try it. It may not be worth it; but only you will know for sure, since
it's your app.
-QM
--
software -- http
?
Furthermore, are you certain you've properly set JAVA_HOME?
What happens if you type
echo $JAVA_HOME
on the command line?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
, third-party J2EE hosting options that give developers quite
enough control (at least, not compared to straight HTML/PHP/CGI/etc
hosting plans).
Good luck.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
. dedicating a single webapp to be the file store), etc.
Such separation provides the additional benefit of letting your app
scale to multiple machines.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
...)
Essentially, use whichever one you're not using now and see whether that
works ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
#getServletContext() -- getInitParameter()
The other poster had the right idea, though: create a ContextListener
that populates a local (app-specific) object with this data. Code
your app to fetch its needed info from this object.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
the page for later viewing/printing.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
yourself, then it's better to follow the crowd
and use JK.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
it may
still be in beta).
2/ chroots can be tricky. Does your setup work outside of a chroot?
3/ since you're using Linux, strace should be able to help: use that to
determine whether Apache makes any attempt to read your JK configs.
-QM
--
software -- http://www.brandxdev.net
tech news
for copyright violations
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
development, then upload the finished product to the
hosting provider.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
: changes are there in one cluster member, I have to update the same in other
: members also.
As one poster mentioned, NFS is one option. Using a shared database is
another. There are pros and cons to either approach.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
, containers are free to initialize a servlet class as many times as
they see fit.
Much safer to use a ContextListener in this case, as those are triggered
only on app (context) startup and shutdown.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
code in shared/lib or common/lib. Put that code under each
webapp's WEB-ING/lib to make them as self-contained and portable as
possible.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
. A lot of people went through the hassles of setting up jk2 just to
use Apache 2.x, and for no good reason.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
in
servlet spec 2.4/JSP 2.0 along with SingleThreadModel); it means your
app can scale to multiple app servers without you touching additional
code.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
never had to make that switch in a production app.
I don't see what else could trip you up, though, unless you have a
strong tie to some jk2-specific feature.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
not doing anything
fancy, then the basic start/stop scripts should be fine. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
around: the SSL
negotiation takes place at a lower protocol level than the HTTP request
that specifies which virtual host the client wants to see. Yet, it's
during the negotiation phase that client software compares the requested
hostname to the CN value of the cert.
-QM
--
software -- http
to the list. Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
2/ do you mean a basic web log format, similar to Apache httpd? Look
into AccessLogVale.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
: we get an OutOfMemory exception and SIZE drops to 159M.
:
: I have tested the application with Borland's optimizeit but found no memory
: leak. Any ideas?
If there's no resource leak, then your app just needs more memory. What
happens if you increase the heap and do a load test?
-QM
On Thu, Dec 16, 2004 at 01:15:32AM +0100, Andrew Miehs wrote:
: Pardon my ignorance, but what about tcpdump or snoop???
These are fantastic tools, as long as you have root access. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
certain Tomcat is
loading the context from
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
have trouble
getting your singleton to exist on multiple machines when your app
grows. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
is a fine book in this regard,
though it only covers up through spec 2.3.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
: the offenders hardly recognize themselves,
so the posters are a waste. =)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
this done before) it doesn't help, but perhaps this time it'll be
different.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
take a question when I can (have the
knowledge) and want (I feel like it) to do so.
The number of off-topic posts have nothing to do with my ability to
answer other questions.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
much appreciated!
You could first try a free search engine, or free mailing list archives.
;) This question comes up every so often, and people usually chime in
with answers.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
CATALINA_HOME is explained in the Tomcat
docs, and there are several examples of such a setup in the archives.
Look for my name when you search, as I've described my setup in a couple
of posts.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
,
Not likely, based on my experience.
The profilers I've used call your code for you -- they sit between your
code and the JVM. If the JVM's already running without the profiler,
well...
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-- commercial or otherwise -- can
be difficult to grasp in the early days. J2EE? Systems administration?
Oracle? The list goes on and on...
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
to Java source?
Either way, it's ugly.)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
is that the
base JSTL + Struts (or whatever framework you use) taglibs should
suffice. Anything else and you're walking the fine line of putting too
much app logic into the presentation layer.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
robust straight out of the box?
: Which release seems to be the most reliable?
In theory, the later the (stable) version, the better overall it is
compared to earlier versions. Both 4.0.x and 4.1.x achieved stable
releases.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
...
Try this as a debug measure: enable an HTTP connector on Tomcat, and try
to access that directly from a Linux/Mozilla browser.
Do you encounter this problem using Mozilla from another Windows
machine?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
resolver. Check
/etc/hosts and /etc/nsswitch.conf (if that machine runs a Unix-like OS).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
-level redesign, or at least change the
include() to an HTTP request in and of itself.
What's going on in your design that you require the filter to wrap the
inner (include()'d) request? Storing/changing session objects?
-QM
--
software -- http://www.brandxdev.net
tech news -- http
, there was a thread on just this within the past couple
of days.
Otherwise, to get and serve files from outside the context, use basic
file streaming operations and be sure to flush the servlet's output
buffer when you're done.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
this with your version control
system, different apps could have different versions of these files as
their needs diverge.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail
the mailing list?
Do you remember how you subscribed? If not, check the website.
btw, shouldn't you unsub after you've resolved your shutdown problem? ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
going on here? My guess is that
: somehow Tomcat is configured to use JAAS by default, but since I've
: not used JAAS before now, I'm not sure where to look...
Are you in your own container? If not, you could be tripped up by an
errant global setting.
-QM
--
software -- http
.
Review the Struts docs for details.
: If we are able to read our own XML and make Tomcat work
: accordingly it will be more flexible.
What are you trying to do?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
those imports, a $ is just a $.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
the manager.
That's not advisable. The work/ dir is Tomcat's private scratch space.
Putting files directly there may cause problems.
Have you tried a standard deployment? that is, by hand? There's no
sense trying this with Maven or the manager app just yet.
-QM
--
software -- http
;)
expected or enforced? ;) They aren't always the same.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
space from duplication of resources.
If you're writing Java webapps, tacking a few kb (or even a few hundred
kb) onto each WAR file isn't a big deal.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
variable CATALINA_HOME to point back
to the main Tomcat install (which sets the location of common/lib,
server/lib, etc).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e
of the data going back and forth between the client
and server?
4/ What's in the page itself?
(This may be a case of Pilot Error)
etc, etc.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
? The online Tomcat
docs should be fine, and in there you'll find the meaning of all the
Connector/ attributes.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
4) then it should be straightforward. There's a brief doc on my
website for the 4.1 - 5.0 upgrade:
http://www.brandxdev.net/misc/tomcat_upgrade.site
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
you could share what you did in Tomcat 4, and what you've
tried in v5..? That might give the rest of us a head start.
I don't have the time to try it here, but I suppose you've already
tried a context path of /srv/stuff and that failed?
-QM
--
software -- http://www.brandxdev.net
tech news
(presumably for
EJB, etc).
The servlet spec is available at java.sun.com, and the Tomcat docs are
on the same site where you found this mailing list.
Watch out for books: most are outdated.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
in your
web.xml.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
be able to take a look at it.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- sounds pretty vanilla. From what I gather, your question concerned
how to connect this to a web front end and provide zippy response for
end-users. If I've misunderstood, let me know.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
?
Yes, but you must first help us to help you: please post relevant files
(in this case, the web.xml from the app that doesn't work) and give a
more detailed problem description.
You'd be surprised how many SSL problems are caused by typos in web.xml,
e.g. trusttore instead truststore.
-QM
is a situation in which we can all do what we want without affecting
anyone else. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED
that's explicitly defined by a Context/ tag, but
the docBase and path attributes don't match, Tomcat figures you want
to deploy it again.
Short version: make sure autoDeploy and deployOnStartup are both false.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
the memory itself, there's no way (AFAIK) to exercise
individual chips unless you open the box and shuffle them in/out
yourself.
If you have a Sun support contract, now's the time to put it to use. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
to serve
them yourself. =) By default, files under WEB-INF are *not* available
for standard requests (HTTP/GET, HTTP/POST, etc). This prevents
would-be miscreants from downloading the app's code and config files.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
101 - 200 of 824 matches
Mail list logo