Thanks, probably that is the problem. The batik-all-1.5b2.jar in my
cocoon.war file is corrupted. I'll download it try it again. (my link is
slow, so it'll take some time).
I've downloaded the cocoon binary distribution. The cocoon.war file was
also intact (I haven't varified using the PGP
I not think you can put the JNDI/Resource stuff in the deployment
descriptor, though I stand to be corrected (!)
AFAIK the JNDI/Resource stuff is placed within an application's 'Context'
element.
With Tomcat 5 you can have separate context fragments - individual XML
documents - for each
On Friday 13 February 2004 21:32, Shapira, Yoav wrote:
First, as a general tip, I suggest putting all your classes in packages:
http://jakarta.apache.org/tomcat/faq/classnotfound.html.
thanks for the tip. I've put it all in packages now and compile with JDK 1.3.
the problem remains though:
if
by default, with tomcat 4.1.x,
the invoker servlet mapping is in comment in the web.xml file.
make sure it's uncommented in you web.xml file.
servlet-mapping
servlet-nameinvoker/servlet-name
url-pattern/servlet/*/url-pattern
/servlet-mapping
hope this helps.
Hi all,
may be not the right place to ask this question. Hope somebody is kind
enough to clarify this doubt of mine.
i understand, in a servlet, if i need any code to be thread safe, then
i shud put that code inside a synhronized block
or declared the entire method as synchronized. if my
Hi all,
I'm trying to get a certain method within my startup class to *only*
execute after Tomcat startup has fully completed.
I understand I can implement a LifecycleListener, but there only seems
to be before/after start/stop events.
(i'm not sure that Lifecycle.AFTER_START_EVENT refers to
Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use
*either*.
When I run Tomcat 5.0.18 from the command prompt, the app works 100%. It is
supposed to pick up a file called emapi.cfg and licenses.txt from the
CLASSPATH. emapi.cfg works int .\axis\WEB-INF\classes, but
I FINALLY figured this one out.
Tomcat 5.0.18 as a service ignores -Djava.class.path. Rather, it takes the
path from the -Imagepath parameter as the classpath (I did a debug
logger.info(Classpath: + System.getProperty(java.class.path) and lo and
behold it gave me the Imagepath as the actual
What about using a session listener.
Why not call your method in the constructor for the SessionListsner
Pete
-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 12:38
To: [EMAIL PROTECTED]
Subject: How to know when Tomcat has completed startup?
Hi
if your application is a struts one, you can do that with
struts plugin mechanism.
___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO
01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]
Peter Guyatt [EMAIL PROTECTED]
16/02/2004 14:26
Veuillez
Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp allowLinking=true /
And my webapp is like
I just switched to Tomcat 5.0.
For some reason the stack trace is not displayed when an error is generated (the error
is in the
log); a blank page is displayed.
Any suggestions?
Thanks.
Mike
__
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing
Thanks to all who replied.
Solved here - even with an example ;)
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=2
|contextInitialized is what I needed :)
|I'll call my startup method when I know the whole ServletContext has
been initialised.
Cheers,
James.
I use it, and run OK;
Guy Kaisin ha scritto:
Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp
Guy Kaisin wrote:
Does anybody knows if the attribute for the Context (server.xml) is now working?
I've try to use symlink in my webapp but is seams that it is not working.
Here is my definition:
server.xml
---
Context path= docBase=mywebapp allowLinking=true /
And my
[EMAIL PROTECTED] wrote:
if your application is a struts one, you can do that with
struts plugin mechanism.
we actually *are* using Struts
i'm intrigued as to how you would propose to do this in Struts...
Regards,
James.
-
Mike Duffy wrote:
I just switched to Tomcat 5.0.
For some reason the stack trace is not displayed when an error is generated (the error
is in the
log); a blank page is displayed.
Any suggestions?
This works for me. So what is the actual exception ?
--
x
Rémy Maucherat
Success!!!
I went back and changed my JAVA_OPTS setting to use single quotesand it
still failed.
However, in my login.jsp page, I added the following line at the top:
System.setProperty(java.security.auth.login.config,
C:/TOMACT/conf/jaas.conf);
Presto...worked beautifully. I even got the
Cancel that - this is called *before* any of the servlets are initialised :(
Any better ideas?
James Neville wrote:
contextInitialized is what I needed :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
Hi,
We are testing a tomcat 5.0.18 and everything works well but...
javax.servlet.jsp.JspException: javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException: java.lang.IllegalStateException: can't
declare any more prefixes in this context
at
hi to all soory to disturbe your work
im stuck there sombody could tell mee whats wrong and how could i fixe this
?
tanks for your precious time
friendly frank
:395)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at
Yes,
It works.
I wrote the src attribute of my img tag like this:
img src=/mywebapp/img/par_img/mypic.jpg / and it doesn't work.
I rewrote it like this
img src=/img/par_img/mypic.jpg / and it works well ... !
Thanks
- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To:
The struts frameworks provides a mechanism to allow components to be
plugged in and
loaded dynamically during startup of the struts application.
Any java class can function as a plugin. The plugin init method is called
during start up of the
Struts application. link below may help you
The problem solved by updating our xalan.jar and xerces.jar to the
latest version.
-Jouko
Jouko Johansson wrote:
Hi,
We are testing a tomcat 5.0.18 and everything works well but...
javax.servlet.jsp.JspException:
javax.xml.transform.TransformerConfigurationException:
At 10:16 AM 2/16/2004 +, you wrote:
I not think you can put the JNDI/Resource stuff in the deployment
descriptor, though I stand to be corrected (!)
Well, get ready to start standing
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/TestDB/res-ref-name
JAVA_OPTS = -server -Xincgc -Xmx1024M -Xms1024M -Xmn100M -Xss100M
-Xmn is the size of the younger generation heap. Before having -Xmn my CPU was
running at 95% while memory was at 4%. After putting -Xmn my CPU and memory usage are
both aroun 11 %.
-Tom
Jacob Kjome [EMAIL PROTECTED] wrote:
Well done. And if you want to debug it, go into your catalina.sh or .bat
file and echo the whole execute string that the script uses to launch
java. You'll see whether it's the JAVA_OPTS or not. I use the full path
and not the envvar.
On 02/16/2004 04:21 PM Miller, Steve wrote:
Success!!!
I
Hello, I'm trying to run a Apache server with SOAP
there is no problem when I use the 3.2.4 version of Apache Tomcat, but when
I use the 5.0.18
and when I make the test with http://localhost:8080/soap/servlet/rpcrouter I
have an error.
Is it because I didn't found the tomcat.bat file in the
Hi everybody?
Someone can help me?
I've got two instances of tomcat running in two diferents machines. Also Ihave got
apache server mapped with the two Tomcats using JK1.2 as:
VirtualHost 192.168.10.120
JKMount /oasis-tl/* cms # first instance of Tomcat
It shouldn't do anything because of case sensitivity. As I said before, it
isn't 100M, it is 100m. And I still think that Xss value has got to be
a bit off, but if it works for you, who am I to say you shouldn't use it.
Jake
At 09:05 AM 2/16/2004 -0800, you wrote:
JAVA_OPTS = -server -Xincgc
Hello,
I know this question must have been asked before. All I want is the location
of the documentation about hooking up Tomcat 5.0 with IIS 5. Note that when
you click on the jk documentation link on the following page:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/index.html You are
forget that documentation it wont help you ...
try out this which is for IIS 6 but I just ignored the IIS 6 specific parts!
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html
Cheers, ADC
-Original Message-
From: Julien Martin [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 17:20
Hi,
I have been trying to use SSI in Tomcat. It seems that work perfectly but only using
relative path.
If I change isVirtualWebappRelative = 0 in order to use absolute path from root
context, SSI don't work. When I use absolute path I only could include content from
the same folder.
My
I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2.
On the user query forms in my application % is a valid wildcard for
all as it is in the actual database query. I don't want to use blank
for all because I don't want users to accidentally search for all
records; i.e. they have
Actually, I believe the current recommended connector for IIS is JK not JK2.
At least that is the case according to the connector FAQ found here:
http://jakarta.apache.org/tomcat/faq/connectors.html#vs
Beyond that, there are many resources across the web, in the archives of the
list, and on the
Why don't you use: http://website/findnaics.jsp?code=%25
-Tim
Bill Faulk wrote:
I am using Tomcat 4.1.29 on Windows 2000 Server with Java SDK 1.4.2.
On the user query forms in my application % is a valid wildcard for
all as it is in the actual database query. I don't want to use blank
for all
The same error occurs for %25. If I put a % anywhere in the
parameter I get a crash. 4% would pass a parameter to query everything
starting with 4 in my example.
---
Bill Faulk
[EMAIL PROTECTED]
801-302-8930
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday,
(Correction: not a crash - an error)
---
Bill Faulk
[EMAIL PROTECTED]
801-302-8930
-Original Message-
From: Bill Faulk
Sent: Monday, February 16, 2004 11:16 AM
To: Tomcat Users List
Subject: RE: request.getParameter Error when % contained in parameter
value
The same error occurs for
On Mon, Feb 16, 2004 at 03:44:53PM +, James Neville wrote:
Cancel that - this is called *before* any of the servlets are initialised :(
Any better ideas?
James, do you need the servlets to be already initialized???
Because Tomcat can be completly set up, and still none of the servlets
I forgot to add that I did change everything to the full path and is still
failed. I know one day I'll stumble across the needle in the haystack as to
why it is giving me fits. I will definitely try your debug suggestion. That
option for some reason never crossed my mind. But at least now I can
There looks to be a patch against this region of code in 4.1.30. (As compared
to 4.1.29) Does the same thing happen there?
-Tim
Bill Faulk wrote:
The same error occurs for %25. If I put a % anywhere in the
parameter I get a crash. 4% would pass a parameter to query everything
starting with 4
I'm installing 4.1.30 (alpha) on a server now to see.
---
Bill Faulk
[EMAIL PROTECTED]
801-302-8930
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 11:39 AM
To: Tomcat Users List
Subject: Re: request.getParameter Error when % contained in
Hi -
I am having a problem using mod_proxy w/ Apache 2.0.X and Tomcat 5.0.16.
I have been using mod_proxy for several years now to connect Apache (w/
SSL) to Tomcat. When
recently upgrading to TC5, I noticed a problem.
My httpd config file looks something like this :
ServerName
This question is a bit OT, since it deals more with HTTP than tomcat (I
think), but maybe somebody can help.
I'm (still) working with setting up filters in Tomcat, and am seeing some
erratic behavior, which leads me to ask this question :
Assuming I have a URL of
I really don't know what -Xss is for, I'll probably lower it now, at least to 1024k,
i'm just experimenting. -Xmn though does make a big difference in my case. I can't
get my load faster than 6 req/sec with CPU at 14% and memory usage at 11% using the
top command in Linux Redhat.
Jacob Kjome
Duane,
This is a pretty crazy set of requirements you're working with here --
I'll trust there's a good reason for it and just stick to the question. ;)
At 11:34 AM 2/16/2004, you wrote:
Assuming I have a URL of
http://www.mysite.com/myservlet.jsp?myvar=1yourvar=2
Your URL is:
well we find it
it was localhost instead of [EMAIL PROTECTED]
the url for my sql looks like this
jdbc:mysql://localhost:mysqlport/database
for those hoo would need it.!!!
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
From: FRANCOIS Dufour [EMAIL PROTECTED]
Reply-To: Tomcat
When I load test with JMeter using just 1 thread, my CPU jumps up to 55% while my
memory usage stays at 11.5%, more shocking is that overall performance time is even
worse?? Each request is taking 8-9 seconds for a response. Whereas with 10 threads,
the startup times were bad, but after the
hi,
I want to deploy and undeploy web applications at run time. Aim is that once the
tomcat is up we should be able to deploy and undeploy web apps programatically. Is
there a way this can be achieved or if i can look up some docs/respurce somewhere.
thanks
abhijat
Well, get ready to start standing
I knew about the bit that goes in the deployment descriptor (!) It was 'the
rest' I was referring to :-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hello
how the webserver handles more than one
request at the same time.
The answer is: by invoking the servlet's service method in a new thread for
each new request to that servlet.
Think of any Java object, instantiated once - a public method in that object
can be called any number of times,
Hi,
Not sure what you're asking.
Hard numbers I don't have. I've pretty much run all my server based
applications with -server since they introduced it, but I think Sun's
documentation and common knowledge bears it out. There's also some
obscure documentation that explains what the -server
Hi!
I'm using Jboss 3.2.1 with Tomcat 4.1.24, and Tomcat is running as a
Jboss MBean.
I want to control the number of sessions each application can have. To
do this, I'm trying to store
sessions in a postgresql database, and use the Tomcat PersistentManager
Implementation.
The tomcat
Title: Message
Good
Afternoon...
I am trying to
configure Apache and Tomcat to run together. It looks like I have the
configurations right as the Wrox Professional Tomcat book outlines because I get
the pages they say you should get when doing the configuration. The problem is
Hi!
There are three downloadable tomcat tarballs;
Tomcat,
Tomcat Embedded and
Tomcat Deployer (ment)
What is the difference between the versions?
I have tried to figure it out by my self, but I cant find any
particular information about the differences.
I downloaded the files and there are some
I am trying to install my servlets in tomcat 5.0.1. on Windows 2000
I compile the files:
javac -classpath servlet-2_3-fcs-classfiles.zip MyServlet.java
**I download the file servlet-2_3-fcs_classfiles.zip from the sun site.
And then copy to the default servlets examples directory.
copy
system seems to be in both 5.0.16 and 5.0.18
Should i be getting a two session's with the following code?
There is a session created before this page and i have confirmed this with the little
code snippet below.
%
System.out.println(session.getId());
System.out.println(test);
%
html
head
Have used this for MySQL DB - am NOT totally sure that it is completely
correct
This is what works for me - (see NOTES at end - if anyone can shed any light
on Limiting Pool size)
#1in your Server.xml
GlobalNamingResources
Resource name=MySQLDataSourceFactory
Pretty sure it can be done
I remember reading up on this in relation to ANT
I think there is some integration with ANT examples in the Tomcat
documentation - try
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html
And
Hi all, excuse me I'm going to ask about a topic there are thousands of
questions already made.
The fact, is that I've searched and tried everything, but I still cannot
connect Tomcat with SQLServer using a Resource.
I've copied exactly the example at
Hi all, I've got this doubt. My applicacion uses some properties files to
config some events or constants, or whatever, but it's job basically is to
map the users click on a JSP, to a servlet and define what class should
take this event. So, every request comming to a JSP, will be a search in
this
Hi all, excuse me I'm going to ask about a topic there are thousands of
questions already made.
The fact, is that I've searched and tried everything, but I still cannot
connect Tomcat with SQLServer using a Resource.
I've copied exactly the example at
Is it possible to map a URL to a directory outside of a webapps's context?
Our app has one directory that our customers use to store and display their
own static webpages. It would be useful to us to be able to keep that
directory outside of the webapp's dir structure. Sort of a 'virtual
You have:
parameter
nameurl/name
valuejdbc:microsoft:sqlserver://localhost:1433/value
/parameter
The value needs some additional information.
If you named your database as robinhood then you need the string to read:
jdbc:microsoft:sqlserver://localhost:1433/robinhood?autoReconnect=true
Unable to check all the mails. But, glad to hear you and Doug together
solved your problem.
Cheers
Bao
Jerry Ford wrote:
Well, that was certainly fun :)
I have made it work, and I think I sort of know how. Not *why* the
fix works, just *how* to get my app functional once again.
And you
Andi Reinbrech [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I FINALLY figured this one out.
Tomcat 5.0.18 as a service ignores -Djava.class.path. Rather, it takes
the
path from the -Imagepath parameter as the classpath (I did a debug
logger.info(Classpath: +
Sorry for late reply.
Its a standalone with network card installed. Also when I tried pinging
localhost, it failed gave error 2 back.
I also assigned IP numner, Subnet mask and gateway to it.
Still it didnt work.
Please help
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Sorry for late reply.
Its a standalone with network card installed. I have no other services
running on my machine.
I also assigned IP numner, Subnet mask and gateway to it.
Also when I tried pinging localhost/127.0.0.0/IP address, it failed gave
error 2 back.
Still it didnt work.
Please help
if you cant ping localhost then your network isn't configured.
go on the MS website and troubleshoot
Filip;
-Original Message-
From: Sunit Bansal [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 8:33 PM
To: Tomcat Users List
Subject: RE: PROBLEM STARTING
Thanks a lot Harry. Thank you so much.
Saravanan
Harry Mantheakis wrote:
Hello
how the webserver handles more than one
request at the same time.
The answer is: by invoking the servlet's service method in a new thread for
each new request to that servlet.
Think of any Java object,
trie 4.0.6 i got it running under xp 5.0.16 too runs good
did you set catalina_home variable
and java_home variable too
then after go in tomcat_home folder\bin run startup.bat
should start here it runs well
i got jdk 1.3.1_09
[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc
From:
Bansal,
as said earlier configure the MS loop
back adapter..though you may have a netwrok card installed
it may not be configured properly..can
you see any LAN connection in Network and Dial up connections..
though you are not in a network, configuring
MS Lop back adapter solves your problem..
can you view TCP/IP under ur netwrork
adapter,if then check the IP of it..if you dont have it then
install TCP/IP using MS Loop back adapter
Pavan Kumar
Tata Consultancy Services
Mailto: [EMAIL PROTECTED]
Website: http://www.tcs.com
Sunit Bansal
[EMAIL PROTECTED]
02/16/2004 11:32 PM
Hello Bill and All,
Could any one of you throw some light on a problem that I am facing on Apache
1.3.28/Mod-jk 1.2.0/Tomcat 4.0.6 setup?
The problem is that an user could see someother user's data (some kind of session mix
up). When I searched the tomcat-dev list I found that Bill had
Hi all,
I have tomcat 4.1.29 installed and am trying to get it to fire up in
Eclipse. So far it runs, however if I include the struts.jar from the struts
1.1 directory I downloaded, tomcat throws an exception claiming it cannot
find the StandardServer class. If I use an older struts.jar
Hi Kuloth,
Seatch Tomcat-user for concurrency problems or threading issues.
There has been recent discussion on the topic.
Concurrency problems are the main source of session mix-up. Also look
for instance variables (hint: avoid them in Servlets)
Antonio Fiol
Anbu wrote:
Hello Bill and
s/charge/load/ ;-)
You could try to do it by hand. That is, if you are using taglibs,
create a tag that does that (and includes the error management you
need). Otherwise, use a static method that loads a URL and returns its
content as a String (including the result of error management in that
I would write a reload config servlet. It will save you one JDBC
access per request.
Antonio Fiol
Larraquy wrote:
Hi all, I've got this doubt. My applicacion uses some properties files to
config some events or constants, or whatever, but it's job basically is to
map the users click on a JSP,
78 matches
Mail list logo