encoding error

2005-12-12 Thread Mª Carmen Gómez Romero
Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.


Re: Session cookies on Linux

2005-12-12 Thread Peter Rossbach
a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to scan 
you traffic.
When tomcat not see a JSESSIONID cookie at the request the can't 
associate a session.


b) StandardSession Manager store all Session at shutdown app at 
work/Catalina///SESSIONS.ser

All dirs must me writeable for your tomcat user
.
Peter

Jan Behrens schrieb:


Hi list,

I have a problem with session cookies on a Linux server. Both Tomcat 
instances running on the machine don't seem to be able to store session 
data in cookies. They otherwise work just fine, just no cookies. I have 
obviously checked all browser settings as well as made sure that all 
webapps in question have the cookie flag turned on. However, Tomcat is 
still not setting any cookies... 


My set-up:
- Suse Linux server (kernel 2.6.8-24.18-smp)
- Multiprocessor machine with 4 GB memory
- Sun VM 1.4.2_08-b03
- 2 Tomcat 5.0.28 instances

Maybe this is a problem with fileset permission's? Tomcat runs as user 
tomcat and I think I checked each dir Tomcat needs to write into but I am 
not sure where cookies are normally stored in. Is this the temp dir or 
somewhere else?


I would be very grateful for any help or suggestions as to what to do to 
get this fixed.


TIA, Jan


Jan Behrens
OFFIS
FuE-Bereich Betriebliches Informationsmanagement
Escherweg 2  -  26121 Oldenburg  -  Germany
Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de

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




 







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



Broken pipe error

2005-12-12 Thread Mª Carmen Gómez Romero
Hi,

I have this message in tomcat log. Why do I have this message?What is the
meaning?

Thank you.

02-dic-2005 12:46:33 org.apache.jk.server.JkCoyoteHandler action

GRAVE: Error in action code

java.net.SocketException: Broken pipe

at java.net.SocketOutputStream.socketWrite0(Native Method)

at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:457)

at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:654)

at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:472)

at org.apache.coyote.Response.action(Response.java:226)

at org.apache.coyote.Response.finish(Response.java:348)

at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:329)

at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:395)

at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)

at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java
:615)

at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:534)


RE: Tomcat 4.06, JK ISAPI redirector plugin 1.2.15.0, IIS 6.0 on Wind ows Server 2003 How To

2005-12-12 Thread Sue Roe
Did you get any response to your question I wonder? We are looking at
the same issues

 

-Original Message-
From: Weegar, Jim [mailto:[EMAIL PROTECTED] 
Sent: 01 December 2005 14:59
To: users@tomcat.apache.org
Subject: Tomcat 4.06, JK ISAPI redirector plugin 1.2.15.0, IIS 6.0 on
Wind ows Server 2003 How To

 

Can anyone point me to some documentation that is specific to getting
the Jakarta ISAPI plugin to work with IIS 6.0 on Windows Server 2003?

This all seems to work properly on Windows XP (IIS 5.0), but I can't
seem to get it to work on Windows Server 2003 (IIS 6.0).

Thank you.

Jim Weegar
McKESSON
Shared Technology Group
5995 Windward Parkway
Alpharetta, GA 30005
office: 404-338-3712

fax: 404-338-5111
email: [EMAIL PROTECTED]  

Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient and may contain
confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

<> 




***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW



RE: Help needed to set tomcat5.0.28 and IIS 5

2005-12-12 Thread Sue Roe
David

Did you get any response to your question? I am trying to do the same
thing here.

Thank you

-Original Message-
From: David Chen [mailto:[EMAIL PROTECTED] 
Sent: 03 December 2005 01:25
To: users@tomcat.apache.org
Subject: Help needed to set tomcat5.0.28 and IIS 5

Hi, there:
 
I tried to set my tomcat 5.0.28 working with IIS 5 in my windows 2000
system, followed exactly steps listed in the document, unfortunately no
luck
so far. Could anyone here help me through it.
My question is:
should I change my server.xml to configure 8009 port?
the current server.xml looks like:

checking internet, some one said to configure tomcat 4.1.x, I should
modify
server.xml as:

 
So, again should I change server.xml in tomcat5.0.28 as well? (by the
way,
where is that org.apache.ajp.tomcat4.Ajp13Connector class?)
Also checked document in TomCat, it said for IIS5, IIS6, it requires
some
extra steps, however the link for those steps are not available any
longer,
does anyone knows what extra steps to configure IIS5?
And here is my workers.properties:
worker.list=testWorker
worker.testWorker.type=ajp13
worker.testWorker.host=locahost
worker.testWorker.port=8009
worker.testWorker.lbfactor=1
worker.testWorker.cachesize=10
worker.testWorker.cache_timeout=600
worker.testWorker.socket_keepalive=1
worker.testWorker.socket_timeout=60
 
Checked log file, it gives me error:
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_ajp_common.c (1815):
can't
resolve tomcat address localhost
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_ajp_common.c (1818):
invalid host and port locahost 8009
[Fri Dec 02 17:19:02 2005] [1260:1744] [debug] jk_ajp_common.c (2012):
up to
0 endpoints to close
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_worker.c (158):
validate
failed for testWorker
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_worker.c (256): failed
to
create worker testWorker
 
Thanks a lot for any comments or suggestions.
 
David
 



***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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



Error in the makefile generated for mod_jk on HP-UX unix!Here is the solution.

2005-12-12 Thread Prathibha, Bharathi

> Hi All,
>I found a small problem while building mod_jk 1.2.15 on HP-UX unix
> . There are errors in the makefiles that are being generated while
> configuring the module for use with Apache. And , binaries are also
> not available.I struggled a lot for generating mod_jk.so on HP-UX. I
> couldn't find sufficient info on the net.So, thought of sharing this
> with u all!
> 
> Here I'll give u the steps for building the module :
> 
> 1. Download the latest release JK-1.2.15 from
> http://tomcat.apache.org/download-connectors.cgi
> 2.gunzip it.
>$gunzip jakarta-tomcat-connectors-1.2.15-src.tar.gz
> 3.untar
>$tar -xvf jakarta-tomcat-connectors-1.2.15-src.tar
> 4.cd jakarta-tomcat-connectors-1.2.15-src/jk/native
> 5.
>   $./configure --with-apxs=/your/apache/bin/apxs
> --prefix=/your/installation/directory
> 6.Required makefiles to do a make will be generated
> 7.if u  are generating the module for apache2.0
>   cd to apache-2.0
>   vi Makefile.in
>  
>search for 
> 
>   mod_jk.so: mod_jk.la
> $(LIBTOOL) --mode=install cp $< `pwd`/$@
> 
> Change $< to mod_jk.la 
>   
> and
>  vi Makefile
>   make the same change.
> 
> 8. now cd -- . Come back to
> jakarta-tomcat-connectors-1.2.15-src/jk/native
> 
>  vi Makefile
>   delete the lines at the end of makefile starting from 
>   
>  all:
>  
> and make
>   
> 9. U will get a warning asking u to run libtool cmd to clean
> 10.After running this u will get a msg saying required module
> mod_jk.so is created in ${APACHE_HOME}/modules
> 11. U don't find anything over there 
>   cd jakarta-tomcat-connectors-1.2.15-src/jk/native/apache-2.0
>   u'll find mod_jk.sl
>   rename it to mod_jk.so 
>put it in the modules directory of ur Apache server
> installation and proceed with the steps the comes with mod_jk.
> 
> Hope this helps,
> Prathibha.
> 
> 


Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
   Is it a good idea to specify this parameter in Tomcat startup?  
Where did you read that you have to do so?  Or who told you to do so?


   Regards,

   Seak

Mª Carmen Gómez Romero wrote:


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.

 




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



TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread Karthik


Hi

   I have sucessfully created a JDBC connection using DataSource and JNDI on
Tomcat5.x

   Is it necessary for create a Connection POOL using this DataSource based
Jdbc Connnection
   or will the DataSource itself provides the Connection POOL for managing
the JDBC connections
   on startup ,if so what needs to be done to increase the size of the
connection pool size.





with regards
Karthik


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



Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
 I can`connect to my database with via  servlet. The connection works well in 
PHP but not with servlet. I have  googled but no solution.
  
  this is my error page I got
  
  java.sql.SQLException: Data source rejected establishment of  connection,  
message from server: "Host 'localhost.localdomain' is  not allowed to connect 
to this MySQL server"
  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
  at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
  at com.mysql.jdbc.Connection.(Connection.java:452)
  at 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
  at java.sql.DriverManager.getConnection(DriverManager.java:525)
  at java.sql.DriverManager.getConnection(DriverManager.java:171)
  at Liep.doGet(Liep.java:30)
  ...
  ...
  Can anyone help or give me a pointer to a website
  
  Byfour
  


-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Antwort: Tomcat JDBC connection with Mysql

2005-12-12 Thread Jan Behrens
looks like your mysql user does not allow connections from the url of your 
tomcat. check whether access to mysql is granted to 'localhost' and (both 
entries!) '%'. the later should be used only for debugging however, better 
to include just the specific name of the tomcat hostname under named hosts 
in mysql.

afterwards don't forget to reload the user table in mysql and try again. 

HTH, jan

marju jalloh <[EMAIL PROTECTED]> schrieb am 12.12.2005 12:22:30:

>  I can`connect to my database with via  servlet. The connection 
> works well in PHP but not with servlet. I have  googled but no solution.
> 
>   this is my error page I got
> 
>   java.sql.SQLException: Data source rejected establishment of 
> connection,  message from server: "Host 'localhost.localdomain' is 
> not allowed to connect to this MySQL server"
>   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
>   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
>   at com.mysql.jdbc.Connection.(Connection.java:452)
>   at com.mysql.jdbc.NonRegisteringDriver.
> connect(NonRegisteringDriver.java:411)
>   at java.sql.DriverManager.getConnection(DriverManager.java:525)
>   at java.sql.DriverManager.getConnection(DriverManager.java:171)
>   at Liep.doGet(Liep.java:30)
>   ...
>   ...
>   Can anyone help or give me a pointer to a website
> 
>   Byfour
> 
> 
> 
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping 

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



Re: TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread ALEX HYDE
Hey,
  
  I think though I'm not 100%
  
  When you declare the datasource in web.xml (or is Server.xml?) it  creates a 
pool factory for you under the covers (I think using Jakarta  DBCP). When you 
use JNDI look-up it asks the factory for a pool. You  are then magically using 
a pool. You specify the pool details in the  declaration in web.xml.

  Gluck.
  
Karthik <[EMAIL PROTECTED]> wrote:  

Hi

   I have sucessfully created a JDBC connection using DataSource and JNDI on
Tomcat5.x

   Is it necessary for create a Connection POOL using this DataSource based
Jdbc Connnection
   or will the DataSource itself provides the Connection POOL for managing
the JDBC connections
   on startup ,if so what needs to be done to increase the size of the
connection pool size.





with regards
Karthik


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





-
  Play Santa's Celebrity Xmas Party, an exclusive game from Yahoo! 

encoding error

2005-12-12 Thread Mª Carmen Gómez Romero
I saw this in opencms configuration.

Where do I have to do this?

-- Forwarded message --
From: Seak, Teng-Fong <[EMAIL PROTECTED]>
Date: Dec 12, 2005 11:03 AM
Subject: Re: encoding error
To: Tomcat Users List 

   Is it a good idea to specify this parameter in Tomcat startup?
Where did you read that you have to do so?  Or who told you to do so?

   Regards,

   Seak

Mª Carmen Gómez Romero wrote:

>Hi,
>
>I have a server with Apache 2.0 + Tomcat 5.0
>
>I have a problem because sometimes seem the charset change. If I restart =
>
>the tomcat, the charset is correct other time.
>
>I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.
>
>what is it happening?
>
>Thank you.
>
>
>


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


RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
hI

tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO
THE ip HOST U ARE USING

TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL
acl PREVELIAGES AVALIABEL IN MYSQL DB

   USE A FRONT END LIKE MYSQL FRONT TO DO THIS



HOPE THIS HELPS.




WITH REGARS
kARTHIK



-Original Message-
From: marju jalloh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 4:53 PM
To: Tomcat Users List
Subject: Tomcat JDBC connection with Mysql


 I can`connect to my database with via  servlet. The connection works well
in PHP but not with servlet. I have  googled but no solution.

  this is my error page I got

  java.sql.SQLException: Data source rejected establishment of  connection,
message from server: "Host 'localhost.localdomain' is  not allowed to
connect to this MySQL server"
  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
  at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
  at com.mysql.jdbc.Connection.(Connection.java:452)
  at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
  at java.sql.DriverManager.getConnection(DriverManager.java:525)
  at java.sql.DriverManager.getConnection(DriverManager.java:171)
  at Liep.doGet(Liep.java:30)
  ...
  ...
  Can anyone help or give me a pointer to a website

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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



Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
   Nowhere!  Or more exactly, it depends on what you want to do, or 
what's wrong when it's not used.


Mª Carmen Gómez Romero wrote:


I saw this in opencms configuration.

Where do I have to do this?

-- Forwarded message --
From: Seak, Teng-Fong <[EMAIL PROTECTED]>
Date: Dec 12, 2005 11:03 AM
Subject: Re: encoding error
To: Tomcat Users List 

  Is it a good idea to specify this parameter in Tomcat startup?
Where did you read that you have to do so?  Or who told you to do so?

  Regards,

  Seak

Mª Carmen Gómez Romero wrote:

 


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.

   




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



Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Thanks for the input Peter. What I see now is even more confusing to me; 

- Tomcat sets a cookie containing a session id X
- On the request however, the URL gets rewritten using session id Y (and X 
!= Y)

All subsequent requests made are handled via URL rewriting using session 
id Y. I can see this behaviour both on my own app as well as on the admin 
app... I am at a loss as to what to do next :(

Any ideas? TIA, Jan

Peter Rossbach <[EMAIL PROTECTED]> schrieb am 12.12.2005 10:07:02:

> a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to scan 
> you traffic.
> When tomcat not see a JSESSIONID cookie at the request the can't 
> associate a session.
> 
> b) StandardSession Manager store all Session at shutdown app at 
> work/Catalina///SESSIONS.ser
>  All dirs must me writeable for your tomcat user
> .
> Peter
> 
> Jan Behrens schrieb:
> 
> >Hi list,
> >
> >I have a problem with session cookies on a Linux server. Both Tomcat 
> >instances running on the machine don't seem to be able to store session 

> >data in cookies. They otherwise work just fine, just no cookies. I have 

> >obviously checked all browser settings as well as made sure that all 
> >webapps in question have the cookie flag turned on. However, Tomcat is 
> >still not setting any cookies... 
> >
> >My set-up:
> >- Suse Linux server (kernel 2.6.8-24.18-smp)
> >- Multiprocessor machine with 4 GB memory
> >- Sun VM 1.4.2_08-b03
> >- 2 Tomcat 5.0.28 instances
> >
> >Maybe this is a problem with fileset permission's? Tomcat runs as user 
> >tomcat and I think I checked each dir Tomcat needs to write into but I 
am 
> >not sure where cookies are normally stored in. Is this the temp dir or 
> >somewhere else?
> >
> >I would be very grateful for any help or suggestions as to what to do 
to 
> >get this fixed.
> >
> >TIA, Jan
> >
> >
> >Jan Behrens
> >OFFIS
> >FuE-Bereich Betriebliches Informationsmanagement
> >Escherweg 2  -  26121 Oldenburg  -  Germany
> >Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> >E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > 
> >
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
But how to Grant permission to an ip host
  

Karthik <[EMAIL PROTECTED]> wrote:  hI

tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO
THE ip HOST U ARE USING

TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL
acl PREVELIAGES AVALIABEL IN MYSQL DB

   USE A FRONT END LIKE MYSQL FRONT TO DO THIS



HOPE THIS HELPS.




WITH REGARS
kARTHIK



-Original Message-
From: marju jalloh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 4:53 PM
To: Tomcat Users List
Subject: Tomcat JDBC connection with Mysql


 I can`connect to my database with via  servlet. The connection works well
in PHP but not with servlet. I have  googled but no solution.

  this is my error page I got

  java.sql.SQLException: Data source rejected establishment of  connection,
message from server: "Host 'localhost.localdomain' is  not allowed to
connect to this MySQL server"
  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
  at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
  at com.mysql.jdbc.Connection.(Connection.java:452)
  at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
  at java.sql.DriverManager.getConnection(DriverManager.java:525)
  at java.sql.DriverManager.getConnection(DriverManager.java:171)
  at Liep.doGet(Liep.java:30)
  ...
  ...
  Can anyone help or give me a pointer to a website

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

RE: encoding error

2005-12-12 Thread Navalpotro Herrero, Luis
Hi, I would use a filter to change the enconding in the response/request
objects... Tomcat includes an example of how to do this...

Regards

Luis

-Mensaje original-
De: Mª Carmen Gómez Romero [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de diciembre de 2005 12:47
Para: users@tomcat.apache.org
Asunto: encoding error


I saw this in opencms configuration.

Where do I have to do this?

-- Forwarded message --
From: Seak, Teng-Fong <[EMAIL PROTECTED]>
Date: Dec 12, 2005 11:03 AM
Subject: Re: encoding error
To: Tomcat Users List 

   Is it a good idea to specify this parameter in Tomcat startup? Where did
you read that you have to do so?  Or who told you to do so?

   Regards,

   Seak

Mª Carmen Gómez Romero wrote:

>Hi,
>
>I have a server with Apache 2.0 + Tomcat 5.0
>
>I have a problem because sometimes seem the charset change. If I 
>restart =
>
>the tomcat, the charset is correct other time.
>
>I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.
>
>what is it happening?
>
>Thank you.
>
>
>


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

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



Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Jan Behrens
look here --> 
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:54:

> But how to Grant permission to an ip host
> 
> 
> Karthik <[EMAIL PROTECTED]> wrote:  hI
> 
> tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE 
PERMISSION TO
> THE ip HOST U ARE USING
> 
> TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT 
ALL
> acl PREVELIAGES AVALIABEL IN MYSQL DB
> 
>USE A FRONT END LIKE MYSQL FRONT TO DO THIS
> 
> 
> 
> HOPE THIS HELPS.
> 
> 
> 
> 
> WITH REGARS
> kARTHIK
> 
> 
> 
> -Original Message-
> From: marju jalloh [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 12, 2005 4:53 PM
> To: Tomcat Users List
> Subject: Tomcat JDBC connection with Mysql
> 
> 
>  I can`connect to my database with via  servlet. The connection works 
well
> in PHP but not with servlet. I have  googled but no solution.
> 
>   this is my error page I got
> 
>   java.sql.SQLException: Data source rejected establishment of 
connection,
> message from server: "Host 'localhost.localdomain' is  not allowed to
> connect to this MySQL server"
>   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
>   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
>   at com.mysql.jdbc.Connection.(Connection.java:452)
>   at
> 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
>   at java.sql.DriverManager.getConnection(DriverManager.java:525)
>   at java.sql.DriverManager.getConnection(DriverManager.java:171)
>   at Liep.doGet(Liep.java:30)
>   ...
>   ...
>   Can anyone help or give me a pointer to a website
> 
>   Byfour
> 
> 
> 
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping 

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



RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
Hi

   If  u have installed mysql on u'r sys ,there are docs in html format
within giving u details about the "grant permission" to u ip's"


read and use them


hope this helps

with regards
Karthik


-Original Message-
From: marju jalloh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 6:04 PM
To: Tomcat Users List
Subject: RE: Tomcat JDBC connection with Mysql


But how to Grant permission to an ip host


Karthik <[EMAIL PROTECTED]> wrote:  hI

tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE PERMISSION TO
THE ip HOST U ARE USING

TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT ALL
acl PREVELIAGES AVALIABEL IN MYSQL DB

   USE A FRONT END LIKE MYSQL FRONT TO DO THIS



HOPE THIS HELPS.




WITH REGARS
kARTHIK



-Original Message-
From: marju jalloh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 4:53 PM
To: Tomcat Users List
Subject: Tomcat JDBC connection with Mysql


 I can`connect to my database with via  servlet. The connection works well
in PHP but not with servlet. I have  googled but no solution.

  this is my error page I got

  java.sql.SQLException: Data source rejected establishment of  connection,
message from server: "Host 'localhost.localdomain' is  not allowed to
connect to this MySQL server"
  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
  at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
  at com.mysql.jdbc.Connection.(Connection.java:452)
  at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
  at java.sql.DriverManager.getConnection(DriverManager.java:525)
  at java.sql.DriverManager.getConnection(DriverManager.java:171)
  at Liep.doGet(Liep.java:30)
  ...
  ...
  Can anyone help or give me a pointer to a website

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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



Re: encoding error

2005-12-12 Thread Seak, Teng-Fong
   I've given a similar answer before.  I'm not going to type it 
again.  It's here:

http://marc.theaimsgroup.com/?l=tomcat-user&m=113388805700777&w=2

   If there's anything not clear, don't hesitate.

Navalpotro Herrero, Luis wrote:


Hi, I would use a filter to change the enconding in the response/request
objects... Tomcat includes an example of how to do this...

Regards

Luis

-Mensaje original-
De: Mª Carmen Gómez Romero [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 12 de diciembre de 2005 12:47

Para: users@tomcat.apache.org
Asunto: encoding error


I saw this in opencms configuration.

Where do I have to do this?

-- Forwarded message --
From: Seak, Teng-Fong <[EMAIL PROTECTED]>
Date: Dec 12, 2005 11:03 AM
Subject: Re: encoding error
To: Tomcat Users List 

  Is it a good idea to specify this parameter in Tomcat startup? Where did
you read that you have to do so?  Or who told you to do so?

  Regards,

  Seak

Mª Carmen Gómez Romero wrote:

 


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I 
restart =


the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.



   




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



Re: Please respond to my query --- in need of help badly!!

2005-12-12 Thread David Smith
1) Begging is very unbecoming.  Have you tried googling for 'tomcat
java.net.ConnectException'?

2) On the surface, it would appear some of your webapp code is
attempting to connect to another service, but doesn't have the privilege
to do so.  If tomcat is running with a security manager, check it's
settings.

--David

Nehal Sangoi wrote:

>Hi,
>
>I am facing problems while opening lookups for another tomcat instance thru
>apache url of one tomcat instance. Here is, what i am doing --
>
>Logon to apache url of one tomcat instance.
>click on lookup -- that points to another tomcat instace app
>
>No errors in apache logs...
>Errors in first tomcat instance are as follows :
>
>java.net.ConnectException: Connection refused
>at java.net.PlainSocketImpl.socketConnect(Native Method)
>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>at
>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>at java.net.Socket.connect(Socket.java:507)
>at java.net.Socket.connect(Socket.java:457)
>at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
>at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
>at sun.net.www.http.HttpClient.(HttpClient.java:214)
>at sun.net.www.http.HttpClient.New(HttpClient.java:287)
>at sun.net.www.http.HttpClient.New(HttpClient.java:299)
>at
>sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnecti
>on.java:792)
>at
>sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j
>ava:744)
>at
>sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:6
>69)
>at
>sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
>.java:913)
>at
>com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:89)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:252)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:173)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:213)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va: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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
>at
>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
>at
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
>at
>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
>at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
>a:684)
>at java.lang.Thread.run(Thread.java:595)
>java.lang.NullPointerException
>at
>com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:132)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
>FilterChain.java:252)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
>ain.java:173)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
>va:213)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
>va: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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
>at
>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
>at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
>at
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
>at
>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
>at
>or

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
I went throug the permission and now I get another error
  
  java.sql.SQLException: Unable to connect to any  hosts due to exception:  
java.net.SocketException: java.net.ConnectException: Connection refused
  ** BEGIN NESTED EXCEPTION ** 
  java.net.SocketException
  MESSAGE: java.net.ConnectException: Connection refused
  STACKTRACE:
  java.net.SocketException: java.net.ConnectException: Connection refused

  I don`t know if the problem is with Tomcat of the Driver of mysql server
  This is my code
  
  ublic class Marju extends HttpServlet {
public void doGet(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException {
  response.setContentType("text/html");
  PrintWriter out = response.getWriter();
  
   Connection conn = null;
  
 try
 {
 String userName = "root";
 String password = "";
 String url = "jdbc:mysql://l/AdressBook";
 Class.forName("com.mysql.jdbc.Driver");
  conn = DriverManager.getConnection(url, userName,password);
  out.println("Database connection established");
 }
 catch (Exception e)
 {
  out.println("Can`t connect to database server!");
  e.printStackTrace();
 }
 finally
 {
 if (conn != null)
 {
 try
 {
  conn.close ();
  System.out.println ("Database connection terminated");

 }
  catch (Exception e) { /* ignore close errors */ }
 }
 }
 out.println("my first servlet");
  }
  }
  Any help would be appreciated
  
  Byfour
Jan Behrens <[EMAIL PROTECTED]> wrote:  look here --> 
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh  schrieb am 12.12.2005 13:33:54:

> But how to Grant permission to an ip host
> 
> 
> Karthik  wrote:  hI
> 
> tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE 
PERMISSION TO
> THE ip HOST U ARE USING
> 
> TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO FLUSH OUT 
ALL
> acl PREVELIAGES AVALIABEL IN MYSQL DB
> 
>USE A FRONT END LIKE MYSQL FRONT TO DO THIS
> 
> 
> 
> HOPE THIS HELPS.
> 
> 
> 
> 
> WITH REGARS
> kARTHIK
> 
> 
> 
> -Original Message-
> From: marju jalloh [mailto:[EMAIL PROTECTED]
> Sent: Monday, December 12, 2005 4:53 PM
> To: Tomcat Users List
> Subject: Tomcat JDBC connection with Mysql
> 
> 
>  I can`connect to my database with via  servlet. The connection works 
well
> in PHP but not with servlet. I have  googled but no solution.
> 
>   this is my error page I got
> 
>   java.sql.SQLException: Data source rejected establishment of 
connection,
> message from server: "Host 'localhost.localdomain' is  not allowed to
> connect to this MySQL server"
>   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
>   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
>   at com.mysql.jdbc.Connection.(Connection.java:452)
>   at
> 
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)
>   at java.sql.DriverManager.getConnection(DriverManager.java:525)
>   at java.sql.DriverManager.getConnection(DriverManager.java:171)
>   at Liep.doGet(Liep.java:30)
>   ...
>   ...
>   Can anyone help or give me a pointer to a website
> 
>   Byfour
> 
> 
> 
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping 

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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Sebastian Funk

Hi,

I got the same error a few weeks ago. in my case, the URL was wrong.  
you use:

jdbc:mysql://l/AdressBook
Are you sure it's right? Is 'l' really the right host? Did you tried  
it with the ip-address?


Best Regards,
Sebastian
On Dec 12, 2005, at 2:37 PM, marju jalloh wrote:


I went throug the permission and now I get another error

  java.sql.SQLException: Unable to connect to any  hosts due to  
exception:  java.net.SocketException:  
java.net.ConnectException: Connection refused

  ** BEGIN NESTED EXCEPTION **
  java.net.SocketException
  MESSAGE: java.net.ConnectException: Connection refused
  STACKTRACE:
  java.net.SocketException: java.net.ConnectException:  
Connection refused


  I don`t know if the problem is with Tomcat of the Driver of mysql  
server

  This is my code

  ublic class Marju extends HttpServlet {
public void doGet(HttpServletRequest request,
   HttpServletResponse response)
throws ServletException, IOException {
  response.setContentType("text/html");
  PrintWriter out = response.getWriter();

   Connection conn = null;

 try
 {
 String userName = "root";
 String password = "";
 String url = "jdbc:mysql://l/AdressBook";
 Class.forName("com.mysql.jdbc.Driver");
  conn = DriverManager.getConnection(url,  
userName,password);

  out.println("Database connection established");
 }
 catch (Exception e)
 {
  out.println("Can`t connect to database server!");
  e.printStackTrace();
 }
 finally
 {
 if (conn != null)
 {
 try
 {
  conn.close ();
  System.out.println ("Database connection  
terminated");


 }
  catch (Exception e) { /* ignore close errors  
*/ }

 }
 }
 out.println("my first servlet");
  }
  }
  Any help would be appreciated

  Byfour
Jan Behrens <[EMAIL PROTECTED]> wrote:  look here -->
http://dev.mysql.com/doc/refman/4.1/en/connection-access.html

rtfm ;)

marju jalloh  schrieb am 12.12.2005 13:33:54:


But how to Grant permission to an ip host


Karthik  wrote:  hI

tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE

PERMISSION TO

THE ip HOST U ARE USING

TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO  
FLUSH OUT

ALL

acl PREVELIAGES AVALIABEL IN MYSQL DB

   USE A FRONT END LIKE MYSQL FRONT TO DO THIS



HOPE THIS HELPS.




WITH REGARS
kARTHIK



-Original Message-
From: marju jalloh [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 4:53 PM
To: Tomcat Users List
Subject: Tomcat JDBC connection with Mysql


 I can`connect to my database with via  servlet. The connection works

well

in PHP but not with servlet. I have  googled but no solution.

  this is my error page I got

  java.sql.SQLException: Data source rejected establishment of

connection,

message from server: "Host 'localhost.localdomain' is  not allowed to
connect to this MySQL server"
  at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
  at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
  at com.mysql.jdbc.Connection.(Connection.java:452)
  at

com.mysql.jdbc.NonRegisteringDriver.connect 
(NonRegisteringDriver.java:411)

  at java.sql.DriverManager.getConnection(DriverManager.java:525)
  at java.sql.DriverManager.getConnection(DriverManager.java:171)
  at Liep.doGet(Liep.java:30)
  ...
  ...
  Can anyone help or give me a pointer to a website

  Byfour



-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping


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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping



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



Re: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread marju jalloh
yes it is right I tried it with localhost and also eith the IP address
  
  Thanks for your response
  
  Byfour

Sebastian Funk <[EMAIL PROTECTED]> wrote:  Hi,

I got the same error a few weeks ago. in my case, the URL was wrong.  
you use:
 jdbc:mysql://l/AdressBook
Are you sure it's right? Is 'l' really the right host? Did you tried  
it with the ip-address?

Best Regards,
Sebastian
On Dec 12, 2005, at 2:37 PM, marju jalloh wrote:

> I went throug the permission and now I get another error
>
>   java.sql.SQLException: Unable to connect to any  hosts due to  
> exception:  java.net.SocketException:  
> java.net.ConnectException: Connection refused
>   ** BEGIN NESTED EXCEPTION **
>   java.net.SocketException
>   MESSAGE: java.net.ConnectException: Connection refused
>   STACKTRACE:
>   java.net.SocketException: java.net.ConnectException:  
> Connection refused
>
>   I don`t know if the problem is with Tomcat of the Driver of mysql  
> server
>   This is my code
>
>   ublic class Marju extends HttpServlet {
> public void doGet(HttpServletRequest request,
>HttpServletResponse response)
> throws ServletException, IOException {
>   response.setContentType("text/html");
>   PrintWriter out = response.getWriter();
>
>Connection conn = null;
>
>  try
>  {
>  String userName = "root";
>  String password = "";
>  String url = "jdbc:mysql://l/AdressBook";
>  Class.forName("com.mysql.jdbc.Driver");
>   conn = DriverManager.getConnection(url,  
> userName,password);
>   out.println("Database connection established");
>  }
>  catch (Exception e)
>  {
>   out.println("Can`t connect to database server!");
>   e.printStackTrace();
>  }
>  finally
>  {
>  if (conn != null)
>  {
>  try
>  {
>   conn.close ();
>   System.out.println ("Database connection  
> terminated");
>
>  }
>   catch (Exception e) { /* ignore close errors  
> */ }
>  }
>  }
>  out.println("my first servlet");
>   }
>   }
>   Any help would be appreciated
>
>   Byfour
> Jan Behrens  wrote:  look here -->
> http://dev.mysql.com/doc/refman/4.1/en/connection-access.html
>
> rtfm ;)
>
> marju jalloh  schrieb am 12.12.2005 13:33:54:
>
>> But how to Grant permission to an ip host
>>
>>
>> Karthik  wrote:  hI
>>
>> tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE
> PERMISSION TO
>> THE ip HOST U ARE USING
>>
>> TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO  
>> FLUSH OUT
> ALL
>> acl PREVELIAGES AVALIABEL IN MYSQL DB
>>
>>USE A FRONT END LIKE MYSQL FRONT TO DO THIS
>>
>>
>>
>> HOPE THIS HELPS.
>>
>>
>>
>>
>> WITH REGARS
>> kARTHIK
>>
>>
>>
>> -Original Message-
>> From: marju jalloh [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 12, 2005 4:53 PM
>> To: Tomcat Users List
>> Subject: Tomcat JDBC connection with Mysql
>>
>>
>>  I can`connect to my database with via  servlet. The connection works
> well
>> in PHP but not with servlet. I have  googled but no solution.
>>
>>   this is my error page I got
>>
>>   java.sql.SQLException: Data source rejected establishment of
> connection,
>> message from server: "Host 'localhost.localdomain' is  not allowed to
>> connect to this MySQL server"
>>   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
>>   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
>>   at com.mysql.jdbc.Connection.(Connection.java:452)
>>   at
>>
> com.mysql.jdbc.NonRegisteringDriver.connect 
> (NonRegisteringDriver.java:411)
>>   at java.sql.DriverManager.getConnection(DriverManager.java:525)
>>   at java.sql.DriverManager.getConnection(DriverManager.java:171)
>>   at Liep.doGet(Liep.java:30)
>>   ...
>>   ...
>>   Can anyone help or give me a pointer to a website
>>
>>   Byfour
>>
>>
>>
>> -
>> Yahoo! Shopping
>>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> -
>> Yahoo! Shopping
>>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> -
> Yahoo! Shopping
>  Find Great Deals on Holiday Gifts at Yahoo! Shopping



RE: Antwort: RE: Tomcat JDBC connection with Mysql

2005-12-12 Thread Karthik
Hi


  Use the default mysql port 3306 instead of the '1'

  Print the log files and further get back to the form

  something like this needsto be used


jdbc:mysql://192.168.10.147:3306/?user=XYZ&password=anc&autoReconnect=tr
ue



 hope this helps with regards
Karthik

-Original Message-
From: Sebastian Funk [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 7:14 PM
To: Tomcat Users List
Subject: Re: Antwort: RE: Tomcat JDBC connection with Mysql


Hi,

I got the same error a few weeks ago. in my case, the URL was wrong.
you use:
jdbc:mysql://l/AdressBook
Are you sure it's right? Is 'l' really the right host? Did you tried
it with the ip-address?

Best Regards,
Sebastian
On Dec 12, 2005, at 2:37 PM, marju jalloh wrote:

> I went throug the permission and now I get another error
>
>   java.sql.SQLException: Unable to connect to any  hosts due to
> exception:  java.net.SocketException:
> java.net.ConnectException: Connection refused
>   ** BEGIN NESTED EXCEPTION **
>   java.net.SocketException
>   MESSAGE: java.net.ConnectException: Connection refused
>   STACKTRACE:
>   java.net.SocketException: java.net.ConnectException:
> Connection refused
>
>   I don`t know if the problem is with Tomcat of the Driver of mysql
> server
>   This is my code
>
>   ublic class Marju extends HttpServlet {
> public void doGet(HttpServletRequest request,
>HttpServletResponse response)
> throws ServletException, IOException {
>   response.setContentType("text/html");
>   PrintWriter out = response.getWriter();
>
>Connection conn = null;
>
>  try
>  {
>  String userName = "root";
>  String password = "";
>  String url = "jdbc:mysql://l/AdressBook";
>  Class.forName("com.mysql.jdbc.Driver");
>   conn = DriverManager.getConnection(url,
> userName,password);
>   out.println("Database connection established");
>  }
>  catch (Exception e)
>  {
>   out.println("Can`t connect to database server!");
>   e.printStackTrace();
>  }
>  finally
>  {
>  if (conn != null)
>  {
>  try
>  {
>   conn.close ();
>   System.out.println ("Database connection
> terminated");
>
>  }
>   catch (Exception e) { /* ignore close errors
> */ }
>  }
>  }
>  out.println("my first servlet");
>   }
>   }
>   Any help would be appreciated
>
>   Byfour
> Jan Behrens <[EMAIL PROTECTED]> wrote:  look here -->
> http://dev.mysql.com/doc/refman/4.1/en/connection-access.html
>
> rtfm ;)
>
> marju jalloh  schrieb am 12.12.2005 13:33:54:
>
>> But how to Grant permission to an ip host
>>
>>
>> Karthik  wrote:  hI
>>
>> tHE PROBLEMS IS PRESENT WITHIN THE mysql SERVER,U NEED TO GIVE
> PERMISSION TO
>> THE ip HOST U ARE USING
>>
>> TRY USING THE GRANT PERMISSION AND USE THE SAME,BUT U HAVE TO
>> FLUSH OUT
> ALL
>> acl PREVELIAGES AVALIABEL IN MYSQL DB
>>
>>USE A FRONT END LIKE MYSQL FRONT TO DO THIS
>>
>>
>>
>> HOPE THIS HELPS.
>>
>>
>>
>>
>> WITH REGARS
>> kARTHIK
>>
>>
>>
>> -Original Message-
>> From: marju jalloh [mailto:[EMAIL PROTECTED]
>> Sent: Monday, December 12, 2005 4:53 PM
>> To: Tomcat Users List
>> Subject: Tomcat JDBC connection with Mysql
>>
>>
>>  I can`connect to my database with via  servlet. The connection works
> well
>> in PHP but not with servlet. I have  googled but no solution.
>>
>>   this is my error page I got
>>
>>   java.sql.SQLException: Data source rejected establishment of
> connection,
>> message from server: "Host 'localhost.localdomain' is  not allowed to
>> connect to this MySQL server"
>>   at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:650)
>>   at com.mysql.jdbc.Connection.createNewIO(Connection.java:1808)
>>   at com.mysql.jdbc.Connection.(Connection.java:452)
>>   at
>>
> com.mysql.jdbc.NonRegisteringDriver.connect
> (NonRegisteringDriver.java:411)
>>   at java.sql.DriverManager.getConnection(DriverManager.java:525)
>>   at java.sql.DriverManager.getConnection(DriverManager.java:171)
>>   at Liep.doGet(Liep.java:30)
>>   ...
>>   ...
>>   Can anyone help or give me a pointer to a website
>>
>>   Byfour
>>
>>
>>
>> -
>> Yahoo! Shopping
>>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>> -
>> Yahoo! Shopping
>>  Find Great Deals on Holiday Gifts at Yahoo! Shopping
>
> --

RE: Tomcat JDBC connection with MySQL

2005-12-12 Thread Jan Behrens
>  String userName = "root";
>  String password = "";
>  String URL = "jdbc:mysql://l/AdressBook";

Are you sure this is correct? You are connecting to a MySQL server at URL 
"1" and db "AdressBook" as root without a password... 

you should:
- secure MySQL root with a password
- create a new user with rights limited to db "AdressBook" and allow this 
user to connect from "%" for now
- set a password for that user
- reload user table!
- change your url to the correct server, e.g. 
"jdbc:mysql//localhost:3306/AdressBook"
- try again

HTH, jan


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



RE: Please respond to my query --- in need of help badly!!

2005-12-12 Thread Nehal Sangoi
Hi

I could resolve the problem. There was incorrect URL mentioned in web.xml of
my application warfile. Actually, i don't deal with configuring this part of
coding -- as i do just administer. And, hence, i did have faith in my
developer who made all changes. After that, the errors were really weird,
and when i tried searching in google, did not find anything that can help
resolving my problem.

Finally, started from scratch and reached to root cause of failure

Thanks for your reply David.I was given downtime, so was looking out for
instantaneous help..

Regards,
Nehal

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 6:41 PM
To: Tomcat Users List
Subject: Re: Please respond to my query --- in need of help badly!!


1) Begging is very unbecoming.  Have you tried googling for 'tomcat
java.net.ConnectException'?

2) On the surface, it would appear some of your webapp code is
attempting to connect to another service, but doesn't have the privilege
to do so.  If tomcat is running with a security manager, check it's
settings.

--David

Nehal Sangoi wrote:

>Hi,
>
>I am facing problems while opening lookups for another tomcat instance thru
>apache url of one tomcat instance. Here is, what i am doing --
>
>Logon to apache url of one tomcat instance.
>click on lookup -- that points to another tomcat instace app
>
>No errors in apache logs...
>Errors in first tomcat instance are as follows :
>
>java.net.ConnectException: Connection refused
>at java.net.PlainSocketImpl.socketConnect(Native Method)
>at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>at
>java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
>at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>at java.net.Socket.connect(Socket.java:507)
>at java.net.Socket.connect(Socket.java:457)
>at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
>at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
>at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
>at sun.net.www.http.HttpClient.(HttpClient.java:214)
>at sun.net.www.http.HttpClient.New(HttpClient.java:287)
>at sun.net.www.http.HttpClient.New(HttpClient.java:299)
>at
>sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnect
i
>on.java:792)
>at
>sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.
j
>ava:744)
>at
>sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:
6
>69)
>at
>sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnectio
n
>.java:913)
>at
>com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:89)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
>FilterChain.java:252)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
>ain.java:173)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
>va:213)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a
>va:178)
>at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
6
>)
>at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10
5
>)
>at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a
>:107)
>at
>org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>at
>org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
>at
>org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
>at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
>at
>org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678
)
>at
>org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
>at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
v
>a:684)
>at java.lang.Thread.run(Thread.java:595)
>java.lang.NullPointerException
>at
>com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:132)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
n
>FilterChain.java:252)
>at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
h
>ain.java:173)
>at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
a
>va:213)
>at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
a

Re: encoding error

2005-12-12 Thread Martin Gainty
ISO 8859 is a full series of 10 standardised multi-lingual single byte coded 
8 bit grapchic character sets for writing in alphabetic languages

information is available at
http://czyborra.com/charsets/iso8859.html
If you want TOMCAT to default to Latin1 (West European) character set then 
use this option before starting

set CATALINA_OPTS=-Dfile.encoding=ISO-8859-1

HTH,
Martin-

- Original Message - 
From: "Seak, Teng-Fong" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, December 12, 2005 5:03 AM
Subject: Re: encoding error


   Is it a good idea to specify this parameter in Tomcat startup?  Where 
did you read that you have to do so?  Or who told you to do so?


   Regards,

   Seak

Mª Carmen Gómez Romero wrote:


Hi,

I have a server with Apache 2.0 + Tomcat 5.0

I have a problem because sometimes seem the charset change. If I restart =

the tomcat, the charset is correct other time.

I have -Dfile.encoding=3DISO-8859-1 in Tomcat startup.

what is it happening?

Thank you.





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




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



Re: Please respond to my query --- in need of help badly!!

2005-12-12 Thread Martin Gainty

Nehal-

If there are 2 people working in your shop say 1 developer and 1 admin
then as the administrator you are the last line of defence before the webapp 
is deployed
So if your developer changes the web.xml so that the webapp cannot be 
deployed you need to pickup on that and fix it or revert to previous version


Martin-

- Original Message - 
From: "Nehal Sangoi" <[EMAIL PROTECTED]>

To: "'Tomcat Users List'" 
Sent: Monday, December 12, 2005 9:05 AM
Subject: RE: Please respond to my query --- in need of help badly!!



Hi

I could resolve the problem. There was incorrect URL mentioned in web.xml 
of
my application warfile. Actually, i don't deal with configuring this part 
of

coding -- as i do just administer. And, hence, i did have faith in my
developer who made all changes. After that, the errors were really weird,
and when i tried searching in google, did not find anything that can help
resolving my problem.

Finally, started from scratch and reached to root cause of failure

Thanks for your reply David.I was given downtime, so was looking out 
for

instantaneous help..

Regards,
Nehal

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Monday, December 12, 2005 6:41 PM
To: Tomcat Users List
Subject: Re: Please respond to my query --- in need of help badly!!


1) Begging is very unbecoming.  Have you tried googling for 'tomcat
java.net.ConnectException'?

2) On the surface, it would appear some of your webapp code is
attempting to connect to another service, but doesn't have the privilege
to do so.  If tomcat is running with a security manager, check it's
settings.

--David

Nehal Sangoi wrote:


Hi,

I am facing problems while opening lookups for another tomcat instance 
thru

apache url of one tomcat instance. Here is, what i am doing --

Logon to apache url of one tomcat instance.
click on lookup -- that points to another tomcat instace app

No errors in apache logs...
Errors in first tomcat instance are as follows :

java.net.ConnectException: Connection refused
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
   at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
   at java.net.Socket.connect(Socket.java:507)
   at java.net.Socket.connect(Socket.java:457)
   at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
   at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
   at sun.net.www.http.HttpClient.(HttpClient.java:214)
   at sun.net.www.http.HttpClient.New(HttpClient.java:287)
   at sun.net.www.http.HttpClient.New(HttpClient.java:299)
   at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnect

i

on.java:792)
   at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.

j

ava:744)
   at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:

6

69)
   at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnectio

n

.java:913)
   at
com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:89)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio

n

FilterChain.java:252)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC

h

ain.java:173)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j

a

va:213)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j

a

va:178)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12

6

)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10

5

)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav

a

:107)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
   at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
   at

org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)

   at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678

)

   at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja

v

a:684)
   at java.lang.Thread.run(Thread.java:595)
java.lang.NullPointerException
   at
com.ges.expd2.util.ClientLookupServlet.doGet(ClientLookupServlet.java:132)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.h

RE: Tomcat JDBC connection with MySQL

2005-12-12 Thread marju jalloh
I made it
  Thanks everyone especially jan and Kirthik
  
  Byfour

Jan Behrens <[EMAIL PROTECTED]> wrote:  >  String userName = 
"root";
>  String password = "";
>  String URL = "jdbc:mysql://l/AdressBook";

Are you sure this is correct? You are connecting to a MySQL server at URL 
"1" and db "AdressBook" as root without a password... 

you should:
- secure MySQL root with a password
- create a new user with rights limited to db "AdressBook" and allow this 
user to connect from "%" for now
- set a password for that user
- reload user table!
- change your url to the correct server, e.g. 
"jdbc:mysql//localhost:3306/AdressBook"
- try again

HTH, jan


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





-
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 

Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Anyone? 
I am still stuck on this, I admit that our machine's setup is a bit 
'special' as it has to IPs with a server instance bound to each. But 
everything else works fine, except for this stupid cookie problem. Can 
someone clarify whether using symlinks within the Tomcat install directory 
is ok? We are using a couple, for /temp and /work amongst others. Because 
the work dir is used by Tomcat just fine however, I beliebe this should be 
ok.

Any help on this is very much appreciated.

TIA, Jan


Jan Behrens
OFFIS
FuE-Bereich Betriebliches Informationsmanagement
Escherweg 2  -  26121 Oldenburg  -  Germany
Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de

Jan Behrens <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:41:

> Thanks for the input Peter. What I see now is even more confusing to me; 

> 
> - Tomcat sets a cookie containing a session id X
> - On the request however, the URL gets rewritten using session id Y (and 
X 
> != Y)
> 
> All subsequent requests made are handled via URL rewriting using session 

> id Y. I can see this behaviour both on my own app as well as on the 
admin 
> app... I am at a loss as to what to do next :(
> 
> Any ideas? TIA, Jan
> 
> Peter Rossbach <[EMAIL PROTECTED]> schrieb am 12.12.2005 10:07:02:
> 
> > a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to scan 
> > you traffic.
> > When tomcat not see a JSESSIONID cookie at the request the can't 
> > associate a session.
> > 
> > b) StandardSession Manager store all Session at shutdown app at 
> > work/Catalina///SESSIONS.ser
> >  All dirs must me writeable for your tomcat user
> > .
> > Peter
> > 
> > Jan Behrens schrieb:
> > 
> > >Hi list,
> > >
> > >I have a problem with session cookies on a Linux server. Both Tomcat 
> > >instances running on the machine don't seem to be able to store 
session 
> 
> > >data in cookies. They otherwise work just fine, just no cookies. I 
have 
> 
> > >obviously checked all browser settings as well as made sure that all 
> > >webapps in question have the cookie flag turned on. However, Tomcat 
is 
> > >still not setting any cookies... 
> > >
> > >My set-up:
> > >- Suse Linux server (kernel 2.6.8-24.18-smp)
> > >- Multiprocessor machine with 4 GB memory
> > >- Sun VM 1.4.2_08-b03
> > >- 2 Tomcat 5.0.28 instances
> > >
> > >Maybe this is a problem with fileset permission's? Tomcat runs as 
user 
> > >tomcat and I think I checked each dir Tomcat needs to write into but 
I 
> am 
> > >not sure where cookies are normally stored in. Is this the temp dir 
or 
> > >somewhere else?
> > >
> > >I would be very grateful for any help or suggestions as to what to do 

> to 
> > >get this fixed.
> > >
> > >TIA, Jan
> > >
> > >
> > >Jan Behrens
> > >OFFIS
> > >FuE-Bereich Betriebliches Informationsmanagement
> > >Escherweg 2  -  26121 Oldenburg  -  Germany
> > >Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> > >E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> > >
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > > 
> > >
> > 
> > 
> > 
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Tomcat JNDI and LDAP SSL/TLS

2005-12-12 Thread FM

Hello,
I configure JNDI to sue ldap, but it is cleat text.
Is it possible to use LDAP over SSL and TLS woth tomcat ?

thanks !

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



Re: Session cookies on Linux

2005-12-12 Thread Martin Gainty
This is a shot in the dark but does the sym linked folder have write 
permission ?

assume that tomcat is installed to /usr/local/tomcat..e.g.
chmod +w /usr/local/tomcat
Anyone else?
Viel Gluck,
Martin-
- Original Message - 
From: "Jan Behrens" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, December 12, 2005 10:51 AM
Subject: Re: Session cookies on Linux



Anyone?
I am still stuck on this, I admit that our machine's setup is a bit
'special' as it has to IPs with a server instance bound to each. But
everything else works fine, except for this stupid cookie problem. Can
someone clarify whether using symlinks within the Tomcat install directory
is ok? We are using a couple, for /temp and /work amongst others. Because
the work dir is used by Tomcat just fine however, I beliebe this should be
ok.

Any help on this is very much appreciated.

TIA, Jan


Jan Behrens
OFFIS
FuE-Bereich Betriebliches Informationsmanagement
Escherweg 2  -  26121 Oldenburg  -  Germany
Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de

Jan Behrens <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:41:


Thanks for the input Peter. What I see now is even more confusing to me;




- Tomcat sets a cookie containing a session id X
- On the request however, the URL gets rewritten using session id Y (and

X

!= Y)

All subsequent requests made are handled via URL rewriting using session



id Y. I can see this behaviour both on my own app as well as on the

admin

app... I am at a loss as to what to do next :(

Any ideas? TIA, Jan

Peter Rossbach <[EMAIL PROTECTED]> schrieb am 12.12.2005 10:07:02:

> a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to scan
> you traffic.
> When tomcat not see a JSESSIONID cookie at the request the can't
> associate a session.
>
> b) StandardSession Manager store all Session at shutdown app at
> work/Catalina///SESSIONS.ser
>  All dirs must me writeable for your tomcat user
> .
> Peter
>
> Jan Behrens schrieb:
>
> >Hi list,
> >
> >I have a problem with session cookies on a Linux server. Both Tomcat
> >instances running on the machine don't seem to be able to store

session


> >data in cookies. They otherwise work just fine, just no cookies. I

have


> >obviously checked all browser settings as well as made sure that all
> >webapps in question have the cookie flag turned on. However, Tomcat

is

> >still not setting any cookies...
> >
> >My set-up:
> >- Suse Linux server (kernel 2.6.8-24.18-smp)
> >- Multiprocessor machine with 4 GB memory
> >- Sun VM 1.4.2_08-b03
> >- 2 Tomcat 5.0.28 instances
> >
> >Maybe this is a problem with fileset permission's? Tomcat runs as

user

> >tomcat and I think I checked each dir Tomcat needs to write into but

I

am
> >not sure where cookies are normally stored in. Is this the temp dir

or

> >somewhere else?
> >
> >I would be very grateful for any help or suggestions as to what to do



to
> >get this fixed.
> >
> >TIA, Jan
> >
> >
> >Jan Behrens
> >OFFIS
> >FuE-Bereich Betriebliches Informationsmanagement
> >Escherweg 2  -  26121 Oldenburg  -  Germany
> >Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> >E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




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




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



Antwort: Re: Session cookies on Linux

2005-12-12 Thread Jan Behrens
Hi Martin,

thanks for the shot ;) Unfortunately this is not the problem, Tomcat has 
r&w access to these dirs and successfully writes to them. It's just not 
handling the session ID via cookies, but then again I am not sure whether 
this is realy related to the dir question or maybe something else...

Thanks anyway, Jan

"Martin Gainty" <[EMAIL PROTECTED]> schrieb am 12.12.2005 17:41:10:

> This is a shot in the dark but does the sym linked folder have write 
> permission ?
> assume that tomcat is installed to /usr/local/tomcat..e.g.
> chmod +w /usr/local/tomcat
> Anyone else?
> Viel Gluck,
> Martin-
> - Original Message - 
> From: "Jan Behrens" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Monday, December 12, 2005 10:51 AM
> Subject: Re: Session cookies on Linux
> 
> 
> > Anyone?
> > I am still stuck on this, I admit that our machine's setup is a bit
> > 'special' as it has to IPs with a server instance bound to each. But
> > everything else works fine, except for this stupid cookie problem. Can
> > someone clarify whether using symlinks within the Tomcat install 
directory
> > is ok? We are using a couple, for /temp and /work amongst others. 
Because
> > the work dir is used by Tomcat just fine however, I beliebe this 
should be
> > ok.
> >
> > Any help on this is very much appreciated.
> >
> > TIA, Jan
> >
> >
> > Jan Behrens
> > OFFIS
> > FuE-Bereich Betriebliches Informationsmanagement
> > Escherweg 2  -  26121 Oldenburg  -  Germany
> > Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> > E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> >
> > Jan Behrens <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:41:
> >
> >> Thanks for the input Peter. What I see now is even more confusing to 
me;
> >
> >>
> >> - Tomcat sets a cookie containing a session id X
> >> - On the request however, the URL gets rewritten using session id Y 
(and
> > X
> >> != Y)
> >>
> >> All subsequent requests made are handled via URL rewriting using 
session
> >
> >> id Y. I can see this behaviour both on my own app as well as on the
> > admin
> >> app... I am at a loss as to what to do next :(
> >>
> >> Any ideas? TIA, Jan
> >>
> >> Peter Rossbach <[EMAIL PROTECTED]> schrieb am 12.12.2005 10:07:02:
> >>
> >> > a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to 
scan
> >> > you traffic.
> >> > When tomcat not see a JSESSIONID cookie at the request the can't
> >> > associate a session.
> >> >
> >> > b) StandardSession Manager store all Session at shutdown app at
> >> > work/Catalina///SESSIONS.ser
> >> >  All dirs must me writeable for your tomcat user
> >> > .
> >> > Peter
> >> >
> >> > Jan Behrens schrieb:
> >> >
> >> > >Hi list,
> >> > >
> >> > >I have a problem with session cookies on a Linux server. Both 
Tomcat
> >> > >instances running on the machine don't seem to be able to store
> > session
> >>
> >> > >data in cookies. They otherwise work just fine, just no cookies. I
> > have
> >>
> >> > >obviously checked all browser settings as well as made sure that 
all
> >> > >webapps in question have the cookie flag turned on. However, 
Tomcat
> > is
> >> > >still not setting any cookies...
> >> > >
> >> > >My set-up:
> >> > >- Suse Linux server (kernel 2.6.8-24.18-smp)
> >> > >- Multiprocessor machine with 4 GB memory
> >> > >- Sun VM 1.4.2_08-b03
> >> > >- 2 Tomcat 5.0.28 instances
> >> > >
> >> > >Maybe this is a problem with fileset permission's? Tomcat runs as
> > user
> >> > >tomcat and I think I checked each dir Tomcat needs to write into 
but
> > I
> >> am
> >> > >not sure where cookies are normally stored in. Is this the temp 
dir
> > or
> >> > >somewhere else?
> >> > >
> >> > >I would be very grateful for any help or suggestions as to what to 
do
> >
> >> to
> >> > >get this fixed.
> >> > >
> >> > >TIA, Jan
> >> > >
> >> > >
> >> > >Jan Behrens
> >> > >OFFIS
> >> > >FuE-Bereich Betriebliches Informationsmanagement
> >> > >Escherweg 2  -  26121 Oldenburg  -  Germany
> >> > >Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> >> > >E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
> >> > >
> >> > 
>-
> >> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > >For additional commands, e-mail: [EMAIL PROTECTED]
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > 
-
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > 
> 
> 

Servlet with URL pattern "*." is not working.

2005-12-12 Thread Akhthar Parvez K
Hello,

I have a tomcat server (ver:- 5.5.9) installed on my server and all jsps and
servlets are working fine except the servlet with URL pattern
"*.". eg:- I have the following entry in my web.xml

=
   
test
  ServletsTestPage



test
  *.ca



test2
HelloWorldServlet



test2
  /test2


==

I am able to access the servlet with the URL pattern /test by the link
http://mydomain.com/servlet/test2. But I am getting the error message "The
requested resource (/servlet/sa.ca) is not available." when I access the
servlet with the URL pattern "*.ca" by the link
http://mydomain.com/servlet/as.ca

I got the following message in catalina.out



Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet org.apache.catalina.INVOKER.sa.ca as unavailable
Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]
 sa.ca
java.lang.ClassNotFoundException: sa.ca
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1332)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1181)
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1027)
at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(
InvokerServlet.java:369)
at org.apache.catalina.servlets.InvokerServlet.doGet(
InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:385)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:678)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java
:871)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
SEVERE: httpservlet: Cannot allocate servlet instance for path
/servlet/sa.ca
javax.servlet.ServletException: Wrapper cannot find servlet class sa.ca or a
class it depends on
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1035)
at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(
InvokerServlet.java:369)
at org.apache.catalina.servlets.InvokerServlet.doGet(
InvokerServlet.java:133)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
:307)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:385)

Re: Servlet with URL pattern "*." is not working.

2005-12-12 Thread Tim Funk

You have the invoker enabled. It is evil. Get rid of it.
http://tomcat.apache.org/faq/misc.html#evil

> java.lang.ClassNotFoundException: sa.ca

-Tim

Akhthar Parvez K wrote:

Hello,

I have a tomcat server (ver:- 5.5.9) installed on my server and all jsps and
servlets are working fine except the servlet with URL pattern
"*.". eg:- I have the following entry in my web.xml

=
   
test
  ServletsTestPage



test
  *.ca



test2
HelloWorldServlet



test2
  /test2


==

I am able to access the servlet with the URL pattern /test by the link
http://mydomain.com/servlet/test2. But I am getting the error message "The
requested resource (/servlet/sa.ca) is not available." when I access the
servlet with the URL pattern "*.ca" by the link
http://mydomain.com/servlet/as.ca

I got the following message in catalina.out



Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet org.apache.catalina.INVOKER.sa.ca as unavailable
Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]
 sa.ca
java.lang.ClassNotFoundException: sa.ca
at org.apache.catalina.loader.WebappClassLoader.loadClass(


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



RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Guillermo Sobrino

Hello again,

trying to find a solution to my problem I have discovered that in past Tomcat 
versions
I had just to copy my new jsp pages in the installation directory to get them 
updated
in Tomcat. There was no need to use target reload.

So maybe I am forgetting any configuration parameter in Tomcat 5.5 wich set that
"automatic" jsp-reloading.

Anyone could help, please?


   Guillermo



> -Mensaje original-
> De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
> Enviado el: jueves, 01 de diciembre de 2005 17:11
> Para: users@tomcat.apache.org
> Asunto: How to reload jsp using ant in Tomcat 5.5
>  
> 
>  
> Hello,
> 
> I'm using Tomcat 5.5 on wich I deploy a web application with 
> ant using:
> 
>  
> 
> 
> 
>  password="${manager.password}"
> 
> path="${app.path}" 
> localwar="file://${install.home}/${component.name}-${component
> .version}"/>
> 
>  
> 
>  
> 
> where install.home/component.name-component.version is a 
> local directory wich 
> 
> contains a typical structure with JSP's and a WEB-INF
> 
> directory wich includes lib and classes directories.
> 
> I get to deploy the application right, but when I update any jsp in 
> 
> my install.home/component.name-component.version local directory 
> 
> I can not get Tomcat to update that file. 
> 
> I've tried to use the ant reload target as follows:
> 
>  
> 
> 
> 
>  username="${manager.username}" password="${manager.password}"/>
> 
> 
> 
>  
> 
> but it doesn't work for jsp pages.
> 
> Anyone could help me, please?
> 
> Thanks in advantage.
> 
>  
> 
>Guillermo
> 
>  
> 
>  
> 



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



RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Jan Behrens
Just a gues, but maybe you have antiResourceLocking turned on? see --> 
http://issues.apache.org/bugzilla/show_bug.cgi?id=37668

Jan

"Guillermo Sobrino" <[EMAIL PROTECTED]> schrieb am 12.12.2005 18:09:28:

> 
> Hello again,
> 
> trying to find a solution to my problem I have discovered that in 
> past Tomcat versions
> I had just to copy my new jsp pages in the installation directory to
> get them updated
> in Tomcat. There was no need to use target reload.
> 
> So maybe I am forgetting any configuration parameter in Tomcat 5.5 
> wich set that
> "automatic" jsp-reloading.
> 
> Anyone could help, please?
> 
> 
>Guillermo
> 
> 
> 
> > -Mensaje original-
> > De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
> > Enviado el: jueves, 01 de diciembre de 2005 17:11
> > Para: users@tomcat.apache.org
> > Asunto: How to reload jsp using ant in Tomcat 5.5
> > 
> > 
> > 
> > Hello,
> > 
> > I'm using Tomcat 5.5 on wich I deploy a web application with 
> > ant using:
> > 
> > 
> > 
> > 
> > 
> >  > password="${manager.password}"
> > 
> > path="${app.path}" 
> > localwar="file://${install.home}/${component.name}-${component
> > .version}"/>
> > 
> >  
> > 
> > 
> > 
> > where install.home/component.name-component.version is a 
> > local directory wich 
> > 
> > contains a typical structure with JSP's and a WEB-INF
> > 
> > directory wich includes lib and classes directories.
> > 
> > I get to deploy the application right, but when I update any jsp in 
> > 
> > my install.home/component.name-component.version local directory 
> > 
> > I can not get Tomcat to update that file. 
> > 
> > I've tried to use the ant reload target as follows:
> > 
> > 
> > 
> > 
> > 
> >  > username="${manager.username}" password="${manager.password}"/>
> > 
> > 
> > 
> > 
> > 
> > but it doesn't work for jsp pages.
> > 
> > Anyone could help me, please?
> > 
> > Thanks in advantage.
> > 
> > 
> > 
> >Guillermo
> > 
> > 
> > 
> > 
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Help needed to set tomcat5.0.28 and IIS 5

2005-12-12 Thread David Chen
Hi, there:

Actually, no response so far for uring JK1.2 connector to integrate tomcat
5.0.28 with IIS 5. However, by using JK2 connector (which was deprecated), I
got tomcat 5.0.28 and IIS 5 working together fine. So, currently, we just
using JK2 instead of JK1.2

Thanks a lot
David 

-Original Message-
From: Sue Roe [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 1:34 AM
To: Tomcat Users List
Subject: RE: Help needed to set tomcat5.0.28 and IIS 5

David

Did you get any response to your question? I am trying to do the same thing
here.

Thank you

-Original Message-
From: David Chen [mailto:[EMAIL PROTECTED]
Sent: 03 December 2005 01:25
To: users@tomcat.apache.org
Subject: Help needed to set tomcat5.0.28 and IIS 5

Hi, there:
 
I tried to set my tomcat 5.0.28 working with IIS 5 in my windows 2000
system, followed exactly steps listed in the document, unfortunately no luck
so far. Could anyone here help me through it.
My question is:
should I change my server.xml to configure 8009 port?
the current server.xml looks like:

checking internet, some one said to configure tomcat 4.1.x, I should modify
server.xml as:

 
So, again should I change server.xml in tomcat5.0.28 as well? (by the way,
where is that org.apache.ajp.tomcat4.Ajp13Connector class?) Also checked
document in TomCat, it said for IIS5, IIS6, it requires some extra steps,
however the link for those steps are not available any longer, does anyone
knows what extra steps to configure IIS5?
And here is my workers.properties:
worker.list=testWorker
worker.testWorker.type=ajp13
worker.testWorker.host=locahost
worker.testWorker.port=8009
worker.testWorker.lbfactor=1
worker.testWorker.cachesize=10
worker.testWorker.cache_timeout=600
worker.testWorker.socket_keepalive=1
worker.testWorker.socket_timeout=60
 
Checked log file, it gives me error:
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_ajp_common.c (1815):
can't
resolve tomcat address localhost
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_ajp_common.c (1818):
invalid host and port locahost 8009
[Fri Dec 02 17:19:02 2005] [1260:1744] [debug] jk_ajp_common.c (2012):
up to
0 endpoints to close
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_worker.c (158):
validate
failed for testWorker
[Fri Dec 02 17:19:02 2005] [1260:1744] [error] jk_worker.c (256): failed to
create worker testWorker
 
Thanks a lot for any comments or suggestions.
 
David
 




***Disclaimer***

The contents of this Email may be privileged and are confidential. If you
are not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited and may
be unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its
subsidiaries are unable to guarantee the security of Email content outside
of our own computer systems.

This footnote also confirms that this Email message has been checked by
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus
software, you are solely responsible for ensuring that any Email or
attachment you receive is virus free. We disclaim any liability for any
damage you suffer as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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


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



tomcat + ldap gssapi

2005-12-12 Thread FM

Hello,
I read that jndi cannot use ldap SSL or TLS.
Is-it possible to use GSSAPI ?
I cannot fond anything in the tomcat doc.

Thanks !

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



Re: Connecting Tomcat and Apache using mod_jk and jni (deprecated?) or ajp13

2005-12-12 Thread Marc Richards
"JNI requires that you use mod_jk2 (or Tomcat 3.3.x
> :)"

I noticed this too, but was trying to stay away from
jk2 because it's no longer being developed.

"Patches to improve the documentation are always
> welcome ;-)"

Heh, heh.  Tell you what, if I ever get this figured
out completely and truely understand what I'm doing I
promise to spend some time contributing to the docs! 
;-)

Thanks for the tips - I'll try them out and keep my
fingers crossed.

-marc



--- Bill Barker <[EMAIL PROTECTED]> wrote:

> 
> "Marc Richards" <[EMAIL PROTECTED]> wrote in message 
>
news:[EMAIL PROTECTED]
> >I have Apache 2.x and Tomcat 5.5 connected using
> > mod_jk ajp13 workers (win32) and running fine.
> > However, under heavy load (using jmeter) I start
> to
> > get mod_jk errors indicating that the connection
> is
> > closed and is unable to be reopened.  This
> essentially
> > results in a dead server for a while.
> >
> > The question regarding this is two-part:
> >
> > 1.  All connector docs indicate that a jni worker
> can
> > be defined that will allow Tomcat to be run under
> the
> > Apache memory space and enhance communications
> between
> > the two without using sockets.  This sounds great,
> but
> > the bugzilla report
> >
>
(http://issues.apache.org/bugzilla/show_bug.cgi?id=35378#c2)
> > indicates that the jni worker has been deprecated
> for
> > some time.  The docs don't say anything about this
> and
> > the change log shows nothing, yet it appears to be
> > true.  Why is the jni worker deprecated and in
> favor
> > of what?  Is ajp13 the better route to go then
> (the
> > method that I'm already using)?  Is there another
> > method of running Tomcat and Apache under one
> memory
> > allocation?
> >
> 
> JNI requires that you use mod_jk2 (or Tomcat 3.3.x
> :).  There hasn't been a 
> lot of interest in back-porting it to mod_jk, since
> it only really works 
> well on Windows and Netware.  With mod_jk, currently
> the only option is to 
> use Sockets.
> 
> > 2.  If I am to remain using ajp13 then I need to
> solve
> > my communication problem between Apache and
> Tomcat.
> > The docs explain a bit about the various
> configuration
> > options, but it seems apparent that the author
> speaks
> > English as a second language and I'm not quite
> clear
> > on how to go about ensuring that I have an ideal
> > configuration.  Any specific tips on this?
> >
> 
> As it happens, most of the mod_jk developers speak
> do English as a second 
> language :).
> 
> Patches to improve the documentation are always
> welcome ;-).
> 
> > For reference, my site is running on multiple,
> > balanced Win 2003 servers, I have around 9000
> users
> > and peak at about 200 concurrent users.  I beging
> to
> > experience jmeter troubles only a few minutes into
> a
> > test configured for 75 concurrent users, so I have
> a
> > long way to go before I'm production-ready (this
> is a
> > new hardware config replacing a legacy site).  I'm
> ok
> > with expanding my farm if needed, but feel that I
> > should be able to drive my servers harder than I
> have
> > been able to before ajp fails.  Anybody have any
> help
> > on this?
> >
> 
> It looks like you have your maxThreads setting too
> low on the  
> element.  (e.g. you are using the default setting). 
> In general, you need to 
> have maxThreads >= ThreadPerChild (from httpd.conf).
>  On a Windows box, this 
> is usually all you need to get running.  Depending
> on your load patterns, 
> you can tweak minSpareThreads and maxSpareThreads to
> possibly get a slight 
> performance improvement.
> 
> > Thanks,
> >
> > -marc
> >
> >
> >
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com 
> 
> 
> 
> 
>
-
> 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Antwort: Re: Session cookies on Linux

2005-12-12 Thread Martin Gainty

Guten Tag Jan-
did you find any restrictions in java.policy file?
Anyone else?
M
- Original Message - 
From: "Jan Behrens" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, December 12, 2005 11:55 AM
Subject: Antwort: Re: Session cookies on Linux



Hi Martin,

thanks for the shot ;) Unfortunately this is not the problem, Tomcat has
r&w access to these dirs and successfully writes to them. It's just not
handling the session ID via cookies, but then again I am not sure whether
this is realy related to the dir question or maybe something else...

Thanks anyway, Jan

"Martin Gainty" <[EMAIL PROTECTED]> schrieb am 12.12.2005 17:41:10:


This is a shot in the dark but does the sym linked folder have write
permission ?
assume that tomcat is installed to /usr/local/tomcat..e.g.
chmod +w /usr/local/tomcat
Anyone else?
Viel Gluck,
Martin-
- Original Message - 
From: "Jan Behrens" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, December 12, 2005 10:51 AM
Subject: Re: Session cookies on Linux


> Anyone?
> I am still stuck on this, I admit that our machine's setup is a bit
> 'special' as it has to IPs with a server instance bound to each. But
> everything else works fine, except for this stupid cookie problem. Can
> someone clarify whether using symlinks within the Tomcat install

directory

> is ok? We are using a couple, for /temp and /work amongst others.

Because

> the work dir is used by Tomcat just fine however, I beliebe this

should be

> ok.
>
> Any help on this is very much appreciated.
>
> TIA, Jan
>
>
> Jan Behrens
> OFFIS
> FuE-Bereich Betriebliches Informationsmanagement
> Escherweg 2  -  26121 Oldenburg  -  Germany
> Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
> E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
>
> Jan Behrens <[EMAIL PROTECTED]> schrieb am 12.12.2005 13:33:41:
>
>> Thanks for the input Peter. What I see now is even more confusing to

me;

>
>>
>> - Tomcat sets a cookie containing a session id X
>> - On the request however, the URL gets rewritten using session id Y

(and

> X
>> != Y)
>>
>> All subsequent requests made are handled via URL rewriting using

session

>
>> id Y. I can see this behaviour both on my own app as well as on the
> admin
>> app... I am at a loss as to what to do next :(
>>
>> Any ideas? TIA, Jan
>>
>> Peter Rossbach <[EMAIL PROTECTED]> schrieb am 12.12.2005 10:07:02:
>>
>> > a) Setup Firefox LiveHTTPHeader Plugin or nettools http proxy to

scan

>> > you traffic.
>> > When tomcat not see a JSESSIONID cookie at the request the can't
>> > associate a session.
>> >
>> > b) StandardSession Manager store all Session at shutdown app at
>> > work/Catalina///SESSIONS.ser
>> >  All dirs must me writeable for your tomcat user
>> > .
>> > Peter
>> >
>> > Jan Behrens schrieb:
>> >
>> > >Hi list,
>> > >
>> > >I have a problem with session cookies on a Linux server. Both

Tomcat

>> > >instances running on the machine don't seem to be able to store
> session
>>
>> > >data in cookies. They otherwise work just fine, just no cookies. I
> have
>>
>> > >obviously checked all browser settings as well as made sure that

all

>> > >webapps in question have the cookie flag turned on. However,

Tomcat

> is
>> > >still not setting any cookies...
>> > >
>> > >My set-up:
>> > >- Suse Linux server (kernel 2.6.8-24.18-smp)
>> > >- Multiprocessor machine with 4 GB memory
>> > >- Sun VM 1.4.2_08-b03
>> > >- 2 Tomcat 5.0.28 instances
>> > >
>> > >Maybe this is a problem with fileset permission's? Tomcat runs as
> user
>> > >tomcat and I think I checked each dir Tomcat needs to write into

but

> I
>> am
>> > >not sure where cookies are normally stored in. Is this the temp

dir

> or
>> > >somewhere else?
>> > >
>> > >I would be very grateful for any help or suggestions as to what to

do

>
>> to
>> > >get this fixed.
>> > >
>> > >TIA, Jan
>> > >
>> > >
>> > >Jan Behrens
>> > >OFFIS
>> > >FuE-Bereich Betriebliches Informationsmanagement
>> > >Escherweg 2  -  26121 Oldenburg  -  Germany
>> > >Fon: +49 4 41 97 22 - 187  -  Fax:  +49 4 41 97 22-102
>> > >E-mail: [EMAIL PROTECTED]  -  URL: http://www.offis.de
>> > >
>> >
-
>> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > >For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> >
>> >
>> >

-

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


syntax for RemoteAddrValve and allowing multiple hosts

2005-12-12 Thread Mark
I want to use the RemoteAddrValve and allow multiple hosts.  What is the
syntax for doing this?


Thank you.


RE: How to reload jsp using ant in Tomcat 5.5

2005-12-12 Thread Subir Sengupta
Look in your web.xml, and tweak the JspServlet parameters. These 3
params control jsp reloading - modificationTestInterval, checkInterval
and development.

Hth,
Subir


-Original Message-
From: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 9:09 AM
To: 'Tomcat Users List'
Subject: RE: How to reload jsp using ant in Tomcat 5.5


Hello again,

trying to find a solution to my problem I have discovered that in past
Tomcat versions
I had just to copy my new jsp pages in the installation directory to get
them updated
in Tomcat. There was no need to use target reload.

So maybe I am forgetting any configuration parameter in Tomcat 5.5 wich
set that
"automatic" jsp-reloading.

Anyone could help, please?


   Guillermo



> -Mensaje original-
> De: Guillermo Sobrino [mailto:[EMAIL PROTECTED] 
> Enviado el: jueves, 01 de diciembre de 2005 17:11
> Para: users@tomcat.apache.org
> Asunto: How to reload jsp using ant in Tomcat 5.5
>  
> 
>  
> Hello,
> 
> I'm using Tomcat 5.5 on wich I deploy a web application with 
> ant using:
> 
>  
> 
> 
> 
>  password="${manager.password}"
> 
> path="${app.path}" 
> localwar="file://${install.home}/${component.name}-${component
> .version}"/>
> 
>  
> 
>  
> 
> where install.home/component.name-component.version is a 
> local directory wich 
> 
> contains a typical structure with JSP's and a WEB-INF
> 
> directory wich includes lib and classes directories.
> 
> I get to deploy the application right, but when I update any jsp in 
> 
> my install.home/component.name-component.version local directory 
> 
> I can not get Tomcat to update that file. 
> 
> I've tried to use the ant reload target as follows:
> 
>  
> 
> 
> 
>  username="${manager.username}" password="${manager.password}"/>
> 
> 
> 
>  
> 
> but it doesn't work for jsp pages.
> 
> Anyone could help me, please?
> 
> Thanks in advantage.
> 
>  
> 
>Guillermo
> 
>  
> 
>  
> 



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


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



Re: syntax for RemoteAddrValve and allowing multiple hosts

2005-12-12 Thread Tim Funk

Its comma seperated.

http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
try: allow='192\.168\.1\..+,^10\..+'

-Tim

Mark wrote:


I want to use the RemoteAddrValve and allow multiple hosts.  What is the
syntax for doing this?


Thank you.



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



Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread David Gagnon

Hi all,

 I just installed a fresh tomcat 4.1.31 and run into this problem.  
From 4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a 
way that make it  unusable.  I cannot set null attribute in the 
pageContext ?!?!?!


So the following call throw an exception in 4.1.31:
   pageContext.setAttribute(LOOKUP_GROUP_DATA_KEY + 
enclosingGroup.getGroup(), null, PageContext.REQUEST_SCOPE);


Is that mean I need to check if an attribute is null before putting it 
into the pageContext It desn`t make sense to me?


This change make 4.1.31 totally unusable for me... Any idea on what I 
can do? Or where I'm wrong?


Thanks for your help!

/David


4.1.31:
public void setAttribute(String name, Object o, int scope) {
   if (name == null) {
   throw new NullPointerException("name may not be null");
   }

   if (o == null) {
   throw new NullPointerException("object may not be null");
   }

   switch (scope) {
   case PAGE_SCOPE:
   attributes.put(name, o);
   break;

   case REQUEST_SCOPE:
   request.setAttribute(name, o);
   break;

   case SESSION_SCOPE:
   if (session == null)
   throw new IllegalArgumentException
   ("can't access SESSION_SCOPE without an 
HttpSession");

   else
   session.setAttribute(name, o);
   break;

   case APPLICATION_SCOPE:
   context.setAttribute(name, o);
   break;

   default:
   }
   }




4.1.30
public void setAttribute(String name, Object o, int scope) {
   switch (scope) {
   case PAGE_SCOPE:
   attributes.put(name, o);
   break;

   case REQUEST_SCOPE:
   request.setAttribute(name, o);
   break;

   case SESSION_SCOPE:
   if (session == null)
   throw new IllegalArgumentException("can't access 
SESSION_SCOPE without an HttpSession");

   else
   session.setAttribute(name, o);
   break;

   case APPLICATION_SCOPE:
   context.setAttribute(name, o);
   break;

   default:
   }
   }



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



Re: Servlet with URL pattern "*." is not working.

2005-12-12 Thread Martin Gainty

Akhthar
I thought the servlet / servlet-class specifications are grouped together 
then

servlet-mappings follow up and are grouped together e.g.


   test
 ServletsTestPage
   
   
   test2
   HelloWorldServlet
   
   
   test
 *.ca
   
   
   test2
 /test2
   

???
Martin-


Hello,

I have a tomcat server (ver:- 5.5.9) installed on my server and all jsps and
servlets are working fine except the servlet with URL pattern
"*.". eg:- I have the following entry in my web.xml

=
  
   test
 ServletsTestPage
   

   
   test
 *.ca
   

   
   test2
   HelloWorldServlet
   

   
   test2
 /test2
   

==

I am able to access the servlet with the URL pattern /test by the link
http://mydomain.com/servlet/test2. But I am getting the error message "The
requested resource (/servlet/sa.ca) is not available." when I access the
servlet with the URL pattern "*.ca" by the link
http://mydomain.com/servlet/as.ca

I got the following message in catalina.out



Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet org.apache.catalina.INVOKER.sa.ca as unavailable
Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
SEVERE: Error loading WebappClassLoader
 delegate: false
 repositories:
   /WEB-INF/classes/
--> Parent Classloader:
[EMAIL PROTECTED]
sa.ca
java.lang.ClassNotFoundException: sa.ca
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1332)
   at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1181)
   at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1027)
   at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(
InvokerServlet.java:369)
   at org.apache.catalina.servlets.InvokerServlet.doGet(
InvokerServlet.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
:307)
   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
:385)
   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
   at org.apache.jk.common.ChannelSocket.processConnection(
ChannelSocket.java:678)
   at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java
:871)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)
Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
SEVERE: httpservlet: Cannot allocate servlet instance for path
/servlet/sa.ca
javax.servlet.ServletException: Wrapper cannot find servlet class sa.ca or a
class it depends on
   at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1035)
   at org.apache.catalina.core.StandardWrapper.allocate(
StandardWrapper.java:750)
   at org.apache.catalina.servlets.InvokerServlet.serveRequest(
InvokerServlet.java:369)
   at org.apache.catalina.servlets.InvokerServlet.doGet(
InvokerServlet.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
   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)

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Tim Funk

I am guesing it was a fix for spec compliance:

http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int)

-Tim

David Gagnon wrote:


Hi all,

 I just installed a fresh tomcat 4.1.31 and run into this problem.  From 
4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a way 
that make it  unusable.  I cannot set null attribute in the pageContext 
?!?!?!


So the following call throw an exception in 4.1.31:
   pageContext.setAttribute(LOOKUP_GROUP_DATA_KEY + 
enclosingGroup.getGroup(), null, PageContext.REQUEST_SCOPE);


Is that mean I need to check if an attribute is null before putting it 
into the pageContext It desn`t make sense to me?


This change make 4.1.31 totally unusable for me... Any idea on what I 
can do? Or where I'm wrong?


Thanks for your help!

/David



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



Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread David Gagnon

Hi

 As state in the javadoc it should throw NullPointerException  if name 
is null (wich make sense).  But in the code they also throw an exception 
if the the value (o) is null!


Regards
/David


 setAttribute

public abstract void *setAttribute*(java.lang.String name,
 java.lang.Object o,
 int scope)

   register the name and object specified with appropriate scope semantics

   *Parameters:*
   |name| - the name of the attribute to set
   |o| - the object to associate with the name
   |scope| - the scope with which to associate the name/object 
   *Throws:*
   |java.lang.NullPointerException| - if the name or object is null 
   |java.lang.IllegalArgumentException| - if the scope is invalid



*Throws:*
   |java.lang.NullPointerException| - if the name or object is null


4.1.31:
public void setAttribute(String name, Object o, int scope) {
  if (name == null) {
  throw new NullPointerException("name may not be null");
  }

  if (o == null) {
  throw new NullPointerException("object may not be null");
  }


Tim Funk wrote:


I am guesing it was a fix for spec compliance:

http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int) 



-Tim

David Gagnon wrote:


Hi all,

 I just installed a fresh tomcat 4.1.31 and run into this problem.  
From 4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a 
way that make it  unusable.  I cannot set null attribute in the 
pageContext ?!?!?!


So the following call throw an exception in 4.1.31:
   pageContext.setAttribute(LOOKUP_GROUP_DATA_KEY + 
enclosingGroup.getGroup(), null, PageContext.REQUEST_SCOPE);


Is that mean I need to check if an attribute is null before putting 
it into the pageContext It desn`t make sense to me?


This change make 4.1.31 totally unusable for me... Any idea on what I 
can do? Or where I'm wrong?


Thanks for your help!

/David




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






Re: Servlet with URL pattern "*." is not working.

2005-12-12 Thread David Smith
That's true if the web.xml file validates against the servlet spec 2.3
dtd instead of the servlet spec 2.4 schema.  tomcat 5.0 and up supports
servlet spec 2.4 which allows for elements to be out of order.

--David

Martin Gainty wrote:

> Akhthar
> I thought the servlet / servlet-class specifications are grouped
> together then
> servlet-mappings follow up and are grouped together e.g.
>
> 
>test
>  ServletsTestPage
>
>
>test2
>HelloWorldServlet
>
>
>test
>  *.ca
>
>
>test2
>  /test2
>
>
> ???
> Martin-
>
>
> Hello,
>
> I have a tomcat server (ver:- 5.5.9) installed on my server and all
> jsps and
> servlets are working fine except the servlet with URL pattern
> "*.". eg:- I have the following entry in my web.xml
>
> =
>   
>test
>  ServletsTestPage
>
>
>
>test
>  *.ca
>
>
>
>test2
>HelloWorldServlet
>
>
>
>test2
>  /test2
>
>
> ==
>
> I am able to access the servlet with the URL pattern /test by the link
> http://mydomain.com/servlet/test2. But I am getting the error message
> "The
> requested resource (/servlet/sa.ca) is not available." when I access the
> servlet with the URL pattern "*.ca" by the link
> http://mydomain.com/servlet/as.ca
>
> I got the following message in catalina.out
>
> 
>
> Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
> INFO: Marking servlet org.apache.catalina.INVOKER.sa.ca as unavailable
> Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: Error loading WebappClassLoader
>  delegate: false
>  repositories:
>/WEB-INF/classes/
> --> Parent Classloader:
> [EMAIL PROTECTED]
> sa.ca
> java.lang.ClassNotFoundException: sa.ca
>at org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.java:1332)
>at org.apache.catalina.loader.WebappClassLoader.loadClass(
> WebappClassLoader.java:1181)
>at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1027)
>at org.apache.catalina.core.StandardWrapper.allocate(
> StandardWrapper.java:750)
>at org.apache.catalina.servlets.InvokerServlet.serveRequest(
> InvokerServlet.java:369)
>at org.apache.catalina.servlets.InvokerServlet.doGet(
> InvokerServlet.java:133)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:252)
>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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java
> :307)
>at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java
> :385)
>at
> org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
>at org.apache.jk.common.ChannelSocket.processConnection(
> ChannelSocket.java:678)
>at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java
> :871)
>at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
>at java.lang.Thread.run(Thread.java:595)
> Dec 12, 2005 10:17:53 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: httpservlet: Cannot allocate servlet instance for path
> /servlet/sa.ca
> javax.servlet.ServletException: Wrapper cannot find servlet class
> sa.ca or a
> class it depends on
>at org.apache.catalina.core.StandardWrapper.loadServlet(
> StandardWrapper.java:1035)
>at org.apache.catalina.core.StandardWrapper.allocate(
> StandardWrapper.java:750)
>at org.apache.catalina.servlets.InvokerServlet.serveRequest(
> InvokerServlet.java:369)
>at org.apache.catalina.servlets.InvokerServlet.doGet(
> InvokerServlet.java:133)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> A

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread Len Popp
That's correct. According to the spec that Tim linked to:

Throws:
java.lang.NullPointerException - if the name or object is null

If you want to set it to null, call removeAttribute instead. This is
different from HttpSession.setAttribute and
ServletRequest.setAttribute, which explicitly say that setting null is
the same as calling removeAttribute. It's too bad that the spec is
inconsistent and a bit inconvenient for us, but that's how it is.

On 12/12/05, David Gagnon <[EMAIL PROTECTED]> wrote:
> Hi
>
>   As state in the javadoc it should throw NullPointerException  if name
> is null (wich make sense).  But in the code they also throw an exception
> if the the value (o) is null!
>
> Regards
> /David
>
>
>   setAttribute
>
> public abstract void *setAttribute*(java.lang.String name,
>   java.lang.Object o,
>   int scope)
>
> register the name and object specified with appropriate scope semantics
>
> *Parameters:*
> |name| - the name of the attribute to set
> |o| - the object to associate with the name
> |scope| - the scope with which to associate the name/object
> *Throws:*
> |java.lang.NullPointerException| - if the name or object is null
> |java.lang.IllegalArgumentException| - if the scope is invalid
>
>
> *Throws:*
> |java.lang.NullPointerException| - if the name or object is null
>
>
> 4.1.31:
> public void setAttribute(String name, Object o, int scope) {
>if (name == null) {
>throw new NullPointerException("name may not be null");
>}
>
>if (o == null) {
>throw new NullPointerException("object may not be null");
>}
>
>
> Tim Funk wrote:
>
> > I am guesing it was a fix for spec compliance:
> >
> > http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int)
> >
> >
> > -Tim
> >
> > David Gagnon wrote:
> >
> >> Hi all,
> >>
> >>  I just installed a fresh tomcat 4.1.31 and run into this problem.
> >> From 4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a
> >> way that make it  unusable.  I cannot set null attribute in the
> >> pageContext ?!?!?!
> >>
> >> So the following call throw an exception in 4.1.31:
> >>pageContext.setAttribute(LOOKUP_GROUP_DATA_KEY +
> >> enclosingGroup.getGroup(), null, PageContext.REQUEST_SCOPE);
> >>
> >> Is that mean I need to check if an attribute is null before putting
> >> it into the pageContext It desn`t make sense to me?
> >>
> >> This change make 4.1.31 totally unusable for me... Any idea on what I
> >> can do? Or where I'm wrong?
> >>
> >> Thanks for your help!
> >>
> >> /David

--
Len

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



apache, tomcat http to https redirect

2005-12-12 Thread Kiarna Boyd

Good afternoon,

I have a functional apache web server(2.0.52) and Tomcat(5.0.28) app 
server install. I'm trying to figure out the best way to do a redirect 
to enforce SSL logins.
I can rewrite the URL with the webserver mod_rewrite BEFORE the JkMount 
directives are applied but not after as it is handed off to the Tomcat 
server.
So if my URL has a tomcat mount pattern in it, the rewrites do not get 
applied.
I find that this is a problem in general that the web server rules get 
ignored when passed to the JkMount.



I prefer having my certs and SSL work happening in the web server level 
rather than the app server.
Is there a graceful way of transforming the URL that I'm overlooking 
besides putting it in the app code?


Thank you!

-Kiarna

Re: Tomcat change in PageContextImpl.setAttribute from 4.1.30 to 4.1.31 makes 4.1.31 unusable... please confirm if it`s a bug ?????

2005-12-12 Thread David Gagnon

Sorry I didn't read correctly  the Javadoc :-)



That's correct. According to the spec that Tim linked to:

   Throws:
   java.lang.NullPointerException - if the name or object is null

If you want to set it to null, call removeAttribute instead. This is
different from HttpSession.setAttribute and
ServletRequest.setAttribute, which explicitly say that setting null is
the same as calling removeAttribute. It's too bad that the spec is
inconsistent and a bit inconvenient for us, but that's how it is.
 

Yeah that bad .. in my case I finally use request.setAttribute instead 
and everything works perfectly.


Thanks for your help
/David





On 12/12/05, David Gagnon <[EMAIL PROTECTED]> wrote:
 


Hi

 As state in the javadoc it should throw NullPointerException  if name
is null (wich make sense).  But in the code they also throw an exception
if the the value (o) is null!

Regards
/David


 setAttribute

public abstract void *setAttribute*(java.lang.String name,
 java.lang.Object o,
 int scope)

   register the name and object specified with appropriate scope semantics

   *Parameters:*
   |name| - the name of the attribute to set
   |o| - the object to associate with the name
   |scope| - the scope with which to associate the name/object
   *Throws:*
   |java.lang.NullPointerException| - if the name or object is null
   |java.lang.IllegalArgumentException| - if the scope is invalid


*Throws:*
   |java.lang.NullPointerException| - if the name or object is null


4.1.31:
public void setAttribute(String name, Object o, int scope) {
  if (name == null) {
  throw new NullPointerException("name may not be null");
  }

  if (o == null) {
  throw new NullPointerException("object may not be null");
  }


Tim Funk wrote:

   


I am guesing it was a fix for spec compliance:

http://tomcat.apache.org/tomcat-4.1-doc/servletapi/javax/servlet/jsp/PageContext.html#setAttribute(java.lang.String,%20java.lang.Object,%20int)


-Tim

David Gagnon wrote:

 


Hi all,

I just installed a fresh tomcat 4.1.31 and run into this problem.
From 4.1.30 to 4.1.31 the PageContexImpl.setAttribute has change in a
way that make it  unusable.  I cannot set null attribute in the
pageContext ?!?!?!

So the following call throw an exception in 4.1.31:
  pageContext.setAttribute(LOOKUP_GROUP_DATA_KEY +
enclosingGroup.getGroup(), null, PageContext.REQUEST_SCOPE);

Is that mean I need to check if an attribute is null before putting
it into the pageContext It desn`t make sense to me?

This change make 4.1.31 totally unusable for me... Any idea on what I
can do? Or where I'm wrong?

Thanks for your help!

/David
   



--
Len

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


 




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



Moving a file

2005-12-12 Thread Jef Sullivan
Forgive the double posting on this message, if it occurs. 

I need help with some code..
I want to move a file (CVS) to another folder.
The code that I am using is this.

File file = new File("Summary_" + dateVar + ".csv");
File dir = new File(propStuff.getProperty("recordDir"));// value is
written C:\\Workspace\\Reports\\

boolean success = file.renameTo(new File(dir, file.getName()));
If (!success) {
// Error text
}

This keeps producing an error. The code is consistent on several websites
that I have found when googling 
on java: move a file. Any suggestions on how to get this working?




Jef



apache, tomcat http to https redirect

2005-12-12 Thread Terence M. Bandoian
Hi-

You might try using a security constraint in web.xml:



SSLPages
/*


CONFIDENTIAL



The web resource name and url pattern will have to be specified
according to your requirements.

-Terence M. Bandoian

>
> Good afternoon,
>
> I have a functional apache web server(2.0.52) and Tomcat(5.0.28) app
> server install. I'm trying to figure out the best way to do a redirect
> to enforce SSL logins.
> I can rewrite the URL with the webserver mod_rewrite BEFORE the
> JkMount directives are applied but not after as it is handed off to
> the Tomcat server.
> So if my URL has a tomcat mount pattern in it, the rewrites do not get
> applied.
> I find that this is a problem in general that the web server rules get
> ignored when passed to the JkMount.
>
>
> I prefer having my certs and SSL work happening in the web server
> level rather than the app server.
> Is there a graceful way of transforming the URL that I'm overlooking
> besides putting it in the app code?
>
> Thank you!
>
> -Kiarna


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



Need help with deployment

2005-12-12 Thread Mark Phillips
I have Tomcat 5.5.9 running on a Linux server. I am having hard time deploying 
war files remotely from my Linux desktop over the LAN. I have tried the 
following:

1. Upload war file using tomcat manager
I can access the war file on my local machine using the tomcat manager from 
the server. So, I select the war file and click on deploy. I get the error 
message - FAIL - Deploy Upload Failed, Exception: null

Do I have a permissions problem? I am deploying to /var/webapps (root.root) on 
the server from my local machine.

2. Deploy a local war file
I copy the war file to my local directory the server (not the appBase). I then 
try to deploy the file:

Context: /HopiRockets
URL: jar:file:/home/mark/HopiRockets/HopiRockets.war!/

and I get the error message: FAIL - Failed to deploy application at context 
path /HopiRockets

3. Copy the war file to /var/webapps/. Tomcat recognizes the application and 
it runs correctly. However, the application is never unpacked, so it is slow. 
The server.xml file is setup to automatically unpack the war file, but tomcat 
never does.



Perhaps permission problem? /var/webapps is owned by root.

Thanks for any help you can give me!

-- 
Mark Phillips
Phillips Marketing, Inc
[EMAIL PROTECTED]
602 524-0376
480 945-9197 fax

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



Securing File System Resources ?

2005-12-12 Thread Dov Rosenberg
Our application has its own security model that controls access to our
information based on our own roles and permissions. We store files related
to our application on the file system where our application is running.
These associated files are served out by a web server. Our goal is to come
up with a scheme where we could apply our security  model to control access
to these files via the web server. For example ­ someone associates a PDF
with some meta data. We don¹t want the user to be able to bookmark the
underlying URL and email it to their friends for them to download without
having them authenticated by our service.

We are looking at a couple of different ideas.

1. Create a servlet filter to sit in front of the resources requests and
somehow tie that into our application logic
2. Create a regular proxy type of servlet that can accept requests and
validate them using our security model
3. Figure out a way to secure the filesystem using a Proxy server of some
type.

Any other thoughts or ideas are appreciated. Thanks in advance



-- 
Dov Rosenberg
Conviveon/Inquira
Knowledge Management Experts
http://www.conviveon.com
http://www.inquira.com




RE: Securing File System Resources ?

2005-12-12 Thread Carl Olivier
Hi.

I have used option 1 in your list with no problem.  Others seem ok, but I
have not tried them - have an innate paranoia about proxies I guess.

Rgds,

Carl

-Original Message-
From: Dov Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: 13 December 2005 00:10
To: WebObjects Dev; Tapestry users; Tomcat Users List
Subject: Securing File System Resources ?

Our application has its own security model that controls access to our
information based on our own roles and permissions. We store files related
to our application on the file system where our application is running.
These associated files are served out by a web server. Our goal is to come
up with a scheme where we could apply our security  model to control access
to these files via the web server. For example ­ someone associates a PDF
with some meta data. We don¹t want the user to be able to bookmark the
underlying URL and email it to their friends for them to download without
having them authenticated by our service.

We are looking at a couple of different ideas.

1. Create a servlet filter to sit in front of the resources requests and
somehow tie that into our application logic 2. Create a regular proxy type
of servlet that can accept requests and validate them using our security
model 3. Figure out a way to secure the filesystem using a Proxy server of
some type.

Any other thoughts or ideas are appreciated. Thanks in advance



--
Dov Rosenberg
Conviveon/Inquira
Knowledge Management Experts
http://www.conviveon.com
http://www.inquira.com




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



setup for web designers?

2005-12-12 Thread rusty+tomcat
How do people set up their tomcat so that the web designers can work on the 
static content and the programmers can work on the jsp stuff without 
stepping on each other's toes?


In my case the web designers have already been working with apache with 
their files in /usr/local/apache/htdocs.


My first thought is to put tomcat behind apache with mod_jk but after some 
minimal testing I discovered that apache server side includes don't work; 
for example, if the html from my jsp has  that line isn't replaced and is sent to the 
browser. 



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



Re: setup for web designers?

2005-12-12 Thread Mark Phillips
Try using <%@ include file="header.html" %> instead.

Mark

On Monday 12 December 2005 06:29 pm, [EMAIL PROTECTED] wrote:
> How do people set up their tomcat so that the web designers can work on the
> static content and the programmers can work on the jsp stuff without
> stepping on each other's toes?
>
> In my case the web designers have already been working with apache with
> their files in /usr/local/apache/htdocs.
>
> My first thought is to put tomcat behind apache with mod_jk but after some
> minimal testing I discovered that apache server side includes don't work;
> for example, if the html from my jsp has  that line isn't replaced and is sent to the
> browser.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mark Phillips
Phillips Marketing, Inc
[EMAIL PROTECTED]
602 524-0376
480 945-9197 fax

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



RE: TOMCAT + DATASOURCE + CONNECTION POOL

2005-12-12 Thread Prathibha, Bharathi
Hi Karthik,
 
 
  
 

 U must have done some thing like this while configuring the
Datasource (in ur server.xml ) right?
 


Hope this helps,
Regards,
Prathibha. 
  

-Original Message-
From: Karthik [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 12, 2005 4:36 PM
To: TOMCAT
Subject: TOMCAT + DATASOURCE + CONNECTION POOL



Hi

   I have sucessfully created a JDBC connection using DataSource and
JNDI on Tomcat5.x

   Is it necessary for create a Connection POOL using this DataSource
based Jdbc Connnection
   or will the DataSource itself provides the Connection POOL for
managing the JDBC connections
   on startup ,if so what needs to be done to increase the size of the
connection pool size.





with regards
Karthik


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



What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
Hi,

What's the purpose of the common/lib/ext directory? Liferay bundled
with Tomcat contains a bunch of JAR files in this directory. I was
wondering what is the purpose of it. Can anybody explain this to me?

Thanks in advance,
Behi

--
"Science is a differential equation. Religion is a boundary limit" - Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

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



RE: What is the purpose of common/lib/ext directory?

2005-12-12 Thread Prathibha, Bharathi
Hi Behi,

are U talking about the directory under ${TOMCAT_HOME}/common? 
I don't find any such directory(ext) under
${TOMCAT_HOME}/common/lib. Usually ${TOMCAT_HOME}/common/lib is the
directory which contains jar files that are automatically on the
classpath and will be used by all web applications .

Regards,
Prathibha.




-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:24 AM
To: users@tomcat.apache.org
Subject: What is the purpose of common/lib/ext directory?

Hi,

What's the purpose of the common/lib/ext directory? Liferay bundled with
Tomcat contains a bunch of JAR files in this directory. I was wondering
what is the purpose of it. Can anybody explain this to me?

Thanks in advance,
Behi

--
"Science is a differential equation. Religion is a boundary limit" -
Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

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


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



Re: What is the purpose of common/lib/ext directory?

2005-12-12 Thread Behrang Saeedzadeh
Hi Prathibha,

> are U talking about the directory under ${TOMCAT_HOME}/common?

Yes. In 5.5.12 Tomcat doesn't have this directory. But I think that it
was available in 5.0.x and 4.x versions. The Liferay is bundled with a
JDK 1.4 compatible version of Tomcat which is not of the 5.5.x branch.
Any ideas :-?

Regards,
Behrang
--
"Science is a differential equation. Religion is a boundary limit" - Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

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



RE: What is the purpose of common/lib/ext directory?

2005-12-12 Thread Prathibha, Bharathi
Hi Behrang,
visit these links once -

http://www.liferay.com/web/guest/documentation/installation/tomcat
 
http://www.mpxsys.com/blojsom/blog/kyrylkov/Tomcat/2005/05/23/Liferay_Po
rtal_on_Tomcat_5_5_x_and_Tomcat_5_0_x.html
 http://forums.liferay.com/lofiversion/index.php/t1441.html 
   I think u need to put ur jar files related to liferay under
common/lib/ext for ex to hot deploy war files etc .. Don't know more
than this about liferay!I never did use this.

Hope this helps,
Regards,
Prathibha.
-Original Message-
From: Behrang Saeedzadeh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 13, 2005 11:37 AM
To: Tomcat Users List
Subject: Re: What is the purpose of common/lib/ext directory?

Hi Prathibha,

> are U talking about the directory under ${TOMCAT_HOME}/common?

Yes. In 5.5.12 Tomcat doesn't have this directory. But I think that it
was available in 5.0.x and 4.x versions. The Liferay is bundled with a
JDK 1.4 compatible version of Tomcat which is not of the 5.5.x branch.
Any ideas :-?

Regards,
Behrang
--
"Science is a differential equation. Religion is a boundary limit" -
Alan Turing

Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
http://my.opera.com/behrangsa

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


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



Antwort: Need help with deployment

2005-12-12 Thread Jan Behrens
I am not a Linux man myself but I would think that you do have a problem 
with the access rights - unless Tomcat is running as root, which I thing 
would be even worse. If not, the Tomcat user will need rw access to its 
webapp dir (and should own it) in order to unpack anything.

HTH, Jan

Mark Phillips <[EMAIL PROTECTED]> schrieb am 13.12.2005 00:32:42:

> I have Tomcat 5.5.9 running on a Linux server. I am having hard 
timedeploying 
> war files remotely from my Linux desktop over the LAN. I have tried the 
> following:
> 
> 1. Upload war file using tomcat manager
> I can access the war file on my local machine using the tomcat manager 
from 
> the server. So, I select the war file and click on deploy. I get the 
error 
> message - FAIL - Deploy Upload Failed, Exception: null
> 
> Do I have a permissions problem? I am deploying to /var/webapps 
> (root.root) on 
> the server from my local machine.
> 
> 2. Deploy a local war file
> I copy the war file to my local directory the server (not the 
> appBase). I then 
> try to deploy the file:
> 
> Context: /HopiRockets
> URL: jar:file:/home/mark/HopiRockets/HopiRockets.war!/
> 
> and I get the error message: FAIL - Failed to deploy application at 
context 
> path /HopiRockets
> 
> 3. Copy the war file to /var/webapps/. Tomcat recognizes the application 
and 
> it runs correctly. However, the application is never unpacked, so itis 
slow. 
> The server.xml file is setup to automatically unpack the war file, but 
tomcat 
> never does.
> 
> unpackWARs="true" autoDeploy="true"
>xmlValidation="false" xmlNamespaceAware="false">
> 
> Perhaps permission problem? /var/webapps is owned by root.
> 
> Thanks for any help you can give me!
> 
> -- 
> Mark Phillips
> Phillips Marketing, Inc
> [EMAIL PROTECTED]
> 602 524-0376
> 480 945-9197 fax
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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