Jasper doesn't depend on Tomcat internals. It can be used on it's own, or
even as the JSP Parser for another Servlet-Container.
"Tim Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I'm interested in finding just a jsp parser and not an entire applicaiton
> server. I
I currently do the following.
See the 3 or 4 sections of code below.
I have a servlet that is loaded at the time tomcat starts.
Pay no attention to the crap coding in this file, but you get the idea
BEGIN EimplementLogger.java ///
package whateverpackage.l
G'day,
Can anyone expand on this further and explain how to use a Log4j logger
reference in beans that do not have a notion of what the underlying servlet
context is? The only way I can see how to get this to work is to pass the
logger reference as an argument in the bean's constructor.
My que
That is EXACTLY what I am trying to do today. I've tooled around in the ant code, and
it seems this is more of a jasper issue than
an ant one, because ant passes a long list of files to jasper, with the unwanted
pathnames that end up as part of your package name.
I'm pretty sure if you used som
Hello, all. I am attempting to run the embedded distribution of Tomcat 5.0.5
on Linux using J2SDK 1.4.2 and running into problems. After tweaking the
tomcat.webapps property to point to the right place and copying the
management application over I am seeing the following stack trace:
[jmx-service]
Hello,
I've done my best to review the archives to resolve my problem, but I've
not found a solution there so I'm posting it.
I'm stuck back on Tomcat 4.1.24 (LE) and I'm encountering some issues
with JSP Precompilation using Ant and JSPC. First let me outline my problem.
Most messages I've re
Thanks Jeff, I saw that you posted it thereshall I look to the list
for an answer or troll both?
Thanks,
Jon
On Friday, August 1, 2003, at 01:21 PM, Jeff Tulley wrote:
Oh, I was a little harsh on the method, I was missing one try catch
block that would be in effect when the authenticate m
Oh, I was a little harsh on the method, I was missing one try catch
block that would be in effect when the authenticate method is retried.
So, the comments are accurate, but you are still right that "Socket
closed" shouldn't be the only type of close failure dealt with.
Jeff Tulley ([EMAIL PROTE
This is something to move over to the tomcat-dev list, I think. This
code seems to have more than one thing wrong with it, and different
behavior than what is promised in the comments (and than what it had in
4.1.18).
Jeff Tulley ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provid
In your cases there is nothing preventing you from programmatic security.
I look at security the same way some db verndors do. I might not have access
to any table, but I might be granted access to a table or view which may
access those tables I am not allowed to directly see.
In the case of a
Howdy,
>Thanks Yoav. With that being said, is there anything I need to do in
my
>web.xml file to tell it to use context.xml instead of the server
>?
No, tomcat reads that as if it were in server.xml. The in-memory
representation is identical.
>And also, is this information in the online tomca
Well, I understand this is now a bug:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19864
Was this fixed in the 4.1.27 version? Can't seem to determine if it was
based on the README in the download.
Jon
On Friday, August 1, 2003, at 12:07 PM, Jon Wynacht wrote:
Hi,
I have Tomcat 4.1.24
I would if the damn thing wasn't so busy. All I get are 503's! We
need to hurry up and get that hardware upgraded. :)
Gregg
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:20 PM
To: 'Tomcat Users List'
Subject: RE: JDBCRealm
*bash*
Thanks Yoav. With that being said, is there anything I need to do in my
web.xml file to tell it to use context.xml instead of the server
? And also, is this information in the online tomcat docs
anywhere? Cause I can't find it.
Gregg
-Original Message-
From: Shapira, Yoav [mailto:[EMA
*bash* ;)
Gonna go back to the 'ranch now Gregg ? hehe.
> -Original Message-
> From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 2:08 PM
> To: 'Tomcat Users List'
> Subject: RE: JDBCRealm
>
>
> Ok, I figured out my STUPID problem. I was giving the wrong
Howdy,
Depends on the version of tomcat they run and on what elements you wish
to override. Some, e.g. anything not under , you can't
override. You can include a context.xml with your war file to specify
anything that would normally go inside the block of server.xml
for your context.
Yoav Shap
I am going to be deploying my web app at cgiserver.com. When I do so, I
don't believe I have access to the server.xml file. So what file do I
need to include with my web app that will override default elements in
the server.xml file?
Thanks.
Gregg
FYI, we're running 4.1.24 and our server is NOT busy, and we still get
quite a lot of this chatter in the logs.
Our catalina.out log currently has about 60k lines, 15k of which are
'connection timeout reached'.
Other lines (all together, maybe 500 of these):
INFO common.ChannelSocket - server ha
Ok, I figured out my STUPID problem. I was giving the wrong table name
to the REALM element for my user_roles table. Please, everyone bash me
on the head. I deserve it. LOL
Thanks for the help anyway.
Gregg
-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: Frid
Hi,
I have Tomcat 4.1.24 installed on a server that hosts a web
application. I have set up the container to do authentication via LDAP
and it works for a bit then just stops working. The only way to get
things working again is to restart Tomcat.
I've included the error message below and am
Actually, I do have a roles table with a column named Role and I have my
roles listed there. Is there anywhere in the realm config I need to
specify this table. Because in the docs it only specifies the user
table and the user roles table both of wich have 2 columns in each.
Thanks.
-Origin
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Hi,
the example I sent you originally came from 4.0.1...
Make sure you use forward separators, do not run tomcat as a service and
have no spaces in the pathname, maybe that helps.
greetz
H
You don't have a 'roles' table in your database. 'User_roles' is a link
entity between 'user' and 'roles'... In this tables you should specify all
possible roles. Check the unofficial FAQ, or the apache site.
-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent: 01
Can you post the stack trace, versions used, and your config? Standalone vs
jk ...
I tried tomcat5 with its standalone http connector with a 2,349,092,191 byte
file and all was ok for me.
-Tim
Lee Peik Feng wrote:
Hi,
I have some mpeg file larger than 2GB and tomcat fail to serve these
fil
comments inline.
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 1:32 PM
> To: Tomcat Users List
> Subject: Re: FORM Login Bypassed
>
>
> Security constraints are imposed on the incoming *client*
> request and does
> not apply for forwar
FYI - I removed the REALM entry for the Database user lookup and used
the tomcat-users.xml file and it works fine. It only fails when I have
the REALM entry. But I still don't know why it is not working right.
Gregg
-Original Message-
From: Gregg Bolinger [mailto:[EMAIL PROTECTED]
Sent
Howdy,
>01-Aug-2003 17:48:01 org.apache.jk.common.ChannelSocket
processConnection
>INFO: Server has been restarted or reset this connection
This were mostly fixed in 4.1.24. Try moving to it (or better yet,
4.1.27), as there are several potentially relevant fixes from 4.1.18.
Yoav Shapira
T
Is an application launched via Webstart affected by the java policies?
Since webstart applications have to be in signed jars, I tried setting up a
policy for software with that particular signature. Yet still no luck.
-
To unsu
I am having a hard time integrating tomcat 1.4.24 with apache 1.3.26 using
the mod_jk2 connector. Everything appears to be configured correctly and I
can access tomcat examples via the stand-alone service but I get the
following error (it's actually a notice) in apache's error_log when trying
to a
Security constraints are imposed on the incoming *client* request and does
not apply for forwards and includes. This is true for 2.3 and 2.4 is stated
in "SRV.12.2 Declarative Security"
===
"The security model does not apply when a servlet uses the RequestDispatcher
to invoke a static resource o
I do agree and whilst our dev environments are pretty close to the live
ones, I dont have a particularly useful set of use cases which I can test
with (well I do but they dont cause the problem to occur on our dev
systems!). Thus the only meaningful profiling would have to be done on
the live
the sendRedirect() method is on the response object. Another method of
interest will be the encodeRedirectURL() so that non-cookie users can
still use your site.
Something like:
resource = "somepage/somewhere.jsp";
response.sendRedirect(response.encodeRedirectURL(resource));
> -Original
Howdy,
You're right, and the behavior is right: the will passivate method is
not supposed to be called when the session is going to be invalidated.
You'll have to wait for tomcat 5.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Charlie Toohey [mailto:[EMAIL PROTECTE
Thanks Tim, your first sentence I think answers my question about "does
it indeed only work on client requests".
But that's not quite the situation here...
It's still a request for a resource
1. request /dispatcher?page=fookey
2. dispatcher translates fookey to /somepage/somewhere.jsp
3. a r
Hi - So no config parameters to do this ? I guess we
will direct more load to it then.
Thanks for the info.
S Rau
==
Howdy,
Processor thread creation is lazy. You can subclass
if you want greedy.
Yoav Shapira
Millennium ChemInformatics
>-
Well, to answer my own question -> comment out everything in jk2.properties.
I found the
post I needed right after I sent this email out.
Thanks and sorry for posting too quickly.
Rick
-Original Message-
From: Bradberry, Rick
Sent: Friday, August 01, 2003 1:49 PM
To: 'Tomcat Users L
Just tried implementing HttpSessionActivationListener, and the
sessionWillPassivate method does not get called when the session is
invalidated. I'm using Tomcat 4.1.24. Maybe its not suppposed to ? Per the
docs, this is called when the session is migrating between VMs and when
persisting sessi
Ok I'm almost there, I have Apache talking to Tomcat using mod_jk.
Everything seems to work great.
The only problem is when Tomcat starts up it gives the following message.
I've tried everything.
The jar file
(C:\ApacheGroup\jakarta-tomcat-4.1.18\server\lib\commons-logging.jar) is in
the CLASSPATH
The problem occurs under my test environment which is a Mac Powerbook
G4 running OS X 10.2.6 with Java Plug-in 1.4.1_01. I am running tomcat
on this machine.
I am trying to first install and then extend a web application that is
deployed under tomcat 4.1.24.
There is a login based configura
Howdy,
Even if your loathe to do it, a profiler is invaluable as long as the
profiled environment (your dev/test env) is close enough to production
to be meaningful. You should profile, and run stress tests, on hardware
and software that's as similar as possible to production, before going
live.
Hi,
we are running Tomcat 4.1.18 on Windows 2000 under JDK1.4.1_01. We are
using IIS as a web server connecting using the ISAPI JK 2 connector. We
are currently experiencing 2 seperate problems when under high load (ie >
30 requests per second):
1. A huge number of log events (~30 sets per m
At 01:10 AM 8/1/2003, you wrote:
But surely theres a better way?
Whould I be better off replacing "session.invalidate()" with "session =
null"?
No, you wouldn't be better off -- it won't work. :) There's no reason not
to like this solution, IMHO. If it makes your code look ugly, put it in a
Howdy,
Then use log4j.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Rick Roberts [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 01, 2003 1:18 PM
>To: Tomcat Users List
>Subject: Re: Servlets & JSPs log to different files
>
>>
>>
>> How are you logging in your serv
You are right about the Map. The ThreadLocal class is exactly what I am
looking for. Thanks for your help!
-Original Message-
From: Extance, Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 10:40 AM
To: 'Tomcat Users List'
Subject: RE: Threading Question
We have had similar
My email-client (M$-OE) is currently breaked down, and repeat the last
message.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
This may be a problem with my Browser, but both Netscape and Internet
Explorer have the same problem. I simply log into the Tomcat Web Server
Administration Tool and try to add a user with roles. I can add the user but
the table of roles does not display. The same is true if I try to add a
How are you logging in your servlets? Are you using
System.out/System.err? If so, don't use them, and instead use the
ServletContext#log(..) methods.
Actually, they are mostly beans with no ServletContext :(
--
***
* Rick Roberts
Hi,
i get the order to configure a new webhost with apache as the
exclusive connection. Behind the apache should be in furher future a
tomcat farm on serveral servers. Therefor, i install (a) an blank ger-
man linux-distribution (SuSE 8.2) with binaries for Apache 2.0.46 and
Tomcat 4.1.
- Original Message -
From: "Mike Curwen" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Saturday, August 02, 2003 12:45 AM
Subject: RE: FORM Login Bypassed
> When your dispatcher does the translation, does it forward or include
> the 'actual' resource ? Meaning
Howdy,
>What is standard/recomended approach to getting my servlets and JSPs to
log
>to
>the same file.
>
>I am currently using the context logger in server.xml as follows:
>
>
>crossContext="true">
>suffix=".txt" timestamp="true"/>
>
>
>My JSP logs into /var/log/tomcat/ai_log.2003-08-01.txt
>But
What is standard/recomended approach to getting my servlets and JSPs to log to
the same file.
I am currently using the context logger in server.xml as follows:
My JSP logs into /var/log/tomcat/ai_log.2003-08-01.txt
But my servlets log into /var/log/tomcat/catalina.out
Thanks,
--
**
Security constraints are imposed on the incoming url.
Query strings are not used in servlet mapping declarations.
-Tim
Ronnie wrote:
Hi!
I have this web application using FORM login access but I am having problem directing the navigation to the defined login page when user clicks on a secure li
When your dispatcher does the translation, does it forward or include
the 'actual' resource ? Meaning it takes place entirely server-side ?
If you did a sendRedirect, that would then make the browser request the
protected resource directly, which would invoke the AUTH, if the AUTH is
configured co
Hi!
I have this web application using FORM login access but I am having problem directing
the navigation to the defined login page when user clicks on a secure link.
You see, I am using a DispatcherServlet as a navigation controller to direct users to
the correct page and the URL is coded as:
Yes, thats a helpful function ... I was looking at :
http://jakarta.apache.org/taglibs/doc/string-doc/string-1.0.1/
index.html
to see if i can find a good tag library to use ... havent found one
that i could use yet. Am hoping that someone on the list has pointers
to some standard function or
We have had similar issues with wanting some objects to be accessible by any
classes executing in a thread that is processing the response. Our solution
was to use ThreadLocal to create a thread variable, if you are using either
a FrontController (like Struts) or a Filter that each request must pas
Bill2 wrote:
> I am using Tomcat 4.0.4, MySQL Max 3.23.51 on Linux 7.2 and
> mysql-connector-java-3.0.8-stable-bin.jar. I got it to work in my
> development environment NetBeans 3.5, but when I put it on the
> production server by changing the server.xml file as instructed at:
>
> http://jakarta
Scott Stewart wrote:
> Well, at first glance it appears that you are using an incorrectly named
> parameter for the DataSource implementation that you are now using. The
> link you provided states that you need to provide a parameter named "user";
> however, you are still using the "username" para
> Assunto: Re: RES: Cookie problem max age problem - Best practice to solve it
> the authentication app's plugin wasnt created by me, its only stored on
> TomCat to be used by my Java app. This plugin runs together with another app
> server, which completes the authentication process. After this p
Howdy,
You can have two tags for your servlet.
As an aside, IMHO Principal is not that good a name for a servlet as one
might confuse it with java.security.Principal.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Moraes, Fabio [mailto:[EMAIL PROTECTED]
>Sent: Frid
Hello,
I'm interested in finding just a jsp parser and not an entire applicaiton
server. Is there anyway to user Jasper outside of Tomcat without the web
and app servers?
Thanks,
Tim
***
The information contained in this mes
SCENE: I'm using Tomcat 4.1.
I want my servlet Principal.class to be called when someone access
http://localhost/projname/ OR http://localhost/projname/index
I put this in webapps/projname/web.xml:
Principal
servlets.Principal
and this:
Principal
/
E
Steve,
the authentication app's plugin wasnt created by me, its only stored on
TomCat to be used by my Java app. This plugin runs together with another app
server, which completes the authentication process. After this process is
completed ok, a cookie is created. So, when the user asks for logout,
I have been struggling trying to get this to work and I can't tell if I
am doing something wrong, or leaving something out, or what. Below is
all my code, then I will say what is happening:
server.xml (relivant snippit)
code:
_
_
web.xml (relivant snippit)
code:
_
Howdy,
>In my browser I go to "
>http://neptune/jasonTest/servlet/HelloWorldExample"; and get a page not
>found (404).
>
>I am running it on port 80. The only difference between my webapp and
>the "examples" webapp is that I have no "web.xml".
>
>My friend has no problem on his Tomcat server wit
Hi:
I am having trouble executing a servlet under jakarta-tomcat-4.1.18.
The examples web app that comes with Tomcat works fine.
I created a webapp in conf/server.xml as
Under webapps/jasonTest the directory structure looks like:
neptune:root> ls -lR *
WEB-INF:
total 16
dr
I've managed to solve it. I needed to set an environment variable as follows:
LD_LIBRARY_PATH="/usr/local/lib"
Dave
> -Original Message-
> From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 01, 2003 2:28 PM
> To: Tomcat Users List
> Subject: Re: Building mod_jk.so
>
That's actually a browser "feature".
Since you did not click the submit button, it's value would not be sent.
The browser is being "helpful" by allowing an Enter to submit the form.
The downside of this convenience for the user is more ambiguity for the
developer.
G. Wade
Antony wrote:
>
> Hel
When trying to run buildconf.sh I get this error message
could not find /usr/local/apache/bin/apxs
configure: error: You must specify a valid --with-apxs path
But that is the correct path
Any Suggestions?
Bobbie Atristain
Internet Systems Administrator
Media General, INC.
804.649.6156
--
thanks.
the other option which I dont like was:
try
{
session.invalidate();
}
catch (Throwable t)
{
// Session is already invalid
}
-Original Message-
From: Murray [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:14 PM
To: Tomcat Users List
Subject: RE: Checking for inva
Look like a library is missing, so just a thought: has apache been
built with gcc so it uses gnu libraries?
Right, I am trying to build mod_jk 1.2.4 on Solaris 9. It seems to build
okay but I get an error when apache tries to start up.
I'll detail the steps I've taken and the error I get.
1. I
Greetings,
I have a website that uses ssl - I want to know if I have the ssl working with
apache how can I just send the request to Tomcat - or does tomcat have to do the
ssl request itself?
The site works at http://placeanad.classifiedmarketplace.net:8080/AdWebster
However if I uncomment out the
I'm trying to ensure that a session is newly created when I reach my index
page. The logic is reversed from your question but I believe the principle
is the same inasmuchas I want to know whether or not a valid session exists.
if (! session.isNew() )
{
session.invalidate();
%>
/
srevilak> Setting the max age of a cookie to zero is the proper way to
srevilak> delete a cookie. When doing the deletion, are you sure that
srevilak> the name, domain, and path values are identical to the ones
srevilak> used when the cookie was initially set?
jose> Thanks for your attention! The
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
I'd like to get some suggestions for performing "post-authentication" tasks
while using Container Managed Authentication.
Craig Berry suggested a filter that checks the session for necessa
Thanks for your attention! The question stays alive because this plugin runs
fine on OC4J(Oracle) environment, but its always a failure on Tomcat env.
Any other help would be appreciated.
Euclides.
-Mensagem original-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira
Howdy,
Processor thread creation is lazy. You can subclass if you want greedy.
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Rau NF [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 31, 2003 6:47 PM
>To: [EMAIL PROTECTED]
>Subject: minProcessor = maxProcessor value (
Move your "Book" folder up one directory to the "webapps" folder.
Make sure you have a directory named "WEB-INF" in your Book folder.
Restart Tomcat.
http://localhost:8080/Book/AdminBook.jsp should work for you.
On Thursday 31 July 2003 02:57 pm, Felix gt wrote:
> Hello Sir, Madam, Miss
>
I have the env variables set and have tried it as a services and as a
inprocess with the same results with mod_jk2. I found a HOWTO on mod_jk and
it seems to work ok using Tomcat as a service. The only problem now is that
the auto gen conf files have a problem with blanks in the paths of the
weba
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Hi there,
I'm currently running Tomcat 3.2.4 in Redhat 7.3 . The problem only occurs
in Linux, if I zip the Tomcat directory and run it in Windows, everything
works fine. My frontend syste
Well, at first glance it appears that you are using an incorrectly named
parameter for the DataSource implementation that you are now using. The
link you provided states that you need to provide a parameter named "user";
however, you are still using the "username" parameter that I provided in my
e
Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
Just curious, you are welcome to build from source, but did you know
that there are binaries available that work out of the box?
John
[EMAIL PROTECTED] wrote:
Folks,
I am installing to
Hi,
I'm using Tomcat 4.0.6 and configured it for client authentication. This works fine.
Then I tried to add a realm to a certain webapp in order to control access. As I have
read in several sources either the client certificates Common Name or the complete
Distinguished name are used to identi
Right, I am trying to build mod_jk 1.2.4 on Solaris 9. It seems to build
okay but I get an error when apache tries to start up.
I'll detail the steps I've taken and the error I get.
1. Installed the following GNU packages: make, automake, autoconf, m4,
libtools (they came as Solaris packages, whi
AFAIK, there is no ability to do this.
-Tim
MooBob42 wrote:
Say I have three webapps - the manager webapp, webapp A and webapp B. Is it
possible for me to configure Tomcat such that when I start it up, only the
manager and webapp A come online? Webapp B should either be in an undeployed
state or
If You have one tomcat server, serving for multiple dns names, but only one IP for
this computer, you can set up several virtual hosts, one for each dns name, or if you
want all to go into the same application you can set up one virtual host with many
dnsname properties.
So you would setup so
You might want to take a look at webdav... That might solve some of your problems.
-reynir
> -Original Message-
> From: Bikash Paul [mailto:[EMAIL PROTECTED]
> Sent: 1. ágúst 2003 08:32
> To: Tomcat Users List
> Subject: Connecting Two PC using internet connection ??
>
>
> Hi,
>
> I
Hi,
I want to develop one software so that I can connect
two PC using internet connection means one is host and
another is remote.So that I can access remote PC's
Hard drive using internet connection.Can any one plz
give me some guideline how I can start.Eagerly waiting
for someone reply.
Thanks
Hello,
Servlet is not getting the value of submit button from HTML form. I have
a form with one text box ,one submit button and a reset button. When I click
the submit button the servlet gets both text box and submit button values.
But when the user types in data in text box and press Enter key
How about:
if(session.getAttribute("myattrib")==null) {
}
Tim Davidson wrote:
But surely theres a better way?
Whould I be better off replacing "session.invalidate()" with "session = null"?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003
But surely theres a better way?
Whould I be better off replacing "session.invalidate()" with "session = null"?
-Original Message-
From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 6:44 PM
To: Tomcat Users List
Subject: Re: Checking for invalidated session
A
91 matches
Mail list logo