Re: Opinions

2003-11-01 Thread Bill Barker
The recent port of the 3.3 variable-substitution to Tomcat 5 may very well
solve your problems here :).  The ports are supposed to move to
commons-digester, so should be available in 4.1.30 as well.

Francois JEANMOUGIN [EMAIL PROTECTED] wrote in
message
news:[EMAIL PROTECTED]


 Hu! It's in early developments or is it suitable for production ?

 It's ready for production.  People are already using it in production
 with tomcat 5.  Of course, I'm biased ;)

Well, there is that beta flag in front of tomcat5 that tell me that your
opinion is more than biased :). Of course, I saw a mail telling that the
beta flag is related to specification instability (not code), anyway...

 It's a Developer, rather than Sysadmin, option.  Chances are you won't
 need to worry about it as you'll use commons-daemon with tomcat, which
 already does the required jsvc invocation for you.

Well, that does not help that much. I hope that there will be a
configuration scheme that'll let easily define user/group/port and so on for
the connectors. Just waiting for a sysadmin point of view :).

Thanks,

François.




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HOW CAN I USE THREADS IN TOMCAT

2003-11-01 Thread Prince
Hi,
 I need to send a mail automatically at 10 minutes interval. how can i do
this? how can i activate threads in tomcat?
regards
Prince

- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 1:00 PM
Subject: Re: Opinions


 The recent port of the 3.3 variable-substitution to Tomcat 5 may very well
 solve your problems here :).  The ports are supposed to move to
 commons-digester, so should be available in 4.1.30 as well.

 Francois JEANMOUGIN [EMAIL PROTECTED] wrote in
 message
 news:[EMAIL PROTECTED]


  Hu! It's in early developments or is it suitable for production ?
 
  It's ready for production.  People are already using it in production
  with tomcat 5.  Of course, I'm biased ;)

 Well, there is that beta flag in front of tomcat5 that tell me that your
 opinion is more than biased :). Of course, I saw a mail telling that the
 beta flag is related to specification instability (not code), anyway...

  It's a Developer, rather than Sysadmin, option.  Chances are you won't
  need to worry about it as you'll use commons-daemon with tomcat, which
  already does the required jsvc invocation for you.

 Well, that does not help that much. I hope that there will be a
 configuration scheme that'll let easily define user/group/port and so on
for
 the connectors. Just waiting for a sysadmin point of view :).

 Thanks,

 François.




 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can use Ant to deploy to localhost

2003-11-01 Thread Steven Woody
I'v not managed to deploy an application to Tomcat using Ant's deploy task.  It 
always reports a UnknownHostNameException.  I'v checked the 'url' property, that is 
'http://localhost:8080/manager', and be sure that is right.

What do I do?

--
Steven Woody
[EMAIL PROTECTED]

Re: HOW CAN I USE THREADS IN TOMCAT

2003-11-01 Thread Eric C
Use cron under unix and/or a java app that would use Javamail classes.
Of course you can do it inside a servlet.

- Original Message -
From: Prince [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 8:51 AM
Subject: HOW CAN I USE THREADS IN TOMCAT


 Hi,
  I need to send a mail automatically at 10 minutes interval. how can i do
 this? how can i activate threads in tomcat?
 regards
 Prince

 - Original Message -
 From: Bill Barker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, November 01, 2003 1:00 PM
 Subject: Re: Opinions


  The recent port of the 3.3 variable-substitution to Tomcat 5 may very
well
  solve your problems here :).  The ports are supposed to move to
  commons-digester, so should be available in 4.1.30 as well.
 
  Francois JEANMOUGIN [EMAIL PROTECTED] wrote in
  message
 
news:[EMAIL PROTECTED]
 
 
   Hu! It's in early developments or is it suitable for production ?
  
   It's ready for production.  People are already using it in production
   with tomcat 5.  Of course, I'm biased ;)
 
  Well, there is that beta flag in front of tomcat5 that tell me that your
  opinion is more than biased :). Of course, I saw a mail telling that the
  beta flag is related to specification instability (not code), anyway...
 
   It's a Developer, rather than Sysadmin, option.  Chances are you won't
   need to worry about it as you'll use commons-daemon with tomcat, which
   already does the required jsvc invocation for you.
 
  Well, that does not help that much. I hope that there will be a
  configuration scheme that'll let easily define user/group/port and so on
 for
  the connectors. Just waiting for a sysadmin point of view :).
 
  Thanks,
 
  François.
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Which version of xerces, Tomcat 4.1.24 is using?

2003-11-01 Thread Adam Hardy
On 10/31/2003 06:41 PM Jon Wingfield wrote:
What does the invocation of this static java method return?

org.apache.xerces.impl.Version.getVersion();

http://xml.apache.org/xerces2-j/javadocs/xerces2/index.html

This will help too:

java -cp xercesImpl.jar org.apache.xerces.impl.Version

soapboxI would like to see the java community begin naming their jars 
with the version, the same way the linux community labels their 
tarballs. Thank you/soapbox

Is there any particular reason why not?

Adam

--
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can use Ant to deploy to localhost

2003-11-01 Thread Mike Klein
Steven Woody wrote:

I'v not managed to deploy an application to Tomcat using Ant's deploy task.  It always reports a UnknownHostNameException.  I'v checked the 'url' property, that is 'http://localhost:8080/manager', and be sure that is right.

What do I do?

--
Steven Woody
[EMAIL PROTECTED]
I've had localhost expanded to localhost.localdomain...make sure this is 
in your hosts file too.

mike

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: HOW CAN I USE THREADS IN TOMCAT

2003-11-01 Thread Erik Wright
A servlet is just a Java class. You can do anything you can do with the 
java language, including start threads. The following starts a thread 
that runs some task every 10 minutes. The thread is started in the 
servlet init method. I choose to set the thread to daemon mode, meaning 
that when the main thread of execution shuts down the mailer thread will 
automatically be killed. Otherwise you need to be sure to keep track of 
it and be sure to signal it to shutdown in your Servlet.destroy method.

public class MyServlet extends HttpServlet
{
   private static class MailerThread extends Thread
   {
  public void run ()
  {
 while (true)
 {
 // do something
synchronized (this)
{
   wait (10*60*1000);
}
 }
  }
   }
   // the servlet init method
   public void init ()
   {
  MailerThread thread = new MailerThread ();
  thread.setDaemon (true);
  thread.start ();
   }
   // ... doGet, etc. ...
}
-Erik

Eric C wrote:

Use cron under unix and/or a java app that would use Javamail classes.
Of course you can do it inside a servlet.
- Original Message -
From: Prince [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 8:51 AM
Subject: HOW CAN I USE THREADS IN TOMCAT
 

Hi,
I need to send a mail automatically at 10 minutes interval. how can i do
this? how can i activate threads in tomcat?
regards
Prince
- Original Message -
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 1:00 PM
Subject: Re: Opinions
   

The recent port of the 3.3 variable-substitution to Tomcat 5 may very
 

well
 

solve your problems here :).  The ports are supposed to move to
commons-digester, so should be available in 4.1.30 as well.
Francois JEANMOUGIN [EMAIL PROTECTED] wrote in
message
 

news:[EMAIL PROTECTED]
 

 

Hu! It's in early developments or is it suitable for production ?
 

It's ready for production.  People are already using it in production
with tomcat 5.  Of course, I'm biased ;)
   

Well, there is that beta flag in front of tomcat5 that tell me that your
opinion is more than biased :). Of course, I saw a mail telling that the
beta flag is related to specification instability (not code), anyway...
 

It's a Developer, rather than Sysadmin, option.  Chances are you won't
need to worry about it as you'll use commons-daemon with tomcat, which
already does the required jsvc invocation for you.
   

Well, that does not help that much. I hope that there will be a
configuration scheme that'll let easily define user/group/port and so on
 

for
   

the connectors. Just waiting for a sysadmin point of view :).

Thanks,

François.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



--
http://www.spectacle.ca/
The New Online Source for Live Music in Montreal
.::514.286.1699::.


Re: Which version of xerces, Tomcat 4.1.24 is using?

2003-11-01 Thread Florian Ebeling
soapboxI would like to see the java community begin naming their jars 
with the version, the same way the linux community labels their 
tarballs. Thank you/soapbox
That's what I thought so manny times! The ecplise guys do it already.

-Florian

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


loss of session from http to https

2003-11-01 Thread Peter T. Abplanalp
hi all,

i have a tomcat 4.1.27 instance fronted by an instance of
apache 2.0.40, using jk2.  it is a commerce site and at the
point of credit card information collection goes from http
to https.  the first time a user goes from http to https,
the session information is lost (i.e. the order information)
but if the user uses https from the beginning, eveything is
fine.  the specific error i am seeing is:

org.apache.jk.server.JkCoyoteHandler action
INFO: RESET

i have done some searching on the web for this error but
nothing i have found really helps.  most responses to such
questions say something like, it is just an info type
message and can thus be ignored but the large issue of
session loss isn't addressed.

does anyone have any idea what is going on here or have any
suggestions?

thanks in advance for any and all assistance.

-- 
Peter Abplanalp
PGP: pgp.mit.edu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.14 Beta

2003-11-01 Thread Matt Raible
I just upgraded from Tomcat 5.0.12 Beta to 5.0.14 yesterday.  
Everything's been running fine for the last 12 hours, and then I got 
the following error this morning:

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar 
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat 
restart.
If using an alternate Java compiler, please check its installation and 
access path.

Should I copy tool.jar to common/lib?  I've never had to do this before.

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Apache/Tomcat Tieing Issue Still Exists

2003-11-01 Thread mtorgler
Hi Again All

Thought I'd give this one more try.

I've tried a few more config changes, but went back to these original ones 
because nothing seems to work.  I'm still getting the shm.init error in my 
logs, and the apache and tomcat still aren't tieing together.

Does the shm.init error stop Apache from processing the rest of the 
workers2.properties, or does the server just keep on going?

I've got all my config info below, any  and all comments are appreciated.

Thanks Again.  

-- INFO ---

Apache 2.047 and Tomcat 4.1.27 configured on XP machine as a localhost 
service using jk2 configs. 

Followed the directions on the following page: 
http://www.greenfieldresearch.ca/te...jk2_config.html 

The two services work individually, all configs are done, but the two 
servers just don't tie together. 

My jk2.properties on Tomcat is a single line: 
 
#Shared memory directive 
shm.file=c:/Apache/Apache2/logs/jk2.shm 
 

My workers2.properties with Apache looks like the following: 
-
- 
#define the shared memory file 
[shm] 
file=c:/Apache/Apache2/logs/jk2.shm 
size=100 

# Define the communication channel 
[channel.socket:localhost:8009] 
port=8009 
#host=127.0.0.1 
tomcatId=localhost:8009 
debug=1 


[ajp13:localhost:8009] 
channel=channel.socket:localhost:8009 

# Map the Tomcat examples webapp to the Web server uri space 
[uri:/examples/*] 
info=C:/Apache/Tomcat/webapps/examples/ 

[uri:/servlet/*] 
info=C:/Apache/Tomcat/webapps/ 

[status:status] 
info=Status worker, displays runtime information 
channel=channel.socket:localhost:8009 

[uri:/jkstatus/*] 
info=Display status information and checks the config file for changes. 
group=status: 
worker=status:status 

[uri:/status/*] 
worker=status:localhost:8009 
group=status: 
 

For reference, I uploaded the bigger docs: 
servers.xml: http://torgler.net/docs/server.xml 
workers2.properties: http://torgler.net/docs/workers2.properties 
httpd.conf: http://torgler.net/docs/httpd.conf 

Not sure if these would help or not, the stderr.log outs from the Tomcat 
startup, which looked fine to me 

Created catalinaLoader in: C:\Apache\Tomcat\server\lib 
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry loadRegistry 
INFO: Loading registry information 
Oct 30, 2003 8:17:32 PM org.apache.commons.modeler.Registry getRegistry 
INFO: Creating new Registry instance 
Oct 30, 2003 8:17:33 PM org.apache.commons.modeler.Registry getServer 
INFO: Creating MBeanServer 
Oct 30, 2003 8:17:35 PM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on port 8009 
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.struts.util.LocalStrings', 
returnNull=true 
Oct 30, 2003 8:17:39 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.struts.action.ActionResources', 
returnNull=true 
Oct 30, 2003 8:17:40 PM org.apache.struts.util.PropertyMessageResources 
init 
INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', 
returnNull=true 
Oct 30, 2003 8:17:45 PM org.apache.coyote.http11.Http11Protocol start 
INFO: Starting Coyote HTTP/1.1 on port 8009

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.14 Beta

2003-11-01 Thread Eric C
I had the same error with 5.0.12 a bracket was missing in my code and it
throwed this weird message.

- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 7:17 PM
Subject: Tomcat 5.0.14 Beta


 I just upgraded from Tomcat 5.0.12 Beta to 5.0.14 yesterday.
 Everything's been running fine for the last 12 hours, and then I got
 the following error this morning:

 No Java compiler was found to compile the generated source for the JSP.
 This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar
 from the JDK
 to the common/lib directory of the Tomcat server, followed by a Tomcat
 restart.
 If using an alternate Java compiler, please check its installation and
 access path.

 Should I copy tool.jar to common/lib?  I've never had to do this before.

 Matt


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HOW CAN I USE THREADS IN TOMCAT

2003-11-01 Thread Fred Whipple
I would also add that unless you have a particular need to embed this in
a specific Servlet, it might make more sense to add this thread to a
context listener handler.

For example, if I wanted to send out email to 1000 people (not Spam, of
course! ;-) and I initiated this from within a Servlet, in this case I'd
add a thread to the Servlet and let the Servlet return while the email
was still going out.  This assumes I handle any errors in some other way
than displaying the results on the page.

On the other hand, if I wanted to, perhaps, clean-up some temporary data
within a database every so often, and I wanted to include this
funcitonality within a Web app rather than in a separate application
that I run from the CL via Cron every now and then, I'd probably
implement this within a context listener handler so that the thread
starts up when the Web app starts up and continues utnil the Web app
shuts down.

Just a thought!

-Fred Whipple
 iMagine Internet Services

 -Original Message-
 From: Erik Wright [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, November 01, 2003 11:03 AM
 To: Tomcat Users List
 Subject: Re: HOW CAN I USE THREADS IN TOMCAT
 
 
 A servlet is just a Java class. You can do anything you can 
 do with the 
 java language, including start threads. The following starts a thread 
 that runs some task every 10 minutes. The thread is started in the 
 servlet init method. I choose to set the thread to daemon 
 mode, meaning 
 that when the main thread of execution shuts down the mailer 
 thread will 
 automatically be killed. Otherwise you need to be sure to 
 keep track of 
 it and be sure to signal it to shutdown in your 
 Servlet.destroy method.
 
 public class MyServlet extends HttpServlet
 {
 private static class MailerThread extends Thread
 {
public void run ()
{
   while (true)
   {
   // do something
  synchronized (this)
  {
 wait (10*60*1000);
  }
   }
}
 }
 
 // the servlet init method
 public void init ()
 {
MailerThread thread = new MailerThread ();
thread.setDaemon (true);
thread.start ();
 }
 
 // ... doGet, etc. ...
 }
 
 -Erik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.14 Beta

2003-11-01 Thread Remy Maucherat
Matt Raible wrote:
I just upgraded from Tomcat 5.0.12 Beta to 5.0.14 yesterday.  
Everything's been running fine for the last 12 hours, and then I got the 
following error this morning:

No Java compiler was found to compile the generated source for the JSP.
This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar 
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat 
restart.
If using an alternate Java compiler, please check its installation and 
access path.

Should I copy tool.jar to common/lib?  I've never had to do this before.
Maybe not. This message may appear more often that what it should, when 
there's a compilation error. It should be investigated.

You didn't give enough information to go much further.

--
x
Rémy Maucherat
Senior Developer  Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Opinions

2003-11-01 Thread Vincent Aumont


No, you're right.  You can make Apache listen on port 80 while running
as root because it'll change the process' ownership when it opens a
new
connection. There is no portable way of doing this in Java; therefore,
   

Hey! And they call it an advanced language?

P.S.: One or two trolls are hiding in this message, please do NOT feed!

Can't resist the urge to feed that one ;)
It's just that Java being cross-platform and the notion of process owner 
being specific to only a few platforms, Java does not suports this 
feature natively. Jakarta Commons' deamon  is a unix-only solution (I 
imagine it uses JNI). So its's possible, but not portable. Still an 
advanced language...
-Vincent.



Re: JNDI problem using 4.1.27

2003-11-01 Thread Vincent Aumont
Could you post your server.xml file? You attachment did not make it to 
the list.

-Vincent.

Anderson, James H [IT] wrote:

I can't seem to get JNDI working. I'm trying to access an MySQL database via
JNDI and it's not working. catalina.out contains this msg:
DBCP borrowObject failed: ..., underlying cause: Unexpected end of input
stream
The following compressed tar file contains portions of all the relevant
files, AFAIK.
Any help greatly appreciated!

jndi.problem.tar.gz 

 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Redirecting request.

2003-11-01 Thread Vincent Aumont
Have you considered Apache's  mod_rewrite?

IvanLatysh wrote:

Hello, All!

How I can redirect incoming request from one virtual host to another.
For example I have : host.dm, www.host.dm, www1.host.dm I need to redirect all incoming 
requests to host.dm
Alias doesn't work for me, because we have SSL certificate only for host.dm
Is there are any default way to redirect the requests ?

P.S. Posting it again, the previous one didn't get thru.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Where to get JMS for Tomcat?

2003-11-01 Thread tblanchard
I'm porting an app from WebLogic 7 to Tomcat.  The thing is mostly
servlets and uses its own database access stuff - no ejb.  OTOH, there
seems to be some JMS stuff in it and it doesn't look like there's a JMS
implementation bundled with Tomcat so I guess I need to find one.  Any
pointers to such a beast would be much appreciated.
Thanks,
Todd Blanchard
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Where to get JMS for Tomcat?

2003-11-01 Thread Tim Funk
JBOSS.

-Tim

[EMAIL PROTECTED] wrote:

I'm porting an app from WebLogic 7 to Tomcat.  The thing is mostly
servlets and uses its own database access stuff - no ejb.  OTOH, there
seems to be some JMS stuff in it and it doesn't look like there's a JMS
implementation bundled with Tomcat so I guess I need to find one.  Any
pointers to such a beast would be much appreciated.
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 5.0.14 Beta

2003-11-01 Thread Matt Raible
The same code ran fine on 4.1.27 and 5.0.12 - all I've ever done is mv 
4.1.27/webapps/* 5.0.14/.

Probably a fluke and I'll never see it again.

Matt

On Nov 1, 2003, at 2:30 PM, Eric C wrote:

I had the same error with 5.0.12 a bracket was missing in my code and 
it
throwed this weird message.

- Original Message -
From: Matt Raible [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 7:17 PM
Subject: Tomcat 5.0.14 Beta

I just upgraded from Tomcat 5.0.12 Beta to 5.0.14 yesterday.
Everything's been running fine for the last 12 hours, and then I got
the following error this morning:
No Java compiler was found to compile the generated source for the 
JSP.
This can usually be solved by copying manually 
$JAVA_HOME/lib/tools.jar
from the JDK
to the common/lib directory of the Tomcat server, followed by a Tomcat
restart.
If using an alternate Java compiler, please check its installation and
access path.

Should I copy tool.jar to common/lib?  I've never had to do this 
before.

Matt

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: loss of session from http to https

2003-11-01 Thread Bill Barker
URL rewriting doesn't work http-https (blame the Servlet spec :).  However,
cookie sessions should be preserved (unless it is the browser that is
choosing to not send the cookie).  If it was my app, the first thing that I
would try is to enable the RequestDumperValve to see if the cookie is
actually being sent.

The log message is probably a red-herring.  It is just logging that the
Response has been reset (normal for error-pages and sendRedirects).  Since
the cookie should have been set on a Request prior to the one generating the
reset, this shouldn't be a problem.

Of course (as always :), if you can produce a simple war file that
demonstrates this problem, by all means attach it to a bug-report at
http://nagoya.apache.org/bugzilla.  I'd be very interested to look at it
;-).

Peter T. Abplanalp [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 hi all,

 i have a tomcat 4.1.27 instance fronted by an instance of
 apache 2.0.40, using jk2.  it is a commerce site and at the
 point of credit card information collection goes from http
 to https.  the first time a user goes from http to https,
 the session information is lost (i.e. the order information)
 but if the user uses https from the beginning, eveything is
 fine.  the specific error i am seeing is:

 org.apache.jk.server.JkCoyoteHandler action
 INFO: RESET

 i have done some searching on the web for this error but
 nothing i have found really helps.  most responses to such
 questions say something like, it is just an info type
 message and can thus be ignored but the large issue of
 session loss isn't addressed.

 does anyone have any idea what is going on here or have any
 suggestions?

 thanks in advance for any and all assistance.

 -- 
 Peter Abplanalp
 PGP: pgp.mit.edu




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-01 Thread Luigi Bai
Sriram,

It took me a while to figure out where you were going with your 
question. No, I did not download a tar-gzip distribution; I built 4.1.29 
from the (tagged) CVS source (which right there may be part of the 
problem). I used the versions of commons-* etc from the 4.1.27 
distribution that I had been using; it seems that making Tomcat build 
with Maven (and its support for specific versions of third party jars) 
would be really a big help here. And I confirmed that the DTDs in 
servlet-api.jar are intact.

What version of Xerces does 4.1.29 depend on? It may be that using the 
Xerces parser from 4.1.27 is too old? I really can't think of any other 
reason why Digester would barf on session-timeout with a parse error.

Luigi

Sriram N wrote:

Hi,

Have you downloaded a tgz by chance ?

If you have, then use Winzip on windows, or the tar command from the command
line, to uncompress Tomcat. Any other application may not uncompress the tgz
correctly. e.g. I used the File Roller application that comes with Redhat 9,
and it does not extract all files correctly.
The tar command you could use is

tar -xzvf jakarta-tomcat4.1.29

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:

I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
line in the default web.xml file points to the session-timeout 
element; so does the referenced line in the application web.xml file. If 
I comment out _both_ the context will start. I checked the DTD in 
servlet-api.jar and it looks fine.

In CATALINA_HOME/server/lib, the commons-logging.jar file has 
impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
because I have a copy of log4j-1.2.8 in the directory.

Using 4.1.27 as CATALINA_HOME I have no problems either.

Any ideas on where to look?

Thanks;
Luigi
2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
org.apache.commons.logging.LogConfigurationException: 
java.lang.ClassNotFoundException: 
org.apache.commons.logging.impl.Log4jFactory
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
	at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
Source)
	at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
	at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.commons.digester.Digester.parse(Digester.java:1546)
	at 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)

	at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
	at 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)

	at 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)

	at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
	at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)

	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
	at 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)

	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

	at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:258)
	at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
	at org.apache.commons.digester.Rule.end(Rule.java:276)
	at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
	at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
Source)
	at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown

Source)
	at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at 

Configure tomcat-5 + Apache-2+jk2 on Solaris 9

2003-11-01 Thread Mike Nguyen






Hi,
I've read many sources and have tried to configure but it seems not fully working properly. Could anyone help me to configure it or point me to place(s) where I can learn to configure this. I appreciate it.
Mike







 IncrediMail - Email has finally evolved - Click Here