RE: session drop from https to http

2006-08-28 Thread Amir S

Hi,

Please note that the problem I describe only happen in the first time the
HTTP and HTTPS combination is performed.
For example if I use http and then https and then http the session stays the
same.
But if I start with https and then http then the session drops and a new
session is allocated and then if I move to https and the http every thing is
then fine.
Any ideas how to resolve this problem?
 
Thanks
Amir 


-Original Message-
From: josemanuel lopez [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 1:00 AM
To: Tomcat Users List
Subject: Re: session drop from https to http


Hi 

The reazon is because the seesion is  created with
info  from the call: example: IP address,  Port Etc, 
and  Tomcat has to  create  a new session because the
info is different, I'm being trying to find a solution
for this problem, but still I'm working on that. I'll
keep you  posted...or if you  find a solution please
forward that  to me

Thanks

--- Amir S [EMAIL PROTECTED] wrote:

 Hi All,
 
 I have a Jakarta 5.0.28.
 When entering the tomcat first
 https://127.0.0.1/a.jsp and then
 http://127.0.0.1/b.jsp
 The sessionID changes?!
 In the revise (http://127.0.0.1/b.jsp and then
 https://127.0.0.1/a.jsp)
 order it does not, why is that?!
 How can I fix it?
 Please note that the different is in the HTTPS and
 HTTP order.
  
 Regards,
 Amir S
  
 
 
 

-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Missing Java file for JSP?

2006-08-28 Thread Mark Thomas
Eugeny N Dzhurinsky wrote:
 I tried to remove mrm application from webapps, restart Tomcat, then redeploy
 this application - but still no luck. What can cause this problem, or which
 information I need to provide adidtionally?

Not sure what might have caused it. Try the following:
- remove the application
- stop Tomcat
- remove the work directory
- restart Tomcat

If it still happens, take the relevant JSP(s) and put it in a separate
web application and keep removing content from the JSP until you have
the smallest JSP (or set of JSPs) that re-creates the problem. Then
post the content of those JSPs to this list.

HTH,

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Missing Java file for JSP?

2006-08-28 Thread Eugeny N Dzhurinsky
On Mon, Aug 28, 2006 at 06:46:49AM -0400, Mark Thomas wrote:
 Eugeny N Dzhurinsky wrote:
  I tried to remove mrm application from webapps, restart Tomcat, then 
  redeploy
  this application - but still no luck. What can cause this problem, or which
  information I need to provide adidtionally?
 
 Not sure what might have caused it. Try the following:
 - remove the application
 - stop Tomcat
 - remove the work directory
 - restart Tomcat
 
 If it still happens, take the relevant JSP(s) and put it in a separate
 web application and keep removing content from the JSP until you have
 the smallest JSP (or set of JSPs) that re-creates the problem. Then
 post the content of those JSPs to this list.

I resolved the issue - somebody started Tomcat as root, and the directory was
not writable. May be Tomcat should check if directory writable before
compilation of a JSP file or something like this?

Anyway, thanks for help!

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Jar files that have to live outside of tomcat's directory structure?

2006-08-28 Thread Lloyd Zusman
I understand that the tomcat standards specify that jar files with
classes that are shared among more than one webapp should live in 
the shared directory.

However, for the application that I'm working on, there are some
jars that are shared not only among tomcat-based webapps, but also,
by other non-tomcat-based applications.  These jars contain business
logic for standard, company-wide calculations, and they are updated
from time to time as these calculations evolve.  And they have a
standard home in which they live.

I know that I could make copies of these classes or use symbolic links
to get them into tomcat's shared directory, but this presents a deployment
problem: if I keep copies, then tomcat's versions can (and often do) get
out of sync with the official versions; if I use symlinks, they get stale
and end up pointing to nothing, because the offical jars have names that
reflect their version numbers.  Furthermore, it's our company policy to
have one and only one copy of each of these business-specific jars in
our production environment.

Ideally, I'd like to be able to tell tomcat's class loader to look in the
home of these business-specific jar files in addition to the standard
locations.  Is there any way to do this?

Thanks in advance.

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]
 God bless you.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: javamail + tomcat

2006-08-28 Thread Marc Farrow

Ovi,
 Do you know the email address?  If so, then use JNDI and do a NSLOOKUP for
MX records on the domain name.

for example:

if you want to send mail to [EMAIL PROTECTED], then do a nslookup for MX
records on gmail.com.  From the command prompt it is:

nslookup -type=mx gmail.com

This will return several MX servers.  Loop through those using the lowest
numbered priority first.  You will need to do a search on how to do
nslookups with JNDI.

HTH

On 8/25/06, Ovi Comes [EMAIL PROTECTED] wrote:


Thanks Marc but how can I determine a valid MX entry for each email I
send?
I don't think that's viable solution since I don't know the target
subscribers a priori.



-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 5:01 PM
To: Tomcat Users List
Subject: Re: javamail + tomcat

I am sure you can use a Mail session in Tomcat and set it up the same way,
but I am calling javamail directly.

if I am sending to gmail.com.  I would use this code..

 Properties props = new Properties();
 props.put(mail.smtp.host,gmail-smtp-in.l.google.com);
 props.put(mail.smtp.localhost, localhost);
 Session s = Session.getInstance(props,null);
 s.setDebug(true);
 MimeMessage message = new MimeMessage(s);
 message.setSubject(getSubject());
 message.setFrom(InternetAddress.parse([EMAIL PROTECTED])[0]);
 message.setRecipient(Message.RecipientType.TO,[EMAIL PROTECTED]);
 message.setText(this is a test message);
 Transport.send(message);



On 8/25/06, Propes, Barry L [EMAIL PROTECTED] wrote:

 I'll sure take that under advisement.

 Tomcat has an additional component for sending email? I don't think I
ever
 knew that. Where's it configured? In the server.xml file?

 -Original Message-
 From: Marc Farrow [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 25, 2006 3:52 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: Re: javamail + tomcat


 If you want to send email directly via Tomcat, you can bypass relaying.
 Just set the mail.smtp.host attribute to a valid MX entry for the
 receiving domain.



 On 8/25/06, Ovi Comes [EMAIL PROTECTED] wrote:
 
  That is interesting. The funny thing is that I could send email to any
  account inbox. That is, running the code standalone. I can't figure
out
  how
  Tomcat would possibly alter my email so that it ends up in the spam
box.
  Plus, the headers are identical!
 
 
 
  -Original Message-
  From: Propes, Barry L [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 25, 2006 4:08 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: RE: javamail + tomcat
 
  most likely you have to get relaying approved.
 
  I've had a similar problem and had to jettison the idea of JavaMail
for
  now,
  due to the relaying problem.
 
  I could send through my desktop and only my email address through my
ISP
  would receive it, and then only in the Bulk Mail folder!
 
  Quite an aggravation, and I never found from anyone anywhere, short of
  seeing the administrator, how to solve this problem.
 
  Problem for me was twofold:
  1) how I do get my ISP to let other email addresses approved?
  2) getting an email admin here at work to approve this was like
getting
  Iran
  to concede on every nuclear point the U.S. or U.N. wants to adopt!
 
  -Original Message-
  From: Ovi Comes [mailto:[EMAIL PROTECTED]
  Sent: Friday, August 25, 2006 3:04 PM
  To: users@tomcat.apache.org
  Subject: javamail + tomcat
 
 
  Hi,
 
 
 
  I need help with javamail in tomcat. Here is my issue: if send an
email
 to
  an yahoo account, from my junit class everything is ok. When I run the
  same
  code in Tomcat, on the same machine, my email goes to spam/bulk
folder.
  What
  is going on?
 
 
 
  Thanks,
 
  Ovi
 
 
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
 8/24/2006
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
 8/24/2006
 
 
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date:
 8/24/2006
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Marc Farrow




--
Marc Farrow

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 8/24/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus 

Precompilation issues

2006-08-28 Thread Raju Balugu

Hi All,

I did the precompilation while build the image and installed this image and
tried to launch the pages , throwing the errors.I inverstigated those errors
and suspected the problem with work directory ,deleted the work directory
and stop and started the tomcat  and launched the pages without any issues.

Here my question is : Why it's not launched with precompilation
classes.whatmight be the reason behind this ?
I could see the size difference between the precompiled one and while
launching (compiled one).

Please share your experience?

Regards
Raju


configuring Tomcat for protocols other than http/s

2006-08-28 Thread Viraj Turakhia

Hi all,
I am starting to work with Tomcat's code and have no clue where to start
from.
Any pointers would be very very helpful.

To start with, I would like to know whether Tomcat is configurable to work
with protocols other than http/https?
I want to configure Tomcat in such a way that it gives me RAW data that is
posted on given port.
Please let me know which server element is to be configured (and where..
server.xml?) such that forming request/response from RAW data is possible
for me.
This RAW data is not necessarily a http/https specific data. It could be
specific to any other protocol like ftp://.

Waiting for reply, thanks.

--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com


Re: IIS vs Tomcat

2006-08-28 Thread Viraj Turakhia

AFAIK, Tomcat and IIS are two different things.
Tomcat is a servlet container and IIS is a webserver.

If you are comparing static webpages serving capabilities of these two..
then yes.. Tomcat is no better than IIS.
But being a Servlet Container, Tomcat wins the race with IIS all hands up.
:)

Viraj

On 8/28/06, Leon Rosenberg [EMAIL PROTECTED] wrote:


On 8/25/06, gurusamy.senthil [EMAIL PROTECTED] wrote:

 Thanks for the information peter.

 I am a ERP developer.  But I am trying to learn some web technologies
and I
 choosen Tomcat with jsp/servlet to develop small application.

 I am just finding hard advantage bewteen the IIS and tomcat but didn't
get.
 You explanation awakens me somehow.

The main advantage is probably that you can use tomcat to host
webapplications written in java. I seriously doubt that iis can handle
it :-)

Leon



 Peter Crowther wrote:
 
  From: gurusamy.senthil [mailto:[EMAIL PROTECTED]
  Can any one give me idea, What is the difference between
  Microsoft IIS server and Tomcat Server.
 
  Which is best and has better security to work, develop and for
deploy.
 
  Ooh, religious wars :-).
 
  - Both are Web servers;
  - Both are fast enough and have enough features for most
applications;
  - Both have good enough security if correctly deployed and
configured;
  - Both support hot deployment;
  - Both are good enough to develop for if you have or can buy in the
  appropriate skill-set;
  - Tomcat is free and portable to non-Windows OSs; IIS requires a
Windows
  OS license and potentially further licenses.
 
  If you're developing Java servlet-based applications, Tomcat is good.
  If you're developing ASP.Net applications and are willing to limit
  yourself to deploying on Microsoft WIndows, IIS is good.  If you're
  developing PHP applications, Apache httpd is good.  What are you
doing?
 
- Peter
 
  PS. So far, I've spent part of the afternoon debugging an ASP.Net app,
  another part debugging a servlet, and another part patching a PHP app.
  I don't have an axe to grind :-)
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
http://www.nabble.com/IIS-vs-Tomcat-tf2165043.html#a5990040
 Sent from the Tomcat - User forum at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com


mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
Hello!

I'm trying to move Tomcat with it's web-applications from one server to
another, and I facing weird problem:

I copied working configurations for tomcat, mod_jk and httpd, but in
mod_jk.log I can see this:

[Mon Aug 28 21:35:39 2006]  [jk_uri_worker_map.c (459)]: Attempting to map URI 
'/user/'
[Mon Aug 28 21:35:39 2006]  [jk_uri_worker_map.c (483)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - /user/
[Mon Aug 28 21:35:39 2006]  [mod_jk.c (1689)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=166127440 worker=ajp13
[Mon Aug 28 21:35:39 2006]  [jk_worker.c (90)]: Into wc_get_worker_for_name 
ajp13
[Mon Aug 28 21:35:39 2006]  [jk_worker.c (94)]: wc_get_worker_for_name, done 
found a worker
[Mon Aug 28 21:35:39 2006]  [mod_jk.c (472)]: agsp=80 agsn=www.linktiger.com 
hostn=www.linktiger.com shostn=www.linktiger.com cbsport=0 sport=0 
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1741)]: Into 
jk_worker_t::get_endpoint
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1367)]: Into 
jk_endpoint_t::service
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (257)]: Into ajp_marshal_into_msgb
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (425)]: ajp_marshal_into_msgb - 
Done
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (143)]: jk_open_socket, try to 
connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (159)]: jk_open_socket, after connect 
ret = -1
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (188)]: jk_open_socket, connect() 
failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (720)]: Error connecting to 
tomcat. Tomcat is probably not started or is listening on the wrong host/port 
(127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1024)]: Error connecting to the 
Tomcat process.
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1468)]: sending request to tomcat 
failed in send loop. err=0
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (143)]: jk_open_socket, try to 
connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (159)]: jk_open_socket, after connect 
ret = -1
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (188)]: jk_open_socket, connect() 
failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (720)]: Error connecting to 
tomcat. Tomcat is probably not started or is listening on the wrong host/port 
(127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1024)]: Error connecting to the 
Tomcat process.
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1468)]: sending request to tomcat 
failed in send loop. err=1
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (143)]: jk_open_socket, try to 
connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (159)]: jk_open_socket, after connect 
ret = -1
[Mon Aug 28 21:35:39 2006]  [jk_connect.c (188)]: jk_open_socket, connect() 
failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (720)]: Error connecting to 
tomcat. Tomcat is probably not started or is listening on the wrong host/port 
(127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1024)]: Error connecting to the 
Tomcat process.
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1468)]: sending request to tomcat 
failed in send loop. err=2
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1477)]: Error connecting to 
tomcat. Tomcat is probably not started or is listening on the wrong port. 
worker=ajp13 failed errno = 13
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (1724)]: Into jk_endpoint_t::done, 
closing connection 0
[Mon Aug 28 21:35:39 2006]  [jk_ajp_common.c (567)]: In 
jk_endpoint_t::ajp_close_endpoint

and the thing is if I do 

telnet 127.0.0.1 8009 - it works fine!

How could that be?

here is my workers.properties file:

workers.tomcat_home=/home/user/tomcat
workers.java_home=/usr/java/jdk1.5.0_07
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

Could somebody please advice?

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring Tomcat for protocols other than http/s

2006-08-28 Thread Marc Farrow

Instead of goign through the over head of Tomcat, why not write your own
custom port listener and implement whatever protocol you want?  You will
know that the sender has to adhere to that protocol standard and you would
adhere to same protocol as well..  Most protocols are just extensions of
TCPIP.

On 8/28/06, Viraj Turakhia [EMAIL PROTECTED] wrote:


Hi all,
I am starting to work with Tomcat's code and have no clue where to start
from.
Any pointers would be very very helpful.

To start with, I would like to know whether Tomcat is configurable to work
with protocols other than http/https?
I want to configure Tomcat in such a way that it gives me RAW data that is
posted on given port.
Please let me know which server element is to be configured (and where..
server.xml?) such that forming request/response from RAW data is possible
for me.
This RAW data is not necessarily a http/https specific data. It could be
specific to any other protocol like ftp://.

Waiting for reply, thanks.

--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com





--
Marc Farrow


Re: configuring Tomcat for protocols other than http/s

2006-08-28 Thread Viraj Turakhia

Yeah.. you are write.
But actually I am planning to use Tomcat's servlet container's capability.

Viraj

On 8/28/06, Marc Farrow [EMAIL PROTECTED] wrote:


Instead of goign through the over head of Tomcat, why not write your own
custom port listener and implement whatever protocol you want?  You will
know that the sender has to adhere to that protocol standard and you would
adhere to same protocol as well..  Most protocols are just extensions of
TCPIP.

On 8/28/06, Viraj Turakhia [EMAIL PROTECTED] wrote:

 Hi all,
 I am starting to work with Tomcat's code and have no clue where to start
 from.
 Any pointers would be very very helpful.

 To start with, I would like to know whether Tomcat is configurable to
work
 with protocols other than http/https?
 I want to configure Tomcat in such a way that it gives me RAW data that
is
 posted on given port.
 Please let me know which server element is to be configured (and where..
 server.xml?) such that forming request/response from RAW data is
possible
 for me.
 This RAW data is not necessarily a http/https specific data. It could be
 specific to any other protocol like ftp://.

 Waiting for reply, thanks.

 --
 The first right of human is the right of EGO.
 --
 http://www.xperienceexperience.blogspot.com




--
Marc Farrow





--
The first right of human is the right of EGO.
--
http://www.xperienceexperience.blogspot.com


Re: Jar files that have to live outside of tomcat's directory structure?

2006-08-28 Thread Mikolaj Rydzewski

Lloyd Zusman wrote:

Ideally, I'd like to be able to tell tomcat's class loader to look in the
home of these business-specific jar files in addition to the standard
locations.  Is there any way to do this?
  
You can also use your own class loader to load specific jars. Instead of 
telling Tomcat to load them, load them yourself.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


IIS 6.0 working with Tomcat (via isapi)?

2006-08-28 Thread Stanczak Group
I'm running IIS 6 on a 2003 sp1 machine with Tomcat 5.5.17. I can't seem 
to get JK 1.2.15 to work. I've tried 1.2.18, but it won't even load. I 
even edited the reg to use that url rewrite, but no luck. Anyone get it 
running under the same environment? If so, is there any tricks?


--
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky

netstat -lp | grep 8009 gives me

tcp0  0 *:8009  *:*  LISTEN  17119/java

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
tcpdump shows me that there is NO attemts to make connection to host 127.0.0.1
and port 8009 from within mod_jk, but if I do telnet 127.0.0.1 8009 - it
works fine.

Really strange

Operating system is Fedora core 4, 
and installed software: 
jdk1.5.0_07, mod_jk-1.2.6-3jpp_4fc, httpd-2.0.54-10.4

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread David Smith
What does the connector for port 8009 look like in your server.xml?  
Does it specify protcol=AJP/1.3?


--David

Eugeny N Dzhurinsky wrote:


Hello!

I'm trying to move Tomcat with it's web-applications from one server to
another, and I facing weird problem:

I copied working configurations for tomcat, mod_jk and httpd, but in
mod_jk.log I can see this:

[Mon Aug 28 21:35:39 2006] [jk_uri_worker_map.c (459)]: Attempting to 
map URI '/user/'
[Mon Aug 28 21:35:39 2006] [jk_uri_worker_map.c (483)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match ajp13 - 
/user/
[Mon Aug 28 21:35:39 2006] [mod_jk.c (1689)]: Into handler 
r-proxyreq=0 r-handler=jakarta-servlet r-notes=166127440 worker=ajp13
[Mon Aug 28 21:35:39 2006] [jk_worker.c (90)]: Into 
wc_get_worker_for_name ajp13
[Mon Aug 28 21:35:39 2006] [jk_worker.c (94)]: wc_get_worker_for_name, 
done found a worker
[Mon Aug 28 21:35:39 2006] [mod_jk.c (472)]: agsp=80 
agsn=www.linktiger.com hostn=www.linktiger.com 
shostn=www.linktiger.com cbsport=0 sport=0
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1741)]: Into 
jk_worker_t::get_endpoint
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1367)]: Into 
jk_endpoint_t::service
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (257)]: Into 
ajp_marshal_into_msgb
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (425)]: 
ajp_marshal_into_msgb - Done

[Mon Aug 28 21:35:39 2006] [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006] [jk_connect.c (143)]: jk_open_socket, try 
to connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006] [jk_connect.c (159)]: jk_open_socket, after 
connect ret = -1
[Mon Aug 28 21:35:39 2006] [jk_connect.c (188)]: jk_open_socket, 
connect() failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (720)]: Error connecting 
to tomcat. Tomcat is probably not started or is listening on the wrong 
host/port (127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1024)]: Error connecting 
to the Tomcat process.
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1468)]: sending request 
to tomcat failed in send loop. err=0

[Mon Aug 28 21:35:39 2006] [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006] [jk_connect.c (143)]: jk_open_socket, try 
to connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006] [jk_connect.c (159)]: jk_open_socket, after 
connect ret = -1
[Mon Aug 28 21:35:39 2006] [jk_connect.c (188)]: jk_open_socket, 
connect() failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (720)]: Error connecting 
to tomcat. Tomcat is probably not started or is listening on the wrong 
host/port (127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1024)]: Error connecting 
to the Tomcat process.
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1468)]: sending request 
to tomcat failed in send loop. err=1

[Mon Aug 28 21:35:39 2006] [jk_connect.c (136)]: Into jk_open_socket
[Mon Aug 28 21:35:39 2006] [jk_connect.c (143)]: jk_open_socket, try 
to connect socket = 12 to 127.0.0.1:8009
[Mon Aug 28 21:35:39 2006] [jk_connect.c (159)]: jk_open_socket, after 
connect ret = -1
[Mon Aug 28 21:35:39 2006] [jk_connect.c (188)]: jk_open_socket, 
connect() failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (720)]: Error connecting 
to tomcat. Tomcat is probably not started or is listening on the wrong 
host/port (127.0.0.1:8009). Failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1024)]: Error connecting 
to the Tomcat process.
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1468)]: sending request 
to tomcat failed in send loop. err=2
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1477)]: Error connecting 
to tomcat. Tomcat is probably not started or is listening on the wrong 
port. worker=ajp13 failed errno = 13
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (1724)]: Into 
jk_endpoint_t::done, closing connection 0
[Mon Aug 28 21:35:39 2006] [jk_ajp_common.c (567)]: In 
jk_endpoint_t::ajp_close_endpoint


and the thing is if I do

telnet 127.0.0.1 8009 - it works fine!

How could that be?

here is my workers.properties file:

workers.tomcat_home=/home/user/tomcat
workers.java_home=/usr/java/jdk1.5.0_07
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr

Could somebody please advice?




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, 

Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
On Mon, Aug 28, 2006 at 10:07:18AM -0400, David Smith wrote:
 What does the connector for port 8009 look like in your server.xml?  
 Does it specify protcol=AJP/1.3?

Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

it's tomcat 4.1.xx

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hot deployment questions

2006-08-28 Thread Andrés González

Only one question: why don't you want the webapp to be reloaded?

You can save your sessions easily using the Session Manager (just
insert the following in your context.xml:   Manager
className=org.apache.catalina.session.StandardManager/):

http://tomcat.apache.org/tomcat-5.0-doc/config/manager.html



On 8/28/06, Hammad Sophie [EMAIL PROTECTED] wrote:

Hello.

I've searched through and read a number of messages related to 'hot
deployment'. All of them deal with hot deploying the ENTIRE webapp, not
just particular classes in my webapp.

We use tomcat as the application server/container for our application.
We use a single production server running a single instance of tomcat on
client sites. Frequently we run into a situation where a bug fix must be
deployed without restarting tomcat or even reloading the webapp. This
works well when a patch contains only JSPs. We simply unzip/copy the
jsps into the webapps/blah directory and tomcat recompiles them itself
automatically. However, alot of times, our patches also contain our
class files [located in webapps/blah/WEB-INF/classes]. Currently we can
copy these files to the appropriate directory within tomcat, but they do
not get picked up unless tomcat is restarted or the webapp redeployed.
Is there any way to 'hot deploy' certain classes within a webapp such
that the entire webapp does not reload, but only the new classes are
picked up and used?

Thanks.

Hammad.






--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Steve Ochani
On 28 Aug 2006 at 17:01, Eugeny N Dzhurinsky wrote:


 tcpdump shows me that there is NO attemts to make connection to host
 127.0.0.1 and port 8009 from within mod_jk, but if I do telnet
 127.0.0.1 8009 - it works fine.
 
 Really strange
 
 Operating system is Fedora core 4, 
 and installed software: 
 jdk1.5.0_07, mod_jk-1.2.6-3jpp_4fc, httpd-2.0.54-10.4

This is just a hunch, but is there a firewall on?




 
 -- 
 Eugene N Dzhurinsky
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
On Mon, Aug 28, 2006 at 10:13:55AM -0400, Steve Ochani wrote:
  tcpdump shows me that there is NO attemts to make connection to host
  127.0.0.1 and port 8009 from within mod_jk, but if I do telnet
  127.0.0.1 8009 - it works fine.
  
  Really strange
  
  Operating system is Fedora core 4, 
  and installed software: 
  jdk1.5.0_07, mod_jk-1.2.6-3jpp_4fc, httpd-2.0.54-10.4
 This is just a hunch, but is there a firewall on?

No firewall, I can connect to a port 8009 from that computer with telnet for
no problems, and tcpdump shows the fact of connection was established.

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 working with Tomcat (via isapi)?

2006-08-28 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

try the following instructions...

http://reynir.net/java/greinar/nr/52/ath

regards,
- -reynir


Stanczak Group wrote:
 I'm running IIS 6 on a 2003 sp1 machine with Tomcat 5.5.17. I can't seem
 to get JK 1.2.15 to work. I've tried 1.2.18, but it won't even load. I
 even edited the reg to use that url rewrite, but no luck. Anyone get it
 running under the same environment? If so, is there any tricks?
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE8v4B19KgIQihNwgRAigcAKCgapO7Hc/EHkFJOMlwsJkh3pGbpACePGZU
pYw7MazN9uVdYWL5TxT9bQc=
=RY3B
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hot deployment questions

2006-08-28 Thread Hammad Sophie
I wasn't aware of SessionManager. However, I'm not sure it will help.
Generally we are installing patches on a live server that has
transactions/activity going on while we patch. I'd like to know if its
possible for us to do a hot patch without causing any disruption to any
user. If we reload, it will cause users to lose data that they are
working on.

Hammad.

-Original Message-
From: Andrés González [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 7:11 PM
To: Tomcat Users List
Subject: Re: hot deployment questions


Only one question: why don't you want the webapp to be reloaded?

You can save your sessions easily using the Session Manager (just
insert the following in your context.xml:   Manager
className=org.apache.catalina.session.StandardManager/):

http://tomcat.apache.org/tomcat-5.0-doc/config/manager.html



On 8/28/06, Hammad Sophie [EMAIL PROTECTED] wrote:
 Hello.

 I've searched through and read a number of messages related to 'hot 
 deployment'. All of them deal with hot deploying the ENTIRE webapp, 
 not just particular classes in my webapp.

 We use tomcat as the application server/container for our application.

 We use a single production server running a single instance of tomcat 
 on client sites. Frequently we run into a situation where a bug fix 
 must be deployed without restarting tomcat or even reloading the 
 webapp. This works well when a patch contains only JSPs. We simply 
 unzip/copy the jsps into the webapps/blah directory and tomcat 
 recompiles them itself automatically. However, alot of times, our 
 patches also contain our class files [located in 
 webapps/blah/WEB-INF/classes]. Currently we can copy these files to 
 the appropriate directory within tomcat, but they do not get picked up

 unless tomcat is restarted or the webapp redeployed. Is there any way 
 to 'hot deploy' certain classes within a webapp such that the entire 
 webapp does not reload, but only the new classes are picked up and 
 used?

 Thanks.

 Hammad.





-- 

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
I upgraded to mod_jk 1.2.18 and still face the same error:

[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map context 
URI '/user/*'
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match ajp
13 - /user/*
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] jk_handler::mod_jk.c (1832): 
Into handler jakarta-servlet worker=ajp13 r
-proxyreq=0
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] 
wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] wc_maintain::jk_worker.c 
(301): Maintaining worker ajp13
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] init_ws_service::mod_jk.c 
(531): Service protocol=HTTP/1.1 method=GET ho
st=(null) addrr=85.90.206.104 name=www.linktiger.com port=80 auth=(null) 
user=(null) laddr=72.22.64.242 raddr=85.90.206.1
04
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] 
ajp_get_endpoint::jk_ajp_common.c (2164): acquired connection pool slot=
0
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] 
ajp_marshal_into_msgb::jk_ajp_common.c (566): ajp marshaling done
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] ajp_service::jk_ajp_common.c 
(1698): processing ajp13 with 2 retries
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] jk_open_socket::jk_connect.c 
(329): socket TCP_NODELAY set to On
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] jk_open_socket::jk_connect.c 
(427): trying to connect socket 12 to 127.0
.0.1:8009
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  jk_open_socket::jk_connect.c 
(445): connect to 127.0.0.1:8009 failed wit
h errno=13
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  
ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to
 (127.0.0.1:8009) with (errno=13)
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  
ajp_send_request::jk_ajp_common.c (1251): Error connecting to the backen
d server.
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  ajp_service::jk_ajp_common.c 
(1783): Sending request to tomcat failed,  
recoverable operation attempt=1
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] jk_open_socket::jk_connect.c 
(329): socket TCP_NODELAY set to On
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] jk_open_socket::jk_connect.c 
(427): trying to connect socket 12 to 127.0
.0.1:8009
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  jk_open_socket::jk_connect.c 
(445): connect to 127.0.0.1:8009 failed wit
h errno=13
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  
ajp_connect_to_endpoint::jk_ajp_common.c (889): Failed opening socket to
 (127.0.0.1:8009) with (errno=13)
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  
ajp_send_request::jk_ajp_common.c (1251): Error connecting to the backen
d server.
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  ajp_service::jk_ajp_common.c 
(1783): Sending request to tomcat failed,  
recoverable operation attempt=2
[Mon Aug 28 22:45:04 2006] [25415:26304] [error] ajp_service::jk_ajp_common.c 
(1794): Error connecting to tomcat. Tomcat 
is probably not started or is listening on the wrong port. worker=ajp13 failed
[Mon Aug 28 22:45:04 2006] [25415:26304] [debug] ajp_done::jk_ajp_common.c 
(2107): recycling connection pool slot=0 for w
orker ajp13
[Mon Aug 28 22:45:04 2006] [25415:26304] [info]  jk_handler::mod_jk.c (1978): 
Service error=0 for worker=ajp1


Tomcat itself works fine, I can telnet to port 8009 from that host and from any 
other hosts, 
tcpdump still shows no even attempt to connect to port 8009 was made.

Weird...

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hot deployment questions

2006-08-28 Thread Andrés González

I apply patches on production servers every week (or i did some time
ago, now things are more stable O:)) and the hot deployment work
perfectly. It does not interrupt any HTTP-transaction. If you are
using sessions you need to persist them and may be write your
ServletContextListener class to execute some code on the start/stop of
the context (the webapp).

I think what tomcat does when it detects a new class is:

1 - stop responding new request (don't discard them, only paused
them for a while)
2 - wait until current http transactions are done
3 - reload the webapp
4 - attend paused requests and new ones



On 8/28/06, Hammad Sophie [EMAIL PROTECTED] wrote:

I wasn't aware of SessionManager. However, I'm not sure it will help.
Generally we are installing patches on a live server that has
transactions/activity going on while we patch. I'd like to know if its
possible for us to do a hot patch without causing any disruption to any
user. If we reload, it will cause users to lose data that they are
working on.

Hammad.

-Original Message-
From: Andrés González [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 7:11 PM
To: Tomcat Users List
Subject: Re: hot deployment questions


Only one question: why don't you want the webapp to be reloaded?

You can save your sessions easily using the Session Manager (just
insert the following in your context.xml:   Manager
className=org.apache.catalina.session.StandardManager/):

http://tomcat.apache.org/tomcat-5.0-doc/config/manager.html



On 8/28/06, Hammad Sophie [EMAIL PROTECTED] wrote:
 Hello.

 I've searched through and read a number of messages related to 'hot
 deployment'. All of them deal with hot deploying the ENTIRE webapp,
 not just particular classes in my webapp.

 We use tomcat as the application server/container for our application.

 We use a single production server running a single instance of tomcat
 on client sites. Frequently we run into a situation where a bug fix
 must be deployed without restarting tomcat or even reloading the
 webapp. This works well when a patch contains only JSPs. We simply
 unzip/copy the jsps into the webapps/blah directory and tomcat
 recompiles them itself automatically. However, alot of times, our
 patches also contain our class files [located in
 webapps/blah/WEB-INF/classes]. Currently we can copy these files to
 the appropriate directory within tomcat, but they do not get picked up

 unless tomcat is restarted or the webapp redeployed. Is there any way
 to 'hot deploy' certain classes within a webapp such that the entire
 webapp does not reload, but only the new classes are picked up and
 used?

 Thanks.

 Hammad.





--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hot deployment questions

2006-08-28 Thread Mikolaj Rydzewski

Hammad Sophie wrote:

I wasn't aware of SessionManager. However, I'm not sure it will help.
Generally we are installing patches on a live server that has
transactions/activity going on while we patch. I'd like to know if its
possible for us to do a hot patch without causing any disruption to any
user. If we reload, it will cause users to lose data that they are
working on.
  
You can try to use custom classloader to load/unload specific classes on 
demand. But it's a tricky issue - you have to be sure, that there's no 
instance of a class being unloaded.


Maybe some kind of cluster would help - you shutdown one node, update 
it, bring it back, do the same with the second node, and users - in 
theory - don't see any problem.


--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
I found error code 13 is

./asm/errno.h:#define   EACCES  13  /* Permission denied */

could tha mean mod_jk simply isn't allowed to connect to port 8009?

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



setup alias for deployed app

2006-08-28 Thread princekr

If I have an app deployed as john_smith, how can I configure Tomcat recognize
john as being the same app and start up john_smith? Is this possible?

Thanks
-- 
View this message in context: 
http://www.nabble.com/setup-alias-for-deployed-app-tf2177792.html#a6021662
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Eugeny N Dzhurinsky
On Mon, Aug 28, 2006 at 10:56:41AM -0400, David Smith wrote:
 Could be.  Software like Symantec Client Firewall tend to operate per 
 application.  You'd get access, but maybe apache httpd was configured to 
 be denied access.

There is no firewall installed at all.

And 

su -m apache -c 'telnet 127.0.0.1'

works fine.

-- 
Eugene N Dzhurinsky

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: IIS vs Tomcat

2006-08-28 Thread Propes, Barry L
The main advantage is probably that you can use tomcat to host
webapplications written in java. I seriously doubt that iis can handle
it :-)

Leon

Leon is correct...IIS -- without help from something like Tomcat -- cannot host 
web apps in Java, only ASP (or in Win2003 and above, ASP.NET).

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 8:27 AM
To: Tomcat Users List
Subject: Re: IIS vs Tomcat


On 8/25/06, gurusamy.senthil [EMAIL PROTECTED] wrote:

 Thanks for the information peter.

 I am a ERP developer.  But I am trying to learn some web technologies and I
 choosen Tomcat with jsp/servlet to develop small application.

 I am just finding hard advantage bewteen the IIS and tomcat but didn't get.
 You explanation awakens me somehow.

The main advantage is probably that you can use tomcat to host
webapplications written in java. I seriously doubt that iis can handle
it :-)

Leon



 Peter Crowther wrote:
 
  From: gurusamy.senthil [mailto:[EMAIL PROTECTED]
  Can any one give me idea, What is the difference between
  Microsoft IIS server and Tomcat Server.
 
  Which is best and has better security to work, develop and for deploy.
 
  Ooh, religious wars :-).
 
  - Both are Web servers;
  - Both are fast enough and have enough features for most applications;
  - Both have good enough security if correctly deployed and configured;
  - Both support hot deployment;
  - Both are good enough to develop for if you have or can buy in the
  appropriate skill-set;
  - Tomcat is free and portable to non-Windows OSs; IIS requires a Windows
  OS license and potentially further licenses.
 
  If you're developing Java servlet-based applications, Tomcat is good.
  If you're developing ASP.Net applications and are willing to limit
  yourself to deploying on Microsoft WIndows, IIS is good.  If you're
  developing PHP applications, Apache httpd is good.  What are you doing?
 
- Peter
 
  PS. So far, I've spent part of the afternoon debugging an ASP.Net app,
  another part debugging a servlet, and another part patching a PHP app.
  I don't have an axe to grind :-)
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/IIS-vs-Tomcat-tf2165043.html#a5990040
 Sent from the Tomcat - User forum at Nabble.com.


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: session drop from https to http

2006-08-28 Thread Andrés González

On 8/28/06, Amir S [EMAIL PROTECTED] wrote:


Hi,

Please note that the problem I describe only happen in the first time the
HTTP and HTTPS combination is performed.
For example if I use http and then https and then http the session stays the
same.
But if I start with https and then http then the session drops and a new
session is allocated and then if I move to https and the http every thing is
then fine.
Any ideas how to resolve this problem?

Don't drop to http.



-Original Message-
From: josemanuel lopez [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 1:00 AM
To: Tomcat Users List
Subject: Re: session drop from https to http


Hi

The reazon is because the seesion is  created with
info  from the call: example: IP address,  Port Etc,
and  Tomcat has to  create  a new session because the
info is different, I'm being trying to find a solution
for this problem, but still I'm working on that. I'll
keep you  posted...or if you  find a solution please
forward that  to me

Thanks

--- Amir S [EMAIL PROTECTED] wrote:

 Hi All,

 I have a Jakarta 5.0.28.
 When entering the tomcat first
 https://127.0.0.1/a.jsp and then
 http://127.0.0.1/b.jsp
 The sessionID changes?!
 In the revise (http://127.0.0.1/b.jsp and then
 https://127.0.0.1/a.jsp)
 order it does not, why is that?!
 How can I fix it?
 Please note that the different is in the HTTPS and
 HTTP order.

 Regards,
 Amir S





-
 To start a new topic, e-mail:
 users@tomcat.apache.org
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 working with Tomcat (via isapi)? FIXED

2006-08-28 Thread Stanczak Group
That did it. It was the Web Services Extensions part. I didn't have the 
enabled. Thanks.


Reynir Hubner wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

try the following instructions...

http://reynir.net/java/greinar/nr/52/ath

regards,
- -reynir


Stanczak Group wrote:
  

I'm running IIS 6 on a 2003 sp1 machine with Tomcat 5.5.17. I can't seem
to get JK 1.2.15 to work. I've tried 1.2.18, but it won't even load. I
even edited the reg to use that url rewrite, but no luck. Anyone get it
running under the same environment? If so, is there any tricks?



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE8v4B19KgIQihNwgRAigcAKCgapO7Hc/EHkFJOMlwsJkh3pGbpACePGZU
pYw7MazN9uVdYWL5TxT9bQc=
=RY3B
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  


--
Justin Stanczak
Stanczak Group
812-735-3600

All that is necessary for the triumph of evil is that good men do nothing.
Edmund Burke


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Jar files that have to live outside of tomcat's directory structure?

2006-08-28 Thread Lloyd Zusman
Mikolaj Rydzewski miki at ceti.pl writes:

 
 Lloyd Zusman wrote:
  Ideally, I'd like to be able to tell tomcat's class loader to look in the
  home of these business-specific jar files in addition to the standard
  locations.  [ ... ]

 You can also use your own class loader to load specific jars. Instead of 
 telling Tomcat to load them, load them yourself.

OK.  Thanks.

-- 
 Lloyd Zusman
 [EMAIL PROTECTED]
 God bless you.






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DataSource variables in replicated objects in a Tomcat cluster

2006-08-28 Thread Filip Hanik - Dev Lists

approach the problem from a different angle:
why do you need to store the data source in a replicated object? there 
are so many other places you can store them :)


Filip


Dag Bjerkeli wrote:
I have defined my datasource parameters in context.xml.  I've 
initialized the datasource objects

in the constructor where I need them.  I'm using Tomcat 5.5.17.

As I have experienced the constructor does not get activated when a 
object is replicated, so
my idea is to implement readObject() for initializing of the 
datasource in the replicated
object.  But I don't get access to what is defined in context.xml, 
only to what is defined
in server.xml.  It looks like this is not what I should expect.  So I 
wonder if there is a

different approach to initialize datasource in a replicated object.

One solution would be to put the contents of context.xml into 
server.xml, but I

don't quite like the sound of that.

I hope some can enlighten me on this.

Regards

Dag Bjerkeli

Here is some output to illustrate the problem:
Output in tomcat1 when a object is constructed:
DB:: DataLogDAO constructor
DB:: Got context java:
DB:: got name comp


Output in tomcat2 when object is replicated:
DB:: DataLogDAO readObject
DB:: Got context java:
DB:: got name UserDatabase
DB:: got name jdbc
DB:: got name simpleValue
DB:: Err with context Name comp is not bound in this Context
javax.naming.NameNotFoundException: Name comp is not bound in this 
Context



The relevant code in class DataLogDAO:
   private transient DataSource dsR = null;
   private transient DataSource dsW = null;

   public DataLogDAO()  throws Exception {
   System.out.println(DB:: DataLogDAO constructor );
   this.generateConnections();
   }
 private void readObject(java.io.ObjectInputStream in) throws 
IOException, ClassNotFoundException {

   System.out.println(DB:: DataLogDAO readObject);
   in.defaultReadObject();
   try {
   this.generateConnections();
   } catch(Exception e) {
   System.out.println(DB:: Err with context  + e.getMessage());
   e.printStackTrace();
   }
   }

   private void generateConnections() throws Exception {
   if( dsR == null) {
   Context ctx = new InitialContext();
   if(ctx == null )
   throw new Exception(Boom - No Context);

   String ctxname = ctx.getNameInNamespace();
   System.out.println(DB:: Got context  + ctxname);
   NamingEnumeration en = ctx.listBindings(ctxname);
   while ( en.hasMore()) {
   Binding b = (Binding) en.next();
   System.out.println(DB:: got name  + b.getName());
   }
   dsR = (DataSource) ctx.lookup(IConstants.DATASOURCE_READER);
   dsW = (DataSource) ctx.lookup(IConstants.DATASOURCE_WRITER);
   }
   }




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.5/426 - Release Date: 8/23/2006
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an older version of my applet

2006-08-28 Thread Jose Roberto Torres
Hi again, I tried to clear the classloader cache, it didn´t work it is 
still showing the old applet.
I use the following http://192.168.1.80/prime/servlets, this is the LAN 
IP for that machine, and it displays the old applet.
But if I try with http://127.0.0.1/prime/servlets it shows the correct 
applet.


Roberto Torres

Jose Roberto Torres ha scritto:

From the beginning I had no
problems with it, but two days ago the tomcat started to display an 
older

version of the applet.


Did you try to clear the classloader cache from the client side?
If not, open your java plugin console and press X.

HTH
Antonio





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: session drop from https to http

2006-08-28 Thread Andrés González

What is the reason to mix http and https? Why don't you serve all your
pages with https? I think the performance argument is not relevant
anymore...

On 8/28/06, Duong BaTien [EMAIL PROTECTED] wrote:

Greetings:

I have the same problem and look for any suggested solution. In my case,
any user coming to the site has a session tag with username such as
Guest-xxx. The user is dynamically directed to secure (https) and
non-secure (http) section depending on the requested resources.
Currently, a user needs to signOn twice with the same username before
the identified session is sticked.

Thanks.

On Mon, 2006-08-28 at 13:20 +0200, Amir S wrote:
 Hi,

 Please note that the problem I describe only happen in the first time the
 HTTP and HTTPS combination is performed.
 For example if I use http and then https and then http the session stays the
 same.
 But if I start with https and then http then the session drops and a new
 session is allocated and then if I move to https and the http every thing is
 then fine.
 Any ideas how to resolve this problem?

 Thanks
 Amir


 -Original Message-
 From: josemanuel lopez [mailto:[EMAIL PROTECTED]
 Sent: Monday, August 28, 2006 1:00 AM
 To: Tomcat Users List
 Subject: Re: session drop from https to http


 Hi

 The reazon is because the seesion is  created with
 info  from the call: example: IP address,  Port Etc,
 and  Tomcat has to  create  a new session because the
 info is different, I'm being trying to find a solution
 for this problem, but still I'm working on that. I'll
 keep you  posted...or if you  find a solution please
 forward that  to me

 Thanks

 --- Amir S [EMAIL PROTECTED] wrote:

  Hi All,
 
  I have a Jakarta 5.0.28.
  When entering the tomcat first
  https://127.0.0.1/a.jsp and then
  http://127.0.0.1/b.jsp
  The sessionID changes?!
  In the revise (http://127.0.0.1/b.jsp and then
  https://127.0.0.1/a.jsp)
  order it does not, why is that?!
  How can I fix it?
  Please note that the different is in the HTTPS and
  HTTP order.
 
  Regards,
  Amir S
 
 
 
 
 
 -
  To start a new topic, e-mail:
  users@tomcat.apache.org
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 


 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

-=-=-=-=-=-=-=-=-=-=-=-=-
Andrés González.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



CHROOT Tomcat

2006-08-28 Thread Michael J. Prichard

Hello All,

I am working on a new spring MVC app that I want to put in production on 
Tomcat 5.5.  I am using Suse Enterprise 9 and wanted to make the tomcat 
container as secure as I could.  SO, I read about CHROOT'ing it and 
figure that may be a good way to go.  Anyone have any good resources as 
to how I go about doing this?


Also, I see that SLES9 does have tomcat in its packages but it is 5.0x.  
I thought using the latest might be better.


Thanks!
Michael

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Firefox, mod_jk, tomcat refresh hangs

2006-08-28 Thread adamle

Hello,

I am using Apache 2.0.54 with mod_jk and Tomcat 5.0.28.

When I try to access a simple html page on the Tomcat server, through apache
using ajp 1.3,  with Firefox and hit refresh it hangs about 20% of the
times.
If I try to access the same page directly using Tomcat's port it never hangs
and also the same page on Apache works fine.
This problem only occurs in Firefox, IE and Opera work fine.

Does anyone have any idea what may be the problem?

Thanks in advance,
Adam.
-- 
View this message in context: 
http://www.nabble.com/Firefox%2C-mod_jk%2C-tomcat-refresh-hangs-tf2178496.html#a6023831
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



additional security permissions when upgrading from 5.0.25 to 5.5.17

2006-08-28 Thread pritesh sharma
Hi,
  I had asked this question earlier in the list.
Trying again !!
  I am upgrading tomcat from 5.0.25 to 5.5.17. I have
had to grant java.lang.RuntimePermission
getClassLoader permissions to the codebase in
WEBINF/lib because some of the custom defined filters
in web.xml get the following exception:

SEVERE: Exception starting filter
PasswordExpirationFilter
INFO   | jvm 1| 2006/08/24 13:34:41 |
java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
java.security.AccessControlContext.checkPermission(Unknown
Source)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
java.security.AccessController.checkPermission(Unknown
Source)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
java.lang.SecurityManager.checkPermission(Unknown
Source)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
java.lang.Class.getClassLoader(Unknown Source)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:904)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
java.lang.ClassLoader.loadClassInternal(Unknown
Source)
INFO   | jvm 1| 2006/08/24 13:34:41 |   at
com.mycompany.manager.filters.PasswordExpirationFilter.init(PasswordExpirationFilter.java:237)
 

I do not need to grant the getClassLoader permission
in 5.0.25. Can some one explain why I need to do so in
5.5.17??

Thank You
Regards
Pritesh

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Handling huge amount data

2006-08-28 Thread José Renato

Hi All,

I have an web application deployed with Tomcat 5.0.28. In some cases my 
queries can bring back huge amounts of data. Looking Windows Task 
Manager I perceived the natural memory increase. I noticed that when I 
call my logout method (It calls session.invalidate()) or my user session 
expieres the memory is still in use, in other words, the memory is not 
cleaned. This process will cause OutOfMemoryException soon. I would like 
to undertand how can I discover why this happens and how can I fix it.


Best regards,
José Renato.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Handling huge amount data

2006-08-28 Thread David Smith
If you are sure the sessions are where your memory is going, is there 
any way to reduce the session size?  I would think a query for a large 
amount of data should be a request scoped item or maybe even put on the 
presentation layer with a taglib.


You could also be hanging onto object references in other parts of your 
code.  Invalidating the session won't clean that up.


Also there are profilers around that will give you an idea of memory 
useage.  Google is your friend.


--David

José Renato wrote:


Hi All,

I have an web application deployed with Tomcat 5.0.28. In some cases 
my queries can bring back huge amounts of data. Looking Windows Task 
Manager I perceived the natural memory increase. I noticed that when I 
call my logout method (It calls session.invalidate()) or my user 
session expieres the memory is still in use, in other words, the 
memory is not cleaned. This process will cause OutOfMemoryException 
soon. I would like to undertand how can I discover why this happens 
and how can I fix it.


Best regards,
José Renato.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Mansour

I still need help in this, please!!

Mansour wrote:


Hi every body:
I 've been trying to get things working, however, I believe I need a 
little help in this.
I configured apache' Virtual host. and installed tomcat and mod_jk 
succefully. Now I am trying to run apache for static contents, and 
tomcat for *.jsp , therefore, I have put a test page hello.jsp in 
the root of my virtual host
When I point my browser to http://virtualhost I get the static pages 
I'm expecting.
same thing with http://virtualhost:8080, I get what I am expecting 
(tomcat welcome page).  No problem up tp here.


Now when I try to access http://virtualhost/hello.jsp, I get error 
404. So I copied hello.jsp to $CATALINA/webapps/ROOT and tried again 
http://virtualhost/hello.jsp and It worked. Now how do i get around 
this??  I need to modify the webapp/Root to reflect the content of the 
virtual host directory. right??

If yes. what file and modification I have to add to get this working ??
Thank you




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Mladen Turk

Mansour wrote:

I still need help in this, please!!



Nobody can help you unless you post some
configuration you are using.

The tip is to use JkUnMount *.jsp worker
for static content mime types.

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 working with Tomcat (via isapi)?

2006-08-28 Thread Timothy Collett

On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:

try the following instructions...

http://reynir.net/java/greinar/nr/52/ath

regards,
- -reynir


I tried that, but I'm not able to get the green arrow in the ISAPI  
Filters tab on IIS6.  I've tried with a variety of different  
combinations of jk versions, isapi_redirect.dll locations, and IIS6  
settings, but none have gotten me anywhere...


Do you know of any other configuration issues that can mess with it?

Thanks.

Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat, accents and form fields

2006-08-28 Thread Markus Schönhaber
Andrea Bondi wrote:
 The problem is that when I submit a form, accented letters I insert into
 text fields aren't managed well. For example, if I have a form field
 named saySomething, if I write into the field cioè I receive cioè
 from ${param.saySomething}.

Make sure the browser submits the form data in the same encoding Tomcat 
expects it to be.
Look at the accept-charset attribute of the HTML form-element. And, if 
you're transmitting the form data via GET, look at the URIEncoding attribute 
of Tomcat's Connector element:
http://tomcat.apache.org/tomcat-5.5-doc/config/http.html#Common%20Attributes

Regards
  mks

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Mladen Turk

Mansour wrote:



And I added to server.xml these lines

Host name=virtualhost appBase=/path/to/virtualhost
Context path= docBase=webapp1 debug=0/
/Host

the file mod_jk.conf is generated automatically:



You don't need that. Remove any autoconf generation
directives. You need only to map the *.jsp, right?



Now, pointing my browser to http://virtualhost/hello.jsp gives error 404.
What did I do wrong ?? and what other files I have to edit. Please I 
really need help in this??




I suppose you have your 'virtualhost' defined inside httpd.conf
as well.
Can you access http://virtualhost/index.html ?

Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread Jose Roberto Torres

Good day every one.
I am using the following:
*Linux Suse 10.1.
*Tomcat 5.0.28
*JDK 1.5
*MySql database

I am having problems making tomcat show the correct version of my 
application. I am working with an applet that uses servlets to connect 
to a MySql database. From the beginning I had no problems with it, but 
two days ago the tomcat started to display an older version of the applet.
I am calling the applet like this 192.168.1.80/prime/servlets to test 
it and now is showing the correct applet only in the application server, 
if i try to access the applet from another computer in the LAN it shows 
a mchh older version of the applet,
I have tried erasing my web browser cache, clearing the java classloader 
cache (Thank you Antonio Petrelli) and i have erased all the .class 
files and re-builded them to see if something changed.


I don´t know if Tomcat makes a copy of this files or  if there is a way 
to refresh the applets tomcat shows.


If there is anything else I am missing to make my problem clearer please 
let me know.


Jose Roberto Torres Sanchez


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread José Renato
Hi, try cleaning the work directory. And after this make sure you are 
really using the right application verion. Bye.


Jose Roberto Torres escreveu:

Good day every one.
I am using the following:
*Linux Suse 10.1.
*Tomcat 5.0.28
*JDK 1.5
*MySql database

I am having problems making tomcat show the correct version of my 
application. I am working with an applet that uses servlets to connect 
to a MySql database. From the beginning I had no problems with it, but 
two days ago the tomcat started to display an older version of the 
applet.
I am calling the applet like this 192.168.1.80/prime/servlets to 
test it and now is showing the correct applet only in the application 
server, if i try to access the applet from another computer in the LAN 
it shows a mchh older version of the applet,
I have tried erasing my web browser cache, clearing the java 
classloader cache (Thank you Antonio Petrelli) and i have erased all 
the .class files and re-builded them to see if something changed.


I don´t know if Tomcat makes a copy of this files or  if there is a 
way to refresh the applets tomcat shows.


If there is anything else I am missing to make my problem clearer 
please let me know.


Jose Roberto Torres Sanchez


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread Mansour
I am new to JSP but this issue has nothing to do with tomcat as I have 
gone through this with apache. The browser keeps a version of the 
applet. I think you have to clear the java cache to fix this. However a 
work around, was to put the date and time after the javaclass. for 
example: applet  code=MyClass.class  archive=myJar.jar?v=theDate


I am not sure how to automate this in JSP, but that's what I did in PHP, 
and it works great.


applet code=MyClass.class  archive=MyClass.class?v=?php print 
date('U') ? width=xx height=xx


This will force the browser to obtain the latest version of the code 
every time. Maybe you can find out how to do the same in JSP.


I hope this helps.





Jose Roberto Torres wrote:


Good day every one.
I am using the following:
*Linux Suse 10.1.
*Tomcat 5.0.28
*JDK 1.5
*MySql database

I am having problems making tomcat show the correct version of my 
application. I am working with an applet that uses servlets to connect 
to a MySql database. From the beginning I had no problems with it, but 
two days ago the tomcat started to display an older version of the 
applet.
I am calling the applet like this 192.168.1.80/prime/servlets to 
test it and now is showing the correct applet only in the application 
server, if i try to access the applet from another computer in the LAN 
it shows a mchh older version of the applet,
I have tried erasing my web browser cache, clearing the java 
classloader cache (Thank you Antonio Petrelli) and i have erased all 
the .class files and re-builded them to see if something changed.


I don´t know if Tomcat makes a copy of this files or  if there is a 
way to refresh the applets tomcat shows.


If there is anything else I am missing to make my problem clearer 
please let me know.


Jose Roberto Torres Sanchez


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Eric Berry

From my understanding found here:

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

The Document Base (also known as the Context Root) directory for this
web application, or the pathname to the web application archive file
(if this web application is being executed directly from the WAR
file). You may specify an absolute pathname for this directory or WAR
file, or a pathname that is relative to the appBase directory of the
owning Host.

Since you've declared your host's documents to start in
/path/to/virtualhost, and you've said your default context (default
meaning there isn't a path specified - path=) starts in webapp1. I
would think that you're actually telling tomcat to locate jsps based
on this path /path/to/virtualhost/webapp1

If this is the case, then I think you should put you hello.jsp in
/path/to/virtualhost/webapp1. Someone please correct me if I'm wrong.

Eric

On 8/28/06, Mansour [EMAIL PROTECTED] wrote:

Mladen Turk wrote:

 Mansour wrote:


Now I removed these lines and deleted the auto created file
/etc/httpd/conf.d/mod_jk.conf


 And I added to server.xml these lines

 Host name=virtualhost appBase=/path/to/virtualhost
 Context path= docBase=webapp1 debug=0/
 /Host

 the file mod_jk.conf is generated automatically:


Yes I can access any file in the root directory of my virtual host

 You don't need that. Remove any autoconf generation
 directives. You need only to map the *.jsp, right?


 Now, pointing my browser to http://virtualhost/hello.jsp gives error
 404.
 What did I do wrong ?? and what other files I have to edit. Please I
 really need help in this??


 I suppose you have your 'virtualhost' defined inside httpd.conf
 as well.
 Can you access http://virtualhost/index.html ?

 Regards,
 Mladen.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Learn from the past. Live in the present. Plan for the future.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Mansour

I just tried what you suggested and it didn't work.
I replcaed the modified version of server.xml with the original as 
Mladen suggested to deleted the newly added lines.

Now the server.xml is the default one that came with tomcat.
What changes you want me to try ??



Eric Berry wrote:


From my understanding found here:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

The Document Base (also known as the Context Root) directory for this
web application, or the pathname to the web application archive file
(if this web application is being executed directly from the WAR
file). You may specify an absolute pathname for this directory or WAR
file, or a pathname that is relative to the appBase directory of the
owning Host.

Since you've declared your host's documents to start in
/path/to/virtualhost, and you've said your default context (default
meaning there isn't a path specified - path=) starts in webapp1. I
would think that you're actually telling tomcat to locate jsps based
on this path /path/to/virtualhost/webapp1

If this is the case, then I think you should put you hello.jsp in
/path/to/virtualhost/webapp1. Someone please correct me if I'm wrong.

Eric

On 8/28/06, Mansour [EMAIL PROTECTED] wrote:



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread Jose Roberto Torres
Thnak you Renato that worked, I only have a final question, do I have to 
be doing this over and over so the final version stays?

I am still in development and testing...

Jose Roberto Torres

José Renato wrote:
Hi, try cleaning the work directory. And after this make sure you 
are really using the right application verion. Bye.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread José Renato
Actually I just do this sometimes when this behavior happens. In a 
production environment I believe that this is not necessary due the fact 
that once your program is deployed the version will not more change 
frequently. I don´t know what IDE are you using but I suggest you using 
ANT to make this sort of stuff automatically. Bye.


Jose Roberto Torres escreveu:
Thnak you Renato that worked, I only have a final question, do I have 
to be doing this over and over so the final version stays?

I am still in development and testing...

Jose Roberto Torres

José Renato wrote:
Hi, try cleaning the work directory. And after this make sure you 
are really using the right application verion. Bye.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wrapper cannot find servlet class

2006-08-28 Thread Deepan Chakravarthy
Hello Everyone,
  I am a newbie to tomcat. I had deployed a war file in tomcat. When i
start tomcat i get the following errors.  To give you more details. I am
using gridsphere portlet container. I am deploying a portlet in
gridsphere using tomcat. Please look below for error details.
I guess the problem is with web.xml. I had also attached web.xml,
portlet.xml, layout.xml in the bottom.
Thanks
Deepan Chakravarthy N
www.codeshepherd.com 


Caused by:
javax.servlet.ServletException: Wrapper cannot find servlet class
org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet or a class it
depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1042)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.include(SportletDispatcher.java:287)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.init(SportletDispatcher.java:72)
at
org.gridlab.gridsphere.portletcontainer.PortletInvoker.initPortletWebApp(PortletInvoker.java:385)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initPortletWebApplication(PortletManager.java:275)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initAllPortletWebApplications(PortletManager.java:258)
at
org.gridlab.gridsphere.filters.GridSphereFilter.doFilter(GridSphereFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595





---
--
portlet.xml

?xml version=1.0 encoding=UTF-8?
portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 version=1.0
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
!-- place portlet description here --
description xml:lang=enThe Classic Hello World
example/description
!-- place unique portlet name here --
portlet-nameHelloPortlet/portlet-name
display-name xml:lang=enHello World/display-name
!-- place your portlet class name here --

portlet-classorg.gridsphere.gsexample.HelloWorld.portlets/portlet-class
expiration-cache60/expiration-cache
!-- place supported modes here --
supports
mime-typetext/html/mime-type
portlet-modeedit/portlet-mode
portlet-modehelp/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleHello World/title
short-titleHello World/short-title
keywordshello/keywords
/portlet-info
!-- place portlet preferences here --
/portlet
custom-portlet-mode
description xml:lang=enPre-defined custom portlet mode
CONFIGURE/description
portlet-modeCONFIGURE/portlet-mode
/custom-portlet-mode
user-attribute
description xml:lang=enUser Name/description
nameuser.name/name
/user-attribute
user-attribute
description xml:lang=enUser Id/description
nameuser.id/name
/user-attribute
user-attribute
description xml:lang=enUser Full Name/description

Re: IIS 6.0 working with Tomcat (via isapi)?

2006-08-28 Thread Reynir Hubner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello,

This configuration works, tried and tested many times
(http://reynir.net/java/greinar/nr/52/ath)

If it does not work for you, you are either not following the
instructions or your .dll is corrupt.

You just have to have the registry-entries correct (pointing to the
correct files) to get the green arrow, and then in IIS6 you also have to
 enable the Web Services Extensions...

hope it helps
- - reynir



Timothy Collett wrote:
 On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:
 
 try the following instructions...

 http://reynir.net/java/greinar/nr/52/ath

 regards,
 - -reynir
 
 
 I tried that, but I'm not able to get the green arrow in the ISAPI 
 Filters tab on IIS6.  I've tried with a variety of different 
 combinations of jk versions, isapi_redirect.dll locations, and IIS6 
 settings, but none have gotten me anywhere...
 
 Do you know of any other configuration issues that can mess with it?
 
 Thanks.
 
 Timothy Collett
 
 -- 
 
 The Tao that is seen
 Is not the true Tao, until
 You bring fresh toner.
 ~haiku~
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE81us19KgIQihNwgRAjIFAKDNWPhasyxbA5AkVMHyYcDD7kYLSwCgibhf
mDe7Py65va9d+2x0CwSIzig=
=C1qT
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Wrapper cannot find servlet class

2006-08-28 Thread Deepan Chakravarthy
Hello Everyone,
  I am a newbie to tomcat. I had deployed a war file in tomcat. When i
start tomcat i get the following errors.  To give you more details. I am
using gridsphere portlet container. I am deploying a portlet in
gridsphere using tomcat. Please look below for error details.
I guess the problem is with web.xml. I had also attached web.xml,
portlet.xml, layout.xml in the bottom.
Thanks
Deepan Chakravarthy N
www.codeshepherd.com 


Caused by:
javax.servlet.ServletException: Wrapper cannot find servlet class
org.gridlab.gridsphere.provider.portlet.jsr.PortletServlet or a class it
depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1042)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:641)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.include(SportletDispatcher.java:287)
at
org.gridlab.gridsphere.portletcontainer.impl.SportletDispatcher.init(SportletDispatcher.java:72)
at
org.gridlab.gridsphere.portletcontainer.PortletInvoker.initPortletWebApp(PortletInvoker.java:385)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initPortletWebApplication(PortletManager.java:275)
at
org.gridlab.gridsphere.services.core.registry.impl.PortletManager.initAllPortletWebApplications(PortletManager.java:258)
at
org.gridlab.gridsphere.filters.GridSphereFilter.doFilter(GridSphereFilter.java:67)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol
$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595





---
--
portlet.xml

?xml version=1.0 encoding=UTF-8?
portlet-app
xmlns=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
 version=1.0
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

xsi:schemaLocation=http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd;
portlet
!-- place portlet description here --
description xml:lang=enThe Classic Hello World
example/description
!-- place unique portlet name here --
portlet-nameHelloPortlet/portlet-name
display-name xml:lang=enHello World/display-name
!-- place your portlet class name here --

portlet-classorg.gridsphere.gsexample.portlets.HelloWorld/portlet-class
expiration-cache60/expiration-cache
!-- place supported modes here --
supports
mime-typetext/html/mime-type
portlet-modeedit/portlet-mode
portlet-modehelp/portlet-mode
/supports
supported-localeen/supported-locale
portlet-info
titleHello World/title
short-titleHello World/short-title
keywordshello/keywords
/portlet-info
!-- place portlet preferences here --
/portlet
custom-portlet-mode
description xml:lang=enPre-defined custom portlet mode
CONFIGURE/description
portlet-modeCONFIGURE/portlet-mode
/custom-portlet-mode
user-attribute
description xml:lang=enUser Name/description
nameuser.name/name
/user-attribute
user-attribute
description xml:lang=enUser Id/description
nameuser.id/name
/user-attribute
user-attribute
description xml:lang=enUser Full Name/description

Re: configuring mod_jk - can any one help, please ??

2006-08-28 Thread Eric Berry

I have a setup on a dev machine that is similiar to what you are
trying. Here's how I have mine setup.

---httpd.conf
LoadModule  jk_module modules/mod_jk.so
JkWorkersFile   /opt/apps/tomcat/conf/workers.properties
JkLogFile   /opt/apps/tomcat/logs/mod_jk.log
JkLogLevel  info
JkLogStampFormat[%a %b %d %H:%M:%S %Y] 

VirtualHost *:80
   DocumentRoot /opt/projects/virtualhost/web
   ServerName virtualhost
   JkMount /*.jsp worker1
   JkMount /*.do worker1
/VirtualHost

---server.xml
Host appBase=/opt/projects/virtualhost/web
   name=virtualhost
   Context path= docBase=/opt/projects/virtualhost/web /
/Host

This is just one way to do it, I know there are others. I urge you to
read up some more on the configuration settings.

If you're going to have more than one virtualhost per machine, you'll
most likely want to have multiple instances of tomcat running - check
the RUNNING.txt that comes with your install for more information
regarding this.

Also, check the recent discussions on this mailing list as I know
there was a thread within the last few weeks discussing this type of
configuration.
http://tomcat.apache.org/lists.html
http://marc.theaimsgroup.com/?l=tomcat-user (searchable)

Eric


On 8/28/06, Mansour [EMAIL PROTECTED] wrote:

I just tried what you suggested and it didn't work.
I replcaed the modified version of server.xml with the original as
Mladen suggested to deleted the newly added lines.
Now the server.xml is the default one that came with tomcat.
What changes you want me to try ??



Eric Berry wrote:

 From my understanding found here:
 http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 The Document Base (also known as the Context Root) directory for this
 web application, or the pathname to the web application archive file
 (if this web application is being executed directly from the WAR
 file). You may specify an absolute pathname for this directory or WAR
 file, or a pathname that is relative to the appBase directory of the
 owning Host.

 Since you've declared your host's documents to start in
 /path/to/virtualhost, and you've said your default context (default
 meaning there isn't a path specified - path=) starts in webapp1. I
 would think that you're actually telling tomcat to locate jsps based
 on this path /path/to/virtualhost/webapp1

 If this is the case, then I think you should put you hello.jsp in
 /path/to/virtualhost/webapp1. Someone please correct me if I'm wrong.

 Eric

 On 8/28/06, Mansour [EMAIL PROTECTED] wrote:


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Learn from the past. Live in the present. Plan for the future.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-08-28 Thread Leo Donahue - PLANDEVX
Try this support article.  May not be what you're looking for, but it
does setup Tomcat and IIS using a mod_jk you download.


Leo D

-Original Message-
From: Timothy Collett [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 11:19 AM
To: Tomcat Users List
Subject: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email
has different SMTP TO: and MIME TO: fields in the email addresses

On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:
 try the following instructions...

 http://reynir.net/java/greinar/nr/52/ath

 regards,
 - -reynir

I tried that, but I'm not able to get the green arrow in the ISAPI
Filters tab on IIS6.  I've tried with a variety of different
combinations of jk versions, isapi_redirect.dll locations, and IIS6
settings, but none have gotten me anywhere...

Do you know of any other configuration issues that can mess with it?

Thanks.

Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-08-28 Thread Leo Donahue - PLANDEVX
http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleS
howd=29051 


Leo Donahue
GIS Programmer/Analyst
Maricopa County Planning  Development
602-506-2474
602-372-3950 - fax

-Original Message-
From: Leo Donahue - PLANDEVX [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 28, 2006 3:35 PM
To: Tomcat Users List
Subject: RE: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? -
Email has different SMTP TO: and MIME TO: fields in the email addresses

Try this support article.  May not be what you're looking for, but it
does setup Tomcat and IIS using a mod_jk you download.


Leo D

-Original Message-
From: Timothy Collett [mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 11:19 AM
To: Tomcat Users List
Subject: [SPAM:] - Re: IIS 6.0 working with Tomcat (via isapi)? - Email
has different SMTP TO: and MIME TO: fields in the email addresses

On Aug 28, 2006, at 10:30 AM, Reynir Hubner wrote:
 try the following instructions...

 http://reynir.net/java/greinar/nr/52/ath

 regards,
 - -reynir

I tried that, but I'm not able to get the green arrow in the ISAPI
Filters tab on IIS6.  I've tried with a variety of different
combinations of jk versions, isapi_redirect.dll locations, and IIS6
settings, but none have gotten me anywhere...

Do you know of any other configuration issues that can mess with it?

Thanks.

Timothy Collett

--

The Tao that is seen
Is not the true Tao, until
You bring fresh toner.
~haiku~


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: IIS 6.0 working with Tomcat (via isapi)?

2006-08-28 Thread Timothy Collett

On Aug 28, 2006, at 5:10 PM, Reynir Hubner wrote:

Hash: SHA1

Hello,

This configuration works, tried and tested many times
(http://reynir.net/java/greinar/nr/52/ath)

If it does not work for you, you are either not following the
instructions or your .dll is corrupt.

You just have to have the registry-entries correct (pointing to the
correct files) to get the green arrow, and then in IIS6 you also  
have to

 enable the Web Services Extensions...


Well, pardon me, but I made very certain that everything was just as  
it was in your guide (except that your link to the 1.2.8  
isapi_redirect.dll is broken, so I used 1.2.6, which you say also  
works).  It did not work.  It may be that there are other factors  
affecting my setup that make it not work; I do not know.  All I can  
state with certainty is that I followed the instructions, and the  
ISAPI filter still didn't work.


Tomorrow I will try out Leo Donahue's support page, and see if that  
works...


Timothy Collett

--

Great spirits have always encountered violent opposition from  
mediocre minds.

-Albert Einstein


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk and Tomcat

2006-08-28 Thread Mark Thomas
Eugeny N Dzhurinsky wrote:
 On Mon, Aug 28, 2006 at 10:07:18AM -0400, David Smith wrote:
 What does the connector for port 8009 look like in your server.xml?  
 Does it specify protcol=AJP/1.3?
 
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0 connectionTimeout=0
 useURIValidationHack=false
 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 
 it's tomcat 4.1.xx

If it is 4.1.32 then there is a bug that will cause AJP connectors
start up as HTTP. The workaround, good only for 4.1.32, is to use
protocolHandler rather than protocolHandlerClassName.

HTH,

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using tomcat auto configure

2006-08-28 Thread Jim Weir
I can generate a mod_jk.conf with the folllowing in my server.xml.  The 
problem is it's a blank file..


   Engine name=Catalina defaultHost=www.mysite.com
	Listener className=org.apache.jk.config.ApacheConfig   
modJk=/usr/local/apache2/modules/mod_jk.so

  jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
  jkWorker = /usr/local/apache2/conf/workers2.properties
  modJk = /usr/local/apache2/modules/mod_jk.so
  /
.
.
.
Anybody?

Thanks,
Jim

_
Search from any web page with powerful protection. Get the FREE Windows Live 
Toolbar Today!   http://get.live.com/toolbar/overview



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.17 IIS 6.0 on separate physical se rvers – looking for assistance with SSL ( JSSE)

2006-08-28 Thread Edward Julian
Currently I have IIS 6.0 (on Windows 2003) running the redirector plug-in which 
is directing Tomcat requests to a separate physical server running Tomcat 
5.5.17 on Windows 2003.
 
Currently the redirector plug-in is successfully forwarding JSP requests (from 
configuring the workers.properties file) from the IIS server to the Tomcat 
server.
 
When a client browser connection makes a request through IIS, IIS serves the 
site URL correctly on HTTP or HTTPS BUT when IIS forwards requests (due to the 
filter configuration) to Tomcat currently via HTTPS (SSL) (JSSE) is not working.
 
The server running Tomcat has J2SDK 1.4.2_6 and JRE 1.5.0_07 installed and I 
pointed JSSE_HOME to the JRE 1.5.0_07 directory since its copy of jsse.jar is 
newer.
 
I have successfully added a certificate to the keystore (“certificate was added 
to keystore”).
 
I have edited the server.xml with connector settings:
Connector
port=8443 
maxThreads=150
minSpareThreads=25
maxSpareThreads=75 
enableLookups=true
disableUploadTimeout=true
acceptCount=100
debug=0
scheme=https
secure=true
clientAuth=false
sslProtocol=TLS
keystoreFile=D:\apps\Tomcat 5.5\conf\tomcat.keystore
keystoreType=JKS
keystorePass=mypassword
/Connector
 
When I attempt the following URLS to test SSL, I receive the following errors.
 
http://localhost/secure - I receive a 404
https://localhost:8443 – page cannot be displayed
 
What else can I do to verify all the JSSE components are all present and 
working?
 
Can anyone put me back on the path to encryption?  I must figure out how to 
have IIS forward SSL/HTTPS requests to Tomcat and have Tomcat serve the 
requests via SSL/HTTPS.
 
Any help is much appreciated.
 
Edward

Shared session with clustering (SSO)

2006-08-28 Thread Paulo Cheque

Hello, I am with a big problem! I have two applications and I want to use
Single Sign-ON... What is the best approach?

Is it possible? Share session with clustering?
Is it possible clustering two differente applications in 2 different
machines?

Thanks in advance
Paulo


Re: Shared session with clustering (SSO)

2006-08-28 Thread Paulo Cheque

Hello, I am with a big problem! I have two applications and I want to
use Single Sign-ON... What is the best approach?

Is it possible? Share session with clustering?
Is it possible clustering two differente applications in 2 different machines?

Thanks in advance

Paulo

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ssl on tomcat

2006-08-28 Thread TomcatED

Any luck finding the answer?  I'm having the same problem...


Jack , Zhan Hua Ping wrote:
 
 Hi,
 buddy,
 
 Sorry to bother you.
 
 You said that you can use ssl on tomcat.
 However, for me, it doesn't work.
 
 I set http on 80 or 8080, doesn't matter.
 then I uncommented the ssl connector, and i generate the self-signed 
 certificate in default keystore with keytool.
 
 then
 https://localhost/ no connection.
 https://localhost:8443/ yes, get connected, but for long time no response.
   use openssl test it, I found that no handshake.
 http://localhost:8443/ returns the result same as http://localhost/
 
 What did you do to make it work?
 Thank you for your time to read this  trying to help me!
 
 [EMAIL PROTECTED]
 
 _
 MSN® Calendar keeps you organized and takes the effort out of scheduling 
 get-togethers. 
 http://join.msn.com/?pgmarket=en-capage=byoa/premxAPID=1994DI=1034SU=http://hotmail.com/encaHL=Market_MSNIS_Taglines
  
   Start enjoying all the benefits of MSN® Premium right now and get the 
 first two months FREE*.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/ssl-on-tomcat-tf826315.html#a6031782
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using tomcat auto configure

2006-08-28 Thread Bill Barker
Tomcat version?  Older versions didn't support ApacheConfig under Engine.

Jim Weir [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I can generate a mod_jk.conf with the folllowing in my server.xml.  The 
problem is it's a blank file..

Engine name=Catalina defaultHost=www.mysite.com
 Listener className=org.apache.jk.config.ApacheConfig 
 modJk=/usr/local/apache2/modules/mod_jk.so
   jkConfig = /usr/opt/tomcat/conf/auto/mod_jk.conf
   jkWorker = /usr/local/apache2/conf/workers2.properties
   modJk = /usr/local/apache2/modules/mod_jk.so
   /
 .
 .
 .
 Anybody?

 Thanks,
 Jim

 _
 Search from any web page with powerful protection. Get the FREE Windows 
 Live Toolbar Today!   http://get.live.com/toolbar/overview


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: configuring Tomcat for protocols other than http/s

2006-08-28 Thread Bill Barker
Viraj Turakhia [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi all,
 I am starting to work with Tomcat's code and have no clue where to start
 from.
 Any pointers would be very very helpful.

Well, one method is to implement your own ProtocolHandler ( 
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/ProtocolHandler.html).
 
This is responsible for setting up the Request and Response objects, 
threading, and handling sending and receiving data on the protocol.  It then 
hands off the Request and Response to the service method of the Adapter 
(http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/Adapter.html)
 
that Tomcat passed to it.  The MemoryProtocolHandler 
(http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/memory/MemoryProtocolHandler.html)
 
is the easiest if you want an example.  You'll probably also want to 
implement ActionHook 
(http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/coyote/ActionHook.html)
 
for best results.  You tell Tomcat to use yours via:
  Connector protocol=com.myfirm.mypackage.MyProtocolHandler  /


 To start with, I would like to know whether Tomcat is configurable to work
 with protocols other than http/https?

Well, it comes with AJP/1.3 support ;-).  However, the servlet container 
neutral to the protocol (that's the job of the ProtocolHandler :).

 I want to configure Tomcat in such a way that it gives me RAW data that is
 posted on given port.
 Please let me know which server element is to be configured (and where..
 server.xml?) such that forming request/response from RAW data is possible
 for me.
 This RAW data is not necessarily a http/https specific data. It could be
 specific to any other protocol like ftp://.

 Waiting for reply, thanks.

 -- 
 The first right of human is the right of EGO.
 --
 http://www.xperienceexperience.blogspot.com
 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.0.28 is showing an old applets

2006-08-28 Thread Stephan van Loendersloot
This solution will not work, probably it was Mansour's unintentional 
typo. I think he meant to say:


applet code=MyClass.class  archive=MyArchive.jar?=?php print 
date('U') ? width=xx height=xx


This might work, haven't tried it myself, but I do know that does when 
it comes to caching of images.


Anyway, I recognise the problem of the OP when I was still using classic 
ASP or PHP (a long time ago ;-) ), but since this is a Java/JSP related 
issue, the above solution may not make any sense to the people reading 
this newsgroup.


The recommended way of including embedded objects, like JAR's or Flash 
movies, has always been a pain because of the way different browsers 
interpret these things (EMBED or OBJECT... etc..).


The JSP specification has a nice way of including JAR's (jsp:plugin... 
/), which tries to determine how the requesting browser likes to 
include an embedded object. However, you're not allowed to use variables 
to specify the name of the JAR with this built-in function.


Nowadays, it even becomes harder because of the patent-violation that 
Microsoft has with EOLAS, regarding the way-of-loading-plug-ins in 
Internet Explorer. It requires a visitor to click on an embedded object 
to active it before use.


Microsoft's preferred solution is to load the embedded object through 
scripting, which indeed solves the problems of loading embedded object 
in Internet Explorer 
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/overview/activating_activex.asp.



(Please note, that I do not endorse Microsoft in ANY way, the policy of 
my company is that we make sure that our applications work and look the 
same in IE (Windows), Firefox (Multi-platform), and Konqueror (Linux) at 
least).


This still doesn't solve the solve the problem of the OP, but there are 
ways to do this...


My solution back in the days of using Classic ASP or PHP was to generate 
a JAR with the name it intended to have (i.e. 
'C:\internet\www.mydomain.com\securedapplet.jar') in a directory which 
wasn't accessible by the web browser. When the page that was responsible 
for delivering the JAR to the browser was requested, that page would 
create a unique random name for that JAR for that request, and copy the 
original file to a directory accessible by the webserver (i.e. 
'C:\internet\www.mydomain.com\www\applets\mysecuredapplet1234567.jar' 
and serve that file, for each request. Of course, before each request, 
it would *try* to delete every other file in that directory before the 
copy. This worked, because if an existing 
'C:\internet\www.mydomain.com\www\applets\uniquename'.jar that existed, 
but was in use by another request by a random user could not be deleted, 
so it was skipped but deleted the next time a request was made.


This also meant, that I didn't have to ask my clients to clear their 
plug-in cache or browser-cache every time I made an update to the JAR.


Now, how do we create a solution for the problem of renaming the JAR 
during the copy while still using it in the standard JSP solution?


I have a few solutions to this, though I'd rather see that the JSP 
specification would allow for having variable EL expressions for the JAR 
and other's in the jsp:plugin... / tag.


My solutions are something for tomorrow, or the day after, since it's my 
birthday today and though I have two days off, I've been slightly 
celebrating. These few glasses of wine make me become unstable.


I hope I didn't make it too confusing... the proposed solutions 
shouldn't be too hard. Let me now if anyone's interested and I'll reply 
to this list soon.



Kind regards,

Stephan van Loendersloot.


I am new to JSP but this issue has nothing to do with tomcat as I have 
gone through this with apache. The browser keeps a version of the 
applet. I think you have to clear the java cache to fix this. However 
a work around, was to put the date and time after the javaclass. for 
example: applet  code=MyClass.class  archive=myJar.jar?v=theDate


I am not sure how to automate this in JSP, but that's what I did in 
PHP, and it works great.


applet code=MyClass.class  archive=MyClass.class?v=?php print 
date('U') ? width=xx height=xx


This will force the browser to obtain the latest version of the code 
every time. Maybe you can find out how to do the same in JSP.


I hope this helps.





Jose Roberto Torres wrote:


Good day every one.
I am using the following:
*Linux Suse 10.1.
*Tomcat 5.0.28
*JDK 1.5
*MySql database

I am having problems making tomcat show the correct version of my 
application. I am working with an applet that uses servlets to 
connect to a MySql database. From the beginning I had no problems 
with it, but two days ago the tomcat started to display an older 
version of the applet.
I am calling the applet like this 192.168.1.80/prime/servlets to 
test it and now is showing the correct applet only in the application 
server, if i try to access the applet from another computer in the 
LAN it 

Re: Can Tomcat expose original HTTP request?

2006-08-28 Thread Santosh Puranshettiwar

A sniffer may help in that matter.
I used Ethreal. Its a pain to use it on windows since you cannot catch 
the packets on the loopback interface.


bill cao wrote:

Thanks, I looked RequestDumperValve, seems to me that
it logs request url
and other info, but you can not retrieve the raw http
request.


- Original Message - 
From: Santosh Puranshettiwar [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, August 25, 2006 1:04 AM
Subject: Re: Can Tomcat expose original HTTP request?


  

Checkout the RequestDumperValve. It should help.

bill cao wrote:


Hi there, see if anyone knows how to do this.
 When a http request is sent to Tomcat, Tomcat
  

manufactures a
  

HTTPServletRequest object based on the raw http
  

request.
  

HTTPServletRequest has easy method to retrieve the
  

request information,
  

but I want to see the original raw request. Is
  

there a way to have Tomcat
  

expose or return the orginal http request, i.e.
 GET /server/path/file-name.jsp HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
  

Windows NT 5.1; SV1; .NET
  

CLR 1.1.4322)
Host: localhost
Connection: Keep-Alive
Cookie: JSESSIONID=2e307e3cd554$02Ub$1A


 -
Stay in the know. Pulse on the new Yahoo.com. 
  

Check it out.
  




-
  

To start a new topic, e-mail:


users@tomcat.apache.org
  

To unsubscribe, e-mail:


[EMAIL PROTECTED]
  

For additional commands, e-mail:


[EMAIL PROTECTED]
  




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]