Hi all, i like to know if i can set more than one directory in attributte
'appBase' in host container for automatic scan of web applications when
tomcat starts.
Regards,
Mariano López
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Undeploy a web application, then redeploy it.
Click a link in an old page(page before undeploy), making the first request
after redeploy.
In a filter:
String sessionId = httpRequest.getRequestedSessionId();
boolean valid = httpRequest.isRequestedSessionIdValid();
sessionId
Lucky for you, it's all Java!
My suggestion would be to create a path underneath WEB-INF/classes, and then
use the classloader to locate the file, and return an InputStream for it.
As part of the compile / prepare rule, you would copy the template source
files into the WEB-INF/classes/templates/
Thanks. This is what I needed to get started. I need to implement this
through Tomcat as well. I will research tomorrow. Thanks for the lead.
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 8:03 PM
To: 'Tomcat Users List'
Subject: RE: Syste
P.S. For reference, here is an excellent how-to:
http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html
-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 7:42 PM
To: 'Tomcat Users List'
Subject: RE: System.setProperty/System
Why not use the property mechanism to find the template files? Any time you
rely on a servlet/app using an absolute file path, you are asking for
trouble.
Tim
-Original Message-
From: Farrow, Marc [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 7:24 PM
To: Tomcat Users List
Su
The differences are between testing environment and
production/semi-production environment between windows and other platforms.
We store templates, etc in a certain folder and have to read them. However
the "path" is different between Oses (not just specific to OpenVMS). I want
to use some techni
Hi, this is my first post and I'm killing myself trying to resolve this. I
hope someone can shed some light...
I've got a JSP and I'm simply trying to connect to an external URL from
behind our corporate firewall going through a proxy. The reason I'm so
confused is this works flawlessly with Jr
Wow. OpenVMS is still in existence? And it has a JVM? Double Wow!
How come the I/O is different? Shouldn't Java handle that for you?
Tim
(Former DECcie, 1988-1997)
-Original Message-
From: Farrow, Marc [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 7:03 PM
To: [EMAIL PROT
Is there an easy way within Tomcat to set System properties so that all
webapps have access to them at startup? Basically, I would like to add my
own properties to the System object at startup as opposed to using
environment entries. Maybe I am over thinking things. Or better yet, what
is the be
Greetings...
As the subject suggests, I am looking to move from Tomcat 4.1.29 to 4.1.31
on a Macintosh G5 server running OS 10.4.6.
Normally I believe that this would simply require that the 4.1.31 binary
be extracted to the Tomcat directory on the server. The problem is that
this server is runn
it could be happening because tomcat did not shutdown within some
'timeout' time, in which case it appears to do a 180 and try to start
back up. did you see any 'cannot shutdown' messaged in log?
-nikita
Cord Awtry wrote:
For some reason, when I shut down my tomcat app, via commandline or the
#1 Could be a logging bug. Notice how the day is always the same as the
minute.
On 4/5/06, Richard Mixon <[EMAIL PROTECTED]> wrote:
>
> I'm still curious about the crazy logAbandoned messages - not sure how to
> interpret or rely on them. I'll try a again with a briefer posting - maybe
> I
> was
Sorry, I didn't take a very close look at this when you originally
posted it. Taking a look at your original code:
Connection conn = new Connector().CreateConnection();
Statement stmt=null;
ResultSet rset=null;
try {
String open_total = "-100";
stmt = conn.createStatement();
For some reason, when I shut down my tomcat app, via commandline or the
service, it tries to re-init my app.
Has anyone seen this happen to them? I can't seem to find anything in the
archives about it.
Thanks,
-C-
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. Thi
Your web application has a memory and/or resource leak. Run a profiler
to see what code is not releasing references to objects, closing files,
etc.,
Given you've already said this happens overnight, you might want to
start your analysis with the background process you have running.
--D
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this makes your new message appear as part
of the old thread. Thi
Aha. That did the trick. Thanks!
David
Nic Daniau wrote:
service name must be A-Za-z0-9 (no space no _ or any funky character)
On 05/04/06, David Rush <[EMAIL PROTECTED]> wrote:
I've tried following the instructions below, and tried using
service.bat, but either way I always end up with a
--- Peter Neu <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm stopping & restarting tomcat ervery night with a cron job. I do this
> because we have many applications running and sometimes we need to simply
> clean the system.
>
> The cron job invokes a shell script which then starts tomcat with j
Marc,
Thank you - We are using a recent version of the MySQL Connector/J (3.1.10),
but maybe that does not mean anything.
- Richard
-Original Message-
From: Farrow, Marc [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 4:44 AM
To: Tomcat Users List
Subject: RE: Diagnosing DBCP J
I'm still curious about the crazy logAbandoned messages - not sure how to
interpret or rely on them. I'll try a again with a briefer posting - maybe I
was too detailed in the original post.
We are getting strange (erroneous?) messages because of the logAbandoned
parameter:
1) The dates look lik
Mladen,
Thank you for this excellent information, it sounds like exactly what I
needed- some context for those parameters.
One last question with regards to setting connectionTimeout="xx" in my
server.xml. I'm using tomcat5.0.28- judging by the docs at
http://tomcat.apache.org/tomcat-5.0-d
service name must be A-Za-z0-9 (no space no _ or any funky character)
On 05/04/06, David Rush <[EMAIL PROTECTED]> wrote:
>
> I've tried following the instructions below, and tried using
> service.bat, but either way I always end up with a small pop-up window
> with "Application System ..." in the
Hello Tomcat Users,
When our web application runs overnight on Tomcat 5.0.19 we get the
following error.
I searched on the Tomcat Users and Developers Mailing list archives on
nabble but
did not find any mention of this problem.
Anyone seen this before ?
SEVERE: Exception invoking periodic op
Hi,
I have a Java Servlet which returns an image for each request.
But when I use mozilla to access that Java Servlet, it also sends 2
more requests after it get the respond image back.
Can you pleae tell me why?
Here is the http log from live http header extension?
http://localhost:8080/myWAR/
You'll have to release the connection to the pool and _NOT_ close the
connection. It's something like this :
* Create a resource pool that maintains the pool
* release the resource from the pool upon request ( if the
resource Is already there in the pool and can be utilized )
I've tried following the instructions below, and tried using
service.bat, but either way I always end up with a small pop-up window
with "Application System ..." in the title bar, and it says "NonAlpha 45".
Any clue what's going on here?
David
Nic Daniau wrote:
OK here we go. What was said a
That is correct. ResourceLink is for linking in Global resources
(DataSources, Environment Entries, etc) that are defined in the Server.xml
file.
-Original Message-
From: Mark Slater [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 1:40 PM
To: Tomcat Users List
Subject: Re: Pos
My mis-capitalization of DataSource was the main problem. Also, I was
trying to use Resource and ResourceLink in META-INF/context.xml;
ResourceLink is apparently not needed if the Resource is local to the
webapp.
Thank you both for your help!
Mark
On Apr 5, 2006, at 5:11 AM, Hadraba Petr
Again:
"If I put the listener class in server/classes then the server starts
up ok but the class can't be used by any webapps."
I guess what I'm asking is can I configure Tomcat to load my listener
class in a way that my webapps can also have access to.
On 4/5/06, Farrow, Marc <[EMAIL PROTECTED]>
Then just for kicks, place it in the server/classes directory and also the
shared/classes directory.
-Original Message-
From: Simon Watson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 1:29 PM
To: Tomcat Users List
Subject: Re: Lifecycle listener class loading problem
That's w
That's what I'm doing:
"If I put my listener class in common/classes then I get an error on startup:
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache/catalina/LifecycleListener"
Putting the tag in server.xml seems straightforward, and
it's loading my listener class but i
I am not an expert on this, but here are my thoughts for what it is worth.
You will need to place the class in the COMMON folder so both your webapps
and TOMCAT itself can see it. However, you will have to dig through the docs
on Tomcat and see what parameter (probably in the server.xml) file you
Kurt Overberg wrote:
It seems that the number of connections
between the apache and the tomcats just start escalating for some
reason. mod_jk.log shows a ton (>50) of these errors:
Hard to tell without httpd.conf and server.xml.
Two things you should know:
1. MaxClients shuld be <= maxThrea
dagd wrote:
hi,
excuse me for this post i'm a new user to Tomcat. At work they just give me
the task to connect IIS 6.0 to Tomcat using isapi_redirect.dll. I'm using
Win2003 server, Tomcat 5.0.28 and isapi_redirect.dll v1.2.14. I already did
add keys to windows registry create workers.properties
Hi,
Trying to get a custom login through a JAAS
LoginModule.
Got the authentication to work (confirmed thru
println()), but get back a HTTP
unauthorized error in the browser.
Gets to the commit() of LoginModule, where I add
a "Principal" based on the one "role" defined in
tomcats web.xml ... sam
I'm not well versed in Eclipse, but wouldn't you really want to point
your context at the top of the webapp structure in either build or bin?
At least in NetBeans, there's a build/web folder with the whole webapp
including libraries and compiled sources. Check RepositorioSVN/build or
RepositorioS
I'm trying to implement a lifecycle listener to initialise and, more
importantly, shutdown a resource that I wish to access from multiple
webapps.
If I put my listener class in common/classes then I get an error on startup:
SEVERE: Begin event threw error
java.lang.NoClassDefFoundError: org/apache
Mladen, thanks for the response. I've been digging into the problem
with netstat a bit. Here is a log of the date, # of connections to
tomcat1, number of connections to tomcat2 (by netstat -a | grep
webserverIP | wc -l). At 10:58 I had to restart the apache because it
was in the "Stuck" stat
Hmm, I'm not sure about this in encoding-land, but as a linguist - I
know that there are (graphically distinct) characters esstset (ß) - used
in German for "ss" and beta (β) used in Modern Greek for the sound
"v". They look quite similar to each other.
It is fairly legitimate in German ortho
Then you need to check your Driver and see what level of JDBC it is
implementing for a complete answer.
-Original Message-
From: Abh N [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 11:27 AM
To: Tomcat Users List
Subject: RE: need inputs on connection pool
Thanks Marc.
I w
Is your IDE or your tomcat who create the CoffeeNet.xml in the
catalina/localhost ?
I recommend you use the CoffeeNet.xml in the catalina and delete the context
from the server.xml
The below folders structure MUST be kept, if your tomcat do not found the
web.xml into your webapp, that context w
I have the context declaring in the server.xml but tomcat make a
CoffeeNet.xml into /Catalina/localhost.
When i delete the context into server.xml the error is the next:
05-abr-2006 17:30:12 org.apache.catalina.core.StandardHostDeployer
install
INFO: Procesando URL de archivo de c
Thanks Marc.
I was reading an article
http://java.sun.com/developer/technicalArticles/J2EE/pooling/
it says with con.close() the connection will be released to connection pool
in jdbc 2.0 , in 1.0 it will be closed with the stmt.
"Farrow, Marc" <[EMAIL PROTECTED]> wrote:
Calling close() on a pooled connection simply returns it to the pool,
however, i have seen some cases where calling ti twice closes it for
real. Don't do that.
If you are interested in other options that eliminate that concern,
you may want to try iBATIS - you would still use SQL, but it manages
t
The docBase should refer to where your jsps and/or html are.
%docBase%/my.jsp
/other.html
/WEB-INF/lib
/WEB-INF/classes
/WEB-INF/web.xml
Now, where are you declaring this context ? Into a context file inside
%TOMCAT%/conf/Catalina/localhost/CoffeeNET.xml ??
Or in
It is always good practice to call the close methods on the Connection,
Statement, PreparedStatement, ResultSet objects (if you use them). Depending
on the connection pooling that you are using, they may or may not get
released in a timely manner (for example, timeouts/etc). By explicitly
calling
Hi,
we are implementing the connection pooling in our application.
connections are taken from the data source.
After getting the connection i need to confirm whether i have to explictly
close the connection
like conn.close ()
i want to know in above case whether connect
Hi,
we are implementing the connection pooling in our application.
connections are taken from the data source.
After getting the connection i need to confirm whether i have to explictly
close the connection
like conn.close ()
i want to know in above case whether connect
docBase value should be the upper level of WEB-INF directory?
There is no more info on sysout and syserror logs.
Which is the path of docBase so tomcat can understand the directory
structure?
Thanks in advance
-Mensaje original-
De: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
Enviado el:
IME, "Connection refused" usually means the service isn't running on
that machine, or isn't running on the port that you expect.
Pusukuri, Kishore_Kumar wrote:
Please see this problem.
Thanks,
Kishore.
-Original Message-
From: Pusukuri, Kishore_Kumar
Sent: Wednesday, April 05, 2006
Hi!
I noticed the following strange behaviour while playing with the form-based
login example under http://localhost:8080/jsp-examples/security/protected/ on a
freshly unpacked Tomcat core archive (tested with 5.0.28, 5.0.30beta and 5.5.16
under Linux and Windows with JDK 1.4.2, always identical b
Pusukuri, Kishore_Kumar ha scritto:
We are getting the following exception if we move the code to some
other server and the functionality related to that code in our web
application is not working.
the exception:
java.net.ConnectException: Connection refused
I
Please see this problem.
Thanks,
Kishore.
-Original Message-
From: Pusukuri, Kishore_Kumar
Sent: Wednesday, April 05, 2006 1:16 PM
To: users@tomcat.apache.org
Subject: Caching Problem
Importance: High
hi,
We are using 'cname' to connect to a server to use a java servelet.
We
The second error is expected because surely in your trunk folder you have'nt
the web.xml
Now, check out the sysout and syserror logs, is there additional info ?
-Original Message-
From: José María Tristán [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 10:33 AM
To: 'Tomcat U
Hola, gracias por la respuesta.
Ahora lo tengo así
pero me sigue generando el mismo error.
Si lo dejo así:
El error que me devuelve es el siguiente:
05-abr-2006 16:29:58 org.apache.catalina.startup.ContextConfig
applicationConfig
INFO: Falta e
Intenta unificando los slashs \ / y sin poner backslash al final en docBase
-Original Message-
From: José María Tristán [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 10:17 AM
To: users@tomcat.apache.org
Subj
Hello:
I have this directories in my project of eclipse:
RepositorioSVN
trunk
src
java
resources
webapp
W
I believe that's it, although someone who knows more about the load balancing might know better. I built Apache 2.2.0
with the following configure arguments...
--enable-ssl=shared --enable-proxy=shared --enable-proxy-ajp=shared
...which created the .so shared modules: mod_ssl, mod_proxy, and mo
Ah! I forgot about the stylesheet! Make perfect sense!
Thanks!
On 4/5/06, Tim Lucia <[EMAIL PROTECTED]> wrote:
> Or the HTML page has a stylesheet link or javascript link or an image tag or
> anything else. As Mark says, use a client tool to trace the requests from
> the browser.
>
> Tim
I'm guess tomcat compiled into native code. I may wrong but in fedora5
all of Apache Jakarta Project and Apache Geronimo are compiled in
native code. As for me it's a bad idea
On 4/5/06, David Delbecq <[EMAIL PROTECTED]> wrote:
> root cause
>
> Error starting modern compiler
> org.apache.t
David Delbecq ha scritto:
Btw, this is quite curious:
/usr/lib/libjasper5-compiler-5.0.30.jar.so
You should probably use the official tomcat release files available on
apache.org to be sure it's not a distro related problem.
Please also note 5.0.30 is a beta, latest 5.0.x tomcat stable version
root cause
Error starting modern compiler
org.apache.tools.ant.taskdefs.compilers.Javac13.execute()
(/usr/lib/libant-1.6.2.jar.so)
org.apache.tools.ant.taskdefs.Javac.compile()
check that your JAVA_HOME points to a jdk, not a jre. It may be jasper
compiler don't find a suitable
Hi there...
Running Fedora Core 4 and installed Tomcat via yum installs
I'm trying to get Nutch search engine working and keep getting the
following errors. I'm told by the nutch mailing list that this is a
specific issue to Tomcat??
HTTP Status 500 -
-
Hi Hung,
I use Axis to create my web services. You can check it out on this url:
http://ws.apache.org/axis/
Any doubts we are here!
Regards,
Marco
Brasil
- Original Message -
From: "hung ngole" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, April 05, 2006 8:36 AM
Subject: Tomcat & Web Serv
On 4/5/06, CUCKSON, Nick, GBM <[EMAIL PROTECTED]> wrote:
> Leon,
>
> I'm compiling them at runtime and no I haven't tried 5.5.16. I was quite
> happy with 5.5.9 until I tried using generics. This is now in production and
> I don't want to have to upgrade the server continuously to dodge a bug.
> Ho
Hi,
I'm successfuly using PostgreSQL 8.1.3 with Tomcat 5.5.15 with JDBC
drivers 405 (build)...
I have the definition in the META-INF/context.xml and
in the WEB-INF/web.xml I have the element. The
I'm using for the ActiveMQ client connection.
Also the JDBC drivers are placed in the common/lib
hung ngole wrote:
> I' new in Tomcat. I'm using Tomcat 5 and I don't know how I can create a
> web service! Can you help me?
You might want to look here
http://ws.apache.org/
and especially here
http://ws.apache.org/axis/
Regards
mks
--
Can you change your code to something similar to below? I have seen issues
with certain implementations of database drivers in which the JDBC interfaces
are not being implemented/coded properly.
Just remember that the order you call your close statements does matter
(although yours looked correct)
Hi,
I' new in Tomcat. I'm using Tomcat 5 and I don't know how I can create a web
service!
Can you help me?
Thanks,
Hung.
-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
Or the HTML page has a stylesheet link or javascript link or an image tag or
anything else. As Mark says, use a client tool to trace the requests from
the browser.
Tim
-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 05, 2006 2:14 AM
To: Tomcat Users
Mylene,
Yes I saw this as I mentioned in the final paragraph, however I put it into
the conf/jkcon.ant.xml and it hasn't made any difference. I'm not sure I'm
configuring the tag correctly or in the right config file. Any ideas?
Leon,
I'm compiling them at runtime and no I haven't tried 5.5.16
Hello
I need to use the -noverify option for Tomcat running as a service. I am
able to add this option when I run it by launching the startup.bat script
and this works properly, as shown below:
set JAVA_OPTS=%JAVA_OPTS%
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.uti
Technically "ss" is what that symbol (doppel S) stands for, so it might be
"intended" behaviour in your DB or DB driver rather than a bad encoding. You
should check your DB/driver manual perhaps.
Allistair.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 05 A
Hi
Any having idea about why my latin characterß getting converted to
'SS' all the time however my other character are going smoothly
indatabase except above i am trying to insert into data base , I am usign
oracle 9i and ISO-8859-1 encoding
and this is happening in the unix environme
Hi,
I'm using OpenSSL + Tomcat 5.
I have configured OpenSSL & Tomcat successfully but it just 1-way
authentication. Now I want both Server and Client authenticate each other.
Can you help me?
Thanks in advance!
Hung.
-
How low will we go
2006/4/4, Sheets, Jerald <[EMAIL PROTECTED]>:
> Do you have a web proxy in your environment? That would be transparent,
> or hand-configured.
We don't use a proxy to connect to the Tomcat, normally. I've
configured it only to inspect the request headers that are sent by the
browsers. An example o
Stephen Gray a écrit :
> Hello all,
>
> I've come across a problem with using private variables in custom tags
> with Tomcat. I have this tag class:
>
> public class TestTag extends TagSupport {
> private Date testDate = new Date();
>
> public int doStartTag() throws JspException {
> pageContext.
Hello all,
I've come across a problem with using private variables in custom tags with
Tomcat. I have this tag class:
public class TestTag extends TagSupport {
private Date testDate = new Date();
public int doStartTag() throws JspException {
pageContext.setAttribute("date", te
Hello,
I have configured my developpment tomcat to automatically check for
ressoures changes in the webapp folder, making it easier to update JSPs.
The webapp is slow to load because of a few servelt i need along with
those jsps. during development, i sometimes need to update the resource
bundles
hi,
We are using 'cname' to connect to a server to use a java servelet.
We are getting the following exception if we move the code to some
other server and the functionality related to that code in our web
application is not working.
Please help me. If you want more information, please
Hello,
I'm stopping & restarting tomcat ervery night with a cron job. I do this
because we have many applications running and sometimes we need to simply
clean the system.
The cron job invokes a shell script which then starts tomcat with jsvc. Up
to now this worked fine. But now tomcat does not
83 matches
Mail list logo