On Tue, Sep 28, 2004 at 10:39:19AM -0700, Willy Lin wrote:
: I need to server up some pages through Tomcat4 that are case
: insensitive.
Time for some creative Filter action, then?
-or even not-so-creative Filter action...?
-QM
--
software -- http://www.brandxdev.net
tech news -- http
:
:
: java.lang.OutOfMemoryError
Perhaps you'll need more memory (larger heap, aka "-Xmx"). Image
rendering can be memory-intensive, depending on what API is used on the
backend and the type of image you're creating.
Run a load-test to guage your memory settings.
-QM
--
ou set the environment variable "JAVA_OPTS" before
running the start script.
It may be the same in v3.x; what do the docs say?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To
ot; logs in twice from different browsers, he will likely have two
different sessions.)
-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]
der doc to decide where to put the JAR.
(Hint: most likely, under {context}/WEB-INF/lib).
-QM
[1] = "portable" between different versions of Tomcat, as well as
between different (spec-compliant) containers.
--
software -- http://www.brandxdev.net
tech news -- http:/
c.
3/ instead of editing catalina.sh, create a wrapper script that sets the
JAVA_OPTS environment variable and have that call the Tomcat startup.sh
script. That's much more portable between Tomcat versions.
-QM
--
software -- http://www.brandxdev.net
tech news
your
configuration, but certianly not caused by it.
Have you tried a later version of JK2? You could also try rebuilding
JK2 from source, so it builds against all of the latest APR headers and
such.
-QM
--
software -- http://www.brandxdev.net
t
could point your admin to the web resources you found, those
concerning false positives from NAV?
This could become a sticky issue of corporate politics, depending on
your organization's structure. You may have to get your management to
talk to the admin's management.
-QM
--
softwar
Sun.com has some, there
are others all over the web.
Once you get that down pat, return to the Tomcat setup issues.
Finally, review the Tomcat "connector" documentation (mod_jk, jk2) to
connect Apache to Tomcat.
-QM
--
software -- http://www.bra
opers: is there a need for a "blank" sample webapp,
for which JSPs aren't precompiled and users can directly tweak? (This
app may already exist; I've never poked through the demos.) I volunteer
to create one. That should reduce confusion with the newer users and
trim list traff
A-INF/context.xml? Tomcat doesn't overwrite the file in
conf/{engine}/{host} with the one in the WAR file, even if the WAR file
is newer.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
--
their own deployment descriptors (web.xml) and security
constraints defined therein. Look into single sign-on to handle
inter-app credentials.
3/ put all of these files into a single webapp
4/ Stick with Apache on the front end =)
-QM
--
software -- http://ww
encouraged to ditch those in favor of
container-managed DB connectivity. I don't think the Struts DSs are
actively maintained any more, for that reason...
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetwor
), you
should be covered for most container-relevant questions.
Do you have a specific question at the moment?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL
, so some
(many? most?) people here use "-client."
-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]
If you did read it, then what are your specific questions?
-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]
s arg.
-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]
n a vendor-provided WAR file) and following the instructions
to get that app running inside Tomcat (e.g. database pooling).
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-ma
the classpath
Tomcat searches. Start with a clean install, and follow the proper
procedure for making classes available.
[Talk about reuse: I posted this same message two days ago... ;)]
-QM
--
software -- http://www.brandxdev.net
tech news
case; they are returned to the pool.)
For appwide objects, look into ContextListeners. These fire a method
when a context (webapp) is loaded and when it is shutdown by the
container.
-QM
--
software -- http://www.brandxdev.net
tech news
is JDBC-compliant, you can follow the instructions on the Tomcat
website: http://jakarta.apache.org/tomcat
The Teradata docs will explain whether it is JDBC-compliant.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
They would work on just their piece, and only check-in code related to
their piece; but to be effective, they should be able to run/see the
full site within their instance.
Taking this a step farther, you could create another instance for QA,
one for load-tests, etc.
-QM
--
software --
sits between Tomcat and
the database. I know the PostgreSQL driver requires network
connectivity, but perhaps MySQL would be different.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
;ve read jndi-datasource-examples-howto.html, but it's a servlet
: example and I don't know if it is identical to a simple webservice
Web services, servlets, whatever... if it runs inside Tomcat, you can
use the examples in the doc you read.
-QM
--
software -- http://www.BrandX
problem
: not related to Tomcat?
1/ please post a *new* message when writing to the list. Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
2/ sounds like a firewall issue. What OS do you use?
-QM
--
so
more like an issue with whomever packed the WAR file:
once you rename classes12.zip -> classes12.jar (and any other
Oracle-specific tweaks), you're back to the basic instructions (hint:
context.xml) that let you drop your WAR file into a container.
-QM
--
software -- http://www.brand
-related methods (preferably within the same object).
Create methods that handle business processes; in turn, these methods
call several (internal, private) methods that handle the Connection
object.
Look at the Thread-Safe Interface pattern for hints, then adjust as
needed to fit your situation.
-QM
makes
your question harder to find (and thus answer).
2/ There are myriad Apache/Linux/Tomcat tutorials out there. Check with
Sybase to determine what JDBC they offer and whether they're stable.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.
drop the mailing list? I wouldn't be so quick to do that ;)
:
: Please don't. I hate forums.
Yes, and forums typically require web access whenever you want to
check/post/review. By comparison, raw mail permits archival and offline
access that a web-based (or even NNTP-based) foru
serving
content with Apache. These cases involve the server managing live
objects internally, which is quite different that the fire-and-forget of
static content, raw CGI, and some PHP.
-QM
--
software -- http://www.brandxdev.net
tech
{value of "appBase"}/{WAR file}
where the value of "appBase" defaults to {Tomcat install}/webapps.
2/ $CATALINA_HOME and $CATALINA_BASE are not the root/context/whatever
path for your application.
-QM
--
softwar
or now, but keep an eye on 5.5 (and
whatever else comes out in the next year).
Generally speaking, as long as you keep an eye on the relevant J2EE
specs and don't code to container-specific features, migration between
containers/versions is straightforward.
-QM
--
software -- http://
if you use the container's (and the spec's) method of
making classes available, there should be no need to set a classpath.
Make your "one other entry" available in one of the places mentioned
above.
-QM
--
software -- http://www.brandxdev.net
tech
On Mon, Sep 20, 2004 at 02:00:37PM -0700, nyhgan wrote:
: I believe that having an open discussion forum is the first step toward such a goal
as it will attract a vast number of new users to the tomcat world.
[EMAIL PROTECTED]
??
-QM
--
software -- http://www.brandxdev.net
tech
me fancy script work if the app is not
organized by content, i.e.
{context}
|
+- jsp/
|
+- images/
|
+- html/
... and so on.
-QM
--
software -- http://www.brandxdev.net
tech news -- http:/
your app/setup, and you're conservative
about upgrades.
What you really have to worry about is "in it for the long run" vs
"fly-by-night"; and neither Tomcat nor Weblogic show any signs of
disappearing for the forseeable future.
-QM
--
software -- http://www.br
the Tomcat user, and not have to worry about
the Manager app handling file perms. As an added bonus, you could
deploy your webapp as a WAR file.
[1] = HSQLDB: on-disk/in-memory, JDBC-compliant database written in
Java. http://hsqldb.sourceforge.net/
-QM
--
software -- http://www.brandx
will likely involve a trip through the
resolver libraries (/lib/libnss_*)... You could start there and see what
else comes up.
I've found it invaluable to (temporarily) install strace under the
chroot area to see what files programs try to open behind the scenes.
-QM
--
software --
lated responses from HTML pages 1 & 2 to the
: MySQL database.
:
: How can I get the servlet to remember or persist the
: response of HTML page 1 without writing to the
: database or to file.
Skim the servlet spec for "session," specifically, "HttpSession."
had some nice colour syntax highlighting, just like
: php does.
It couldn't hurt. If *you* see a need for it, that means at least one
person's interested. Put the product out on the 'net for others to see,
and you'll likely gain followers. ;)
-QM
--
software -- http://ww
mains live in physically
different processes/servers.
The shared DB has fewer app-level requirements than single sign-on, but
still presents its own set of potential problems (performance,
coordination, DB availability, etc.)
-QM
-QM
--
software -- http://www.brandxdev.net
tech ne
On Fri, Sep 17, 2004 at 07:21:19PM -0300, Eugene wrote:
: How to disable ServerTokens in Tomcat and how to replace
: the error pages on custom static pages?
For the latter, review the servlet spec for "error-page"
-QM
--
software -- http://www.brandxdev.net
tech ne
What's the URL in the browser window?
Check your DNS or hosts file to make sure that name is resolvable, etc.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [
ys/net/ (aka "sysctl net.something.other").
-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]
your code, and what message do you get?
: What I'd like to do is have the system tell me
: what classes as being loaded. With stand alone Java code, I specify
: -verbose:class. Is there an easy way to do this directly in Tomcat? Or do I
: use -verbose:class?
Why not try it?
-Q
thing of a religious issue; but pure
data-holders rarely need internal logging. If client code wants to log
a value they fetch out of a DTO, let them have at it...
-QM
[1] = This statement assumes any "model object" that requires internal
logging is much more than a pure data-h
omcat 4, you
still have to rebuild the app to upgrade.
-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]
uld setup a stripped-down JSP that contains just the section in
question, then try that with both your tags and JSTL.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-ma
e? I'd suspect you're
calling this from a JSP?
Are you certain a session has even been setup when this JSP is called?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To un
t the apr_socket_send message, but couldn't make sense of them.
Do a search on "mod_jk2.so: undefined symbol" instead, you'll turn up
more messages and likely explanations to go with them.
This topic comes up frequently. ;)
-QM
--
software -- http://www.brandx
servlet
spec if needed), then follow the Struts docs for creating a Struts-based
webapp.
Struts also includes a stub webapp that you can drop into a container
and use as a base for your own code. You could start with that.
-QM
--
software -- http://www.brandxdev.net
tech news -- http
opulated
- the servlet checks the form (based on request-scoped vars). If some
are missing, dispatch (not redirect!) to an error page.
- user sees form, some fields are prepopulated based on the information
still in the request from when they clicked "submit"
-QM
--
software --
d put up some success message. If that works, the issue
: is most likely in the realm def somehow.
I've missed part of the OP's message, but this may help *if* the Realm
is using a DataSource that's declared within the tags:
specify localDataSource="true" in the ta
JSPs, this doesn't happen.
-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]
On Thu, Sep 09, 2004 at 03:41:03PM +0200, Tore Halset wrote:
: Will the balancer webapp proxy or just redirect? We want to hide
: multiple servers behind one frontend. The clients use https.
The Balancer docs will reveal the answers to this and other questions.
-QM
--
software -- http
Tomcat's flipping out because it can already resolve the class
"org.apache.jsp.index_jsp" from the JAR of precompiled JSPs?
Find that JAR, rename it (something *without* a .jar extension, so it's
not automatically loaded by Tomcat), and try again.
-QM
--
software -- http://ww
On Thu, Sep 09, 2004 at 10:28:32AM -0300, Kelly C. Goedert wrote:
: I'm getting this error " Name jdbc is not bound in this Context" on my
: application. My tomcat version is 5.0.27.
?
See the Tomcat docs for details.
-QM
--
software -- http://www.brandxdev.net
te
"Balancer" webapp does
this and more.
-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]
e of the sample apps? Those JSPs are
precompiled, meaning the .jsp files themselves aren't referenced by the
container (and in turn, changes to them aren't noticed).
-and what Google terms did you use? This topic turns up periodically on
the list.
-QM
--
software -- http://www.b
e some way to get the
actual referer?
The "referer" header isn't reliable. Browsers may refuse to send it,
for privacy reasons.
What's your high-level goal?
-QM
--
software -- http://www.brandxdev.net
tech news
make the app as dynamic as you want.
-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]
t directly. If
that works, check the Apache setup.
Try to think of the Apache as a mask or a pass-through for Tomcat.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscri
up vs
autoDeploy?
: p.s. do you know where in the archive?
I can help you help yourself. Search for:
my name/e-mail address
the term "deployOnStartup"
the term "autoDeploy"
(all in the same message)
That may yield a few hits ;)
-QM
--
software --
essages in catalina.out
Step 1 of Apache/jk(2)/Tomcat debugging: take Apache and JK out of the
picture. Enable an HTTP connector on Tomcat and access it directly. If
that works, check the Apache setup.
Try to think of the Apache as a mask or a pass-through for Tomcat.
-QM
--
softwar
hosts again) each application, but one time is enough or not??
Do you enable autodeploy and/or deployOnStartup for each vhost -AND-
share the same appBase? That will trigger this behavior.
I also recall this answer is in the archives.
-QM
--
software -- http://www.brandxdev.net
tech news
lls as the app runs? That would point
out specifically what file the OS is trying to open.
If you were running a Unix or Linux, I'd be much more help... ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
he docs for the PostgreSQL JDBC connector, as well as for the
database engine itself.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
ut pressure on them,
you're a customer" but when a vendor's large enough and you're bound to
their product, that doesn't fly.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
ndom,
: always. Ensuring that it reads from /dev/urandom instead makes it happy
: again.
You may want to check what the kernel's using as a source of randomness.
I forget the details, but IIRC /dev/urandom never blocks, whereas
/dev/random may block under {some condition I can't recall in det
there any new classes in the tree?
Put another way, has the app been recompiled against all required
classes?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [
the
answer, but nor is Staying Unhappy With What's There, Knowing It Won't
Change The Way You Want 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]
x27;t have 2 web apps with the same path. The error comes when
I add a 'context' tag in server.xml (in my case I'm just trying to add a logger), as
explained in my previous mail.
Do you have both autodeploy=true *and* some elements (either
context.xml or in server.xml)? That wo
want) is also in the source-code control system.
This is especially key as needs diverge (version skew).
When each app can pull its own version from source control (or just copy
a versioned JAR) as part of its build process, you've spared yourself
some headaches.
-QM
--
software --
n effect.
Really, I'm at a loss for why it wouldn't work for you, outside of the
fact that you're using Tomcat 5.5 and JDK 1.5.
As a quick test, what about loading *any* data out of the class? Does a
raw getResourceAsStream() work for you, for the sake of testing?
-QM
--
I can access property files in
: WEB-INF/classes?
You don't. =) That would, in some sense, defeat the purpose of having
each webapp live in its own classloader.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---
I
: right?)
Me, I use a separate start/stop script for each instance. That script
sets relevant env vars and calls the global startup.sh/shutdown.sh.
Is that what you mean?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarN
skim those libs for
the symbol?
Note especially any libs that ldd claims it can't find.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
you record the timestamp and store the object. Otherwise,
the person's already logged in and the filter can pass the
request/response down the chain.
The marker object needn't be anything special: a simple Boolean will do,
if you don't store any other objects for users who are logged in
nd even doesnt displays an error page just
: displays
: only the html tags.
Check out the Tomcat docs on this one.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail
This sounds like something the app's developers are doing, either
directly (their own code) or indirectly (using a third-party toolkit).
The ".mf" extension will likely be your clue.
-QM
--
software -- http://www.brandxdev.net
tech news -
steps on my website (http://www.brandxdev.net).
-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]
connection pool?
This is in the Tomcat docs, online at
http://jakarta.apache.org/tomcat
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
f you were to tar it up and ship it over.
: Any additional help would make you my hero :)
Don't applaud; just throw money. ;)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To
; on mod_jk2.so to see what libs it needs, then run "nm" on
those libraries to see which one defines "__divdi3."
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
-
To unsubsc
the chroot jail?
If that works, then it's likely Tomcat itself is missing something
inside the jail. strace is your friend. No syscall can hide from it.
=)
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNet
Java program run inside the jail?
Also, did you copy needed system libraries from the old rh7.2 box or
from the /usr/lib of the new rh9 machine?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
---
* message when writing to the list. Replying to
an old (unrelated) message confuses thread-aware mailers, which makes
your question harder to find (and thus answer).
2/ Post your web.xml, as none of us can see it =) Sounds like a
misapplied servlet mapping that includes a "/" where it shoul
hese files are for nor why some of them grow to
: over 2GB.
Check with the app's developers -- perhaps they're creating temp files
within their code, and the dir you've mentioned above is the designated
Java temp dir? (I forget the system property name, but it's
java.tmp.dir
ls or jars) and how I can configure
: tomcat to use them?
Sounds like the former case, then...
Regardless, these *really* sound like questions for LinkPoint, not the
Tomcat list.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetwor
on the same machine. Probably not a good idea.
True, but having a per-host firewall in addition to an overall network
firewall isn't such a bad idea. Security in layers and all that rot.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetwor
. That simplifies upgrades
and makes it easier to determine whether a problem lies in the
container's code or yours.
That said, there are a million ways to run a shop, half of which are
"right." Sometimes it's necessary to deviate from the norm.
-QM
--
softwar
7;s a grey area in the spec, and
your container (Tomcat, in this case) does things a certain way then
that's how it goes.
Have you at least tried the 5.x series and/or checked Bugzilla?
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarN
work" is hardly enough detail.
The process should be the same for all error pages.
Post your web.xml and perhaps the page itself, and someone here may have
some answers.
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarN
xt starts and serialized after the context
stops, so a CL could gather some session stats.
Who knows? #3 is pure speculation on my part, so you may as well work
with #1 or #2 =)
-QM
--
software -- http://www.brandxdev.net
tech news
classpath?
-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]
more efficency.
??
If you mean general Tomcat tuning (not just server.xml) please search
the archives. This topic comes up quite a bit, but the answers don't
change.
btw, please note the clock setting on your computer -- it's about a
month behind =)
-QM
--
software -- http://www.bra
g servlets as welcome files is supported as of
servlet spec 2.4, which Tomcat 5.x implements]
-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]
to the current
: classpath... Yeah, I know it sucks, but when it's possible to have
: add-on libraries, Tomcat can provide a better managed LocalDSFactory as
: well
If you hurry, maybe you can get this patch in before 5.5 goes
production.
;)
-QM
--
software -- http://www.brandxdev.net
ontext XML
file is already inside the WAR file. Otherwise, the OP could put it
under
{tomcat}/conf/{engine}/{host}/some_file.xml
-QM
--
software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com
--
pletely, although there are no error
: messages in the loggings.
"having problems" and "doesn't initialize" -- these are too vague for
someone to offer you a solution.
More details, please.
-QM
--
software -- http://ww
301 - 400 of 826 matches
Mail list logo