System.DllNotFoundException: libclntsh.so.10.1

2007-07-11 Thread Tolou Taherinia
Hi,

I have oracle 10g and mono installed on suse 9.3 and I get the following error 
message when I try running a webpage which is unusual because both oracle and 
mono work well on their own.
Any help would be greatly appreciated.

Description: Error processing request.  Error Message: HTTP 500.  
 Stack Trace:  
System.DllNotFoundException: libclntsh.so.10.1
in 0x0004a (wrapper managed-to-native) OciNativeCalls:OCIEnvCreate 
(intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
in 0x0001f System.Data.OracleClient.Oci.OciCalls:OCIEnvCreate 
(intptr,System.Data.OracleClient.Oci.OciEnvironmentMode,intptr,intptr,intptr,intptr,int,intptr)
in 0x0003c System.Data.OracleClient.Oci.OciEnvironmentHandle:.ctor 
(System.Data.OracleClient.Oci.OciEnvironmentMode)
in 0x00037 System.Data.OracleClient.Oci.OciGlue:CreateConnection 
(System.Data.OracleClient.OracleConnectionInfo)
in 0x00028 System.Data.OracleClient.OracleConnection:Open ()
in 0x00038 (wrapper remoting-invoke-with-check) 
System.Data.OracleClient.OracleConnection:Open ()
in 0x0007d Oracle.WebForm1:Button1_Click (object,System.EventArgs)
in 0x00045 (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
in 0x00069 System.Web.UI.WebControls.Button:OnClick (System.EventArgs)
in 0x00040 
System.Web.UI.WebControls.Button:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent
 (string)
in 0x00016 System.Web.UI.Page:RaisePostBackEvent 
(System.Web.UI.IPostBackEventHandler,string)
in 0x00033 System.Web.UI.Page:RaisePostBackEvents ()
in 0x00238 System.Web.UI.Page:InternalProcessRequest ()
in 0x000a9 System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
in 0x00233 ExecuteHandlerState:Execute ()
in 0x0007c StateMachine:ExecuteState 
(System.Web.HttpApplication/IStateHandler,bool)



   
-
All new Yahoo! Mail  
-
Get news delivered. Enjoy RSS feeds right on your Mail page.

How do I unsubscribe ?

2007-07-11 Thread andy.mcneill
Hi,
 
Is there an alternative way to unsubscribe from this user group ? I have sent 
numerous blank emails to 
[EMAIL PROTECTED], but it seems to have no effect,
 
thanks
 
Andy

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



Re: Mod_JK 1.2.23 error 200

2007-07-11 Thread Phi-Long LE
sorry for that stupid question... just find out the solution... if i 
want to increase MaxClients value, I have first to increase ServerLimit 
value


Le 11/07/2007 12:22, Phi-Long LE a écrit :
i probably find out the reason why connections failed... trying to 
load, my app with up to 1000 users I get this error:


log
vhpuw51:appmig grep MaxClients *
error_log:[Wed Jul 11 12:02:52 2007] [error] server reached MaxClients 
setting, consider raising the MaxClients setting

end log

So i guess I have to increase the MaxClients value (currently 256) but 
I read something like I have to recompile apache after amending 
httpd.h... however I did not find the HARD_SERVER_LIMIT entry within 
it is it still an accurate info for apache 2.2.4 ?




Le 10/07/2007 12:02, Rainer Jung a écrit :

It looks like OpenSTA uses a timeout and your responses are to slow. Add
%D to your apache access log format to learn about response times.
Most likely OpenSTA will tell you about timeouts too.

The messages are only infos, the system works in principle, but a lot of
client abort messages might mean, that the system is to slow.

Regards,

Rainer

Phi-Long LE schrieb:
 

folks,

I currently try to load my application using OpenSTA by simulating 1000
virtual users. having a quick look  within mod_jk.log, it seems that I
have a problem with my load balancer... connections dropped ??

My configuration: apache 2.0.59 /mod_jk 1.2.23/tomcat 5.0.28
_LOG
[Tue Jul 10 11:42:43 2007][9648:19296] [info] 
ajp_process_callback::jk_ajp_common.c (1448): Writing to client aborted

or client network problems
[Tue Jul 10 11:42:43 2007][9648:19296] [info] 
ajp_service::jk_ajp_common.c (1857): (helios1) request failed, because

of client write error without recovery in send loop attempt=0
[Tue Jul 10 11:42:43 2007][9648:19296] [info]  service::jk_lb_worker.c
(1068): unrecoverable error 200, request failed. Client failed in the
middle of request, we can't recover to another instance.

does this error already occurs to someone ?? is there any solution ?

thanks in advance for your help...

Phi-Long



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


  


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




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



Tomcat 64 Bit

2007-07-11 Thread Ste2kF

hello 
I write in order to ask to you if tomacat is in program the release for
windows 2003 server 64 bit 
(sorry for my engliish not OK)
Thanks 
Stefano (Italy) 
-- 
View this message in context: 
http://www.nabble.com/Tomcat-64-Bit-tf4061209.html#a11538169
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Tomcat 64 Bit

2007-07-11 Thread Ste2kF

hello 
I write in order to ask to you if tomacat is in program the release for
windows 2003 server 64 bit 
(sorry for my engliish not OK)
Thanks 
Stefano (Italy) 
-- 
View this message in context: 
http://www.nabble.com/Tomcat-64-Bit-tf4061210.html#a11538171
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: How do I unsubscribe ?

2007-07-11 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Hi,
  
 Is there an alternative way to unsubscribe from this user group ? I have sent 
 numerous blank emails to 
 [EMAIL PROTECTED], but it seems to have no effect,

An e-mail to [EMAIL PROTECTED] will do the trick and one of us
will manually unsubscribe you.

I have just done this for your address.

Mark

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



Re: Tomcat 64 Bit

2007-07-11 Thread Mark Thomas
Ste2kF wrote:
 hello 
 I write in order to ask to you if tomacat is in program the release for
 windows 2003 server 64 bit 

Tomcat is a Java application and as such is OS neutral. As long as you
have a JVM for your platform you'll be fine.

I would recommend you use a 64-bit JVM (although Tomcat doesn't care)
so you are able to allocate large amounts of memory to Tomcat if required.

Mark

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



Re: iPlanet / SunONE web server tomcat connector connection re-use disabled

2007-07-11 Thread Jim Jagielski


On Jul 6, 2007, at 4:45 AM, [EMAIL PROTECTED] wrote:

QUESTION:

Can anyone confirm or deny whether the Netscape connector should  
not have
connection re-use enabled as the other connectors do. Some overview  
of any

reason would also be much appreciated.



It does not, but would be a good addition. I will look into
what would be required to add that in.

Thanks!


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



Creating a Logger in Tomcat 5.5.12

2007-07-11 Thread Archibald Moepi

Hi,

I just migrated to Tomcat 5.5.12 from Tomcat 4.1.31 and I want to create 
a logger for my context, any ideas on how I can complish this?


Thanx

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



RE: Creating a Logger in Tomcat 5.5.12

2007-07-11 Thread Caldarale, Charles R
 From: Archibald Moepi [mailto:[EMAIL PROTECTED] 
 Subject: Creating a Logger in Tomcat 5.5.12
 
 I just migrated to Tomcat 5.5.12 from Tomcat 4.1.31 and I 
 want to create a logger for my context, any ideas on how I
 can complish this?

RTFM?
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: How do I unsubscribe ?

2007-07-11 Thread Sunitha Kumar \(sunithak\)
 Hi Mark.,
could you also unsubscribe me?
thnx
-sunitha

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 11, 2007 5:25 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: How do I unsubscribe ?

[EMAIL PROTECTED] wrote:
 Hi,
  
 Is there an alternative way to unsubscribe from this user group ? I 
 have sent numerous blank emails to 
 [EMAIL PROTECTED], but it seems to have no effect,

An e-mail to [EMAIL PROTECTED] will do the trick and one of us will
manually unsubscribe you.

I have just done this for your address.

Mark

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

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



Tomcat - All threads (200) are currently busy

2007-07-11 Thread André Vila Cova

Hello!

I get lot of times the following error:

SEVERE: All threads (200) are currently *busy*, waiting. *Increase
maxThreads*
**
*Strange is that i've configured in server.xml the following
(maxThreads=400):*
*

Connector
port=8085   maxHttpHeaderSize=8192
  maxThreads=400 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=8443 acceptCount=100
  connectionTimeout=5000 disableUploadTimeout=true /
*
*Yes, I already restarted tomcat...*
**
*First: Why I get the previous error?*
*Second: Why in error I see 200?*
**
Release :  Jakarta-Tomcat 5.5.20

The architecture is based on a web server on a server and tomcat in other
server... When I execute ping i get :

64 bytes from 192.168.30.11: icmp_seq=11953 ttl=63 time=0.648 ms
64 bytes from 192.168.30.11: icmp_seq=11954 ttl=63 time=0.654 ms
64 bytes from 192.168.30.11: icmp_seq=11955 ttl=63 time=0.664 ms
64 bytes from 192.168.30.11: icmp_seq=11956 ttl=63 time=0.657 ms
64 bytes from 192.168.30.11: icmp_seq=11957 ttl=63 time=0.656 ms
64 bytes from 192.168.30.11: icmp_seq=11958 ttl=63 time=0.654 ms
64 bytes from 192.168.30.11: icmp_seq=11959 ttl=63 time=0.664 ms
64 bytes from 192.168.30.11: icmp_seq=11960 ttl=63 time=0.674 ms
64 bytes from 192.168.30.11: icmp_seq=11961 ttl=63 time=0.659 ms

Could you help me please?

Regards

Thank You


Re: Tomcat - All threads (200) are currently busy

2007-07-11 Thread Mladen Turk

André Vila Cova wrote:

Hello!

I get lot of times the following error:

SEVERE: All threads (200) are currently *busy*, waiting. *Increase
maxThreads*
**
*Strange is that i've configured in server.xml the following
(maxThreads=400):*
*



You have probably done that for a wrong connector.

Regards,
Mladen.

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



Re: Using auto-configure with Tomcat 6.0

2007-07-11 Thread Johnny Kewl

Hi Bill almost missed your reply...
I'm subscribed to so many mailing lists, my incoming mail is starting to 
look like a flash animation...


Briefly, yes... I am looking at it
or more accurately I'm struggling with a cool exciting concept

Goes something like this auto JK config maybe a toy as you say, but 
besides JMX, it was one of the few things that presented a partial model of 
TC to another system that concept I find very appealing.
I'm thinking... ok, well JMX (via the internal mbeans registering 
themselves), represents the live model of Tomcat.
and JMX has effectively demoted XML configuration to something that now 
really just represents the persisted static model of TC.


So if one wants to make helper tools... those tools need to be interfaced 
with and aware of both the live and static models of TC.
As a simple auto JK tool, its, as you say, a toy but now add JK load 
balancing to it, and mod_proxy with the ability to perhaps even configure 
HTTPd, then someone will go, gee thats cool, lets make it easy to configure 
SSO, and the realm, and hey lets add JNDI to that and then people are 
going to scream for a JMX interface to this easy configurator


.thats how I'm thinkingbut it raising all sorts of issues in my 
mind
Like maybe the whole concept of core beans registering themselves with JMX 
is wrong or maybe there has to be JMX for the expert TC developer and a 
JMX for the admin dude.
For example (I havnt tried it), but what happens to TC if you change the 
connected port, or reset a Realm through JMX... its live, so just how badly 
would that screw up TC or will TC raise an exception and just ignore 
you just how smart are the core beans?
Now JMX through the easy configurator or TC modeler would be 
something different, if you change the JK load sharing, it would say 
configuration illegal, or new configuration will become active on a TC 
restart do you want to restart when user activity has ceased.
It would become the model of TC that people see it would become a 
modeler and it would become a safe layer between the live TC and what 
people are trying to make it do?


Thats how confused I've managed to make myself I need to do more 
homework on the idea... I'd like to try turn something that programmers are 
now finding boring, into something very exciting hopefully ;)



- Original Message - 
From: Bill Barker [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, July 02, 2007 3:26 AM
Subject: Re: Using auto-configure with Tomcat 6.0


That would actually be a very valuable contribution.  One idea that I 
looked at awhile back is a class that does minimal parsing of server.xml 
to embed Tomcat (via JMX, it's s much easier), insert the Listener, 
and then start the contexts to get the file, and then stop.


Well, the way that I found out is people on this list compaining that 
their auto-conf files generate warnings on httpd 2.2.x :).  Personally, I 
lurk on [EMAIL PROTECTED], but this isn't for everyone.  Of course, to find out 
more, you just go to http://httpd.apache.org and check the documentation 
and/or changelog.  To add a new attribute to the ApacheConfig class (from 
server.xml), all you have to do is declare the public getter/setter 
methods in standard JavaBean style.  Most standard type conversions are 
supported by Digester (e.g. adding setApache22(boolean) would allow 
apache22=true is server.xml).


I look forward to reviewing your patch.



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



Re: Tomcat - All threads (200) are currently busy

2007-07-11 Thread André Vila Cova

I don't think so... I will see..but, why i get the error?
SEVERE: All threads (200) are currently *busy*, waiting. *Increase


On 7/11/07, Mladen Turk [EMAIL PROTECTED] wrote:


André Vila Cova wrote:
 Hello!

 I get lot of times the following error:

 SEVERE: All threads (200) are currently *busy*, waiting. *Increase
 maxThreads*
 **
 *Strange is that i've configured in server.xml the following
 (maxThreads=400):*
 *


You have probably done that for a wrong connector.

Regards,
Mladen.

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




Re: Tomcat - All threads (200) are currently busy

2007-07-11 Thread Leon Rosenberg

cause your threads are all busy serving requests (or hanging
somewhere). Perform a thread dump with kill -QUIT and you'll see what
they are doing.

regards
Leon

On 7/11/07, André Vila Cova [EMAIL PROTECTED] wrote:

I don't think so... I will see..but, why i get the error?
SEVERE: All threads (200) are currently *busy*, waiting. *Increase


On 7/11/07, Mladen Turk [EMAIL PROTECTED] wrote:

 André Vila Cova wrote:
  Hello!
 
  I get lot of times the following error:
 
  SEVERE: All threads (200) are currently *busy*, waiting. *Increase
  maxThreads*
  **
  *Strange is that i've configured in server.xml the following
  (maxThreads=400):*
  *
 

 You have probably done that for a wrong connector.

 Regards,
 Mladen.

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





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



problem I don't know how to summarize for this subject line

2007-07-11 Thread Steve Sweet
I have a web app written by another developer that I am trying to deploy 
with Tomcat.  The app utilizes jsp and jsf elements.  I am experiencing 
strange behavior with a portion of the application, however only when it 
is run through the public domain name; when I run it on the server 
through the http://localhost/; URL it all works flawlessly.


Overall with the public URL 98% of the app works fine.  However there 
are two functions of the app that experience a strange behavior.  When I 
attempt to submit the page the forwarded URL becomes http://edit.jsf/; 
instead of http://mydomain.org/edit.jsf; -- but only when run through 
the public URL and only those two pages.  When I am doing it on the 
server using localhost the troublesome pages properly forward to 
http://localhost:8080/edit.jsf; and every other page in the app 
forwards properly with both public and localhost URLs.


I have been back and forth through the source code and spent a fair 
amount of time trying to determine if it is a Javaserver Faces problem 
and can find no evidence that it is.  The fact that it works with 
localhost seems (to me) to point away from a jsf problem, however this 
is my first real experience with jsf.  I have asked on some jsf lists 
and gotten no input.  I have also tried with Tomcat 5.5.17, 5.5.23, and 
6.0.10 and experienced identical behavior.  The original developer does 
not experience this on his system which limits his ability to help me 
figure it out.


I am not a complete newbie with Tomcat but my experience to date has 
been pretty straightforward.  Does anything about this ring any bells to 
anyone?  Even any suggestions about where to look would be appreciated.


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



A simple question about coyote

2007-07-11 Thread newbie_tw
I have a simple question related to the coyote connector.  That is, `Is coyote 
similar to a composition protocol framework coyote 
(http://www.cs.arizona.edu/projects/coyote/) does?'

I read some document on the internet. For instance, 
http://www.wellho.net/downloads/A651.pdf illustrates that coyote is a protocol 
handler, handling web issues.  It seems like they has the same purpose, though 
one is proposed by the Arizona university, the other by apache.org. 

Can I say that coyote (of tomcat) is also a kind of composition protocol 
framework?


Thanks your help,

I appreciate it.

   杜絕網路駭客,保障帳號安全 - 馬上設定 Yahoo!奇摩安全圖章!

tomcat 5.5 and jsp 1

2007-07-11 Thread alvaro tovar

is posible to configure tomcat 5.5 for use jsp 1 i have application.

thanks


Re: Tomcat - All threads (200) are currently busy

2007-07-11 Thread Titi Wangsa

probably some threads are performing database operation
and it takes too long so new threads are being spawned,
the new threads are also taking too long, so newer threads are being spawned.
too much spawning,  that is what is causing the limit break.

On 7/12/07, André Vila Cova [EMAIL PROTECTED] wrote:

I don't think so... I will see..but, why i get the error?
SEVERE: All threads (200) are currently *busy*, waiting. *Increase


On 7/11/07, Mladen Turk [EMAIL PROTECTED] wrote:

 André Vila Cova wrote:
  Hello!
 
  I get lot of times the following error:
 
  SEVERE: All threads (200) are currently *busy*, waiting. *Increase
  maxThreads*
  **
  *Strange is that i've configured in server.xml the following
  (maxThreads=400):*
  *
 

 You have probably done that for a wrong connector.

 Regards,
 Mladen.

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





problem with Tomcat 5.5.17, Axis 2, MySQL 3.1.12, JNDI

2007-07-11 Thread albert quinn

Hi ! :

 First of all : excuse my poor english. Second : I'm trying to set up
a MySQL connection pool on Tomcat 5.5.17 (running over Windows XP) to
connect to a remote DB from a web service running on the Axis 2
deployed in Tomcat. I've read the Tomcat docs and the Tomcat mailing
lists but i've not founded any answers that help me to fix the
problem. I've this in my conf\server.xml :


.
  Context docBase=axis2 path=C:\Archivos de
programa\Apache Software Foundation\Tomcat 5.5\webapps\axis2
reloadable=true

   Resource auth=Container driverClassName=
com.mysql.jdbc.Driver maxActive=100 maxIdle=30 maxWait=1
name=java:comp/env/jdbc/DB password=mypassword
type=javax.sql.DataSource
url=jdbc:mysql://remoteaddress.com:3306/db?autoReconnect=true
username=myname/

  /Context
 /Host




I've this C:\Archivos de programa\Apache Software Foundation\Tomcat
5.5\webapps\axis2\META-INF\context.xml  file :

?xml version=1.0 encoding=UTF-8?
Context

   WatchedResourceWEB-INF/web.xml/WatchedResource

 Resource auth=Container driverClassName=
com.mysql.jdbc.Driver maxActive=100 maxIdle=30 maxWait=1
name=jdbc/DB password=mypassword type=javax.sql.DataSource
url=jdbc:mysql://remoteaddress.com:3036/db?autoReconnect=true
username=myname/

/Context

I've these lines in C:\Archivos de programa\Apache Software
Foundation\Tomcat 5.5\webapps\axis2\WEB-INF\web.xml

   resource-ref
   description
   a description
   /description
   res-ref-name
   jdbc/DB
   /res-ref-name
   res-type
   javax.sql.DataSource
   /res-type
   res-auth
   Container
   /res-auth
   /resource-ref

 When i call the web service running on Axis 2, after a long time i
get the next Exception message :

Cannot create PoolableConnectionFactory (Server connection failure
during transaction. Due to underlying exception:
'java.net.SocketException: java.net.NoRouteToHostException: No route
to host: connect'.

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.NoRouteToHostException: No route to host: connect

STACKTRACE:

java.net.SocketException: java.net.NoRouteToHostException: No route to
host: connect

   at 
com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)

   at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284)

   at com.mysql.jdbc.Connection.createNewIO(Connection.java :2680)

   at com.mysql.jdbc.Connection.init(Connection.java:1485)

   at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)

   at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection
(DriverConnectionFactory.java:37)

   at 
org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)

   at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory
(BasicDataSource.java:877)

   at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)

   at 
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)

   at code.prueba.PruebaBD.getUserLogin(PruebaBD.java:20)

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

   at java.lang.reflect.Method.invoke(Unknown Source)

   at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java
:91)

   at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)

   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)

   at 
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:122)

   at 
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:116)

   at 
org.apache.axis2.transport.http.AxisServlet$ProcessRESTRequest.processURLRequest
(AxisServlet.java:776)

   at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:238)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)

   at javax.servlet.http.HttpServlet.service (HttpServlet.java:802)

   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java
:173)

   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

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

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

   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

   at 

Problem listing apps in manager app

2007-07-11 Thread Jake Alley
I'm trying to list the applications in the manager app.  It was working before, 
but now all of a sudden it has stopped.  It was working before, but I added an 
app and it stopped working.  I remove the app and it still doesn't work.  I 
clean the work space for the manager app and it still doesn't work.  The 
applications list under Complete Server Status but not under List 
Applications.

I'm using 6.0.13 on 1.5.0_06-b05

The error I get is:

java.lang.NullPointerException
 
org.apache.catalina.manager.HTMLManagerServlet.list(HTMLManagerServlet.java:434)
 
org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:137)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 Line 434 is the following:

args[11] = new Integer(context.getManager().getMaxInactiveInterval()/60);

I'm inclined to believe it's failing because of context.getManager() which is 
checked for null previously in the same function.

   if (context.getManager() != null) {
args[4] = new Integer
(context.getManager().getActiveSessions());
} else {
args[4] = new Integer(0);
}

Does anybody have any insight into this?

Thanks.


   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

RE: Context information outside of server.xml

2007-07-11 Thread Jake Alley
Thanks so much for everybody who replied to this.  I apologize for not 
replying/thanking sooner, but I have been trying to get this thing working.  
Unfortunately I'm having only marginal success.  I'm thinking maybe there's 
something very fundamental that I'm not getting.

Here's where I'm at:

1. I can get the deployer to recognize myhostdir/ROOT/META-INF/context.xml.  It 
works ONLY with the default docBase of  and ROOT.  Nothing else works for 
instance docBase=www and directory myhostdir/www/META-INF/context.xml won't 
work.

2. Some things in context.xml work, others don't.  For instance a 
RemoteAddrValve works, but a Realm doesn't work.  

3. Even for the context in server.xml, the problem with #2 appears with docBase 
of  and dir ROOT.  It goes away when I put docBase=www and dir as www.

4. The Realm problem gives no log information.  It just acts like the realm 
doesn't exist.  

Perhaps the problem isn't with the Realm definition, but the implementation in 
WEB-INF/web.xml?  Does the ROOT context somehow make the app ignore web.xml?  
I'm kind of lost at this point.  


Thanks.

Victor Huang [EMAIL PROTECTED] wrote: You need to specify docBase which is 
your application's doc root in
 element in ROOT.xml. e.g.


unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false

crossContext=true



You need to specify docBase which is your application's doc root in
Context element in ROOT.xml. e.g.

Context debug=0 docBase=www reloadable=true crossContext=true/
 

Regards,
Victor

 
-Original Message-
From: Jake Alley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 28, 2007 10:10 AM
To: users@tomcat.apache.org
Subject: Context information outside of server.xml

I'm trying to rework my server.xml file so that the context info can be
reloaded without restarting the entire server.  As far as I can tell
 this
involves putting the context information in a file outside of
 server.xml.
I've read that META-INF/context.xml only works with WAR files, and I
 don't
use those.  I'm puting the info in conf/Catalina/mydomain/ROOT.xml.  It
doesn't seem to work.

For instance the following:

In conf/server.xml

Host name=test1.mydomain.com  appBase=/home/myhome/sites/test1
unpackWARs=true autoDeploy=true
xmlValidation=false xmlNamespaceAware=false
Context debug=1 path= docBase =www reloadable=true
crossContext=true
/Context

In conf/Catalina/test1.mydomain.com/ROOT.xml

Context
Valve className=org.apache.catalina.valves.AccessLogValve
directory=/home/myhome/sites/test1/logs prefix=test1.
 suffix=.log
pattern=common/
/Context

I know this doesn't work because the logs don't get updated when in
ROOT.xml, but do when in server.xml.

Can anybody see what I'm doing wrong?  Thanks.

Can anybody see what I'm doing wrong?  Thanks.

 
   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo!
FareChase.



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



   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: Using auto-configure with Tomcat 6.0

2007-07-11 Thread Bill Barker

Johnny Kewl [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Hi Bill almost missed your reply...
 I'm subscribed to so many mailing lists, my incoming mail is starting to 
 look like a flash animation...

 Briefly, yes... I am looking at it
 or more accurately I'm struggling with a cool exciting concept

 Goes something like this auto JK config maybe a toy as you say, but 
 besides JMX, it was one of the few things that presented a partial model 
 of TC to another system that concept I find very appealing.
 I'm thinking... ok, well JMX (via the internal mbeans registering 
 themselves), represents the live model of Tomcat.
 and JMX has effectively demoted XML configuration to something that 
 now really just represents the persisted static model of TC.


This isn't how Tomcat-Standalone works, but it easily could be.  I haven't 
looked at the JBoss code, but I understand that they use JMX to embed Tomcat 
from the persisted static setup.

 So if one wants to make helper tools... those tools need to be interfaced 
 with and aware of both the live and static models of TC.
 As a simple auto JK tool, its, as you say, a toy but now add JK load 
 balancing to it, and mod_proxy with the ability to perhaps even configure 
 HTTPd, then someone will go, gee thats cool, lets make it easy to 
 configure

Configuring httpd is something that has been talked about for mod_jk3 
(currently just being discussed, slowly on [EMAIL PROTECTED]).  You can read 
about 
it at http://svn.apache.org/repos/asf/tomcat/connectors/trunk/jk3/ROADMAP, 
and of course you can offer any suggestions (aka patches) on [EMAIL PROTECTED] 
or 
BZ just like any other Tomcat document.

 SSO, and the realm, and hey lets add JNDI to that and then people are 
 going to scream for a JMX interface to this easy configurator


There is the JMXProxy in /manager, JConsole, etc.

 .thats how I'm thinkingbut it raising all sorts of issues in my 
 mind
 Like maybe the whole concept of core beans registering themselves with JMX 
 is wrong or maybe there has to be JMX for the expert TC developer and 
 a JMX for the admin dude.

The more-or-less abandoned /admin webapp was meant to be a JMX interface for 
the admin dude.  Unfortunately, it lost it's developers to GlassFish, and 
now is still too tied to the TC 4.1.x (where it originated) way of doing 
things to be of much use in TC 6.x.  IMHO, it would probably need a re-write 
to be accepted for TC 6.x.

 For example (I havnt tried it), but what happens to TC if you change the 
 connected port, or reset a Realm through JMX... its live, so just how 
 badly

Well, for the connected port, you would have to stop and start the Connector 
for it to take effect (possible via JMX).  I haven't looked recently at what 
the Realms expose, but mostly I would think that they would take effect 
immediately (i.e. on the next Request).

 would that screw up TC or will TC raise an exception and just ignore 
 you just how smart are the core beans?
 Now JMX through the easy configurator or TC modeler would be 
 something different, if you change the JK load sharing, it would say 
 configuration illegal, or new configuration will become active on a TC 
 restart do you want to restart when user activity has ceased.
 It would become the model of TC that people see it would become a 
 modeler and it would become a safe layer between the live TC and 
 what people are trying to make it do?

Again, the starting point would be to look at the /admin webapp, which tries 
to do just that.  Like auto-configure, it is a popular option with users 
that currently doesn't have much love in the [EMAIL PROTECTED] community :).


 Thats how confused I've managed to make myself I need to do more 
 homework on the idea... I'd like to try turn something that programmers 
 are now finding boring, into something very exciting hopefully ;)


 - Original Message - 
 From: Bill Barker [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Monday, July 02, 2007 3:26 AM
 Subject: Re: Using auto-configure with Tomcat 6.0


 That would actually be a very valuable contribution.  One idea that I 
 looked at awhile back is a class that does minimal parsing of server.xml 
 to embed Tomcat (via JMX, it's s much easier), insert the Listener, 
 and then start the contexts to get the file, and then stop.

 Well, the way that I found out is people on this list compaining that 
 their auto-conf files generate warnings on httpd 2.2.x :).  Personally, I 
 lurk on [EMAIL PROTECTED], but this isn't for everyone.  Of course, to find 
 out 
 more, you just go to http://httpd.apache.org and check the documentation 
 and/or changelog.  To add a new attribute to the ApacheConfig class (from 
 server.xml), all you have to do is declare the public getter/setter 
 methods in standard JavaBean style.  Most standard type conversions are 
 supported by Digester (e.g. adding 

Re: A simple question about coyote

2007-07-11 Thread Bill Barker

[EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I have a simple question related to the coyote connector.  That is, `Is 
coyote similar to a composition protocol framework coyote 
(http://www.cs.arizona.edu/projects/coyote/) does?'


The Apache-Tomcat coyote is much more restricted than the arazona.edu 
coyote.  In Tomcat, Coyote is an abstraction of the HTTP/1.1 protocol only, 
that is agnostic to the transport protocol and wire-protocol that is used 
(i.e. it would be in theory possible to write a ProtocolHandler to work over 
FTP using sockets, or to write one that uses JNI or unix-sockets with say 
AJP/1.3 (which actually exist in Tomcat, but aren't really supported)).  So 
as a result, it isn't really suited for things like multicasting.

 I read some document on the internet. For instance, 
 http://www.wellho.net/downloads/A651.pdf illustrates that coyote is a 
 protocol handler, handling web issues.  It seems like they has the same 
 purpose, though one is proposed by the Arizona university, the other by 
 apache.org.

 Can I say that coyote (of tomcat) is also a kind of composition protocol 
 framework?


No, it isn't a composition protocol framework (but individual implementation 
may be).  It is a very simple framework that is intended to transform some 
protocol's request into an HTTP/1.1 request, and to translate the HTTP/1.1 
reponse back into the same protocol's response.  I'd suggest that you browse 
the javadocs on tomcat.apache.org for the org.apache.coyote package to learn 
more.


 Thanks your help,

 I appreciate it.

   §ùµ´ºô¸ôÀb«È¡A«O»Ù±b¸¹¦w¥þ - °¨¤W³]©w Yahoo!©_¼¯¦w¥þ¹Ï³¹¡I 




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



Re: tomcat 5.5 and jsp 1

2007-07-11 Thread Mark Thomas
alvaro tovar wrote:
 is posible to configure tomcat 5.5 for use jsp 1 i have application.
 
 thanks
 

What happens if you just deploy it?

Mark

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



Problem with uriworkermap.properties

2007-07-11 Thread Eric B.
Hi,

I'm running IIS with tomcat 5.5 and have the latest isapi_redirect.dll 
(1.2.23) installed and running.
The basic functionality is working well, but I am having trouble with 
getting exclusion rules to work properly.

I have the following in uriworkermap.properties:
/*=worker
!/*.htm=worker
!/private/*=worker

The following happens:
All *.htm files (no matter what path) are served up by IIS and not Tomcat
All other files are served by Tomcat
All files in /private/* are also served by Tomcat

I would have expected that the last exclusion (!/private/*) would mean that 
the connector would ignore any requests to the /private/ path.

Am I doing something wrong?

Thanks for any help!  And if I am asking in the wrong group / list, please 
let me know where I should direct my question.

Thanks,

Eric




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