invalid reference to login form

2007-05-25 Thread Propes, Barry L
Hi,
 
I'm having some users get this error reaching a portion of the secured section 
of my app.
 
They oddly enough can access certain pages within the directory of this 
application, by logging in appropriately through the form. However, another 
file in the same directory gives them this error - Invalid Direct reference to 
Form Login page.
 
Does anyone know what could be at work here causing this?
 
I tested on my browser with this person's credentials and got in!
 
I tested on both IE and Netscape and got in.
 
One user got this and we rectified it by clearing the browser cache. Not so 
with another user!
 
I'm wide open to suggestions if anyone has any!
 
 
Thanks!
 
Barry
 
 


RE: invalid reference to login form

2007-05-25 Thread Propes, Barry L
on that note, it's also showing The request sent by the client was 
syntactically incorrect.

My web.xml is correct and I haven't changed it recently.

I'm almost thinking that the Tomcat server could use a restart, but hopefully 
that's all there is to it.

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Friday, May 25, 2007 4:04 PM
To: Tomcat Users List
Subject: invalid reference to login form


Hi,
 
I'm having some users get this error reaching a portion of the secured section 
of my app.
 
They oddly enough can access certain pages within the directory of this 
application, by logging in appropriately through the form. However, another 
file in the same directory gives them this error - Invalid Direct reference to 
Form Login page.
 
Does anyone know what could be at work here causing this?
 
I tested on my browser with this person's credentials and got in!
 
I tested on both IE and Netscape and got in.
 
One user got this and we rectified it by clearing the browser cache. Not so 
with another user!
 
I'm wide open to suggestions if anyone has any!
 
 
Thanks!
 
Barry
 
 

-
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: invalid reference to login form

2007-05-25 Thread Propes, Barry L
we'll see how this goes.

It's been relatively stable to this point. And further, this user can log on to 
certain sections, but not a certain path of the URL.

In other words, I have certain files that are protected. Then I have a 
completely separate directory that's protected.

This person can access one of the specified files, but nothing in the admin 
directory! Which incidentally is called admin, FWIW.

 Is it always the same users? Is it always the same place?

It's not always the same users, bot so far, it is the same place it seems.

this path -- 
 url-pattern/chngctrl/admin/*/url-pattern
is causing a problem, so it seems, not the case with the below files.
 url-pattern/chngctrl/change_ctrl_admin4.jsp/url-pattern
 url-pattern/chngctrl/change_ctrl_admin5.jsp/url-pattern
 url-pattern/chngctrl/change_ctrl_admin5b.jsp/url-pattern

I might give the sourceforge thing a go if this keeps up!


RE: error in catalina.out log

2007-05-24 Thread Propes, Barry L
maybe put the jar file in the wrong directory? Looks like that's what could 
have happened.

-Original Message-
From: Jean-Pierre Astier [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 24, 2007 5:27 AM
To: Tomcat Users List
Subject: error in catalina.out log


Hi all,

I've got this message in my catalina.out log.

I dont know how to resolve the problem.

Any idea ??

Thanks

Jean-Pierre Astier

23 mai 2007 12:51:39 org.apache.catalina.loader.WebappClassLoader  
loadClass
INFO: Illegal access: this web application instance has been stopped  
already.  Could not load com.mysql.jdbc.Messages.  The eventual  
following stack trace is caused by an error thrown for debugging  
purposes as well as to attempt to terminate the thread which caused  
the illegal access, and has no functional impact.
java.lang.IllegalStateException
 at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1241)
 at org.apache.catalina.loader.WebappClassLoader.loadClass 
(WebappClassLoader.java:1201)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java: 
319)
 at com.mysql.jdbc.CommunicationsException.init 
(CommunicationsException.java:174)
 at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2710)
 at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2621)
 at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1338)
 at com.mysql.jdbc.Connection.realClose(Connection.java:4429)
 at com.mysql.jdbc.Connection.cleanup(Connection.java:1973)
 at com.mysql.jdbc.Connection.finalize(Connection.java:3114)
 at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
 at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
 at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
 at java.lang.ref.Finalizer$FinalizerThread.run 
(Finalizer.java:160)


-
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: if don't work?!?!?

2007-05-22 Thread Propes, Barry L
 if (Pippo.equals(Pluto)) maybe?

-Original Message-
From: Massimiliano PASQUALONI
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 9:40 AM
To: 'Tomcat Users List'
Subject: if don't work?!?!?


Hi guy!
 
Wat's happen??
 
If i read an checkrequest post

String Pippo = request.getParameter(abilitato);

out.print(Pippo);

return me= on

If I try to make a condition whit if:

 

   if (Pippo == on) {



}

these don't work
 
And is'nt the first time, 
 
if I try
 
Pippo =  request.getParameter(abilitato);
Pluto =  request.getParameter(abilitato);
 
the if (Pippo == Pluto )  don't work!
 
 
 
:-(
 
please, help me!

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: Finding isapi_redirector2.dll

2007-05-22 Thread Propes, Barry L
try this, Al.

I think it may have it.

http://www.reynir.net/tomcat/tomcat_IIS_service_jk2.html

-Original Message-
From: Al Sparks [mailto:[EMAIL PROTECTED]
Sent: Monday, May 21, 2007 5:25 PM
To: Tomcat Users List
Subject: Finding isapi_redirector2.dll


I'm new to Tomcat.

I successfully installed version 6.0 on a Windows 2000 server also
running IIS.

Now I'm trying to install the Jakarta redirector plugin.  Everything
I've read says that I'm supposed to download isapi_redirector2.dll, or
build it.  I've been trying to find a download, and can't really find
it.  I've been googling for jakarta-tomcat-connectors, I've been
googling for isapi_redirector2.dll.  Lots of hits, but no joy for an
actual download (beyond the first page, anyway).  What's really
strange is a site search of apache.org doesn't find me a download.

What am I missing?

Also, since this is my first install of the redirector, any gotchas
that veterans know of would be appreciated.

   === Al




-
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: JDBC

2007-05-22 Thread Propes, Barry L
Mohammed, for driver value, try the following:

 valueoracle.jdbc.OracleDriver/value

-Original Message-
From: Mohammed Zabin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 22, 2007 4:33 AM
To: Tomcat Users List
Subject: Re: JDBC


Thank you Foo for your patience with me,
I did imported all the needed classes, but i got the following exception:


*exception *

*org.apache.jasper.JasperException: An exception occurred processing
JSP page /jsp/testDBCP.jsp at line 7

4:   Context initContext = new InitialContext();
5:   Context envContext  = (Context)initContext.lookup(java:/comp/env);
6:   DataSource ds = (DataSource)envContext.lookup(jdbc/myoracledb);
7:   Connection conn = ds.getConnection();
8:
9:   out.println( The Connection Gotted Fine );
10: %


Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*

**

*root cause *

*javax.servlet.ServletException:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
org.apache.jsp.jsp.testDBCP_jsp._jspService(testDBCP_jsp.java:73)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*

**

*root cause*

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class '' for connect URL 'null'

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.jsp.testDBCP_jsp._jspService(testDBCP_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 *root cause*

java.lang.NullPointerException
sun.jdbc.odbc.JdbcOdbcDriver.getProtocol(JdbcOdbcDriver.java:507)
sun.jdbc.odbc.JdbcOdbcDriver.knownURL(JdbcOdbcDriver.java:476)
sun.jdbc.odbc.JdbcOdbcDriver.acceptsURL(JdbcOdbcDriver.java:307)
java.sql.DriverManager.getDriver(DriverManager.java:253)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:773)

org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.jsp.testDBCP_jsp._jspService(testDBCP_jsp.java:62)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)




On 5/22/07, Foo Shyn [EMAIL PROTECTED] wrote:

 The jsp doesn't import the class for Context and Initial Context. Put
 them in as how u inport the Datasource would do.

 HTH
 FooShyn

 Mohammed Zabin wrote:
  Thank you Foo,
  I but the following in the context.xml:
 
  *Resource name=Name
  auth=Container
  type=oracle.jdbc.pool.OracleDataSource
  factory=oracle.jdbc.pool.OracleDataSourceFactory
  user=hr
  password=hr
  driverClassName=oracle.jdbc.driver.OracleDriver
  url=jdbc:oracle:thin:@localhost:1521:orcldb
  maxActive=20 maxIdle=10 maxwait=-1/*
  **
  and I have this jsp code:
 
 
  *%@ page import=javax.sql.DataSource %*
 
  *%
   Context initContext = new InitialContext();
   Context envContext  = (Context)initContext.lookup(java:/comp/env);
   DataSource ds = (DataSource)envContext.lookup(jdbc/myoracledb);
   Connection conn = ds.getConnection();
 
   out.println( Got the connection );
  %*
 
  but, i got the following 

RE: Oracle 10g with Tomcat 6

2007-05-22 Thread Propes, Barry L
Mohammed,

Maybe on import try the following:

%@ page 
import=javax.naming.Context,javax.naming.InitialContext,javax.naming.NamingException,javax.sql.DataSource
 %

even though what you have should cover it, theoretically.

And regarding below, YES!!!

C:\tomcat\common\lib\ojdbc14_g.jar
-

Hi All
I want to conigure DBCP to connect to Oracle 10g on my localhost on Tomcat6.
I did the following error, I don't know how to solve it, is there is a
third-party jar file that must be added to classpath???


-
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: Oracle JDBC connection Tomcat 5.5

2007-05-21 Thread Propes, Barry L
well, I had to actually switch jars for my Oracle driver to work properly.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Zdenek
Vráblík
Sent: Wednesday, May 16, 2007 7:19 AM
To: Tomcat Users List
Subject: Re: Oracle JDBC connection Tomcat 5.5


Hi all thanks for help,

There is problem in admin web application id doesn't show oracle datasources.

I expected to see this datasource as other datasources in this admin
console (localhost:8080/admin). I tried to use that pool  and it works
...

The ojdbc14_g.jar is same as ojdbc14.jar but has debug informations inside.

Thanks a lot for help.

Regards,
Zdenek


On 5/15/07, Propes, Barry L [EMAIL PROTECTED] wrote:



 Hi Rashmi,

 thans for reply.

 I think that ojdbc14.jar is newer version of oracle drivers  and it
 works fine with standard datasource factory
 org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory and
 javax.sql.DataSource. It stops work when I use oracle datasource
 factory
  factory=oracle.jdbc.pool.OracleDataSourceFactory and datasource type
 type=oracle.jdbc.pool.OracleDataSource.
 Thanks.
 Zdenek


 Not sure about if it's the newer version, I think ojdbc14_g.jar is the newer 
 version, actually, which you need for connection pooling/JNDI.

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



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


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



RE: Tomcat-Question: Inefficient searching for jsp-files?

2007-05-21 Thread Propes, Barry L
your docBase shouldn't include the absolute path should it? Just the relative 
path?

Besides, that looks totally configured for running files on IIS' server, not 
(thru) Tomcat's servlet engine.

-Original Message-
From: Thomas Hoffmann (Speed4Trade)
[mailto:[EMAIL PROTECTED]
Sent: Monday, May 21, 2007 1:09 PM
To: 'Tomcat Users List'
Cc: [EMAIL PROTECTED]
Subject: AW: Tomcat-Question: Inefficient searching for jsp-files?


Hi,
my contect-configuratation looks like:
Context docBase=D:\inetpub\wwwroot\tyres4trade path= 
 privileged=true  workdir= reloadable=fals /

when i request e.g. test.jsp from browser my file-monitor show
the following harddisc-accesses:
d:\
d:\inetpub
d:\inetpub\wwwroot
d:\inetpub\wwwroot\tyres4trade
d:\inetpub\wwwroot\tyres4trade\test.jsp
d:\inetpub\wwwroot\tyres4trade\localhost\test.jsp (not found)
tomcat-root\tomcat 5.5\work\org\apache\jsp\test_jsp.class

i ask myself why does tomcat start to search from d:\ instead of docBase?


-Ursprüngliche Nachricht-
Von: Rashmi Rubdi [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 21. Mai 2007 19:56
An: Tomcat Users List
Betreff: Re: Tomcat-Question: Inefficient searching for jsp-files?


On 5/21/07, Thomas Hoffmann (Speed4Trade) [EMAIL PROTECTED] wrote:
 Hello,
 i am using Tomcat 5.5.23. When i request a simple jsp-file
 my file-monitor shows me, that tomcat is searching from root. This is 
 a problem for website with a lot of traffic. A screenshot is attached 
 to this mail.

All attachments are filtered out automatically.

Please post the URL of the screen shot and/or other relevant information such 
as log file contents etc.


 The Context-Entry looks like
 Context docBase=D:\inetpub\wwwroot\tyres4trade path= 
 privileged=true  workdir= reloadable=fals /

 Thanks for suggestions,
 Thomas

-Regards
Rashmi

-
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: I've been trying to unsubscribe from this list for years.

2007-05-18 Thread Propes, Barry L
it didn't work Either?

-Original Message-
From: Abdelmonaam Kallali [mailto:[EMAIL PROTECTED]
Sent: Friday, May 18, 2007 1:45 PM
To: 'Tomcat Users List'
Subject: RE: I've been trying to unsubscribe from this list for years.


It didn't work neither

Abdelmonaam KALLALI
Test Specialist
DragonWave Inc
411 Legget Dr
Phone :613-599 9991 ext 275
-Original Message-
From: tomcat [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 18, 2007 7:29 AM
To: Tomcat Users List
Subject: Re: I've been trying to unsubscribe from this list for years.

At 11:48 PM 5/17/2007, you wrote:

When you send an email to [EMAIL PROTECTED] add the word
Unsubscribe to the email's subject and body, that worked for me when I
was trying to switch my e-mails.

I think it sends you an additional e-mail to confirm unsubscription,
reply to that one as well.

Then you should receive a final email with something like good bye
in the subject.

-Rashmi

On 5/17/07, Keith Adams [EMAIL PROTECTED] wrote:
No matter how many times I send a blank email to: 
[EMAIL PROTECTED], like the one I sent at 11.19 
Eastern this morning, nothing happens. I use a rule to delete them 
permanently when I'm in Outlook, but when I use my company's web 
outlook, it can only move them to the deleted-items folder, which 
rapidly fills up, making it very hard for me to find things in 
there if I need to.

Please help. Thanks,

Keith

I had a broken mail account that was subscribed to this list and that 
I could not reply from.

I successfully unsubscribed yesterday by sending to:
[EMAIL PROTECTED]

I replied from a different account and it worked!

Cheers! 


-
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: Exception processing Global JNDI Resources - on FC6Tomcat5.5.17

2007-05-11 Thread Propes, Barry L
looks like the proper driver might not be included in the jar file being 
referenced...or perhaps it needs a different jar file for that DBCP reference.

-Original Message-
From: Tim Alberts [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 10, 2007 6:23 PM
To: users@tomcat.apache.org; For users of Fedora;
[EMAIL PROTECTED]
Subject: Exception processing Global JNDI Resources - on
FC6Tomcat5.5.17


I'm running FC6 with Tomcat 5.5.17 (standard rpm packages from the FC6 
distribution).

The main problem I'm having is getting my database connection pool 
setup.I'm getting a severe error that seems to be the source, but not 
sure what the easy fix is.  Obviously the

java.lang.ClassNotFoundException: 
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory

means Tomcat can't find a class it needs, but as I'm running all rpms 
from FC6 I assumed everything would be 'plug and play'.  Does anyone 
have some suggestions for fixing this quick?

Thank you in advance.



Below is the server.xml...

?xml version=1.0 encoding=UTF-8?
Server
  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/MSIWebDB
  type=javax.sql.DataSource
  maxWait=5000
  password=boo
  url=jdbc:mysql://msisql.inside.msi:3306/msi_intranet
  maxActive=4
  driverClassName=com.mysql.jdbc.Driver
  username=msi_intranet
  maxIdle=2/
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=8080
redirectPort=8443
maxSpareThreads=75
maxThreads=150
connectionTimeout=2
minSpareThreads=25
/Connector
Connector
port=8009
redirectPort=8443
protocol=AJP/1.3
/Connector
Engine
defaultHost=localhost
name=Catalina
  Realm className=org.apache.catalina.realm.UserDatabaseRealm/
  Host
  appBase=webapps
  name=localhost
  /Host
/Engine
  /Service
/Server





Below are the server logs from startup...

10-May-07 4:06:51 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/usr/lib/gcj-4.1.1
10-May-07 4:06:51 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
10-May-07 4:06:51 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 837 ms
10-May-07 4:06:51 PM org.apache.catalina.core.NamingContextListener addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could not 
create resource factory instance
10-May-07 4:06:51 PM 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: Could not create resource factory instance
   at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(naming-factory-5.5.17.jar.so)
   at javax.naming.spi.NamingManager.getObjectInstance(libgcj.so.7rh)
   at org.apache.naming.NamingContext.lookup(naming-factory-5.5.17.jar.so)
   at org.apache.naming.NamingContext.lookup(naming-factory-5.5.17.jar.so)
   at 
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(naming-resources-5.5.17.jar.so)
   at 
org.apache.naming.NamingContextBindingsEnumeration.next(naming-resources-5.5.17.jar.so)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.core.StandardServer.start(catalina-5.5.17.jar.so7ygbw0.so)
   at 
org.apache.catalina.startup.Catalina.start(catalina-5.5.17.jar.so7ygbw0.so)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
   at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Caused by: java.lang.ClassNotFoundException: 

strange session behavior!

2007-05-11 Thread Propes, Barry L
Ok,
 
I've had an app running in place just fine for several months now.
 
All of a sudden, I've got some weird happenings.
 
I'll preface my problem by saying that I had added an extra security constraint 
to the file. If I need to show that code for assistance, I'll pass it along 
later.
 
But long story short, most people's userIDs are working fine, as associated 
with their roles and email addresses (a column I added).
 
I'm using this code for part of my app:
 
String juser = request.getRemoteUser();
request.getSession().setAttribute(juser,juser);
String jusertwo = (String) request.getSession().getAttribute(juser);
out.println(Juserval is: +juser);
out.println(Jusertwo is: +jusertwo);
 
When I look at the screen (browser console), for most users I've tested, I see 
it set just fine.
 
For one particular user, it is breaking and looking like this:

Juserval is: TG39054 Jusert
It's odd, because it's breaking for this one user, EVEN though I've changed 
both their email address and USERid.
 
I have no idea what could be causing this. I did add one user with a totally 
different role than that of what had been included before, and the other 
person's ID with the new role did appear directly before this person with the 
problem. Could a hashmap in another app affect this? I wouldn't think it would 
directly. Especially if I've changed the person's userID and email address.
It is so strange.
 
FWIW, I am using TC 4.1.31.
 
Let me know if any other XML attributes or other code is needed.
 
Thanks!
 
Barry
 
 


RE: strange session behavior!

2007-05-11 Thread Propes, Barry L
extra sidenote to this that is odd.

This user can access OTHER requests and pages protected by the constraint, just 
not this particular one!! 

What would give there?

-Original Message-
From: Propes, Barry L [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 1:28 PM
To: Tomcat Users List
Subject: strange session behavior!


Ok,
 
I've had an app running in place just fine for several months now.
 
All of a sudden, I've got some weird happenings.
 
I'll preface my problem by saying that I had added an extra security constraint 
to the file. If I need to show that code for assistance, I'll pass it along 
later.
 
But long story short, most people's userIDs are working fine, as associated 
with their roles and email addresses (a column I added).
 
I'm using this code for part of my app:
 
String juser = request.getRemoteUser();
request.getSession().setAttribute(juser,juser);
String jusertwo = (String) request.getSession().getAttribute(juser);
out.println(Juserval is: +juser);
out.println(Jusertwo is: +jusertwo);
 
When I look at the screen (browser console), for most users I've tested, I see 
it set just fine.
 
For one particular user, it is breaking and looking like this:

Juserval is: TG39054 Jusert
It's odd, because it's breaking for this one user, EVEN though I've changed 
both their email address and USERid.
 
I have no idea what could be causing this. I did add one user with a totally 
different role than that of what had been included before, and the other 
person's ID with the new role did appear directly before this person with the 
problem. Could a hashmap in another app affect this? I wouldn't think it would 
directly. Especially if I've changed the person's userID and email address.
It is so strange.
 
FWIW, I am using TC 4.1.31.
 
Let me know if any other XML attributes or other code is needed.
 
Thanks!
 
Barry
 
 

-
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 session behavior!

2007-05-11 Thread Propes, Barry L
never mindfigured it out! I was blind where one value was not in the DB 
that I thought was there..basically that's the upshot and cause for the 
exhausted result set problem.

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Friday, May 11, 2007 1:47 PM
To: Tomcat Users List
Subject: Re: strange session behavior!



Hi Barry I think you session may not have been created...
See my MOD below

- Original Message - 
From: Propes, Barry L  [EMAIL PROTECTED]

I'm using this code for part of my app:

String juser = request.getRemoteUser();

request.getSession(true).setAttribute(juser,juser); // make sure the 
session is created
//request.getSession().setAttribute(juser,juser);

String jusertwo = (String) request.getSession().getAttribute(juser);
out.println(Juserval is: +juser);
out.println(Jusertwo is: +jusertwo);

When I look at the screen (browser console), for most users I've tested, I 
see it set just fine.

For one particular user, it is breaking and looking like this:

Juserval is: TG39054 Jusert
It's odd, because it's breaking for this one user, EVEN though I've changed 
both their email address and USERid.

I have no idea what could be causing this. I did add one user with a totally 
different role than that of what had been included before, and the other 
person's ID with the new role did appear directly before this person with 
the problem. Could a hashmap in another app affect this? I wouldn't think it 
would directly. Especially if I've changed the person's userID and email 
address.
It is so strange.

FWIW, I am using TC 4.1.31.

Let me know if any other XML attributes or other code is needed.

Thanks!

Barry




-
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 stopped logging

2007-05-09 Thread Propes, Barry L
Hello,
 
I have a strange situation.
 
Tomcat has stopped logging today on my prod. server. Not sure why. All of the 
app seems to be working just fine, but the key log file stopped generating new 
info.
 
I have a scheduled task stop and restart Tomcat every morning around 6am, so as 
to dump bad threads if there are any.
 
Usually it resumes just fine.
 
Any idea as to why this would occur?
 
Thanks!
 


RE: How to configure Tomcat response timeout?

2007-05-09 Thread Propes, Barry L
I belive you can do it in a connection pool setting.

-Original Message-
From: Ignacio Iborra [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 09, 2007 7:57 AM
To: users@tomcat.apache.org
Subject: How to configure Tomcat response timeout?


Hi!

We are trying to call a JSP file that inserts a lot of records into a
database, but Tomcat stops the process before it is finished. Anyone knows
if there is any configuration tag anywhere to set this timeout?

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]


-
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: request.getParameter is returning the wrong value

2007-05-08 Thread Propes, Barry L
I've never seen that either and I use the same environment you do.
Seems as if users' sessions are somehow crossing/getting overlapped, but not 
sure how.

Are you using some lookup for an id? Like SSO or something?

-Original Message-
From: Richard Sayre [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 8:33 AM
To: users@tomcat.apache.org
Subject: request.getParameter is returning the wrong value


 My web application generates a list of links for a user to click on.

The URL looks like this:  showCa.jsp?id=2345

The showCa.jsp page uses the id to populate a form on the page.

The problem I am have is when a user clicks the link showCa.jsp?id=2345

The request.getParameter(id) is returning the wrong id!

I have never seen behavior like this before. This page has been
working in production for a long time. I reproduced the error, and it
only seems to be happening when there are multiple users logged in.
The wrong id that appears belongs to another user. On the showCa.jsp
page I printed out the query string and the value of id and got this:

queryString : ?id=2345
id : 2226



Has anyone seen anything like this before? I have been coding JSP for
3 years now and I have never seen behavior like this. This is
occurring on Tomcat 4.1/ JDK 1.4

I greatly appreciate any suggestions that you may have.

Thank you

-
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: JDBCRealm

2007-05-04 Thread Propes, Barry L
maybe I'm on such an old version, but I can't pass parameters thru my conn 
string like you have here.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 03, 2007 7:03 PM
To: Tomcat Users List
Subject: Re: JDBCRealm


Murtuza

here is server.xml example from Tomcat 5.5 docs where test is name of db 
user=testr and password=testr

Realm className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=org.gjt.mm.mysql.Driver
   connectionURL=jdbc:mysql://localhost/test?user=testramp;password=testr
   userTable=logins userNameCol=loginName userCredCol=password
   userRoleTable=new_user_roles roleNameCol=role_name/

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: Murtuza [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, May 03, 2007 6:37 PM
Subject: Re: JDBCRealm



 below is my context.xml file. I can connect to the mysql database from a 
 java
 class with the same username/pass.

 ?xml version=1.0 encoding=UTF-8?
 Context path=/security
 docBase=security
 debug=99
  Realm className=org.apache.catalina.realm.JDBCRealm
  digest=MD5
 connectionName=testr
 connectionPassword=testr
 connectionURL=jdbc:mysql://localhost:3306/test
 debug=99
 driverName=com.mysql.jdbc.Driver
 roleNameCol=role_name
 userCredCol=password
 userNameCol=loginName
 userRoleTable=new_user_roles
 userTable=logins
  /
 /Context



 Martin Gainty wrote:

 Have you verified the mysql listener is listening?
 Have you verified the JDBCRealm is configured using the parameters which
 will allow you to connect?
 If you are able to confirm both please post your JDBCRealm parameters 
 here

 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: Murtuza [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Thursday, May 03, 2007 5:22 PM
 Subject: JDBCRealm



 -I am using mysql as database..
 -I have mysql-connector-java-5.0.5 jdbc driver in my tomcat/lib 
 directory
 -I am using JDBCRealm for authentication
 -On my windows machine it works fine
 -when I deployed it on linux box it does't work
 -I get the foloowing error message from my localhost log file

 any idea


 May 3, 2007 4:52:38 PM org.apache.catalina.realm.JDBCRealm start
 SEVERE: Exception opening database connection
 java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:691)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:769)
at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
at
 org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
 org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at
 org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at
 org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at
 org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at
 org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
 org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
 

RE: Log files always locked

2007-05-02 Thread Propes, Barry L
I always drag and drop them from their given directory (in my case it's a 
shared directory, then the logs are in a subdir) to my desktop and read them 
that way, as to not interfere with perpetual logging to the file.

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 1:34 PM
To: Tomcat Users List
Subject: Log files always locked


Just something that bugs me.
On windows if you try open a tomcat log file... which are typically associated 
with something like notepad, you get In Use By Another Program.
Why does Tomcat lock the file handle indefinitely?
It maybe good programming practice but windows utilities generally dont give 
one the option of will open as read only... its always a mission just to read 
a log file.

-
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: Log files always locked

2007-05-02 Thread Propes, Barry L
I actually didn't get a notification saying it was locked, but assumed it 
wouldn't write to the log while I had it open.

Copying it takes a second for me, but I can see where that conflict should 
theoretically occur.

However, I've not held the file open, and then been prompted to save, reload or 
other.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 3:55 PM
To: Tomcat Users List
Subject: RE: Log files always locked


 From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
 Subject: Re: Log files always locked
 
 but if you look at Propes, Barry L  post... thats exactly wot 
 I had to do ie copy all the files... and then open them...

That doesn't really make sense: if they were hard locked, how were you
able to copy them?  The lock should have prevented the copy as well.

 - 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: Log files always locked

2007-05-02 Thread Propes, Barry L
I've not tried to attempt to open it in Textpad with a current date log.

If I'm trying to troubleshoot some problems, I just drag it from my shared 
dir's subdirectory to either my desktop (usually) or another location and then 
open it in notepad.

I'm not using any other logging mechanism like log4j, if that matters, which I 
doubt it does.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Log files always locked


 From: Johnny Kewl [mailto:[EMAIL PROTECTED] 
 Subject: Re: Log files always locked
 
 I think its just because a copy on a drag and drop is opening 
 the file as read only...
 Thing is utilities like notepad and wordpad will try open rw.

Makes sense.  What about a real editor like ConTEXT or jEdit (or myriad
others)?

 - 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: Log files always locked

2007-05-02 Thread Propes, Barry L
I've not ever gotten a file is copy-protected or disk-protected message, like 
MS is prone to do with files.

However, I'm not sure about Textpad exclusively opening up a read only copy of 
those things.

When I've got a servlet open in Textpad, and let's I say I opened it in Eclipse 
for some reason to view a little more of it closely and made a change.

Textpad would then alert me with a prompt that the file had been changed.

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 4:02 PM
To: Tomcat Users List
Subject: Re: Log files always locked



I think its just because a copy on a drag and drop is opening the file as 
read only...
Thing is utilities like notepad and wordpad will try open rw.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, May 02, 2007 10:54 PM
Subject: RE: Log files always locked


 From: Johnny Kewl [mailto:[EMAIL PROTECTED]
 Subject: Re: Log files always locked

 but if you look at Propes, Barry L  post... thats exactly wot
 I had to do ie copy all the files... and then open them...

That doesn't really make sense: if they were hard locked, how were you
able to copy them?  The lock should have prevented the copy as well.



-
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: Log files always locked

2007-05-02 Thread Propes, Barry L
oh yeah, I use Textpad a great deal, I just usually don't open the logs in it 
-- I just double click and open them in their native app (notepad.).

-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 4:26 PM
To: Tomcat Users List
Subject: Re: Log files always locked


Yes... but I dont think we should ever have to do that...
Textpad works BTW... will save u you some hassle...
But thanks... nice to know other guys are also seeing it.

- Original Message - 
From: Propes, Barry L  [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, May 02, 2007 11:13 PM
Subject: RE: Log files always locked


I've not tried to attempt to open it in Textpad with a current date log.

If I'm trying to troubleshoot some problems, I just drag it from my shared 
dir's subdirectory to either my desktop (usually) or another location and 
then open it in notepad.

I'm not using any other logging mechanism like log4j, if that matters, which 
I doubt it does.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 02, 2007 4:06 PM
To: Tomcat Users List
Subject: RE: Log files always locked


 From: Johnny Kewl [mailto:[EMAIL PROTECTED]
 Subject: Re: Log files always locked

 I think its just because a copy on a drag and drop is opening
 the file as read only...
 Thing is utilities like notepad and wordpad will try open rw.

Makes sense.  What about a real editor like ConTEXT or jEdit (or myriad
others)?

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



-
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: problem switching to port 80

2007-04-25 Thread Propes, Barry L
likely IIS by default! The WWW publishing service.

-Original Message-
From: John Pedersen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 9:55 AM
To: users@tomcat.apache.org
Subject: problem switching to port 80


Hi,

I have an app running fine on port 8080, but nothing works when I
switch to port 80 -

in server.xml, changing:

Connector port=8080 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 /

to

Connector port=80 protocol=HTTP/1.1
   maxThreads=150 connectionTimeout=2
   redirectPort=8443 /

I get this error message:

SEVERE: Error starting endpoint
java.lang.Exception: Socket bind failed: [730048] Only one usage of
each socket address (protocol/network address/port)  is normally
permitted.
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:608)
at org.apache.tomcat.util.net.AprEndpoint.start(AprEndpoint.java:712)
at 
org.apache.coyote.http11.Http11AprProtocol.start(Http11AprProtocol.java:149)
at org.apache.catalina.connector.Connector.start(Connector.java:1132)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:457)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): Catalina;  Protocol handler
start failed: java.lang.Exception: Socket bind failed: [730048] Only
one usage of each socket address (protocol/network address/port)  is
normally permitted.
at org.apache.catalina.connector.Connector.start(Connector.java:1139)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:457)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
25-Apr-2007 15:50:33 org.apache.catalina.startup.Catalina start

I guess there must be something else using port 80? but I can't see it
( tried netstat).

I am running W2000, tomcat 6.

Maybe it is my wireless setup ( BT voyager 2100 ) - I have been
playing with settings, but am getting nowhere.

Any suggestions?

Thanks,

John

-
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: Application startup error - TOMCAT 5.0.28 / 1.5

2007-04-25 Thread Propes, Barry L
almost sounds like you have to use the equivalent for a  like a lquo; or 
some similar type marking in the proper xml file.
Might look into it, even though nothing changed as you said.


-Original Message-
From: Dwight Farris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 25, 2007 10:11 AM
To: 'Tomcat Users List'
Subject: Application startup error - TOMCAT 5.0.28 / 1.5


Hello All,
One of my webApps is throwing the following exception;

java.lang.ClassFormatError: 
Illegal UTF8 string in constant pool in class file
org/hibernate/hql/ast/ErrorCounter

I have checked the UTF8 strings; nothing has changed and the app has been
running without issue.

Any ideas are greatly appreciated

Dwight 


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



anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-24 Thread Propes, Barry L
Any version? 4x. 5x?
 
I'm actually in the 4.1.3. series, but was wondering which class files I'd need 
to revise and customize.
 
I assume most if not all are in the /catalina/src/share/org/apache/catalina/ 
repository, and figured something like Authenticator.java or Session.java might 
need a method added to it, but wasn't sure what else would need to be done.
 
In other words, whereas in its initial state the security constraint will 
repeatedly forward/redirect to the Login error page set, I'd like to be able to 
create a customized method to send to another (secondary) error page, telling 
the user they've been locked out after 6 consecutive, unsuccessful attempts. 
 
Is this at all possible to do in 4.1 or any other version?
 
Any feedback is welcomed.
 
Thanks!
 
Barry


RE: anyone ever altered the Tomcat API to create a Login Attempt limit in the security constraint?

2007-04-24 Thread Propes, Barry L
I'd be glad to write it inside my own, but I figured using the security 
constraint, you were bound to their classes.



-Original Message-
From: Johnny Kewl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 24, 2007 12:45 PM
To: Tomcat Users List
Subject: Re: anyone ever altered the Tomcat API to create a Login
Attempt limit in the security constraint?



I think you would be better off writing a little authentication code inside 
your servlets...
However if you want to modify tomcat, you'll find that stuff in

package org.apache.catalina.authenticator;
public class BasicAuthenticator

all I wanted to to say is that some browsers like IE do their own thing.
Like for example... send this standard challenge to IE repeatedly

response.setStatus(response.SC_UNAUTHORIZED); // I.e., 
401
response.setHeader(WWW-Authenticate, BASIC 
realm=\User Check\);

and you'll see after a few tries it gives up anyway ;)
not much a Tomcat can do to change that




- Original Message - 
From: Propes, Barry L  [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 24, 2007 7:11 PM
Subject: anyone ever altered the Tomcat API to create a Login Attempt limit 
in the security constraint?


Any version? 4x. 5x?

I'm actually in the 4.1.3. series, but was wondering which class files I'd 
need to revise and customize.

I assume most if not all are in the /catalina/src/share/org/apache/catalina/ 
repository, and figured something like Authenticator.java or Session.java 
might need a method added to it, but wasn't sure what else would need to be 
done.

In other words, whereas in its initial state the security constraint will 
repeatedly forward/redirect to the Login error page set, I'd like to be able 
to create a customized method to send to another (secondary) error page, 
telling the user they've been locked out after 6 consecutive, unsuccessful 
attempts.

Is this at all possible to do in 4.1 or any other version?

Any feedback is welcomed.

Thanks!

Barry


-
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 Connection Pooling problem

2007-04-20 Thread Propes, Barry L
that last block of code looks correct.

I could send you my xml file config offline, FWIW, but just be warned I am 
using 4.1.31.

-Original Message-
From: dimos [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 4:45 AM
To: users@tomcat.apache.org
Subject: Tomcat 5.5 Connection Pooling problem


Hi,
I am trying to setup JDBC connection pooling in Tomcat
5.5 using DB2 database and IBM RAD 7.0 IDE. Although
The setup described in JNDI Resources
HOW-TO(http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html)
for creating JDBC Datasources did work, I would like
to work with real connection pooling, which means not
declaring datasources into the /META-INF/context.xml
file of each web app but having them as

GlobalNamingResources

into /conf/server.xml and accessing them through

ResourceLink

references from /conf/context.xml (or
/conf/catalina/localhost/ROOT.xml). However I am stuck
with Exception

javax.naming.NameNotFoundException: Name jdbc is not
bound in this Context

. Even if I add an:

resource-env-ref
description
/description

resource-env-ref-namejdbc/DB2T/resource-env-ref-name

resource-env-ref-typejavax.sql.DataSource/resource-env-ref-type
/resource-env-ref

record in my /WEB-INF/web.xml I get a

javax.naming.NamingException: Cannot create resource
instance

Exception.

Does anyone have an idea how to resolve this?
Here are my configurations:

-/conf/server.xml---

Server port=8005 shutdown=SHUTDOWN
 
  !-- Global JNDI resources --
  GlobalNamingResources
 
   Resource name=jdbc/DB2T auth=Container
   type=javax.sql.DataSource removeAbandoned=true
 
factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
   removeAbandonedTimeout=30 maxActive=100
   maxIdle=30 maxWait=1 username=id
   password=pass
   driverClassName=com.ibm.db2.jcc.DB2Driver
   url=jdbc:db2://ip-addrr:port/dbname/
  /GlobalNamingResources



--/conf/context.xml--

!-- The contents of this file will be loaded for each
web application --
Context
 
!-- Default set of monitored resources --
WatchedResourceWEB-INF/web.xml/WatchedResource
   
WatchedResourceMETA-INF/context.xml/WatchedResource
   
ResourceLink name=jdbc/DB2T global=jdbc/DB2T 
type=javax.sql.DataSource/
/Context



I also try to get the resource with java code like
this:

DataSource ds;
InitialContext DSCtx = new InitialContext();
ds = (DataSource)
DSCtx.lookup(java:/comp/env/jdbc/DB2T); 



PS: When I start the tomcat and hit
http://localhost:8080 I can't get the default page
although every web app I run loads without problems.
Do you think this has a relation with the above problem?

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

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


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



RE: Administration Tomcat

2007-04-20 Thread Propes, Barry L
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]



RE: Réf. : RE: Administration Tomcat

2007-04-20 Thread Propes, Barry L
ok, thanks.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 20, 2007 11:19 AM
To: Tomcat Users List
Subject: Réf. : RE: Administration Tomcat



Hello Barry,


i did just the way David said to me and it's OK ; the user and password I
gave were: admin , admin. It's the default values.


Bye






  
  Propes, Barry L 
  
  [EMAIL PROTECTED] Pour :   Tomcat Users List 
users@tomcat.apache.org  
  igroup.com cc :  
  
  Objet :  RE: Administration 
Tomcat  
  20/04/2007 18:16  
  
  Veuillez répondre à   
  
  Tomcat Users List   
  

  

  



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]


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



JSP not recompiling properly

2007-04-19 Thread Propes, Barry L
Hi,
 
I've noticed  that one of my JSPs seems to not be changing properly.
 
I deleted the java and class files created in the work subdirectory where it's 
created upon being called. But it still calls the same data, and new string 
variables I've added and other parameters don't show.
 
I had stopped and restarted Tomcat...any idea why this is occurring?
 
I don't think I'm out of any kind of memory. Shouldn't be!
 
Any feedback is welcomed.
 
Thanks!


RE: JSP not recompiling properly

2007-04-19 Thread Propes, Barry L
ok, very very odd.

Java and Tomcat were doing their part, but for some reason, even though my JSP 
seemed to be saved on the surface, it wasn't getting updated accordingly 
through the OS or other system parts!

Was still showing a last modified date of 3/16 even though I'd done substantial 
changes to it this morning in my IDE, DreamWeaver.

Flaky, but it's never happened before so disregard this!



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Thursday, April 19, 2007 10:33 AM
To: Tomcat Users List
Subject: JSP not recompiling properly


Hi,
 
I've noticed  that one of my JSPs seems to not be changing properly.
 
I deleted the java and class files created in the work subdirectory where it's 
created upon being called. But it still calls the same data, and new string 
variables I've added and other parameters don't show.
 
I had stopped and restarted Tomcat...any idea why this is occurring?
 
I don't think I'm out of any kind of memory. Shouldn't be!
 
Any feedback is welcomed.
 
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: 404 and originally requested URL

2007-04-18 Thread Propes, Barry L
did you check your logs? Did they tell you anything?

-Original Message-
From: Guilhem SEMPERE [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 10:00 AM
To: users@tomcat.apache.org
Subject: 404 and originally requested URL


Hi

I am using Tomcat 5.5, having set it up so that any 404 error redirects 
to a 404.jsp I have written for custom handling.

Now I need access to the originally requested URL (the one which 
couldn't be found).  I couldn't find a way to do this.  All info I can 
get is that the requested URL is now 404.jsp, which I am not interested in.

Any help much appreciated.  Thanks in advance,

Guilhem


-
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: Connectivity issues

2007-04-16 Thread Propes, Barry L
that looks more like a connection with the Coyote connection handler.

-Original Message-
From: Leon van der Merwe [mailto:[EMAIL PROTECTED]
Sent: Monday, April 16, 2007 4:45 AM
To: users@tomcat.apache.org
Subject: Connectivity issues


Hi All,
 
What can the following exception mean?
Apr 16, 2007 10:59:51 AM
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
processConnection

INFO: IOException reading request, ignored

When the users try to login it just kinda hangs...

Can this have something to do with the database connection pool?

thanks

Leon van der Merwe

FinSource

FinSource (Pty) Ltd
22 Leeuwen Street, Cape Town, 8001
PO Box 3149, Cape Town, 8000

Tel:  +27 (0)21 480 8600
Direct Line:  +27 (0)21 480 8710
Fax:  +27 (0)21 480 8700
[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
www.finsourcegroup.com http://www.finsourcegroup.com/  

A Maitland group company

BVI   Cape Town   Dublin   Durban   Geneva  Isle of Man   Johannesburg
London   Luxembourg   Monaco   Paris 


**
This e-mail is confidential and may also be privileged.  If you are not
the intended recipient, please delete from your system and notify the
sender now; you may not use, disclose, distribute or copy it.  Anyone
who communicates with us by e-mail is taken to accept the risks in so
doing.  E-mails are subject to data corruption, delay, interception and
unauthorised amendment.  Nothing in the message is capable of or
intended to create any legally binding obligation and it is not intended
to provide legal advice.

**

 

 

 

#
This e-mail message has been scanned for Viruses and Content and cleared 
by FinSource Infrastructure Services' MailMarshal
#

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



logon page -- amending session attempts

2007-04-12 Thread Propes, Barry L
Hi,
 
I'm using TC 4.1.31.
 
My question is, would it be relatively easy to implement a login attempt method 
to the existing classes that use the login.html page?
 
I'd like to make it forward to another page after 6 consecutive unsuccessful 
logon attempts. 
 
I'm not sure which class file I'd need to edit and recompile to do that, or 
there's more than one I'd need to touch or which.
 
Any feedback on this would be helpful and appreciated.
 
Thanks!
 
 


RE: multipartrequest - content type header is null

2007-04-10 Thread Propes, Barry L
did you set your form for MIME/multipart?

-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 1:58 AM
To: users@tomcat.apache.org
Subject: multipartrequest - content type header is null 


I get this exception suddenly on tomcat and as well as in websphere.
Is there any specific reason for this?


org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException:
the request doesn't contain a multipart/form-data or multipart/mixed stream,
content type header is null



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



ClientAbort error

2007-04-10 Thread Propes, Barry L
anybody know what this error would mean?
 
I'm using TC 4.1.3 by the way.

2007-04-10 16:09:19 StandardWrapperValve[default]: Servlet.service() for 
servlet default threw exception
ClientAbortException:  java.net.SocketException: Software caused connection 
abort: socket write error
 
I noticed this on my logs a few times and hadn't really seen it before. Didn't 
know why it was occurring.
 
Thanks!
 
 


RE: java.net.BindException: Address already in use: JVM_Bind:8090

2007-04-05 Thread Propes, Barry L
are you running another JVM simultaneously?

-Original Message-
From: mallika guliani [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 05, 2007 11:18 AM
To: tomcat-user@jakarta.apache.org
Subject: java.net.BindException: Address already in use: JVM_Bind:8090


I configured Tomcat/5.0.28 in MyEclipse 5.1 but unable to run the server to 
test some examples. I changed default 8080 port in server.xml, which was also 
giving same error. 
  These are the lines that I changed:
   
  Server port=8015 shutdown=SHUTDOWN debug=0
  Connector port=8090   maxThreads=150 ...
   
  But it keeps giving the same error:
   
  org.apache.coyote.http11.Http11Protocol init
  SEVERE: Error initializing endpoint
  java.net.BindException: Address already in use: JVM_Bind:8090
   
  SEVERE: Error starting endpoint
  java.net.BindException: Address already in use: JVM_Bind:8090
   
  StandardServer.await: create[8015]: java.net.BindException: Address already 
in use: JVM_Bind
   
  All the forums say change port in Server.xml which hasn't resolved the 
problem.
   
  Please advice.
   
  Thank You.

 
-
Need Mail bonding?
Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.

-
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: Can't view examples

2007-03-27 Thread Propes, Barry L [GCG-NAOT]
were those commented out in the web.xml or server.xml file?

-Original Message-
From: Joe Green [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 8:53 PM
To: users@tomcat.apache.org
Subject: Can't view examples


Hi, 

I installed Apache Tomcat/6.0.10 on Win
XP Pro.  Tomcat Web Application Manager
shows status is OK. But when I click on Servlets and JSP Examples link on 
http://127.0.0.1:8080/, I get a 404 error.  I also get 404 errors
when I click on links /examples/, /host-manager and /manager. 

I do something wrong? I didn't get any error during installation. I was 
assuming that
Apache/Tomcat comes with sample examples. Can some
one give me some idea as what is going on? I am new to JSP and Apache/Tomcat.
 
Thanks

joe 







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


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



RE: Apache and Tomcat bridging - Servlet enabled?

2007-03-27 Thread Propes, Barry L [GCG-NAOT]
sounds like you may have declared the servlet name, but not the servlet mapping?

I've accidentally left that out before on my web.xml file.


-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 9:28 PM
To: Tomcat Users List
Subject: Apache and Tomcat bridging - Servlet enabled?


Hi,

This question suddenly struck me when i'm trying to solve my server problem. 
Here goes:

Server settings: Apache 2 as front, Tomcat 4.1 as back, J2SDK 1.4.2
Let say that i'd configure that Apache so that whenever a request for 
www.abc.com will be redirected to the Tomcat's A context which contain a 
servlet TestServlet. The web.xml is there.

When i access the www.abc.com/TestServlet , the Apache throws me a 404 error 
(not Tomcat), which means that the Apache failed to redirect the request to A 
folder. But when i configure my servlet path as /TestServlet.jsp, and i use the 
path www.abc.com/TestServlet.jsp (not a jsp page!) to access the servlet, i 
manage to do so. 

Is this some settings problem on Apache? or my Tomcat problem?

Thanx.
Regards,
FooShyn

-
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: connection pool

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
exactly.

-Original Message-
From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 9:05 AM
To: Tomcat Users List
Subject: RE: connection pool


| From: Gioia, Michael [mailto:[EMAIL PROTECTED]
| Sent: Thursday, 22 March, 2007 08:36
| 
| Barry, how did you have a service stop and start on it's own, with out
| rebooting the machine?

You can probably use the NET START/STOP service-name commands in a script,
and then run that script as a scheduled job (or task in Windows parlance).
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.


-
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: connection pool

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
but it sounds like it works fine all week, and then when he comes in Monday, it 
has stopped. He has to restart Tomcat to reconnect.

Theoretically, shouldn't he run out of connections midweek or sooner if that's 
the case?



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 12:24 PM
To: Tomcat Users List
Subject: Re: connection pool



I dont use Tomcats built in db pooling, use a different one, but I think the 
problem is not that it drops the connection, because any pool should simply 
reallocate a new one when needed.
I have a feeling you are exhausting all the available connections, and the 
pool cant give you a new one.
Are you releasing the connections after each request???
 If not you will quickly run out of dB connections..



- Original Message - 
From: Gioia, Michael [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, March 22, 2007 4:01 PM
Subject: connection pool


Hi, I'm still having a problem with tomcat with keeping up the
connection to the database thru the connection pool.



Almost every weekend the database gets bumped and the java app that were
running needs to have tomcat restarted to reconnect to the database thru
the connection pool.  When we come in on Monday tomcat and the database
are up and running, but the app will not connect to the database.



I tried to use a batch file and have it run in scheduler to stop and
start the tomcat service, but it doesn't seem to work it the machine is
logged out.



Is there a way to reestablish the connection so our users don't have to
wait until we come in on Monday to restart tomcat?





MG









-
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: requiring multiple roles for access

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
oh, ok. I'd say your solution's pretty plausible.

I've just now had to retool my users table a bit adding a timestamp for auth 
purposes, too.

I've just got the one extra table that allows people to be in multiple 
categories, yet confined to the one role in the users_role table.



-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 2:39 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Barry,

This is a good implementation, and yes, it does make sense. I did go with a
different implementation, though, essentially I created a new table that
stores the users previous roles  and timestamp them when the user is
disabled. When they are re-enabled, I just put the role data back into the
roles table so there's no change in their previous access. This way, the JSP
developers don't have to think about it, it just happens in the background.
It's probably not the best implementation, but it'll do ;-).

By the way, I've given up on the role combo login, I was just hoping when I
wrote that one.

Thanks,
Ryan


On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] wrote:

 Hey Ryan,

 I didn't end up catching it, only because the people getting the email
 that would log in to the voting section, it doesn't come into play for
 them.

 In other words, if they get the email, they're already in the DB as a user
 and have the necessary role.


 If I was going to catch it, I'd need to catch it in this JSP, the way I
 wrote it. The architecture I used on this one file was not ideal, as I have
 three select query statements residing within it.

 What I could stand to do, and would do, is catch it in the JSP, but
 probably by the declared string variable I have, called jrole.

 jrole in this case is the one of admin, service, legal, risk, etc.

 So if they're not one of four roles, I need to throw in a catch block for
 the SQL Exception there, otherwise I'd get an exhausted results set error,
 or invalid cursor state, if it can't find the matching role.

 Does this make sense? Or help you any? Sorry if it wasn't of more help.

 Let me know. And let me know moreso the way your site/app is structured;
 for example, who needs to go to a protected area, what roles, etc.

 I don't think you can make it have a dual/double login layer. Wouldn't
 make too much sense anyway as they'd have to use the same combo and that
 would defeat the session purpose anyway.

 -Original Message-
 From: Ryan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 22, 2007 9:35 AM
 To: Tomcat Users List
 Subject: Re: requiring multiple roles for access


 Barry,

 Regarding your method below, do you catch this method in JSP or somewhere
 else?

 Thanks,
 Ryan


 On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
 wrote:
 
  I don't know about disabling users, as I haven't tried something like
  that, and there may be ways of tiering the access in regards to roles,
 which
  I technically haven't tried either.
 
  But what I have is a group of people who absolutely have to access one
  portion, and then some admins who have to access another. But for
 reasons
  you can probably imagine, I certainly don't want it wide open to anyone
 with
  an account. So I've got it gated as such in this manner.
  Does this make sense? Another thing I did was run separate select
 queries
  from the users and approvers table, one I created and linked together
 by a
  unique ID. If someone contained one role, they could access this
 section. If
  not, in another case, an exception is thrown, which I didn't catch
 properly
  right away, but it doesn't let that user into the section.
 
  Let me know if you need more insight into it.
 
  Good luck with it Ryan!
 
  -Original Message-
  From: Ryan [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, March 21, 2007 2:22 PM
  To: Tomcat Users List
  Subject: Re: requiring multiple roles for access
 
 
  Barry,
 
  I'm looking for a way to disable the user by taking them out of one
 role,
  but leaving them in the roles they were in before they were disabled
 (for
  informational purposes). I didn't think it would be possible, but I
 wanted
  to throw it out there in case I missed something. What you are
 suggesting
  may also be suitable.
 
  Thanks,
  Ryan
 
 
  On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
  wrote:
  
   I know you can assign different roles to an app, and to a user, and
 make
   that user need one role to get to one part and an additional role to
  access
   a separate part of the app, but the entire app? Not sure about that.
  
   I've got people in my users table that have to have multiple roles for
   several tasks within my app. If they only have one role, they're able
 to
  do
   a certain part of the app, but not all of it. Is this what you're
 trying
  to
   accomplish?
  
   -Original Message-
   From: Ryan [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 21, 2007 8:39 AM
   To: users

RE: requiring multiple roles for access

2007-03-22 Thread Propes, Barry L [GCG-NAOT]
you betif you want me to send you any sample code or my table structure, 
FWIW, I'll be glad to.


-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 5:33 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Yeh, this project is moving pretty fast, so I'm going with some quick
solutions that may or may not be elegant :-) If I get a chance to revisit
this, I'm going to try your solution. Thanks again for all your help. - Ryan


On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] wrote:

 oh, ok. I'd say your solution's pretty plausible.

 I've just now had to retool my users table a bit adding a timestamp for
 auth purposes, too.

 I've just got the one extra table that allows people to be in multiple
 categories, yet confined to the one role in the users_role table.



 -Original Message-
 From: Ryan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 22, 2007 2:39 PM
 To: Tomcat Users List
 Subject: Re: requiring multiple roles for access


 Barry,

 This is a good implementation, and yes, it does make sense. I did go with
 a
 different implementation, though, essentially I created a new table that
 stores the users previous roles  and timestamp them when the user is
 disabled. When they are re-enabled, I just put the role data back into the
 roles table so there's no change in their previous access. This way, the
 JSP
 developers don't have to think about it, it just happens in the
 background.
 It's probably not the best implementation, but it'll do ;-).

 By the way, I've given up on the role combo login, I was just hoping when
 I
 wrote that one.

 Thanks,
 Ryan


 On 3/22/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
 wrote:
 
  Hey Ryan,
 
  I didn't end up catching it, only because the people getting the email
  that would log in to the voting section, it doesn't come into play for
  them.
 
  In other words, if they get the email, they're already in the DB as a
 user
  and have the necessary role.
 
 
  If I was going to catch it, I'd need to catch it in this JSP, the way I
  wrote it. The architecture I used on this one file was not ideal, as I
 have
  three select query statements residing within it.
 
  What I could stand to do, and would do, is catch it in the JSP, but
  probably by the declared string variable I have, called jrole.
 
  jrole in this case is the one of admin, service, legal, risk, etc.
 
  So if they're not one of four roles, I need to throw in a catch block
 for
  the SQL Exception there, otherwise I'd get an exhausted results set
 error,
  or invalid cursor state, if it can't find the matching role.
 
  Does this make sense? Or help you any? Sorry if it wasn't of more help.
 
  Let me know. And let me know moreso the way your site/app is structured;
  for example, who needs to go to a protected area, what roles, etc.
 
  I don't think you can make it have a dual/double login layer. Wouldn't
  make too much sense anyway as they'd have to use the same combo and that
  would defeat the session purpose anyway.
 
  -Original Message-
  From: Ryan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, March 22, 2007 9:35 AM
  To: Tomcat Users List
  Subject: Re: requiring multiple roles for access
 
 
  Barry,
 
  Regarding your method below, do you catch this method in JSP or
 somewhere
  else?
 
  Thanks,
  Ryan
 
 
  On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
  wrote:
  
   I don't know about disabling users, as I haven't tried something like
   that, and there may be ways of tiering the access in regards to roles,
  which
   I technically haven't tried either.
  
   But what I have is a group of people who absolutely have to access one
   portion, and then some admins who have to access another. But for
  reasons
   you can probably imagine, I certainly don't want it wide open to
 anyone
  with
   an account. So I've got it gated as such in this manner.
   Does this make sense? Another thing I did was run separate select
  queries
   from the users and approvers table, one I created and linked
 together
  by a
   unique ID. If someone contained one role, they could access this
  section. If
   not, in another case, an exception is thrown, which I didn't catch
  properly
   right away, but it doesn't let that user into the section.
  
   Let me know if you need more insight into it.
  
   Good luck with it Ryan!
  
   -Original Message-
   From: Ryan [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, March 21, 2007 2:22 PM
   To: Tomcat Users List
   Subject: Re: requiring multiple roles for access
  
  
   Barry,
  
   I'm looking for a way to disable the user by taking them out of one
  role,
   but leaving them in the roles they were in before they were disabled
  (for
   informational purposes). I didn't think it would be possible, but I
  wanted
   to throw it out there in case I missed something. What you are
  suggesting
   may also be suitable.
  
   Thanks,
   Ryan

RE: A disk directory context without cache

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
all of mine look like this, with no slashes on docBase

Context path=/examples docBase=examples debug=0

in fact...I had a problem before when I did put slashes in the docBase 
attribute.

-Original Message-
From: Artur Rataj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 9:23 AM
To: Tomcat Users List
Subject: Re: A disk directory context without cache


Please help me. I tried this:

Context path=/disk docBase=/home/lib/disk debug=0
 reloadable=true
/Context

with various combinations of slashes, with a symlink etc. it all gives
404 when trying

http://address/disk

-
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: requiring multiple roles for access

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
yeah and you might even add another table to tie it in, too. I've done that as 
well.

Tomcat requires the users and user_roles tables, but that doesn't inhibit you 
from customizing it further if needed.

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 2:28 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Chuck,

I think you and Barry are correct, I will probably to define another role
for this purpose and segregate different parts of the application.

Thanks,
Ryan


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Ryan [mailto:[EMAIL PROTECTED]
  Subject: requiring multiple roles for access
 
  I would like to require a user to belong to two roles to
  access a certain application (i.e. user must belong to role1
  AND role2 to access). I've tried the following in my web.xml
auth-constraint
 role-namerole1/role-name
 role-namerole2/role-name
/auth-constraint
 
  Unfortunately, this doesn't seem to work (it seems to allow
  role1 OR role2).

 As expected; to quote from the servlet spec:

 A user must be a member of at least one of the named roles to be
 permitted to perform the constrained requests.

  Is what I'm trying to do possible??

 The easiest way might be just to define a separate role for this purpose
 rather than trying to piggy-back off combinations.

 - 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: Unable to compile class for JSP

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
doesn't seem like much to go onwhich example did you use and did you look 
in the work folder to see what the compiled servlets were referring to?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 11:21 AM
To: users@tomcat.apache.org
Subject: Unable to compile class for JSP


Hi,

This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered solutions so
far worked.

So I am asking the people who probably know!

 

I installed tomcat 4.1.29 with JDK 1.4.2

 

Trying the JSP examples coming with it, I get the following message:

 

type Exception report

message 

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

exception 

org.apache.jasper.JasperException: Unable to compile class for JSP
 
An error occurred at line: -1 in the jsp file: null
 
Generated servlet error:
[javac] Compiling 1 source file
 
 
 
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHa
ndler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.ja
va:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:78
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:666)
at java.lang.Thread.run(Unknown Source)



Apache Tomcat/4.1.29


 

Thanks for help!

 

Peter

 

 

 


-
To start a new topic, e-mail: users@tomcat.apache.org
To 

4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Hello users,
 
A while back I had posted about running different versions on a desktop to see 
if it caused conflicts, created problems and so on.
 
The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
4.0.1 in my dev. environment and 4.1.3 on our production server, both of these 
servers in question being Win2K.
 
Several of you replied back and said there should be no problem, and while on 
version wouldn't do DBCP and the other would allow for it, there seems like 
little difference.
 
One thing that previously worked in both environments and now seems to not work 
ok is the structure of a Prepared Statement.
 
I'll create one like I always have, and now Oracle seems to see the semicolon 
ending the SQL statement as an illegal character, whereas before it did not.
 
I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
work before and now suddenly would not.
 
Basic prepared statement might look like this:
 
   String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
WHERE user_name = ?;;
   PreparedStatement preps = connection.prepareStatement(prepquer);
 
The console now gives me this error, 
java.sql.SQLException: ORA-00911: invalid character.
 
I say now, this behavior actually started coincidentally after I started using 
4.1.3 in my dev. environment.
 
If anyone can shed light on this here, feel free. Maybe I should address it in 
the Oracle forum, which I'll probably go ahead and do.
 
But if it's concretely not Tomcat, let me know that, too.
 
Thanks!


RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
Ok, that might be the problem, but I wonder why now.


-Original Message-
From: Edmund Urbani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:53 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


Propes, Barry L [GCG-NAOT] wrote:
 Hello users,
  
 A while back I had posted about running different versions on a desktop to 
 see if it caused conflicts, created problems and so on.
  
 The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
 4.0.1 in my dev. environment and 4.1.3 on our production server, both of 
 these servers in question being Win2K.
  
 Several of you replied back and said there should be no problem, and while on 
 version wouldn't do DBCP and the other would allow for it, there seems like 
 little difference.
  
 One thing that previously worked in both environments and now seems to not 
 work ok is the structure of a Prepared Statement.
  
 I'll create one like I always have, and now Oracle seems to see the semicolon 
 ending the SQL statement as an illegal character, whereas before it did not.
  
 I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
 work before and now suddenly would not.
  
 Basic prepared statement might look like this:
  
String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
 USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
 WHERE user_name = ?;;
PreparedStatement preps = connection.prepareStatement(prepquer);
  
 The console now gives me this error, 
 java.sql.SQLException: ORA-00911: invalid character.
  
 I say now, this behavior actually started coincidentally after I started 
 using 4.1.3 in my dev. environment.
  
 If anyone can shed light on this here, feel free. Maybe I should address it 
 in the Oracle forum, which I'll probably go ahead and do.
  
 But if it's concretely not Tomcat, let me know that, too.
  
 Thanks!
 

Not sure whether this has anything to do with your problem, but I think it's 
odd 
that your SQL statement has a trailing semicolon. I never use semicolons with 
JDBC. So I thought maybe that's the invalid character. ... not that this 
would 
explain why you get this error now and not earlier...

Cheers,
  Edmund

-
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: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
ok, strangely now after removing that semicolon it works as it did/should.

Might have been an old driver I was using before that allowed that I suppose.

-Original Message-
From: Edmund Urbani [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 1:53 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


Propes, Barry L [GCG-NAOT] wrote:
 Hello users,
  
 A while back I had posted about running different versions on a desktop to 
 see if it caused conflicts, created problems and so on.
  
 The versions in question are 4.0.1 and 4.1.3. For a lengthy time, I had used 
 4.0.1 in my dev. environment and 4.1.3 on our production server, both of 
 these servers in question being Win2K.
  
 Several of you replied back and said there should be no problem, and while on 
 version wouldn't do DBCP and the other would allow for it, there seems like 
 little difference.
  
 One thing that previously worked in both environments and now seems to not 
 work ok is the structure of a Prepared Statement.
  
 I'll create one like I always have, and now Oracle seems to see the semicolon 
 ending the SQL statement as an illegal character, whereas before it did not.
  
 I'm not saying or implying this is a Tomcat deal, but I wonder why it would 
 work before and now suddenly would not.
  
 Basic prepared statement might look like this:
  
String prepquer = UPDATE users_dev SET user_name = ?, USER_PASS = ?, 
 USER_TIMSTMP = SYSDATE, USER_DBFLGAG = 0 +
 WHERE user_name = ?;;
PreparedStatement preps = connection.prepareStatement(prepquer);
  
 The console now gives me this error, 
 java.sql.SQLException: ORA-00911: invalid character.
  
 I say now, this behavior actually started coincidentally after I started 
 using 4.1.3 in my dev. environment.
  
 If anyone can shed light on this here, feel free. Maybe I should address it 
 in the Oracle forum, which I'll probably go ahead and do.
  
 But if it's concretely not Tomcat, let me know that, too.
  
 Thanks!
 

Not sure whether this has anything to do with your problem, but I think it's 
odd 
that your SQL statement has a trailing semicolon. I never use semicolons with 
JDBC. So I thought maybe that's the invalid character. ... not that this 
would 
explain why you get this error now and not earlier...

Cheers,
  Edmund

-
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: deploying problem

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
usually in the root of the tomcat directory in a folder called logs. At least 
older versions are.

-Original Message-
From: Deano!! [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 3:11 PM
To: users@tomcat.apache.org
Subject: Re: deploying problem



well im a tomcat beginner so where would i find the logs? i realise that
sounds like a stupid question but i have only recently starting trying to
use tomcat

Rob Kirkbride-2 wrote:
 
 Deano,
 
 What does the log file have to say?
 
 Rob
 
 Deano!! wrote:
 to tell the truth i really dont truly know, when in the tomcat manager it
 says that it is running, but when i go into it i get that error message,
 i
 then went into full server status and when i go to my apps part its added
 a
 count to the error count in the /faces/ part so i wondered if maybe there
 is
 a library/module that netbeans 5.5's bundled tomcat has that tomcat 5.5
 used
 in fedora doesn't

 http://deansserver.serveftp.com:8080/InterfacesHCI   

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

-- 
View this message in context: 
http://www.nabble.com/deploying-problem-tf3433368.html#a9580682
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]



RE: 4.x series difference

2007-03-20 Thread Propes, Barry L [GCG-NAOT]
yeah, Chris, at one point I did update the Oracle driver, and looking back, I 
believe that was the difference.

In most cases I'm running stored procedures anyway, but occasionally I may be 
running a small prepared statement.

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 20, 2007 3:12 PM
To: Tomcat Users List
Subject: Re: 4.x series difference


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 One thing that previously worked in both environments and now seems 
 to not work ok is the structure of a Prepared Statement.
 
 I'll create one like I always have, and now Oracle seems to see the 
 semicolon ending the SQL statement as an illegal character, whereas 
 before it did not.

Have you upgraded your Oracle driver in the process?

I have never put semi-colons in any of my prepared statements, since
it's not actually part of the statement. Usually, the semi-colon is the
statement delimiter for a command-line interface. Since only a single
statement can be executed (right?) through a prepared statement, I would
just remove the semi-colon altogether, since it's not necessary (or even
correct?).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAEAj9CaO5/Lv0PARAsjsAJ0YEvRWS5yP2ZeXu4WQFAq1edXhBQCeMtJc
6kXOQpEcyg1XTHiymsgkS6s=
=qSr+
-END PGP SIGNATURE-

-
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: connection pool

2007-03-19 Thread Propes, Barry L [GCG-NAOT]
I wonder if you have some bad thread or something hanging in Tomcat causing 
this.

Any way you have Tomcat stop and restart on its own?

We do that on our Win platform as a service -- ostensobly in part to avoid that 
type of thing.

-Original Message-
From: Gioia, Michael [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 10:52 AM
To: users@tomcat.apache.org
Subject: connection pool


Hi, I'm new to tomcat and have a problem with keeping up the connection
to the database thru the connection pool.

 

Almost every weekend the database gets bumped and the java app that were
running needs to have tomcat restarted to reconnect to the database thru
the connection pool.  When we come in on Monday tomcat and the database
are up and running, but the app will not connect to the database.

 

Is there a way to reestablish the connection so our users don't have to
wait until we come in on Monday to restart tomcat?

 

Many Thanks,

MG


-
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: connection pool

2007-03-19 Thread Propes, Barry L [GCG-NAOT]
is testOnBorrow an attribute in the xml config? I haven't seen that in my 
version, coincidentally.

-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Monday, March 19, 2007 11:15 AM
To: 'Tomcat Users List'
Subject: RE: connection pool


Do you have a validation query?  Is testOnBorrow set to true?  Doing both of
these things will force the pool to really close and really re-open any
connection which fails the validation query.

Tim


 -Original Message-
 From: Piwoni, Andre [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 12:04 PM
 To: Tomcat Users List
 Subject: RE: connection pool
 
 I have the same problem. Ideally, there shouldn't be any broken
 connections in the pool. When needed
 connection should be created if database is up and running. This doesn't
 seem to be the case.
 
 -Original Message-
 From: Gioia, Michael [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 19, 2007 8:52 AM
 To: users@tomcat.apache.org
 Subject: connection pool
 
 Hi, I'm new to tomcat and have a problem with keeping up the connection
 to the database thru the connection pool.
 
 
 
 Almost every weekend the database gets bumped and the java app that were
 running needs to have tomcat restarted to reconnect to the database thru
 the connection pool.  When we come in on Monday tomcat and the database
 are up and running, but the app will not connect to the database.
 
 
 
 Is there a way to reestablish the connection so our users don't have to
 wait until we come in on Monday to restart tomcat?
 
 
 
 Many Thanks,
 
 MG
 
 
 --
 
 
 This email is confidential and may be legally privileged.
 
 It is intended solely for the addressee. Access to this email by anyone
 else, unless expressly approved by the sender or an authorized addressee,
 is unauthorized.
 
 If you are not the intended recipient, any disclosure, copying,
 distribution or any action omitted or taken in reliance on it, is
 prohibited and may be unlawful. If you believe that you have received this
 email in error, please contact the sender, delete this e-mail and destroy
 all copies.
 
 ==
 
 
 
 -
 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: Server DB Connects are very slow after restart

2007-03-16 Thread Propes, Barry L [GCG-NAOT]
we had similar connection problems with Oracle here.

At first I changed drivers, which I thought would help, then while I was 
furiously trying to implement connection pooling, which I ended up doing, we 
discovered there were big problems with the network connection to Oracle, as 
well as the listeners cache on the DB being full.

They rebooted the oracle server and all was immediately  well. Might see if 
they can try that where you are.

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 6:04 AM
To: 'Tomcat Users List'
Subject: Server DB Connects are very slow after restart


Hello,

I have trouble with my tomcat server 5.5.9, java 1.5 and oracle db 9i. 
CATALINA_OPTS=-Xmx1900m -Xms256m -XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m -Dcom.sun.management.jmxremote

After the restart of the server the db connects from my webapps are very
slow. I can't see why no trace in the logs, enough physical memory 

The log file is not too big. What can I check to find out what is wrong?


Cheers,
Pete






-
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: Server DB Connects are very slow after restart

2007-03-16 Thread Propes, Barry L [GCG-NAOT]
I'm almost positive we did that (I did that); contributed to that, though not 
alone.

We may have had some cursor leaks as well. Rebooting alone didn't 
sufficethey did tweak some stuff to how it handles incoming connections.
I imagine they either hardcoded some IP addresses as acceptable always, so that 
the DB listeners would always see those.
I think that was a big problem, was that out of all 32 listeners they had, two 
recognized the IP address, the rest either had run out of memory or maybe the 
cursor leaks potentially caused them to run out of memory?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Friday, March 16, 2007 10:03 AM
To: Tomcat Users List
Subject: Re: Server DB Connects are very slow after restart


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

Propes, Barry L [GCG-NAOT] wrote:
 we had similar connection problems with Oracle here.
 
 At first I changed drivers, which I thought would help, then while I
 was furiously trying to implement connection pooling, which I ended
 up doing, we discovered there were big problems with the network
 connection to Oracle, as well as the listeners cache on the DB being
 full.
 
 They rebooted the oracle server and all was immediately  well. Might
 see if they can try that where you are.

If rebooting the database server worked, you might be leaking cursors or
even connections. IIRC, Oracle won't release a cursor on the server
unless you actually call ResultSet.close. So, even if you don't have a
connection leak, you still might have a cursor leak.

And, of course, if you have a connection leak -- even one that doesn't
snowball over time... like if you have one that runs on startup only but
gets leaked -- the server will never drop that connection (at least,
this was the behavior of Oracle last time I used it with Java).
Connections on the server side require obscene amounts of memory, and
you can really bring your Oracle server to its knees with leaky
connections and/or cursors.

Maybe that doesn't help, but I figured I'd point it out, anyway.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+rGa9CaO5/Lv0PARAqfMAJ0XzFWKZ+3enY0ge6YPBogaMLHAeACfUmmX
nb0jR7W/j1g7TFwug8RaKRw=
=fORQ
-END PGP SIGNATURE-

-
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: Quick Question for TomCat Gurus

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
change up your catalina.bat or.sh file to point to the JDK 1.6 version

set JAVA_HOME=C:\j2sdk1.4.0

I'm using an older version here. This is from my catalina.bat file

although not sure if TC 4.1 will work well with that JDK or not.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 10:59 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Somewhere in the execution path you still have java 1.4.2.  Check your 
PATH environment variable -- the first folder that contains java.exe 
will be the one that returns. 

As to what jdk tomcat 4.1 is running with, check the manager webapp 
(http://localhost:8080/manager/html) and adjust the start/stop scripts 
if necessary.

The exception cited below has to do with a jsp not finding a bean 
instance with the name managerMenu in the page context, request, session 
or servlet context.  I'm guessing it's supposed to be run after some 
other servlet or filter code that adds this to one of the mentioned scopes.

--David

Bruno Vilardo wrote:

 Hello All,

 Tomcat 4.1
 Suse Linux Enterprise Server
 Java 1.6.0

 Is there any issue using Tomcat 4.1 with Java 1.6.0?

 Our System Admin has installed the Java 1.6.0 but when running the java
 -version it shows a different java version as below:

 $java -version
 java version 1.4.2_13
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
 Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

 I also found some messages in the localhost.log as below:

 more localhost_log.2007-03-15.txt
 2007-03-15 11:18:42 StandardWrapperValve[jsp]: Servlet.service() for 
 servlet
 jsp threw exception
 javax.servlet.ServletException: Cannot find bean managerMenu in any scope
at org.apache.jasper.runtime.PageContextImpl.handlePageException(
 PageContextImpl.java:495)
at org.apache.jsp.displaymenudetail_jsp._jspService
 (displaymenudetail_jsp.java:126)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
 :92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.jasper.servlet.JspServletWrapper.service(
 JspServletWrapper.java:162)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(
 JspServlet.java:240)
at 
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
 ApplicationFilterChain.j
 ava:200)

 Does anybody know what this could be?

 Thanks a lot in advance!!!

 Best Regards,

 Bruno



-
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: JSP page not updated on each request

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
I've also noticed in my apps sometimes that items with javascript references 
either get so deeply cached or are not recognized until I stop and restart 
Tomcat.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 8:14 AM
To: Tomcat Users List
Subject: Re: JSP page not updated on each request


Mmmm, dont know I think the browser should be picking up file changes, but 
if you want to make sure the browser doesnt cache, then if I remember 
correctly search for NO-CACHE and set the headers returned, the browser will 
reload every time. Note that headers are different for different browsers so 
you have to set a few headers... google will tell you.

Note that when you developing, I've noticed if you leave the browser open, 
it may still display previous page... but it doesnt happen once deployed.

Other thing that maybe catching you is that you changing something in the 
servlet INIT routine... and that somehow impacts on your JSP pages say thru 
a bean. That wont reflect until you stop and start tomcat..INIT runs once at 
start up.

good luck

- Original Message - 
From: pkumar [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Thursday, March 15, 2007 9:39 AM
Subject: JSP page not updated on each request



 Hello, The JSP pages in my project is not showing the updated one upon 
 each
 request..Its showing the old one and only when i press the refresh, its
 showing the updated one...I believe this is the problem with Tomcat..Can
 someone help.
 Thanks in advance
 Pradeep

 -- 
 View this message in context: 
 http://www.nabble.com/JSP-page-not-updated-on-each-request-tf3406783.html#a9489775
 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]


-
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: Quick Question for TomCat Gurus

2007-03-15 Thread Propes, Barry L [GCG-NAOT]
ok, sorry about that.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 11:22 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Barry -- what you suggest only works on Windows boxes and only if using 
the *.bat files.  The OP has already stated this is a linux box: Suse 
Linux Enterprise Server

Not knowing how the OP starts tomcat, it's hard to give solid advice on 
the best method for switching JDKs.


--David

Propes, Barry L [GCG-NAOT] wrote:

change up your catalina.bat or.sh file to point to the JDK 1.6 version

set JAVA_HOME=C:\j2sdk1.4.0

I'm using an older version here. This is from my catalina.bat file

although not sure if TC 4.1 will work well with that JDK or not.

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 15, 2007 10:59 AM
To: Tomcat Users List
Subject: Re: Quick Question for TomCat Gurus


Somewhere in the execution path you still have java 1.4.2.  Check your 
PATH environment variable -- the first folder that contains java.exe 
will be the one that returns. 

As to what jdk tomcat 4.1 is running with, check the manager webapp 
(http://localhost:8080/manager/html) and adjust the start/stop scripts 
if necessary.

The exception cited below has to do with a jsp not finding a bean 
instance with the name managerMenu in the page context, request, session 
or servlet context.  I'm guessing it's supposed to be run after some 
other servlet or filter code that adds this to one of the mentioned scopes.

--David

Bruno Vilardo wrote:

  

Hello All,

Tomcat 4.1
Suse Linux Enterprise Server
Java 1.6.0

Is there any issue using Tomcat 4.1 with Java 1.6.0?

Our System Admin has installed the Java 1.6.0 but when running the java
-version it shows a different java version as below:

$java -version
java version 1.4.2_13
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

I also found some messages in the localhost.log as below:

more localhost_log.2007-03-15.txt
2007-03-15 11:18:42 StandardWrapperValve[jsp]: Servlet.service() for 
servlet
jsp threw exception
javax.servlet.ServletException: Cannot find bean managerMenu in any scope
   at org.apache.jasper.runtime.PageContextImpl.handlePageException(
PageContextImpl.java:495)
   at org.apache.jsp.displaymenudetail_jsp._jspService
(displaymenudetail_jsp.java:126)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:92)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:162)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:240)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:187)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.j
ava:200)

Does anybody know what this could be?

Thanks a lot in advance!!!

Best Regards,

Bruno





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


-
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: Is there a better way to do this?

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
even if the server.xml file's reloadable is set to true?

reloadable=true in the Context param?

-Original Message-
From: Steveswt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 12:15 PM
To: users@tomcat.apache.org
Subject: Is there a better way to do this?



Hi, 

I am one of the web developers for a company that uses java technology. I've
noticed my changes (jsp's) don't take into effect unless I remove the file
from the server, refesh the browsers like 5 times till i get a 404, then
place the new file back on the server.

I assume the changes dont take effect because it is reading the old class
file that tomcat created. Is there a better way to update the new changes
immediately??

If im posting in the wrong area, please direct me to the best place :)

Thanks!
-- 
View this message in context: 
http://www.nabble.com/Is-there-a-better-way-to-do-this--tf3403561.html#a9479073
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]



RE: Classpath Problem

2007-03-14 Thread Propes, Barry L [GCG-NAOT]
might need an updated jar file for that.

Might have been included with one package earlier and is now in another one.

-Original Message-
From: Mark Hale [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 14, 2007 2:29 PM
To: users@tomcat.apache.org
Subject: Classpath Problem


Hi there.

I am new to Tomcat and have installed Tomcat6 and JDK1.5 on Windows.
I get Tomcat to run and can include my own JSP's.  However, whenever I
use classes like HashMap I get a compiler error (HashMap cannot be
resolved to a type).

I've dug all through the web, documentation and mail archives.

Does anyone have a url that will help or information for a newbie on
why classes in what would be in j2se are not available to compile?

Another piece of info:  my jvm in tomcat6w is set to:

C:\Program Files\Java\jdk1.5.0_11\jre\bin\server\jvm.dll

Thanks!

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]



RE: The return type is incompatible with JspSourceDependent.getDependants()

2007-03-01 Thread Propes, Barry L [GCG-NAOT]
might be reflective of the JDK you're using and how that generated JSP was 
being written. What method, package was being used, etc.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 01, 2007 3:29 PM
To: Tomcat Users List
Subject: The return type is incompatible with
JspSourceDependent.getDependants()


All,
We just upgraded Tomcat to 5. We have several web
apps that are on this machine. Of the several that are
there only one doesn't work after the upgrade. This is
the error we recieve when we try and bring up the
default page for the site:

HTTP Status 500 - 



type Exception report


message 

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

exception 

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

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



org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

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

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

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

org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



I am unclear as to what this really means. If anyone
could point me to something to try, I would greatly
appreciate it.

Thank you so much.
B

 




 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
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: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
Daniel,

I scoured the APIs for that method and couldn't find anywhere, but I added to 
my server.xml file any way.

Without something like lamda probe, would I see any connections dropping, or 
would I need a third party tool like that to see it logged?

ORwould I just not get any errors like before and assume that that addition 
and revision has successfully addressed it?

Thanks!

Barry

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.


RE: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, David!

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 1:06 PM
To: Tomcat Users List
Subject: Re: connection pool - DBCP error


The pooling in tomcat is a refactored copy of Commons-DBCP
(http://jakarta.apache.org/commons/dbcp).  See the javadocs for
org.apache.commons.dbcp.BasicDataSource for all the options settable. 
minEvictableIdleTimeMillis= translates to setMinEvictableIdleTimeMillis().

--David

Propes, Barry L [GCG-NAOT] wrote:

Daniel,

I scoured the APIs for that method and couldn't find anywhere, but I added to 
my server.xml file any way.

Without something like lamda probe, would I see any connections dropping, or 
would I need a third party tool like that to see it logged?

ORwould I just not get any errors like before and assume that that 
addition and revision has successfully addressed it?

Thanks!

Barry

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.
  



-
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: j_security_check

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
I connect to Oracle, but mine's configured slightly different.

in the server.xml file,

connectionName=user_name
connectionPassword=password
userTable=users userNameCol=user_name userCredCol=user_pass
userRoleTable=user_roles roleNameCol=role_name/

I have an underscore between mine -- on the roleNameCol value. Does j_security 
check require that?


And are you also configuring this within the server.xml file as well as the 
web.xml file?

I'm running TC 4.1.3 and it requires it there, too...maybe not for your version.

Good luck!


-Original Message-
From: Wade Little [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 2:37 PM
To: users@tomcat.apache.org
Subject: j_security_check


I have tried all I can to setup Netbeans/Tomcat to use
postgre for my user auth via J_security_check by
talking with my Postgre DBcan anyone review the
following files and let me know if I have done
anything wrong.  I verified I can connect via a JSP
and return a result.  But I cant get the Auth to work.
 Here is what I used that works to talk to the DB:

%
Class.forName(org.postgresql.Driver);
String url = jdbc:postgresql://localhost:5432/landt;
Connection con = DriverManager.getConnection(url,
postgres, postgres);
Statement stmt =
con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,

ResultSet.CONCUR_READ_ONLY);
ResultSet srs = stmt.executeQuery(SELECT username
FROM users);
while (srs.next()) {
String name = srs.getString(username);
out.println(name);
}
%






Web.xml
---
?xml version=1.0 encoding=UTF-8?
web-app version=2.4
xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list
security-constraint
display-nameTenantConstraint/display-name
web-resource-collection
   
web-resource-nametenant/web-resource-name
descriptionTenant/description
url-pattern/secureTenant/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodHEAD/http-method
http-methodPUT/http-method
http-methodOPTIONS/http-method
http-methodTRACE/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
description/
role-nametenant/role-name
/auth-constraint
/security-constraint
security-constraint
   
display-nameLandlordConstraint/display-name
web-resource-collection
   
web-resource-namelandlord/web-resource-name
descriptionLandlord/description
   
url-pattern/secureLandlord/*/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
http-methodHEAD/http-method
http-methodPUT/http-method
http-methodOPTIONS/http-method
http-methodTRACE/http-method
http-methodDELETE/http-method
/web-resource-collection
auth-constraint
description/
role-namelandlord/role-name
/auth-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
Realm
className=org.apache.catalina.realm.JDBCRealm
connectionName=postgres
connectionPassword=postgres
connectionURL=jdbc:postgresql://localhost:5432/landt
debug=99 driverName=org.postgresql.Driver
roleNameCol=rolename userCredCol=password
userNameCol=username userRoleTable=user_roles
userTable=users/
form-login-config
   
form-login-page/login.jsp/form-login-page
   
form-error-page/error.html/form-error-page
/form-login-config
/login-config
security-role
descriptionFor Tenants/description
role-nametenant/role-name
/security-role
security-role
descriptionFor Landlords/description
role-namelandlord/role-name
/security-role
/web-app

-
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: connection pool - DBCP error

2007-02-27 Thread Propes, Barry L [GCG-NAOT]
yes, I believe soI added some other param attributes that I think will 
properly kill off abandoned connections if they didn't before get killed off.



-Original Message-
From: Tim Lucia [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 4:22 PM
To: 'Tomcat Users List'
Subject: RE: connection pool - DBCP error


 -Original Message-
 From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED]
 Sent: Monday, February 26, 2007 4:48 PM
 To: Tomcat Users List
 Subject: connection pool - DBCP error

 AbandonedObjectPool is used
 ( [EMAIL PROTECTED])
 
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60

Isn't this just an informational message saying that abandoned objects will
be detected?  It appears on startup when I configure DBCP to evict abandoned
connections...

Tim




-
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: increase the backend idle connection timeout or the connection_pool_minsize

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
on that connection pool size, these two:

   parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter

You're also only allowing 1 sec to connect it appears. Might ratchet it up a 
little more.

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Fletcher Cocquyt
Sent: Monday, February 26, 2007 12:32 PM
To: users@tomcat.apache.org
Subject: increase the backend idle connection timeout or the
connection_pool_minsize


Hi,
This is a followup to my Feb14 post: Re: socket is not connected any more 
(errno=11)

I've just upgraded from 1.2.19 to 1.2.20 and the new log messages are:

increase the backend idle connection timeout or the connection_pool_minsize

I could not find much on which parameters this is referring to?
On the mod_jk side I have:

worker.tomcat-publicweb-01.type=ajp13 
worker.tomcat-publicweb-01.host=app-01
worker.tomcat-publicweb-01.port=12345
worker.tomcat-publicweb-01.lbfactor=50 
worker.tomcat-publicweb-01.cachesize=10 
worker.tomcat-publicweb-01.cache_timeout=600 
worker.tomcat-publicweb-01.socket_keepalive=1 
worker.tomcat-publicweb-01.retries=2
worker.tomcat-publicweb-01.socket_timeout=30
worker.tomcat-publicweb-01.connect_timeout=2000
worker.tomcat-publicweb-01.prepost_timeout=5000
worker.tomcat-publicweb-01.reply_timeout=30

On the tomcat side I have:
  parameter
namemaxActive/name
value20/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
namemaxWait/name
value1000/value
  /parameter
parameter
   
namelogAbandoned/name
valuetrue/value
  /parameter

parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value1200/value
/parameter

Which parameters are these log messages referring to?

Many thanks,
Fletcher.


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



connection pool - DBCP error

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
I am getting a slight error with regards to my connection pool configuration.
 
I may not have totally closed the connection properly, but shouldn't the 
following account for it?
 
 

AbandonedObjectPool is used ( [EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant connection 
and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


RE: connection pool - DBCP error

2007-02-26 Thread Propes, Barry L [GCG-NAOT]
thanks, Daniel!! Ill try to plug that in and see if my version will accept 
those params!

-Original Message-
From: Stephens, Daniel [mailto:[EMAIL PROTECTED]
Sent: Monday, February 26, 2007 4:55 PM
To: Tomcat Users List
Subject: RE: connection pool - DBCP error


I had to add the following before I saw that behavior. You'll have to check
the API, to make sure the minEvictableIdleTimeMillis and
timeBetweenEvictionRunsMillis are set correctly for your pool. But once I
added these, I would see abandoned connections get dropped. 

I put these settings in, because I found that the DBCP pool only evalutes
connections on a check-in/out basis.

 
parameternameminEvictableIdleTimeMillis/namevalue5000/value/param
eter
 
parameternametimeBetweenEvictionRunsMillis/namevalue1/value/p
arameter
 parameternametestWhileIdle/namevaluetrue/value/parameter
 parameternamevalidationQuery/namevalueselect count(*) from
dual/value/parameter


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 26, 2007 3:48 PM
To: Tomcat Users List
Subject: connection pool - DBCP error

I am getting a slight error with regards to my connection pool
configuration.
 
I may not have totally closed the connection properly, but shouldn't the
following account for it?
 
 

AbandonedObjectPool is used (
[EMAIL PROTECTED])
 
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60

 
in other words, if I have the following configured like so, 
 
   parameter
 namemaxWait/name
 value7000/value
   /parameter
 parameter
 nameremoveAbandoned/name
 valuetrue/value
 /parameter
 parameter
 nameremoveAbandonedTimeout/name
 value60/value
 /parameter
 parameter
 namelogAbandoned/name
 valuetrue/value
 /parameter
 
shouldn't the RemoveAbandoned params account for an open or vagrant
connection and kill it off properly?
Am I wrong in the assumption this attribute should have?
 
Thanks,
 
Barry


-
The information in this message may be proprietary and/or
confidential, and protected from disclosure.  If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify First Data
immediately by replying to this message and deleting it from your
computer.


RE: Connection pool problem DBCP - 4.1.3

2007-02-23 Thread Propes, Barry L [GCG-NAOT]
I think I've largely got my previous connection pooling issues solved, but I 
did sort of get a strange error a bit ago.

it seems like one of my pool connections didn't get closed, though I'm looking 
at that to make sure they do.

But I want to make sure the messages I'm getting across the console at startup 
aren't cause for concern.

Basically, I shouldn't be alarmed about any of this should I?
-

AbandonedObjectPool is used ([EMAIL PROTECTED])

   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 60



Thanks,

Barry



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Wednesday, February 21, 2007 10:18 AM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


I wonder...would I get mixed results trying to implement JNDI maing in my 
server.xml file, but only trying to (on a page by page basis, with an existing 
servlet and/or JSP) utilize the naming context method?

In other words, I test out DBCP with one dedicated servlet or JSP, and perhaps 
it works fine, but somehow that adversely affects another servlet or JSP where 
I've not really implemented the Naming Context portion, but since I've altered 
the server.xml file, that's affected it?

Please let me know if you have any insight into this.

Thanks!

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


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



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



-
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: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
can't you force something like that in the welcome page attribute of the 
web.xml file in the conf folder?

i.e.

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
welcome-filechange_ctrl.htm/welcome-file
/welcome-file-list

how are they getting to the URL in the first place?

-Original Message-
From: Bhandari [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 11:26 PM
To: users@tomcat.apache.org
Subject: Pls help : How to make case insensitive URL(JSP) on Tomcat 5.5



Hi,

I have an intranet based JSP application on Tomcat 5.5. i have rolled it
out. but the problem my JSP application users are facing is ' URL of
application' is case sensetive.

CAN ANYBODY  TELL me a way to make my URL CASE INSENSITIVE?
I need a step by step guide.

Pls help.
Thanks and Regards,
Bhandari
-- 
View this message in context: 
http://www.nabble.com/Pls-help-%3A-How-to-make-case-insensitive-URL%28JSP%29-on-Tomcat-5.5-tf3271075.html#a9094670
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]



RE: authentication security constraint error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
thanks, Chuck, I think that was itI had admin before service, and it 
didn't like that at all. I guess that violates the hierarchical structure.

Barry

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:35 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: authentication security constraint error
 
 Yeah, I had them in there.

Are they in the right order relative to the other elements?  The
web-app schema is rather picky about how things are arranged.  The
web.xml files for Tomcat's manager and admin apps server as good
examples.

 - 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: How can I realize server side GUI??

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
sounds like a lot of Swing to me...is it not?

-Original Message-
From: wang suya [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 5:48 PM
To: Tomcat Users List
Subject: Re: How can I realize server side GUI??



Hello Peter

   You are right. I want to make a graphical interface served form Web
server to a Web browser. It displays a sheet with serveral rectangle cells like
execl sheet and when I drag one cell the size of cell can change.
Thank you very much. Hope you can help me.

  Wang suya

Peter Crowther さんは書きました:
 From: wang suya [mailto:[EMAIL PROTECTED] 
 I want to make a server side GUI application that draw
 senveral Rectanges and when mouse drag the bottom of 
 Rectange, the rectange
 extends. Do anybody know how I can realize this appication.

I assume by server-side GUI you mean a graphical interface served
from a Web server to a Web browser?

Depending on what you then wish to do with the data from the rectangles,
you could do it entirely in Javascript or use one of the higher-level
frameworks like AJAX.  Without more details on your requirements, it's
difficult to tell.

   - Peter

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



wang suya

-
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: Connection reset error

2007-02-22 Thread Propes, Barry L [GCG-NAOT]
another oddity about this (maybe not).

The error occurs/ed when I tried it thru the IP address of the box.

In trying it thru the domain name, I don't get that error.



-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Thursday, February 22, 2007 5:49 PM
To: Tomcat Users List
Subject: Connection reset error


I am getting this error now after logging on to a certain portion of my site 
within the security constraint.
 
The connection was reset 
 
The connection to the server was reset while the page was loading.

*   The site could be temporarily unavailable or too busy. Try again in a 
few
  moments.
 
*   If you are unable to load any pages, check your computer's network
  connection.
 
 
Any idea what could be the cause? It had previously worked fine, but now after 
logging in at the FORM level, it kicks me out and closes the Tomcat connection? 
Actually the console is still running with no errors, but the browser 
connection seemingly gets closed.
 
 

-
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: Connection pool problem DBCP - 4.1.3

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
I wonder...would I get mixed results trying to implement JNDI maing in my 
server.xml file, but only trying to (on a page by page basis, with an existing 
servlet and/or JSP) utilize the naming context method?

In other words, I test out DBCP with one dedicated servlet or JSP, and perhaps 
it works fine, but somehow that adversely affects another servlet or JSP where 
I've not really implemented the Naming Context portion, but since I've altered 
the server.xml file, that's affected it?

Please let me know if you have any insight into this.

Thanks!

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


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



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



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



authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
Hi,
 
I've been using versions 4.0 and 4.1.3 with a security constraint with no 
problems.
 
However, when I added info in my server.xml file to try and attempt DBCP, I get 
a warning in my logs about something being defined in in an auth-constraint 
without being in a security role. Maybe not too big a deal.
 
However, ever since I added the Resource Name and Params for the DBCP, I don't 
get challenged on the form to enter the password protected area, which in 
turn causes some other errors.
 
Does anyone know why adding that bit of configuration to the server.xml file 
would render the security constraint inoperable?
 
I'm open to feedback, let me know if more info's needed.
 
Thanks!

 
 
 
I've actually got the security constraint configured properly, as it's worked 
before with no issues.:
--
security-constraint
web-resource-collection
 web-resource-nameChange Control Protected 
Area/web-resource-name
 !-- Protect all files in the /murach/chngctrl/admin directory --
 url-pattern/chngctrl/admin/*/url-pattern
 url-pattern/chngctrl/change_ctrl_admin4.jsp/url-pattern
 url-pattern/chngctrl/chg_ctrl_adm_vote.jsp/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
/web-resource-collection
auth-constraint
 !-- Users in the service and admin roles can access the admin dir 
 added several to match Change ctrl categs--
 role-nameservice/role-name
 role-nameadmin/role-name
 role-namecomply/role-name
 role-nameops/role-name
 role-namelegal/role-name
 role-namerisk/role-name
/auth-constraint
/security-constraint

 
Here's the log info:
 
2007-02-21 16:28:02 HostConfig[localhost]: Deploying web application directory 
murach
2007-02-21 16:28:02 StandardHost[localhost]: Installing web application at 
context path /murach from URL file:C:\jakarta-tomcat-4.1.31\webapps\murach
2007-02-21 16:28:02 WebappLoader[/murach]: Deploying class repositories to work 
directory C:\jakarta-tomcat-4.1.31\work\Standalone\localhost\murach
2007-02-21 16:28:02 WebappLoader[/murach]: Deploy class files /WEB-INF/classes 
to C:\jakarta-tomcat-4.1.31\webapps\murach\WEB-INF\classes
2007-02-21 16:28:02 WebappLoader[/murach]: Deploy JAR 
/WEB-INF/lib/mm.mysql-2.0.8-bin.jar to 
C:\jakarta-tomcat-4.1.31\webapps\murach\WEB-INF\lib\mm.mysql-2.0.8-bin.jar
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name service 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name admin 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name comply 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name ops 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name legal 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: WARNING: Security role name risk 
used in an auth-constraint without being defined in a security-role
2007-02-21 16:28:02 ContextConfig[/murach]: Configured an authenticator for 
method FORM
2007-02-21 16:28:02 StandardManager[/murach]: Seeding random number generator 
class java.security.SecureRandom
2007-02-21 16:28:02 StandardManager[/murach]: Seeding of random number 
generator has been completed
2007-02-21 16:28:02 StandardWrapper[/murach:default]: Loading container servlet 
default
2007-02-21 16:28:02 default: init
2007-02-21 16:28:02 StandardWrapper[/murach:invoker]: Loading container servlet 
invoker
2007-02-21 16:28:02 invoker: init
2007-02-21 16:28:02 jsp: init
2007-02-21 16:28:02 HostConfig[localhost]: Deploying web application directory 
ROOT
 
-


RE: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, Chuck.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:02 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: authentication security constraint error
  
 However, when I added info in my server.xml file to try and 
 attempt DBCP, I get a warning in my logs about something 
 being defined in in an auth-constraint without being in a 
 security role. Maybe not too big a deal.

Read the servlet spec. A list of security-role elements is required in
the app's web.xml for an auth-constraint to be effective.

 - 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: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
Yeah, I had them in there.


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:02 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: authentication security constraint error
  
 However, when I added info in my server.xml file to try and 
 attempt DBCP, I get a warning in my logs about something 
 being defined in in an auth-constraint without being in a 
 security role. Maybe not too big a deal.

Read the servlet spec. A list of security-role elements is required in
the app's web.xml for an auth-constraint to be effective.

 - 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: authentication security constraint error

2007-02-21 Thread Propes, Barry L [GCG-NAOT]
now I'll double check that part. That could be an issue.

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 5:35 PM
To: Tomcat Users List
Subject: RE: authentication security constraint error


 From: Propes, Barry L [GCG-NAOT] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: authentication security constraint error
 
 Yeah, I had them in there.

Are they in the right order relative to the other elements?  The
web-app schema is rather picky about how things are arranged.  The
web.xml files for Tomcat's manager and admin apps server as good
examples.

 - 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: overlapped parameters between sessions

2007-02-20 Thread Propes, Barry L [GCG-NAOT]
starting to wonder if that's maybe happening to me some, too, though I've not 
confirmed it any of the logs yet.

-Original Message-
From: WILLIAM PARRA [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 20, 2007 4:00 PM
To: Tomcat Users List
Subject: overlapped parameters between sessions


Hi,

I'm currently using a Tomcat 4 container for our web applications (jsp's, 
servlets).  
When  passing parameters with get metod, with many users (about 200); some 
parameters, 
are overlapped between sessions. There is a special configuration in Tomcat 
when i work with sessions??
The Tomcat version is old?
In new versions it would be fixed?

Thanks for your help. 
William Enrique Parra Alba
System Enginer 
Universidad Pedagógica y Tecnológica de Colombia



__
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

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



RE: Tomcat default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
didn't know it was possibleto set up a default context outside of the 
server.xml file.
I thought Tomcat required that.

-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:43 AM
To: users@tomcat.apache.org
Subject: Tomcat default context


 

I am using tomcat 5.5.20 and attempting to set up a default context
without placing the context tag inside of the server.xml file.  I
created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/
and placed this tag into the file:

 

Context docBase=mywebapp/

 

This resulted in no change, and the default tomcat page still appears
when I view my webapp.  I have also tried adding path= with the same
result.  This tag works fine when placed inside server.xml, but I am
trying to avoid that now.  Any ideas on what I may be missing or
mis-understanding?


-
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 default context

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
oh, ok. Hadn't gone down that road yet. Good to know.

Then would it be 
Context docBase=/mywebapp/  ?


-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:52 AM
To: Tomcat Users List
Subject: RE: Tomcat default context


This is from the documentation that comes with tomcat 5

Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended
to place Context elements directly in the server.xml file

Doing it outside the server.xml file allows you to make changes without
restarting tomcat.  Nice feature, but still working on the root context.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 19, 2007 11:48 AM
To: Tomcat Users List
Subject: RE: Tomcat default context

didn't know it was possibleto set up a default context outside of
the server.xml file.
I thought Tomcat required that.

-Original Message-
From: Gardner, Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 10:43 AM
To: users@tomcat.apache.org
Subject: Tomcat default context


 

I am using tomcat 5.5.20 and attempting to set up a default context
without placing the context tag inside of the server.xml file.  I
created the ROOT.xml file under Tomcat Home Dir/conf/engine/host/
and placed this tag into the file:

 

Context docBase=mywebapp/

 

This resulted in no change, and the default tomcat page still appears
when I view my webapp.  I have also tried adding path= with the same
result.  This tag works fine when placed inside server.xml, but I am
trying to avoid that now.  Any ideas on what I may be missing or
mis-understanding?


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



Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]

This is driving me crazy. I'm finally close, I think, on getting this solved.

Problem is I seem to either get Connection is closed or Exhausted resultset, 
depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference that 
was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env);
// Look up our data source
DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool
Connection connection = ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery();
admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement, 
otherwise I get exhausted result set. 
Any idea what gives?


-
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: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
ok, I'll send that, too. Sorry about that.

-Original Message-
From: Mike Quilleash [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 1:08 PM
To: Tomcat Users List
Subject: RE: Connection pool problem DBCP - 4.1.3


Need a bit more info.  DB type and version, JDBC driver version,
ResultSet loop/access code.

Generally the pseudo code should be...


Open Connection
try
{
  Prepare Statement
  try
  {
Execute Query
try
{
  while ( resultSet.next() )
  {
// process row here
  }
}
finally
{
  Close ResultSet
}
  }
  finally
  {
Close PreparedStatement 
  }
}
finally
{
  Close Connection
}


All of the closing should be done in finally blocks so they happen even
if you get an exception.

-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: 19 February 2007 18:22
To: Tomcat Users List
Subject: Connection pool problem DBCP - 4.1.3


This is driving me crazy. I'm finally close, I think, on getting this
solved.

Problem is I seem to either get Connection is closed or Exhausted
resultset, depending where I put my close statement.


I've got the following up at the top, which replaces my driver reference
that was previously there.

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup(java:comp/env); // Look up
our data source DataSource ds = (DataSource)
  envCtx.lookup(jdbc/myoracle);
// Allocate and use a connection from the pool Connection connection =
ds.getConnection();

Statement selstmt = connection.createStatement();

String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
 PHONE_NUM,DATE_REQ,...  +
   +
 FROM table a INNER JOIN table b  +
 ON a.CTRL_ID = b.CTRL_ID  +
 WHERE AID = ?;

PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
prepstmt.setString(1, aidstrd);
ResultSet admsql = prepstmt.executeQuery(); admsql.next();

(etc., etc.)

admsql.close();
selstmt.close();
connection.close();

If I move up connection.close, I get the Connection is closed statement,
otherwise I get exhausted result set. 
Any idea what gives?


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



 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



-
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: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Propes, Barry L [GCG-NAOT]
Johnny, you were correct.

that selstmt connection statement was not being utilized, but sure must have 
had an adverse impact, because I think I've got it working ok now!

Thanks a bunch, guys!

-Original Message-
From: -- [mailto:[EMAIL PROTECTED]
Sent: Monday, February 19, 2007 2:06 PM
To: Tomcat Users List
Subject: Re: Connection pool problem DBCP - 4.1.3


I think you should also call

prepstmt.close()

(before closing the connection).

Besides 

selstmt

seems not to be used at all.

Bye 

 This is driving me crazy. I'm finally close, I think, on getting this solved.

 Problem is I seem to either get Connection is closed or Exhausted resultset, 
 depending where I put my close statement.


 I've got the following up at the top, which replaces my driver reference that 
 was previously there.

 Context initCtx = new InitialContext();
 Context envCtx = (Context) initCtx.lookup(java:comp/env);
 // Look up our data source
 DataSource ds = (DataSource)
   envCtx.lookup(jdbc/myoracle);
 // Allocate and use a connection from the pool
 Connection connection = ds.getConnection();

 Statement selstmt = connection.createStatement();

 String prepSQL = SELECT AID, ACTIVE, REQUESTOR_NAME..., +
PHONE_NUM,DATE_REQ,...  +
    +
FROM table a INNER JOIN table b  +
ON a.CTRL_ID = b.CTRL_ID  +
WHERE AID = ?;

 PreparedStatement prepstmt = connection.prepareStatement(prepSQL);
 prepstmt.setString(1, aidstrd);
 ResultSet admsql = prepstmt.executeQuery();
 admsql.next();

 (etc., etc.)

 admsql.close();
 selstmt.close();
 connection.close();

 If I move up connection.close, I get the Connection is closed statement, 
 otherwise I get exhausted result set. 
 Any idea what gives?


 -
 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: multiple versions of TC

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
I've noticed now that occasionally the users and I will get a page not found 
error.

It's almost as if one version of tomcat is trying to be accessed while another 
one's running, even though I'm not running both at the same time.

Maybe I need to go individually look for a process and kill it?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 3:27 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 what does that entail? Just going and switching it in a properties
 file somewhere? Or making an entirely new properties file?

Take a look at the Advanced section of RUNNING.TXT in your Tomcat
installation directory. You can run more than one copy of Tomcat with
different server.xml files (and deployed webapps, etc.) at the same time.

Then, if you want to put Apache httpd out front, only a single mod_jk
config and workers.properties file is needed. You just map each URL
space to a separate worker.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF036b9CaO5/Lv0PARAq7JAJ0Rk7WE5StxPGH0jGcQEi38lIhd7gCgs6on
yJTOpZagnNimDh8+zDqkW1Q=
=DzlM
-END PGP SIGNATURE-

-
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: Weird Exception thrown on startup (how to resolve?)

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
looks like the Persistent Manager Sessions area got uncommented, and maybe 
shouldn't have been? Or has something wrong within the reference?

-Original Message-
From: Lisa [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 11:19 AM
To: users@tomcat.apache.org
Subject: Weird Exception thrown on startup (how to resolve?)



What is throwing the following Exception?  How to fix?

---
INFO: Filter 'sessionFilter' configured successfully
Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions: java.io.EOFException
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStrea
.java:2279)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInput
tream.java:2748)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:78
)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at
org.apache.catalina.util.CustomObjectInputStream.init(CustomObject
nputStream.java:57)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.j
va:361)
at
org.apache.catalina.session.StandardManager.load(StandardManager.jav
:320)
at
org.apache.catalina.session.StandardManager.start(StandardManager.ja
a:636)
at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java
431)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
155)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav
:310)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecyc
eSupport.java:119)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:44
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:
50)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:70
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Feb 15, 2007 10:15:18 AM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage
java.io.EOFException
at
java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStrea
.java:2279)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInput
tream.java:2748)
at
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:78
)
at java.io.ObjectInputStream.init(ObjectInputStream.java:280)
at
org.apache.catalina.util.CustomObjectInputStream.init(CustomObject
nputStream.java:57)
at
org.apache.catalina.session.StandardManager.doLoad(StandardManager.j
va:361)
at
org.apache.catalina.session.StandardManager.load(StandardManager.jav
:320)
at
org.apache.catalina.session.StandardManager.start(StandardManager.ja
a:636)
at
org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java
431)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:
155)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBas
.java:759)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:7
9)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524

at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.ja
a:904)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.
ava:867)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:47
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.jav

startup error

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
Hi folks, I was trying to get DBCP working and tried adding the Resource param 
info per the TC 4.1 documentation:
 
Context path=/DBTest docBase=DBTest
debug=5 reloadable=true crossContext=true
Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt
timestamp=true/

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

ResourceParams name=jdbc/myoracle
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valueoracle.jdbc.OracleDriver/value
/parameter
parameter
nameurl/name
valuejdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID/value
/parameter
parameter
nameusername/name
valueusernameval/value
/parameter
parameter
namepassword/name
valuepasswordval/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
/ResourceParams
/Context

-

and I get the following message on my console, followed by an abrupt shutdown 
immediately.

C:\jakarta-tomcat-4.1.31\binrem @echo off

C:\jakarta-tomcat-4.1.31\binif Windows_NT == Windows_NT setlocal

C:\jakarta-tomcat-4.1.31\binrem ---


C:\jakarta-tomcat-4.1.31\binrem Start script for the CATALINA Server

C:\jakarta-tomcat-4.1.31\binrem

C:\jakarta-tomcat-4.1.31\binrem $Id: startup.bat,v 1.4 2002/01/15 02:55:38 patr
ickl Exp $

C:\jakarta-tomcat-4.1.31\binrem ---


C:\jakarta-tomcat-4.1.31\binrem Guess CATALINA_HOME if not defined

C:\jakarta-tomcat-4.1.31\binif not  ==  goto gotHome

C:\jakarta-tomcat-4.1.31\binset CATALINA_HOME=.

C:\jakarta-tomcat-4.1.31\binif exist .\bin\catalina.bat goto okHome

C:\jakarta-tomcat-4.1.31\binset CATALINA_HOME=..

C:\jakarta-tomcat-4.1.31\binif exist ..\bin\catalina.bat goto okHome

C:\jakarta-tomcat-4.1.31\binset EXECUTABLE=..\bin\catalina.bat

C:\jakarta-tomcat-4.1.31\binrem Check that target executable exists

C:\jakarta-tomcat-4.1.31\binif exist ..\bin\catalina.bat goto okExec

C:\jakarta-tomcat-4.1.31\binrem Get remaining unshifted command line arguments
and save them in the

C:\jakarta-tomcat-4.1.31\binset CMD_LINE_ARGS=

C:\jakarta-tomcat-4.1.31\binif  ==  goto doneSetArgs

C:\jakarta-tomcat-4.1.31\bincall ..\bin\catalina.bat start
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   C:\j2sdk1.4.0
C:\jakarta-tomcat-4.1.31\bin

 

Any idea what could be out of place here? If I remove the above attributes for 
the resource params, the error doesn't occur.

Any feedback would be appreciated -- thanks.

 



RE: Tomcat 5.5.9 on Sun Solaris: JSP compilation error

2007-02-15 Thread Propes, Barry L [GCG-NAOT]
might require updated jar files for the servlets and jsps?

-Original Message-
From: Daniel Gresh [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 15, 2007 1:34 PM
To: Tomcat Users List
Subject: Tomcat 5.5.9 on Sun Solaris: JSP compilation error


Hi list,

Recently I upgraded Tomcat from 4.0.5 to 5.5.9, due to some unusual 
problems I was experiencing with Tomcat 4.0.5. I was getting some Java 
compilation errors when I used JDK1.5 features, and neither I nor the 
two who replied to my message could figure out why. Upgrading was 
suggested, so we upgraded to Tomcat 5.5.9.

I'm running some simple tests using some basic code that involves JDK1.5 
to find out if everything can compile correctly. However, when I deploy 
my index.jsp to the server and try to launch it from 
http://localhost:port#, I get a compilation error that makes no sense to 
me (because I know the code I have compiles correctly with javac). This 
is the index.jsp file:

!doctype html public -//w3c//dtd html 4.0 transitional//en 
http://www.w3.org/TR/REC-html40/strict.dtd;
%@ page import=java.util.ArrayList %
%@ page contentType=text/html;charset=UTF-8 language=java %
html
headtitleTEXT/title/head
 
body
 
%
  String[] s = {1, 2};
for (String x : s) {
}
%
 
/body
/html

This is the error message:


  HTTP Status 500 -



*type* Exception report

*message*

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

*exception*

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

An error occurred at line: 9 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token(s), misplaced construct(s)

An error occurred at line: 9 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token ), : expected



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

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

org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I don't know what is wrong. I have JDK1.5.0_06 installed on the UNIX box 
Tomcat is installed on, so the code should certainly be compiling.

One thing that bothers me is this:

When I use shutdown.sh or startup.sh to shutdown and startup Tomcat, 
respectively, the terminal output tells me:

Using JRE_HOME: /usr/local/jdk1.5.0_06

Should this not be JAVA_HOME instead of JRE_HOME? I have a JAVA_HOME 
environment variable that is set to what JRE_HOME is currently set to. 
Also when I use printenv JRE_HOME, it returns nothing. Is this a problem?

Thanks for any help you can offer,
Dan

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


-
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 - tomcat sending delay

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
ok, thanks.

-Original Message-
From: Babu Satasiya [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 13, 2007 4:58 PM
To: users@tomcat.apache.org
Subject: RE: mod_jk - tomcat sending delay



Hi,

oh!! 

Its always - Apache+mod_jk  - connecting to multiple tomcates on different
systems.

With regards,

Babu Satasiya


Propes, Barry L [GCG-NAOT] wrote:
 
 New using Tomcat 5 series -- just where is mod_jk within Tomcat?
 
 Please let me know.
 
 Thanks,
 
 
 -Original Message-
 From: babu [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 09, 2007 4:11 PM
 To: users@tomcat.apache.org
 Subject: Re: [OT] mod_jk - tomcat sending delay
 
 
 
 Hi,
 
 We are also facing same problem and we are using mod_jk 1.2.6 with apache
 2.0.53 and tomcat 5.0.27. Mod_jk is configured with loadbalancer. We have
 Apache+mod_jk with LB +  9 tomcats in backend. Mod_jk is set with sticky
 bit
 set.
 
 Partial workers.properites
 
 worker.list=loadbalancer
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=tc_1_1,tc_1_2,tc_1_3,tc_2_1,tc_2_2,tc_2_3,tc_3_1,tc_3_2,tc_3_3
 
 
 
 worker.tc_1_1.host=cna-prod-app-25
 worker.tc_1_1.port=8000
 worker.tc_1_1.type=ajp13
 worker.tc_1_1.lbfactor=1
 worker.tc_1_1.cachesize=50
 worker.tc_1_1.cache_timeout=180
 worker.tc_1_1.socket_timeout=300
 worker.tc_1_1.socket_keepalive=1
 worker.tc_1_1.recovery_options=0
 worker.tc_1_1.sticky_session=1
 
 server.xml
 
 Connector port=8000
   protocol=AJP/1.3
   address=cna-prod-app-25
   minProcessors=50
   maxProcessors=100
   enableLookups=false
   debug=0
   URIEncoding=UTF-8
   connectionTimeout=18
   /
 
 I found in one of discussion board, that connection timeout in sever.xml
 and
 timeout parameters in workers.properties should be matched properly and
 also
 found that in server.xml its in miliseconds and in workers.properites it
 is
 seconds.
 
 
 We do not find any issue at client side but erorr keeps going in mod_jk
 log.
 ( I am not sure of client side issues are there or not)
 
 
 mod_jk log
 
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:00:55 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_3_3 failed errno = 0
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.109:8002), err=-1
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:01:21 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_1_3 failed errno = 0
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8001), err=-1
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=2
 [Fri Feb 09 22:01:41 2007]  [jk_ajp_common.c (1477)]: Error connecting to
 tomcat. Tomcat is probably not started or is listening on the wrong port.
 worker=tc_2_2 failed errno = 0
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.109:8000), err=-1
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:01:44 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=0
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8002), err=-1
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent to the client (yet)
 [Fri Feb 09 22:02:03 2007]  [jk_ajp_common.c (1449)]: ERROR: Receiving
 from
 tomcat failed, recoverable operation. err=1
 [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (783)]: ERROR: can't receive
 the response message from tomcat, network problems or tomcat is down
 (128.107.229.110:8002), err=-1
 [Fri Feb 09 22:02:49 2007]  [jk_ajp_common.c (1250)]: Tomcat is down or
 network problems. No response has been sent

RE: Connection Pool configuration

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
also,

I'm looking for my DBCP configuration in the server.xml file and see the very 
generic:

  Resource name=jdbc/EmployeeAppDb auth=SERVLET
type=javax.sql.DataSource/
  ResourceParams name=jdbc/EmployeeAppDb
parameternameuser/namevaluesa/value/parameter
parameternamepassword/namevalue/value/parameter
parameternamedriverClassName/name
  valueorg.hsql.jdbcDriver/value/parameter
parameternamedriverName/name
  valuejdbc:HypersonicSQL:database/value/parameter
  /ResourceParams

Is this actually it?
Do I just need to recreate my own or do I add additional resource params to 
this?
Like for instance, that below.

 parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter


I didn't see a preconfigured DBCP setting that's commented out. Any feedback 
would be great!

Thanks,
.

-Original Message-
From: Propes, Barry L [GCG-NAOT] 
Sent: Wednesday, February 14, 2007 10:17 AM
To: Tomcat Users List
Subject: RE: Connection Pool configuration


are you talking under the META-INF folder of the app I suppose? Just so that 
I'm clear.

I was looking at the documentation of TC 5.5 and it mentioned a jar file titled 
naming-factory-dbcp.jar.
I don't seem to have that under either of my lib directories -- common or root.
I do have naming-factory.jar, but is that good enough for DB Connection Pooling?

Anyone that's dealt with 4.0 or 4.1 know?

-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:36 PM
To: Tomcat Users List
Subject: Re: Connection Pool configuration


Hi,

I'm not sure bout Tomcat 4.0, but i think in 4.1 u could do it through the 
admin page.
Just create a Datasource under ur apps context should do the trick.

Thanx.
Regards,
FooShyn
- Original Message - 
From: Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 09, 2007 12:01 AM
Subject: Connection Pool configuration


Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.

I badly need to get connection pooling configured, but am not quite sure how 
to do it.

Here's  a block from my server.xml file.


Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /


This goes to the users table created for password sessions.

Do I configure anything here for Connection Pooling? Do I add
maxActive 8
minIdle 0 , etc.?

How would I alter or configure this? Any advice is welcomed.

Thanks,

Barry






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 
3:33 PM



-
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: Connection Pool configuration

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
are you talking under the META-INF folder of the app I suppose? Just so that 
I'm clear.

I was looking at the documentation of TC 5.5 and it mentioned a jar file titled 
naming-factory-dbcp.jar.
I don't seem to have that under either of my lib directories -- common or root.
I do have naming-factory.jar, but is that good enough for DB Connection Pooling?

Anyone that's dealt with 4.0 or 4.1 know?

-Original Message-
From: Foo Shyn [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 08, 2007 7:36 PM
To: Tomcat Users List
Subject: Re: Connection Pool configuration


Hi,

I'm not sure bout Tomcat 4.0, but i think in 4.1 u could do it through the 
admin page.
Just create a Datasource under ur apps context should do the trick.

Thanx.
Regards,
FooShyn
- Original Message - 
From: Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 09, 2007 12:01 AM
Subject: Connection Pool configuration


Hello, I'm dealing with Tomcat 4.0.1 and -4.1.3.

I badly need to get connection pooling configured, but am not quite sure how 
to do it.

Here's  a block from my server.xml file.


Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
 driverName=oracle.jdbc.OracleDriver
 connectionURL=jdbc:oracle:thin:@169.xxx.xx.xxx:1521:SID
 connectionName=user_name
 connectionPassword=user_pwd
 userTable=users userNameCol=user_name userCredCol=user_pass
 userRoleTable=user_roles roleNameCol=role_name /


This goes to the users table created for password sessions.

Do I configure anything here for Connection Pooling? Do I add
maxActive 8
minIdle 0 , etc.?

How would I alter or configure this? Any advice is welcomed.

Thanks,

Barry






No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.30/674 - Release Date: 2/7/2007 
3:33 PM



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



multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
Hi,
 
I'm running 4.0.1 currently on my local box, but our prod box has 4.1.3. I was 
wondering, if I copy down the newer version, can I run it also (not 
simultaneously) but without having to delete the older version?

Can I just set the jdk path appropriately and run it like I would my older 
version?

PLease advise.
 
Thanks.


RE: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
ok, thanks, David.

-Original Message-
From: David Kerber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 12:21 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


Propes, Barry L [GCG-NAOT] wrote:

Hi,
 
I'm running 4.0.1 currently on my local box, but our prod box has 4.1.3. I was 
wondering, if I copy down the newer version, can I run it also (not 
simultaneously) but without having to delete the older version?
  

You could even run them simultaneously if you make sure you don't have 
any conflicts in the ports they are using.

D



-
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: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
gotcha! Thanks.
Both were running at port 8080, just not simultaneously. I should be ok in that 
regard, correct?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 1:22 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

David Kerber wrote:
 Propes, Barry L [GCG-NAOT] wrote:
 I'm running 4.0.1 currently on my local box, but our prod box has
 4.1.3. I was wondering, if I copy down the newer version, can I run it
 also (not simultaneously) but without having to delete the older version?
  
 You could even run them simultaneously if you make sure you don't have
 any conflicts in the ports they are using.

To echo David's comments, I have TC 4.1.34 running alongside 5.5 on my
development servers, all at the same time. I have 4 JVMs running... 3
with 4.1.34 and 1 with 5.5 with no problems at all.

Davis is absolutely correct in that you have to be careful not to
overlap port numbers or things won't work.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF02FV9CaO5/Lv0PARAhzqAKCqwOq0/8c8oh033PwMEwWDH+W0AACfWsd8
0O9x8s4h0mkbOanFcKDH11U=
=rDKv
-END PGP SIGNATURE-

-
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: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
what does that entail? Just going and switching it in a properties file 
somewhere? Or making an entirely new properties file?

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 2:31 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 gotcha! Thanks.
 Both were running at port 8080, just not simultaneously. I should be ok in 
 that regard, correct?

Yeah, you should be fine.

What I do on my machines is front everything with Apache httpd and then
use JkMounts to map different URL spaces to different workers/Tomcats.

This way, each Tomcat can run completely independently of the others.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF03Fq9CaO5/Lv0PARAsj2AKCNE7q0Kq34/EcC0la7O292FO+MHwCgmrSJ
DIH5iKzkhk7rdR63Mt4zh88=
=9xec
-END PGP SIGNATURE-

-
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: multiple versions of TC

2007-02-14 Thread Propes, Barry L [GCG-NAOT]
perfect! Thanks, Chris!

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 3:27 PM
To: Tomcat Users List
Subject: Re: multiple versions of TC


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Barry,

Propes, Barry L [GCG-NAOT] wrote:
 what does that entail? Just going and switching it in a properties
 file somewhere? Or making an entirely new properties file?

Take a look at the Advanced section of RUNNING.TXT in your Tomcat
installation directory. You can run more than one copy of Tomcat with
different server.xml files (and deployed webapps, etc.) at the same time.

Then, if you want to put Apache httpd out front, only a single mod_jk
config and workers.properties file is needed. You just map each URL
space to a separate worker.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF036b9CaO5/Lv0PARAq7JAJ0Rk7WE5StxPGH0jGcQEi38lIhd7gCgs6on
yJTOpZagnNimDh8+zDqkW1Q=
=DzlM
-END PGP SIGNATURE-

-
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 load up error, w/ Oracle

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
Hi folks, I've been having some issues anyway with Oracle in my Java app the 
last week or so.
Originally, I thought it was due to some references where I was using the old 
sun.jdbc.odbc.JdbcOdbcDriver rather than the thin Oracle driver.

So in any reference I had this, I've switched it to the Oracle thin like so:

Class.forName(oracle.jdbc.driver.OracleDriver);
   String dbURL = jdbc:oracle:thin:@192.xxx.xx.xxx:1521:SID;

My error is listed below. I guess my question is, do any of you think this is 
mainly with Oracle, or perhaps the driver in the Tomcat lib directory got 
corrupt? Or is this a Tomcat issue at all even? I'm inclined to think the 
driver (jar file) might have gotten corrupt possibly, but that would be 
unlikely and that it's more of an issue with Oracle.

I welcome any feedback.

Thanks,

Barry



Catalina.start: LifecycleException:  Exception opening database connection:  jav
a.sql.SQLException: Io exception: The Network Adapter could not establish the co
nnection
LifecycleException:  Exception opening database connection:  java.sql.SQLExcepti
on: Io exception: The Network Adapter could not establish the connection
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Io exception: The Network Adapter could not establish the
 connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:418)

at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)

-
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 load up error, w/ Oracle

2007-02-13 Thread Propes, Barry L [GCG-NAOT]
only periodically.


-Original Message-
From: Jason Pyeron [mailto:[EMAIL PROTECTED]
Sent: Monday, February 12, 2007 1:35 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat load up error, w/ Oracle


Are you able to connect to the Oracle box using sqlplus from the tomcat box?



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-   -
- Jason Pyeron  PD Inc. http://www.pdinc.us -
- Sr. Consultant10 West 24th Street #100-
- +1 (443) 269-1555 x333Baltimore, Maryland 21218   -
-   -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information. If you
have received it in error, purge the message from your system and
notify the sender immediately.  Any other use of the email by you
is prohibited. 


-Original Message-
From: Propes, Barry L [GCG-NAOT] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, February 13, 2007 11:43
To: Tomcat Users List
Subject: Tomcat load up error, w/ Oracle

Hi folks, I've been having some issues anyway with Oracle in my Java app the
last week or so.
Originally, I thought it was due to some references where I was using the
old sun.jdbc.odbc.JdbcOdbcDriver rather than the thin Oracle driver.

So in any reference I had this, I've switched it to the Oracle thin like so:

Class.forName(oracle.jdbc.driver.OracleDriver);
   String dbURL = jdbc:oracle:thin:@192.xxx.xx.xxx:1521:SID;

My error is listed below. I guess my question is, do any of you think this
is mainly with Oracle, or perhaps the driver in the Tomcat lib directory got
corrupt? Or is this a Tomcat issue at all even? I'm inclined to think the
driver (jar file) might have gotten corrupt possibly, but that would be
unlikely and that it's more of an issue with Oracle.

I welcome any feedback.

Thanks,

Barry



Catalina.start: LifecycleException:  Exception opening database connection:
jav
a.sql.SQLException: Io exception: The Network Adapter could not establish
the co
nnection
LifecycleException:  Exception opening database connection:
java.sql.SQLExcepti
on: Io exception: The Network Adapter could not establish the connection
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
88)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Io exception: The Network Adapter could not establish
the
 connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)
at
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:418)

at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:521)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:325)

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



<    1   2   3   4   5   6   7   >