Yes that is true, as soon as you use the security XML stuff, tomcat starts
doing its thing, but if you dont use it, tomcat ignores security, and you
can write your own code in a servlet.
Thing is its then portable to any servlet container...
If you using BASIC its actually very easy to do... j
SOLVED!!!
In first time, thank you a lot Markus!
Finally i solved the problem with Apache2, i put one apache2 server
connected to Tomcat, and with mod_proxy_ajp redirects the request to my
application.
Adolfo.
Markus Schönhaber wrote:
aordin schrieb:
I'm looking for set my application(j
Hi
I've a an Axis war where a lot of people publish applications and then, lib
directory is caotic with a lot of jar files. Each time somebody delete your
webservice application, he/she can't delete related jar files because
ignores if somebody else is using it.
I want to arrange and organize a
No... what I'm trying to tell you is that if your servlet makes a page with
file/// links... microsofts new security is going to stop it from
working nothing to do with Tomcat.
Other browsers also do it
If a page is delivered by Tomcat or any server with file:/// links you going
to have
Hi all,
Not sure if the subject is appropriate. Here's a description of what I
need to achieve:
I have a servlet that can block on a request for a long duration. This
essentially means the Tomcat processor thread that is serving the HTTP
request is blocked and unable to process more incoming reque
Hi,
I want to use these filters for authenticate on tomcat manger. I use this
wiki page :
http://www.ja-sig.org/wiki/display/CASC/Combining+CASFilter+with+Tomcat+Realms+using+SecurityFilter
http://www.ja-sig.org/wiki/display/CAS/CASifying+Tomcat+Manager
So I have this in my web.xml :
...
Johnny's right. Just think of the fun and hijinks malicious web
developers could bring to the table if they could reference any file
(document or command) they could guess the path to.Add some ajax and
the fun get's even better.
IMHO, it's a good thing this doesn't work.
--David
Johnny
Hi all,
I'm trying to configure mod_jk as load balancer and I was not so
successful so far.
My environment architecture looks like this:
2 servers running each 3 instances of JBoss/tomcat Aplication server
with ports 8080,8081 and 8082.
Into each server instance I add AJP 13 protocol l
Hi,
I am working on a similar scenario and currently elaborate on the Comet
interfaces.
1. With the BEGIN event you get a fully parsed request object, i.e. you
don't need to wait for READ events to start processing the request.
2. You can keep a reference to the request and response object so th
I tried with Tomcat6 compiled from trunk revision 532271 and two
browsers sending the requests.
Unfortunately it is not that easy for me to put the dump on a public web
server.
Instead, I had a look at the dump myself.
First I ran Tomcat with a single connector with attribute maxThreads=20,
and s
On 4/25/07, Reich, Matthias <[EMAIL PROTECTED]> wrote:
First I ran Tomcat with a single connector with attribute maxThreads=20,
and started it with -Xmx10m.
In the dump I saw 103 instances of class
org.apache.coyote.http11.Http11AprProcessor and the same number of all
the attached objects like Re
It also doesn't work with the resource-ref element. The error was ""
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context"",
but I was able to lookup the jdbc/sandwiches datasource using programmatic
jndi lookup.
Weird part is that everything works fine if I move the datasour
David Smith <[EMAIL PROTECTED]>
Martin Gainty <[EMAIL PROTECTED]>
Johnny Kewl <[EMAIL PROTECTED]>
Caldarale, Charles R <[EMAIL PROTECTED]>
Fargusson.Alan <[EMAIL PROTECTED]>
thank all you guys and those who are paying attention to this topic.
to Martin : thanks for reminding me of policy, i didn
So far, I have the feeling that I am the only one who has seen these memory
leaks with asynchronous Comet responses.
I tried with a number of variations, e.g.
- let the browser wait for 500 millis before sending the next poll after
receiving a result
- keep the events queued in the serverfor at
Hello Gregor,
did you configure jk_mounts in jk.conf ? They determine, what is passed on
via the loadbalancer-worker to tomcat.
Also, I dislike the idea to habe the same ajp-Port al all instances (or do
they have different names?).
Finally, do not forget to set the individual jvm_route on the
in your webapp WEB-INF/web.xml you will need to define the
ContextLoaderListener
then you will also need a way to define the root context
if you want to locate the parameters in your applicationContext.xml try
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
Hi,
I have an app running fine on port 8080, but nothing works when I
switch to port 80 -
in server.xml, changing:
to
I get this error message:
SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address
Looks like something else is listening on port 80. Is IIS running?
Larry
On 4/25/07, John Pedersen <[EMAIL PROTECTED]> wrote:
Hi,
I have an app running fine on port 8080, but nothing works when I
switch to port 80 -
in server.xml, changing:
to
I get this error message:
SEVERE: Error s
The reason might be related with administration rights. Not every user has the
right to run an application which listens to requests on port 80.
since 8080 > 1024, so you don't live any problem.
I couldn't get the whole picture in my head actually. I just wanted to remind
this.
Regards
hs
Lar
likely IIS by default! The WWW publishing service.
-Original Message-
From: John Pedersen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 9:55 AM
To: users@tomcat.apache.org
Subject: problem switching to port 80
Hi,
I have an app running fine on port 8080, but nothing works wh
Hi,
I have the following problem with Comet. I have a long request, and I
asynchronously write data to the output stream of the response while the
request is between the BEGIN and END/ERROR events. However, the writes
do NOT occur while IN a READ request, but are triggered by other events
on
Also check if something is using the other ports that Tomcat uses -
the shutdown port, SSL port, other connectors (e.g. AJP), clustering
ports. They're all found in server.xml (but some are probably
commented out).
--
Len
On 4/25/07, John Pedersen <[EMAIL PROTECTED]> wrote:
Hi,
I have an app ru
> From: John Pedersen [mailto:[EMAIL PROTECTED]
> Subject: problem switching to port 80
>
> I guess there must be something else using port 80? but I can't see it
> ( tried netstat).
Use "netstat -an"; plain netstat without options may not show
everything.
The problem may not be port 80, since
Hello All,
One of my webApps is throwing the following exception;
java.lang.ClassFormatError:
Illegal UTF8 string in constant pool in class file
org/hibernate/hql/ast/ErrorCounter
I have checked the UTF8 strings; nothing has changed and the app has been
running without issue.
Any ideas are grea
On 4/25/07, Reich, Matthias <[EMAIL PROTECTED]> wrote:
So far, I have the feeling that I am the only one who has seen these memory
leaks with asynchronous Comet responses.
I tried with a number of variations, e.g.
- let the browser wait for 500 millis before sending the next poll after
receivi
almost sounds like you have to use the equivalent for a "<" like a &lquo; or
some similar type marking in the proper xml file.
Might look into it, even though nothing changed as you said.
-Original Message-
From: Dwight Farris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 10:
Thanks for your quick response, Barry; I will take a look into that.
Dwight
-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 8:19 AM
To: Tomcat Users List
Subject: RE: Application startup error - TOMCAT 5.0.28 / 1.5
almost sounds like yo
netstat -an with Tomcat stopped:
Proto Local Address Foreign AddressState
TCP0.0.0.0:1350.0.0.0:0 LISTENING
TCP0.0.0.0:4450.0.0.0:0 LISTENING
TCP0.0.0.0:1025 0.0.0.0:0 LISTENING
TCP0.0.0.0:
Do you have a small test case,
if nothing else, your connections should eventually timeout and that
should recycle the processors.
As long as the comet connection is active, the processor is spoken for.
Filip
Reich, Matthias wrote:
So far, I have the feeling that I am the only one who has see
Not sure what happened - but it is working now. Now I just have to try
to find out if it was something I switched off, or someone else
changing the networks settings.
Thanks for the fast response guys.
If I get a definite answer to what went wrong, I will post it for
future reference.
John
---
My personal preference for ferreting out port problems in Windows is
TCPView
(http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx).
It'll offer up a fair amount of info on the process that has the
conflicting port.
--David
John Pedersen wrote:
Hi,
I have an app running
Hi:
I have similar issue. Would you know if we need to save trhe Subject in
HttpSession?
Otherwise, how would the context get the Subject as follows -
Subject = <%= Subject.getSubject(AccessController.getContext()) %>
thanx
Shahab
Mark Benussi wrote:
>
> I am implementing my first JAAS impl
On 4/25/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
Do you have a small test case,
if nothing else, your connections should eventually timeout and that
should recycle the processors.
As long as the comet connection is active, the processor is spoken for.
He submitted a test webapp th
On 4/25/07, Dwight Farris <[EMAIL PROTECTED]> wrote:
Hello All,
One of my webApps is throwing the following exception;
java.lang.ClassFormatError:
Illegal UTF8 string in constant pool in class file
org/hibernate/hql/ast/ErrorCounter
I have checked the UTF8 strings; nothing has changed and the a
On 4/25/07, JavierL <[EMAIL PROTECTED]> wrote:
Hi
I've a an Axis war where a lot of people publish applications and then, lib
directory is caotic with a lot of jar files. Each time somebody delete your
webservice application, he/she can't delete related jar files because
ignores if somebody el
Hi shahab,
Here's : http://forum.java.sun.com/category.jspa?categoryID=15 for
JAAS related questions.
To set any object into HTTP Session use the setAttribute method:
http://java.sun.com/javaee/5/docs/api/ , and removeAttribute.
Regards
-Rashmi
On 4/25/07, shahab <[EMAIL PROTECTED]> wrote:
H
I was trying to follow the direction from the web site for building Tomcat
5.5 from source. I was wondering if anybody has done a from scratch build
using those instructions? I found right off the build.xml
(http://tomcat.apache.org/tomcat-5.5-doc/build.xml) linked from that page
(http://tomcat.a
Rémy Maucherat wrote:
On 4/25/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
Do you have a small test case,
if nothing else, your connections should eventually timeout and that
should recycle the processors.
As long as the comet connection is active, the processor is spoken for.
He sub
definitely a bug, I will work on a fix right away.
Filip
Sebastiaan van Erk wrote:
Hi,
I have the following problem with Comet. I have a long request, and I
asynchronously write data to the output stream of the response while
the request is between the BEGIN and END/ERROR events. However, the
On 4/25/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
then it's normal behavior, he'll just have to wait for a timeout or the
client will disconnect
I don't know for sure, of course, but it's my theory at the moment.
Rémy
--
Sebastian,
I have checked in a fix to SVN. You can also work around the problem by
not using the shared selector by adding
-Dorg.apache.tomcat.util.net.NioSelectorShared=false
to your command line
Filip
Filip Hanik - Dev Lists wrote:
definitely a bug, I will work on a fix right away.
Filip
S
Hi,
Thanks for the quick action. I'll test the new version right away. :-)
Regards,
Sebastiaan
Filip Hanik - Dev Lists wrote:
Sebastian,
I have checked in a fix to SVN. You can also work around the problem
by not using the shared selector by adding
-Dorg.apache.tomcat.util.net.NioSelectorSha
1. dont use folders with spaces, in theory they should work, in
practice, who knows
2. building is easier than that, follow these steps
a) svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x
b) cd tc5.5.x
c) edit build.properties.default (the base.path parameter is where it
will
When I make a request to my local server, I always receive a response header
like this:
HTTP/1.1 200
Server: Apache-Coyote/1.1
Content-Type: anything I Want
Content-Language: anything I Want
Content-Length: anything I Want
Date: Wed, 25 Apr 2007 18:07:18 GMT
Connection: close
I can change
And your tomcat version? In 5.5+ you should be able to set the server
attribute of your connector. See the docs on the tomcat website for
further details.
--David
Dummy wrote:
When I make a request to my local server, I always receive a response header
like this:
HTTP/1.1 200
Server: A
Hi this post is a follow up from
http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does
not belong.
I want to find out if my understanding of the comet api in tomcat is right
concerning how connections are handled and event are triggered. I have a
very simple test webapp whi
Why does Tomcat need network connectivity on startup. Can't I use it on a
machine that is not connected on the network (localhost)?
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTE
.. but it seems like it is searching for DNS server on startup :-/
> --=_Part_140061_20812969.1177528468191
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
>
> It doesn't need network connectivity (at least not as
I'm not entirely sure, but it seems like I saw something once implying
some OS's (I'm thinking MS) disable the localhost when there's no active
network interface. Don't think there's any reason why tomcat should be
prevented from binding to localhost if it's available.
--David
EDMOND KEM
It doesn't need network connectivity (at least not as far as i know). Most
developers use it within a localhost setting. If you're on windows and
you're getting a prompt about a process wanting to open a port, that is just
a network security issue, it doesn't mean tomcat requires internet access.
Daniel Doubleday wrote:
Hi this post is a follow up from
http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does
not belong.
I want to find out if my understanding of the comet api in tomcat is right
concerning how connections are handled and event are triggered. I have a
ve
Rashmi Rubdi-2 wrote:
>
>
> From my experience, adding Jars for different apps in the same lib
> folder will cause conflicts and duplicates, especially if one person
> is using a JAR for one version and another is using a different
> version.
>
> However, you can have different projects with e
> From: David Smith [mailto:[EMAIL PROTECTED]
> Subject: Re: (newbie) Why tomcat needs network on startup?
>
> Don't think there's any reason why tomcat should be
> prevented from binding to localhost if it's available.
By default Tomcat doesn't bind to localhost, it uses 0.0.0.0 - all IP
addre
Type netstat -noa
It will give you the PID...
Then Ctrl Alt Delete -> Process's and View -> Select Tab PID
Then you can match up the application on port 80 exactly
Bet its SKYPE... ;)
- Original Message -
From: "John Pedersen" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, April 25,
Javier,
I don't know much about Webservices and Axis in particular, but at one
time I did download the Axis distribution.
In the lib folder of the Axis distribution there are a few JAR files
axis.jar, wsdl4j-1.5.1.jar etc.
Normally, when I write multiple projects that use JAR files from
differe
Hi,
The fixes seem to work well, thanks again! :-)
Regards,
Sebastiaan
Sebastiaan van Erk wrote:
Hi,
Thanks for the quick action. I'll test the new version right away. :-)
Regards,
Sebastiaan
Filip Hanik - Dev Lists wrote:
Sebastian,
I have checked in a fix to SVN. You can also work around
>> I don't think that a event.close() call should throw a NPE when the event
is
>> already closed. But I would rather catch an exception when I am writing
>> to
>> response object that has been closed.
>
> that is possible to do, do you have the stack trace of the NPE?
Here is the stack trace:
On 4/25/07, Daniel Doubleday <[EMAIL PROTECTED]> wrote:
Here is the stack trace:
Exception in thread "Thread-17" java.lang.NullPointerException
at
org.apache.catalina.connector.CometEventImpl.close(CometEventImpl.java:84)
at
com.mrtattle.tcniotest.CometServlet$Transport.close(Com
Daniel Doubleday wrote:
I don't think that a event.close() call should throw a NPE when the event
is
already closed. But I would rather catch an exception when I am writing
to
response object that has been closed.
that is possible to do, do you have the stack trace of the NP
Sebastiaan van Erk wrote:
Hi,
The fixes seem to work well, thanks again! :-)
Excellent, thanks for bringing it to my attention
Filip
Regards,
Sebastiaan
Sebastiaan van Erk wrote:
Hi,
Thanks for the quick action. I'll test the new version right away. :-)
Regards,
Sebastiaan
Filip Hanik -
On 4/26/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
Sebastiaan van Erk wrote:
> Hi,
>
> The fixes seem to work well, thanks again! :-)
Excellent, thanks for bringing it to my attention
And it was committed before tagging, not 5 minutes after as usually
happens. I feel lucky today.
R
Rémy Maucherat wrote:
On 4/26/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote:
Sebastiaan van Erk wrote:
> Hi,
>
> The fixes seem to work well, thanks again! :-)
Excellent, thanks for bringing it to my attention
And it was committed before tagging, not 5 minutes after as usually
happens.
I have upgraded from Tomcat 3.3 to Tomcat 5.5.23. It is running on
WinXP and I am using Java 1.5.
I asked this question before with a different directory set up in which
the "myApp" directory
was under Tomcat heirarchy. As Rashmi Rubdi suggested, by renaming
myApp.xml to ROOT.xml, I could
acce
Hi Lakshmi,
I'll explain the way I got it to work - I think it's correct because I
can access my app at
the root context http://localhost:8080/
Please find my replies below:
Of course you can undo all the changes mentioned below and bring it
back to the original state at anytime.
On 4/25/07, L
Hi Rashmi,
Thanks! Worked! :)
By renaming myApp.xml to ROOT.xml and changing path="" in both ROOT.xml
and myApp/context.xml,
I can access my application as http://localhost:8080.
But I am curious, why http://localhost:8080/myApp did NOT work?
Thanks
Lakshmi
-Original Message-
From: R
> From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED]
> Subject: RE: Tomcat deployment question
>
> Chuck Caldarale said it is preferable to have myApp outside Tomcat's
> directory heirarchy.
That's only true when your desired app name is not the same as the name
of the .war file.
>
>--To
What are the strategies you might use to update an application running on
multiple Tomcat instances (clustered with Apache mod_jk) with a seamless
transition for somebody who's using the application at the time the
application is redeployed? I've always wondered how web applications that
cannot af
67 matches
Mail list logo