NPE on cluster start

2005-07-11 Thread Peter Johnson

Hi All,

I am getting an NPE on cluster start with 5.0.30-beta  any ideas?

ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to 
start cluster.

java.lang.NullPointerException
   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
   at 
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
   at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:406)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
LifecycleException:  java.lang.NullPointerException
   at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java:433)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at 
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)

   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance,
PJ

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



Re: NPE on cluster start

2005-07-11 Thread Sivaram Kumar
Hi peter,
  for you information this is my cluster code.it working fine for me.

Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
 expireSessionsOnShutdown=false
 useDirtyFlag=true

Membership
className=org.apache.catalina.cluster.mcast.McastService
mcastAddr=228.0.0.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000/

Receiver

className=org.apache.catalina.cluster.tcp.ReplicationListener
tcpListenAddress=auto
tcpListenPort=4001
tcpSelectorTimeout=100
tcpThreadCount=6/

Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
replicationMode=pooled/

Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve

filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/
/Cluster



- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, July 11, 2005 3:02 PM
Subject: NPE on cluster start


 Hi All,

 I am getting an NPE on cluster start with 5.0.30-beta  any ideas?

 ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
 start cluster.
  java.lang.NullPointerException
 at

org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
 at

org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
 at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:406)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:480)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
 ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
  LifecycleException:  java.lang.NullPointerException
 at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:433)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:480)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


 Thanks in advance,
 PJ

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



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



Re: NPE on cluster start

2005-07-11 Thread Peter Johnson

Hi Sivaram,

I had something similar but it nolonger works in 5.0.30-beta ... it 
seems to need to be in a format like below. This at least tries to start 
even if it NPEs.


Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster
useDirtyFlag=true
debug=10

serviceclass=org.apache.catalina.cluster.mcast.McastService

mcastAddr=239.192.42.4
mcastPort=45564
mcastFrequency=500
mcastDropTime=3000
tcpThreadCount=6
tcpListenAddress=auto
tcpListenPort=4001
tcpSelectorTimeout=100
printToScreen=false
expireSessionsOnShutdown=false/

   Valve className=org.apache.catalina.cluster.tcp.ReplicationValve
  filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/

PJ

Sivaram Kumar wrote:


Hi peter,
 for you information this is my cluster code.it working fine for me.

Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager
expireSessionsOnShutdown=false
useDirtyFlag=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr=228.0.0.4
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver

className=org.apache.catalina.cluster.tcp.ReplicationListener
   tcpListenAddress=auto
   tcpListenPort=4001
   tcpSelectorTimeout=100
   tcpThreadCount=6/

   Sender

className=org.apache.catalina.cluster.tcp.ReplicationTransmitter
   replicationMode=pooled/

   Valve
className=org.apache.catalina.cluster.tcp.ReplicationValve

filter=.*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;/
/Cluster



- Original Message -
From: Peter Johnson [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, July 11, 2005 3:02 PM
Subject: NPE on cluster start


 


Hi All,

I am getting an NPE on cluster start with 5.0.30-beta  any ideas?

ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
start cluster.
java.lang.NullPointerException
   at

   


org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
 


   at

   


org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
 


   at

   


org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:406)
 


   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

   


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 


   at

   


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


   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
LifecycleException:  java.lang.NullPointerException
   at

   


org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:433)
 


   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
   at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
   at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at

   


sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 


   at

   


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


   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance,
PJ


Re: Tomcat 5.5 Memory (not in catalina.sh anymore).

2005-07-11 Thread Christoph Kutzinski

Hi,

the Tomcat FAQ describes how to adjust the memory settings.


Christoph

Dave Morrow wrote:
Hi all.  


I recently updated to Tomcat 5.5

All is well, with one exception.  In prior releases (4.1) I could edit the 
catalina.sh script to adjust the memory settings.  Where would I do this in 5.5?

David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net
Tel: (519) 951-6079
Fax: (519) 451-6615 


 Freedom is just another word for nothing left to lose- Janis Joplin 

This message has originated from Autodata Solutions. The attached material is the 
Confidential and Proprietary Information of Autodata Solutions. This email and any 
files transmitted with it are confidential and intended solely for the use of the 
individual or entity to whom they are addressed. If you have received this email in 
error please delete this message and notify the Autodata system administrator at 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]





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



Tomcat 4.x security issue in protected environment

2005-07-11 Thread Rashma N
Hi,
 
We are using Tomcat 4.0.4 in our product. We have a daemon which is a wrapper 
around the tomcat.
 
We are facing one security issue with the Tomcat. If we send a HTTP packet with 
a long string in the Host field, it closes the connection.
EX: 
telnet machine port on which tomcat is running
GET /index.html HTTP/1.1
Host: very long string

HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Fri, 14 Oct 2005 05:16:57 GMT
Connection: close
Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
Connection closed by foreign host.

Though tomcat closes the connection, somewhere it is overwriiting the memory 
and not cleaning up the buffer/ memory which holds this host string. Because of 
this, applications which are already launched through the tomcat webserver gets 
the exception and our daemon dies.
 
Can somebody help me in figuring out 
1.Is this a know issue with the tomcat?
2.If yes, can I get a patch on top of Tomcat 4x where the above problem is 
fixed?
 
Any pointers on this would be of great help!!!
 
Thanks,
Rashma



-
How much free photo storage do you get? Store your friends n family photos for 
FREE with Yahoo! Photos. 
 http://in.photos.yahoo.com

JAAS

2005-07-11 Thread ronald
I've been trying to get the JavaWorld example located at
http://www.javaworld.com/javaworld/jw-03-2005/jw-0307-captcha.html

On tomcat v5.5.9 (JDK 1.5) on Linux without any luck. It goes through
the authentication process and reports it's assigned the anonymous
principle but when I go to access the protected directory again it
prompts for the login.jsp page again. 


Any ideas guys 


Thanks 

Ron 







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



Re: generate image by servlet for large amount of requests

2005-07-11 Thread Ronald Klop

We resize our images using Tomcat. The resized images are cached on the local 
disk with a nigthly cron, which removes unused files older than x days. Just 
try it and see what the load is. If the load is very high, buy more servers 
with a loadbalancer.

Ronald.

On Fri Jul 08 17:32:03 CEST 2005 Tomcat Users List 
tomcat-user@jakarta.apache.org wrote:
Any ideas? 


--- Tony Smith [EMAIL PROTECTED] wrote:

 Let's think about maps.yahoo.com. I do not know how
 they handle 
 millions of request and generate the map pictures
 quickly. If I use a 
 servlet, in the post or get method I use: 
 
 
 BufferedImage mapImage =
 myTookKit.generateMap(String address); 
 response.setContentType(image?/png); 
 OutputStream os = response.getOutputStream(); 
 ImageIO.write(buffer, png, os); 
 os.close(); 
 
 
 Is servlet a good choice? If I use servlet, is the
 code above good 
 enough to handle hundreds of request? Is the choice

 of
 BufferedImage a 
 good one? What special technique I need to implement
 myTookKit to 
 make it faster? I am thinking about JNI. 
 
 
 Thanks, 
 
 
 
 
 __

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


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



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


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





RE: Apache + Tomcat with Mod_jk

2005-07-11 Thread Shailendra Gatade
Hi Justin,

Thanks for the reply ...

I have already downloaded all the files from the location you suggested (
i.e. the Linux Version ).

But its giving me the following error ...

Syntax error on line 235 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/local/apache2/lib/mod_jk.so into server:
/usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian.

Steve has suggested not to use the PPC module. I'm gng to try with i386 and
will get back to you.

Thanks a lot again ...

Shailendra

-Original Message-
From: Justin Crabtree [mailto:[EMAIL PROTECTED]
Sent: Friday, July 08, 2005 7:37 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Apache + Tomcat with Mod_jk


Shailendra Gatade wrote:
 Hi All,

 I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using
 mod_jk. I'm facing several problems regarding this ...

 Initially i was using mod_jk2.so which is deprecated and also not
recomended
 for Production Environment.

 I am not able to find the proper mod_jk.so for Apache.

   I downloaded ...


jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so
 and


jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so

   Which file should i rename to mod_jk.so ?

   When i rename the first one and use it, i am getting the following
 error ...
  Cannot load /usr/local/apache2/lib/mod_jk.so into server:
 /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not
little-endian.

  Can somebody point me to a location where i can find the proper
 mod_jk.so for my setup ?

 Also there is no extensive tutorial available on the same issue ... Is
 anyone aware of a tutorial which guides you step by step in configuring
 Apache 2 + Tomcat 5.0 using mod_jk.so ?

 Thanks in advance ...

 Shailendra



Try here.

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/

And here for docs.

http://jakarta.apache.org/tomcat/connectors-doc/

--
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533


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



RE: Apache + Tomcat with Mod_jk

2005-07-11 Thread Shailendra Gatade
Hi Steve,

Thanks for your reply ...

I WAS using the PPC Module. I'll change it to I386, check once again and get
back ...

Thanks a lot again ...

Regards,

Shailendra

-Original Message-
From: Steve Ochani [mailto:[EMAIL PROTECTED]
Sent: Friday, July 08, 2005 10:10 PM
To: Tomcat Users List; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Apache + Tomcat with Mod_jk


 Shailendra Gatade wrote:
  Hi All,
 
  I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K )
  using mod_jk. I'm facing several problems regarding this ...
 
  Initially i was using mod_jk2.so which is deprecated and also not
  recomended for Production Environment.
 
  I am not able to find the proper mod_jk.so for Apache.
 
I downloaded ...
 
  jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr
  efork.so
  and
 
  jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo
  rker.so
 
Which file should i rename to mod_jk.so ?
 
When i rename the first one and use it, i am getting the
following
  error ...
   Cannot load /usr/local/apache2/lib/mod_jk.so into server:
  /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not
  little-endian.
 
   Can somebody point me to a location where i can find the proper
  mod_jk.so for my setup ?
 
  Also there is no extensive tutorial available on the same issue ...
  Is anyone aware of a tutorial which guides you step by step in
  configuring Apache 2 + Tomcat 5.0 using mod_jk.so ?
 
  Thanks in advance ...
 
  Shailendra
 


 Try here.

 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32
 /


Those are for windows, he is running linux (for the webserver at least).

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/

If you are not running a ppc (power pc) architecture based machine don't use
the ppc
module.

-Steve O.

«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us


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



How to create a MySQL datasource (DBCP) into TOMCAT 4.1.31...

2005-07-11 Thread Patrick Gelin
Hi,

I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to
deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration
parameters...

It seems to be all right but if I debug with Eclipse IDE my DataSource is
null...

I followed TOMCAT 4.1 JNDI DataSource how-to documentation, so now I really
need your help...:

1. I copied mysql-connector-java-3.1.10-bin.jar to [TOMCAT]/common/lib

2. This is my server.xml conf file:


(...)

Context path=/webapp_newsevent docBase=webapp_newsevent 
debug=5 reloadable=true crossContext=true
  
Logger className=org.apache.catalina.logger.FileLogger
prefix=rpn_database_log. suffix=.txt
timestamp=true/

Resource name=jdbc/rpn_database
auth=Container
type=javax.sql.DataSource/

ResourceParams name=jdbc/rpn_database
parameter
namefactory/name
valueorg.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool. Make sure you
configure your mysqld max_connections large enough to handle
all of your db connections. Set to 0 for no limit.
--
parameter
namemaxActive/name
value100/value
/parameter

!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit.
--
parameter
namemaxIdle/name
value30/value
/parameter

!-- Maximum time to wait for a dB connection to become available
in ms, in this example 10 seconds. An Exception is thrown if
this timeout is exceeded.  Set to -1 to wait indefinitely.
--
parameter
namemaxWait/name
value1/value
/parameter

!-- MySQL dB username and password for dB connections  --
parameter
nameusername/name
valueroot/value
/parameter

parameter
namepassword/name
value#/value
/parameter

!-- Class name for mm.mysql JDBC driver --
parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
/parameter

!-- The JDBC connection url for connecting to your MySQL dB.
The autoReconnect=true argument to the url makes sure that the
mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
connection.  mysqld by default closes idle connections after 8 hours.
--
parameter
nameurl/name
valuejdbc:mysql://www.rpn.ch:3306/rpn?autoReconnect=true/value
/parameter

/ResourceParams

/Context

  /Host

/Engine

  /Service


/Server


3. This is my webapp_newsevent/WEB-INF/web.xml



?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

display-namej2EE news and events for RPN/display-name

  (...)

welcome-file-list
welcome-fileCollectionView/welcome-file
/welcome-file-list

resource-ref
descriptionRPN DataBase/description
res-ref-namejdbc/rpn_database/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  

Re: Tomcat 5.5.9 - When JSPs change, gives error org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated

2005-07-11 Thread Tim Diggins

I don't know the answer, but can you confirm you are either:

1) using jdk 1.5
or
2) using jdk 1.4 (and with the compatibility package for tomcat 5.5)

as the compatibility package (as I understand it) addresses xml parser 
versioning/instantiation issues.


-- Tim



Craig Dixon wrote:

I've encountered a strange problem with my JSPs in Tomcat. Whenever I
change one of them, then try to access it from the browser, I get the
following error:

HTTP Status 500 -
 
type Exception report
 
message
 
description The server encountered an internal error () that prevented

it from fulfilling this request.
 
exception
 
javax.servlet.ServletException: Provider

org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
root cause
 
javax.xml.parsers.FactoryConfigurationError: Provider

org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:152)

org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)

org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:750)

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1527)
org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
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.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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:802)
 
note The full stack trace of the root cause is available in the Apache

Tomcat/5.5.9 logs.



I don't have the foggiest idea what that means, but when I stop and
restart Tomcat, everything usually works fine (until the next time I
change the file.)

I'd send relevant source code, but it seems to happen with every page
in multiple applications. I've posted this in several forums and have
yet to even get a reply. This is driving me batty! Any ideas?

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






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



Apache as switchboard for Tomcat and other app servers (not FAQ)

2005-07-11 Thread Steffen Neumann
Hi,

I'd like to have apache acting as switchboard 
for my applictaion servers, e.g.

my.server.org - localhost (Apache)
my.server.org/zope- localhost:9673 (Zope)
my.server.org/application - localhost:8080/application (Tomcat)

I have the setup working for Zope (using their VirtualHostMonster),
and I can redirect the individual application to tomcat.

However, I'd like to configure a common prefix 
for all tomcat applications, without the need 
to configure individual applications:

my.server.org/j2ee/app   - localhost:8080/app (Tomcat)

apache: RewriteRule ^/j2ee/(.*) http://msbi.ipb-halle.de:8080/$1 [L,P]

This doesn't work since the links generated by the applications
don't insert the /j2ee/ part into the URL. 

QUESTION: Is there an elegant way to do this, 
  apart from organizing every individual 
  application as /j2ee/app/... ?

Yours,
Steffen












signature.asc
Description: This is a digitally signed message part


Tiles

2005-07-11 Thread Dewitte Rémi
Hi !
I make a definition in which i put a list of tiles to include but I can't 
achieve to do this eg :
in my tiles-defs.xml :
definition name=page1-def extends=baseDef
put name=page value=1/
putList name=listQuestions
add value=/Q/firstName.jsp/
add value=/Q/lastName.jsp/
/putList
/definition

And in my template, i don't know how to iterate in listQuestions in order to 
include /Q/firstName.jsp and /Q/lastName.jsp.
A start : 
  tiles:importAttribute/
  c:out value=${listQuestions}/
  c:forEach items=${listQuestions} var=question
What to do to include question !
  /c:forEach

Maybe it's not possible...
Thanks.
Rémi

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



Re: Tiles

2005-07-11 Thread Christoph Kutzinski
This is a Struts/Tiles related question, you should ask in the Struts 
mailing lists.


Dewitte Rémi wrote:

Hi !
I make a definition in which i put a list of tiles to include but I can't 
achieve to do this eg :

in my tiles-defs.xml :
definition name=page1-def extends=baseDef
put name=page value=1/
putList name=listQuestions
add value=/Q/firstName.jsp/
add value=/Q/lastName.jsp/
/putList
/definition

And in my template, i don't know how to iterate in listQuestions in order to 
include /Q/firstName.jsp and /Q/lastName.jsp.
A start : 
  tiles:importAttribute/

  c:out value=${listQuestions}/
  c:forEach items=${listQuestions} var=question
What to do to include question !
  /c:forEach

Maybe it's not possible...
Thanks.
Rémi

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




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



Re: Tiles

2005-07-11 Thread Dewitte Rémi
Yes i did, i made a mistake.
Sorry !
Rémi

Le Lundi 11 Juillet 2005 11:24, Christoph Kutzinski a écrit :
 This is a Struts/Tiles related question, you should ask in the Struts
 mailing lists.

 Dewitte Rémi wrote:
  Hi !
  I make a definition in which i put a list of tiles to include but I can't
  achieve to do this eg :
  in my tiles-defs.xml :
  definition name=page1-def extends=baseDef
  put name=page value=1/
  putList name=listQuestions
  add value=/Q/firstName.jsp/
  add value=/Q/lastName.jsp/
  /putList
  /definition
 
  And in my template, i don't know how to iterate in listQuestions in order
  to include /Q/firstName.jsp and /Q/lastName.jsp.
  A start :
tiles:importAttribute/
c:out value=${listQuestions}/
c:forEach items=${listQuestions} var=question
  What to do to include question !
/c:forEach
 
  Maybe it's not possible...
  Thanks.
  Rémi
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

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



Do I need 2 clusters for upgrades with fail-over?

2005-07-11 Thread Gal Robert

Hi,

this thread refers to 'Silent runtime replace of a class' thread.

We need to provide application upgrades, where users work won't be 
interrupted. We also need fail-over future for application, meaning, if

one of the appservers goes down, users won't lost their work.

We need the simplest solution, but since we don't have any experience 
with fail-over future, we'd like to find out the simplest solution by 
your help.


We've read some documents and designed solution with these components:

1) front-end software-based load balancer (probably tomcat with the 
balancer webapp).

2) main cluster A with two tomcat instances
3) offline spare cluster B with two tomcat instances
The whole configuration is on a single machine.

The upgrade scenario will look like this:
1) bring up, deploy and test the new application on the spare cluster
2) modify the load balancer policy to redirect new user sessions to the 
spare cluster (with upgraded app)


So all the new sessions will run on the upgraded cluster. After the 
number of active users on the main cluster drops to zero, it's safe to 
stop it; so the roles of cluster will change.

To ensure fail-over future, in-memory session replication will be enabled.

The main reason to divide the system into two cluster is because of the 
fail-over future, more precisiously the session replication.
If there will be only one cluster, the session replication won't work 
correctly between the upgraded/old app. Do you agree?


Do you have any recommendations/ideas for a simpler setup with 
upgrade/fail-over futures? Any ideas, points to articles is welcomme!


--robert




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



URI of *_jsp.java

2005-07-11 Thread Kristoffer Nyborg Gregertsen
Hi

I'm working for the Department of Computer and Information Science at the 
Norwegian University of Science and Technology to make an JSP-errorPage that 
analyzes the students JSP runtime-exceptions and gives easy-to-understand 
feedback.


Want I need to know:

How do I obtain the URI of the java-file (like index_jsp.java) generated by 
Jasper?


I've searched the APIs, but I can't find a easy way to obtain this. I need to 
read the java-file for presenting the student with the codeline that caused 
the exception.

(Please foregive my ignorance, as a student of cybernetics I'm used to program 
for microcontrollers, not webapplications...)
-- 

Med vennlig hilsen - With kind regards

Kristoffer Nyborg Gregertsen

Student
Department of Engineering Cybernetics
Norwegian University of Science and Technology
Trondheim
Norway

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



Tomcat and Apache

2005-07-11 Thread Christian Stalp
Hello together,
I still have some trouble running Apache and Tomcat together in one host.
I heard that I have to write a  j_secutiry_check into apache.conf or 
httpd.conf. Where exactly I have to write this, and with which syntax. What 
else I have to consider while running Apache and Tomcat together.

Important: Tomcat is not embedded in Apache in my case. It has its own 
process!!!

Thank you...

Gruss Christian

-- 
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

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



Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez

I don t know details about your problem but  i can answer that

j_secutiry_check is not a way of integrating tomcat into apache. It is an 
authentition scheme defined by J2EE specs.

What you need is the jk_mount apache module, to let your Apache install bypass 
the dynamic calls to tomcat, and then to serve only static content with apache.

Details of configuration can be found at:

http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/


Christian Stalp escribió:


Hello together,
I still have some trouble running Apache and Tomcat together in one host.
I heard that I have to write a  j_secutiry_check into apache.conf or 
httpd.conf. Where exactly I have to write this, and with which syntax. What 
else I have to consider while running Apache and Tomcat together.


Important: Tomcat is not embedded in Apache in my case. It has its own 
process!!!


Thank you...

Gruss Christian

 




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



Re: Tomcat and Apache

2005-07-11 Thread Christian Stalp
Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
 I don t know details about your problem but  i can answer that

 j_secutiry_check is not a way of integrating tomcat into apache. It is an
 authentition scheme defined by J2EE specs.

 What you need is the jk_mount apache module, to let your Apache install
 bypass the dynamic calls to tomcat, and then to serve only static content
 with apache.

 Details of configuration can be found at:

 http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/

No this isn't the solution. Tomcat and Apache are full independent. They don't 
cooperate together nor they communicate. Apache listens at port 80 and Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each 
time:
[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

-- 
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

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



AW: URI of *_jsp.java

2005-07-11 Thread Bernhard Slominski
Hi Kristoffer,

the java files are under ${TOMCAT_HOME}\work\catalina\localhost ...
But you cannot get these files via URI, because that would mean that
everyone can see the sourcecode of your jsp.

It's not quite clear to me how you retrive the sutdent name from the
generated java file.
A better idea from my point of view is - if you use a version control system
- to get it directly from there,
or - if not - read it from the file system.

Cheers

Bernhard

 -Ursprüngliche Nachricht-
 Von: Kristoffer Nyborg Gregertsen [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 11. Juli 2005 13:05
 An: tomcat-user@jakarta.apache.org
 Betreff: URI of *_jsp.java
 
 
 Hi
 
 I'm working for the Department of Computer and Information 
 Science at the 
 Norwegian University of Science and Technology to make an 
 JSP-errorPage that 
 analyzes the students JSP runtime-exceptions and gives 
 easy-to-understand 
 feedback.
 
 
 Want I need to know:
 
 How do I obtain the URI of the java-file (like 
 index_jsp.java) generated by 
 Jasper?
 
 
 I've searched the APIs, but I can't find a easy way to obtain 
 this. I need to 
 read the java-file for presenting the student with the 
 codeline that caused 
 the exception.
 
 (Please foregive my ignorance, as a student of cybernetics 
 I'm used to program 
 for microcontrollers, not webapplications...)
 -- 
 
 Med vennlig hilsen - With kind regards
 
 Kristoffer Nyborg Gregertsen
 
 Student
 Department of Engineering Cybernetics
 Norwegian University of Science and Technology
 Trondheim
 Norway
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: AW: URI of *_jsp.java

2005-07-11 Thread Kristoffer Nyborg Gregertsen
On Monday 11 July 2005 14:01, Bernhard Slominski wrote:
 Hi Kristoffer,

 the java files are under ${TOMCAT_HOME}\work\catalina\localhost ...
 But you cannot get these files via URI, because that would mean that
 everyone can see the sourcecode of your jsp.

 It's not quite clear to me how you retrive the sutdent name from the
 generated java file.
 A better idea from my point of view is - if you use a version control
 system - to get it directly from there,
 or - if not - read it from the file system.

 Cheers

 Bernhard

Thanks for answering, Bernhard :-)

Think I mixed up things a bit, I want to access the java-file through the 
filesystem with the UID that my servlet runs as.

I have made a class called ExceptionAnalyzer that takes the pageContext of the 
JSP-errorPage as an argument and tries to extract as much information as 
possible.

The students name doesn't really concern us, we don't keep track of who has 
done what wrong, the errorPage is only ment to help the students understand 
what they did wrong. We're using JSP as an first introduction to programming 
for all of the schools 1200 Master of Technology-freshmen.

The code is very simple, like

%
for (int i=0; i  10; i++)
out.println(Hello world!);
%

etc, so there is not really any point in preventing others from seeing it.



But, to get to the point:

Is there no easy way I can ask Jasper or another Tomcat-component where the 
Java-source of the given JSP-servlet is located on the filesystem?



Do I have to find it out myself like: 

{$TOMCAT_HOME}/work/catalina/{$WHATEVER_SERVER}/{$USER}/...
-- 

Med vennlig hilsen - With kind regards

Kristoffer Nyborg Gregertsen

Student
Department of Engineering Cybernetics
Norwegian University of Science and Technology
Trondheim
Norway

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



AW: AW: URI of *_jsp.java

2005-07-11 Thread Bernhard Slominski
I see you point now, your smart ExceptionAnalyzer gives them the line in the
sourcecode so it's easier for them to find out what was wrong.
But unfortunatly I don't see a different way except to find out yourself as
you pointed out like:
{$TOMCAT_HOME}/work/catalina/{$WHATEVER_SERVER}/{$USER}/...

But as long as you don't change your server and applications names it still
should work fine via the filesystem.

Bernhard


 -Ursprüngliche Nachricht-
 Von: Kristoffer Nyborg Gregertsen [mailto:[EMAIL PROTECTED]
 Gesendet: Montag, 11. Juli 2005 14:49
 An: Tomcat Users List
 Betreff: Re: AW: URI of *_jsp.java
 
 
 On Monday 11 July 2005 14:01, Bernhard Slominski wrote:
  Hi Kristoffer,
 
  the java files are under ${TOMCAT_HOME}\work\catalina\localhost ...
  But you cannot get these files via URI, because that would mean that
  everyone can see the sourcecode of your jsp.
 
  It's not quite clear to me how you retrive the sutdent name from the
  generated java file.
  A better idea from my point of view is - if you use a 
 version control
  system - to get it directly from there,
  or - if not - read it from the file system.
 
  Cheers
 
  Bernhard
 
 Thanks for answering, Bernhard :-)
 
 Think I mixed up things a bit, I want to access the java-file 
 through the 
 filesystem with the UID that my servlet runs as.
 
 I have made a class called ExceptionAnalyzer that takes the 
 pageContext of the 
 JSP-errorPage as an argument and tries to extract as much 
 information as 
 possible.
 
 The students name doesn't really concern us, we don't keep 
 track of who has 
 done what wrong, the errorPage is only ment to help the 
 students understand 
 what they did wrong. We're using JSP as an first introduction 
 to programming 
 for all of the schools 1200 Master of Technology-freshmen.
 
 The code is very simple, like
 
 %
   for (int i=0; i  10; i++)
   out.println(Hello world!);
 %
 
 etc, so there is not really any point in preventing others 
 from seeing it.
 
 
 
 But, to get to the point:
 
 Is there no easy way I can ask Jasper or another 
 Tomcat-component where the 
 Java-source of the given JSP-servlet is located on the filesystem?
 
 
 
 Do I have to find it out myself like: 
 
 {$TOMCAT_HOME}/work/catalina/{$WHATEVER_SERVER}/{$USER}/...
 -- 
 
 Med vennlig hilsen - With kind regards
 
 Kristoffer Nyborg Gregertsen
 
 Student
 Department of Engineering Cybernetics
 Norwegian University of Science and Technology
 Trondheim
 Norway
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: How to create a MySQL datasource (DBCP) into TOMCAT 4.1.31...

2005-07-11 Thread Hassan Schroeder

Patrick Gelin wrote:


I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to
deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration
parameters...



2. This is my server.xml conf file:



ResourceParams name=jdbc/rpn_database
parameter
namefactory/name

valueorg.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory/value
/parameter


I believe that's 5.5.x-specific -- commons-dbcp contains:
   org.apache.tomcat.dbcp.BasicDataSourceFactory

:: (note only one '.dbcp'). Change that, make sure commons-dbcp is
in your 4.1.31 $CATALINA_HOME/common/lib and give it a try.

HTH!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Trying to configure apache, tomcat and mod_jk

2005-07-11 Thread Matthew Strawbridge
Hi

After spending several days trying to set this up from the 
documentation, I've finally decided I need some expert help.

I have a server set up with several domains sharing an IP address. I 
want to be able to have JSP files in amongst my static files, and 
have apache serve the static ones and to forward the requests for 
*.jsp to tomcat using mod_jk.

At present:
http://www.philoxenic.com:8080/test.jsp correctly serves up 
/home/httpd/vhosts/philoxenic.com/jsp/test.jsp through tomcat. (I 
would rather have these files in ../httpdocs/, but thought it might 
be easier if apache couldn't find the files itself).

http://www.philoxenic.com/test.jsp comes up with a 'Not Found' error. 
This is what I want to get working.

If I copy test.jsp from 'jsp' to 'httpdocs' then 
http://www.philoxenic.com/test.jsp serves it up as plain HTML (i.e. 
bypassing Tomcat).

Please can someone point me in the right direction. To get this far 
I've had to recompile apache, compile tomcat and mod_jk, and think I 
have been going round in circles following out-of-date documents on 
the Web. I feel I'm close, but perhaps can't see the wood for the 
trees.

Thanks
Matthew


VERSIONS:
Red Hat Linux 9
Apache 2.0.40
Tomcat 5.5.9
jakarta-tomcat-connectors-1.2.13

FILES:
/usr/local/jakarta-tomcat-5/conf/server.xml:

Server port=8005 shutdown=SHUTDOWN
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener /
  Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
  Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
   factory=org.apache.catalina.users.MemoryUserDatabaseFactory
  pathname=conf/tomcat-users.xml /

  /GlobalNamingResources
  Service name=Catalina
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true acceptCount=10 debug=0
   connectionTimeout=2 useURIValidationHack=false
   protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

!-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
Connector port=8080 maxHttpHeaderSize=8192
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   connectionTimeout=2 disableUploadTimeout=true /
Engine name=Catalina defaultHost=localhost
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
 resourceName=UserDatabase/
  Host name=localhost appBase=webapps
   unpackWARs=true autoDeploy=true
   xmlValidation=false xmlNamespaceAware=false
  /Host

  Host name=www.philoxenic.com
Context path= docBase=/home/httpd/vhosts/philoxenic.com/jsp 
debug=1 reloadable=true/
  /Host

/Engine

  /Service

/Server


/usr/local/apache2/conf/httpd.conf:
[SNIP]
  LoadModulejk_module  /usr/local/apache2/modules/mod_jk.so
  JkWorkersFile /usr/local/apache2/conf/workers.properties
  JkLogFile /var/log/httpd/mod_jk.log
  JkLogLeveldebug
  JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
  JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
  JkRequestLogFormat %w %V %T
  JkMount  /*.jsp ajp13
  JkMount  /examples/* ajp13


/usr/local/apache2/conf/workers.properties:
workers.tomcat_home=/usr/local/jakarta-tomcat-5
workers.java_home=/usr/java/jdk1.5.0_04
ps=/
worker.list=ajp12, ajp13
worker.ajp12.port=8007
worker.ajp12.host=localhost
worker.ajp12.type=ajp12
worker.ajp12.lbfactor=1
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp12, ajp13
worker.inprocess.type=jni
worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomcat.jar
worker.inprocess.cmd_line=start
worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i386$(ps)server$(ps)libjvm.so
worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stdout
worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inprocess.stderr


LOGS:

/var/log/httpd/mod_jk.log:
[Mon Jul 11 06:26:32 2005] [10660:16384] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI '/test.jsp' 
from 1 maps
[Mon Jul 11 06:26:32 2005] [10660:16384] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map context URI 
'/home/httpd/vhosts/philoxenic.com/httpdocs/*.jsp'
[Mon Jul 11 06:26:32 2005] [10660:16384] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map 

Re: Tomcat 5.5.9 - When JSPs change, gives error org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated

2005-07-11 Thread Craig Dixon
Yes, I am running JDK 1.5.0_03. Is there any problem between Tomcat
and this JDK?

On 7/11/05, Tim Diggins [EMAIL PROTECTED] wrote:
 I don't know the answer, but can you confirm you are either:
 
 1) using jdk 1.5
 or
 2) using jdk 1.4 (and with the compatibility package for tomcat 5.5)
 
 as the compatibility package (as I understand it) addresses xml parser
 versioning/instantiation issues.
 
 -- Tim
 
 
 
 Craig Dixon wrote:
  I've encountered a strange problem with my JSPs in Tomcat. Whenever I
  change one of them, then try to access it from the browser, I get the
  following error:
 
  HTTP Status 500 -
 
  type Exception report
 
  message
 
  description The server encountered an internal error () that prevented
  it from fulfilling this request.
 
  exception
 
  javax.servlet.ServletException: Provider
  org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
  java.lang.NullPointerException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
  root cause
 
  javax.xml.parsers.FactoryConfigurationError: Provider
  org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
  java.lang.NullPointerException
javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

  org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:152)

  org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)

  org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:750)

  org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1527)
org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
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.java:556)

  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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:802)
 
  note The full stack trace of the root cause is available in the Apache
  Tomcat/5.5.9 logs.
 
 
 
  I don't have the foggiest idea what that means, but when I stop and
  restart Tomcat, everything usually works fine (until the next time I
  change the file.)
 
  I'd send relevant source code, but it seems to happen with every page
  in multiple applications. I've posted this in several forums and have
  yet to even get a reply. This is driving me batty! Any ideas?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: newbie can't start tomcat

2005-07-11 Thread dsimmons
Thanks, I tried it, and this makes no change in the behavior.

-Original Message-
From: Mandar Vaidya [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 2:44 PM
To: 'Tomcat Users List'
Subject: RE: newbie can't start tomcat

Hi Doug,

I believe you don't have to start it as ./bin/startup.sh 

Go to bin directory and then execute ./startup.sh 

See if it helps you.

Thanks,
Mandar


-Original Message-
From: dsimmons [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 4:23 PM
To: tomcat-user@jakarta.apache.org
Subject: newbie can't start tomcat

I have been googling the archives and anyplace else I can think of for
my
particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly
I've
been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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

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


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



RE: newbie can't start tomcat

2005-07-11 Thread dsimmons
My goal is to get Sakai running, and it must have 1.4, so I guess I'm
stuck with it. 

Thanks,
Doug Simmons

-Original Message-
From: Luis Torres [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 2:43 PM
To: Tomcat Users List
Subject: Re: newbie can't start tomcat

It may not be the best solution because you may have a special 
attachment to Java 1.4 but since you are running Solaris you can install

JDK 1.5 anywhere (even /export/home) without it colliding with the 
overall SO Java installation.

So why not use JDK 1.5, set your JAVA_HOME to your new Java directory 
and enjoy the weekend?

I have Tomcat 5.5.4 running with JDK 1.5.02 on Solaris 9 and it worked 
basically out of the box doing nothing more than setting JAVA_HOME  
CATALINA_HOME   =)

---
Luis

dsimmons wrote:

I have been googling the archives and anyplace else I can think of for
my particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly
I've been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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

  


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


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



Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez

I have the same issue! with debian sarge, and tomcat installed from scratch:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)


jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03

No this isn't the solution. Tomcat and Apache are full independent. They don't 
cooperate together nor they communicate. Apache listens at port 80 and Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each 
time:

[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.


exception

org.apache.jasper.JasperException: Unable to compile class for JSP
	at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)

at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)

at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

 




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



parseCookies error situation: Tomcat 5.0.19 Win32

2005-07-11 Thread Mitchell Teixeira
Hello Tomcat Users List - first my apologies in case this situation is
already documented.  Extensive searches turned up little useful
information about this situation.  I am using Tomcat 5.0.19 on
Windows2000.  I've found this Tomcat to be very stable.

Today I found my Tomcat server unresponsive and the following message in
the log:

Jul 7,2005 5:38:18PM org.apache.coyote.tomcat5.CoyoteAdapter parseCookies
SEVERE: Bad Cookie Name: Expires /Value: Sun
java.lang.IllegalArgumentException: Cookie name Expires is a reserved
token 
   at  javax.servlet.http.Cookie.initCookie.java:185
   .
   .snip
   .

Another similar error was just after:
Jul 7,2005 5:38:18PM org.apache.coyote.tomcat5.CoyoteAdapter parseCookies
SEVERE: Bad Cookie Name: Domain /Value: .firststreetonline.com
java.lang.IllegalArgumentException: Cookie name Domain is a reserved
token 
   at  javax.servlet.http.Cookie.initCookie.java:185
   .
   .snip
   .

Are these signs someone is accessing my site with corrupted cookies? 

How to supress or better handle this situation? (Hopefully besides Tomcat
upgrade!)

Any help graciously appreciated - 
MitchellT


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



RE: Tomcat and Apache

2005-07-11 Thread Raghupathy,Gurumoorthy
Check the permission in the work directory change it to 777 and try 

-Original Message-
From: Ivan Rodriguez [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 15:14
To: Tomcat Users List
Subject: Re: Tomcat and Apache


I have the same issue! with debian sarge, and tomcat installed from scratch:

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
The return type is incompatible with JspSourceDependent.getDependants()



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle
r.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3
28)

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)


jakarta-tomcat-5.5.9-src.tar.gz
Debian GNU/Linux 3.1
jdk1.5.0_03

No this isn't the solution. Tomcat and Apache are full independent. They
don't 
cooperate together nor they communicate. Apache listens at port 80 and
Tomcat 
at port 8180 ( its the Debian Solution ). 
But I cannot run tomcat under these configuration. I get an error dump each

time:
[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from 
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
   at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:
432)
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
142)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:200)
   at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
   at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

  



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

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



Tomcat 5.5 and SQL Server

2005-07-11 Thread Anderson, M. Paul
I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul

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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Sue Roe
What driver are you using between Tomcat and SQL server?

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 16:35
To: Tomcat Users List
Subject: Tomcat 5.5 and SQL Server

I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul

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




***Disclaimer***

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

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

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

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


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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Anderson, M. Paul
com.microsoft.jdbc.sqlserver.SQLServerDriver

-Original Message-
From: Sue Roe [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 11:43 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5 and SQL Server


What driver are you using between Tomcat and SQL server?

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 16:35
To: Tomcat Users List
Subject: Tomcat 5.5 and SQL Server

I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul

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





***Disclaimer***

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

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

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

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


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


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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Peter Crowther
 From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
 I am running Tomcat 5.5 with SQL Server on a separate machine.

 I am getting the following error at random times:

 Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
 Driver for JDBC]Connection rest by peer: socket write error.

Any antivirus on either machine?  Especially anything that might hook the 
network stack?
 
Anything in SQL Server's server log?
 
If you run the SQL Profiler and set up a trace that logs exceptions and 
warnings, do you see anything?
 
- Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat and Apache

2005-07-11 Thread Ivan Rodriguez
It was my first attempt. I think i have problems with library 
dependencies, cause I have copied the install from development to 
integration enviroment. Development is a mandriva cooker (urpmi setup), 
and integration a debian sarge system(from scratch setup).


Installing and getting running tomcat 5.5 is not as easy than with 5.0 
series :)


Raghupathy,Gurumoorthy escribió:

Check the permission in the work directory change it to 777 and try 

 



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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Sue Roe
Ok. I haven't any experience with that, but I can say we were having similar
sporadic errors here with a Driver from Inet software (Merlia.jar),and
having upgraded it recently, the issue seems to have been resolved. I was
told that it was something to do with SQL Server throwing the connections
out, occasionally. 

So possibly it's a driver bug, not maintaining your connections. That's as
much as I know!

Good luck... 

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 16:47
To: Tomcat Users List
Subject: RE: Tomcat 5.5 and SQL Server

com.microsoft.jdbc.sqlserver.SQLServerDriver

-Original Message-
From: Sue Roe [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 11:43 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5 and SQL Server


What driver are you using between Tomcat and SQL server?

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED] 
Sent: 11 July 2005 16:35
To: Tomcat Users List
Subject: Tomcat 5.5 and SQL Server

I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul

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





***Disclaimer***

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

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

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

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


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


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



***Disclaimer***

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

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

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

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


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



Problem configuring context resource in embedded tomcat 5.5.9

2005-07-11 Thread Ryan LeCompte
Hello all,

 

I'm trying to manually configure a context resource using embedded Tomcat
5.5.9. I'm not sure if ordering is important in the code below, but perhaps
one of you could shed some light. I don't get any exceptions or anything,
but my webapp isn't able to find the resource. Here is the relevant code:

 

  // - BEGIN LOAD CUSTOM WEBAPPS


  try {

 // Configure JDBC data source.

 ContextResource ctxResource = new ContextResource();

 ctxResource.setName(jdbc/juddiDB);

 ctxResource.setAuth(Container);

 ctxResource.setType(javax.sql.DataSource); 

 ctxResource.setProperty(maxActive, 100);

 ctxResource.setProperty(maxIdle, 30);

 ctxResource.setProperty(maxWait, 1);

 ctxResource.setProperty(user, user);

 ctxResource.setProperty(password, pass);

 ctxResource.setProperty(driverClassName,
org.firebirdsql.jdbc.FBDriver);

 ctxResource.setProperty(url,
jdbc:firebirdsql://localhost:3050/juddi?autoReconnect=true);

 ctxResource.setProperty(validationQuery, select count(*) from
PUBLISHER);

 NamingResources namingResources = rootcontext.getNamingResources();

 namingResources.addResource(ctxResource);

 tomcat-user@jakarta.apache.org

 // Load and configure the UDDI registry webapp.

 Context ctx = this.embedded.createContext(/juddi, getPath() +
/webapps/juddi);

 ctx.setPrivileged(true);

 this.host.addChild(ctx); // add context to host

 ctx.getNamingResources().addResource(ctxResource);

  } catch (Exception e) {

 e.printStackTrace();

  } 

  // - END LOAD CUSTOM WEBAPPS
---  

 

All of the above code is executed after the root context is created and
initialized, and before the embedded tomcat engine is started. Any ideas?

 

Thanks!

 

Ryan

 

 



Re: Tomcat 5.5.9 - When JSPs change, gives error org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated

2005-07-11 Thread Craig Dixon
Another thought that just occurred to me is that the problem could be
my use of the mod_jk2 connector. Could this be it?

I'd like to use the mod_jk connector, since jk2 is deprecated, but I
haven't been able to make it work. I wish I could find some
instructions for setting up mod_jk that are as clear and concise as
these for mod_jk2: http://mpcon.org/apacheguide/#jsp

Any suggestions?

On 7/11/05, Craig Dixon [EMAIL PROTECTED] wrote:
 Yes, I am running JDK 1.5.0_03. Is there any problem between Tomcat
 and this JDK?
 
 On 7/11/05, Tim Diggins [EMAIL PROTECTED] wrote:
  I don't know the answer, but can you confirm you are either:
 
  1) using jdk 1.5
  or
  2) using jdk 1.4 (and with the compatibility package for tomcat 5.5)
 
  as the compatibility package (as I understand it) addresses xml parser
  versioning/instantiation issues.
 
  -- Tim
 
 
 
  Craig Dixon wrote:
   I've encountered a strange problem with my JSPs in Tomcat. Whenever I
   change one of them, then try to access it from the browser, I get the
   following error:
  
   HTTP Status 500 -
  
   type Exception report
  
   message
  
   description The server encountered an internal error () that prevented
   it from fulfilling this request.
  
   exception
  
   javax.servlet.ServletException: Provider
   org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
   java.lang.NullPointerException
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
   root cause
  
   javax.xml.parsers.FactoryConfigurationError: Provider
   org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
   java.lang.NullPointerException
 javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
 
   org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:152)
 
   org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)
 
   org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:750)
 
   org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1527)
 org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
 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.java:556)
 
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: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:802)
  
   note The full stack trace of the root cause is available in the Apache
   Tomcat/5.5.9 logs.
  
  
  
   I don't have the foggiest idea what that means, but when I stop and
   restart Tomcat, everything usually works fine (until the next time I
   change the file.)
  
   I'd send relevant source code, but it seems to happen with every page
   in multiple applications. I've posted this in several forums and have
   yet to even get a reply. This is driving me batty! Any ideas?
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Problem when a click a button that it execute a servlet n times

2005-07-11 Thread password password
Hi, 
  I have a problem with a button in my jsp page. When I click the button then 
it excutes a servlet. But if i click two or three or n times it executes a 
servlet
 n times. 
 
How can I do that this button execute only once independent of the number of 
times that you click the button.
 
Thanks.



-

Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es

Re: Tomcat and Apache

2005-07-11 Thread dan stephens




From: Christian Stalp [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat and Apache
Date: Mon, 11 Jul 2005 13:53:09 +0200

Am Montag, 11. Juli 2005 13:34 schrieb Ivan Rodriguez:
 I don t know details about your problem but  i can answer that

 j_secutiry_check is not a way of integrating tomcat into apache. It is 
an

 authentition scheme defined by J2EE specs.

 What you need is the jk_mount apache module, to let your Apache install
 bypass the dynamic calls to tomcat, and then to serve only static 
content

 with apache.

 Details of configuration can be found at:

 http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/

No this isn't the solution. Tomcat and Apache are full independent. They 
don't
cooperate together nor they communicate. Apache listens at port 80 and 
Tomcat

at port 8180 ( its the Debian Solution ).
But I cannot run tomcat under these configuration. I get an error dump each
time:
[quote]
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it 
from

fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:432)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142)
	at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:240)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.access$000
(ApplicationFilterChain.java:51)
at org.apache.cata.
..
[/quote]

Apache works fine and makes no trouble.

Gruss Christian

--
Christian Stalp
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Johannes-Gutenberg-Universität Mainz
Tel.: 06131 / 17-3107
E-Mail: [EMAIL PROTECTED]

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

Tomcat and apache are fully independent, but to enable Apache to use Tomcat 
as the J2EE container, you need to use mod_jk, which is what Ivan stated. 
Then when a request comes into Apache, your jk mount point will tell it to 
deliver the JSP from tomcat. That's a high level anyway.


Do you really need apache? You can just use Tomcat for your static content, 
JSP, beans etc...


_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread dan stephens




From: Sue  Roe [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Subject: RE: Tomcat 5.5 and SQL Server
Date: Mon, 11 Jul 2005 17:10:01 +0100

Ok. I haven't any experience with that, but I can say we were having 
similar

sporadic errors here with a Driver from Inet software (Merlia.jar),and
having upgraded it recently, the issue seems to have been resolved. I was
told that it was something to do with SQL Server throwing the connections
out, occasionally.

So possibly it's a driver bug, not maintaining your connections. That's as
much as I know!

Good luck...

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]
Sent: 11 July 2005 16:47
To: Tomcat Users List
Subject: RE: Tomcat 5.5 and SQL Server

com.microsoft.jdbc.sqlserver.SQLServerDriver

-Original Message-
From: Sue Roe [mailto:[EMAIL PROTECTED]
Sent: Monday, July 11, 2005 11:43 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat 5.5 and SQL Server


What driver are you using between Tomcat and SQL server?

-Original Message-
From: Anderson, M. Paul [mailto:[EMAIL PROTECTED]
Sent: 11 July 2005 16:35
To: Tomcat Users List
Subject: Tomcat 5.5 and SQL Server

I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul

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





***Disclaimer***

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

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

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

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


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


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



***Disclaimer***

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


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


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


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


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

the driver these guy's provided works pretty well.  
http://jtds.sourceforge.net/faq.html


_
Don’t just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



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



Re: Problem when a click a button that it execute a servlet n times

2005-07-11 Thread Mitchell Teixeira
I was just reviewing an article which addresses this exact issue!

http://java.sun.com/developer/EJTechTips/2003/tt0114.html

I hope this helps - it doesn't look simple, but neither is your issue!  I
think the only situation to your issue is from an application point of
view rather than from Tomcat.

Cheers - 
MitchellT



--- password password [EMAIL PROTECTED] wrote:

 Hi, 
   I have a problem with a button in my jsp page. When I click the button
 then it excutes a servlet. But if i click two or three or n times it
 executes a servlet
  n times. 
  
 How can I do that this button execute only once independent of the
 number of times that you click the button.
  
 Thanks.
 
 
   
 -
 
 Correo Yahoo!
 Comprueba qué es nuevo, aquí
 http://correo.yahoo.es


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



Re: Tomcat 5.5 and SQL Server

2005-07-11 Thread Mitchell Teixeira
Hi - I've heard nothing but bad things about the Microsoft JDBC driver for
SQL Server. I don't have any suggestions how to fix your problem in-place,
just a suggestion to switch drivers.

I've been using this JTDS open souce JDBC driver, suggested by our vendor
and it is very stable:

http://jtds.sourceforge.net/

It was super easy to install and configure.  I hope it will help you!

Regards,
MitchellT



--- Anderson, M. Paul [EMAIL PROTECTED] wrote:

 I am running Tomcat 5.5 with SQL Server on a separate machine.
 
 I am getting the following error at random times:
 
 Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
 Driver for JDBC]Connection rest by peer: socket write error.
 
 I have been unable to determine a trigger for this error - it just seems
 to happen randomly.  When it occurs, no user can then log in to the
 application - I must reboot the SQL server machine to get a connection
 to be made for subsequent logins.
 
 Has anyone seen this and can point me to a solution?
 
 Thanks,
 Paul


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



Re: Tomcat 5.5 and SQL Server

2005-07-11 Thread Tim Funk

FWIW .. there is a new version of the SQLServer JDBC driver from Microsoft.

-Tim

Mitchell Teixeira wrote:

Hi - I've heard nothing but bad things about the Microsoft JDBC driver for
SQL Server. I don't have any suggestions how to fix your problem in-place,
just a suggestion to switch drivers.

I've been using this JTDS open souce JDBC driver, suggested by our vendor
and it is very stable:

http://jtds.sourceforge.net/

It was super easy to install and configure.  I hope it will help you!

Regards,
MitchellT



--- Anderson, M. Paul [EMAIL PROTECTED] wrote:



I am running Tomcat 5.5 with SQL Server on a separate machine.

I am getting the following error at random times:

Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer 2000
Driver for JDBC]Connection rest by peer: socket write error.

I have been unable to determine a trigger for this error - it just seems
to happen randomly.  When it occurs, no user can then log in to the
application - I must reboot the SQL server machine to get a connection
to be made for subsequent logins.

Has anyone seen this and can point me to a solution?

Thanks,
Paul




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




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



Re: Trying to configure apache, tomcat and mod_jk

2005-07-11 Thread Paul George Constantine
Hey Matthew,

I'm no expert, but I can tell you what I did to get it running. I'm  running
Apache 2.0 on Fedora Core 4. I basically ended up just rolling back my
versions to get things to work. I rolled back to Tomcat 5.0.28 with mod_jk
1.2.10.

It's true. The documentation on the web is out of date and very confusing.

I set things up considerably different, though. For example, I was just
trying to serve jsp's from the $CATALINA_HOME\webapps directory. I'm not
entirely sure, but I think the JkMount directive only points to that
directory.

It looks like you're defining more workers in your workers.properties than
you're actually using in httpd.conf. I don't think you need the ajp12
worker.

Another thing is that you have not defined a JkShmFile (a shared memory
file). This is required for connectors 1.2.10 and later (although 1.2.13
might set one up on its own).

Here's a link to the relevant lines in my config files. I got this working
this weekend, so you can be sure they're fresh.

http://ill-conditioned.stanford.edu/JSPWiki/Wiki.jsp?page=Fedora

If the wiki link doesn't work, then you know I'm still having problems. :)

Hope this helps,
Paul

Quoting Matthew Strawbridge [EMAIL PROTECTED]:

 Hi

 After spending several days trying to set this up from the
 documentation, I've finally decided I need some expert help.

 I have a server set up with several domains sharing an IP address. I
 want to be able to have JSP files in amongst my static files, and
 have apache serve the static ones and to forward the requests for
 *.jsp to tomcat using mod_jk.

 At present:
 http://www.philoxenic.com:8080/test.jsp correctly serves up
 /home/httpd/vhosts/philoxenic.com/jsp/test.jsp through tomcat. (I
 would rather have these files in ../httpdocs/, but thought it might
 be easier if apache couldn't find the files itself).

 http://www.philoxenic.com/test.jsp comes up with a 'Not Found' error.
 This is what I want to get working.

 If I copy test.jsp from 'jsp' to 'httpdocs' then
 http://www.philoxenic.com/test.jsp serves it up as plain HTML (i.e.
 bypassing Tomcat).

 Please can someone point me in the right direction. To get this far
 I've had to recompile apache, compile tomcat and mod_jk, and think I
 have been going round in circles following out-of-date documents on
 the Web. I feel I'm close, but perhaps can't see the wood for the
 trees.

 Thanks
 Matthew


 VERSIONS:
 Red Hat Linux 9
 Apache 2.0.40
 Tomcat 5.5.9
 jakarta-tomcat-connectors-1.2.13

 FILES:
 /usr/local/jakarta-tomcat-5/conf/server.xml:

 Server port=8005 shutdown=SHUTDOWN
   Listener
 className=org.apache.catalina.mbeans.ServerLifecycleListener /
   Listener
 className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 /
   Listener
 className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
   GlobalNamingResources

 !-- Test entry for demonstration purposes --
 Environment name=simpleValue type=java.lang.Integer value=30/

 !-- Editable user database that can also be used by
  UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
description=User database that can be updated and saved
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /

   /GlobalNamingResources
   Service name=Catalina
 Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true acceptCount=10 debug=0
connectionTimeout=2 useURIValidationHack=false

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector port=8080 maxHttpHeaderSize=8192
maxThreads=150 minSpareThreads=25 maxSpareThreads=75
enableLookups=false redirectPort=8443
 acceptCount=100
connectionTimeout=2 disableUploadTimeout=true /
 Engine name=Catalina defaultHost=localhost
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase/
   Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
   /Host

   Host name=www.philoxenic.com
 Context path= docBase=/home/httpd/vhosts/philoxenic.com/jsp
 debug=1 reloadable=true/
   /Host

 /Engine

   /Service

 /Server


 /usr/local/apache2/conf/httpd.conf:
 [SNIP]
   LoadModulejk_module  /usr/local/apache2/modules/mod_jk.so
   JkWorkersFile /usr/local/apache2/conf/workers.properties
   JkLogFile /var/log/httpd/mod_jk.log
   JkLogLeveldebug
   JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
   JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkRequestLogFormat %w %V %T
   JkMount  /*.jsp ajp13
   JkMount  /examples/* ajp13


 

Re: Tomcat 5.5 and SQL Server

2005-07-11 Thread Woodchuck
also, make sure your SQL Server is patched up with the latest SQL
Server service pack.

woodchuck

--- Tim Funk [EMAIL PROTECTED] wrote:

 FWIW .. there is a new version of the SQLServer JDBC driver from
 Microsoft.
 
 -Tim
 
 Mitchell Teixeira wrote:
  Hi - I've heard nothing but bad things about the Microsoft JDBC
 driver for
  SQL Server. I don't have any suggestions how to fix your problem
 in-place,
  just a suggestion to switch drivers.
  
  I've been using this JTDS open souce JDBC driver, suggested by our
 vendor
  and it is very stable:
  
  http://jtds.sourceforge.net/
  
  It was super easy to install and configure.  I hope it will help
 you!
  
  Regards,
  MitchellT
  
  
  
  --- Anderson, M. Paul [EMAIL PROTECTED] wrote:
  
  
 I am running Tomcat 5.5 with SQL Server on a separate machine.
 
 I am getting the following error at random times:
 
 Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer
 2000
 Driver for JDBC]Connection rest by peer: socket write error.
 
 I have been unable to determine a trigger for this error - it just
 seems
 to happen randomly.  When it occurs, no user can then log in to the
 application - I must reboot the SQL server machine to get a
 connection
 to be made for subsequent logins.
 
 Has anyone seen this and can point me to a solution?
 
 Thanks,
 Paul
  
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Brian McGovern
I also had the same problem with that driver.  JTDS is a much much better 
driver.  Also look at your connection pooling software, using the commons DBCP 
is also a little shady.  I switched to c3p0 and all the connection problems 
disappeared.  Furthermore with c3p0 when the sql server reboots c3p0 is smart 
enough to reestablish connections.  

-B

-Original Message-
From: Woodchuck [mailto:[EMAIL PROTECTED]
Sent: Monday, July 11, 2005 1:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 and SQL Server


also, make sure your SQL Server is patched up with the latest SQL
Server service pack.

woodchuck

--- Tim Funk [EMAIL PROTECTED] wrote:

 FWIW .. there is a new version of the SQLServer JDBC driver from
 Microsoft.
 
 -Tim
 
 Mitchell Teixeira wrote:
  Hi - I've heard nothing but bad things about the Microsoft JDBC
 driver for
  SQL Server. I don't have any suggestions how to fix your problem
 in-place,
  just a suggestion to switch drivers.
  
  I've been using this JTDS open souce JDBC driver, suggested by our
 vendor
  and it is very stable:
  
  http://jtds.sourceforge.net/
  
  It was super easy to install and configure.  I hope it will help
 you!
  
  Regards,
  MitchellT
  
  
  
  --- Anderson, M. Paul [EMAIL PROTECTED] wrote:
  
  
 I am running Tomcat 5.5 with SQL Server on a separate machine.
 
 I am getting the following error at random times:
 
 Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer
 2000
 Driver for JDBC]Connection rest by peer: socket write error.
 
 I have been unable to determine a trigger for this error - it just
 seems
 to happen randomly.  When it occurs, no user can then log in to the
 application - I must reboot the SQL server machine to get a
 connection
 to be made for subsequent logins.
 
 Has anyone seen this and can point me to a solution?
 
 Thanks,
 Paul
  
  
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 





Sell on Yahoo! Auctions - no fees. Bid on great items.  
http://auctions.yahoo.com/

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


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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Mitchell Teixeira
Hi - I'm eavesdropping this thread (obviously) so that I can learn more
about Tomcat across all aspects, esp. since I need SQL Server
connectivity!

What is c3p0??  Does it replace some existing part of Tomcat?

Thanks - 
MitchellT

--- Brian McGovern [EMAIL PROTECTED] wrote:

 I also had the same problem with that driver.  JTDS is a much much
 better driver.  Also look at your connection pooling software, using the
 commons DBCP is also a little shady.  I switched to c3p0 and all the
 connection problems disappeared.  Furthermore with c3p0 when the sql
 server reboots c3p0 is smart enough to reestablish connections.  
 
 -B
 
 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 11, 2005 1:23 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5 and SQL Server
 
 
 also, make sure your SQL Server is patched up with the latest SQL
 Server service pack.
 
 woodchuck
 
 --- Tim Funk [EMAIL PROTECTED] wrote:
 
  FWIW .. there is a new version of the SQLServer JDBC driver from
  Microsoft.
  
  -Tim
  
  Mitchell Teixeira wrote:
   Hi - I've heard nothing but bad things about the Microsoft JDBC
  driver for
   SQL Server. I don't have any suggestions how to fix your problem
  in-place,
   just a suggestion to switch drivers.
   
   I've been using this JTDS open souce JDBC driver, suggested by our
  vendor
   and it is very stable:
   
   http://jtds.sourceforge.net/
   
   It was super easy to install and configure.  I hope it will help
  you!
   
   Regards,
   MitchellT
   
   
   
   --- Anderson, M. Paul [EMAIL PROTECTED] wrote:
   
   
  I am running Tomcat 5.5 with SQL Server on a separate machine.
  
  I am getting the following error at random times:
  
  Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer
  2000
  Driver for JDBC]Connection rest by peer: socket write error.
  
  I have been unable to determine a trigger for this error - it just
  seems
  to happen randomly.  When it occurs, no user can then log in to the
  application - I must reboot the SQL server machine to get a
  connection
  to be made for subsequent logins.
  
  Has anyone seen this and can point me to a solution?
  
  Thanks,
  Paul
   
   
   
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
   
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
   
 
 Sell on Yahoo! Auctions - no fees. Bid on great items.  
 http://auctions.yahoo.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Problem when a click a button that it execute a servlet n times

2005-07-11 Thread Frank W. Zammetti
If you are not script-averse, the solution to this that I've always used 
 is to disable the button client-side before submitting the form.


It's not a perfect solution though, as there is no way to re-submit if a 
problem occurs (i.e., if it hangs for a long time... outright 
server-side errors would still occur as usual of course), but in many 
situations it's fine.  Note that PayPal is one example of a major site 
that does this.


Frank

Mitchell Teixeira wrote:

I was just reviewing an article which addresses this exact issue!

http://java.sun.com/developer/EJTechTips/2003/tt0114.html

I hope this helps - it doesn't look simple, but neither is your issue!  I
think the only situation to your issue is from an application point of
view rather than from Tomcat.

Cheers - 
MitchellT




--- password password [EMAIL PROTECTED] wrote:


Hi, 
 I have a problem with a button in my jsp page. When I click the button

then it excutes a servlet. But if i click two or three or n times it
executes a servlet
n times. 


How can I do that this button execute only once independent of the
number of times that you click the button.

Thanks.



-

Correo Yahoo!
Comprueba qué es nuevo, aquí
http://correo.yahoo.es




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







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


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



RE: Tomcat 5.5 and SQL Server

2005-07-11 Thread Maarten Janssen
using JSQConnect is also very very good (incl connection pooling). The only
disadvantage is that you have to buy a license.
but for a big website with a lot of db activity this disadvantage is to
overlook.

maarten

-Oorspronkelijk bericht-
Van: Mitchell Teixeira [mailto:[EMAIL PROTECTED]
Verzonden: maandag 11 juli 2005 19:38
Aan: Tomcat Users List
Onderwerp: RE: Tomcat 5.5 and SQL Server


Hi - I'm eavesdropping this thread (obviously) so that I can learn more
about Tomcat across all aspects, esp. since I need SQL Server
connectivity!

What is c3p0??  Does it replace some existing part of Tomcat?

Thanks -
MitchellT

--- Brian McGovern [EMAIL PROTECTED] wrote:

 I also had the same problem with that driver.  JTDS is a much much
 better driver.  Also look at your connection pooling software, using the
 commons DBCP is also a little shady.  I switched to c3p0 and all the
 connection problems disappeared.  Furthermore with c3p0 when the sql
 server reboots c3p0 is smart enough to reestablish connections.

 -B

 -Original Message-
 From: Woodchuck [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 11, 2005 1:23 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.5 and SQL Server


 also, make sure your SQL Server is patched up with the latest SQL
 Server service pack.

 woodchuck

 --- Tim Funk [EMAIL PROTECTED] wrote:

  FWIW .. there is a new version of the SQLServer JDBC driver from
  Microsoft.
 
  -Tim
 
  Mitchell Teixeira wrote:
   Hi - I've heard nothing but bad things about the Microsoft JDBC
  driver for
   SQL Server. I don't have any suggestions how to fix your problem
  in-place,
   just a suggestion to switch drivers.
  
   I've been using this JTDS open souce JDBC driver, suggested by our
  vendor
   and it is very stable:
  
   http://jtds.sourceforge.net/
  
   It was super easy to install and configure.  I hope it will help
  you!
  
   Regards,
   MitchellT
  
  
  
   --- Anderson, M. Paul [EMAIL PROTECTED] wrote:
  
  
  I am running Tomcat 5.5 with SQL Server on a separate machine.
  
  I am getting the following error at random times:
  
  Java.lang.Exception: java.sql.SQLException: [Microsoft][SQLServer
  2000
  Driver for JDBC]Connection rest by peer: socket write error.
  
  I have been unable to determine a trigger for this error - it just
  seems
  to happen randomly.  When it occurs, no user can then log in to the
  application - I must reboot the SQL server machine to get a
  connection
  to be made for subsequent logins.
  
  Has anyone seen this and can point me to a solution?
  
  Thanks,
  Paul
  
  
  
  
  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




 
 Sell on Yahoo! Auctions - no fees. Bid on great items.
 http://auctions.yahoo.com/

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


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




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

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/45 - Release Date: 9-7-2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/45 - Release Date: 9-7-2005


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



Re: Problem when a click a button that it execute a servlet n times

2005-07-11 Thread Michael Jouravlev
On 7/11/05, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 If you are not script-averse, the solution to this that I've always used
   is to disable the button client-side before submitting the form.
 
 It's not a perfect solution though, as there is no way to re-submit if a
 problem occurs (i.e., if it hangs for a long time... outright
 server-side errors would still occur as usual of course), but in many
 situations it's fine.  Note that PayPal is one example of a major site
 that does this.
 
 Frank

I agree, something like this works pretty well, but you still need to
check for resubmits, if resubmitting must not be allowed at all.

script language=JavaScript
  function SubmitForm(){
document.getElementById('sub').disabled = true;
document.forms['msgform'].submit();
return true;
  }
/script

form action=... method=post name=msgform id=msgform
  ...
  input id=sub type=submit onclick=SubmitForm(); 
 name=param_submit value=Submit This Form  /
/form

Michael.

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



Re: newbie can't start tomcat

2005-07-11 Thread Paul Singleton

The clue is in

'Exception in thread main java.lang.NoClassDefFoundError: server'

where it seems to be trying to load a class named 'server'.

In your environment variables you have

 JAVA_OPTS=server -Xms512m -Xmx512m -verbose:gc -XX:+PrintGCDetails 
-XX:+PrintGC


but the first option should be

 -server

Paul Singleton


dsimmons wrote:

I have been googling the archives and anyplace else I can think of for
my particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly
I've been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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






--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/45 - Release Date: 9/Jul/2005


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



Re: Trying to configure apache, tomcat and mod_jk

2005-07-11 Thread Alan Chandler
On Monday 11 July 2005 14:54, Matthew Strawbridge wrote:
 Hi

 After spending several days trying to set this up from the
 documentation, I've finally decided I need some expert help.

I am no expert, but I got it to work 

See my blog on

http://home.chandlerfamily.org.uk/archive/21/taking-the-java-plunge---setting-up-apache-and-tomcat

Just a quick look at your server.xml file seems to be missing the 

engine jvmroute= ...

that I have.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



RE: newbie can't start tomcat

2005-07-11 Thread dsimmons
Success

kneeling before the Great Paul Singleton
we're not worthy!
we're not worthy!
we're not worthy!

Gratefully,
Doug Simmons
SIUC


-Original Message-
From: Paul Singleton [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 12:35 PM
To: Tomcat Users List
Cc: dsimmons
Subject: Re: newbie can't start tomcat

The clue is in

'Exception in thread main java.lang.NoClassDefFoundError: server'

where it seems to be trying to load a class named 'server'.

In your environment variables you have

  JAVA_OPTS=server -Xms512m -Xmx512m -verbose:gc -XX:+PrintGCDetails 
-XX:+PrintGC

but the first option should be

  -server

Paul Singleton


dsimmons wrote:
 I have been googling the archives and anyplace else I can think of for
 my particular problem, for about three days, without success.
 
 ANY help would be greatly appreciated.
 
 I suspect a simple path problem or a missing component, but honestly
 I've been through about a half-dozen install/troubleshoot tomcat
 checklists without finding it.
 
 I have placed as much diagnostic information as I could think of at:
 http://www.lib.siu.edu/dsimmons
 
 Thanks,
 Doug Simmons
 SIUC
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.11/45 - Release Date:
9/Jul/2005


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



Remote Username

2005-07-11 Thread Christopher Molnar
I have a quick question and hope that someone can point me in the  
right direction.


Once I have a user do basic authentication into a realm , how can I  
reference the user name and role in the application?


I tried:

String username = req.getRemoteUser();

but all I am getting back is null.

Thanks,
-Chris


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



Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed

2005-07-11 Thread Wasik, Paul
Hi all,

 

Can anyone point me in the right direction on what might be causing this
error in my catalina.out log file? I'm running Tomcat 5.0.28 on a RedHat
EL3.0 server with Sun JDK 1_5_0_03 and am using the jsvc launcher. Aside
from this entry in my log file, everything seems to be working fine.

 

Thanks,

 

Paul



Re: Remote Username

2005-07-11 Thread Gurumoorthy
are you using only tomcat ?   more details please ... your question does not 
provide an helpful clue ...


Guru
- Original Message - 
From: Christopher Molnar [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Monday, July 11, 2005 9:14 PM
Subject: Remote Username


I have a quick question and hope that someone can point me in the  right 
direction.


Once I have a user do basic authentication into a realm , how can I 
reference the user name and role in the application?


I tried:

String username = req.getRemoteUser();

but all I am getting back is null.

Thanks,
-Chris


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




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



file access via HttpSession

2005-07-11 Thread Clark Slater

Hello-

I am running 5.0.19

Is there a way to restrict access to files in 
a directory based on a value in an HttpSession?


For example:

Customer c = (Customer) httpSession.getValue(Customer);
if (c.getCountryCode().equals(CAN))

their browser could display any HTML file in

/webapps/ecat/profiles/canada

but not files in

/webapps/ecat/profiles/usa

Of course, files in either of these directories
would not be viewable by the outside world.

Thanks!
Clark



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



Problem with refreshing JSP

2005-07-11 Thread Rahul Joshi
Hello: 
 
I am using Tomcat5.5.7 with Eclipse environment. 
The problem I was facing was that inspite of changing or deleting  re-copying 
and compiling a JSP page (after re-starting the tomcat server), the browser was 
reading the old compiled file from work/Catalina/localhost/...
 
I solved the problem by deleteing the contents of work/Catalina/localhost. 
 
Is there a programmatic, I mean, by setting some Tomcat property solution to 
this??
 
Any help is greatly appreciated. Thanks!
Rahul.


RE: Remote Username

2005-07-11 Thread Rob Dickey
For username...

java.security.Principal principal =
HttpSession.getRequest().getUserPrincipal();

if( principal!=null ) 
{
userName = principal.getName();
}

To determine if user is in a specific role...the following call will return
true/false...

HttpSession.getRequest().isUserInRole(rolename);

HTH
Rob

-Original Message-
From: Christopher Molnar [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 11, 2005 1:14 PM
To: tomcat-user@jakarta.apache.org
Subject: Remote Username

I have a quick question and hope that someone can point me in the  
right direction.

Once I have a user do basic authentication into a realm , how can I  
reference the user name and role in the application?

I tried:

String username = req.getRemoteUser();

but all I am getting back is null.

Thanks,
-Chris


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


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



File Download dialog launched errantly

2005-07-11 Thread Kirby, Stephen \(Civ, ARL/CISD\)
Hi,
 
I am using a WML file as my welcome-file.  When I try to launch the web
page I'm getting a File Download dialog for some reason.  (it's
tomcat-5.5.9 and it shows tomcat works fine when I leave the welcome
file as index.jsp)
 
The web.xml already had the MIME mapping for wml extension files so I
don't think that's the problem. 
(from web.xml)
 mime-mapping
!-- WML Source --
extensionwml/extension
mime-typetext/vnd.wap.wml/mime-type
/mime-mapping 
 
I've triple-checked the wml file and can't see anything wrong:
 
?xml version=1.0?
!DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml;
wml
 card id=myFirstCard title=First Card
  p align=center
   Hi there..
  /p
 /card
/wml
 
I've seen mention of a http.conf file -- is that relevant to jakarta
tomcat; if so what line is added to recognize wml?
 
TIA
-Steve


Re: Problem with refreshing JSP

2005-07-11 Thread Gurumoorthy

Well,
Is it the browser or tomcat ? if it is the browser then you need to add the 
no-cache headers to the response 


regards
Guru
- Original Message - 
From: Rahul Joshi [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Tuesday, July 12, 2005 1:50 AM
Subject: Problem with refreshing JSP



Hello:

I am using Tomcat5.5.7 with Eclipse environment.
The problem I was facing was that inspite of changing or deleting  
re-copying and compiling a JSP page (after re-starting the tomcat server), 
the browser was reading the old compiled file from 
work/Catalina/localhost/...


I solved the problem by deleteing the contents of work/Catalina/localhost.

Is there a programmatic, I mean, by setting some Tomcat property solution 
to this??


Any help is greatly appreciated. Thanks!
Rahul.




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



Re: File Download dialog launched errantly

2005-07-11 Thread Luis Torres

Hi,

Actually that sounds right. You can't display WML data in a standard 
browser and that's why you get the download dialog.


To see that type of content you can test using a WAP browser like winwap 
(not free but you get a trial) or an online WAP emulator such as 
wapsilon http://www.wapsilon.com.


If it displays ok in one of those two then you are on the right track  :)

Hasta luego.

Luis

Kirby, Stephen (Civ, ARL/CISD) wrote:


Hi,

I am using a WML file as my welcome-file.  When I try to launch the web
page I'm getting a File Download dialog for some reason.  (it's
tomcat-5.5.9 and it shows tomcat works fine when I leave the welcome
file as index.jsp)

The web.xml already had the MIME mapping for wml extension files so I
don't think that's the problem. 
(from web.xml)

mime-mapping
   !-- WML Source --
   extensionwml/extension
   mime-typetext/vnd.wap.wml/mime-type
   /mime-mapping 


I've triple-checked the wml file and can't see anything wrong:

?xml version=1.0?
!DOCTYPE wml PUBLIC -//WAPFORUM//DTD WML 1.1//EN
http://www.wapforum.org/DTD/wml_1.1.xml;
wml
card id=myFirstCard title=First Card
 p align=center
  Hi there..
 /p
/card
/wml

I've seen mention of a http.conf file -- is that relevant to jakarta
tomcat; if so what line is added to recognize wml?

TIA
-Steve

 



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



web app url config question

2005-07-11 Thread Erik Weibust
i have a question that after reading the majority of the online docs is
still unanswered.

how can i set my tomcat url to default to a specific page in a webapp?

i.e. i would like http://localhost:8080 to load
http://localhost:8080/testwebapp/home.jsp.

is this possible?

thx...
erik

Erik Weibust
developer and blogger - http://erik.weibust.net
leader J2EE SIG - Dallas, TX - http://j2eesig.org

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



Re: web app url config question

2005-07-11 Thread Rob Hills
HI Erik,

On 11 Jul 2005 at 19:34, Erik Weibust wrote:

 i have a question that after reading the majority of the online docs is
 still unanswered.
 
 how can i set my tomcat url to default to a specific page in a webapp?
 
 i.e. i would like http://localhost:8080 to load
 http://localhost:8080/testwebapp/home.jsp.

There are a number of ways to do this.  One is listed at the bottom of the 
wiki howto page:

http://wiki.apache.org/jakarta-tomcat/HowTo

HTH,

Rob Hills


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



Re: Problem with development cycle (5.5.9)

2005-07-11 Thread Carlos A. Carnero Delgado
Hello Robert,

On 7/8/05, Robert Parsons [EMAIL PROTECTED] wrote:
 Hi Carlos,
 
 I had exactly the same problem as you. To fix it I put
 a 'context.xml'...

yup, that works. I don't like the fact that I lose directory
independence since now the build directory is hardwired but it's
definitely a step in the right direction.

Thanks a million,
Carlos.

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



api for server.xml maintenance

2005-07-11 Thread Rob Hills
Hi All,

We typically use one Tomcat instance to serve multiple applications, each 
with its own domain name.

I have always managed this by creating a host entry for each application, 
primarily so that we can have the application rooted at the default (empty-
path) context.

However, this has meant I've always had to manually create a host entry 
each time I deploy a new application, either by editing server.xml in the old 
days, or via the admin application in TC 5.5.

We're now automating the process of deployment and I've been hunting 
around for some kind of API to enable me to create new host entries.  After 
much time hunting documentation and Google, time pressure led me to 
write some code that stops tomcat and directly modifies server.xml, but the 
whole process is very flakey and I feel this is the wrong way to do things, 
leaving aside the fact that one needs direct access to the file system to do 
it.

I'm tantalised by the Monitoring and Management (section 21) part of the 
User Guide, but unfortunately it only tells me how to enable JMX, not how I 
could use that to manage Tomcat.

I've read and re-read the Manager documentation, and the Deployer 
documentation, but I can't see any way of using those processes to deploy 
multiple applications on one server such that each has its own root context.

So, I have two questions:

1.  Is there some sort of API I can use to programmatically 
create/modify host entries in server.xml.  If so, how can I find out how to use 
that.

2.  Alternatively, is there any way to deploy multiple root context 
applications using the built in manager?

TIA,

Rob Hills
Perth, Western Australia

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



tomcat 4.1.31 page include encoding

2005-07-11 Thread 李彦东

  hi,all:
  
  I am using tomcat 4.1.31 .when I load a jsp page which has %@ include  
another jsp,
  
 the included jsp has no declaration of contentType and all the chinese 
characters become ??? ,

is there anyone meets with such problem and has a solution??

 best wishes~

 
   


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



How to set the user created tld in web.xml??

2005-07-11 Thread IndianAtTech
 Hi All,

I am facing a problem in setting the user created tld file in web.xml

If I don't specify anything in web.xml

I am getting below error

Exception Handler
 
 
Description: An unhandled exception occurred during the execution of
the web application. Please review the following stack trace for more
information regarding the error.
 
Exception Details: org.apache.jasper.JasperException
  This absolute uri (http://www.jiyaJobs.com/) cannot be resolved in
either web.xml or the jar files deployed with this application
 
Possible Source of Error:
   Class Name: org.apache.jasper.compiler.DefaultErrorHandler
   File Name: DefaultErrorHandler.java
   Method Name: jspError
   Line Number: 105
 
Source not available. Information regarding the location of the
exception can be identified using the exception stack trace below.
 
Stack Trace:
 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:105)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:430)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:154)
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
org.apache.jasper.compiler.JspDocumentParser.addCustomTagLibraries(JspDocumentParser.java:459)
org.apache.jasper.compiler.JspDocumentParser.startElement(JspDocumentParser.java:189)
org.apache.xerces.parsers.AbstractSAXParser.startElement( Unknown Source )
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement( Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unknown Source )
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(
Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(
Unknown Source )
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(
Unknown Source )
org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source )
org.apache.xerces.parsers.XML11Configuration.parse( Unknown Source )
org.apache.xerces.parsers.XMLParser.parse( Unknown Source )
org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source )
javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
org.apache.jasper.compiler.JspDocumentParser.parse(JspDocumentParser.java:156)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:193)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.jsfcl.app.ViewHandlerImpl.renderView(ViewHandlerImpl.java:181)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)