Hi:
We have router1 doing load balancing and failover between worker1 and
worker2. We would like to configure additional worker3 such that
router1 will only forward the request to worker3 once all the failover
attempts are exhausted for worker1 and worker2 combination
How do we achieve this?
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Folks;
not sure whether this is too much a tomcat-related question, but at
least it relates to Java based web applications so hope someone around
here might have an idea on that: While building a Servlet/JSP based
intranet application, quite late I
hello
not sure whether this is too much a tomcat-related question, but at
least it relates to Java based web applications so hope someone around
here might have an idea on that: While building a Servlet/JSP based
intranet application, quite late I realized that somehow just adding
new objects /
En l'instant précis du 27/02/07 22:09, Henderson,Nathan s'exprimait en
ces termes:
This is an entry from our server.xml for one of our connections there are
14 just like this with different ip addresses for each entry and names of
course, I set up IP aliases on the NIC card for this purpose.
We tried changing the folder name, however that makes our servlet crash.
Couldn't find content.xml though; only admin.xml and manager.xml resides
under /conf/
.
The following error message is returned when trying to run the app:
org.apache.jasper.JasperException
From: wille [mailto:[EMAIL PROTECTED]
root cause
java.lang.NullPointerException
pubdb.Entry.getDocuments(Entry.java:399)
pubdb.Entry.getEntryById(Entry.java:217)
So what's causing the NPE then? :-)
- Peter
David Delbecq wrote:
No, this is not possible, as far as i know, to stop services without
stopping tomcat. However, using the manager interface of each of your
virtual host, you can stop webapps inside those services. Tomcat will
still listen to corresponding port but will respond with 404
Ok - continuing.
Is it possible to use a GenricServlet to do basicly this.
service(req,res)
{
for(;;)
{
readSome(req.getInputStream());
if(writeSome(req.getOutputStream()) {
req.flushBuffer();
} else {
break;
}
}
}
That
If you don't want to deal with HTTP, you should
not use the Servlet API (which is the Java
abstraction of HTTP) at all. You can do the
indicated code with generic sockets, no need to
mind about Servlets altogether.
Georg
Peter Kennard wrote:
Ok - continuing.
Is it possible to use a
^__^
Our webapp had hardcoded paths in it, now we just have to grep them
all and replace them.
Thanks y'all!
On Wed, 2007-02-28 at 10:58 +, Peter Crowther wrote:
From: wille [mailto:[EMAIL PROTECTED]
root cause
java.lang.NullPointerException
From: wille [mailto:[EMAIL PROTECTED]
Our webapp had hardcoded paths in it, now we just have to grep them
all and replace them.
Oops :-).
You might like to look at the servlet context's methods for fetching
resources (getResource and getResourceAsStream, I think). They make the
file
On Wed, 28 Feb 2007 12:36:03 +0100
Georg Sauer-Limbach [EMAIL PROTECTED] wrote:
If you don't want to deal with HTTP, you should
not use the Servlet API (which is the Java
abstraction of HTTP) at all. You can do the
indicated code with generic sockets, no need to
mind about Servlets
I understand what you are saying, however that means you also have to
re-do all the application management system. Deployment,
connectors, management, adminstration, thread management, load
balancing, SSL key management and configuration and many many other
infrastructure pieces that can be
That's certainly correct, raw socket communication
is not J2EE. Peter didn't mention, however, that
J2EE was a necessary precondition for his case.
On the contrary, this communication with some
binary messages sent over sockets cannot be made
to fit in a J2EE environment easily, save these
Excuse the naivety but I thought you couldn't open a socket with J2EE.
I was told (I think on this list) that you need to use a JCA to make
the connection.
If this is true I want to know about this. I am so far under the
impression if you needed to connect with another protocol in a
Yes - I'm assuming J2ee facilities.
At 06:57 2/28/2007, you wrote:
That's certainly correct, raw socket communication
is not J2EE. Peter didn't mention, however, that
J2EE was a necessary precondition for his case.
On the contrary, this communication with some
binary messages sent over sockets
It looks like you have bad syntax in you log4j.properties file.
If that were the case, i would have expected it to fail the first time i
started the application?
to be clear, here are the steps to reproduce the error
[1] deploy an unpacked webapp myapp to $TOMCAT_HOME/webapps/myapp
[2] start
Peter Kennard wrote:
Excuse the naivety but I thought you couldn't open a socket with J2EE.
I was told (I think on this list) that you need to use a JCA to make
the connection.
Tomcat is not a full J2EE server, just servlets+JSP, so maybe
it lets you do things which are verboten in J2EE?
If
From: Peter Kennard [mailto:[EMAIL PROTECTED]
Subject: Re: HTTP plus
Excuse the naivety but I thought you couldn't open a socket
with J2EE. I was told (I think on this list) that you need
to use a JCA to make the connection.
If this is true I want to know about this.
It's not
Hello
I have seen in the maven repository that the latest version of some
Tomcat components (for my concerns: jasper-runtime, jasper-compiler and
jasper-compiler-jdt) was the 5.5.15 version while the latest available
version on the tomcat website is 5.5.20.
Is it planned to update the maven
Hello,
this is an out of topic query to all community. Do anybody have
suggestions on how to manage ressource bundles translation? I have an
application. This one contains a good amount .properties file in 3
languages (default, french, dutch). As the application evolves, it
becomes more and more
Jeanna Geier wrote:
Hello List-
After having our application running smoothly with self-signed certificates,
we made the change today and purchased a Comodo InstantSSL certificate - and
after following the instructions on installing it, I'm having some problems
that I am hoping someone with
Hi
We are trying to get around the following problem:
We have a bunch of apaches running mod_jk in front of an JBoss farm. The
application requires a login to get a valid session.
Research in the Internet has schown the information the in oder to
maintain a session over http and https the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
David,
David Delbecq wrote:
Do anybody have suggestions on how to manage resource bundles
translation?
I just recently had to do the same thing. I found a great tool called
Attesoro, which does exactly what you want: http://attesoro.org/
It loads
At 09:42 2/28/2007, you wrote:
Back to the original issue: sounds like you really need to develop your
own connector to handle your proprietary protocol, rather than trying to
twist one of Tomcat's HTTP or AJP connectors into doing your bidding.
What we do is to be determined. What I want to
Hello,
I want to retrieve the user principal where I don't have the request
available i.e. I cannot use the method
HttpServletRequest.getUserPrincipal()
I need in particular the user name.
May you suggest something appropriate?
--
TREMALNAIK
From: Tremal Naik [mailto:[EMAIL PROTECTED]
I want to retrieve the user principal where I don't have the request
available i.e. I cannot use the method
HttpServletRequest.getUserPrincipal()
I need in particular the user name.
May you suggest something appropriate?
We got round this
Chuck,
Thank you for your reply. What has lead me down this path is that I am
trying to use Bootstrap.start() and .stop() to manage a Tomcat instance
within a main that I have written. The behavior that I'm seeing is that it
seems that .stop() does not actually cause the server to come all the
2007/2/28, Peter Crowther [EMAIL PROTECTED]:
We got round this by putting the name into a ThreadLocal variable from a
place where we *did* have access to it, then reading it later - messy,
I see, you use the same approach as JBoss. So, you mean there is no
way to get the user principal using
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tremal,
Tremal Naik wrote:
I want to retrieve the user principal where I don't have the request
available i.e. I cannot use the method
HttpServletRequest.getUserPrincipal()
Well, what /do/ you have available?
- -chris
-BEGIN PGP
2007/2/28, Christopher Schultz [EMAIL PROTECTED]:
Well, what /do/ you have available?
That was my question: What do I have available?.
May any of the following be useful?
I'm confused, really.
Server server = ServerFactory.getServer();
Service service = server.findService(Catalina);
Engine
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tremal,
Tremal Naik wrote:
2007/2/28, Christopher Schultz [EMAIL PROTECTED]:
Well, what /do/ you have available?
May any of the following be useful?
Server server = ServerFactory.getServer();
Service service = server.findService(Catalina);
On Feb 26, 2007, at 3:53 PM, Rainer Jung wrote:
Hi Kirk,
I never built for Sun Web Server, but I just saw the configure flag:
--enable-netscape
Did you ever try running configure with that one before doing the
make?
Yes, I added that at the 1.2.21-dev phase specifically
to allow for
This problem is pretty common when restarting web applications. Libraries
that use singletons etc. don't get reinitialized correctly when the web
application is reloaded.
Blimey, that sounds like a serious flaw :S
Do you know why they don't get reinitialized properly? Could you give me a
Let me know what you find. I had updated the configure.in
file to add the --enable-netscape option and updated the
BUILDING and Makefile.solaris files. I should likely
update the netscape/README file with the notes from BUILDING...
On Feb 26, 2007, at 4:42 PM, Kirk wrote:
I will take a look at
I wish to cleanup resources inside a valve on server shutdown (stop a
scheduler). Is there anyway to do this ?
Ravi
--
View this message in context:
http://www.nabble.com/Valve--post-lifecycle-event-tf3310448.html#a9208545
Sent from the Tomcat - User mailing list archive at Nabble.com.
2007/2/28, Christopher Schultz [EMAIL PROTECTED]:
How is it that you have code that needs request-specific information,
but no access to the request? Are you forced into this situation by
other components (through a callback mechanism or something like that)?
Or, is this the result of poor
It's not necessarily bad to use Singletons. You have to be certain that
they do not hold references to themselves or their class or they cannot be
unloaded. Google for: permgen log4j.
One thing about log4j -- you should have an ServletContextListener that
shuts down log4j properly:
public
We have found the problem.
Our deployment process misconfigured the jvmRoute tag in the server.xml.
All tomcats had the same jvmRoute name and therefore the mod_jk
loadbalanced the change of the protocol to a different server. The new
server did not know the session, initiated a new one and used
This looks liek a header file is missing on your system. The syntax
error definitely looks like a consequence of the missing header file. I
shortly checked on a Solaris Sparc system and the file
/usr/include/sys/tsol/label.h
was there as part of the package SUNWhea. Check if the file is
worker 1 and worker2 distance=0
worker 3 distance=1
Regards,
Rainer
Sriram Narayanan wrote:
Hi:
We have router1 doing load balancing and failover between worker1 and
worker2. We would like to configure additional worker3 such that
router1 will only forward the request to worker3 once all the
Hello,
I need to update/upgrade the JDK used by Tomcat for an application we
purchased, because of the daylight saving time issue. I can't seem to
find any documentation on the steps that need to be taken to upgrade the
JVM used by Tomcat. The installation instructions for Tomcat simply say
to
Eric Davis wrote:
Hello,
I need to update/upgrade the JDK used by Tomcat for an application we
purchased, because of the daylight saving time issue. I can't seem to
find any documentation on the steps that need to be taken to upgrade the
JVM used by Tomcat. The installation instructions for
Caldarale, Charles R wrote:
From: Daniel Gresh [mailto:[EMAIL PROTECTED]
Subject: Ant custom tasks: how to compile .java files and
restart Tomcat (Tomcat6.0.9)?
I have a src directory for my .java files that I wish
to compile to .class files and simply store them on
You should take a look at this link
http://java.sun.com/javase/tzupdater_README.html
-Original Message-
From: Eric Davis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 28, 2007 1:18 PM
To: users@tomcat.apache.org
Subject: How To Upgrade JDK used by Tomcat 4.1
Hello,
I
Thanks for your message. I looked around and the SUNWhea package is installed
on my Solaris 10 x86 server, but to get the /usr/include/sys/tsol/label.h file
I need to install a Sun patch 124209-01, SunOS 5.10_x86: Trusted Extensions
header files patch. We're not using Trusted Solaris- is there
I am trying to get a smart card to work with Tomcat. The smart card in
question is a DoD CAC (Common Access Card).
I believe that I have setup my Connector element correctly in my server.xml:
Connector port=8443
enableLookups=true
disableUploadTimeout=true
debug=1
From: Daniel Gresh [mailto:[EMAIL PROTECTED]
Subject: Re: Ant custom tasks: how to compile .java files and
restart Tomcat(Tomcat6.0.9)?
Is webapps/[appname], where [appname]=ROOT a web application?
If so, I can just use reload when I deploy new .class files
without ever having to
What is the best place to install JNI Java bridge and native libraries.
We are using Linux and Tomcat 5.
Thanks
Andrew Pliszka
Caldarale, Charles R wrote:
From: Daniel Gresh [mailto:[EMAIL PROTECTED]
Subject: Re: Ant custom tasks: how to compile .java files and
restart Tomcat(Tomcat6.0.9)?
Hello everybody,
I read the JNDI Resources HOW-TO and noticed that there is something
like a transaction manager in Tomcat 6. Is that right?
copy from the JNDI Resources HOW-TO
Transaction - Add a resource factory for instantiating the
UserTransaction object instance that is available at
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 6.0.10 stable. This release is the first stable release of the
6.0.x branch.
Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5,
including support for the new Servlet 2.5 and JSP 2.1 specifications, a
Hi,
As far as I understand, libraries can be placed anywhere as long as that
directory is in the path (environment variable, not classpath), while the
jni java side has to be placed either in the shared or common directories. I
have it working in the shared directory, so that Tomcat does not
Hello All!
I hope someone out there can offer a suggestion as to what might be going
wrong in the following situation. I am developing an application using JSP
and Tomcat 5.0.24. I am developing my application on a SunOS server. I am
deploying my application on a Linux server. The entire
Looked at that, but the version on the server doesn not have a patch.
[EMAIL PROTECTED] 2/28/07 1:00:29 PM
You should take a look at this link
http://java.sun.com/javase/tzupdater_README.html
-Original Message-
From: Eric Davis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February
So if a servlet is lets say in a long transaction, sending a huge
data set, and the manager is wanting to undeploy it,
Does it get notified while the long lasting servlet thread is sending
data so if one wants to abort it, you can truncate writing in a
controlled way and clean up the mess
Good Evening Fred
It appears your connector in server.xml does not have CertificatePath and or
RequestPath defined
keep in mind that all of the paths unless otherwise specified are relative to
$CATALINA+BASE
Here is an example of connector parameters to get you started
connector
scheme=https
P,
As far as I know just 1, though the java.exe is located in many
directories
\jdk\bin
\_jvm\bin
\jdk\jre\bin
How can I tell which one it is using. If I install 1.4.2_11 to another
directory, how to I tell Tomcat to use that JVM?
Thanks for the help.
E
[EMAIL PROTECTED] 2/28/07 11:12:22 AM
Ravi116 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I wish to cleanup resources inside a valve on server shutdown (stop a
scheduler). Is there anyway to do this ?
If all you want to do is cleanup, then a LifecycleListener is better than a
Valve (which is for request
OK - persistance has paid off :)
I now have a little client that with a small HTTP header will connect
with a servlet, and run a persistent telnet like session with it
until either someone times out or decides to quit. The only
requirement is that you initiate the connection with HTTP
StandardServer.await: create[8005]: java.net.BindException: Cannot assign
requested address
I have installed j2sdk1.5 and tomcat-5.0.28 on ubuntu plateform.
I have changed port no in server.xml also but still i am facing same
problem..
error that is displayed in catalina.out is as under:
From: hetal [mailto:[EMAIL PROTECTED]
Subject: create[8005]: java.net.BindException: error occured
while startingtomcat on Ubuntu Plateform
StandardServer.await: create[8005]: java.net.BindException:
Cannot assign requested address
This is usually due to the port already being in use
From: hetal [mailto:[EMAIL PROTECTED]
Subject: create[8005]: java.net.BindException: error occured
while startingtomcat on Ubuntu Plateform
StandardServer.await: create[8005]: java.net.BindException:
Cannot assign requested address
This is usually due to the port already being in
From: hetal [mailto:[EMAIL PROTECTED]
Subject: RE: create[8005]: java.net.BindException: error
occured whilestartingtomcat on Ubuntu Plateform
I have checked on my machine only one tomcat is running and I
have also tried netstat command it is not listing 8005 port.
Do you have a
Hi,
I am new to Tomcat. I have an enterprise application (which was developed by
an external vendor and for which we have no source code) that is running on
the followng:
1. Apache Tomcat 4.1.31
2. J2SDK1.4.2_11
3. Windows 2003 OS SP1.
The hardware is as follows:
HP 2-CPU machine
2 GB Memory
Hi
I'm not sure if it's the problem of Tomcat, but I've spotted it after
upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session
scoped beans as I'm using request ones. When I enter some data, submit them
and return back to that page, the data remains there. I've no clue why
En l'instant précis du 01/03/07 08:15, Nurul Zaman Mohamed Akhbar
s'exprimait en ces termes:
Hi,
I am new to Tomcat. I have an enterprise application (which was
developed by an external vendor and for which we have no source code)
that is running on the followng:
1. Apache Tomcat 4.1.31
2.
Michal Glowacki wrote:
Hi
I'm not sure if it's the problem of Tomcat, but I've spotted it after
upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session
scoped beans as I'm using request ones. When I enter some data, submit them
and return back to that page, the data remains
67 matches
Mail list logo