You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Amiel <je...@gmail.com> on 2007/06/06 02:33:33 UTC

How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Recent issue is driving me batty.  Suddenly started receiving
exceptions in app server logs (tomcat a la jboss)...

Servlet.service() for servlet AxisServlet threw exception
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.java:220)
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:610)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

After many many hours of research, appears that I get this exception
if a  specific struts action (one of several) executes at the same
time as a SOAP call to the AxisServlet.  It ends up causing the return
of an empty dataset to the calling SOAP client (and giving me a bad
headache to boot).

Weird.

The actions that appear to cause this aren't special in any way (not
any different than other actions in my application), but I am
obviously missing something.  I have a suspicion that the struts
actions that cause this are all chained events (one action calls
another which leads to a JSP....but can't completely confirm).

Any thoughts?  How can the activities of one servlet effect another
such as this?  Yes...they are in the same war/ear......and they
probably share some common classes.....

For the record...Jboss 4./tomcat 5.5 Struts 1.3X  and Axis 1.2
(although have tried 1.4...same results).  Java 1.5 on FreeBSD 6.0.

Any help would be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Niall Pemberton <ni...@gmail.com>.
On 6/11/07, Jeff Amiel <je...@gmail.com> wrote:
> On 6/7/07, Jeff Amiel <je...@gmail.com> wrote:
>
> > Thanks much....will continue to investigate.
> > I really appreciate the information and will post back if I get any
> > concrete results....
> >
>
> Shortly thereafter, while pouring through the tomcat issues
> repository, I stumbled across this:
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=41772
>
> After reading,  I became more convinced that re-used response objects
> was at the heart of my issue.
> I searched high-and low through my user code looking for anything that
> might retain a handle to a response object....finding nothing obvious.
>  Of course, such a bug could exist in any number of libraries we were
> using....DWR, DisplayTag, etc.....
>
> So.....I simply changed by startup config to run tomcat with a
> -Djava.security.manager  option (my policy file allowing everything to
> everybody).
>
> And ...voila!  No more issue!!!.  (And yes...I m sure.  During a
> period of time where we would have had dozens of these events
> normally, we now have zero)
>
> I am torn as to where to vent my displeasure (or even if I should have
> any displeasure now that my production issue has 'gone away'. )
>
> I notice that in Tomcat 6.0  that there is now an option for how the
> Reponse and Request objects are recycled (not just when a Security
> Manager is used).
> http://mail-archives.apache.org/mod_mbox/tomcat-dev/200611.mbox/%3C20061103105626.622A11A9846@eris.apache.org%3E
>
> There must be a reason for this.  While I'm sure there is some aspect
> of my code (or the libraries that I am using) that is violating the
> servlet specs by 'holding onto' the response and accessing it later, I
> am distraught that Tomcat's default behavior is to permit this.  I'm
> sure very few web applications out there are simple or stand-alone
> enough to not use a plethora of third party libraries (like jasper
> reports, jfreechart, displaytag, dwr, etc)...all of which might
> represent an underlying 'threat' to that recycled response object.
>
> I am still a bit concerned that I could not track my specific cause down.....
> If it was something as innocuous as what was seen by the submitter of
> the issue above, I would not be worried (garbage collection calling
> flush on a un-closed stream)....but My issue could be
> worse.....sending data intended for one response (that is long gone)
> to a different one...
>
> Any advice or thoughts would be appreciated.

I guess the question is whether using the security manager is acutally
solving the problem or just masking it. If its the latter I would,
like you, want to know the cause. I would start by asking on the
Tomcat user list to try and understand why it shouldn't happen with
re-cycled objects - or what must the application be doing for it to
happen. Since it is happening when the Axis servlet is calling
setBufferSize() - perhaps also a question to the Axis user list - to
see if they can shed some light on it - or if anyone else has hit the
same issue.

Niall

> Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/7/07, Jeff Amiel <je...@gmail.com> wrote:

> Thanks much....will continue to investigate.
> I really appreciate the information and will post back if I get any
> concrete results....
>

Shortly thereafter, while pouring through the tomcat issues
repository, I stumbled across this:

http://issues.apache.org/bugzilla/show_bug.cgi?id=41772

After reading,  I became more convinced that re-used response objects
was at the heart of my issue.
I searched high-and low through my user code looking for anything that
might retain a handle to a response object....finding nothing obvious.
 Of course, such a bug could exist in any number of libraries we were
using....DWR, DisplayTag, etc.....

So.....I simply changed by startup config to run tomcat with a
-Djava.security.manager  option (my policy file allowing everything to
everybody).

And ...voila!  No more issue!!!.  (And yes...I m sure.  During a
period of time where we would have had dozens of these events
normally, we now have zero)

I am torn as to where to vent my displeasure (or even if I should have
any displeasure now that my production issue has 'gone away'. )

I notice that in Tomcat 6.0  that there is now an option for how the
Reponse and Request objects are recycled (not just when a Security
Manager is used).
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200611.mbox/%3C20061103105626.622A11A9846@eris.apache.org%3E

There must be a reason for this.  While I'm sure there is some aspect
of my code (or the libraries that I am using) that is violating the
servlet specs by 'holding onto' the response and accessing it later, I
am distraught that Tomcat's default behavior is to permit this.  I'm
sure very few web applications out there are simple or stand-alone
enough to not use a plethora of third party libraries (like jasper
reports, jfreechart, displaytag, dwr, etc)...all of which might
represent an underlying 'threat' to that recycled response object.

I am still a bit concerned that I could not track my specific cause down.....
If it was something as innocuous as what was seen by the submitter of
the issue above, I would not be worried (garbage collection calling
flush on a un-closed stream)....but My issue could be
worse.....sending data intended for one response (that is long gone)
to a different one...

Any advice or thoughts would be appreciated.

Jeff

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Craig McClanahan <cr...@apache.org> wrote:

> * The symptoms you describe are the classic scenario
>   where a previously existing application level thread safety
>   issue has already existed, but didn't surface until the usage
>   pattern of the app itself changed.

Thanks much....will continue to investigate.
I really appreciate the information and will post back if I get any
concrete results....

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Craig McClanahan <cr...@apache.org>.
On 6/6/07, Jeff Amiel <je...@gmail.com> wrote:

> I'm not debating that there could be bad user code here....(although
> I've reduced my test cases down to an empty axis service call and an
> nearly empty struts action....If there IS bad code, it's probably at a
> low level inside axis or struts or some other library that I don't
> have immediate control over)
>
> What I'm trying to determine if the re-use of response instances could
> be the reason why
> the axis servlet is getting a response given to it that is already in
> a committed state...
>
> I'm not 'afraid' of dealing with pooled objects that may be in a
> questionable state (like with  database connection pool
> handles...knowing to check/set auto-commit on them when acquiring them
> from  pool because the previous user may have changed some settings on
> them)...I'm just interested in knowing if this is a  'known' danger of
> running without a security manager on Tomcat (5.5) and just as easily
> avoidable.
>

I'm just trying to warn you that the evidence of the last 5 or so
years (given how many people deploy apps on Tomcat) means you are
going to get a lot of skepticism if you go to the Tomcat user list and
try to blame this kind of problem on Tomcat.  The likelihood of that
being the real issue, given the fact that even *you* can't reproduce
it reliably, and the fact that "nothing changed" in your environment,
makes this the least possible likelihood.  Note that probably 99.9% of
the apps running under Tomcat standalone run without a security
manager -- but that is even *more* unlikely to be the issue.

Of moderate possibility is that one of the frameworks you are using
(Struts or Axis) is at fault.  Again, the odds are against you -- but
not quite as much as that it's a Tomcat issue.  On the other side of
the coin:

* Each of these two frameworks has been deployed
  widely -- on Tomcat and on other servers -- without
  a large number of complaints of this sort of issue.

* The symptoms you describe are the classic scenario
  where a previously existing application level thread safety
  issue has already existed, but didn't surface until the usage
  pattern of the app itself changed.

Note that I'm not at all familiar with the Axis code base, and have
never deployed an app that used Axis (with or without Struts).  But,
given the fact that the exception is in fact coming from Axis, my
suggestion is:

* Look to your own code first -- in particular
  at the logic of the Struts action you claim is
  being executed "at the same time as a SOAP
  call to the Axis servlet."

* Ask on the Axis list if anyone has seen this,
  including the full stack trace so that proper
  diagnosis is possible.

It's not impossible that there is a threading problem in Struts or
Tomcat that is causing this.  But, in my years of experience, my gut
says that is probably not where the issue actually exists.

Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Craig McClanahan <cr...@apache.org> wrote:

>
> Speaking as the original author of this part of Tomcat in 4.1 and 5.0
> (and it hasn't changed that much in 5.5 and 6.0 AFAICT), request and
> response instances can indneed be pooled and reused for *different*
> requests.  That being said, Tomcat has been pretty rigorously tested
> for thread safety by virtue of the fact that tens of thousands of
> applications (many very high volume) are running on it.  It is
> *substantially* more likely that there are thread safety issues in
> user code (such as simultaneous access to session scoped or
> application scoped beans), rather tha a bug in Tomcat, when you see
> intermittent issues like this.

I'm not debating that there could be bad user code here....(although
I've reduced my test cases down to an empty axis service call and an
nearly empty struts action....If there IS bad code, it's probably at a
low level inside axis or struts or some other library that I don't
have immediate control over)

What I'm trying to determine if the re-use of response instances could
be the reason why
the axis servlet is getting a response given to it that is already in
a committed state...

I'm not 'afraid' of dealing with pooled objects that may be in a
questionable state (like with  database connection pool
handles...knowing to check/set auto-commit on them when acquiring them
from  pool because the previous user may have changed some settings on
them)...I'm just interested in knowing if this is a  'known' danger of
running without a security manager on Tomcat (5.5) and just as easily
avoidable.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Craig McClanahan <cr...@apache.org>.
On 6/6/07, Dave Newton <ne...@yahoo.com> wrote:
> --- Jeff Amiel <je...@gmail.com> wrote:
> > Does this sound possible?
>
> According to the source, it's not only possible, it
> *is*... at least w/ TC6. You could just check the
> source of the TC version you're running and see if
> it's the same way or not.
>
> > Any further insight would be appreciated.

Speaking as the original author of this part of Tomcat in 4.1 and 5.0
(and it hasn't changed that much in 5.5 and 6.0 AFAICT), request and
response instances can indeed be pooled and reused for *different*
requests.  That being said, Tomcat has been pretty rigorously tested
for thread safety by virtue of the fact that tens of thousands of
applications (many very high volume) are running on it.  It is
*substantially* more likely that there are thread safety issues in
user code (such as simultaneous access to session scoped or
application scoped beans), rather than a bug in Tomcat, when you see
intermittent issues like this.

Craig McClanahan


>
> Probably want to follow that one up w/ the TC folks.
>
> d.
>
>
>
>
> ____________________________________________________________________________________
> Got a little couch potato?
> Check out fun summer activities for kids.
> http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Dave Newton <ne...@yahoo.com>.
--- Jeff Amiel <je...@gmail.com> wrote:
> Does this sound possible?

According to the source, it's not only possible, it
*is*... at least w/ TC6. You could just check the
source of the TC version you're running and see if
it's the same way or not.

> Any further insight would be appreciated.

Probably want to follow that one up w/ the TC folks.

d.



       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
Solution?

In my days of effort to troubleshoot, I ran across this ditty:

http://www.mail-archive.com/dev@tomcat.apache.org/msg06836.html

Was it possible that my response objects (even committed ones) were
being re-used by other requests....and hence be the underlying cause
of this?  (the setBufferSize() call in the stack trace is because the
ResponseFacade is already in a committed state).

Sure enough, installed a security manager on tomcat (via jboss) and
the problem has apparently 'gone away' (in my development
environment).  I intend to try this in another (test) environment
tomorrow and then eventually production.

Does this sound possible?

Why would the default behavior for Tomcat be to not destroy these
response objects?
I assume it's a performance reason....but the unexpected behavior that
could result seems unacceptable to me (if this is indeed the cause).

But then to that point, why is a security manager not part of the
default install either?
(http://weblogs.java.net/blog/felipegaucho/archive/2006/01/is_the_security_1.html)

Any further insight would be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Al Sutton <al...@al-and-andrea.org.uk>.
I know this may be a bit of a slog, but look for places where catch blocks
just drop or wrap exceptions. I've seen a few apps that return null instead
of propagating up things like SQLException. Also check how your library
handles contention and data locking. If Threads A & B ask for the same data
and your app/library/datastore implements exlusive locking what happens to
last thread to issue the request?

Also put a check in to see if null is being returned to whichever font end
isn't showing the data, as I understand it when you access either one it
works reliably, so if you're only getting no data when the two are used
together it's pretty much certain it's a contention issue.

-----Original Message-----
From: Jeff Amiel [mailto:jeff.amiel@gmail.com] 
Sent: 06 June 2007 16:15
To: Struts Users Mailing List
Subject: Re: How can one servlet (ActionServlet) effect another servlet
(AxisServlet)...?

On 6/6/07, Al Sutton <al...@al-and-andrea.org.uk> wrote:
> Are the soap methods and the actions your calling accessing the same 
> data and/or service classes?

sure...under the hood....they all utilize the same service 'layer'
(factory method pattern to acquire newly created serviceimpl classes) and
use the same domain objects (uniquely instantiated per servlet
request)

The only thing the individual requests should be 'sharing' is session
information.......

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Al Sutton <al...@al-and-andrea.org.uk> wrote:
> Are the soap methods and the actions your calling accessing the same data
> and/or service classes?

sure...under the hood....they all utilize the same service 'layer'
(factory method pattern to acquire newly created serviceimpl classes)
and use the same domain objects (uniquely instantiated per servlet
request)

The only thing the individual requests should be 'sharing' is session
information.......

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Al Sutton <al...@al-and-andrea.org.uk>.
Are the soap methods and the actions your calling accessing the same data
and/or service classes? 

-----Original Message-----
From: Jeff Amiel [mailto:jeff.amiel@gmail.com] 
Sent: 06 June 2007 15:49
To: Struts Users Mailing List
Subject: Re: How can one servlet (ActionServlet) effect another servlet
(AxisServlet)...?

On 6/6/07, Dave Newton <ne...@yahoo.com> wrote:

>
> Is it only specific actions that cause the behavior?

I can't tell anymore.  My current logs are showing me these exceptions
unrelated to the actions I THOUGHT were culpable.  They only sure thing is
that I cannot get the issue to occur by just banging on the server with axis
(soap) messages.  There has to be other activity (struts action messages) at
the same time.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Dave Newton <ne...@yahoo.com> wrote:

>
> Is it only specific actions that cause the behavior?

I can't tell anymore.  My current logs are showing me these exceptions
unrelated to the actions I THOUGHT were culpable.  They only sure
thing is that I cannot get the issue to occur by just banging on the
server with axis (soap) messages.  There has to be other activity
(struts action messages) at the same time.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Dave Newton <ne...@yahoo.com>.
--- Jeff Amiel <je...@gmail.com> wrote:
> development environment by having a client
> application rapidly send SOAP messages in while 
> simultaneously hitting a single struts action
> via a auto-refreshing html page.

Is it only specific actions that cause the behavior?

d.



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/5/07, Jeff Amiel <je...@gmail.com> wrote:
> Recent issue is driving me batty.  Suddenly started receiving
> exceptions in app server logs (tomcat a la jboss)...
>

What is horrible is that I can actually reproduce this in my
development environment by having a client application rapidly send
SOAP messages in while simultaneously hitting a single struts action
via a auto-refreshing html page.

No matter what DEBUG logging levels I turn on (catalina or axis), I
can't seem to find anything useful...

*grumble*.

Any suggestions on how to debug/troubleshoot this thing knowing that I
can reproduce this "at-will"?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Al Sutton <al...@al-and-andrea.org.uk>.
It smells like a threading issue to me.

Are the Action and the AxisServlet accessing the same resource, and if so
are they doing it through a layer that implements caching?, my initialy
thought is that somewhere a cached is being used for one, then returned to
the other, then being cleared by one, and when it comes to being user by the
other it's null or invalid.

Just a thought....
 

-----Original Message-----
From: Jeff Amiel [mailto:jeff.amiel@gmail.com] 
Sent: 06 June 2007 01:34
To: user@struts.apache.org
Subject: How can one servlet (ActionServlet) effect another servlet
(AxisServlet)...?

Recent issue is driving me batty.  Suddenly started receiving exceptions in
app server logs (tomcat a la jboss)...

Servlet.service() for servlet AxisServlet threw exception
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.ja
va:220)
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:610)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:
327)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

After many many hours of research, appears that I get this exception if a
specific struts action (one of several) executes at the same time as a SOAP
call to the AxisServlet.  It ends up causing the return of an empty dataset
to the calling SOAP client (and giving me a bad headache to boot).

Weird.

The actions that appear to cause this aren't special in any way (not any
different than other actions in my application), but I am obviously missing
something.  I have a suspicion that the struts actions that cause this are
all chained events (one action calls another which leads to a JSP....but
can't completely confirm).

Any thoughts?  How can the activities of one servlet effect another such as
this?  Yes...they are in the same war/ear......and they probably share some
common classes.....

For the record...Jboss 4./tomcat 5.5 Struts 1.3X  and Axis 1.2 (although
have tried 1.4...same results).  Java 1.5 on FreeBSD 6.0.

Any help would be appreciated.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Martin Gainty <mg...@hotmail.com> wrote:
>
> No, actually you can't.

Thanks. for the info,

Now that I can reproduce this issue in my development environment, I'm
going to simply upgrade to the latest Jboss that has tomcat 5.5.20 (or
even 6?) and see what happens.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Martin Gainty <mg...@hotmail.com>.
Jeff-

Apparently JBoss' CATALINA container is hardbound to that port and the only 
solution is to redirect to another port within jboss-service.xml
in tomcat-5.5.sar

No, actually you can't. To be specific, there is a service called something 
like tomcat-5.5.sar. This SAR (Service ARchive) contains the Catalina engine 
from Tomcat 5.5, but not the actual Tomcat server itself. JBoss effectively 
does the same thing as Tomcat when executing code in the Web Container, 
because it's just calling the Catalina functions. It can't stand alone 
though, because the bootstrap code is missing, and you can't simply point 
JBoss at a different Tomcat installation because a SAR is a slightly 
different representation of the same code. You can, however, take the WAR 
from an existing Tomcat installation and hot-deploy it to JBoss provided 
there's no version issues.

To address the OP, you would have to change the port number that JBoss uses 
for the Web Container by editing the jboss-service.xml file in the 
tomcat-5.5.sar directory.

HTH
Martin--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Jeff Amiel" <je...@gmail.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, June 06, 2007 9:20 AM
Subject: Re: How can one servlet (ActionServlet) effect another servlet 
(AxisServlet)...?


> On 6/6/07, Niall Pemberton <ni...@gmail.com> wrote:
>> The latest Tomcat 5.5 release is 5.5.23 in March 2007. If you really
>> are running a very old version of Tomcat - then upgrading would be a
>> good idea anyway - whether it fixes this bug or not. First step though
>> is to work out what version you're running.
>
> Anyone know how to upgrade tomcat versions without upgrading the
> 'surrounding' jboss?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/6/07, Niall Pemberton <ni...@gmail.com> wrote:
> The latest Tomcat 5.5 release is 5.5.23 in March 2007. If you really
> are running a very old version of Tomcat - then upgrading would be a
> good idea anyway - whether it fixes this bug or not. First step though
> is to work out what version you're running.

Anyone know how to upgrade tomcat versions without upgrading the
'surrounding' jboss?

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Niall Pemberton <ni...@gmail.com>.
On 6/6/07, Jeff Amiel <je...@gmail.com> wrote:
> On 6/5/07, Niall Pemberton <ni...@gmail.com> wrote:
> >
> > Might be a Tomcat issue - can you be more precise about the version of
> > Tomcat 5.5?
>
> from org/apache/catalina/util/ServerInfo.properties
>
> server.info=Apache Tomcat/5.5
> server.number=5.5.0.0
> server.built=Sep 25 2005 10:08:45

Looks like this information isn't reliable since Tomcat 5.5.12 was
released on 24 July 2005
   http://tinyurl.com/yojvdq

The latest Tomcat 5.5 release is 5.5.23 in March 2007. If you really
are running a very old version of Tomcat - then upgrading would be a
good idea anyway - whether it fixes this bug or not. First step though
is to work out what version you're running.

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: display current date in header

Posted by Vincent Lin <vi...@gmail.com>.
You can write a base action and have every action extends it.
And do this in your execute() method:

Calendar cal = Calendar.getInstance();
Date currDate = cal.getTime();
SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
String showDate =  df.format(currDate);
request.setAttribute("showDate", showDate);

If you think use a base action make your code ugly you can write a servlet
filter and configured it in web.xml.

And write a bean:write tag in your JSP:

<bean:write name="showDate" />

On 6/6/07, Raghupathy, Gurumoorthy <Gu...@nielsen.com>
wrote:
>
> http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html
>
> -----Original Message-----
> From: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com]
> Sent: 06 June 2007 08:54
> To: 'Struts Users Mailing List'
> Subject: RE: display current date in header
>
> Thanks for your solution. It works fine. But I want to do it without using
> scrip lets. How to do?
> AM
>
> -----Original Message-----
> From: Norbert Hirneisen [mailto:nobbi@s2you.de]
> Sent: Wednesday, June 06, 2007 12:01 PM
> To: 'Struts Users Mailing List'
> Subject: RE: display current date in header
>
> In your jsp:
>
> <%@ page import="java.util.Calendar"%>
> <%@ page import="java.util.Date"%>
> <%@ page import="java.text.*"%>
>
> <%
> // current Date
> Calendar cal = Calendar.getInstance();
> Date currDate = cal.getTime();
> SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
> String showDate =  df.format(currDate);
> %>
>
> In the html-body:
> <p><%=showDate%></p>
>
> Regards,
> Norbert
>
> Norbert Hirneisen
>
> science4you Online-Monitoring
>
> Please visit us:
> http://www.science4you.org
> (in German)
>
> Norbert Hirneisen
> Science & Communications
> von-Müllenark-Str. 19
> 53179 Bonn
> phone +49-228-6194930
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com]
> Gesendet: Mittwoch, 6. Juni 2007 07:26
> An: 'Struts Users Mailing List'
> Betreff: display current date in header
>
>
> Hi all,
> I'm using struts 1.2.9 along with Tiles. I want to display current date in
> the header page. Can anybody tell me the best approach to do so?
> Thank you,
> AM
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

RE: display current date in header

Posted by "Raghupathy, Gurumoorthy" <Gu...@nielsen.com>.
http://jakarta.apache.org/taglibs/doc/datetime-doc/intro.html 

-----Original Message-----
From: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com] 
Sent: 06 June 2007 08:54
To: 'Struts Users Mailing List'
Subject: RE: display current date in header

Thanks for your solution. It works fine. But I want to do it without using
scrip lets. How to do?
AM

-----Original Message-----
From: Norbert Hirneisen [mailto:nobbi@s2you.de] 
Sent: Wednesday, June 06, 2007 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: display current date in header

In your jsp:

<%@ page import="java.util.Calendar"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.*"%>

<%
// current Date
Calendar cal = Calendar.getInstance();
Date currDate = cal.getTime();
SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
String showDate =  df.format(currDate);
%>

In the html-body:
<p><%=showDate%></p>

Regards,
Norbert 
 
Norbert Hirneisen
 
science4you Online-Monitoring
 
Please visit us:
http://www.science4you.org
(in German)
 
Norbert Hirneisen
Science & Communications
von-Müllenark-Str. 19
53179 Bonn
phone +49-228-6194930



-----Ursprüngliche Nachricht-----
Von: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com] 
Gesendet: Mittwoch, 6. Juni 2007 07:26
An: 'Struts Users Mailing List'
Betreff: display current date in header


Hi all,
I'm using struts 1.2.9 along with Tiles. I want to display current date in
the header page. Can anybody tell me the best approach to do so?
Thank you,
AM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: display current date in header

Posted by Ambaris Mohanty <am...@lifestylestores.com>.
Thanks for your solution. It works fine. But I want to do it without using
scrip lets. How to do?
AM

-----Original Message-----
From: Norbert Hirneisen [mailto:nobbi@s2you.de] 
Sent: Wednesday, June 06, 2007 12:01 PM
To: 'Struts Users Mailing List'
Subject: RE: display current date in header

In your jsp:

<%@ page import="java.util.Calendar"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.*"%>

<%
// current Date
Calendar cal = Calendar.getInstance();
Date currDate = cal.getTime();
SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
String showDate =  df.format(currDate);
%>

In the html-body:
<p><%=showDate%></p>

Regards,
Norbert 
 
Norbert Hirneisen
 
science4you Online-Monitoring
 
Please visit us:
http://www.science4you.org
(in German)
 
Norbert Hirneisen
Science & Communications
von-Müllenark-Str. 19
53179 Bonn
phone +49-228-6194930



-----Ursprüngliche Nachricht-----
Von: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com] 
Gesendet: Mittwoch, 6. Juni 2007 07:26
An: 'Struts Users Mailing List'
Betreff: display current date in header


Hi all,
I'm using struts 1.2.9 along with Tiles. I want to display current date in
the header page. Can anybody tell me the best approach to do so?
Thank you,
AM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: display current date in header

Posted by Norbert Hirneisen <no...@s2you.de>.
In your jsp:

<%@ page import="java.util.Calendar"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.*"%>

<%
// current Date
Calendar cal = Calendar.getInstance();
Date currDate = cal.getTime();
SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
String showDate =  df.format(currDate);
%>

In the html-body:
<p><%=showDate%></p>

Regards,
Norbert 
 
Norbert Hirneisen
 
science4you Online-Monitoring
 
Please visit us:
http://www.science4you.org
(in German)
 
Norbert Hirneisen
Science & Communications
von-Müllenark-Str. 19
53179 Bonn
phone +49-228-6194930



-----Ursprüngliche Nachricht-----
Von: Ambaris Mohanty [mailto:ambaris.mohanty@lifestylestores.com] 
Gesendet: Mittwoch, 6. Juni 2007 07:26
An: 'Struts Users Mailing List'
Betreff: display current date in header


Hi all,
I'm using struts 1.2.9 along with Tiles. I want to display current date in
the header page. Can anybody tell me the best approach to do so?
Thank you,
AM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


display current date in header

Posted by Ambaris Mohanty <am...@lifestylestores.com>.
Hi all,
I'm using struts 1.2.9 along with Tiles. I want to display current date in
the header page. Can anybody tell me the best approach to do so?
Thank you,
AM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/5/07, Niall Pemberton <ni...@gmail.com> wrote:
>
> Might be a Tomcat issue - can you be more precise about the version of
> Tomcat 5.5?


from org/apache/catalina/util/ServerInfo.properties

server.info=Apache Tomcat/5.5
server.number=5.5.0.0
server.built=Sep 25 2005 10:08:45

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Niall Pemberton <ni...@gmail.com>.
On 6/6/07, Jeff Amiel <je...@gmail.com> wrote:
> Recent issue is driving me batty.  Suddenly started receiving
> exceptions in app server logs (tomcat a la jboss)...
>
> Servlet.service() for servlet AxisServlet threw exception
> java.lang.IllegalStateException
> org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.java:220)
> org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:610)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>
> After many many hours of research, appears that I get this exception
> if a  specific struts action (one of several) executes at the same
> time as a SOAP call to the AxisServlet.  It ends up causing the return
> of an empty dataset to the calling SOAP client (and giving me a bad
> headache to boot).
>
> Weird.
>
> The actions that appear to cause this aren't special in any way (not
> any different than other actions in my application), but I am
> obviously missing something.  I have a suspicion that the struts
> actions that cause this are all chained events (one action calls
> another which leads to a JSP....but can't completely confirm).
>
> Any thoughts?  How can the activities of one servlet effect another
> such as this?  Yes...they are in the same war/ear......and they
> probably share some common classes.....
>
> For the record...Jboss 4./tomcat 5.5 Struts 1.3X  and Axis 1.2
> (although have tried 1.4...same results).  Java 1.5 on FreeBSD 6.0.
>
> Any help would be appreciated.

Might be a Tomcat issue - can you be more precise about the version of
Tomcat 5.5?

Niall

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Jeff Amiel <je...@gmail.com>.
On 6/5/07, Dave Newton <ne...@yahoo.com> wrote:

>
> *Nothing* else changed in the app and/or
> configuration?

nope...no code changes.
The problem has always existed...once or twice a day.
However recently, as often as 200 per day because certain actions are
being hit much more often because of certain new customers.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: How can one servlet (ActionServlet) effect another servlet (AxisServlet)...?

Posted by Dave Newton <ne...@yahoo.com>.
--- Jeff Amiel <je...@gmail.com> wrote:
> Recent issue is driving me batty.  Suddenly started
> receiving exceptions in app server logs (tomcat a la

> jboss)...

*Nothing* else changed in the app and/or
configuration?

> Any thoughts?  How can the activities of one servlet
> effect another such as this?  Yes...they are in the 
> same war/ear......and they probably share some
common
> classes.....

I almost always suspect non-synchronized data first if
there's no config or app changes that might have
brought on non-deterministic behavior like that.

d.



      ___________________________________________________________________________________
You snooze, you lose. Get messages ASAP with AutoCheck
in the all-new Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_html.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org