For a few days, I have been breaking my head over this issue:
My goal is to create a filter which detects Ajax calls (using jQuery for
Ajax, which adds "X-Requested-With: XMLHttpRequest" to the request headers).
If some jsp is requested by an Ajax call, I want to process the jsp's output
with thi
yeah i've followed it, but i'm just lost with the first lines:
* ObjectName loader = getServerLoader(); // depends on the settings and*
* version
ObjectName registry = getRegistry(); // depends on the settings and
version
MBeanServer server = getTCMBeansServer(); // generally the first one,
Hi,
I have tried various solutions regarding virtual hosts in tomcat and none
of them work.
I have in my server.xml:
Under my webapps directory, I have vh1 directory
I have vh1.com in my DNS.
So, when I type http://v1.com, it is opening the project corresponding to
webapps/vh1.
Now, I have
Hi,
I need to install multiple instances of Tomcat on my server.
I changed all the connection and redirect ports, but the second Tomcat still
doesn't start.
What should I do?
Thank you,
Steve
--
View this message in context:
http://www.nabble.com/Installing-Multiple-Instances-on-Windows-Ser
Can you post the error that it spits out while starting up?
-Original Message-
From: Steve G.B. <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Tue, 2 Sep 2008 3:49 pm
Subject: Installing Multiple Instances on Windows Server 2003
Hi,
I need to install multiple instances
> From: Steve G.B. [mailto:[EMAIL PROTECTED]
> I need to install multiple instances of Tomcat on my server.
>
> I changed all the connection and redirect ports, but the
> second Tomcat still
> doesn't start.
>
> What should I do?
Give us more information - that's far too vague for us to help you.
in catalina.log I have this:
Sep 2, 2008 12:34:44 PM org.apache.catalina.core.StandardServer await
SEVERE: StandardServer.await: create[8005]:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImp
I posted logs and ports in the other reply.
Here I can tell you that the first service started is running quite good,
the seconds starts and then crashes.
Peter Crowther wrote:
>
>> From: Steve G.B. [mailto:[EMAIL PROTECTED]
>> I need to install multiple instances of Tomcat on my server.
>>
>>
The error clearly indicates that something is running on port 8080.
It's not the other tomcat but probably some other process.. if you
have oracle it's app server runs on 8080 by default
Try changing the connector and redirector ports to non default values
(say 18080 and 18443) and see
Ok got it.
It was the server port 8005 that should be changed.
Thank you!
bhooshanpandit wrote:
>
> The error clearly indicates that something is running on port 8080.
> It's not the other tomcat but probably some other process.. if you
> have oracle it's app server runs on 8080 by defa
I have another question.
I'm trying to overload the Virtual Machine on which I've installed the two
Tomcats.
But I can't exceed a 50% of CPU Utilization.
I believe it's a JVM limitation. Is there a way to change jvm configurations
in order, for example, to create even more threads?
Thank you!
Hi,
I have installed openejb with tomcat. Has anybody tried openEJB before? Does
it provide all the functionality that EJB provides with websphere, weblogic,
Jboss, etc...
Regards,
Gaurav Pruthi
On Mon, Sep 1, 2008 at 1:22 PM, András Csányi <[EMAIL PROTECTED]> wrote:
> 2008/9/1 Gaurav Pruthi <
> From: Steve G.B. [mailto:[EMAIL PROTECTED]
> I'm trying to overload the Virtual Machine on which I've
> installed the two Tomcats.
To check: this is a virtual computer (on a physical host computer) running a
virtual operating system on which you are running two copies of Tomcat in two
separate
I've found these
* ObjectName loader = new
ObjectName("Catalina:type=ServerClassLoader,name=common");
**
MBeanServer server =
java.lang.management.ManagementFactory.getPlatformMBeanServer();
*
but registry is not in my JMX.
O.V
2008/9/2 Olivier Vergès <[EMAIL PROTECTED]>
>
> yeah
It's a Quad Core Intel Xeon with 4GB of RAM and ESX running on it.
I've created a VM with 4 VCores, and all of the cores are allocated to the
VM.
I'm using Sun JVM 1.6, and stressing the Guest with Loadrunner on another
machine (if you ask: this machine with loadrunner isn't the bottleneck)
No
Do you have jstl.jar and standard.jar in your WEB-INF/lib directory?
--David
sam wun wrote:
Hi,
I have added testdb.jsp in the following path in Suse linux (the tomcat
server):
/tomcat/apache-tomcat-5.5.26/webapps/DBTest/
The content of the testdb.jsp code is:
<%@ taglib uri="http:/
I'm not sure about your install layout at the moment -- whether you
installed via a tomcat original distribution or some third party
packaged version. If you used a third party package version, undo your
efforts to duplicate the first tomcat. Then download, unarchive, and
customize the second t
Hi David,
No, I don't have this 2 jar files in the common/lib/ directory.
where can I download it from?
Thanks
Sam
> - Original Message -
> From: David Smith
> Sent: 02/09/08 10:39 pm
> To: Tomcat Users List
> Subject: Re: Can't execute servlet project
>
> Do you have jstl.jar
I checked and there's no custom error page. As for the browser, it shows
Tomcat's 404 error page. However, the IIS logs still show a 200.
From: Rainer Jung [EMAIL PROTECTED]
Sent: Monday, September 01, 2008 04:43
To: Tomcat Users List
Subject: Re: Tomcat c
Hi guys,
I have quite a bit of a problem here.
Status quo:
We have some heavily framed static html, which now should be served by
Tomcat (5.5) only via SSL.
The whole content needs to be protected, so I've implemented a
FormAuthenticator.
However, the heavy framing *yuck* of this static html is
already running (${kpid})"
>>> RETVAL="0"
>>> else
>>> echo "lock file found but no process running for pid $kpid"
>>> fi
>>> else
>>> pid="$(pgrep -u tomcat java)"
>>> if [ -n "$pid" ]; then
>
Don't edit your profile. Any environment variables needed by tomcat
should be provided by the service script. Just define them at the top
before an processing. That isolates the second one from the first.
--David
Eduardo Ponce de Leon wrote:
David,
Thanks for the response, that is what I did.
Hi all,
I have a Java web app that has shown to be working while accessing via
http://localhost:8080/webapp1. I have two machines, 1 laptop and 1 desktop,
both installed Tomcat 5.5 on WinXP. The problem is when I start Tomcat on my
laptop, both machine can access the web app. On the other hand, if
Hmmm... good question. I moved over to Maven and don't manually
download these any more. This looks like it should do the trick:
Try http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
--David
sam wun wrote:
Hi David,
No, I don't have this 2 jar files in the common/li
I just went to the website , very confused.
The taglib file is not a jar file. they are binary or source file.
And I couldn't find standard.jar file either.
Thanks
> - Original Message -
> From: David Smith
> Sent: 02/09/08 11:44 pm
> To: Tomcat Users List
> Subject: Re: Can't execu
Download the binary zip file and expand it. Within it is a lib
directory with just standard.jar and jstl.jar.
--David
sam wun wrote:
I just went to the website , very confused.
The taglib file is not a jar file. they are binary or source file.
And I couldn't find standard.jar file either.
Hi guys,
I am a completely newbie in tomcat.
Just wondering if there is any open-source tool which would help me create
and organize the contents of our company's web-site (about us, our services,
our clients etc..).
I am only familiar with pure HTML, but it does not provide any tools to
manage c
Thanks David,
After copied the jstl and standard dot jar files into the directory:
linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/lib # ls
. .. jstl.jar mysql-connector-java-5.1.3-rc-bin.jar standard.jar
I got the following different errors:
(In line 4, what is jdbc/TestDB?
2008/9/1 Jamie Robert Thompson <[EMAIL PROTECTED]>
> Hi, I'm currently stuck at the last hurdle of a task which involves
> integrating JavaHelp into an ASP.net application. I know little about Java,
> even less about JSP, but my boss likes server-side JavaHelp *sigh*. I chose
> Tomcat 6.0.18 and t
DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException:
Cannot create JDBC driver of class '' for connect URL 'null'"
This error typically indicates the JNDI db pool hasn't been setup
correctly. Some config option isn't setup. What's in this webapp's
context xml file? Also what
The URL I put in the firefox browser is:
10.1.9.1:8080/DBtest/testdb.jsp
Here is the /tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/web.xml
file:
http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2
Sounds like you're considering a CMS package. Google around -- you'll
find a lot of them. Some are open source, some are commercial. I have
Magnolia here and it works very well.
--David
Toby White wrote:
Hi guys,
I am a completely newbie in tomcat.
Just wondering if there is any open-sou
This is the only context.xml file I got in the tomcat (5.5.26) directory:
/tomcat/apache-tomcat-5.5.26/conf/context.xml:
WEB-INF/web.xml
> - Original Message -
> From: David Smith
> Sent: 03/09/08 01:49 am
> To: Tomcat Users List
> Subject: Re: Can't execute
Here is the mysql-connector jar file I got in the common/lib directory:
linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql*
mysql-connector-java-5.1.3-rc-bin.jar
Is thsi the correct mysql jar file?
Thanks
Sam
> - Original Message -
> From: David Smith
> Sent: 03/09/08 01
> From: Steve G.B. [mailto:[EMAIL PROTECTED]
> I've created a VM with 4 VCores, and all of the cores are
> allocated to the VM.
OK, so 50% CPU = 2 cores maxed out. Out of interest, is it 25% with only one
Tomcat started?
> I'm using Sun JVM 1.6, and stressing the Guest with
> Loadrunner on anot
The mime-mappings in web.xml look like:
doc
application/msword
Which works fine if your document is named "foo.doc", but fails
miserably for "foo.Doc", "foo.DOC", etc. Is there a way to configure
Tomcat so that the extensions are case-insensitive?
Thanks!
-Joel
-
Google is your friend: open source web site management
On Sep 2, 2008, at 11:31 AM, Toby White wrote:
Hi guys,
I am a completely newbie in tomcat.
Just wondering if there is any open-source tool which would help me
create
and organize the contents of our company's web-site (about us, our
Here is the mysql-connector jar file I got in the common/lib directory:
linux:~/tomcat/apache-tomcat-5.5.26/common/lib # ls mysql*
mysql-connector-java-5.1.3-rc-bin.jar
Is thsi the correct mysql jar file?
Yes ... looks good. Just be sure this is the only place you have a
mysql JDBC drive
The issue turns out to be that the Apache-Tomcat is not able to handle
the full set of cipher suites implemented in the latest FireFox v3.0.1.
When I try to the establish the https connection, the tomcat server
seems to choke with the set of cipher suites negotiated by the FireFox
browser and e
I don't think it is possible, because in tomcat file names are case
sensitive so foo.doc is not same as foo.Doc (if u try to access foo.doc
as foo.Doc tomcat will return 404).
I think - however not sure - the reason for this case sensitive
implemenatation is to get rid of security vulnerabilit
If the case is:
* webapp1 deployed on Desktop
* accessible from desktop using http://localhost:8080/webapp1
* not accessible (404) from laptop using http://:8080/webapp1
... then I think you should check the access logs in Tomcat to see what
request in coming from the laptop. To enable access l
it works in part, i have done this to add a ssoagentvalve:
*
String vname = "Catalina:type=Valve,name=SSOAgentValve,host=" + nameVH;
ObjectName ovalve = new ObjectName(vname);
Object valve =
server.instantiate("org.josso.tc60.agent.SSOAgentValve");
org.apache.tomcat.util
Gregor Schneider wrote:
No, in fact the 64-bit-jvm is able to adress (thus use) more memory
than on 32-bit-jvm.
just make sure that a 64-bit-jvm (java-virtual-machine) is installed.
Actually, in machine terms, pointers in a 64-bit system are twice as
wide and thus take up twice as much spac
Suresh,
I guess no one is having the same problem like what you're having.
As a first guess, within your connector I'd change
clientAuth="false" sslProtocol="TLS" keystoreType="PKCS12"
to
clientAuth="false" sslProtocol="ALL" keystoreType="PKCS12"
2nd, I'd have a look how it
sure there is,
you can deploy it by using a context
Filip
Mathias P.W Nilsson wrote:
Hi!
I'm using tomcat with wicket framework for my webapplication. My images,
css, flashes resides outside the container and therefor I'm using a Servlet
to serve the files.
Is there any builtin function to
SSLEngine="on" should be SSLEnabled="true"
Gregor Schneider wrote:
Hi there,
I'm about to give it up.
One final question though:
Anybody out there who has the following combination up & running:
- Linux (Debian preferred, other distributions also welcome)
- Tomcat 5.5
- APR
- SSL
?
I'm
- Original Message -
From: "Sathish Vadhiyar" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, September 02, 2008 11:51 AM
Subject: help with virtual hosting
Hi,
I have tried various solutions regarding virtual hosts in tomcat and none
of them work.
I have in my server.xml:
Under my web
Hello,
I am getting the following error when starting up Tomcat 6.0.16 on Windows 2003:
"Sep 2, 2008 4:18:13 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat
Native library which allows optimal performance in production
environments was not found on the java
Brian Clark wrote:
> Hello,
>
> I am getting the following error when starting up Tomcat 6.0.16 on Windows
> 2003:
>
> "Sep 2, 2008 4:18:13 PM org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat
> Native library which allows optimal performance in production
>
AprLifecycleListener reads java.library.path
so either start Java with -Djava.library.path
java -Djava.library.path=LocationOfBinary bootstrap.jar
(easier to place -Djava.library.path into JAVA_OPTS)
OR
set LD_LIBRARY_PATH=LocationOfBinary
YMMV/
Martin
___
- Original Message -
From: "Brian Clark" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, September 03, 2008 12:17 AM
Subject: Tomcat Native library for Windows
Hello,
I am getting the following error when starting up Tomcat 6.0.16 on Windows
2003:
"Sep 2, 2008 4:18:13 PM org.apache.cat
I downloaded the file
http://tomcat.heanet.ie/native/1.1.14/binaries/win32/tcnative-1.dll
I didn't change the name.
- Original Message
From: Mark Thomas <[EMAIL PROTECTED]>
To: Tomcat Users List
Sent: Tuesday, September 2, 2008 5:38:45 PM
Subject: Re: Tomcat Native library for Window
Hmmm...on Windows, what is the difference between java.library.path and the
Windows environmental variable PATH?
I am not sure I understand your suggestion. I have my Java Classpath set to
this, which contains my bootstrap.jar.
C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\bootstra
- Original Message -
From: "felix l" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, September 02, 2008 3:52 PM
Subject: Cannot access remote web app
Hi all,
I have a Java web app that has shown to be working while accessing via
http://localhost:8080/webapp1. I have two machines, 1 laptop a
Tomcat 6.0.18
java version "1.6.0_06" (sun-java6-jdk on Ubuntu 8.04 i386)
I'm attempting to create environment entry resources, of type
java.lang.String, within conf/server.xml and access them from web
applications using JNDI. I've created a bare-bones test web app,
jndistring, with the following
Thanks!
I'm currently deploying using ROOT.war. Here is the server.xml content.
How can I fit the images into this beacuse I don't quite follow.
myhost
--
View this message in context:
http://www.nabble.com/Tomcat-6-and-images-tp19260262p19280777.html
Sent from the Tomcat - User
> From: Brian Clark [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat Native library for Windows
>
> Hmmm...on Windows, what is the difference between
> java.library.path and the Windows environmental variable PATH?
By default, none.
> I have my Java Classpath set to this, which contains
> my boots
> From: Paul Pepper [mailto:[EMAIL PROTECTED]
> Subject: Problem with JNDI environment entry resources
>
> Can anyone suggest what I might have missed?
What happens if you follow the (strongly) recommended practice of not putting
elements in server.xml? If you don't want to put the
inside you
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
/WEB-INF/web.xml contents which contain a jndi reference http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.
> From: Mathias P.W Nilsson [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat 6 and images
>
> How can I fit the images into this beacuse I don't quite follow.
Do what Filip suggested; create a element in
conf/Catalina/localhost/images.xml with this value:
This creates another webapp named "ima
After moved the context.xml file to
/tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost/
with the content changed to:
WEB-INF/web.xml
(I have the exact db, table and username/password created like this).
And I have removed the context.xml file in webapps/DBTest/WEB-I
Thanks for the suggestions. I just re-downloaded the file and now it works. I
guess it was corrupted during the original download or something. Go figure.
Brian
- Original Message
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: Tomcat Users List
Sent: Tuesday, September 2, 2008
I found there are some xml file in the conf/ directory:
linux:~/tomcat/apache-tomcat-5.5.26/conf # ls
. Catalina catalina.policy logging.properties
server.xml web.xml
.. DBTest.xml catalina.properties server-minimal.xml
tomcat-users.xml
linux:~/tomcat/apache-tomcat-5.5.26/c
Amazing. Firewall was the problem.
Thanks again, everyone.
On Tue, Sep 2, 2008 at 7:55 PM, Johnny Kewl <[EMAIL PROTECTED]> wrote:
>
> - Original Message - From: "felix l" <[EMAIL PROTECTED]>
> To:
> Sent: Tuesday, September 02, 2008 3:52 PM
> Subject: Cannot access remote web app
>
>
>
Leave web.xml -- it's the global web.xml. DBTest.xml can be removed
without error. It isn't harming anything here but at the same time it
doesn't belong here.
--David
sam wun wrote:
I found there are some xml file in the conf/ directory:
linux:~/tomcat/apache-tomcat-5.5.26/conf # ls
. Ca
If the context xml file is in
/tomcat/apache-tomcat-5.5.26/conf/Catalina/localhost, it should be named
after your webapp (e.g.: DBTest.xml). It's only named context.xml when
in your webapp's META-INF folder.
--David
sam wun wrote:
After moved the context.xml file to
/tomcat/apache-tomcat-5.
After this final changed (renamed the context.xml file to DBTest.xml), it
works fine now.
Thank you very much for the help along the way.
Without your patient and effort, I wouldn't be able to get this going.
Thanks
Sam
> - Original Message -
> From: David Smith
> Sent: 03/09/08 1
Thank you very much it works perfectly and I got rid of my servlets :)
--
View this message in context:
http://www.nabble.com/Tomcat-6-and-images-tp19260262p19282295.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---
Trying to build tomcat 6.0.18 ... ant
-Dbase.dir=/usr/local/work/Java/Tomcat download bombs around here ...
tips? :
build-tomcat-dbcp:
[copy] Copying 63 files to
/usr/local/work/Java/Tomcat/tomcat6-deps/dbcp
[move] Moving 63 files to
/usr/local/work/Java/Tomcat/tomcat6-deps/dbcp/src/
> From: Jack Woehr [mailto:[EMAIL PROTECTED]
> Subject: Trying to build tomcat 6.0.18
>
> Trying to build tomcat 6.0.18 ...
The first question: why are you trying to build it? It's pure Java, so the
binary downloads will run on any platform.
> does not override abstract method
> createQueryObje
Hello,
I am running suse linux, java version "1.6.0_06", tomcat 6.0.16 and I
have the Listener for user directories configured so I can access
webapps at eg: localhost/~myUserName. All was working great until I
tried to configure a jdbc data source in my public_html/META-INF
directory
Caldarale, Charles R wrote:
You need to build with a 1.5 JDK,
Thank you so kindly!
--
Jack J. Woehr# "Self-delusion is
http://www.well.com/~jax # half the battle!"
http://www.softwoehr.com # - Zippy the Pinhead
Haven't yet tried with Sun JRE.
When I try setting the sslProtocol="ALL" in server.xml, the tomcat
error'd out the following in catalina.out:
SEVERE: Error starting endpoint
Throwable occurred: java.io.IOException: SSLContext ALL implementati
73 matches
Mail list logo