You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Shyama Gavulla <sh...@coe.neu.edu> on 2003/06/02 22:25:58 UTC
moving from Jrun to Tomcat
Hi All,
I have a webapp running on Jrun and IIS. I want the app to be moved from
Jrun to tomcat. I have read that tomcat with IIS has problems. It would be
grateful if someone can help me with details of moving from Jrun to tomcat
and issues with the migration .
Thanks,
shyam
--
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Clear user session
Posted by Yoav Shapira <yo...@yahoo.com>.
Howdy,
Something else is modifying the session (adding/removing attributes or
otherwise modifying the backing collection of your session_var enumeration)
while you're iterating through it.
> while(session_var.hasMoreElements())
> {
> String key=(String)session_var.nextElement();
You need to make the above code synchronized on the session. This may not be
as trivial as it sounds: for example, it might be impossible if your
environment is clustered.
Alternative options include doing this on session passivation or destruction
(probably the former), using the appopriate listener.
Why are you clearing all the attributes instead of a specific one?
Yoav Shapira
=====
Yoav Shapira
yoavs@computer.org
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Clear user session
Posted by shyam <sh...@adamshand.net>.
Hi All,
I just moved my webapp from jrun to tomcat. I have a method which clears the
user session. The code snippet is
Enumeration session_var = session.getAttributeNames();
while(session_var.hasMoreElements())
{
String key=(String)session_var.nextElement();
I am getting an error here and the exception is
java.util.ConcurrentModificationException at
java.util.HashMap$HashIterator.nextEntry
How can I resolve this error.
Thanks a lot in advance
shyam
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: moving from Jrun to Tomcat
Posted by Jason Bainbridge <ja...@jblinux.org>.
On Tue, 3 Jun 2003 04:25, Shyama Gavulla wrote:
> Hi All,
>
> I have a webapp running on Jrun and IIS. I want the app to be moved from
> Jrun to tomcat. I have read that tomcat with IIS has problems. It would be
> grateful if someone can help me with details of moving from Jrun to tomcat
> and issues with the migration .
Hi,
To get started on the Tomcat + IIS integration you can read the howto here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html
Although I would recommend moving to the Apache Webserver if at all possible
as it is more widely used with better support, that link describes the
process for both Apache and IIS, although it is known that the documentation
there needs some work so if you get stuck help is available on list and
several howto's, although I am unaware of another IIS one. There are more
howto's listed for the Apache integration here:
http://tomcatfaq.sourceforge.net/apache.html
There shouldn't be any actual porting required if your webapp is a standard
one with your classes in packages it should just be a matter of either
deploying your .WAR file or copyinng your webapp into the TOMCAT_HOME/webapps
directory if you don't use .WAR files.
I can remember when I first ported our company's webapp to Tomcat from JRun it
was actually quite easy even though it wasn't following the standards, I had
to package the classes, create the proper structure, learn about web.xml
files and learn everything else about Tomcat so you shouldn't have too many
problems.
Maybe first try getting your application running under Tomcat Standalone and
then venture into integrating Tomcat with either IIS or Apache.
Regards,
--
Jason Bainbridge
KDE Web Team - http://kde.org
webmaster@kde.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org