RE: Tomcat not seeing servlet

2010-02-14 Thread David Short
./AuthLogin and AuthLogin still don't work.

It works with the fully qualified path
http://yourserver:port/yourwebapp/AuthLogin; or ../../AuthLogin

Thank you.


-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Sunday, February 14, 2010 5:53 AM
To: Tomcat Users List
Subject: Re: Tomcat not seeing servlet

2010/2/14 David Short dsh...@san.rr.com:
    servlet-mapping

        servlet-nameAuthLoginServlet/servlet-name

        url-pattern/AuthLogin/url-pattern

    /servlet-mapping

The above is correct.

 Login.jsp snippet:
 form name=login method=post action=/AuthLogin

Try this instead:

 form name=login method=post action=AuthLogin

or this
 form name=login method=post action=./AuthLogin



The mappings in web.xml are relative to your webapp, so you'll have to call
http://yourserver:port/yourwebapp/AuthLogin
unless your webapp is named ROOT (case-sensitively).


The form is processed by browser, and action=/AuthLogin instructs
it to create a relative URL using /AuthLogin for the path. The
starting / tells the browser that it is an absolute path on that
server.  My proposals above turn this into a relative path (relative
to the URL of the page that displayed that login.jsp snippet).

See relative URLs in HTML spec for more details.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat not seeing servlet

2010-02-14 Thread David Short
Thank you Juha.  The c:url value='/AuthLogin'/ works nicely.

-Original Message-
From: Juha Laiho [mailto:juha.la...@iki.fi] 
Sent: Sunday, February 14, 2010 8:49 AM
To: users@tomcat.apache.org
Subject: Re: Tomcat not seeing servlet

On 02/14/2010 06:21 PM, David Short wrote:
 ./AuthLogin and AuthLogin still don't work.

 It works with the fully qualified path
 http://yourserver:port/yourwebapp/AuthLogin; or ../../AuthLogin

Ah, yes, that completes the picture. And below I'll
somewhat repeat what Konstantin already explained, but
perhaps in a little bit different way.

The url-patterns you set in web.xml are relative to the
application (context) root:

 servlet-mapping
 servlet-nameAuthLoginServlet/servlet-name
 url-pattern/AuthLogin/url-pattern
 /servlet-mapping

.. which means that the full URL for the above servlet will be
http://server:port/contextroot/AuthLogin

However, URLs you set in jsp:s are true URLs, which means
that the /AuthLogin in your jsp form is not relative to
the application root:

 Login.jsp snippet:
 form name=login method=post action=/AuthLogin

... /AuthLogin here refers to
http://server:port/AuthLogin

The proposed forms
   form name=login method=post action=AuthLogin
   form name=login method=post action=./AuthLogin

would both refer to
http://server:port/yourwebapp/path_to_Loginjsp/AuthLogin

... where, apparently the path_to_Loginjsp in your case
has two levels of directories. To make either of the above
forms work, your url-pattern for the AuthLoginServlet would
have to be
url-pattern/path_to_Loginjsp/AuthLogin/url-pattern
... and this would pretty much be the easiest way to solve
the problem; with this, your JSP could really have the
form action as plain AuthLogin.

The JSTL tag library does also contain a tag c:url, which
helps in making URLs that refer to the application itself;
that would be another solution if your application already
uses JSTL. For an explanation, see f.ex.
http://www.ibm.com/developerworks/java/library/j-jstl0318/
-- 
..Juha

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat not seeing servlet

2010-02-13 Thread David Short
Hello,

 

I'm having a problem with Tomcat no seeing my servlet.  I have the servlet
defined and mapped in my web.xml file.  I've been Googling this for hours
and every example I find instructs to use the following setup.

 

Web.xml snippet:

 

servlet

servlet-nameAuthLoginServlet/servlet-name

servlet-classservlets.AuthLoginServlet/servlet-class

/servlet

 

servlet-mapping

servlet-nameAuthLoginServlet/servlet-name

url-pattern/AuthLogin/url-pattern

/servlet-mapping

 

 

 

Login.jsp snippet:

 

form name=login method=post action=/AuthLogin

 

 

 

Error message:

HTTP Status 404 - /AuthLogin

  _  

type Status report

message /AuthLogin

description The requested resource (/AuthLogin) is not available.

  _  

Apache Tomcat/6.0.20

 

Configuration

Tomcat 6.0.20 (port 80)

XP Pro

 

Any help would be greatly appreciated.

 



RE: Many Java Processes

2008-03-13 Thread David Short
Don't know if this applies here or not but, I got this once when my
ORACLE_HOME wasn't set when using Jserv (wrapper.env=) with the Apache web
server.  

-Original Message-
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 13, 2008 3:18 AM
To: Tomcat Users List
Subject: Many Java Processes

Hi,

I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java I see
many Java processes:

$  pgrep -l java
1783 java
1844 java
1848 java
1849 java
1880 java
1881 java
1882 java
1883 java
1885 java
1886 java
1887 java
1888 java
1889 java
1890 java
1891 java
1892 java
1893 java
1894 java
1895 java
1896 java
1897 java
1898 java
1899 java
1900 java
1905 java
1906 java
1973 java
1981 java
1983 java
1984 java
1985 java

I only see one java process in the process list:
# ps auxw | grep java
root  1783  0.7 30.5 333988 156532 ? SMar12   7:31
/usr/lib/jvm/java/bin/java -Dbuild.compiler.emacs=true
-Djava.endorsed.dirs=/usr/local/tomcat/common/endorsed -classpath
/usr/lib/jvm/java/lib/tools.jar:/usr/local/tomcat/bin/bootstrap.jar
-Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat

Is this to do with threading?  I can't see a setting in server.xml that
would make this happen?

I have 4 other machines running the same version on the same OS, but I only
see one java process when I do pgrep -l java.  What's happening?

S.

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



-
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: Strange MySQL-Behaviour with JDBC-Realm

2007-06-04 Thread David Short
Shouldn't your connection URL look something like this:
jdbc:mysql//db:3306/apacheSSO instead of jdbc:mysql://db/apacheSSO?  Not
sure if this means anything, since you say it's already working...  It just
looks strange.

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 04, 2007 12:52 AM
To: Tomcat Users List
Subject: Strange MySQL-Behaviour with JDBC-Realm

Hi guys,

we're running Tomcta 5.5 and MySQL 5 (InnoDB), OS is Debian. Tomcat
authentication is done via a JDBC-Realm.

Every now and then FormAuthenticator is throwing the following Exception:

2007-06-04 01:41:02,762 ERROR   localSearch.log
[TP-Processor2]:Exception
performing authentication
com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException:
Communications link failur
e during commit(). Transaction resolution unknown.
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:888)
at com.mysql.jdbc.Connection.commit(Connection.java:2259)
at
org.apache.catalina.realm.JDBCRealm.getPassword(JDBCRealm.java:568)
at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:399)
at
org.apache.catalina.realm.JDBCRealm.authenticate(JDBCRealm.java:347)
at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthent
ica
tor.java:257)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.ja
va:416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:392)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:10
7)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java
:88
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:6
84)
at java.lang.Thread.run(Thread.java:595)

Since Google is my friend, I found this link telling me that MySQL's
ConnectorJ times out after 8 hours - *ouch*:
http://dev.mysql.com/doc/refman/5.0/en/connector-j-usagenotes-troubleshootin
g.html#qandaitem-24-4-5-3-4

Developers there are told to use a connection-pool that can handle this
problem. They discourage anybody to use the autoconnect-feature, since
this might be unsafe and become depricated soon.

Well, well, I'm using the following connection-pool within Tomcat:

?xml version=1.0 encoding=UTF-8?
Context
  Resource
auth=Container
description=DB Connection for SSO
name=jdbc/SSODS
type=javax.sql.DataSource
factory=org.apache.commons.dbcp.BasicDataSourceFactory
driverClassName=com.mysql.jdbc.Driver
username=XXX
password=XXX
url=jdbc:mysql://db/apacheSSO
maxIdle=5
maxWait=1
maxActive=10
validationQuery=SELECT 1
testOnBorrow=true
testWhileIdle=true
timeBetweenEvictionRunsMillis=1
minEvictableIdleTimeMillis=28800
poolPreparedStatements=true
removeAbandoned=true
removeAbandonedTimeout=300
logAbandoned=false/
/Context

Seems that this connection-pool does not handle this problem properly.

So:

Does any of you gyus have the same problem and has a working solution fori
t? I hate it to check the Tomcat's ERROR-log in the morning and every day I
see a file having a size  0...

I'm wondering if I simply should add the autoconnect-feature (which is such
a bad, bad thing) to my connection-pool...

Any oppinions on this appreciated

Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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



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



RE: Strange MySQL-Behaviour with JDBC-Realm

2007-06-04 Thread David Short
You may want to try it with explicit values to see if that makes a
difference.  I know NetBeans (different subject) has a problem when the port
number is specified and is other that 3306 (default).  Just an idea. 

-Original Message-
From: Gregor Schneider [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 04, 2007 1:17 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Strange MySQL-Behaviour with JDBC-Realm

Hi David,

from
http://dev.mysql.com/doc/refman/4.1/en/connector-j-reference-configuration-p
roperties.html:

[snipp]=
If the hostname is not specified, it defaults to 127.0.0.1. If the port is
not specified, it defaults to 3306, the default port number for MySQL
servers.
[snapp]=

If nobody has a suggestion on that topic, I guess I'll try it with
autoreconnect, although I'm not happy with that since it's depricated

Thanks anyway!

Gregor
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

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



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



RE: Tomcat Connection pool

2007-05-29 Thread David Short
In your code where you reference the JNDI name jdbc, reference jdbc/orcl
instead.

-Original Message-
From: Ligade, Shailesh (Contr) (Mission Systems)
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 5:16 AM
To: Tomcat Users List
Subject: Tomcat Connection pool

 
Greetings,

I am running Tomcat 5.x, and I have many webapps deployed and working under
tomcat. I want my connection pool to be used from any application.
When I modify server.xml in conf directory to add my connection, listed
below:

Server port=8010 shutdown=SHUTDOWN

Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

GlobalNamingResources
Resource name=jdbc/orcl scope=Shareable
auth=Container type=javax.sql.DataSource description=Employees Database
for HR Applications/

ResourceParams name=jdbc/orcl
parameter
   namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
   namedriverClassName/name

valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
   nameurl/name

valuejdbc:oracle:thin:@158.114.68.201:1521:CSAPPDB/value
/parameter
parameter
   nameusername/name
   valueROAM_USER/value
/parameter
parameter
   namepassword/name
   valuengit1234/value
/parameter
.
/ResourceParams
/GlobalNamingResources

  Service name=Collaboration-Standalone
Connector protocol=HTTP/1.1 enableLookups=true
redirectPort=8443
 acceptCount=100 connectionTimeout=2
disableUploadTimeout=true URIEncoding=UTF-8/
Connector protocol=AJP/1.3 port=8009 
 minProcessors=50 maxProcessors=150
 enableLookups=true redirectPort=8443
 acceptCount=130 URIEncoding=UTF-8/
Engine name=Standalone defaultHost=localhost debug=8
  !-- uncomment to dump HTTP requests received
  Valve className=org.apache.catalina.valves.RequestDumperValve/
  --
  Host name=localhost appBase=webapps unpackWARs=true
autoDeploy=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=log  prefix=localhost_access_log.
suffix=.txt
 pattern=common resolveHosts=false/
Context path= docBase=../WWW crossContext=true
override=true
 debug=5 reloadable=true
 ResourceLink name=jdbc/orcl global=jdbc/orcl
auth=Container type=javax.sql.DataSource/ 
/Context
  
  /Host
/Engine
  /Service
/Server


And I get following error:


javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
org.apache.naming.NamingContext.lookup(NamingContext.java:769)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
org.apache.naming.NamingContext.lookup(NamingContext.java:152)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
com.intraspect.reports.CustomerReport.getVBCSDBConnection(Unknown
Source)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
[May 29, 2007 7:47:06 AM (http-80-Processor4_214)]: at
java.lang.reflect.Method.invoke(Method.java:585)

Any idea, what I am doing wrong?

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



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



RE: Configuring a DataSourceRealm

2007-05-29 Thread David Short
In your code where you reference JNDI jdbc, reference jdbc/oaso instead.


-Original Message-
From: Paulo Vivacqua [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 8:37 AM
To: Tomcat Users List
Subject: Re: Configuring a DataSourceRealm

Hello chris,

Thanks again for the help.I will try to be more clear so that maybe you
could help figure out what I am doing wrong.

Like I said before I am trying to setup a DataSourceRealm to authenticate
users by pull out the user information from a MySQL database.

1- I already created the tables and columns in my database that conforms to
the requirements.

2 - I also configured a JNDI named jdbc/oaso on TomCat Server
Administration. I tested this connection through a DBCP and it´s working
fine.

3- I created a Realm inside the  server.xml to use the JNDI jdbc/oaso
between the Engine tags

4-  I configured the security-constraint on the web.xml

When I run the project I get the following error:

29/05/2007 12:23:55 org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
282)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:180)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:490)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:619)


The server.xml

?xml version=1.0 encoding=UTF-8?
Server
port=8025
Listener className=org.apache.catalina.core.AprLifecycleListener/
Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
Listener
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/
Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener/
GlobalNamingResources
Environment
name=simpleValue
type=java.lang.Integer
value=30/

Resource
name=jdbc/oaso
type=javax.sql.DataSource
maxActive=4
maxIdle=2
username=root
maxWait=5000
driverClassName=com.mysql.jdbc.Driver
password=xx
url=jdbc:mysql://localhost:3306/renatovivacqua/

Resource
auth=Container
description=User database that can be updated and saved
name=UserDatabase
type=org.apache.catalina.UserDatabase
factory=org.apache.catalina.users.MemoryUserDatabaseFactory
pathname=conf/tomcat-users.xml/

/GlobalNamingResources

Service
name=Catalina
Connector
port=8084
redirectPort=8443
minSpareThreads=25
connectionTimeout=2
uRIEncoding=utf-8
maxSpareThreads=75
maxThreads=150
/Connector
Connector
port=8009
redirectPort=8443
protocol=AJP/1.3
/Connector
Connector
port=8443
scheme=https
secure=true
minSpareThreads=25
clientAuth=false
maxSpareThreads=75
maxThreads=150
sslProtocol=TLS
/Connector
Engine
defaultHost=localhost
name=Catalina
Realm className=org.apache.catalina.realm.UserDatabaseRealm/

Realm className=org.apache.catalina.realm.DataSourceRealm
   debug=99
   dataSourceName=jdbc/oaso
   localDataSource=true
   userTable=users
   userNameCol=user_name
   userCredCol=user_pass
   userRoleTable=user_roles
   roleNameCol=role_name/

Host

RE: Configuring a DataSourceRealm

2007-05-29 Thread David Short
Somewhere in your code, probably in j_security_check, there is a reference
to a datasource, which will reference the JNDI value.  You need to change
that reference from jdbc to jdbc/oaso.

-Original Message-
From: Paulo Vivacqua [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 29, 2007 10:46 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Configuring a DataSourceRealm

Hi David, Thanks for the help.

I don´t have a reference to JNDI jdbc on my code. What I have is a login
page with a form that´s sent to tomcat for authentication.

form method=POST action=j_security_check
input type=text name=j_username/br
input type=password name=j_password/br
input type=submit value=Enter /
/form

I restarted tomcat and what  I am getting a login window for TomCat Manager
Application. I tried using the a user and a password configured on
tomcat-users but none of them work.

the application error:

do-dist:
dist:
F:\Paulo\ICESP\6sem\java\projetos\RealmJdbcTeste\nbproject\build-impl.xml:45
2:
Deployment error:
Access to Tomcat server has not been authorized. Set the correct username
and password with the manager role in the Tomcat customizer in the Server
Manager.
See the server log for details.
BUILD FAILED (total time: 57 seconds)


the tomcat error

29/05/2007 14:39:23 org.apache.catalina.realm.DataSourceRealm open
SEVERE: Exception performing authentication
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401)
at
org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
282)
at
org.apache.catalina.authenticator.BasicAuthenticator.authenticate(BasicAuthe
nticator.java:180)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:490)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:619)





On 5/29/07, David Short [EMAIL PROTECTED] wrote:
 In your code where you reference JNDI jdbc, reference jdbc/oaso
instead.


 -Original Message-
 From: Paulo Vivacqua [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, May 29, 2007 8:37 AM
 To: Tomcat Users List
 Subject: Re: Configuring a DataSourceRealm

 Hello chris,

 Thanks again for the help.I will try to be more clear so that maybe 
 you could help figure out what I am doing wrong.

 Like I said before I am trying to setup a DataSourceRealm to 
 authenticate users by pull out the user information from a MySQL database.

 1- I already created the tables and columns in my database that 
 conforms to the requirements.

 2 - I also configured a JNDI named jdbc/oaso on TomCat Server 
 Administration. I tested this connection through a DBCP and it´s 
 working fine.

 3- I created a Realm inside the  server.xml to use the JNDI jdbc/oaso 
 between the Engine tags

 4-  I configured the security-constraint on the web.xml

 When I run the project I get the following error:

 29/05/2007 12:23:55 org.apache.catalina.realm.DataSourceRealm open
 SEVERE: Exception performing authentication
 javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
 at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
 at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
 at
 org.apache.catalina.realm.DataSourceRealm.open(DataSourceRealm.java:401)
 at

org.apache.catalina.realm.DataSourceRealm.authenticate(DataSourceRealm.java:
 282)
 at
 org.apache.catalina.authenticator.BasicAuthenticator.authenticate(Basi
 cAuthe
 nticator.java:180)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
 orBase
 .java:490)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
 va:126
 )
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
 va:105
 )
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
 e.java

RE: Re: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-22 Thread David Short
Do a clean and build in your IDE.  Run the test case in the IDE if possible.


-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 22, 2007 2:35 AM
To: Tomcat Users List
Subject: [Norton AntiSpam] Re: hi,wired problem? add 0 into alist but get 1
as a result!

En l'instant précis du 22/05/07 05:21, Peter s'exprimait en ces termes:
 hi all;
 only get problem when put 0 into the list, put 1 or any number is ok, 
 put new Integer(0) is ok as well;
Ide not recompiling or tomcat not reloading class, while you think you are
running the 0 case, you are in fact running the 1 case. did you try
successfully storing 3 then switch back to 0. If It does not compile at 0,
your test case will still show 3.

 i think it may be a bug.
 does anyone has a idea?
 regards


 On 5/21/07, Peter [EMAIL PROTECTED] wrote:

 hi all,

 I have come into a very wired problem.

 here it is.
 my project using JBuilder 2006 and tomcat 5.5.20.
 when i put a 0 into a list and get 1 as a result.
 simple code for testing!

 List alist =new ArrayList();
 alist.add(0); put 0 into it
 alist.get(0); get 1 as result.

 it occurs when i using JBuilder2006 to complie it and run under 
 tomcat 5.5.20.
 i choose Jbuilder 2006 builder property: language features ( java 2 
 SDK V5.0 generic enable) ; target VM java 2 SDK V5.0 and later

 but if i choose target VM target VM java 2 SDK V1.4 and later it 
 works fine, put 0 get 0.
 and if i donot run under the tomcat it still fine

 so i create another small project, in a jsp only doing List alist 
 =new ArrayList(); alist.add(0); alist.get(0); and it works fine as 
 well under the same tomcat.


 i wonder what happens here?
 my project using many other jar file , i wonder if there is something 
 wrong there.
 does anyone has a idea?

 thanks in advanced!







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



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



RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Try creating your List like this and see what happens.

Listint alist =new ArrayListint(); 

-Original Message-
From: Peter [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 21, 2007 2:29 AM
To: Tomcat Users List
Subject: Re: hi,wired problem? add 0 into alist but get 1 as a result!

thanks

i am sure that i put 0 in to a list and i am not badly display result and it
is the same list and it is only occur in this project.
thanks for any idea


On 5/21/07, David Delbecq [EMAIL PROTECTED] wrote:

 Never heard of such problem. Check your code. Either you add 1 to 
 list, not 0, either you badly display result, either it's not the same
list.
 Peter a écrit :
  hi all,
 
  I have come into a very wired problem.
 
  here it is.
  my project using JBuilder 2006 and tomcat 5.5.20.
  when i put a 0 into a list and get 1 as a result.
  simple code for testing!
 
  List alist =new ArrayList();
  alist.add(0); put 0 into it
  alist.get(0); get 1 as result.
 
  it occurs when i using JBuilder2006 to complie it and run under 
  tomcat 5.5.20.
  i choose Jbuilder 2006 builder property: language features ( java 2 
  SDK V5.0generic enable) ; target VM java 2 SDK V5.0 and later
 
  but if i choose target VM target VM java 2 SDK V1.4 and later it 
  works fine, put 0 get 0.
  and if i donot run under the tomcat it still fine
 
  so i create another small project, in a jsp only doing List alist 
  =new ArrayList(); alist.add(0); alist.get(0); and it works fine as 
  well under the same tomcat.
 
 
  i wonder what happens here?
  my project using many other jar file , i wonder if there is 
  something wrong there.
  does anyone has a idea?
 
  thanks in advanced!
 

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





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



RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Try creating your List like this and see what happens.

Listint alist =new ArrayListint(); 

-Original Message-
From: Peter [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 21, 2007 2:29 AM
To: Tomcat Users List
Subject: Re: hi,wired problem? add 0 into alist but get 1 as a result!

thanks

i am sure that i put 0 in to a list and i am not badly display result and it
is the same list and it is only occur in this project.
thanks for any idea


On 5/21/07, David Delbecq [EMAIL PROTECTED] wrote:

 Never heard of such problem. Check your code. Either you add 1 to 
 list, not 0, either you badly display result, either it's not the same
list.
 Peter a écrit :
  hi all,
 
  I have come into a very wired problem.
 
  here it is.
  my project using JBuilder 2006 and tomcat 5.5.20.
  when i put a 0 into a list and get 1 as a result.
  simple code for testing!
 
  List alist =new ArrayList();
  alist.add(0); put 0 into it
  alist.get(0); get 1 as result.
 
  it occurs when i using JBuilder2006 to complie it and run under 
  tomcat 5.5.20.
  i choose Jbuilder 2006 builder property: language features ( java 2 
  SDK V5.0generic enable) ; target VM java 2 SDK V5.0 and later
 
  but if i choose target VM target VM java 2 SDK V1.4 and later it 
  works fine, put 0 get 0.
  and if i donot run under the tomcat it still fine
 
  so i create another small project, in a jsp only doing List alist 
  =new ArrayList(); alist.add(0); alist.get(0); and it works fine as 
  well under the same tomcat.
 
 
  i wonder what happens here?
  my project using many other jar file , i wonder if there is 
  something wrong there.
  does anyone has a idea?
 
  thanks in advanced!
 

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





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



RE: hi,wired problem? add 0 into alist but get 1 as a result!

2007-05-21 Thread David Short
Yes.  It declares that the List is going to hold integers.  See
http://www.onjava.com/lpt/a/6014. 

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 21, 2007 1:10 PM
To: Tomcat Users List
Subject: Re: hi,wired problem? add 0 into alist but get 1 as a result!

On 5/21/07, Felix Schumacher [EMAIL PROTECTED] wrote:
 Have you tried to put an Object into ArrayList?
 Like
 alist.add(Integer.valueOf(0));
 System.out.println((Integer)alist.get(0));

 I don't think it is possible to store an int into an ArrayList.

Autoboxing is the magic word here. The compiler generates alist.add(new
Integer(0)); if it sees alias.add(0); regards Leon


 Bye
  Felix



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



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



RE: Tomcat and mod_jk

2007-05-13 Thread David Short
Hi Scott,

That did the trick!  Are you using Tomcat 5.5.23?  I didn't have to do this
with previous versions of Tomcat...  This might be bug reporting material.
Did you report this as a bug?  If not, I will.

Thanks you for your response,

Dave 

-Original Message-
From: Scott Cole [mailto:[EMAIL PROTECTED] 
Sent: Saturday, May 12, 2007 3:29 PM
To: users@tomcat.apache.org
Subject: Re: Tomcat and mod_jk


I had a similar problem to this in march.  I found that for me I had to
adjust the default connector information for the port 8009 in the tomcat
config file server.xml.  I made the 8009 connector look like the 8080
connector.  So I guess if you are using port 8084 for directly accessing
your tomcat you would want to make the 8009 connector look like the 8084
connector



David Short wrote:
 
 I believe this topic, or something similar, has been covered before, 
 so I apologize in advance.
 
 I'm having an issue with Tomcat consuming 100% CPU when called from 
 Apache via ajp13.  If I run my .jsp and servlet files through Tomcat 
 directly (port
 8084) all is well.  However, if Apache redirects my .jsp and servlet 
 files to Tomcat via ajp13, Tomcat starts consuming CPU and after a few 
 seconds consumes all 100%.
 
 Any ideas would be greatly appreciated.
 
 
 Environment:
 
 Pentium 4 (3.4 Mhz)
 2 GB memory
 Windows XP Pro SP2
 MySQL 5.1
 Apache 2.2.4
 Mod_jk 2.2.4
 Tomcat 5.5.23
 Java 1.5.0_11-b03
 
 
 workers.properties
 
 workers.tomcat_home=C:\Tomcat5
 workers.java_home=C:\Program Files\Java\jre1.5.0_11 ps=\
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 

--
View this message in context:
http://www.nabble.com/Tomcat-and-mod_jk-tf3732833.html#a10450362
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]



-
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 and mod_jk

2007-05-12 Thread David Short
I believe this topic, or something similar, has been covered before, so I
apologize in advance.

I'm having an issue with Tomcat consuming 100% CPU when called from Apache
via ajp13.  If I run my .jsp and servlet files through Tomcat directly (port
8084) all is well.  However, if Apache redirects my .jsp and servlet files
to Tomcat via ajp13, Tomcat starts consuming CPU and after a few seconds
consumes all 100%.

Any ideas would be greatly appreciated.


Environment:

Pentium 4 (3.4 Mhz)
2 GB memory
Windows XP Pro SP2
MySQL 5.1
Apache 2.2.4
Mod_jk 2.2.4
Tomcat 5.5.23
Java 1.5.0_11-b03


workers.properties

workers.tomcat_home=C:\Tomcat5
workers.java_home=C:\Program Files\Java\jre1.5.0_11
ps=\
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13


RE: Msql Connector/J

2007-05-09 Thread David Short
Unzip the connector and place the .jar file in the common\lib directory or
in the webapps\**appname**\WEB-INF\lib directory. 

-Original Message-
From: Massimiliano PASQUALONI
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 09, 2007 9:00 AM
To: users@tomcat.apache.org
Subject: Msql Connector/J

Hi everybody!
 
I'ved downloaded mysql-connector-java-5.1.0.zip.
 
I'ved put the mysql-connector-java-5.1.0-bin.jar in
C:\Programmi\Java\jre1.6.0_01\lib and I'ved set the %CALSSPATH% on the same
directory.
 
 
I'ved create a jsp page:
 
 
%@ page import=java.sql.* %
%
String connectionURL =
jdbc:mysql://localhost:3306/bi?user=USER;password=PASSWORD;
Connection connection = null;
Statement statement = null;
ResultSet rs = null;
%
htmlbody
%
Class.forName(com.mysql.jdbc.Driver).newInstance();
connection = DriverManager.getConnection(connectionURL, , ); statement =
connection.createStatement(); rs = statement.executeQuery(SELECT * FROM
TABLE WHERE username='ciao' and password='ciao' and Abilitato = 1); while
(rs.next()) { out.println(rs.getString(username)+br);
}
rs.close();
%
 
 
Tomcat send me an 500 error:
 
 
type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Exception in JSP: /prova.jsp:14



11: htmlbody

12: 

13: %

14: Class.forName(com.mysql.jdbc.Driver).newInstance();

15: connection = DriverManager.getConnection(connectionURL, , );

16: statement = connection.createStatement();

17: rs = statement.executeQuery(SELECT * FROM ANAG_UTENTI WHERE
username='ciao' and password='ciao' and Abilitato = 1);





Stacktrace:


org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWra
pper.java:467)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
71)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



root cause 

javax.servlet.ServletException: com.mysql.jdbc.Driver


org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI
mpl.java:846)


org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:779)

org.apache.jsp.prova_jsp._jspService(prova_jsp.java:79)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
28)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



root cause 

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1359)


org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1205)


org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)


org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)

java.lang.ClassLoader.loadClassInternal(Unknown Source)

java.lang.Class.forName0(Native Method)

java.lang.Class.forName(Unknown Source)

org.apache.jsp.prova_jsp._jspService(prova_jsp.java:57)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
28)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.23 logs.

 
 
It's the connector don't work?
 
 
Thanks!!!
 

Massimiliano PASQUALONI

Data Processing S.r.l.
Reparto EDP
S.S. 100 BA-TA Km 18
c/o IL BARICENTRO 
torre D
70010 CASAMASSIMA (BA)



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



RE: JavaMail, NetBeans and Tomcat 5.5.23

2007-05-08 Thread David Short
I haven't gotten that far yet.  The message is in the NetBeans 5.5 IDE.  It
won't let me register a JavaMail resource with Tomcat 5.5.23 because it says
5.5.23 is not J2EE 1.4 compliant.  I may need to upgrade to NetBeans 6 and
Tomcat 6.x.  However, NetBeans 6 is in Milestone release at this time and
I'm hesitant... 

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 08, 2007 9:45 PM
To: Tomcat Users List
Subject: Re: JavaMail, NetBeans and Tomcat 5.5.23

On 5/8/07, David Short [EMAIL PROTECTED] wrote:

 Has anyone setup JavaMail in NetBeans 5.5 with Tomcat 5.5.23?  I'm 
 trying to register the NetBeans Server Resource and it won't let me 
 and tells me to set to Sun's Java System Application Server.

 Any ideas, suggestions, steps or tutorial available?

It's hard to say without the exact error message, but if you're trying to
send mail with 5.5.23, you might be running into Bug 40668.  It's missing
some mail-related classes.

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=40668

--
Wendy

-
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 5.5.23 and NetBeans 5.5

2007-04-26 Thread David Short
I've registered Tomcat 5.5.23 per the NetBeans 5.5 instructions.  When I try
to start Tomcat from within the NetBeans IDE, Tomcat refuses to start.  The
IDE displayed and actual Tomcat log files look normal, but the IDE hangs and
eventually times out.  I've removed and added Tomcat back in the IDE
multiple times without luck.  The NetBeans embedded Tomcat 5.5.17 works
without issue.

Any ideas?


RE: Tomcat 5.5.23 and NetBeans 5.5

2007-04-26 Thread David Short
I changed the 5.5.23 startup and shutdown ports to 8084 and 8025
respectively within the 5.5.23\conf\server.xml (to match the embedded 5.5.17
ports) and now it works...  So, my advanced logic skills tell me that
something else within the IDE is running on port 8080.  There is an embedded
NetBeans HTTP server which is configured to run on port 8082.  So, that
doesn't look like the problem...  I'll continue to investigate and report
back if I find out what's going on...

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 26, 2007 9:45 AM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List
Subject: Re: Tomcat 5.5.23 and NetBeans 5.5

Hi David

Netbeans 5.5 Needs these 2 startup scripts $CATALINA_HOME/bin/catalina.bat
$CATALINA_HOME/bin/setclasspath.bat

HTH/
Martin
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message -
From: David Short [EMAIL PROTECTED]
To: Tomcat Users Group [EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 12:34 PM
Subject: Tomcat 5.5.23 and NetBeans 5.5


 I've registered Tomcat 5.5.23 per the NetBeans 5.5 instructions.  When I 
 try
 to start Tomcat from within the NetBeans IDE, Tomcat refuses to start. 
 The
 IDE displayed and actual Tomcat log files look normal, but the IDE hangs 
 and
 eventually times out.  I've removed and added Tomcat back in the IDE
 multiple times without luck.  The NetBeans embedded Tomcat 5.5.17 works
 without issue.

 Any ideas?
 


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



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



RE: Tomcat 5.5.23 and NetBeans 5.5

2007-04-26 Thread David Short
Nothing running on 8080... 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 26, 2007 11:54 AM
To: Tomcat Users List
Subject: RE: Tomcat 5.5.23 and NetBeans 5.5

 From: David Short [mailto:[EMAIL PROTECTED]
 Subject: RE: Tomcat 5.5.23 and NetBeans 5.5
 
 ports) and now it works...  So, my advanced logic skills tell me that 
 something else within the IDE is running on port 8080.

Since you appear to be running on Windows, run netstat -abno to find out
who's using which ports.  

Or try TCPView, as another David suggested yesterday:
http://www.microsoft.com/technet/sysinternals/utilities/TcpView.mspx

 - 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]



-
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 UserDB in MySQL

2007-04-24 Thread David Short
Add a realm under the Engine name=Catalina defaultHost=localhost
section.

You'll need to copy the correct MySQL JDBC driver
(http://dev.mysql.com/downloads/connector/j/5.0.html) to the
tomcat_home\common\lib directory.  Replace the test in localhost:3306/test
with you database name.

I've got it running on Tomcat 5.5.23 and MySQL 5.1.


  Realm  className=org.apache.catalina.realm.JDBCRealm
 driverName=com.mysql.jdbc.Driver
  connectionURL=jdbc:mysql://localhost:3306/test debug=99
 connectionName=root connectionPassword=password
  userTable=users userNameCol=username userCredCol=pass
  userRoleTable=roles roleNameCol=role /

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 24, 2007 4:26 PM
To: Tomcat Users List
Subject: Tomcat UserDB in MySQL

I want to replace the tomcat-users.xml with two tables in MySQL:

Database : auth
table users :username varchar(15) primary key NN
pass varchar(41) NN

table roles : username varchar(15) primary key NN
role varchar(10) NN

Tried the solution from thread [SOLVED] :) user authetication on MySql db
issue need some help!
from the list, but still doesn´t work.

Are there any more changes I have to make.
Do I need to update TC (now using TC 5.0.28) I want to avoid an update,
because everything else is running fine, and I made the experience that
updates often change this.

The TC admintool doesn´t  give the possibility to add MySQL userDBs.

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]



RE: Administration Tomcat

2007-04-20 Thread David Short
I just got it to work.  

Here's what you need to do:

1) Unzip the file to a temporary directory (temp_dir).
2) Copy the %temp_dir%\conf\catalina\localhost\admin.xml file to
%tomcat_home%\conf\Catalina\localhost directory.
3) Copy the %temp_dir%\server\webapps\admin directory to the
%tomcat_home%\server\webapps directory.  Notice the server\webapps not
\webapps.
4) Restart Tomcat and it should work.

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 20, 2007 9:17 AM
To: Tomcat Users List
Subject: RE: Administration Tomcat

I've never been able to get this to work. I believe I've got the roles and
tomcat-users xml file properly configured, but I always get invalid
password.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 10:48 AM
To: users@tomcat.apache.org
Subject: Administration Tomcat
Importance: High


Tomcat : 5.5.23
Java  :


Hi everybody,

i've downloaded the apache-tomcat-5.5.23-admin.zip file to administrate my
tomcat server.
Now i've an admin directory under %CATALINA-HOME%/webapps.
But when I try to access it through http://localhost:8080/admin I get the
following message:

The admin.login_jsp servlet is not available

There's no jsp files under the admin directory.
What's wrong ?

Many thanks

Best Regards



Jean-Louis Matéo



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


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



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



RE: IDE

2007-04-17 Thread David Short
NetBeans uses the embedded Tomcat 5.5.17 by default.  How can a newly
installed Tomcat 5.5.20 be configured to be used as the default?

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 17, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: IDE

Dont pull it out...
Just stick a new one in...

Just download the Tomcat you want... if its windows, the server version is
cool.
Stick it somewhere on one of your hard-drives.

Go to TOOLS - SERVER MANAGER
Click NEW SERVER

Netbeans will now use the new Tomcat... and you can switch between them if
you want.

Enjoy


- Original Message -
From: dimitryous r. [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 17, 2007 9:57 AM
Subject: Re: IDE


 Hello, NetBeans 5.5 at http://www.netbeans.org does it.
 But it comes with his own Apache Tomcat JSP (5.0.17 for MacOSX). 
 Deplyoment is very easy.

 I don't know how to pull out this version with a more recent one  5.0.20 
 ...

 Any ideas?

 TIA
 On 6 avr. 07, at 02:47, David Short wrote:

 I'm sure this question has been asked many times.  So, I apologize in
 advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
 compatible with Apache and Tomcat?

 Thanks in advance.

 Dave


 -
 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]



IDE

2007-04-05 Thread David Short
I'm sure this question has been asked many times.  So, I apologize in
advance.  Can anyone recommend a freeware Java/JSP/JSF IDE that is
compatible with Apache and Tomcat?

Thanks in advance.

Dave


RE: BOOBIES!

2006-07-23 Thread David Short
Please everyone, drop this!!!  I don't know about you, but I get far too
many emails as it is.  Just use this forum as intended and keep the
superfluous emails out.

Charles, if you're not the original poster, then you shouldn't have jumped
in to the original posters defense and hence labeled a low-life.  You guys
have far too much time on your hands if this is what you choose to do with
your free time.  Get out of the house, go to the beach, lake or other hot
weather respite...

-Original Message-
From: Dakota Jack [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 23, 2006 8:20 AM
To: Tomcat Users List
Subject: Re: BOOBIES!


Thank you.  I can only say Exactly.

On 7/23/06, Januski, Ken [EMAIL PROTECTED] wrote:

 Like many I've resisted this thread because I figured it would be STUPID!
 STUPID, YES I SAID STUPID. Did that get your attention?

 Now let me ask: how many people read threads here whose subject is in caps
 followed by an explanation point? And what does that subject usually say?
 Something like HELP, TOMCAT DONT WORK, a type of spam or something
similar.
 I almost always skip those messages. Some people have more patience than I
 and so do end up helping someone who has gotten desperate. More
experienced
 users know that they're much more likely to get an answer to their
question
 by choosing a more informative and less excited subject.

 So what does someone think when they see BOOBIES! and what did the author
 of that message think that they would think? Well I have little doubt that
 they expected anyone to think of birds and I doubt that that was the first
 reaction of any reader no matter how avid a birder. So I have a very hard
 time believing that the author had any intent other than to get a reaction
 of some sort from readers who saw the subject and didn't think bird. I
don't
 think this has anything to do with puritanism or political correctness. I
 can't think of anything I like much less than political correctness. But
 it's very hard to see this as having anything to do with political
 correctness. To me it's just someone trying to be clever and then trying
to
 cover their tracks when they find out that many uses don't actually find
it
 clever. ENOUGH SAID!




 -Original Message-
 From: Robert Koberg [mailto:[EMAIL PROTECTED]
 Sent: Sun 7/23/2006 7:28 AM
 To: Tomcat Users List
 Subject: Re: BOOBIES!

 Wow... how do some people make it through the day without exploding from
 some terrible insult.

 I can't believe this thread subject has turned into such a big deal. I
 deleted the first 5 or so because I thought it was spam. Then I saw
 names responding which I recognized.

 I really don't understand how someone can be offended by a word like
 'boobies' and can still use the Internet, or real life for that matter.

 grow up and grow a skin... Dantes Inferno invoked for using the word
 'boobies.' The road to hell is paved with...



 Dakota Jack wrote:
  Golly, Charles,
 
  Maybe you need some training?  Maybe you are the one who does not get
 the
  point?  If you think I am going to apologize for your taking a serious
  topic
  that hurts people and covering it with your inane indifference, you
  might be
  wrong.  The worst people are not the haters, although they are bad
 enough,
  the worst people are the indifferent.  If you read Dantes Inferno you
 will
  find the colder the heart, the more the indifference, the lower your
 level
  in hell.  Understand?
 
  On 7/22/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  Thank you. I was caught up in a witch hunt and feel undeservedly bashed
  over my attempt to inject some light-hearted  jest into an overheated
  atmosphere. Plainly the poster who calls him or herself Dakota Jack
  didn't
  view the link. He or she had already made up his or her mind and
  couldn't be
  bothered with facts.
 
  For those of you didn't see the link, it was a photo of a bird (not
  engaged in a sexual or excretory function of patently offensive nature)
  native to the Galapagos Islands. It has blue feet and is commonly
  called a
  Blue-footed booby.
 
  I await Dakota Jack's apology.
  --
  Charles Knell
  [EMAIL PROTECTED] - email
 


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






--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~



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