The end tag /html:form is unbalanced' in tomcat 5.0

2006-06-07 Thread Colin Chiew

I'm getting The end tag /html:form is unbalanced' errors in my JSP forms
on Tomcat 5.0.x. This does not happen when the same form runs on Tomcat 4.x.
I'm figuring some out of date jars in my apps. Anyone encounters this issue?

Thanks in advance.

Colin.


Re: SSL Setup

2006-06-07 Thread Jack

You can download the strong encryption mechanisms here:
   http://java.sun.com/j2se/1.4.2/download.html

(Right at the bottom of the page) Java Cryptography Extension (JCE)
Unlimited Strength Jurisdiction Policy Files 1.4.2




On 06/06/06, Roch [EMAIL PROTECTED] wrote:


How do I check to see if I have the strong encrytion algorithms in the JDK?
--
View this message in context: 
http://www.nabble.com/SSL-Setup-t1710991.html#a4733795
Sent from the Tomcat - User forum at Nabble.com.


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





--
Cheers
Jack...

The claim natural is not synonymous with safe.

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



SV: The end tag /html:form is unbalanced' in tomcat 5.0

2006-06-07 Thread Tommy Skarateppen
Hi,
I had the same problem a while ago. I had commented out some code in my
jsp with !-- ... --. In those comments I had some struts html tags,
which was unbalanced. When running on Tomcat 4.x, those comments where
ignored and I got no errors, but on Tomcat 5.0.x, I got the the
unbalanced error.

-tommy

-Opprinnelig melding-
Fra: Colin Chiew [mailto:[EMAIL PROTECTED] 
Sendt: 7. juni 2006 08:27
Til: users@tomcat.apache.org
Emne: The end tag /html:form is unbalanced' in tomcat 5.0


I'm getting The end tag /html:form is unbalanced' errors in my JSP
forms on Tomcat 5.0.x. This does not happen when the same form runs on
Tomcat 4.x. I'm figuring some out of date jars in my apps. Anyone
encounters this issue?

Thanks in advance.

Colin.


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



pet store example for tomcat

2006-06-07 Thread Iratxe Etxeberria Sainz-Ezquerra






Hello,
I am looking for a sample application for tomcat, like pet store, but
I cant find it. I need it to test the behaviour of tomcat and oraclr 10g
RAC.
Thanks in advance,
 Iratxe
 
-
Iratxe Etxebarria Sainz-Ezkerra
Soporte Middleware
External Global Services
Tfno: 946 584 773 / 628 717 375




-

- Este mensaje y los documentos que, en su caso, lleve anexos, pueden contener 
informacion confidencial. Por ello, se informa a quien lo reciba por error que 
la informacion contenida en el mismo es reservada y su uso no autorizado esta 
prohibido legalmente, por lo que en tal caso le rogamos que nos lo comunique 
por la misma via , se abstenga de realizar copias del mensaje o remitirlo o 
entregarlo a otra persona y proceda a borrarlo de inmediato.

- Mezu honek eta erantsita dituen agiriek (baldin baditu) isilpeko informazioa 
izan dezakete. Hori dela eta, hutsegite baten ondorioz jasotzen duenak jakin 
beza bertan dagoen informazioa ezkutukoa dela eta legeak galarazi egiten duela 
berori baimenik gabe erabiltzea.

- Aquest missatge i els documents que, donat el cas, portin annexes, poden 
contenir informacio confidencial. Per aquest motiu, se n'informa a qui el rebi 
per error que la informacio continguda es reservada i que el seu us no esta 
legalment autoritzat.

- Esta mensaxe e os documentos que, no seu caso, leven anexos, poden conter 
informacion confidencial. Por isto, informase a quen o reciba por erro que a 
informacion contida no mesmo e reservada e o seu uso non autorizado. Esta 
prohibido legalmente.

- This message together with any documents attached may contain confidential 
information. You are informed that if you should receive it by mistake, the 
information it contains is reserved and its use is not authorised. It is 
legally prohibited. If you have received this message by mistake, please let us 
know as soon as possible by e-mail. Do not make any copies of the message, nor 
send it or give it to anybody else. Please delete it right away.

tomcat 5.0 logging 1970

2006-06-07 Thread Kaiser Rudolf
Hi,
I got a tomcat (5.0.19) installation with an application. In the
catalina.out and in the .log files there are sometimes entries datet
1970-01-01 01:00:00,000. Where do they come from and what can I do to get
a real timestamp?
There are also entries like:
01.01.1970 01:00:00 org.apache.jk.server.JkCoyoteHandler action
or
01.01.1970 01:00:00 org.apache.jk.common.ChannelSocket processConnection

But there are also correct entries like:
07.06.2006 09:41:33 org.apache.jk.server.JkMain start

Thanks
Rudi



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



Re: Undeploy task not working

2006-06-07 Thread Venkatesh Babu
Hi,

Thanks for the replies and suggestions. I'm running
Tomcat on a Windows 2000 machine. I saw the directory
permissions and it is just an Archive set. Also, our
webapp is not having any database connection open.

Still I'm unable to undeploy the app using undeploy
target.

Thank you,
Venkatesh

--- Marc Farrow [EMAIL PROTECTED] wrote:

 It also could be a permissions problem.  What
 platform is the server?  I
 know on OpenVMS that if you use the manager
 application to deploy an
 application and then try to undeploy it, the
 permissions on the directory
 are not correct and thus it cannot delete the
 directories.  (There is a
 logical to change this behavior for OpenVMS).  So I
 would suggest to check
 your permissions before you try to undeploy and make
 sure you have delete
 privileges.
 
 HTH
 
 
 On 6/6/06, Peter Hubbard [EMAIL PROTECTED]
 wrote:
 
  On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu
 wrote:
   Hello All,
  
   I'm using Tomcat 4.1 and trying to
 deploy/undeploy
   application using ant targets.
  
   Earlier I posted a mail on deploy task not
 working due
   to some protocol error. Got the solution for
 that :-)
  
   But right now undeploy task is not working. It
 is
   giving an error saying:
  
   FAIL - Cannot remove document base for path
 /app1
 
  I found this often happened to me if there were
 open database
  connections in the webapp, and I tried to undeploy
 it before stopping
  it.
 
 
  --
  Peter Hubbard [EMAIL PROTECTED]
 
 
 

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


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

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



Re: Undeploy task not working

2006-06-07 Thread Alberto Montoya

2006/6/7, Venkatesh Babu [EMAIL PROTECTED]:


Hi,



Hi,

Thanks for the replies and suggestions. I'm running

Tomcat on a Windows 2000 machine. I saw the directory
permissions and it is just an Archive set. Also, our
webapp is not having any database connection open.

Still I'm unable to undeploy the app using undeploy
target.



I've noticed that, sometimes, I can't undeploy my application and It's due
that Tomcat can't remove my application directory, so I have to remove it
manually after stopping Tomcat.

Thank you,

Venkatesh

--- Marc Farrow [EMAIL PROTECTED] wrote:

 It also could be a permissions problem.  What
 platform is the server?  I
 know on OpenVMS that if you use the manager
 application to deploy an
 application and then try to undeploy it, the
 permissions on the directory
 are not correct and thus it cannot delete the
 directories.  (There is a
 logical to change this behavior for OpenVMS).  So I
 would suggest to check
 your permissions before you try to undeploy and make
 sure you have delete
 privileges.

 HTH


 On 6/6/06, Peter Hubbard [EMAIL PROTECTED]
 wrote:
 
  On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu
 wrote:
   Hello All,
  
   I'm using Tomcat 4.1 and trying to
 deploy/undeploy
   application using ant targets.
  
   Earlier I posted a mail on deploy task not
 working due
   to some protocol error. Got the solution for
 that :-)
  
   But right now undeploy task is not working. It
 is
   giving an error saying:
  
   FAIL - Cannot remove document base for path
 /app1
 
  I found this often happened to me if there were
 open database
  connections in the webapp, and I tried to undeploy
 it before stopping
  it.
 
 
  --
  Peter Hubbard [EMAIL PROTECTED]
 
 
 

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


 --
 Marc Farrow



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

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




How to override UTF-8 character encoding with tomcat 5.5

2006-06-07 Thread Håkan Sjögren

I have a tomcat 5.5 server running utf-8. For this I  included
URIEncoding=UTF-8 in the server.xml for port80 in order fo r the browser
to be able to access files with embedded swedish characters in the .

How to run an older application that needs iso8859-1? Any directive in the
web.xml or someting else to do?
-Håkan

--
Address: Dalvägen 23, 187 31 Täby, Sweden
Email: [EMAIL PROTECTED]
Web:   www.sonoconsult.se
Tel: +46 8 544 727 10
Mobile   : +46 708 758 411


Re: Undeploy task not working

2006-06-07 Thread Marc Farrow

Which still implies a permission problem.  On Windows 2000 check the
security tab of the webapps folder under Tomcat.  Make sure the account that
is running Tomcat has permission to delete.  The archive set is the file
type and doesn't really have much to do with permissions.

On 6/7/06, Alberto Montoya [EMAIL PROTECTED] wrote:


2006/6/7, Venkatesh Babu [EMAIL PROTECTED]:

 Hi,


Hi,

Thanks for the replies and suggestions. I'm running
 Tomcat on a Windows 2000 machine. I saw the directory
 permissions and it is just an Archive set. Also, our
 webapp is not having any database connection open.

 Still I'm unable to undeploy the app using undeploy
 target.


I've noticed that, sometimes, I can't undeploy my application and It's due
that Tomcat can't remove my application directory, so I have to remove it
manually after stopping Tomcat.

Thank you,
 Venkatesh

 --- Marc Farrow [EMAIL PROTECTED] wrote:

  It also could be a permissions problem.  What
  platform is the server?  I
  know on OpenVMS that if you use the manager
  application to deploy an
  application and then try to undeploy it, the
  permissions on the directory
  are not correct and thus it cannot delete the
  directories.  (There is a
  logical to change this behavior for OpenVMS).  So I
  would suggest to check
  your permissions before you try to undeploy and make
  sure you have delete
  privileges.
 
  HTH
 
 
  On 6/6/06, Peter Hubbard [EMAIL PROTECTED]
  wrote:
  
   On Mon, 2006-06-05 at 23:40 -0700, Venkatesh Babu
  wrote:
Hello All,
   
I'm using Tomcat 4.1 and trying to
  deploy/undeploy
application using ant targets.
   
Earlier I posted a mail on deploy task not
  working due
to some protocol error. Got the solution for
  that :-)
   
But right now undeploy task is not working. It
  is
giving an error saying:
   
FAIL - Cannot remove document base for path
  /app1
  
   I found this often happened to me if there were
  open database
   connections in the webapp, and I tried to undeploy
  it before stopping
   it.
  
  
   --
   Peter Hubbard [EMAIL PROTECTED]
  
  
  
 
 -
   To start a new topic, e-mail:
  users@tomcat.apache.org
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
  --
  Marc Farrow
 


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

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







--
Marc Farrow


Re: Random NullPointerException when trying to connect to Datasource

2006-06-07 Thread Brian Vuyk

Still wondering if anyone has any thoughts on this.

I appreciate any help.

Brian

On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:

I feel compelled to also mention that I have rebooted the system, with
still the same effect.

On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
 Hello.


 I am currently developing a JSP webapp for my employer, andhave run
 into a couple of serious problems.

 Randomly, tomcat seems to be losing it's ability to connect to the
 mySQL server running on the same server as Tomcat.

 Scenario:

 This morning I was using the webapp no problem. I made a small change
 to correct a typo in some displayed text, and then re-deployed the
 webapp. Upon attempting to log into the webapp I was unable to connect
 to the database. I recieved the below error.

 Steps Taken:

 I have restarted both Tomcat and mySQL, with no change. I have double
 checked my source code, and I do not think the issue is with the
 source itself. I have attempted re-deploying the webapp, including an
 archived, known good version. The result was the same exception posted
 above.

 I can log into the mySQL database from the command-line without any
 issue at all.

 Thank you in advance for any help.

 Brian Vuyk

 Tomcat error taken from logs
 --
 2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service() for
 servlet jsp threw exception
 javax.servlet.jsp.JspException: Unable to get connection, DataSource
 invalid: java.lang.NullPointerException
 at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)
 at 
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)
 at 
org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_jsp.java:286)
 at 
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:110)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
 at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:595)
 



 Version Information:
 
---
 Tomcat 5.5.17
 
---
 

RE: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem after migrating to tomcat 5.5.16 from tomcat 5.0.28)

2006-06-07 Thread Vijaya

Hi,

I am sorry for being vague in my earlier mail. This is the background of
my problem.

We developed the portal using Tomcat 5.0.28. In this version we
connected to the database (SQL Server) without the JNDI lookup. I.e. get
the data source from the request object. Also we configured the
struts-config.xml to have the db definitions. Everything worked okay
till we moved the application to staging server.

The staging server has tomcat 5.5.16 and when we deployed the
application as it is, we got a 404 error (Servlet action not available).
So I downloaded tomcat 5.5.16 in my development machine as a stand-alone
tomcat and I deployed the application in my development machine. 

The 404 error was fixed when I connected to the DB using JNDI lookup (by
making changes to server.xml and application web.xml and the action
coded to get the data source using the context). However, I am now
getting a Nullpointer exception while connecting to database. 

Jtds is the third party jdbc driver used to connect to the SQL Server.

I am totally frustrated with this problem and do not have a clue what
could be wrong.

Any help is greatly appreciated.

Thanks in advance for all help.

Regards,
Vijaya

--- Vijaya [EMAIL PROTECTED] wrote:

 Hi,
  
 I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
 to connect to a
 remote SQL Server. I am using jtds. I am not
 successful in using both
 NB50 and Tomcat 5.5.16 together. NB5.0 comes with
 bundled tomcat 5.5.9
 and if I use this, I get a '404 error' while
 accessing the remote
 sql*server.
  
 Can someone help me on this? Is there a problem with
 NetBeans 5.0? 
  
 Is there any other IDE can I use?
  
 Lastly, is there a tomcat user group in Bangalore,
 India?
  
 Thanks in advance for your help.
  
 Vijaya
 

One, your question is terribly vague.  I get a 404
when  accessing the remote sql server?  Are you trying
to connect to a JSP page under your Tomcat?  Are you
running the web application in Netbeans?  Did NB
launch your external browser and point you to the
running Tomcat instance address and port?  Are you
running a different version of Tomcat then the one
that shipped with it?  Are you actually running it in
Netbeans?  Have you ever used JDBC and jTDS together
and that is working fine?  Have you gotten it working
in other web applications period?  I'm on both this
list and the NB list.  You can ask your question
there, but if it comes down to something with your
configuration and Tomcat you might be directed back
here.  Ask on [EMAIL PROTECTED] (you'll need to
sign up for the list).  You'll need to provide some
common sense basics though to help someone help you.

Wade

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






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



RE: Random NullPointerException when trying to connect to Datasource

2006-06-07 Thread Vijaya
Did you by chance miss any quotes while correcting the typo of the
displayed text?

Vijaya 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Brian Vuyk
Sent: Wednesday, June 07, 2006 5:38 PM
To: users@tomcat.apache.org
Subject: Re: Random NullPointerException when trying to connect to
Datasource

Still wondering if anyone has any thoughts on this.

I appreciate any help.

Brian

On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
 I feel compelled to also mention that I have rebooted the system, with
 still the same effect.

 On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
  Hello.
 
 
  I am currently developing a JSP webapp for my employer, andhave run
  into a couple of serious problems.
 
  Randomly, tomcat seems to be losing it's ability to connect to the
  mySQL server running on the same server as Tomcat.
 
  Scenario:
 
  This morning I was using the webapp no problem. I made a small
change
  to correct a typo in some displayed text, and then re-deployed the
  webapp. Upon attempting to log into the webapp I was unable to
connect
  to the database. I recieved the below error.
 
  Steps Taken:
 
  I have restarted both Tomcat and mySQL, with no change. I have
double
  checked my source code, and I do not think the issue is with the
  source itself. I have attempted re-deploying the webapp, including
an
  archived, known good version. The result was the same exception
posted
  above.
 
  I can log into the mySQL database from the command-line without any
  issue at all.
 
  Thank you in advance for any help.
 
  Brian Vuyk
 
  Tomcat error taken from logs
 
--
  2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service() for
  servlet jsp threw exception
  javax.servlet.jsp.JspException: Unable to get connection, DataSource
  invalid: java.lang.NullPointerException
  at
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection
(QueryTagSupport.java:276)
  at
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Qu
eryTagSupport.java:159)
  at
org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_
jsp.java:286)
  at
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:11
0)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
  at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
  at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
  at

Re: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem after migrating to tomcat 5.5.16 from tomcat 5.0.28)

2006-06-07 Thread Marc Farrow

It might be helpful to post your web.xml and context.xml (appname.xml or the
server.xml if your context tag is still in there).



On 6/7/06, Vijaya [EMAIL PROTECTED] wrote:



Hi,

I am sorry for being vague in my earlier mail. This is the background of
my problem.

We developed the portal using Tomcat 5.0.28. In this version we
connected to the database (SQL Server) without the JNDI lookup. I.e. get
the data source from the request object. Also we configured the
struts-config.xml to have the db definitions. Everything worked okay
till we moved the application to staging server.

The staging server has tomcat 5.5.16 and when we deployed the
application as it is, we got a 404 error (Servlet action not available).
So I downloaded tomcat 5.5.16 in my development machine as a stand-alone
tomcat and I deployed the application in my development machine.

The 404 error was fixed when I connected to the DB using JNDI lookup (by
making changes to server.xml and application web.xml and the action
coded to get the data source using the context). However, I am now
getting a Nullpointer exception while connecting to database.

Jtds is the third party jdbc driver used to connect to the SQL Server.

I am totally frustrated with this problem and do not have a clue what
could be wrong.

Any help is greatly appreciated.

Thanks in advance for all help.

Regards,
Vijaya

--- Vijaya [EMAIL PROTECTED] wrote:

 Hi,

 I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
 to connect to a
 remote SQL Server. I am using jtds. I am not
 successful in using both
 NB50 and Tomcat 5.5.16 together. NB5.0 comes with
 bundled tomcat 5.5.9
 and if I use this, I get a '404 error' while
 accessing the remote
 sql*server.

 Can someone help me on this? Is there a problem with
 NetBeans 5.0?

 Is there any other IDE can I use?

 Lastly, is there a tomcat user group in Bangalore,
 India?

 Thanks in advance for your help.

 Vijaya


One, your question is terribly vague.  I get a 404
when  accessing the remote sql server?  Are you trying
to connect to a JSP page under your Tomcat?  Are you
running the web application in Netbeans?  Did NB
launch your external browser and point you to the
running Tomcat instance address and port?  Are you
running a different version of Tomcat then the one
that shipped with it?  Are you actually running it in
Netbeans?  Have you ever used JDBC and jTDS together
and that is working fine?  Have you gotten it working
in other web applications period?  I'm on both this
list and the NB list.  You can ask your question
there, but if it comes down to something with your
configuration and Tomcat you might be directed back
here.  Ask on [EMAIL PROTECTED] (you'll need to
sign up for the list).  You'll need to provide some
common sense basics though to help someone help you.

Wade

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






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





--
Marc Farrow


Re: Random NullPointerException when trying to connect to Datasource

2006-06-07 Thread Brian Vuyk

Thank you for your reply.

Unfortunately, no, I did not. I have checked my JSP over a few times,
and as far as I can tell, the syntax is correct.

Also, this error does not occur only in a specific page - no
connection to the databse works, regardless of the page.



On 6/7/06, Vijaya [EMAIL PROTECTED] wrote:

Did you by chance miss any quotes while correcting the typo of the
displayed text?

Vijaya

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Brian Vuyk
Sent: Wednesday, June 07, 2006 5:38 PM
To: users@tomcat.apache.org
Subject: Re: Random NullPointerException when trying to connect to
Datasource

Still wondering if anyone has any thoughts on this.

I appreciate any help.

Brian

On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
 I feel compelled to also mention that I have rebooted the system, with
 still the same effect.

 On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
  Hello.
 
 
  I am currently developing a JSP webapp for my employer, andhave run
  into a couple of serious problems.
 
  Randomly, tomcat seems to be losing it's ability to connect to the
  mySQL server running on the same server as Tomcat.
 
  Scenario:
 
  This morning I was using the webapp no problem. I made a small
change
  to correct a typo in some displayed text, and then re-deployed the
  webapp. Upon attempting to log into the webapp I was unable to
connect
  to the database. I recieved the below error.
 
  Steps Taken:
 
  I have restarted both Tomcat and mySQL, with no change. I have
double
  checked my source code, and I do not think the issue is with the
  source itself. I have attempted re-deploying the webapp, including
an
  archived, known good version. The result was the same exception
posted
  above.
 
  I can log into the mySQL database from the command-line without any
  issue at all.
 
  Thank you in advance for any help.
 
  Brian Vuyk
 
  Tomcat error taken from logs
 
--
  2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service() for
  servlet jsp threw exception
  javax.servlet.jsp.JspException: Unable to get connection, DataSource
  invalid: java.lang.NullPointerException
  at
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection
(QueryTagSupport.java:276)
  at
org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Qu
eryTagSupport.java:159)
  at
org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_
jsp.java:286)
  at
org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:11
0)
  at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)
  at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)
  at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)
  at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)
  at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at

NT authentication and ssl

2006-06-07 Thread kj1003

Hi,

We are using JAAS/tagish to do NT authentication. We are using basic
container managed authentication. Since this is over HTTP what is the
simplest way of securing the password over the wire? If we switch to Form
based authentication and use user data constrain on the custom login form,
will that work? 

Thanks for the help. 
--
View this message in context: 
http://www.nabble.com/NT-authentication-and-ssl-t1747859.html#a4751150
Sent from the Tomcat - User forum at Nabble.com.


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



Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Oliver Enders



Hy List,

I have a problem concerning submitting form-data by using POST.

If I send the form using GET, the content of the form can be read out using: 

request.getParameter(xyz);

If I change to POST,  the parameters can not be read out.

I´m using am Tomcat 4.1.

Any Ideas ? Suggestions ?

Thanx in advance
Ön

Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Marc Farrow

This could be any number of issues from browser bugs on.  What browser are
you using?  Also, can you post the rendered HTML page that is submitting the
request to the servlet?




On 6/7/06, Oliver Enders [EMAIL PROTECTED] wrote:





Hy List,

I have a problem concerning submitting form-data by using POST.

If I send the form using GET, the content of the form can be read out
using:

request.getParameter(xyz);

If I change to POST,  the parameters can not be read out.

I´m using am Tomcat 4.1.

Any Ideas ? Suggestions ?

Thanx in advance
Ön





--
Marc Farrow


Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Oliver Enders

Browser is IE6.0, here´s the code:

%
String m = request.getParameter(m);
String flf = request.getParameter(flf);
String modeDisp = Display;

if(flf == null){
 flf = 1;
}

if(m != null){
 if(m.equalsIgnoreCase(c)) {
   modeDisp = Create;
 } else if (m.equalsIgnoreCase(m)) {
   modeDisp = Modify;
 } else if (m.equalsIgnoreCase(d)) {
   modeDisp = Delete;
 } else {
   modeDisp = Display;
 }
}

%
html
head
 meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
 link rel=stylesheet type=text/css href=inc/eod.css
 title%=modeDisp% Test Request/title
/head
body
 m: %=m%BR
 flf: %=flf%BR
 %
 Enumeration enumeration = request.getParameterNames();
  while (enumeration.hasMoreElements()) {
 String name = (String)enumeration.nextElement();
 %
 Feld: %=name% BR
 %
  }
  %
 table class=tab1 cellspacing=0 cellpadding=0
   tr class=zeile_header
   td class=standardHeader colspan=3%=modeDisp% Test Request 
(%=m%)/td

   /tr
   %
   if(flf.equals(1)){
   %
form name=HandleTR action=HandleTest.jsp method=post 
enctype=multipart/form-data

  trtd colspan=3fl input type=submit value=go!/td/tr
  input type=hidden name=flf value=0
  input type=hidden name=m value=%=m%
/form
   %
   } else {
   %
 trtd colspan=3kein fl/td/tr
   %
   }
   %
 /table
/body
/html

The pages is submitted to itself.  flf is used to define two different 
contents.


Thanx in advance
Ön

- Original Message - 
From: Marc Farrow [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 07, 2006 4:25 PM
Subject: Re: Fw: POST-Data from Form can not be read-out



This could be any number of issues from browser bugs on.  What browser are
you using?  Also, can you post the rendered HTML page that is submitting 
the

request to the servlet?




On 6/7/06, Oliver Enders [EMAIL PROTECTED] wrote:





Hy List,

I have a problem concerning submitting form-data by using POST.

If I send the form using GET, the content of the form can be read out
using:

request.getParameter(xyz);

If I change to POST,  the parameters can not be read out.

I´m using am Tomcat 4.1.

Any Ideas ? Suggestions ?

Thanx in advance
Ön





--
Marc Farrow




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



Mod_jk binary Solaris 10 compatible?

2006-06-07 Thread Mann, Bradley
Hello,

I am having extreme difficulty building the mod_jk.so binary on Solaris
10. I was wondering if the mod_jk binary provided by Apache is Solaris
10 compatible, since in the file name it specifically references Solaris
8.

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292



Re: Tomcat creating two threads for one request

2006-06-07 Thread Sourabh Antani
Nikita, 
   
  Thanks for your reply.
   
  I dont seem to be missing any parameters. I dont see anywhere that tomcat is 
listening to two ports, do you know any specific place to look for it? 
   
  Regards
  sourabh

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

struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi everyone, 

 

When I start Tomcat 5.0.28, it says that I have a parsing error in my
struts-config.xml, but I think it's not.

The log file throws a java.lang.NoSuchMethodException : bean has no property
named loginRequired

 

Regards,

 

Olivier BEX



Re: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
Olivier, can you post your struts-config.xml file here, or is it too
large?  You also may want to move this over to the Struts @user list,
chances are its more appropriate there.

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, June 7, 2006 12:06 pm, Olivier Bex wrote:
 Hi everyone,



 When I start Tomcat 5.0.28, it says that I have a parsing error in my
 struts-config.xml, but I think it's not.

 The log file throws a java.lang.NoSuchMethodException : bean has no
 property
 named loginRequired



 Regards,



 Olivier BEX




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



Re: Tomcat creating two threads for one request

2006-06-07 Thread Jon Wingfield
I would turn on the access logs (if you haven't already) and check that 
the browser isn't actually sending two requests.

This can sometimes happen if the user double-clicks submit buttons.
There are plenty of threads in the archives of this list suggesting ways 
to mitigate this double-submission problem.


HTH,

Jon

Nikita Tovstoles wrote:

Sourab,

I'm facing the exactly same problem and yet to find a solution. Is your 
Tomcat instance listening on 2 ports by chance? Also is the 
request.getParameterMap() of one of those parallel requests missing any 
query parameters?


-nikita

Sourabh Antani wrote:
Hi,  I am facing this situation. I have a login screen, when the 
user clics the submit button, Tomcat sometimes creates two threads in 
parallel to process the request. This causes a problem with the 
database. This does not always happen. Most of the time it creates 
only one thread as expected. However, every once in a while it will 
create two threads that run in parallel.  Any ideas?

Thanks,
 Sourabh Antani

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





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




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



Re: struts-config xml file throws a java exception

2006-06-07 Thread David Smith

1. This might be better diagnosed on a struts user list.

2. Could you provide some context for the reference to loginRequired in 
your struts-config.xml?  I'm not familiar with any configuration 
elements or attributes in struts-config.xml named 'loginRequired'.


--David

Olivier Bex wrote:

Hi everyone, 




When I start Tomcat 5.0.28, it says that I have a parsing error in my
struts-config.xml, but I think it's not.

The log file throws a java.lang.NoSuchMethodException : bean has no property
named loginRequired



Regards,



Olivier BEX


 




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



RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi Frank, thanks for the advice. I have sent a mail to struts users.

Here is my struts-config.xml : 

- struts-config
- data-sources
- data-source
  [...]
  /data-source
  /data-sources
- form-beans
  [...]
  /form-beans
- global-forwards
  forward name=login path=/login.jsp / 
  /global-forwards
- action-mappings
- action path=/Login type=com.eyrolles.LoginAction validate=true
input=/login.jsp name=loginForm scope=request
  forward name=success path=/EmployeListe.do / 
  /action
- action path=/EmployeListe type=com.eyrolles.EmployeListeAction
scope=request
  set-property property=loginRequired value=true / 
  forward name=success path=/employeliste.jsp / 
  /action
- action path=/Add type=com.eyrolles.AddEmployeAction
name=employeForm scope=request input=/addemploye.jsp validate=true
  set-property property=loginRequired value=true / 
  forward name=success path=/EmployeListe.do / 
  forward name=error path=/addemploye.jsp / 
  /action
- action path=/Edit type=com.eyrolles.GetEmployeAction
name=employeForm scope=request validate=false
  set-property property=loginRequired value=true / 
  forward name=success path=/editemploye.jsp / 
  forward name=error path=/EmployeListe.do / 
  /action
- [...]
  /action-mappings
  message-resources parameter=com.eyrolles.ApplicationResources / 
  /struts-config

-Message d'origine-
De : Frank W. Zammetti [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 7 juin 2006 18:07
À : Tomcat Users List
Cc : users@tomcat.apache.org
Objet : Re: struts-config xml file throws a java exception

Olivier, can you post your struts-config.xml file here, or is it too
large?  You also may want to move this over to the Struts @user list,
chances are its more appropriate there.

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

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



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



RE: struts-config xml file throws a java exception

2006-06-07 Thread Olivier Bex
Hi David,

Thanks for your advice. I have sent a mail to struts users mailing list.

Here is sample of my struts-config.xml : 

- struts-config
- data-sources
- data-source
  set-property property=driverClass value=org.gjt.mm.mysql.Driver / 
  set-property property=url value=jdbc:mysql://localhost/employes / 
  set-property property=maxCount value=5 / 
  set-property property=minCount value=1 / 
  set-property property=user value=root / 
  set-property property=password value=root / 
  /data-source
  /data-sources
- form-beans
  form-bean name=loginForm type=com.eyrolles.LoginForm / 
  form-bean name=employeForm type=com.eyrolles.EmployeForm / 
  /form-beans
- global-forwards
  forward name=login path=/login.jsp / 
  /global-forwards
- action-mappings
- action path=/Login type=com.eyrolles.LoginAction validate=true
input=/login.jsp name=loginForm scope=request
  forward name=success path=/EmployeListe.do / 
  /action
- action path=/EmployeListe type=com.eyrolles.EmployeListeAction
scope=request
  set-property property=loginRequired value=true / 
  forward name=success path=/employeliste.jsp / 
  /action
- action path=/Add type=com.eyrolles.AddEmployeAction
name=employeForm scope=request input=/addemploye.jsp validate=true
  set-property property=loginRequired value=true / 
  forward name=success path=/EmployeListe.do / 
  forward name=error path=/addemploye.jsp / 
  /action
[...]
  /action-mappings
  message-resources parameter=com.eyrolles.ApplicationResources / 
  /struts-config

-Message d'origine-
De : David Smith [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 7 juin 2006 18:25
À : Tomcat Users List
Objet : Re: struts-config xml file throws a java exception

1. This might be better diagnosed on a struts user list.

2. Could you provide some context for the reference to loginRequired in 
your struts-config.xml?  I'm not familiar with any configuration 
elements or attributes in struts-config.xml named 'loginRequired'.

--David



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



Re: Tomcat creating two threads for one request

2006-06-07 Thread Nikita Tovstoles
I know double-submission isn't part of my problem, because the client 
sending these requests is our in-house C app.


-nikita

Jon Wingfield wrote:
I would turn on the access logs (if you haven't already) and check 
that the browser isn't actually sending two requests.

This can sometimes happen if the user double-clicks submit buttons.
There are plenty of threads in the archives of this list suggesting 
ways to mitigate this double-submission problem.


HTH,

Jon

Nikita Tovstoles wrote:

Sourab,

I'm facing the exactly same problem and yet to find a solution. Is 
your Tomcat instance listening on 2 ports by chance? Also is the 
request.getParameterMap() of one of those parallel requests missing 
any query parameters?


-nikita

Sourabh Antani wrote:
Hi,  I am facing this situation. I have a login screen, when the 
user clics the submit button, Tomcat sometimes creates two threads 
in parallel to process the request. This causes a problem with the 
database. This does not always happen. Most of the time it creates 
only one thread as expected. However, every once in a while it will 
create two threads that run in parallel.  Any ideas?

Thanks,
 Sourabh Antani

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





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




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



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

Re: Tomcat creating two threads for one request

2006-06-07 Thread Nikita Tovstoles
take a look at $CATALINA_BASE/conf/server.xml; each port is defined as 
Connector


-nikita

Sourabh Antani wrote:
Nikita, 
   
  Thanks for your reply.
   
  I dont seem to be missing any parameters. I dont see anywhere that tomcat is listening to two ports, do you know any specific place to look for it? 
   
  Regards

  sourabh

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


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

Webapp Reload

2006-06-07 Thread Asensio, Rodrigo
Hello,
We have a call center webapp with 100 simultaneous sessions all
time ( 24/7 ). This webapp has several sections that are updated with
new JSPs or Java Classes like 3 times a week.
Each time that we need update the webapp all users loose their sessions.
This is a big problem all time. Our solution was create a mirror server.
Then, each time that we need update server#1, everybody moves to #2. But
this solution I don't like at all.

If I have to update just JSPs there is no problem. But the big issue is
if I have to change class files. They do not take effect until next
tomcat restar or webapp reload.

Is there any way to avoid this ? Like a replace classes in the
classloader ? Or load dinamically new classes ?

Thanks all.

---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]

This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law.  If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system.  If you
have any questions about this e-mail please notify the sender
immediately.

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



RE: struts-config xml file throws a java exception

2006-06-07 Thread Frank W. Zammetti
Olivier, what version of Struts are you using?

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Wed, June 7, 2006 12:34 pm, Olivier Bex wrote:
 Hi Frank, thanks for the advice. I have sent a mail to struts users.

 Here is my struts-config.xml :

 - struts-config
 - data-sources
 - data-source
   [...]
   /data-source
   /data-sources
 - form-beans
   [...]
   /form-beans
 - global-forwards
   forward name=login path=/login.jsp /
   /global-forwards
 - action-mappings
 - action path=/Login type=com.eyrolles.LoginAction validate=true
 input=/login.jsp name=loginForm scope=request
   forward name=success path=/EmployeListe.do /
   /action
 - action path=/EmployeListe type=com.eyrolles.EmployeListeAction
 scope=request
   set-property property=loginRequired value=true /
   forward name=success path=/employeliste.jsp /
   /action
 - action path=/Add type=com.eyrolles.AddEmployeAction
 name=employeForm scope=request input=/addemploye.jsp
 validate=true
   set-property property=loginRequired value=true /
   forward name=success path=/EmployeListe.do /
   forward name=error path=/addemploye.jsp /
   /action
 - action path=/Edit type=com.eyrolles.GetEmployeAction
 name=employeForm scope=request validate=false
   set-property property=loginRequired value=true /
   forward name=success path=/editemploye.jsp /
   forward name=error path=/EmployeListe.do /
   /action
 - [...]
   /action-mappings
   message-resources parameter=com.eyrolles.ApplicationResources /
   /struts-config

 -Message d'origine-
 De : Frank W. Zammetti [mailto:[EMAIL PROTECTED]
 Envoyé : mercredi 7 juin 2006 18:07
 À : Tomcat Users List
 Cc : users@tomcat.apache.org
 Objet : Re: struts-config xml file throws a java exception

 Olivier, can you post your struts-config.xml file here, or is it too
 large?  You also may want to move this over to the Struts @user list,
 chances are its more appropriate there.

 Frank

 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM: fzammetti
 Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Java Web Parts -
 http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



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



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



Re: Webapp Reload

2006-06-07 Thread Filip Hanik - Dev Lists
My guess is that your session attributes do not implement 
java.io.Serializable


if they don't tomcat can not store them for a restart or reload
Filip



Asensio, Rodrigo wrote:

Hello,
We have a call center webapp with 100 simultaneous sessions all
time ( 24/7 ). This webapp has several sections that are updated with
new JSPs or Java Classes like 3 times a week.
Each time that we need update the webapp all users loose their sessions.
This is a big problem all time. Our solution was create a mirror server.
Then, each time that we need update server#1, everybody moves to #2. But
this solution I don't like at all.

If I have to update just JSPs there is no problem. But the big issue is
if I have to change class files. They do not take effect until next
tomcat restar or webapp reload.

Is there any way to avoid this ? Like a replace classes in the
classloader ? Or load dinamically new classes ?

Thanks all.

---
Rodrigo Asensio
Fuel Management Services
Gilbarco Veeder Root
phone: +1 336 547 5023
email: [EMAIL PROTECTED]

This message (including any attachments) contains confidential 
and/or proprietary information intended only for the addressee.  
Any unauthorized disclosure, copying, distribution or reliance on 
the contents of this information is strictly prohibited and may 
constitute a violation of law.  If you are not the intended 
recipient, please notify the sender immediately by responding to 
this e-mail, and delete the message from your system.  If you 
have any questions about this e-mail please notify the sender 
immediately. 


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



  



--


Filip Hanik

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



Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Marc Farrow

I was thinking the same thing as Jon (however, I do not know anything
specifically about that tag).  Try to remove that atrribute from the form
tag and see if it still happens.

On 6/7/06, Jon Wingfield [EMAIL PROTECTED] wrote:


What happens when you remove the enctype attribute from your form?

The enctype you specified is for binary uploads. Tomcat doesn't
automatically parse the http inputstream for parameters for this content
type.

HTH,

Jon

Oliver Enders wrote:
 Browser is IE6.0, here´s the code:

 %
 String m = request.getParameter(m);
 String flf = request.getParameter(flf);
 String modeDisp = Display;

 if(flf == null){
  flf = 1;
 }

 if(m != null){
  if(m.equalsIgnoreCase(c)) {
modeDisp = Create;
  } else if (m.equalsIgnoreCase(m)) {
modeDisp = Modify;
  } else if (m.equalsIgnoreCase(d)) {
modeDisp = Delete;
  } else {
modeDisp = Display;
  }
 }

 %
 html
 head
  meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/
  link rel=stylesheet type=text/css href=inc/eod.css
  title%=modeDisp% Test Request/title
 /head
 body
  m: %=m%BR
  flf: %=flf%BR
  %
  Enumeration enumeration = request.getParameterNames();
   while (enumeration.hasMoreElements()) {
  String name = (String)enumeration.nextElement();
  %
  Feld: %=name% BR
  %
   }
   %
  table class=tab1 cellspacing=0 cellpadding=0
tr class=zeile_header
td class=standardHeader colspan=3%=modeDisp% Test Request
 (%=m%)/td
/tr
%
if(flf.equals(1)){
%
 form name=HandleTR action=HandleTest.jsp method=post
 enctype=multipart/form-data
   trtd colspan=3fl input type=submit value=go!/td/tr
   input type=hidden name=flf value=0
   input type=hidden name=m value=%=m%
 /form
%
} else {
%
  trtd colspan=3kein fl/td/tr
%
}
%
  /table
 /body
 /html

 The pages is submitted to itself.  flf is used to define two different
 contents.

 Thanx in advance
 Ön

 - Original Message - From: Marc Farrow [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, June 07, 2006 4:25 PM
 Subject: Re: Fw: POST-Data from Form can not be read-out


 This could be any number of issues from browser bugs on.  What browser
 are
 you using?  Also, can you post the rendered HTML page that is
 submitting the
 request to the servlet?




 On 6/7/06, Oliver Enders [EMAIL PROTECTED] wrote:




 Hy List,

 I have a problem concerning submitting form-data by using POST.

 If I send the form using GET, the content of the form can be read out
 using:

 request.getParameter(xyz);

 If I change to POST,  the parameters can not be read out.

 I´m using am Tomcat 4.1.

 Any Ideas ? Suggestions ?

 Thanx in advance
 Ön




 --
 Marc Farrow



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




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





--
Marc Farrow


Re: Webapp Reload

2006-06-07 Thread Marc Farrow

Things brings up an interesting point.  How do you make the standard tomcat
session attributes Serializable?  Because, I currently am using a security
constraint against an LDAP server.  However, every time I redeploy the
application the session is lost.

On 6/7/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:


My guess is that your session attributes do not implement
java.io.Serializable

if they don't tomcat can not store them for a restart or reload
Filip



Asensio, Rodrigo wrote:
 Hello,
   We have a call center webapp with 100 simultaneous sessions all
 time ( 24/7 ). This webapp has several sections that are updated with
 new JSPs or Java Classes like 3 times a week.
 Each time that we need update the webapp all users loose their sessions.
 This is a big problem all time. Our solution was create a mirror server.
 Then, each time that we need update server#1, everybody moves to #2. But
 this solution I don't like at all.

 If I have to update just JSPs there is no problem. But the big issue is
 if I have to change class files. They do not take effect until next
 tomcat restar or webapp reload.

 Is there any way to avoid this ? Like a replace classes in the
 classloader ? Or load dinamically new classes ?

 Thanks all.

 ---
 Rodrigo Asensio
 Fuel Management Services
 Gilbarco Veeder Root
 phone: +1 336 547 5023
 email: [EMAIL PROTECTED]

 This message (including any attachments) contains confidential
 and/or proprietary information intended only for the addressee.
 Any unauthorized disclosure, copying, distribution or reliance on
 the contents of this information is strictly prohibited and may
 constitute a violation of law.  If you are not the intended
 recipient, please notify the sender immediately by responding to
 this e-mail, and delete the message from your system.  If you
 have any questions about this e-mail please notify the sender
 immediately.

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






--


Filip Hanik

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





--
Marc Farrow


TNS entry JNDI

2006-06-07 Thread Scott Purcell
 

I am running Tomcat 5.x and have been using Oracle 9i. We are now
running Oracle 10g and it only uses TNS names. Here is my context
element: The one commented out used to work for 9i, and the other one is
for the tns names. I am having trouble finding information about Tomcat
and TNS names for connection. Does this look correct?

 

 

 

 

Context reloadable=true path=/new10

 

  Logger className=org.apache.catalina.logger.FileLogger
prefix=cpe10g. suffix=.log timestamp=true/

 

 

!--

 Resource name=jdbc/old auth=Container

type=javax.sql.DataSource username=old password=xxx

driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@xxxcom:1521:DEV

maxActive=8 maxIdle=4/

 

--

 Resource name=jdbc/new auth=Container

type=javax.sql.DataSource username=new password=xxx

driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP
)(HOST=.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com)(SERVER
=DEDICATED)))

maxActive=8 maxIdle=4/

 

 

  /Context

 



Re: TNS entry JNDI

2006-06-07 Thread Marc Farrow

Are you having a database connection problem or problem getting the
reference from JNDI in your code?

On 6/7/06, Scott Purcell [EMAIL PROTECTED] wrote:




I am running Tomcat 5.x and have been using Oracle 9i. We are now
running Oracle 10g and it only uses TNS names. Here is my context
element: The one commented out used to work for 9i, and the other one is
for the tns names. I am having trouble finding information about Tomcat
and TNS names for connection. Does this look correct?









Context reloadable=true path=/new10



Logger className=org.apache.catalina.logger.FileLogger
prefix=cpe10g. suffix=.log timestamp=true/





!--

Resource name=jdbc/old auth=Container

   type=javax.sql.DataSource username=old password=xxx

   driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@xxxcom:1521:DEV

   maxActive=8 maxIdle=4/



--

Resource name=jdbc/new auth=Container

   type=javax.sql.DataSource username=new password=xxx

   driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP
)(HOST=.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com)(SERVER
=DEDICATED)))

   maxActive=8 maxIdle=4/





/Context








--
Marc Farrow


Re: Webapp Reload

2006-06-07 Thread Filip Hanik - Dev Lists

yes, login information is not preserved during a restart/reload.
you would have to come up with a custom solution for this, possible just 
creating a simple extension to the StandardManager or do it within your 
application using another session attribute and a filter


Filip


Marc Farrow wrote:
Things brings up an interesting point.  How do you make the standard 
tomcat
session attributes Serializable?  Because, I currently am using a 
security

constraint against an LDAP server.  However, every time I redeploy the
application the session is lost.

On 6/7/06, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:


My guess is that your session attributes do not implement
java.io.Serializable

if they don't tomcat can not store them for a restart or reload
Filip



Asensio, Rodrigo wrote:
 Hello,
   We have a call center webapp with 100 simultaneous sessions all
 time ( 24/7 ). This webapp has several sections that are updated with
 new JSPs or Java Classes like 3 times a week.
 Each time that we need update the webapp all users loose their 
sessions.
 This is a big problem all time. Our solution was create a mirror 
server.
 Then, each time that we need update server#1, everybody moves to 
#2. But

 this solution I don't like at all.

 If I have to update just JSPs there is no problem. But the big 
issue is

 if I have to change class files. They do not take effect until next
 tomcat restar or webapp reload.

 Is there any way to avoid this ? Like a replace classes in the
 classloader ? Or load dinamically new classes ?

 Thanks all.

 ---
 Rodrigo Asensio
 Fuel Management Services
 Gilbarco Veeder Root
 phone: +1 336 547 5023
 email: [EMAIL PROTECTED]

 This message (including any attachments) contains confidential
 and/or proprietary information intended only for the addressee.
 Any unauthorized disclosure, copying, distribution or reliance on
 the contents of this information is strictly prohibited and may
 constitute a violation of law.  If you are not the intended
 recipient, please notify the sender immediately by responding to
 this e-mail, and delete the message from your system.  If you
 have any questions about this e-mail please notify the sender
 immediately.

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






--


Filip Hanik

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







No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 6/6/2006
  



--


Filip Hanik

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



Re: Debugging JSP's residing in Local VC folder

2006-06-07 Thread Tim Quinn

On 6/6/06, Tim Quinn [EMAIL PROTECTED] wrote:


I am interested in Debugging JSPs that sitting in a version control folder
in Perforce (or subversion) local repository. The current method requires
manually moving the JSP's to the exploded webapp folder but this process of
moving the files in and out of local repository is a pain in the butt.

I know I can write a little TK / rsync program to manage this but was
wondering if Tomcat has a way of configuring an external folder to act as a
virtual folder that takes precedence over the main web app folders. If any
JSP's or other files are found in this folder, they are loaded and the main
ones are ignored.

Thanks for in advance,

JsD



Little more info: I am trying to do this in Windoze :( so symlinks are out
of the question.

I am getting the feeling that the little tk/rsync program that I've been
planning for years is going to get developed after all :|

Thanks,
JsD


few fat contexts of many lean contexts?

2006-06-07 Thread Javier Gonzalez

Hi,

I'm running a tomcat that provides services for a lot of clients.

Each client one has a number of services (via axis) on their own
context. Now I'm migratingto a bigger machine, and I got the doubt: is
it better (for performance) to group as many services as possible by
context, or have each service live in it's own context?

In more general terms, is it better to group as much functionality as
possible per context, or try to separate where it can be done?

Thanks in advance,

--
Javier González Nicolini

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



TC 5.5.12 w/ APR 1.2.2 , APR Not Found

2006-06-07 Thread Rick G
Hi All,
  After upgrading to TC 5.5.15 with APR 1.2.7 (tcnative 1.1.1) we started
having some various issues that don't seem to be fixed in 5.5.17, so we
decided to go back to 5.5.12 for the time being.  However, we now have an
issue getting 5.5.12 to see APR.  With a clean install of tomcat 5.5.12 and
a fresh compile of APR 1.2.2 and a fresh compile of tcnative 1.1.0, we get
the following when starting tomcat...

The Apache Portable Runtime which allows optimal performance in production
environments was not found on the java.library.path: /usr/local/apr/lib

/usr/local/apr/lib contains the following files (all of which were just
created by the new compiles)...
apr.exp
libapr-1.a
libapr-1.la
libapr-1.so - libapr-1.so.0.2.2
libapr-1.so.0 - libapr-1.so.0.2.2
libapr-1.so.0.2.2
libtcnative-1.a
libtcnative-1.la
libtcnative-1.so - libtcnative-1.so.0.2.2 libtcnative-1.so.0 -
libtcnative-1.so.0.2.2
libtcnative-1.so.0.2.2
pkgconfig

Anyone know what the issue could be since the APR and tcnative files ARE in
the right folder?  Did upgrading to 1.2.7 (1.1.1) change some other files
outside of the /usr/local/apr folder that need to be reverted back tot the
1.2.2 version?

The server is running RedHat Enterprise 3 ES

Thanks for any help,

Rick



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



Re: HTTPD with Tomcat

2006-06-07 Thread Filip Hanik - Dev Lists
you can also make your own life very easy, by switching to mod_proxy, 
and voila, everything works :)


Filip


Mann, Bradley wrote:

Hello,

I am attempting to setup a scenario in which Tomcat is hosting a web
application behind HTTPD using the Jakarta Connector. I have installed
the following on Solaris 10:

Apache HTTPD 2.0.58
Apache Tomcat 4.1.31
Apache Jakarta Tomcat Connector 1.2.15

I am able to access HTTPD's document root, and I am able to access my
web application through Tomcat. I am having trouble, however,
understanding how to get the two to interact using the connector. I
believe I have it setup properly, with mod_jk located in the /modules
directory of HTTPD, and with an Include statement at the end of
httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
the Server section of server.xml in the /conf directory of Tomcat, I
have added a listener as follows:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/apache/modules/mod_jk.so /

which points to the location of mod_jk.so.

I have added the same line under the Host section, with the added
attributes:

append=true forwardAll=false

My main question is, how do I get my static content from HTTPD to link
to my web application under Tomcat. Do I simply add the Tomcat port
number (8080) to the links in my static content, or is there a more
eloquent way of doing things? I thought the point of the connector was
to prevent having to do this so the experience is seamless for the user.
Any help or ideas are greatly appreciated.

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292


  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date: 6/6/2006
  



--


Filip Hanik

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



Re: HTTPD with Tomcat

2006-06-07 Thread Filip Hanik - Dev Lists

mod_proxy
- easy to configure
- scales without limitation

mod_jk
- hard to compile,configure
- in our tests, would not scale well at all

Differences are:
mod_jk supports load balancing and also passing along SSL info to Tomcat.
mod_proxy is a regular http proxy, remember to set 
ProxyPassPreserveHost On, and then set the proxyPort directive on your 
Connector in server.xml


Filip

Mann, Bradley wrote:

What are the exact differences between mod_proxy and mod_jk? What are
the benefits/drawbacks of each?

Thanks, 



Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 4:45 PM

To: Tomcat Users List
Subject: Re: HTTPD with Tomcat

you can also make your own life very easy, by switching to mod_proxy, 
and voila, everything works :)


Filip


Mann, Bradley wrote:
  

Hello,

I am attempting to setup a scenario in which Tomcat is hosting a web
application behind HTTPD using the Jakarta Connector. I have installed
the following on Solaris 10:

Apache HTTPD 2.0.58
Apache Tomcat 4.1.31
Apache Jakarta Tomcat Connector 1.2.15

I am able to access HTTPD's document root, and I am able to access my
web application through Tomcat. I am having trouble, however,
understanding how to get the two to interact using the connector. I
believe I have it setup properly, with mod_jk located in the /modules
directory of HTTPD, and with an Include statement at the end of
httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
the Server section of server.xml in the /conf directory of Tomcat, I
have added a listener as follows:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/apache/modules/mod_jk.so /

which points to the location of mod_jk.so.

I have added the same line under the Host section, with the added
attributes:

append=true forwardAll=false

My main question is, how do I get my static content from HTTPD to link
to my web application under Tomcat. Do I simply add the Tomcat port
number (8080) to the links in my static content, or is there a more
eloquent way of doing things? I thought the point of the connector was
to prevent having to do this so the experience is seamless for the


user.
  

Any help or ideas are greatly appreciated.

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292


  




  

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date:


6/6/2006
  
  




  



--


Filip Hanik

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



Tomcat 6

2006-06-07 Thread Kunal Mittal
Anyone know when Tomcat 6 is coming out - when will more
information/documentation be available?

Thanks

Kunal


newbie: tomcat partly works

2006-06-07 Thread Jay G. Scott

i have several problems, but i think i need to address them one at a time.

tomcat 5.5.17
java
java version 1.5.0_05
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Server VM (build 1.5.0_05-b05, mixed mode)

solaris 9
apache 1.3.29

problem:

i can't __SAVE__ a context PERMANENTLY.  if i click on save, and
then commit changes, it's there.  the stuff it finds does not work,
but it's found.  however, if i stop/start tomcat+apache, the
context i just made is not there.

i've tried changing many directories to mode 1777, in case it was
a permissions problem, didn't help.  i've looked at the log files,
and things don't look peachy but these things are HUGE.  which
one do you want to see?

also, when i stop/start things, many/all? configu .xml files
get backed up.  i'm thought that might be normal, but is it an
indication that something didn't work right?  why would it want
to copy my server.xml file?  doesn't make sense

j.

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



Re: Undeploy task not working

2006-06-07 Thread Mark Thomas
Marc Farrow wrote:
 Which still implies a permission problem.  On Windows 2000 check the
 security tab of the webapps folder under Tomcat.  Make sure the account
 that
 is running Tomcat has permission to delete.  The archive set is the
 file
 type and doesn't really have much to do with permissions.

More likely to be file locking. There are a couple of context settings
that might help you work around this. Look at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html and search
for antiJARLocking and antiResourceLocking

As far as I recall there is an issue with one of the xml parsers that
when it accesses resources from a war keeps a lock on the file. This
only happens on Windows.

Mark

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



SEVERE: Error reading tld listeners javax.servlet.ServletException. HELP

2006-06-07 Thread Richard DeGrande
I've recently upgraded to tomcat 5.5.15.  I'm migrating current apps the
the new tomcat.  I get this error when starting/deploying a specific
app.  I have one other app deployed, it too uses struts,  I have no
problems with it.

thanks



Jun 7, 2006 4:28:51 PM org.apache.catalina.core.StandardContext
processTlds
SEVERE: Error reading tld listeners javax.servlet.ServletException:
Exception processing TLD at resource path /WEB-INF/struts-logic.tld in
context /paimport
javax.servlet.ServletException: Exception processing TLD at resource
path /WEB-INF/struts-logic.tld in context /paimport
at
org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:547)
at
org.apache.catalina.startup.TldConfig.execute(TldConfig.java:300)
at
org.apache.catalina.core.StandardContext.processTlds(StandardContext.jav

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



Difference in classloaders

2006-06-07 Thread ericp

Hi,

I have two questions. I have been working with a stand alone app which  
finds a properties

file this way. This code is in a class, which is bundled in a jar.

private static void setupProperties()
{
InputStream fileReference =  
ClassLoader.getSystemResourceAsStream(PROPERTIES_FILE);

}

This works fine when run on a command line, but in Tomcat the  
application can not find

the properties file.

I put the following code in a class in a non-static method in a class,  
which is bundled
in a jar. This works find on both the command line and in Tomcat, my  
application can find

the properties file.

private void setupPropertiesInWebapp()
{
InputStream fileReference =  
this.getClass().getClassLoader().getResourceAsStream(PROPERTIES_FILE);

}

In Tomcat the properties file lives in  
$CATALINA_HOME/webapp/myapp/WEB-INF/classes/



My Questions are
1) Is there a way to make the first example work in Tomcat, and have  
my application find

the properties file?
2) Why doesn't ClassLoader.getSystemReasourceAsStream work in Tomcat?  
Does it not see the

correct classpath?

Thanks
ERIC

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



Re: TNS entry JNDI

2006-06-07 Thread Scott Purcell
I am having trouble connecting. That string does fine using JDBC, but when
in the context element below does not connect.

Thanks,


- Original Message -
From: Marc Farrow [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 07, 2006 12:44 PM
Subject: Re: TNS entry JNDI


 Are you having a database connection problem or problem getting the
 reference from JNDI in your code?

 On 6/7/06, Scott Purcell [EMAIL PROTECTED] wrote:
 
 
 
  I am running Tomcat 5.x and have been using Oracle 9i. We are now
  running Oracle 10g and it only uses TNS names. Here is my context
  element: The one commented out used to work for 9i, and the other one is
  for the tns names. I am having trouble finding information about Tomcat
  and TNS names for connection. Does this look correct?
 
 
 
 
 
 
 
 
 
  Context reloadable=true path=/new10
 
 
 
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=cpe10g. suffix=.log timestamp=true/
 
 
 
 
 
  !--
 
  Resource name=jdbc/old auth=Container
 
 type=javax.sql.DataSource username=old password=xxx
 
 driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@xxxcom:1521:DEV
 
 maxActive=8 maxIdle=4/
 
 
 
  --
 
  Resource name=jdbc/new auth=Container
 
 type=javax.sql.DataSource username=new password=xxx
 
 driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP
  )(HOST=.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=xxx.com)(SERVER
  =DEDICATED)))
 
 maxActive=8 maxIdle=4/
 
 
 
 
 
  /Context
 
 
 
 
 


 --
 Marc Farrow


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



Re: few fat contexts of many lean contexts?

2006-06-07 Thread Tim Funk

From a performance point of view - it doesn't matter.

From a  maintenaince point of view - I prefer many lean clients. That way - 
if one of them behaves badly - off they go into a  new JVM (assuming you have 
 apache in front of tomcat)




-Tim

Javier Gonzalez wrote:

Hi,

I'm running a tomcat that provides services for a lot of clients.

Each client one has a number of services (via axis) on their own
context. Now I'm migratingto a bigger machine, and I got the doubt: is
it better (for performance) to group as many services as possible by
context, or have each service live in it's own context?

In more general terms, is it better to group as much functionality as
possible per context, or try to separate where it can be done?

Thanks in advance,



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



java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagInfo

2006-06-07 Thread Dave Kennedy
The Servlet Exception is displayed running SimpleExample.jsp
Any help would be greatly appreciated
 
SET CATALINA_HOME=C:\Program Files\Apache Software
Foundation\jakarta-tomcat-5.5.9
SET JAVA_HOME=C:\Program Files\Java\jdk1.5.0_06
 
http://localhost:8080/stuff09/SimpleExample.jsp
 
javax.servlet.ServletException:
javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str
ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib
raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage
xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin
g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
root cause 
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagInfo.init(Ljava/lang/String;Ljava/lang/Str
ing;Ljava/lang/String;Ljava/lang/String;Ljavax/servlet/jsp/tagext/TagLib
raryInfo;Ljavax/servlet/jsp/tagext/TagExtraInfo;[Ljavax/servlet/jsp/tage
xt/TagAttributeInfo;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Strin
g;[Ljavax/servlet/jsp/tagext/TagVariableInfo;Z)V
 
org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryIn
foImpl.java:435)
 
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImp
l.java:248)
 
org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.
java:162)
 
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
 
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
 
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
 
org.apache.jasper.compiler.ParserController.doParse(ParserController.jav
a:211)
 
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
100)
 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:556)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:293)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
SimpleExample.jsp
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
!-- 
Illustration of very simple JSP custom tag. 
   
Taken from Core Servlets and JavaServer Pages
from Prentice Hall and Sun Microsystems Press,
http://www.coreservlets.com/.
copy; 2000 Marty Hall; may be freely used or adapted.
--
HTML
HEAD
 
%@ taglib uri=csajsp-taglib.tld prefix=csajsp %
 
TITLEcsajsp:example //TITLE
LINK REL=STYLESHEET
  HREF=JSP-Styles.css
  TYPE=text/css
/HEAD
 
BODY
H1csajsp:example //H1
csajsp:example /
 
/BODY
/HTML
 
csajsp-taglib.tld
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib
 PUBLIC -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN
 http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
 
!-- a tag library descriptor --
 
taglib
  !-- after this the default space is
http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd;
   --
 
  tlibversion1.0/tlibversion
  jspversion1.1/jspversion
  shortnamecsajsp/shortname
  !-- ** CHANGED FROM urn TO uri IN TOMCAT 3.1 ** --
  uri/uri
  info
A tag library from Core Servlets and JavaServer Pages,
http://www.coreservlets.com/.
  /info
 
!--
  tag
The name (after prefix) tag will have in JSP code
nameexample/name
 
The actual class implementing tag. In
Tomcat 3.1 beta, it MUST be in a package.
tagclasscoreservlets.tags.ExampleTag/tagclass
 
Descriptive information about tag.
infoSimplest example: inserts one line of output/info
 
One of three values describing what goes between
start and end tag. 
  empty: no body 
  JSP: body that is evaluated by container normally,
   then possibly processed by tag
  tagdependent: body is only processed by tag;
JSP in body is not evaluated. 
** NOTE: TOMCAT 3.1 FINAL DOES NOT SUPPORT BODYCONTENT **
** THE BETA SUPPORTED IT, AND IT IS PART OF SPEC, BUT... **
bodycontentempty/bodycontent
  /tag  
--
 
  tag
nameexample/name
tagclasscoreservlets.tags.ExampleTag/tagclass
infoSimplest example: inserts one line of output/info
!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT 
bodycontentempty/bodycontent --
  /tag  
 
  tag
namesimplePrime/name
tagclasscoreservlets.tags.SimplePrimeTag/tagclass
infoOutputs a random 50-digit prime./info
!-- TOMCAT 3.1 DOES NOT SUPPORT BODYCONTENT 
bodycontentempty/bodycontent --
  /tag
 
  tag
nameprime/name

Can't figure out where a page is coming from.

2006-06-07 Thread Will Hartung

Hi all,

Tomcat 4.1.24

I'm using the sampler-server-no-examples.xml for my configuration.

Simply put, I can't find where Tomcat is serving up a file. Fundamentally, I 
have this in my webapps web.xml:


 filter-mapping
   filter-nameauthFilter/filter-name
   url-pattern/*/url-pattern
 /filter-mapping

and that filter is not seeing every single file to my application. It's not 
seeing GIF, JPGs, or (notably and specifically) a special file for our app 
named template.htmlw.


But those files are being served to the browser.

Relevant config bits:

   Engine name=Standalone defaultHost=localhost debug=0
 !-- Global logger unless overridden at lower levels --
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/

 !-- Because this Realm is here, an instance will be shared 
globally --


 Realm className=org.apache.catalina.realm.MemoryRealm /

 !-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
   Valve className=org.apache.catalina.valves.AccessLogValve
directory=logs  prefix=localhost_access_log. 
suffix=.txt

pattern=common/
   Logger className=org.apache.catalina.logger.FileLogger
directory=logs  prefix=localhost_log. suffix=.txt
   timestamp=true/
 /Host
   /Engine

The app works fine, all of the normal pages are serving up hunky dory.

I'm only using tomcat (no apache fronting it).

The Access Log does not show any of the GIF, JPGS or my .htmlw file either.

More interesting I ran my browser through a proxy and I'm not seeing a 
request to the .htmlw file, yet I KNOW that I don't do an internal Forward 
to it (I actually do a redirect), but even my proxy doesn't show a log of 
it. YET, the file is being served up. I see it in glowing black and white on 
my browser page.


So, where are these files coming from? What part of Tomcat can be serving up 
these files? Why doesn't my filter actually SEE these files (if to do 
nothing else than chainFilter them).


Anyone know where I can set up a log to see these files?

I set every debug in my conf file to 5, and I see no reference to these 
files. (actually, I see one -- and it's a Referrer for my htmlw file! GAH!)


Any thoughts are appreciated.

Regards,

Will Hartung
([EMAIL PROTECTED])





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



System.setProperty question

2006-06-07 Thread Rumpa Giri
Why the system properties are not being set programmatically?
   
  When I say does not take affect it happens only when we do things in a 
certain order.
   
  For example we need to connect to URL_CACERTS and URL_KS. URL_KS connection 
needs the keystore properties. For URL_CACERTS we just imported their public 
key to cacerts.
   
  Case 1: If we connect to URL_CACERTS first and then to URL_KS, connection to 
URL_KS is not successful. Somehow the setting keystore properties does not take 
affect. We have the following lines of code before doing the HttpURLConnection:
  System.setProperty(javax.net.ssl.keyStorePassword, _storePwd);
System.setProperty(javax.net.ssl.keyStore, _keystorePath);
   
  Case 2: If we connect to URL_KS first, and then URL_CACERTS, this sequence 
always works, somehow the keystore properties are set for the entire length.
   
  So to overcome this conflict, we added the properties to the tomcat service:
   
  If we start the tomcat service(or adding to catalina.bat) with the following 
parameters:
  -Djavax.net.ssl.keyStorePassword=changeit
-Djavax.net.ssl.keyStore=C:\certificates\pntKS
   
  These system properties setting takes affect, and order of conneting to 
URL_CACERTS or URL_KS does not matter.
   
  My question in how is connecting to URL_CACERTS first affecting the keystore 
properties?
   
  Without the above and doing the following only, its dependent on the order of 
connection. why?
   
  when we do the same thing by doing this it does not take affect 
  System.setProperty(javax.net.ssl.keyStorePassword, _storePwd);
System.setProperty(javax.net.ssl.keyStore, _keystorePath);
   
  Connecting to URL_CACERTS does not have any special code, we do plain 
HttpURLConnection and write and read from the http connection.
   
  What is happening behind the scene? Why does order matter?
   
  Thanks for reading.
  Rumpa Giri
   

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

Allocate exception : NoClassDefFoundError

2006-06-07 Thread Dan Simmonds

Hi everyone.

I am running tomcat 5.5

I have a webapp which has been running fine for weeks. I uploaded some 
changes to some of the classes that are in the WEB-INF/classes directory 
and suddenly whenever I try to call my servlet I get the following error:


21:31:38,328 ERROR [User]:145 - Allocate exception for servlet User
java.lang.NoClassDefFoundError: javax/servlet/Servlet
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(Unknown Source)
   at java.security.SecureClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.defineClass(Unknown Source)
   at java.net.URLClassLoader.access$100(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1267)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
   at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
   at 
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:757)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
   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.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
   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:199)
   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)

   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
   at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

   at java.lang.Thread.run(Unknown Source)



JSPs still run fine. But this servlet wont run. It is the only servlet 
on the webapp, and was working fine 10 minutes ago. The only action I 
performed was to copy over the class files and restart tomcat. Does 
anyone have any clues as to what might have caused this?


Regards,

Dan

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



Re: HTTPD with Tomcat

2006-06-07 Thread bleak

Filip,

Do you happen to have any examples of your mod_proxy setup?  I've been 
trying to get mod_proxy and mod_proxy_ajp working (apache 2.2.2, tomcat 
5.5.17), and have been running into a wall.  No matter what I've tried, 
tomcat always returns a requested resource not available error.


Cheers,
-- Steven

Filip Hanik - Dev Lists wrote:

mod_proxy
- easy to configure
- scales without limitation

mod_jk
- hard to compile,configure
- in our tests, would not scale well at all

Differences are:
mod_jk supports load balancing and also passing along SSL info to Tomcat.
mod_proxy is a regular http proxy, remember to set 
ProxyPassPreserveHost On, and then set the proxyPort directive on your 
Connector in server.xml


Filip

Mann, Bradley wrote:

What are the exact differences between mod_proxy and mod_jk? What are
the benefits/drawbacks of each?

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 
Wednesday, June 07, 2006 4:45 PM

To: Tomcat Users List
Subject: Re: HTTPD with Tomcat

you can also make your own life very easy, by switching to mod_proxy, 
and voila, everything works :)


Filip


Mann, Bradley wrote:
 

Hello,

I am attempting to setup a scenario in which Tomcat is hosting a web
application behind HTTPD using the Jakarta Connector. I have installed
the following on Solaris 10:

Apache HTTPD 2.0.58
Apache Tomcat 4.1.31
Apache Jakarta Tomcat Connector 1.2.15

I am able to access HTTPD's document root, and I am able to access my
web application through Tomcat. I am having trouble, however,
understanding how to get the two to interact using the connector. I
believe I have it setup properly, with mod_jk located in the /modules
directory of HTTPD, and with an Include statement at the end of
httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
the Server section of server.xml in the /conf directory of Tomcat, I
have added a listener as follows:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/apache/modules/mod_jk.so /

which points to the location of mod_jk.so.

I have added the same line under the Host section, with the added
attributes:

append=true forwardAll=false

My main question is, how do I get my static content from HTTPD to link
to my web application under Tomcat. Do I simply add the Tomcat port
number (8080) to the links in my static content, or is there a more
eloquent way of doing things? I thought the point of the connector was
to prevent having to do this so the experience is seamless for the


user.
 

Any help or ideas are greatly appreciated.

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292


 



 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date:


6/6/2006
 
  



  





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



Re: TC 5.5.12 w/ APR 1.2.2 , APR Not Found

2006-06-07 Thread Bill Barker

Rick G [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi All,
  After upgrading to TC 5.5.15 with APR 1.2.7 (tcnative 1.1.1) we started
 having some various issues that don't seem to be fixed in 5.5.17, so we
 decided to go back to 5.5.12 for the time being.  However, we now have an
 issue getting 5.5.12 to see APR.  With a clean install of tomcat 5.5.12 
 and
 a fresh compile of APR 1.2.2 and a fresh compile of tcnative 1.1.0, we get
 the following when starting tomcat...

 The Apache Portable Runtime which allows optimal performance in 
 production
 environments was not found on the java.library.path: /usr/local/apr/lib

 /usr/local/apr/lib contains the following files (all of which were just
 created by the new compiles)...
 apr.exp
 libapr-1.a
 libapr-1.la
 libapr-1.so - libapr-1.so.0.2.2
 libapr-1.so.0 - libapr-1.so.0.2.2
 libapr-1.so.0.2.2
 libtcnative-1.a
 libtcnative-1.la
 libtcnative-1.so - libtcnative-1.so.0.2.2 libtcnative-1.so.0 -
 libtcnative-1.so.0.2.2
 libtcnative-1.so.0.2.2
 pkgconfig

 Anyone know what the issue could be since the APR and tcnative files ARE 
 in
 the right folder?  Did upgrading to 1.2.7 (1.1.1) change some other files
 outside of the /usr/local/apr folder that need to be reverted back tot the
 1.2.2 version?


You need to have the OpenSSL libraries installed someplace on your 
LD_LIBRARY_PATH.  That's probably what is missing.  But you can always do:
  $ ldd /usr/local/apr/lib/libtcnative-1.so

to find out exactly what it is.

 The server is running RedHat Enterprise 3 ES

 Thanks for any help,

 Rick



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

 




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



RE: Random NullPointerException when trying to connect to Datasource

2006-06-07 Thread Vijaya
Then I think you are in the same boat as mine. I saw some other post
also having trouble to connect to the data base when migrated from
tomcat 5.0.28 to 5.0.17. 

What is your tomcat version?

Regards,
Vijaya

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Brian Vuyk
Sent: Wednesday, June 07, 2006 6:59 PM
To: Tomcat Users List
Subject: Re: Random NullPointerException when trying to connect to
Datasource

Thank you for your reply.

Unfortunately, no, I did not. I have checked my JSP over a few times,
and as far as I can tell, the syntax is correct.

Also, this error does not occur only in a specific page - no
connection to the databse works, regardless of the page.



On 6/7/06, Vijaya [EMAIL PROTECTED] wrote:
 Did you by chance miss any quotes while correcting the typo of the
 displayed text?

 Vijaya

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
 Brian Vuyk
 Sent: Wednesday, June 07, 2006 5:38 PM
 To: users@tomcat.apache.org
 Subject: Re: Random NullPointerException when trying to connect to
 Datasource

 Still wondering if anyone has any thoughts on this.

 I appreciate any help.

 Brian

 On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
  I feel compelled to also mention that I have rebooted the system,
with
  still the same effect.
 
  On 6/6/06, Brian Vuyk [EMAIL PROTECTED] wrote:
   Hello.
  
  
   I am currently developing a JSP webapp for my employer, andhave
run
   into a couple of serious problems.
  
   Randomly, tomcat seems to be losing it's ability to connect to the
   mySQL server running on the same server as Tomcat.
  
   Scenario:
  
   This morning I was using the webapp no problem. I made a small
 change
   to correct a typo in some displayed text, and then re-deployed the
   webapp. Upon attempting to log into the webapp I was unable to
 connect
   to the database. I recieved the below error.
  
   Steps Taken:
  
   I have restarted both Tomcat and mySQL, with no change. I have
 double
   checked my source code, and I do not think the issue is with the
   source itself. I have attempted re-deploying the webapp, including
 an
   archived, known good version. The result was the same exception
 posted
   above.
  
   I can log into the mySQL database from the command-line without
any
   issue at all.
  
   Thank you in advance for any help.
  
   Brian Vuyk
  
   Tomcat error taken from logs
  
 --
   2006-06-06 05:06:42 StandardWrapperValve[jsp]: Servlet.service()
for
   servlet jsp threw exception
   javax.servlet.jsp.JspException: Unable to get connection,
DataSource
   invalid: java.lang.NullPointerException
   at

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection
 (QueryTagSupport.java:276)
   at

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(Qu
 eryTagSupport.java:159)
   at

org.apache.jsp.jsp.authenticate_jsp._jspx_meth_sql_query_0(authenticate_
 jsp.java:286)
   at

org.apache.jsp.jsp.authenticate_jsp._jspService(authenticate_jsp.java:11
 0)
   at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:324)
   at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
 tionFilterChain.java:237)
   at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
 erChain.java:157)
   at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
 e.java:214)
   at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
 ntext.java:104)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
 20)
   at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
 textValve.java:198)
   at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
 e.java:152)
   at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
 ntext.java:104)
   at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
 20)
   at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
 :137)
   at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
 ntext.java:104)
   at

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

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
 ntext.java:102)
 

Re: HTTPD with Tomcat

2006-06-07 Thread Bill Barker

[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Filip,

 Do you happen to have any examples of your mod_proxy setup?  I've been 
 trying to get mod_proxy and mod_proxy_ajp working (apache 2.2.2, tomcat 
 5.5.17), and have been running into a wall.  No matter what I've tried, 
 tomcat always returns a requested resource not available error.


You should probably try the simplest example first (assuming Tomcat and 
Apache are on the same machine, and that the AJP/1.3 Connector is using it's 
default port of 8009):
  ProxyPass /myapp ajp://localhost:8009/myapp

Then you can start on the fancier stuff like:
  RewriteRule (.*)\.jsp$ ajp://localhost:8009/$1.jsp [P]



 Cheers,
 -- Steven

 Filip Hanik - Dev Lists wrote:
 mod_proxy
 - easy to configure
 - scales without limitation

 mod_jk
 - hard to compile,configure
 - in our tests, would not scale well at all

 Differences are:
 mod_jk supports load balancing and also passing along SSL info to Tomcat.
 mod_proxy is a regular http proxy, remember to set ProxyPassPreserveHost 
 On, and then set the proxyPort directive on your Connector in 
 server.xml

 Filip

 Mann, Bradley wrote:
 What are the exact differences between mod_proxy and mod_jk? What are
 the benefits/drawbacks of each?

 Thanks,

 Brad Mann
 Software Engineer - Information Access Services
 HARRIS Corporation / GCSD
 (321) 984-6292

 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 
 Wednesday, June 07, 2006 4:45 PM
 To: Tomcat Users List
 Subject: Re: HTTPD with Tomcat

 you can also make your own life very easy, by switching to mod_proxy, 
 and voila, everything works :)

 Filip


 Mann, Bradley wrote:

 Hello,

 I am attempting to setup a scenario in which Tomcat is hosting a web
 application behind HTTPD using the Jakarta Connector. I have installed
 the following on Solaris 10:

 Apache HTTPD 2.0.58
 Apache Tomcat 4.1.31
 Apache Jakarta Tomcat Connector 1.2.15

 I am able to access HTTPD's document root, and I am able to access my
 web application through Tomcat. I am having trouble, however,
 understanding how to get the two to interact using the connector. I
 believe I have it setup properly, with mod_jk located in the /modules
 directory of HTTPD, and with an Include statement at the end of
 httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
 the Server section of server.xml in the /conf directory of Tomcat, I
 have added a listener as follows:

 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/apache/modules/mod_jk.so /

 which points to the location of mod_jk.so.

 I have added the same line under the Host section, with the added
 attributes:

 append=true forwardAll=false

 My main question is, how do I get my static content from HTTPD to link
 to my web application under Tomcat. Do I simply add the Tomcat port
 number (8080) to the links in my static content, or is there a more
 eloquent way of doing things? I thought the point of the connector was
 to prevent having to do this so the experience is seamless for the

 user.

 Any help or ideas are greatly appreciated.

 Thanks,

 Brad Mann
 Software Engineer - Information Access Services
 HARRIS Corporation / GCSD
 (321) 984-6292



 

 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date:

 6/6/2006








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

 




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



Re: Apache Connecting to Tomcat Using mod_jk Over SSL?

2006-06-07 Thread Bill Barker

Bill Glick [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 I'm trying to get Apache httpd 1.3 to connect to Tomcat 5.5 using  mod_jk 
 and SSL.  I get the impression that the AJP/1.3 protocol  supports SSL 
 encryption, but I can't find much useful documentation  on how to do what 
 I want.


Your impression is wrong :).  It's on the list as an option for AJP/1.4 
(which is mostly vaporware at the moment :), but AJP/1.3 just works over 
plain old Sockets.

 My Apache httpd 1.3 server is on a different subnet from my Tomcat  5.5 
 server.  Both servers are Linux systems.  I have SSL working fine  on the 
 Apache httpd side.  I was hoping that the connector between  the two 
 services could be encrypted with SSL as well.

 Can anyone point me to some documentation on doing this or provide me 
 some steps for the best way to do this?


This comes up every few months, so searching the list archives should help. 
Usually the least headache is to simply make sure that your internal network 
is secure :).  However, the next most popular option seems to be to use SSH 
tunnelling.

 Thanks.
 -Bill

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

 




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



RE: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem after migrating to tomcat 5.5.16 from tomcat 5.0.28)

2006-06-07 Thread Vijaya
My web.xml is

?xml version=1.0 encoding=UTF-8?

.
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
session-config
session-timeout
30
/session-timeout
/session-config

resource-ref
   descriptionDB Connection/description 
   res-ref-namejdbc/AYS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
servlet

  servlet-nameaction/servlet-name
  servlet-class
 org.apache.struts.action.ActionServlet
  /servlet-class
  init-param
 param-nameconfig/param-name
 param-value/WEB-INF/struts-config.xml/param-value
  /init-param
  init-param
param-nameapplication/param-name
param-valueApplicationResources/param-value
  /init-param
  load-on-startup1/load-on-startup
/servlet

servlet-mapping
 servlet-nameaction/servlet-name
 url-pattern*.do/url-pattern
/servlet-mapping

welcome-file-list
 welcome-filelogin.jsp/welcome-file
/welcome-file-list

   jsp-config
taglib
   taglib-uri/WEB-INF/struts-html.tld/taglib-uri
   taglib-location/WEB-INF/struts-html.tld/taglib-location
/taglib
taglib
   taglib-uri/WEB-INF/struts-logic.tld/taglib-uri
   taglib-location/WEB-INF/struts-logic.tld/taglib-location
/taglib
taglib
   taglib-uri/WEB-INF/struts-bean.tld/taglib-uri
   taglib-location/WEB-INF/struts-bean.tld/taglib-location
/taglib
   taglib
 taglib-uri/WEB-INF/struts-menu/taglib-uri
 taglib-location/WEB-INF/struts-menu.tld/taglib-location
   /taglib
  /jsp-config

/web-app

server.xml is

...
...
Host name=localhost appBase=webapps unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false

Context crossContext=true debug=5 docBase=AtYourService
path=/AtYourService reloadable=true
Resource auth=Container
driverClassName=net.sourceforge.jtds.jdbc.Driver 
maxActive=100 maxIdle=30 maxWait=1 
name=jdbc/AYS password=
type=javax.sql.DataSource
url=jdbc:jtds:sqlserver://localhost/AtYourService?autoReconnect=true
username=sa/
/Context
/Host
.
.

Regards,
Vijaya

-Original Message-
From: Marc Farrow [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 07, 2006 6:11 PM
To: Tomcat Users List
Subject: Re: NetBeans 5.0 and Tomcat 5.5.16 ... Please Help (Problem
after migrating to tomcat 5.5.16 from tomcat 5.0.28)

It might be helpful to post your web.xml and context.xml (appname.xml or
the
server.xml if your context tag is still in there).



On 6/7/06, Vijaya [EMAIL PROTECTED] wrote:


 Hi,

 I am sorry for being vague in my earlier mail. This is the background
of
 my problem.

 We developed the portal using Tomcat 5.0.28. In this version we
 connected to the database (SQL Server) without the JNDI lookup. I.e.
get
 the data source from the request object. Also we configured the
 struts-config.xml to have the db definitions. Everything worked okay
 till we moved the application to staging server.

 The staging server has tomcat 5.5.16 and when we deployed the
 application as it is, we got a 404 error (Servlet action not
available).
 So I downloaded tomcat 5.5.16 in my development machine as a
stand-alone
 tomcat and I deployed the application in my development machine.

 The 404 error was fixed when I connected to the DB using JNDI lookup
(by
 making changes to server.xml and application web.xml and the action
 coded to get the data source using the context). However, I am now
 getting a Nullpointer exception while connecting to database.

 Jtds is the third party jdbc driver used to connect to the SQL Server.

 I am totally frustrated with this problem and do not have a clue what
 could be wrong.

 Any help is greatly appreciated.

 Thanks in advance for all help.

 Regards,
 Vijaya

 --- Vijaya [EMAIL PROTECTED] wrote:

  Hi,
 
  I downloaded NetBeans 5,0 and tomcat 5.5.16. I want
  to connect to a
  remote SQL Server. I am using jtds. I am not
  successful in using both
  NB50 and Tomcat 5.5.16 together. NB5.0 comes with
  bundled tomcat 5.5.9
  and if I use this, I get a '404 error' while
  accessing the remote
  sql*server.
 
  Can someone help me on this? Is there a problem with
  NetBeans 5.0?
 
  Is there any other IDE can I use?
 
  Lastly, is there a tomcat user group in Bangalore,
  India?
 
  Thanks in advance for your help.
 
  Vijaya
 

 One, your question is terribly vague.  I get a 404
 when  accessing the remote sql server?  Are you trying
 to connect to a JSP page under your Tomcat?  Are you
 running the web application in Netbeans?  Did NB
 launch your external browser and point you to the
 running Tomcat instance address and port?  Are you
 running a different 

Re: HTTPD with Tomcat

2006-06-07 Thread Bill Barker
The auto-config Listener has always been somewhat problematic, especially 
with TC 4.x.  At the very least, you need to include in httpd.conf:
  Include /path/to/catalina/home/conf/auto/mod_jk.conf

I don't believe that the Listener really does all that much under the 
Server tag.  Even in TC 5.5.x, you need it under the Engine tag to get 
simple auto-config.  I believe (since I'm not interested enough to look :), 
that you also need it under the Context tag for TC 4.x.  It should be all 
written up in the FM.

Mann, Bradley [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hello,

I am attempting to setup a scenario in which Tomcat is hosting a web
application behind HTTPD using the Jakarta Connector. I have installed
the following on Solaris 10:

Apache HTTPD 2.0.58
Apache Tomcat 4.1.31
Apache Jakarta Tomcat Connector 1.2.15

I am able to access HTTPD's document root, and I am able to access my
web application through Tomcat. I am having trouble, however,
understanding how to get the two to interact using the connector. I
believe I have it setup properly, with mod_jk located in the /modules
directory of HTTPD, and with an Include statement at the end of
httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
the Server section of server.xml in the /conf directory of Tomcat, I
have added a listener as follows:

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/apache/modules/mod_jk.so /

which points to the location of mod_jk.so.

I have added the same line under the Host section, with the added
attributes:

append=true forwardAll=false

My main question is, how do I get my static content from HTTPD to link
to my web application under Tomcat. Do I simply add the Tomcat port
number (8080) to the links in my static content, or is there a more
eloquent way of doing things? I thought the point of the connector was
to prevent having to do this so the experience is seamless for the user.
Any help or ideas are greatly appreciated.

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292





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



Re: Fw: POST-Data from Form can not be read-out

2006-06-07 Thread Oliver Enders
Hy Jon, hy Marc,

after removing the enctype from the form tag it works fine !!!

My problem will be, that in the next implementation step, i´ll need to add an 
type=file form element to upload a file...and that is only possible with 
method=post and enctype=multipart/form-data, isnt it ?

How are these issues normaly implemented ? Perhaps that is an issue for a jsp 
mailing list...

Thanx in advance
Ön


-Ursprüngliche Nachricht-
Von: Jon Wingfield [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 7. Juni 2006 17:31
An: Tomcat Users List
Betreff: Re: Fw: POST-Data from Form can not be read-out

What happens when you remove the enctype attribute from your form?

The enctype you specified is for binary uploads. Tomcat doesn't 
automatically parse the http inputstream for parameters for this content 
type.

HTH,

Jon

Oliver Enders wrote:
 Browser is IE6.0, here´s the code:
 
 %
 String m = request.getParameter(m);
 String flf = request.getParameter(flf);
 String modeDisp = Display;
 
 if(flf == null){
  flf = 1;
 }
 
 if(m != null){
  if(m.equalsIgnoreCase(c)) {
modeDisp = Create;
  } else if (m.equalsIgnoreCase(m)) {
modeDisp = Modify;
  } else if (m.equalsIgnoreCase(d)) {
modeDisp = Delete;
  } else {
modeDisp = Display;
  }
 }
 
 %
 html
 head
  meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/
  link rel=stylesheet type=text/css href=inc/eod.css
  title%=modeDisp% Test Request/title
 /head
 body
  m: %=m%BR
  flf: %=flf%BR
  %
  Enumeration enumeration = request.getParameterNames();
   while (enumeration.hasMoreElements()) {
  String name = (String)enumeration.nextElement();
  %
  Feld: %=name% BR
  %
   }
   %
  table class=tab1 cellspacing=0 cellpadding=0
tr class=zeile_header
td class=standardHeader colspan=3%=modeDisp% Test Request 
 (%=m%)/td
/tr
%
if(flf.equals(1)){
%
 form name=HandleTR action=HandleTest.jsp method=post 
 enctype=multipart/form-data
   trtd colspan=3fl input type=submit value=go!/td/tr
   input type=hidden name=flf value=0
   input type=hidden name=m value=%=m%
 /form
%
} else {
%
  trtd colspan=3kein fl/td/tr
%
}
%
  /table
 /body
 /html
 
 The pages is submitted to itself.  flf is used to define two different 
 contents.
 
 Thanx in advance
 Ön
 
 - Original Message - From: Marc Farrow [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, June 07, 2006 4:25 PM
 Subject: Re: Fw: POST-Data from Form can not be read-out
 
 
 This could be any number of issues from browser bugs on.  What browser 
 are
 you using?  Also, can you post the rendered HTML page that is 
 submitting the
 request to the servlet?




 On 6/7/06, Oliver Enders [EMAIL PROTECTED] wrote:




 Hy List,

 I have a problem concerning submitting form-data by using POST.

 If I send the form using GET, the content of the form can be read out
 using:

 request.getParameter(xyz);

 If I change to POST,  the parameters can not be read out.

 I´m using am Tomcat 4.1.

 Any Ideas ? Suggestions ?

 Thanx in advance
 Ön




 -- 
 Marc Farrow

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



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