Re: Server setup

2006-03-08 Thread Leon Rosenberg
On 3/8/06, Morten Andersen [EMAIL PROTECTED] wrote:
 How can I set up my server environment when my requirements are the
 following:

 * Multihoming must be possible without restart of the server
 * The server must be secure.

 Should I setup an apache server in front of tomcat to handle multihoming
 and then run a tomcat per application? Or can Tomcat handle all these
 things just as good as apache?

Normally I would say that you don't need an apache. But if you want to
add new 'homes' without restart of the webapp part, it might be wise
to put an apache in front. You could put all your webapps in one
tomcat and provide virtual hosts and application routing via apache.
On my personal hosting site I have to jsp container instances and one
apache in front. The container instances are one for production and
one for testing, so i can restart it on demand without affecting the
production part. As soon as the customer is happy with the app it's
moved from test to production container.




 Regards

 Morten Andersen

Leon




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



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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread David Delbecq
Buddy wu a écrit :

2006/3/7, David Kerber [EMAIL PROTECTED]:
  

Context caseSensitive=false


thanks a lot. it worked.
and I think someone discussed other problem of these question maybe
right. but my goal is only to let tomcat's URL or URI (I don't kown
which is wright, or all are write) case-insensitive. I don't care the
case-sensitive feature in jsp or servlet file can work( maybe it MUST
case-sensitive, because of java language, but I don't care about
these. I just need URL is CASE-INSENSITIVE, And it will be ok to me)

  

This only applies to ressource url, not servlet url, neither filters,
nor security-constraint.

and the security problem that someone has said, I think it may not be
so important. If a hacker want to detect your site, I think he will
test all posibles JSP Jsp jSP and others.

  

That's not where security problem lies:
Let's assume your public site is at
http://yourserver/yourwebapp/index.jsp
if casesensitiveness is deactivated and you are using a case sensitive
filesystem (like the microsoft ones), accessing
http://yourserver/yourwebapp/index.jsP will point to same filesystem
ressouce, but with one exception, it will not be handled by jsp engine
and requester will simply get the jsp source  instead of generated html
(a jsp source could contain potentially critical informations like
database connection informations)

More dangerous, suppose your application have an admin interface located at
http://yourserver/yourwebapp/admin/
with a security-constraint in web.xml mapped to 'admin/*', any anonymous
user can have his browser point at 'AdMiN/' and will have access to
admin interface without authentification, bypassing securities!

Of course it's not a problem if you don't have jsps, neither servlets,
nor security constraints, that if you are serving static content. But
then ,why using tomcat?

but thanks again ,everyone
  

Buddy wu wrote:



2006/3/7, Long [EMAIL PROTECTED]:


  

Buddy wu wrote:
I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
I mean: when I write in browser's 'http://localhost/test.html'
equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
WINDOWS can but Linux/unix can't?

Right, url is case-insensitive under Windows because the file system




But, the FACT is that under Windows the URL is CASW-SENSITIVE, not
case-insecsitive , why?

I've tried, under Windows, test.html and TEST.html is diffrent in
tomcat server. Is there a parameter to set??



  

can't tell a difference between test.html and TEST.html. The difference
is there under Linux/UNIX.

Long


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






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





  


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





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

  



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



Re: Tomcat Crashes after 1000 sessions.

2006-03-08 Thread Tomasz Nowak
Vikram Godse [EMAIL PROTECTED] wrote:

 Hi,
 My CATALINA_OPTS parameter has the following values i have 4gb ram on
 my server

  CATALINA_OPTS=-server -XX:MaxPermSize=512m -Xms1024m -Xmx1024m

 This is what i see in the tomcat manager server info.
  Max threads: 200 Min spare threads: 4 Max spare threads: 50 Current
 thread count: 20 Current thread busy: 17
  Max processing time: 560464 ms Processing time: 2668.859 s Request
 count: 2800 Error count: 46 Bytes received: 0.00 MB Bytes sent: 27.28
 MB

 My Max threads are 200 of which current thread count is 20 and current
 busy are 17 with
 128 active sessions.

The same problem here.

Tomcat 5.5.15, Java 1.5.0,
CATALINA_OPTS: -XX:MaxPermSize=512m -Xms1024m -Xmx1024m

Info from one of the managers webapps:

Max threads: 200
Min spare threads: 25
Max spare threads: 50
Current thread count: 57
Current thread busy: 16

Sessions: 192

-- 
T.



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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread Hadraba Petr
Sorry,
for my posting, but

On 3/8/06, David Delbecq [EMAIL PROTECTED] wrote:
 Buddy wu a écrit :

 2006/3/7, David Kerber [EMAIL PROTECTED]:
 
 
 Context caseSensitive=false
 
 
 thanks a lot. it worked.
 and I think someone discussed other problem of these question maybe
 right. but my goal is only to let tomcat's URL or URI (I don't kown
 which is wright, or all are write) case-insensitive. I don't care the
 case-sensitive feature in jsp or servlet file can work( maybe it MUST
 case-sensitive, because of java language, but I don't care about
 these. I just need URL is CASE-INSENSITIVE, And it will be ok to me)
 
 
 
 This only applies to ressource url, not servlet url, neither filters,
 nor security-constraint.

 and the security problem that someone has said, I think it may not be
 so important. If a hacker want to detect your site, I think he will
 test all posibles JSP Jsp jSP and others.
 
 
 
 That's not where security problem lies:
 Let's assume your public site is at
 http://yourserver/yourwebapp/index.jsp
 if casesensitiveness is deactivated and you are using a case sensitive
 filesystem (like the microsoft ones), accessing

NTFS, FAT -- mayby they are case sensitive, but the filesystem layer
not. Try to create two files in one directory; one named a.txt and the
second A.txt. The billboard ocures! On Unix systems is this possible
-- Makefile is not makefile;-)

 http://yourserver/yourwebapp/index.jsP will point to same filesystem
 ressouce, but with one exception, it will not be handled by jsp engine
 and requester will simply get the jsp source  instead of generated html
 (a jsp source could contain potentially critical informations like
 database connection informations)

 More dangerous, suppose your application have an admin interface located at
 http://yourserver/yourwebapp/admin/
 with a security-constraint in web.xml mapped to 'admin/*', any anonymous
 user can have his browser point at 'AdMiN/' and will have access to
 admin interface without authentification, bypassing securities!

 Of course it's not a problem if you don't have jsps, neither servlets,
 nor security constraints, that if you are serving static content. But
 then ,why using tomcat?

 but thanks again ,everyone
 
 
 Buddy wu wrote:
 
 
 
 2006/3/7, Long [EMAIL PROTECTED]:
 
 
 
 
 Buddy wu wrote:
 I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in 
  URL
 I mean: when I write in browser's 'http://localhost/test.html'
 equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
 WINDOWS can but Linux/unix can't?
 
 Right, url is case-insensitive under Windows because the file system
 
 
 
 
 But, the FACT is that under Windows the URL is CASW-SENSITIVE, not
 case-insecsitive , why?
 
 I've tried, under Windows, test.html and TEST.html is diffrent in
 tomcat server. Is there a parameter to set??
 
 
 
 
 
 can't tell a difference between test.html and TEST.html. The difference
 is there under Linux/UNIX.
 
 Long
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




Re: Tomcat 5.0.28 memory leak

2006-03-08 Thread Eric Rotick
I have a similar problem which I gave up trying to diagnose any
further as nobody else seemed to have the problem. I'm using Tomcat
5.0.28 and JVM 1.4.2_10 under RedHat 8, 9 and CentOS 4.2 with 1GB RAM.
I don't explicitly set any JVM heap parameters.

I have profiled the application using JProfiler and it does not show a
leak. It shows the classic saw tooth shape where the heap grows to
some limit and then gets garbage collected.

Now the interesting thing. The Linux application, as reported by top,
grows until all RAM and swap are exhausted but the JVM never reports
an out of memory exception. I know there are issues with multi
threaded applications and the use of top but, from the Linux kernels
point of view, something has used all the memory. Profiling that very
same instance of the application shows that all is well with the heap.

All I do now is bounce Tomcat every 24 hours as seems to be the
general opinion on the list. I am hoping that 5.5 will sort this out
but I can't move up just yet.

Just my tuppence worth.

On 3/7/06, Tim Lucia [EMAIL PROTECTED] wrote:
 You don't *have* to make it serializable.  But if you don't, sessions cannot
 be persistent across a Tomcat shutdown, nor can they be replicated in a
 clustered environment.  The error below is pointing out this fact to you.

 Tim

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 1:34 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 5.0.28 memory leak

 Why do I have to make my class serializable.It is a simple web application
 using the MemberData class for storing some data???


 |-+
 | |   Tim Lucia  |
 | |   [EMAIL PROTECTED]|
 | |   om  |
 | ||
 | |   03/07/2006 12:26 |
 | |   PM   |
 | |   Please respond to|
 | |   Tomcat Users|
 | |   List|
 |-+

 ---
 ---|
   |
 |
   |   To:   'Tomcat Users List' users@tomcat.apache.org
 |
   |   cc:
 |
   |   Subject:  RE: Tomcat 5.0.28 memory leak
 |

 ---
 ---|




 The error below is because the class aaa.pm.server.beans.MemberData does not
 implement java.io.Serializable.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 1:09 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 5.0.28 memory leak

 Yes I tried JProbe and during memory debugging I see char[] size going up.If
 I look into bug databases there are various reasons.Some talk to
 commons-logging others about session persistance.
 I am getting the following error in my log4j log for the application.Also I
 noticed if I run tomcat as an application it doesn't break though I do have
 memory increase slowly but if I start it as service it breaks even with a
 few refreshes of the page.


 [2006-03-07 11:00:39,734] Thread-1 org.apache.catalina.session.ManagerBase
 ERROR - IOException while loading persisted sessions:
 java.io.WriteAbortedException: writing aborted;
 java.io.NotSerializableException: aaa.pm.server.beans.MemberData
 java.io.WriteAbortedException: writing aborted;
 java.io.NotSerializableException: aaa.pm.server.beans.MemberData
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1268)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
   at java.util.LinkedList.readObject(LinkedList.java:702)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

 )
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

 .java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at
 java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:809)
   at
 java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1733)
   at
 java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1636)
   at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1264)
   at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)
   at
 org.apache.catalina.session.StandardSession.readObject(StandardSession.java:

 1342)
   at
 org.apache.catalina.session.StandardSession.readObjectData(StandardSession.j

 ava:885)
   at
 org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:416)

   at
 org.apache.catalina.session.StandardManager.load(StandardManager.java:343)
   at
 

[OT] Question about licensing

2006-03-08 Thread Leon Rosenberg
I'm sorry for OT, but I am pretty stupid with legal stuff, and after
carefully reading gnu und apache license packages I am as unknowing as
I was before. Here my problem:

I am trying to convince one of my customers to make some of the libs I
wrote for him public available. For process reasons the source code of
the libs will not be available, only the jars would be available and
redistributeable. I thought publishing the jar under the LGPL would
make it, but after reading http://www.gnu.org/licenses/lgpl.html I'm
starting to doubt it.

Since we must have many experts in licensing here, I think there is no
better place to ask :-)

The jars would be free for copy, modification, usage, all the gpl
stuff, but not available in sourcecode. This is because the company,
which owns the code, has to make additional reporting to the
headquarters in case they would publish the source code and ensure,
that there are no comments in the source code, that contain
non-disclosure information. Publishing the jars only would be lot of
easier for them, and the probability, that they would do it, is
higher. So under which license do they need to publish the jars?

Or is it something which can be achieved by a trick? Creating a dummy
application which contains the jars and put the application under
lgpl, therefore providing source code for the application, but no
source code for the libs?

any help is highly appreciated

regards
leon

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



Tomcat 5.5.12 illegalStateexception

2006-03-08 Thread Alvermann, Markus
Hi there,
i have a jsp which runs just fine under tomcat 5.5.9 but throws an exception in 
tomcat 5.5.12 and 5.5.15.
Here is a part of the code:

code snippet
ByteArrayOutputStream baos = new ByteArrayOutputStream();
//creates a pdf out of the baos
pdfPrinterEB.createPDF(baos);
  response.setContentType(application/pdf);
//set Header Information
response.setHeader(Content-disposition, inline;  
  filename=+pdfPrinterEB.getFileName());
response.setHeader(Cache-Control, no-cache);
response.setHeader(Pragma:, no-cache);
response.setContentLength(baos.size());
try {
ServletOutputStream servletOut;
servletOut=response.getOutputStream(); 
baos. writeTo(servletOut);
servletOut.flush();
} catch (IOException ex) {
}  
codesnippet

The following exception occurs:

exception
08.03.2006 12:20:51 org.apache.catalina.core.StandardWrapperValve invoke
SCHWERWIEGEND: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for 
this response
at org.apache.catalina.connector.Response.getWriter(Response.java:606)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at 
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
at 
...
...
exception

Like I said before, the code works for Tomcat 5.5.9, neither getOutputstream() 
nor getWriter() are called at any place in the application.

Markus Alvermann


 



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



RE: [OT] Question about licensing

2006-03-08 Thread Peter Crowther
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
 For process reasons the source code of
 the libs will not be available

Then LGPL is unsuitable.

 The jars would be free for copy, modification, usage, all the gpl
 stuff, but not available in sourcecode.

Apache and LGPL are often unnecessarily complex.  (L)GPL in particular
is more a weapon of IP warfare than a software license in my opinion.
Why not a BSD or MIT license?  Do you need any further restrictions on
distribution of the libraries than those provide?

- Peter

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



JNDI datasource question

2006-03-08 Thread John Cherouvim

Hello

I have a JNDI Datasource pooling 10 connections on a database of my 
mysql server. Why does it use only one process on the mysql server? I 
have set max active to 10 connections and I am accessing the application 
from different IPs at the same time. I then perform a SHOW PROCESSLIST 
on mysql and I only see one process related to the datasource. On the 
other hand, applications which access the database directly or using 
programmatic connection polling use many processes as expected.


Could someone explain me if this is the case and why does it happen?

Thanks

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



HTTPS setup

2006-03-08 Thread Julie McCabe
Hi,

Ive configure SSL support as per documentation - I created the keystore and a 
self - signed certificate with the default password, uncommented the 8443 
connector for https in the conf/server.xml file.

The problem is that I cannot connect to https://localhost:8443 via the 
browser, in the log file there are no errors and it appears as the 8443 port 
is open as:
INFO: Starting Coyote HTTP/1.1 on http-8443

Nothing is logged to the log file when access to 8443 is attempted, the 
browser processes and eventually times out with the following alert:

The connection to localhost:8443 has terminated unexpectedly. Some data may 
have been transferred.

Environment: Java 1.5.0_04, Tomcat 5.5.12, Windows XP

Regards,
Julie.


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



RE: Repeated context reloading

2006-03-08 Thread Caldarale, Charles R
 From: Peiran Song [mailto:[EMAIL PROTECTED] 
 Subject: Repeated context reloading
 
 The catalina.out file records the following output every 10 minutes 
 while the specified JAR file is not touched/modified at all. 

Check the clock setting of the server and the date/time stamps of all
files in the webapp.  If any of the files appear to be in the future
relative to the server's clock, the app can be repeatedly reloaded.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JNDI datasource question

2006-03-08 Thread Tim Lucia
The number of connections is affected by three parameters:

initialSize=10
maxIdle=20
maxActive=50
also:
maxWait=5000

initialSize=10 says make 10 connections at startup.  SHOW PROCESSLIST will
reveal 10 processes in this case.

maxIdle=20 says close any idle connections in excess of 20.  SHOW
PROCESSLIST will reveal 20 or fewer idle processes in this case.

maxActive=50 says to cut off incoming connections at 50.  Any connection
attempt beyond 50 will wait for maxWait=5000 (5 seconds) for a free
connection before giving up.

Tim


-Original Message-
From: John Cherouvim [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:17 AM
To: users@tomcat.apache.org
Subject: JNDI datasource question

Hello

I have a JNDI Datasource pooling 10 connections on a database of my 
mysql server. Why does it use only one process on the mysql server? I 
have set max active to 10 connections and I am accessing the application 
from different IPs at the same time. I then perform a SHOW PROCESSLIST 
on mysql and I only see one process related to the datasource. On the 
other hand, applications which access the database directly or using 
programmatic connection polling use many processes as expected.

Could someone explain me if this is the case and why does it happen?

Thanks

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



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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread David Kerber
You're welcome.  That tradeoff between security and usability is a 
decision only you and your users can make, but I like to have the option 
to make that tradeoff if necessary.


Dave

Buddy wu wrote:


2006/3/7, David Kerber [EMAIL PROTECTED]:
 


Context caseSensitive=false
   


thanks a lot. it worked.
and I think someone discussed other problem of these question maybe
right. but my goal is only to let tomcat's URL or URI (I don't kown
which is wright, or all are write) case-insensitive. I don't care the
case-sensitive feature in jsp or servlet file can work( maybe it MUST
case-sensitive, because of java language, but I don't care about
these. I just need URL is CASE-INSENSITIVE, And it will be ok to me)

and the security problem that someone has said, I think it may not be
so important. If a hacker want to detect your site, I think he will
test all posibles JSP Jsp jSP and others.

but thanks again ,everyone
 


Buddy wu wrote:

   


2006/3/7, Long [EMAIL PROTECTED]:


 


Buddy wu wrote:
   I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in URL
   I mean: when I write in browser's 'http://localhost/test.html'
equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
WINDOWS can but Linux/unix can't?

Right, url is case-insensitive under Windows because the file system


   


But, the FACT is that under Windows the URL is CASW-SENSITIVE, not
case-insecsitive , why?

I've tried, under Windows, test.html and TEST.html is diffrent in
tomcat server. Is there a parameter to set??



 


can't tell a difference between test.html and TEST.html. The difference
is there under Linux/UNIX.

Long
   





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



Re: Invoker servlet

2006-03-08 Thread Parsons Technical Services

Do a search on servlet mapping. It will go in your web.xml.

Doug


- Original Message - 
From: Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Cc: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 08, 2006 12:57 AM
Subject: RE: Invoker servlet


Hi Wendy,

Thanks for your reply.
So it may lead to some security problems.
How can I avoid this ?

Any document/link will be of great help.

Thanks, 
Nagendra


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:45 AM

To: Tomcat Users List
Subject: Re: Invoker servlet

On 3/7/06, Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED] wrote:

As per Our product documentation guideline I have uncommented invoker 
servlet. Will it lead to any security problems ??

By Default its commented in tomcat 5.x.


http://tomcat.apache.org/faq/misc.html#invoker

--
Wendy

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


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





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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread David Delbecq
Hadraba Petr a écrit :

Sorry,
for my posting, but

  

That's not where security problem lies:
Let's assume your public site is at
http://yourserver/yourwebapp/index.jsp
if casesensitiveness is deactivated and you are using a case sensitive
filesystem (like the microsoft ones), accessing



NTFS, FAT -- mayby they are case sensitive, but the filesystem layer
not. Try to create two files in one directory; one named a.txt and the
second A.txt. The billboard ocures! On Unix systems is this possible
-- Makefile is not makefile;-)

  

Sorry for mistake, please read a case insensitive filesystem in my
previous mail (2 letters were stuck in keyboard).

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



Re: JNDI datasource question

2006-03-08 Thread John Cherouvim

Thanks for your detailed explanation.

In tomcat 5.0.28 I cannot find initialSize parameter. Is it something 
that was added later?
And by idle connection, do we mean the connection that was closed in a 
finally block (returned to the pool)?


John


Tim Lucia wrote:


The number of connections is affected by three parameters:

   initialSize=10
   maxIdle=20
   maxActive=50
also:
   maxWait=5000

initialSize=10 says make 10 connections at startup.  SHOW PROCESSLIST will
reveal 10 processes in this case.

maxIdle=20 says close any idle connections in excess of 20.  SHOW
PROCESSLIST will reveal 20 or fewer idle processes in this case.

maxActive=50 says to cut off incoming connections at 50.  Any connection
attempt beyond 50 will wait for maxWait=5000 (5 seconds) for a free
connection before giving up.

Tim


-Original Message-
From: John Cherouvim [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:17 AM

To: users@tomcat.apache.org
Subject: JNDI datasource question

Hello

I have a JNDI Datasource pooling 10 connections on a database of my 
mysql server. Why does it use only one process on the mysql server? I 
have set max active to 10 connections and I am accessing the application 
from different IPs at the same time. I then perform a SHOW PROCESSLIST 
on mysql and I only see one process related to the datasource. On the 
other hand, applications which access the database directly or using 
programmatic connection polling use many processes as expected.


Could someone explain me if this is the case and why does it happen?

Thanks

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



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


 




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



Re: [OT] Question about licensing

2006-03-08 Thread Leon Rosenberg
Thanx Ted and Peter,

MIT will do, I will suggest it to the customer, and it is really VERY
brief and understandable :-)

 Emmanouil:
IMO the libraries have very little value without the source code being
available under an OS license

Normally I would agree, but in this case the MIT license will give me
the opprotunity to create a product on top which would be then
opensource. The jar in question is a interval-stat-value framework,
the application above would be an interval-based
struts/servlet/whatever stats. We actually have one in usage right
now, and the results are magnificent. That's why I want to make an OS
project out of it, to use it in my other projects and to give the
community something back.

regards
Leon


On 3/8/06, Ted Husted [EMAIL PROTECTED] wrote:
 If it were me, I'd probably suggest putting the binaries under the MIT 
 license.

 * http://www.opensource.org/licenses/mit-license.php

 It talks about software but doesn't distinguish between source and
 object form.

 The MIT license also has the virtue of being brief and easy to understand :)

 Then, later, when there has been time to review and sanitize the
 source code, you would be able to include the source in the
 distribution under the same license.

 -Ted.

 On 3/8/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
  I'm sorry for OT, but I am pretty stupid with legal stuff, and after
  carefully reading gnu und apache license packages I am as unknowing as
  I was before. Here my problem:
 
  I am trying to convince one of my customers to make some of the libs I
  wrote for him public available. For process reasons the source code of
  the libs will not be available, only the jars would be available and
  redistributeable. I thought publishing the jar under the LGPL would
  make it, but after reading http://www.gnu.org/licenses/lgpl.html I'm
  starting to doubt it.
 
  Since we must have many experts in licensing here, I think there is no
  better place to ask :-)
 
  The jars would be free for copy, modification, usage, all the gpl
  stuff, but not available in sourcecode. This is because the company,
  which owns the code, has to make additional reporting to the
  headquarters in case they would publish the source code and ensure,
  that there are no comments in the source code, that contain
  non-disclosure information. Publishing the jars only would be lot of
  easier for them, and the probability, that they would do it, is
  higher. So under which license do they need to publish the jars?
 
  Or is it something which can be achieved by a trick? Creating a dummy
  application which contains the jars and put the application under
  lgpl, therefore providing source code for the application, but no
  source code for the libs?
 
  any help is highly appreciated
 
  regards
  leon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 HTH, Ted.
 ** http://www.husted.com/ted/blog/

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



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



Re: HTTPS setup

2006-03-08 Thread Dhaval Patel
Hi,

Based upon your description, I think you are trying to use JSSE way to enable 
SSL. Tomcat 5.5 has
two ways to enable SSL: 1) JSSE 2) OpenSSL.

If you are trying with JSSE, please remove tcnative-1.dll from your 
TOMCAT_HOME\bin directory. It
should work fine.

If you want to know how to do with OpenSSL, please go to:
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html 

Steps described in above URL are 100% working when you don't have 
Versign/Thwate signed
certificate. It is not case here I believe. :)

Let us know how it goes.

Regards,
D

--- Julie McCabe [EMAIL PROTECTED] wrote:

 Hi,
 
 Ive configure SSL support as per documentation - I created the keystore and a 
 self - signed certificate with the default password, uncommented the 8443 
 connector for https in the conf/server.xml file.
 
 The problem is that I cannot connect to https://localhost:8443 via the 
 browser, in the log file there are no errors and it appears as the 8443 port 
 is open as:
 INFO: Starting Coyote HTTP/1.1 on http-8443
 
 Nothing is logged to the log file when access to 8443 is attempted, the 
 browser processes and eventually times out with the following alert:
 
 The connection to localhost:8443 has terminated unexpectedly. Some data may 
 have been transferred.
 
 Environment: Java 1.5.0_04, Tomcat 5.5.12, Windows XP
 
 Regards,
 Julie.
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: Server setup

2006-03-08 Thread Morten Andersen

Leon Rosenberg skrev:

On 3/8/06, Morten Andersen [EMAIL PROTECTED] wrote:
  

How can I set up my server environment when my requirements are the
following:

* Multihoming must be possible without restart of the server
* The server must be secure.

Should I setup an apache server in front of tomcat to handle multihoming
and then run a tomcat per application? Or can Tomcat handle all these
things just as good as apache?



Normally I would say that you don't need an apache. But if you want to
add new 'homes' without restart of the webapp part, it might be wise
to put an apache in front. You could put all your webapps in one
tomcat and provide virtual hosts and application routing via apache.
On my personal hosting site I have to jsp container instances and one
apache in front. The container instances are one for production and
one for testing, so i can restart it on demand without affecting the
production part. As soon as the customer is happy with the app it's
moved from test to production container.
  
OK. I tried working with multihoming within tomcat a while ago without 
much luck. Seems I had to change server.xml to add a new domain. This 
seems to be easier using apache?


Morten




  

Regards

Morten Andersen



Leon

  


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





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



  




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



RE: JNDI datasource question

2006-03-08 Thread Tim Lucia
connection.close() on a pooled connection is returned to the pool, i.e.,
idled.  Unless doing so would exceed maxIdle, in which case it would be
really closed.

I can't say for sure when it was added, but I can say I've used it with
5.0.28, whether or not it was documented.  It's just a port / repackaging of
Commons DBCP, and that has had initialSize for a long time now.

Tim

-Original Message-
From: John Cherouvim [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:52 AM
To: Tomcat Users List
Subject: Re: JNDI datasource question

Thanks for your detailed explanation.

In tomcat 5.0.28 I cannot find initialSize parameter. Is it something that
was added later?
And by idle connection, do we mean the connection that was closed in a
finally block (returned to the pool)?

John


Tim Lucia wrote:

The number of connections is affected by three parameters:

initialSize=10
maxIdle=20
maxActive=50
also:
maxWait=5000

initialSize=10 says make 10 connections at startup.  SHOW PROCESSLIST 
will reveal 10 processes in this case.

maxIdle=20 says close any idle connections in excess of 20.  SHOW 
PROCESSLIST will reveal 20 or fewer idle processes in this case.

maxActive=50 says to cut off incoming connections at 50.  Any 
connection attempt beyond 50 will wait for maxWait=5000 (5 seconds) 
for a free connection before giving up.

Tim


-Original Message-
From: John Cherouvim [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:17 AM
To: users@tomcat.apache.org
Subject: JNDI datasource question

Hello

I have a JNDI Datasource pooling 10 connections on a database of my 
mysql server. Why does it use only one process on the mysql server? I 
have set max active to 10 connections and I am accessing the 
application from different IPs at the same time. I then perform a SHOW 
PROCESSLIST on mysql and I only see one process related to the 
datasource. On the other hand, applications which access the database 
directly or using programmatic connection polling use many processes as
expected.

Could someone explain me if this is the case and why does it happen?

Thanks

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



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


  



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



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



eclipse and tomcat deployment

2006-03-08 Thread azri Abdul Majid
Hi everybody,

I am using Eclipse-3.1.1 and tomcat-4.1.31. I have successfully retrieved my 
project from my cvs server. Actually I used JBuilder X for the development 
previously. And just now I am moving it to eclipse. 

I also successfully setup Lomboz, sysdeo and link it with tomcat. But I have 
problem on how to run my project. Anybody have any suggestion? Thanks.

- azri abdul majid


-- 
___

Search for businesses by name, location, or phone number.  -Lycos Yellow Pages

http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10


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



Your opinion on some logs - Apache/mod_jk/Tomcat

2006-03-08 Thread Pascal Alberty
Hi all,

I have some questions concerning the followings logs. Architecture is:
Apache/mod_jk/Tomcat/MySQL. May be somes are normal. Google searches
do not give me clear answers.

Thanks in advance !!




1. Apache - mod_jk.log

[Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312):
Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2

2. Apache - error.log

[Wed Mar 08 15:30:24 2006] [error] [client 217.136.140.100] request
failed: error reading the headers, referer: http://web_site_url

3. Tomcat - Catalina.log

Mar 8, 2006 3:09:06 PM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached

4. Tomcat - Catalina.log

Mar 8, 2006 3:16:24 AM org.apache.commons.modeler.Registry registerComponent
SEVERE: Error registering
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
javax.management.InstanceAlreadyExistsException:
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
at 
com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:452)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(DefaultMBeanServerInterceptor.java:1410)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:936)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:337)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Mar 8, 2006 3:16:24 AM org.apache.jk.common.ChannelSocket registerRequest
WARNING: Error registering request


--
Pascal Alberty

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



RE: Your opinion on some logs - Apache/mod_jk/Tomcat

2006-03-08 Thread Tim Lucia
The last one (4) results from not deregistering the object mentioned from
the JMX server.  Typically this is a register during contextInitialized
(ApplicationLifecycleListener) and a de-register during contextDestroyed.
The effect would be that a reloaded application would not be JMX-enabled and
the previous copy would not be garbaged collected.

Tim


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Pascal Alberty
Sent: Wednesday, March 08, 2006 9:44 AM
To: users@tomcat.apache.org; dev@httpd.apache.org
Subject: Your opinion on some logs - Apache/mod_jk/Tomcat

Hi all,

I have some questions concerning the followings logs. Architecture is:
Apache/mod_jk/Tomcat/MySQL. May be somes are normal. Google searches do
not give me clear answers.

Thanks in advance !!




1. Apache - mod_jk.log

[Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312):
Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2

2. Apache - error.log

[Wed Mar 08 15:30:24 2006] [error] [client 217.136.140.100] request
failed: error reading the headers, referer: http://web_site_url

3. Tomcat - Catalina.log

Mar 8, 2006 3:09:06 PM org.apache.jk.common.ChannelSocket processConnection
INFO: connection timeout reached

4. Tomcat - Catalina.log

Mar 8, 2006 3:16:24 AM org.apache.commons.modeler.Registry registerComponent
SEVERE: Error registering
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
javax.management.InstanceAlreadyExistsException:
Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
at
com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:45
2)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Def
aultMBeanServerInterceptor.java:1410)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Default
MBeanServerInterceptor.java:936)
at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultM
BeanServerInterceptor.java:337)
at
com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497
)
at
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:595)
Mar 8, 2006 3:16:24 AM org.apache.jk.common.ChannelSocket registerRequest
WARNING: Error registering request


--
Pascal Alberty

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



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



Re: Your opinion on some logs - Apache/mod_jk/Tomcat

2006-03-08 Thread Pascal Alberty
Thanks for your quick answer. Note that this log appears even there is
no management manipulation on Tomcat (reloading, deploying, ...).

Thanks

Pascal

On 3/8/06, Tim Lucia [EMAIL PROTECTED] wrote:
 The last one (4) results from not deregistering the object mentioned from
 the JMX server.  Typically this is a register during contextInitialized
 (ApplicationLifecycleListener) and a de-register during contextDestroyed.
 The effect would be that a reloaded application would not be JMX-enabled and
 the previous copy would not be garbaged collected.

 Tim


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Pascal Alberty
 Sent: Wednesday, March 08, 2006 9:44 AM
 To: users@tomcat.apache.org; dev@httpd.apache.org
 Subject: Your opinion on some logs - Apache/mod_jk/Tomcat

 Hi all,

 I have some questions concerning the followings logs. Architecture is:
 Apache/mod_jk/Tomcat/MySQL. May be somes are normal. Google searches do
 not give me clear answers.

 Thanks in advance !!




 1. Apache - mod_jk.log

 [Wed Mar 08 15:34:40 2006] [error] jk_child_init::mod_jk.c (2312):
 Attachning shm:/etc/apache2/logs/jk-runtime-status errno=2

 2. Apache - error.log

 [Wed Mar 08 15:30:24 2006] [error] [client 217.136.140.100] request
 failed: error reading the headers, referer: http://web_site_url

 3. Tomcat - Catalina.log

 Mar 8, 2006 3:09:06 PM org.apache.jk.common.ChannelSocket processConnection
 INFO: connection timeout reached

 4. Tomcat - Catalina.log

 Mar 8, 2006 3:16:24 AM org.apache.commons.modeler.Registry registerComponent
 SEVERE: Error registering
 Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
 javax.management.InstanceAlreadyExistsException:
 Catalina:type=RequestProcessor,worker=jk-8009,name=JkRequest171775
 at
 com.sun.jmx.mbeanserver.RepositorySupport.addMBean(RepositorySupport.java:45
 2)
 at
 com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.internal_addObject(Def
 aultMBeanServerInterceptor.java:1410)
 at
 com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(Default
 MBeanServerInterceptor.java:936)
 at
 com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultM
 BeanServerInterceptor.java:337)
 at
 com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:497
 )
 at
 org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
 at
 org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
 at
 org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
 at
 org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
 at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
 at
 org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
 at
 org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
 a:684)
 at java.lang.Thread.run(Thread.java:595)
 Mar 8, 2006 3:16:24 AM org.apache.jk.common.ChannelSocket registerRequest
 WARNING: Error registering request


 --
 Pascal Alberty

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



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




--
Pascal Alberty

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



RE: Invoker servlet

2006-03-08 Thread Devireddy, Nagendra Reddy (STSD)
Hi Doug,
Thanks for your reply.
I have uncommented that servlet in web.xml
Will it cause any harm ??

Thanks 

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 08, 2006 6:04 PM
To: Tomcat Users List
Subject: Re: Invoker servlet

Do a search on servlet mapping. It will go in your web.xml.

Doug


- Original Message -
From: Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 08, 2006 12:57 AM
Subject: RE: Invoker servlet


Hi Wendy,
 
Thanks for your reply.
So it may lead to some security problems.
How can I avoid this ?

Any document/link will be of great help.

Thanks, 
Nagendra

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 10:45 AM
To: Tomcat Users List
Subject: Re: Invoker servlet

On 3/7/06, Devireddy, Nagendra Reddy (STSD) [EMAIL PROTECTED] wrote:

 As per Our product documentation guideline I have uncommented invoker 
 servlet. Will it lead to any security problems ??
 By Default its commented in tomcat 5.x.

http://tomcat.apache.org/faq/misc.html#invoker

--
Wendy

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


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





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


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



Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-08 Thread David Goodenough
I have a servlet which I am trying to run under Tomcat 5.5.9 which has a 
background thread in it.  This thread uses JDBC, and in particular the 
Postgresql JDBC driver.  This driver uses PhantomReferences in order to
tidy up the underlying C objects.

But when it comes to use the PhantomReference it gets:-

at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at 
org.postgresql.core.v3.QueryExecutorImpl.registerParsedQuery(QueryExecutorImpl.java:1092)
at 
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1177)
at 
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:430)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:346)
at 
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:250)
  
The line in registerParsedQuery that is failing is:-

PhantomReference cleanupRef = new PhantomReference(query, 
parsedQueryCleanupQueue);

This should work on any JDK since Java 1.2.  I am running this with the Sun 
1.5 SDK.

Is this a sandbox problem?  If so what do I need to set in order to allow 
this to work?

Anyone got any idea why this might be failing?

David 

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



RE: Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-08 Thread Caldarale, Charles R
 From: David Goodenough [mailto:[EMAIL PROTECTED] 
 Subject: Odd problem with Tomcat 5.5.9 and PhantomReferences
 
 But when it comes to use the PhantomReference it gets:-
 
 at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
 lassLoader.java:1221)

Seem to have lost a critical piece of information - which exception?

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HTTPS setup

2006-03-08 Thread Julie McCabe
Hello,

Thanks for the advice, I had installed the APR as tomcat was failing to  
shutting down in Windows without it.  

Since my  overall objective is to use an existing X509 certificate signed by 
an academic CA (not Versign or Thwate)  I decided to try the openssl.  I 
followed the steps outlined in the 
http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html

I have an existing p12 file which is split into a key and a certificate, I 
only performed the 
openssl rsa -in userkey.pem -out server.key 
command to replace the passphrase from the private key.

I edited the conf/server.xml file as directed and pointed the 
SSLCertificateFile to the usercert.pem file and the SSLCertificateKeyFile to 
the generated server.key file.

I started tomcat - no errors in the logs and when I try to connect on 
https://localhost:8443
I receive the following alert:

Could not establish an encrypted connection because the certificate presented 
by localhost is invalid or corrupted. Error Code: -8101

The CA root certificate whom has signed my certificate is loaded into the 
browser (along with my certificate).

It seems like its a problem with my certificates?

Thanks,
Julie. 


On Wednesday 08 March 2006 13:31, Dhaval Patel wrote:
 Hi,

 Based upon your description, I think you are trying to use JSSE way to
 enable SSL. Tomcat 5.5 has two ways to enable SSL: 1) JSSE 2) OpenSSL.

 If you are trying with JSSE, please remove tcnative-1.dll from your
 TOMCAT_HOME\bin directory. It should work fine.

 If you want to know how to do with OpenSSL, please go to:
 http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html

 Steps described in above URL are 100% working when you don't have
 Versign/Thwate signed certificate. It is not case here I believe. :)

 Let us know how it goes.

 Regards,
 D

 --- Julie McCabe [EMAIL PROTECTED] wrote:
  Hi,
 
  Ive configure SSL support as per documentation - I created the keystore
  and a self - signed certificate with the default password, uncommented
  the 8443 connector for https in the conf/server.xml file.
 
  The problem is that I cannot connect to https://localhost:8443 via the
  browser, in the log file there are no errors and it appears as the 8443
  port is open as:
  INFO: Starting Coyote HTTP/1.1 on http-8443
 
  Nothing is logged to the log file when access to 8443 is attempted, the
  browser processes and eventually times out with the following alert:
 
  The connection to localhost:8443 has terminated unexpectedly. Some data
  may have been transferred.
 
  Environment: Java 1.5.0_04, Tomcat 5.5.12, Windows XP
 
  Regards,
  Julie.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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



Re: Odd problem with Tomcat 5.5.9 and PhantomReferences

2006-03-08 Thread David Goodenough
On Wednesday 08 March 2006 15:54, Caldarale, Charles R wrote:
  From: David Goodenough [mailto:[EMAIL PROTECTED]
  Subject: Odd problem with Tomcat 5.5.9 and PhantomReferences
 
  But when it comes to use the PhantomReference it gets:-
 
  at
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappC
  lassLoader.java:1221)

 Seem to have lost a critical piece of information - which exception?

Sorry, what I get is a ThreadDeath.  Which I take to mean that the class
loader is throwing a fit.

David

  - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



incorrect 400 return code if no webapps/ROOT

2006-03-08 Thread nord ehacedod

Something unusual...

If webapps/ROOT is not present tc returns:
HTTP/1.x 400 No Host matches server name ...
in response to requests for non-existant contexts
(such as http://localhost:8080/foobar/).

If webapps/ROOT/ exists a 404 is sent.
Tested 5.5.15 and 5.5.16 on XP and Solaris.

A bug?
-- 
nord


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

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



RE: Invoker servlet

2006-03-08 Thread Mark Eggers
For a general view:

http://tomcat.apache.org/tomcat-5.5-doc/appdev/deployment.html

For an example web.xml file:

http://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt

For the specification:

http://www.jcp.org/aboutJava/communityprocess/final/jsr053/

Basically you need to define your servlets in the qwb
application's web.xml as servlet/servlet elements.
 You then need to use
servlet-mapping/servlet-mapping elements to map
the servlet definitions to URL patterns.

/mde/
--- Devireddy, Nagendra Reddy (STSD)
[EMAIL PROTECTED] wrote:

 Hi Doug,
 Thanks for your reply.
 I have uncommented that servlet in web.xml
 Will it cause any harm ??
 
 Thanks 
 
 -Original Message-
 From: Parsons Technical Services
 [mailto:[EMAIL PROTECTED]
 
 Sent: Wednesday, March 08, 2006 6:04 PM
 To: Tomcat Users List
 Subject: Re: Invoker servlet
 
 Do a search on servlet mapping. It will go in your
 web.xml.
 
 Doug
 
 
 - Original Message -
 From: Devireddy, Nagendra Reddy (STSD)
 [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, March 08, 2006 12:57 AM
 Subject: RE: Invoker servlet
 
 
 Hi Wendy,
  
 Thanks for your reply.
 So it may lead to some security problems.
 How can I avoid this ?
 
 Any document/link will be of great help.
 
 Thanks, 
 Nagendra
 
 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 10:45 AM
 To: Tomcat Users List
 Subject: Re: Invoker servlet
 
 On 3/7/06, Devireddy, Nagendra Reddy (STSD)
 [EMAIL PROTECTED] wrote:
 
  As per Our product documentation guideline I have
 uncommented invoker 
  servlet. Will it lead to any security problems ??
  By Default its commented in tomcat 5.x.
 
 http://tomcat.apache.org/faq/misc.html#invoker
 
 --
 Wendy
 

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

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

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

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


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

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



LookupPrinterService problem

2006-03-08 Thread Asensio, Rodrigo
Hello guys
 
I'm running Java1.5 and Tomcat5.5

Starting the Tomcat as Windows Service it cannot find printers with this
code.

PrintService[] services = PrintServiceLookup.lookupPrintServices(null,
null);

But in my IDE, as Java stand alone, or running Tomcat from command line
it works perfectly.


Any clue ?? Any special setting to the server JVM ?? 

Regards

Rodrigo Asensio
Gilbarco Veeder Root

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

Ce message (ainsi que les eventuelles pieces jointes) est
exclusivement adresse au destinataire et contient des
informations confidentielles. La copie, la communication ou la
distribution du contenu de ce message sans l'accord prealable de
l'expediteur sont strictement interdits et peuvent constituer un
delit. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur. Si vous avez des questions se
rapportant a ce courrier electronique, merci de bien vouloir
notifier
l'expediteur immediatement.

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



RE: LookupPrinterService problem

2006-03-08 Thread Peter Crowther
 From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED] 
 Starting the Tomcat as Windows Service it cannot find 
 printers

What user is the service running as?  Also note that profiles are never
loaded for processes running as Windows services, so any profile
information that may be set for a given user (including the printer
information) won't be accessible to the service anyway.

- Peter

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



RE: LookupPrinterService problem

2006-03-08 Thread Asensio, Rodrigo
I changed the windows user of the service and it works ok.
Thanks a lot.

Rodrigo

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:40 PM
To: Tomcat Users List
Subject: RE: LookupPrinterService problem

 From: Asensio, Rodrigo [mailto:[EMAIL PROTECTED]
 Starting the Tomcat as Windows Service it cannot find printers

What user is the service running as?  Also note that profiles are never
loaded for processes running as Windows services, so any profile
information that may be set for a given user (including the printer
information) won't be accessible to the service anyway.

- Peter

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


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

Ce message (ainsi que les eventuelles pieces jointes) est
exclusivement adresse au destinataire et contient des
informations confidentielles. La copie, la communication ou la
distribution du contenu de ce message sans l'accord prealable de
l'expediteur sont strictement interdits et peuvent constituer un
delit. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur. Si vous avez des questions se
rapportant a ce courrier electronique, merci de bien vouloir
notifier
l'expediteur immediatement.

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



Re: [OT] Question about licensing

2006-03-08 Thread Michael Jouravlev
The following post contains no value :-)

On 3/8/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
 For process reasons the source code of
 the libs will not be available

 The jars would be free for copy, modification, usage,
  ^
How can you allow modification without source code?

 This is because the company,
 which owns the code, has to make additional reporting to the
 headquarters in case they would publish the source code and ensure,
 that there are no comments in the source code, that contain
 non-disclosure information.

This is a really stupid reason ;-) I am curious is there a tool that
strips out comments from the source code? The code itself can be
easily reverse-engineered.

Michael.

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



Trace messages when connecting to the database (MySql)

2006-03-08 Thread Mike Sabroff

I am not sure if this is a Tomcat issue or a MySql issue.
I get these trace messages in catalina.out:
Wed Mar 08 07:48:48 CST 2006 TRACE:

about 800 to 1000 lines of them, each time I connect to the database.
I have googled and searched but can find nothing on the cause or the 
solution

except maybe to use log4j.

Any help would be appreciated.

Tanks,

Mike


--
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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



tomcat admin console not working

2006-03-08 Thread Kuruganti, Lakshmi
All,
 
We installed tomcat recently and administration console doesn't seem to
be working.When I go to admin URL (http://:8000/admin/).I get a HTTP
status 500 error..Please help.


RE: tomcat admin console not working

2006-03-08 Thread Caldarale, Charles R
 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED] 
 Subject: tomcat admin console not working
  
 We installed tomcat recently and administration console 
 doesn't seem to be working.

What Tomcat level?  If it's anything recent, the admin package must be
downloaded and installed separately.  See the Tomcat download page for
whatever level you're using.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat admin console not working

2006-03-08 Thread Kuruganti, Lakshmi
Tomcat 4.1.31 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 1:55 PM
To: Tomcat Users List
Subject: RE: tomcat admin console not working

 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED]
 Subject: tomcat admin console not working
  
 We installed tomcat recently and administration console doesn't seem 
 to be working.

What Tomcat level?  If it's anything recent, the admin package must be
downloaded and installed separately.  See the Tomcat download page for
whatever level you're using.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: incorrect 400 return code if no webapps/ROOT

2006-03-08 Thread nord ehacedod
Thanks Chuck.

Where does this rule come from?

It seems an odd requirement, especially since ROOT
isn't required to do anything except exist. With
5.5.16 it can be an empty directory.

-- 
nord


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

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



RE: tomcat admin console not working

2006-03-08 Thread Caldarale, Charles R
 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat admin console not working
 
 Tomcat 4.1.31 

In that case, verify that the server/webapps/admin directory is present,
and that you've put an appropriate userid  role in
conf/tomcat-users.xml.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat admin console not working

2006-03-08 Thread Kuruganti, Lakshmi
Directory is not present, I am not sure it works if I just create an
empty  directory now. Below is how my users file looks like...

 more tomcat-users.xml
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=xxx password=xxx roles=admin,manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
/tomcat-users 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 1:59 PM
To: Tomcat Users List
Subject: RE: tomcat admin console not working

 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat admin console not working
 
 Tomcat 4.1.31

In that case, verify that the server/webapps/admin directory is present,
and that you've put an appropriate userid  role in
conf/tomcat-users.xml.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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



RE: tomcat admin console not working

2006-03-08 Thread VRamchandani
can u go to localhost:8080 does that work?did tomcat get installed
properly.


|-+
| |   Kuruganti,  |
| |   Lakshmi |
| |   [EMAIL PROTECTED]|
| |   m   |
| ||
| |   03/08/2006 01:03 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
|-+
  
--|
  | 
 |
  |   To:   Tomcat Users List users@tomcat.apache.org   
 |
  |   cc:   
 |
  |   Subject:  RE: tomcat admin console not working
 |
  
--|




Directory is not present, I am not sure it works if I just create an
empty  directory now. Below is how my users file looks like...

 more tomcat-users.xml
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=xxx password=xxx roles=admin,manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
/tomcat-users

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 1:59 PM
To: Tomcat Users List
Subject: RE: tomcat admin console not working

 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat admin console not working

 Tomcat 4.1.31

In that case, verify that the server/webapps/admin directory is present,
and that you've put an appropriate userid  role in
conf/tomcat-users.xml.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




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



RE: tomcat admin console not working

2006-03-08 Thread Kuruganti, Lakshmi
Yes.
We used port 8000.

http://ocalhost:8000 works and manager http://localhost:8000/manager
works fine..it is just admin http://localhost:8000/admin that gives
error.. 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Wednesday, March 08, 2006 2:10 PM
To: Tomcat Users List
Subject: RE: tomcat admin console not working

can u go to localhost:8080 does that work?did tomcat get installed
properly.


|-+
| |   Kuruganti,  |
| |   Lakshmi |
| |   [EMAIL PROTECTED]|
| |   m   |
| ||
| |   03/08/2006 01:03 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
|-+
 
---
---|
  |
|
  |   To:   Tomcat Users List users@tomcat.apache.org
|
  |   cc:
|
  |   Subject:  RE: tomcat admin console not working
|
 
---
---|




Directory is not present, I am not sure it works if I just create an
empty  directory now. Below is how my users file looks like...

 more tomcat-users.xml
?xml version='1.0' encoding='utf-8'?
tomcat-users
  role rolename=tomcat/
  role rolename=role1/
  role rolename=manager/
  role rolename=admin/
  user username=xxx password=xxx roles=admin,manager/
  user username=tomcat password=tomcat roles=tomcat/
  user username=both password=tomcat roles=tomcat,role1/
  user username=role1 password=tomcat roles=role1/
/tomcat-users

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 1:59 PM
To: Tomcat Users List
Subject: RE: tomcat admin console not working

 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat admin console not working

 Tomcat 4.1.31

In that case, verify that the server/webapps/admin directory is present,
and that you've put an appropriate userid  role in
conf/tomcat-users.xml.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




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


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



Using J2EE DataSources with Tomcat 5.5

2006-03-08 Thread Stephen Schaub
When developing web applications that use J2EE DataSources to provide
database connection pooling, I dislike having to jump through all the
hoops that are typically necessary (i.e., set up the DataSource in the
development web application server).

Recently, I discovered that it's possible with Tomcat 5.5 to define
DataSource information in a configuration file that is part of the web
application project itself. A great convenience. I've written up my
findings here, since it took me some time searching the mailing list
and perusing the documentation to figure it out. Feel free to peruse
and edit if corrections are necessary:

http://wiki.apache.org/tomcat/UsingDataSources

--
Stephen Schaub

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



Two different version of Tomcat on the same machine?

2006-03-08 Thread nguessan
Hi all,

I have to use tomcat 5.5 for a servlet/JSP application running on
Windows 2003. Apache is the web server and it is listening to port 80.
Another application called Docushare from Xerox has Tomcat 4.1 embedded
and Tomcat 4.1 is listening to port 8080. Will there be an issue if I
install Tomcat 5.5 on the same machine and set it to listen to another
port? In another word, is there a way to configure Apache to use 2
servlet/JSP containers? If yes, is it a stable option?
Thanks,

Nguessan


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



RE: Two different version of Tomcat on the same machine?

2006-03-08 Thread Wick, Daniel
Provided the machine is equipped to handle the load, I don't see why it
would be a problem.  Be sure you start your new one, change the config
to listen to a different port than 80 or 8080.  You can just have Apache
proxy pass  reverse proxy pass to the new tomcat.

--DW

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 1:21 PM
 To: Tomcat Users List
 Subject: Two different version of Tomcat on the same machine?
 
 Hi all,
 
 I have to use tomcat 5.5 for a servlet/JSP application 
 running on Windows 2003. Apache is the web server and it is 
 listening to port 80.
 Another application called Docushare from Xerox has Tomcat 
 4.1 embedded and Tomcat 4.1 is listening to port 8080. Will 
 there be an issue if I install Tomcat 5.5 on the same machine 
 and set it to listen to another port? In another word, is 
 there a way to configure Apache to use 2 servlet/JSP 
 containers? If yes, is it a stable option?
 Thanks,
 
 Nguessan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



RE: Two different version of Tomcat on the same machine?

2006-03-08 Thread Asensio, Rodrigo
And remember, if you want use 5.5 you have to have installed JDK 1.5 or
install the compatibility patch from apache to work with JDK 1.4 

regards

-Original Message-
From: Wick, Daniel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 2:26 PM
To: Tomcat Users List
Subject: RE: Two different version of Tomcat on the same machine?

Provided the machine is equipped to handle the load, I don't see why it
would be a problem.  Be sure you start your new one, change the config
to listen to a different port than 80 or 8080.  You can just have Apache
proxy pass  reverse proxy pass to the new tomcat.

--DW

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 1:21 PM
 To: Tomcat Users List
 Subject: Two different version of Tomcat on the same machine?
 
 Hi all,
 
 I have to use tomcat 5.5 for a servlet/JSP application running on 
 Windows 2003. Apache is the web server and it is listening to port 80.
 Another application called Docushare from Xerox has Tomcat
 4.1 embedded and Tomcat 4.1 is listening to port 8080. Will there be 
 an issue if I install Tomcat 5.5 on the same machine and set it to 
 listen to another port? In another word, is there a way to configure 
 Apache to use 2 servlet/JSP containers? If yes, is it a stable option?
 Thanks,
 
 Nguessan
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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


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

Ce message (ainsi que les eventuelles pieces jointes) est
exclusivement adresse au destinataire et contient des
informations confidentielles. La copie, la communication ou la
distribution du contenu de ce message sans l'accord prealable de
l'expediteur sont strictement interdits et peuvent constituer un
delit. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur. Si vous avez des questions se
rapportant a ce courrier electronique, merci de bien vouloir
notifier
l'expediteur immediatement.

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



Re: [OT] Question about licensing

2006-03-08 Thread Leon Rosenberg
On 3/8/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
 The following post contains no value :-)

 On 3/8/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
  For process reasons the source code of
  the libs will not be available

  The jars would be free for copy, modification, usage,
   ^
 How can you allow modification without source code?

the scenario is that someone familar with the code (like me) creates a
open source application and the jars are allowed for distribution.


  This is because the company,
  which owns the code, has to make additional reporting to the
  headquarters in case they would publish the source code and ensure,
  that there are no comments in the source code, that contain
  non-disclosure information.

 This is a really stupid reason ;-) I am curious is there a tool that
 strips out comments from the source code? The code itself can be
 easily reverse-engineered.

well, yes you are right, but:
we are part of one of largest german companies and the politics are
partly more important than common sense. In case someone someday
questions the decision it would be easier to find a legatimation this
way. Don't aks me why :-)
After all I find it most important to have the jars this way as not to
have them at all :-)


 Michael.


leon

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



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



RE: Using J2EE DataSources with Tomcat 5.5

2006-03-08 Thread James Reynolds

I wonder if Tomcat/IDE integration info would be appropriate for this
page.  Specifically, I recently worked through an issue with IntelliJ's
handling of a local Tomcat installation.  In short, IntelliJ ignores the
META-INF/context.xml file when starting Tomcat.  To access a jndi
datasource, you must repeat the configuration in separate file named
yourAppName.xml that is placed inside the server's
/Catalina/localhost/ folder, then specify this Context in IntelliJ's
deploy dialog.  Failure to do so results in a naming exception.

-Original Message-
From: Stephen Schaub [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:13 PM
To: users@tomcat.apache.org
Subject: Using J2EE DataSources with Tomcat 5.5

When developing web applications that use J2EE DataSources to provide
database connection pooling, I dislike having to jump through all the
hoops that are typically necessary (i.e., set up the DataSource in the
development web application server).

Recently, I discovered that it's possible with Tomcat 5.5 to define
DataSource information in a configuration file that is part of the web
application project itself. A great convenience. I've written up my
findings here, since it took me some time searching the mailing list and
perusing the documentation to figure it out. Feel free to peruse and
edit if corrections are necessary:

http://wiki.apache.org/tomcat/UsingDataSources

--
Stephen Schaub

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



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



Re: incorrect 400 return code if no webapps/ROOT

2006-03-08 Thread Mark Thomas
nord ehacedod wrote:
 Thanks Chuck.
 
 Where does this rule come from?

Logic (with a bit of help from the servlet spec)

 It seems an odd requirement, especially since ROOT
 isn't required to do anything except exist. With
 5.5.16 it can be an empty directory.

If there is no root context, there is no context for Tomcat to map the
request to. With no matching context Tomcat has no way of determining
how to respond to the request.

Mark


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



Re: Upgrade to Tomcat 5.5 has broken my jndi

2006-03-08 Thread ALEX HYDE
Thanks for the help. 
  
  I seem to be able to get it working when I have a context file under my  
web-app in the meta-inf directory. But I am still unable to properly  configure 
a global datasource. Here is my context.xml. very  standard:
  
  ?xml version=1.0 encoding=UTF-8?
  
  Context
  
  Resource name=jdbc/testdb auth=SERVLET type=javax.sql.DataSource 
driverClassName=com.mysql.jdbc.Driver 
   url=jdbc:mysql://localhost:3306/testdb username=me password=me 
 maxActive=30 maxIdle=2000 maxWait=120/
  
  /Context

  If I remove this and instead add this to server.xml
  
  GlobalNamingResources
  Resource name=jdbc/testdb  auth=SERVLET 
type=javax.sql.DataSource  driverClassName=com.mysql.jdbc.Driver  
url=jdbc:mysql://localhost:3306/testdb username=me password=me  
maxActive=30 maxIdle=2000 maxWait=120/
  /GlobalNamingResources
  
  It no longer finds the datasource. My web.xml looks like this:
  
  web-app version=2.4
  display-nameJNDI Test/display-name
  description
   Welcome to JNDI
   /description
  resource-ref
  descriptionhello /description
  res-ref-namejdbc/testdb/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authSERVLET/res-auth 
  /resource-ref
  /web-app
  
  I tried this, but it is failing to parse:
  
  web-app version=2.4
  display-nameJNDI Test/display-name
  description
   Welcome to JNDI
   /description
  resource-env-ref
  descriptionhello /description
  res-env-ref-namejdbc/testdb/res-env-ref-name
  res-env-typejavax.sql.DataSource/res-env-type
  /resource-env-ref
  /web-app
  
  Any input would be great. Thanks alot.
  
[EMAIL PROTECTED] wrote:  Follows is to do:

extract your Resource section from server.xml and copy to context.xml. I did 
the same and my jndi works very fine.

György 


Tomcat Users List  schrieb am 07.03.06 22:58:18:
 
 here are the docs
 http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
 
 I don't see them declare the factory attribute in 5.5, you didn't tell 
 us what version you were on
 
 Filip
 
 ALEX HYDE wrote:
  Hi All,
 
  I've seen this one all over the user group but I seem
  to have come to a dead end with this. I have upgraded
  from tomcat 4 to 5 and I can't seem to get my app
  working again. 
 
  The part that has broken is the jndi datasource
  look-up. I notice that I'm definitly not the first to
  experience this problem. Perhaps things might have
  been made a bit clearer. I thought I had set things up
  correctly. I have extracted my old context from
  server.xml and added it under my web app context. 
 
  
  debug=0 reloadable=true
  crossContext=true
 

  type=javax.sql.DataSource
   maxActive=10 maxIdle=7 maxWait=5
  driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:1521/testdb
  username=user1 password=
  factory=org.apache.commons.dbcp.BasicDataSourceFactory
   /
 
  I now have this error where it had been working in
  version 4. 
 
  org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
  create JDBC driver of cla
  ss '' for connect URL 'null'  
 
  Thanks for your help.
 
 

  ___ 
  Win a BlackBerry device from O2 with Yahoo!. Enter now. 
  http://www.yahoo.co.uk/blackberry
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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

-- 
Mit freundlichen Grüßen

Dr. György Kelemen
Email: [EMAIL PROTECTED]
Mobil: 0173 534 5668

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




-
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre.

Re: HTTPS setup

2006-03-08 Thread Dhaval Patel
Hi,

  As I have told you before, those instructions are not working as expected 
against authority
signed (not self-signed) certifcates.

  You might have to go through mail-archive of tomcat users list to find more 
ways to solve this.
I am sure there is a solution for this.

  Tomcat gurus, please help !!!

Regards,
D

--- Julie McCabe [EMAIL PROTECTED] wrote:

 Hello,
 
 Thanks for the advice, I had installed the APR as tomcat was failing to  
 shutting down in Windows without it.  
 
 Since my  overall objective is to use an existing X509 certificate signed by 
 an academic CA (not Versign or Thwate)  I decided to try the openssl.  I 
 followed the steps outlined in the 
 http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html
 
 I have an existing p12 file which is split into a key and a certificate, I 
 only performed the 
 openssl rsa -in userkey.pem -out server.key 
 command to replace the passphrase from the private key.
 
 I edited the conf/server.xml file as directed and pointed the 
 SSLCertificateFile to the usercert.pem file and the SSLCertificateKeyFile to 
 the generated server.key file.
 
 I started tomcat - no errors in the logs and when I try to connect on 
 https://localhost:8443
 I receive the following alert:
 
 Could not establish an encrypted connection because the certificate 
 presented 
 by localhost is invalid or corrupted. Error Code: -8101
 
 The CA root certificate whom has signed my certificate is loaded into the 
 browser (along with my certificate).
 
 It seems like its a problem with my certificates?
 
 Thanks,
 Julie. 
 
 
 On Wednesday 08 March 2006 13:31, Dhaval Patel wrote:
  Hi,
 
  Based upon your description, I think you are trying to use JSSE way to
  enable SSL. Tomcat 5.5 has two ways to enable SSL: 1) JSSE 2) OpenSSL.
 
  If you are trying with JSSE, please remove tcnative-1.dll from your
  TOMCAT_HOME\bin directory. It should work fine.
 
  If you want to know how to do with OpenSSL, please go to:
  http://www.mail-archive.com/users%40tomcat.apache.org/msg02500.html
 
  Steps described in above URL are 100% working when you don't have
  Versign/Thwate signed certificate. It is not case here I believe. :)
 
  Let us know how it goes.
 
  Regards,
  D
 
  --- Julie McCabe [EMAIL PROTECTED] wrote:
   Hi,
  
   Ive configure SSL support as per documentation - I created the keystore
   and a self - signed certificate with the default password, uncommented
   the 8443 connector for https in the conf/server.xml file.
  
   The problem is that I cannot connect to https://localhost:8443 via the
   browser, in the log file there are no errors and it appears as the 8443
   port is open as:
   INFO: Starting Coyote HTTP/1.1 on http-8443
  
   Nothing is logged to the log file when access to 8443 is attempted, the
   browser processes and eventually times out with the following alert:
  
   The connection to localhost:8443 has terminated unexpectedly. Some data
   may have been transferred.
  
   Environment: Java 1.5.0_04, Tomcat 5.5.12, Windows XP
  
   Regards,
   Julie.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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

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



Re: Upgrade to Tomcat 5.5 has broken my jndi

2006-03-08 Thread Filip Hanik - Dev Lists


http://www.laliluna.de/260.html


ALEX HYDE wrote:
Thanks for the help. 
  
  I seem to be able to get it working when I have a context file under my  web-app in the meta-inf directory. But I am still unable to properly  configure a global datasource. Here is my context.xml. very  standard:
  
  ?xml version=1.0 encoding=UTF-8?
  
  Context
  
  Resource name=jdbc/testdb auth=SERVLET type=javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver 
   url=jdbc:mysql://localhost:3306/testdb username=me password=me  maxActive=30 maxIdle=2000 maxWait=120/
  
  /Context


  If I remove this and instead add this to server.xml
  
  GlobalNamingResources

  Resource name=jdbc/testdb  auth=SERVLET type=javax.sql.DataSource  driverClassName=com.mysql.jdbc.Driver  
url=jdbc:mysql://localhost:3306/testdb username=me password=me  maxActive=30 maxIdle=2000 maxWait=120/
  /GlobalNamingResources
  
  It no longer finds the datasource. My web.xml looks like this:
  
  web-app version=2.4

  display-nameJNDI Test/display-name
  description
   Welcome to JNDI
   /description
  resource-ref
  descriptionhello /description
  res-ref-namejdbc/testdb/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authSERVLET/res-auth 
  /resource-ref

  /web-app
  
  I tried this, but it is failing to parse:
  
  web-app version=2.4

  display-nameJNDI Test/display-name
  description
   Welcome to JNDI
   /description
  resource-env-ref
  descriptionhello /description
  res-env-ref-namejdbc/testdb/res-env-ref-name
  res-env-typejavax.sql.DataSource/res-env-type
  /resource-env-ref
  /web-app
  
  Any input would be great. Thanks alot.
  
[EMAIL PROTECTED] wrote:  Follows is to do:


extract your Resource section from server.xml and copy to context.xml. I did 
the same and my jndi works very fine.

György 



Tomcat Users List  schrieb am 07.03.06 22:58:18:
  

here are the docs
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html

I don't see them declare the factory attribute in 5.5, you didn't tell 
us what version you were on


Filip

ALEX HYDE wrote:


Hi All,

I've seen this one all over the user group but I seem
to have come to a dead end with this. I have upgraded
from tomcat 4 to 5 and I can't seem to get my app
working again. 


The part that has broken is the jndi datasource
look-up. I notice that I'm definitly not the first to
experience this problem. Perhaps things might have
been made a bit clearer. I thought I had set things up
correctly. I have extracted my old context from
server.xml and added it under my web app context. 



debug=0 reloadable=true
crossContext=true

  
type=javax.sql.DataSource

 maxActive=10 maxIdle=7 maxWait=5
driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:1521/testdb
username=user1 password=
factory=org.apache.commons.dbcp.BasicDataSourceFactory
 /

I now have this error where it had been working in
version 4. 


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


Thanks for your help.


  
___ 
Win a BlackBerry device from O2 with Yahoo!. Enter now. http://www.yahoo.co.uk/blackberry


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

  
  

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




  



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



Re: Upgrade to Tomcat 5.5 has broken my jndi

2006-03-08 Thread Mark Eggers
Document link:

http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html

From the document:

The resources defined in this element are not visible
in the per-web-application contexts unless you
explicitly link them with ResourceLink elements.

If you use a GlobalNamingResource element, you will
then have to use a ResourceLink element in the
Context element of server.xml.

I think you would then use the name attribute
specified in the ResourceLink element in your
/WEB-INF/web.xml resource-ref or resource-ref-env
elements (specifically res-ref-name or
resource-env-ref-name).

I'm not at a machine where I can try this, but that's
my reading of the documentation.

Hope this helps.

/mde/

--- ALEX HYDE [EMAIL PROTECTED] wrote:

 Thanks for the help. 
   
   I seem to be able to get it working when I have a
 context file under my  web-app in the meta-inf
 directory. But I am still unable to properly 
 configure a global datasource. Here is my
 context.xml. very  standard:
   
   ?xml version=1.0 encoding=UTF-8?
   
   Context
   
   Resource name=jdbc/testdb auth=SERVLET
 type=javax.sql.DataSource
 driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://localhost:3306/testdb
 username=me password=me  maxActive=30
 maxIdle=2000 maxWait=120/
   
   /Context
 
   If I remove this and instead add this to
 server.xml
   
   GlobalNamingResources
   Resource name=jdbc/testdb 
 auth=SERVLET type=javax.sql.DataSource 
 driverClassName=com.mysql.jdbc.Driver 
 url=jdbc:mysql://localhost:3306/testdb
 username=me password=me  maxActive=30
 maxIdle=2000 maxWait=120/
   /GlobalNamingResources
   
   It no longer finds the datasource. My web.xml
 looks like this:
   
   web-app version=2.4
   display-nameJNDI Test/display-name
   description
Welcome to JNDI
/description
   resource-ref
   descriptionhello /description
   res-ref-namejdbc/testdb/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authSERVLET/res-auth 
   /resource-ref
   /web-app
   
   I tried this, but it is failing to parse:
   
   web-app version=2.4
   display-nameJNDI Test/display-name
   description
Welcome to JNDI
/description
   resource-env-ref
   descriptionhello /description
  
 res-env-ref-namejdbc/testdb/res-env-ref-name
  
 res-env-typejavax.sql.DataSource/res-env-type
   /resource-env-ref
   /web-app
   
   Any input would be great. Thanks alot.
   
 [EMAIL PROTECTED] wrote:  Follows is to do:
 
 extract your Resource section from server.xml and
 copy to context.xml. I did the same and my jndi
 works very fine.
 
 György 
 
 
 Tomcat Users List  schrieb am 07.03.06 22:58:18:
  
  here are the docs
 

http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
  
  I don't see them declare the factory attribute
 in 5.5, you didn't tell 
  us what version you were on
  
  Filip
  
  ALEX HYDE wrote:
   Hi All,
  
   I've seen this one all over the user group but I
 seem
   to have come to a dead end with this. I have
 upgraded
   from tomcat 4 to 5 and I can't seem to get my
 app
   working again. 
  
   The part that has broken is the jndi datasource
   look-up. I notice that I'm definitly not the
 first to
   experience this problem. Perhaps things might
 have
   been made a bit clearer. I thought I had set
 things up
   correctly. I have extracted my old context from
   server.xml and added it under my web app
 context. 
  
   
   debug=0 reloadable=true
   crossContext=true
  
 
   type=javax.sql.DataSource
maxActive=10 maxIdle=7 maxWait=5
   driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:1521/testdb
   username=user1 password=
  

factory=org.apache.commons.dbcp.BasicDataSourceFactory
/
  
   I now have this error where it had been working
 in
   version 4. 
  
   org.apache.tomcat.dbcp.dbcp.SQLNestedException:
 Cannot
   create JDBC driver of cla
   ss '' for connect URL 'null'  
  
   Thanks for your help.
  
  
 
  

___
 
   Win a BlackBerry device from O2 with Yahoo!.
 Enter now. http://www.yahoo.co.uk/blackberry
  
  

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

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 -- 
 Mit freundlichen Grüßen
 
 Dr. György Kelemen
 Email: [EMAIL PROTECTED]
 Mobil: 0173 534 5668
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
   
 -
 To help you stay safe and 

Re: Upgrade to Tomcat 5.5 has broken my jndi

2006-03-08 Thread g . kelemen
Your context.xml can stay in the conf directory (as server.xml), however you 
need the context.xml. You can comment out the Resource section in server.xml.


Tomcat Users List users@tomcat.apache.org schrieb am 08.03.06 20:39:49:
 
 Thanks for the help. 
   
   I seem to be able to get it working when I have a context file under my  
 web-app in the meta-inf directory. But I am still unable to properly  
 configure a global datasource. Here is my context.xml. very  standard:
   
   ?xml version=1.0 encoding=UTF-8?
   
   Context
   
   Resource name=jdbc/testdb auth=SERVLET type=javax.sql.DataSource 
 driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://localhost:3306/testdb username=me 
 password=me  maxActive=30 maxIdle=2000 maxWait=120/
   
   /Context
 
   If I remove this and instead add this to server.xml
   
   GlobalNamingResources
   Resource name=jdbc/testdb  auth=SERVLET 
 type=javax.sql.DataSource  driverClassName=com.mysql.jdbc.Driver  
 url=jdbc:mysql://localhost:3306/testdb username=me password=me  
 maxActive=30 maxIdle=2000 maxWait=120/
   /GlobalNamingResources
   
   It no longer finds the datasource. My web.xml looks like this:
   
   web-app version=2.4
   display-nameJNDI Test/display-name
   description
Welcome to JNDI
/description
   resource-ref
   descriptionhello /description
   res-ref-namejdbc/testdb/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authSERVLET/res-auth 
   /resource-ref
   /web-app
   
   I tried this, but it is failing to parse:
   
   web-app version=2.4
   display-nameJNDI Test/display-name
   description
Welcome to JNDI
/description
   resource-env-ref
   descriptionhello /description
   res-env-ref-namejdbc/testdb/res-env-ref-name
   res-env-typejavax.sql.DataSource/res-env-type
   /resource-env-ref
   /web-app
   
   Any input would be great. Thanks alot.
   
 [EMAIL PROTECTED] wrote:  Follows is to do:
 
 extract your Resource section from server.xml and copy to context.xml. I did 
 the same and my jndi works very fine.
 
 György 
 
 
 Tomcat Users List  schrieb am 07.03.06 22:58:18:
  
  here are the docs
  http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
  
  I don't see them declare the factory attribute in 5.5, you didn't tell 
  us what version you were on
  
  Filip
  
  ALEX HYDE wrote:
   Hi All,
  
   I've seen this one all over the user group but I seem
   to have come to a dead end with this. I have upgraded
   from tomcat 4 to 5 and I can't seem to get my app
   working again. 
  
   The part that has broken is the jndi datasource
   look-up. I notice that I'm definitly not the first to
   experience this problem. Perhaps things might have
   been made a bit clearer. I thought I had set things up
   correctly. I have extracted my old context from
   server.xml and added it under my web app context. 
  
   
   debug=0 reloadable=true
   crossContext=true
  
 
   type=javax.sql.DataSource
maxActive=10 maxIdle=7 maxWait=5
   driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:1521/testdb
   username=user1 password=
   factory=org.apache.commons.dbcp.BasicDataSourceFactory
/
  
   I now have this error where it had been working in
   version 4. 
  
   org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
   create JDBC driver of cla
   ss '' for connect URL 'null'  
  
   Thanks for your help.
  
  
 
   ___ 
   Win a BlackBerry device from O2 with Yahoo!. Enter now. 
   http://www.yahoo.co.uk/blackberry
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 -- 
 Mit freundlichen Grüßen
 
 Dr. György Kelemen
 Email: [EMAIL PROTECTED]
 Mobil: 0173 534 5668
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
   
 -
 To help you stay safe and secure online, we've developed the all new Yahoo! 
 Security Centre.

-- 
Mit freundlichen Grüßen

Dr. György Kelemen
Email: [EMAIL PROTECTED]
Mobil: 0173 534 5668

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



RE: Tomcat 5.0.28 memory leak

2006-03-08 Thread VRamchandani
For update on the forum..
After days of research finally the reason for the memory leak seems to be a
leak in the JDK version.
Evidance to support the theory:

http://tomcat.apache.org/faq/misc.html#cpu
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724129

Also:
Segue load tests with the new JDK1.4.2_11 do not break the service.If I
switch back to the earlier version jdk1.4.1_02 the service breaks even with
a few refreshes of the page.
The memory does go up while running the segue test but I haven't noticed it
go beyound 100 MB.I ran a test with 10 users on localhost for 2.5 hours.

Thanks Chuck for the pointer.I had read this earlier but downgraded to a
lower version of the JDK instead of moving up.Today I upgraded to 1.4.2_11
and realised that there is no leak when I run the load tests.
Thanks to all for your help.
Vinita


|-+
| |   Caldarale,  |
| |   Charles R   |
| |   Chuck.Caldarale@|
| |   unisys.com  |
| ||
| |   03/07/2006 01:25 |
| |   PM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
|-+
  
--|
  | 
 |
  |   To:   Tomcat Users List users@tomcat.apache.org   
 |
  |   cc:   
 |
  |   Subject:  RE: Tomcat 5.0.28 memory leak   
 |
  
--|




 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Subject: Re: Tomcat 5.0.28 memory leak

 I am using jdk1.4.0_04 and tomcat 5.0.28.

You really need to get off that level ASAP.  Use 1.4.2, which fixes
many, many bugs compared to 1.4.0.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: Repeated context reloading

2006-03-08 Thread Peiran Song

Thank you, Prashant and Chuck.

I searched through the webapp, did not find files that time stamped in 
the future comparing to the server clock. So I set reloadable to false, 
and then turned it back on. The time confusion seems solved and no 
constant reloading any more.


Peiran



Saraf, Prashant (Prashant) wrote:

Try setting the reloadable attribute to false in the context definition
of your webapp.

Context docBase=xxx. path=... reloadable=false/ 


Thanks,
-Prashant.


-Original Message-
From: Peiran Song [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:33 AM

To: Tomcat Users List
Subject: Repeated context reloading

Hi All,

The catalina.out file records the following output every 10 minutes
while the specified JAR file is not touched/modified at all. Any one has
any  idea of the cause of it and suggestions for a solution?

Mar 7, 2006 5:11:56 PM org.apache.catalina.loader.WebappClassLoader
modified
INFO: Additional JARs have been added : 'UniquerySupport.jar'
Mar 7, 2006 5:11:56 PM org.apache.catalina.core.StandardContext reload
INFO: Reloading this Context has started

Thank you!

Peiran

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



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


  



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



RE: Two different version of Tomcat on the same machine?

2006-03-08 Thread Caldarale, Charles R
 From: Wick, Daniel [mailto:[EMAIL PROTECTED] 
 Subject: RE: Two different version of Tomcat on the same machine?
 
 Be sure you start your new one, change the config
 to listen to a different port than 80 or 8080.

There's more than one port that must be changed.  At least the shutdown
port (default 8005) and the AJP port (8009) must be unique.  If you have
HTTPS ports configured, those too must not conflict.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: BASIC authentication to DIGEST authentication

2006-03-08 Thread Mark Thomas
Jay Burgess wrote:
 Given that I've got BASIC authentication working for my webapp using cleartext
 passwords, shouldn't I simply be able to change my auth-method from BASIC 
 to
 DIGEST in login-config and it should start working using digest 
 authentication? 
 
 It's not, obviously, but I've seen previous posts in this group that say 
 things
 like clear text + DIGEST - works!, so I think it's doable.  I'm using TC
 5.0.19 by the way.

Yes, it should just work. However, there have been a bunch of fixes in
this area. You may hit any of the following bugs/missing features:

http://issues.apache.org/bugzilla/show_bug.cgi?id=9851
http://issues.apache.org/bugzilla/show_bug.cgi?id=37132
http://issues.apache.org/bugzilla/show_bug.cgi?id=31198
5.5.5 Add DIGEST authentication support to the JDBC and DataSource
realms. Supports both digested and cleartext passwords. (markt)
http://issues.apache.org/bugzilla/show_bug.cgi?id=32137
http://issues.apache.org/bugzilla/show_bug.cgi?id=31592

If you want to digest the passwords in tomcat-users.xml (or wherever
you store them) then a little more work is required and you may hit
more problems.

Mark


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



RE: BASIC authentication to DIGEST authentication

2006-03-08 Thread Jay Burgess
Mark,

Thanks for the quick (and useful) reply.  I'll dig through those issues and see
if any of them apply.  And hopefully I can find a solution that doesn't involve
a TC upgrade, as I can't do that at this point.

Thanks again.

Jay

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 4:38 PM
To: Tomcat Users List
Subject: Re: BASIC authentication to DIGEST authentication

Jay Burgess wrote:
 Given that I've got BASIC authentication working for my webapp using cleartext
 passwords, shouldn't I simply be able to change my auth-method from BASIC 
 to
 DIGEST in login-config and it should start working using digest
authentication? 
 
 It's not, obviously, but I've seen previous posts in this group that say 
 things
 like clear text + DIGEST - works!, so I think it's doable.  I'm using TC
 5.0.19 by the way.

Yes, it should just work. However, there have been a bunch of fixes in
this area. You may hit any of the following bugs/missing features:

http://issues.apache.org/bugzilla/show_bug.cgi?id=9851
http://issues.apache.org/bugzilla/show_bug.cgi?id=37132
http://issues.apache.org/bugzilla/show_bug.cgi?id=31198
5.5.5 Add DIGEST authentication support to the JDBC and DataSource
realms. Supports both digested and cleartext passwords. (markt)
http://issues.apache.org/bugzilla/show_bug.cgi?id=32137
http://issues.apache.org/bugzilla/show_bug.cgi?id=31592

If you want to digest the passwords in tomcat-users.xml (or wherever
you store them) then a little more work is required and you may hit
more problems.

Mark


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







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



Re: basic question regarding BASIC and FORMS logins

2006-03-08 Thread David Smith
Kind of.  With BASIC auth, the session from the server's perspective can
still go away.  But as the browser caches the credentials, new session
creation is automatic.  The end user experience depends on the data
stored in the session, webapp design, and where they were when they
abandon the previous session.

--David

Klotz Jr, Dennis wrote:

Greetings all,
 
I'm trying to get my facts straight, and I'm hoping you will help.
 
I am using forms based login right now and when the tomcat session times
out, the user has to login again. No surprise there.
 
Now, some of our customers don't like this, so for them - can I use a
BASIC login (with SSL possibly) and their user will always be able to
use the session as long as the browser doesn't go away. This is even if
the tomcat session expires!
 
Is that right?
 
 
Regards,
 
-Dennis Klotz


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

  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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



RE: basic question regarding BASIC and FORMS logins

2006-03-08 Thread Klotz Jr, Dennis
David,

Thanks for replying.

In our case the application business logic is not storing critical
information in session beans etc. So using the BASIC would be ok. 

Is it possible to get the same behavior from a FORMS based login, in
that it keeps the login credentials and when the client makes a request,
tomcat opens a new session? I'm pretty sure the answer is no.


Regards,

-Dennis Klotz

 

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 6:07 PM
To: Tomcat Users List
Subject: Re: basic question regarding BASIC and FORMS logins

Kind of.  With BASIC auth, the session from the server's perspective can
still go away.  But as the browser caches the credentials, new session
creation is automatic.  The end user experience depends on the data
stored in the session, webapp design, and where they were when they
abandon the previous session.

--David

Klotz Jr, Dennis wrote:

Greetings all,
 
I'm trying to get my facts straight, and I'm hoping you will help.
 
I am using forms based login right now and when the tomcat session
times
out, the user has to login again. No surprise there.
 
Now, some of our customers don't like this, so for them - can I use a
BASIC login (with SSL possibly) and their user will always be able to
use the session as long as the browser doesn't go away. This is even if
the tomcat session expires!
 
Is that right?
 
 
Regards,
 
-Dennis Klotz


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

  



-- 
===
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture  Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939


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


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



RE: basic question regarding BASIC and FORMS logins

2006-03-08 Thread Richard Mixon
Dennis,
For just that webapp, you can always bump the session timeout to a very high
value. 
That would just take a change to the web.xml, no change of authentication
method needed.
HTH - Richard

-Original Message-
From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 3:54 PM
To: Tomcat Users List
Subject: basic question regarding BASIC and FORMS logins

Greetings all,
 
I'm trying to get my facts straight, and I'm hoping you will help.
 
I am using forms based login right now and when the tomcat session times
out, the user has to login again. No surprise there.
 
Now, some of our customers don't like this, so for them - can I use a BASIC
login (with SSL possibly) and their user will always be able to use the
session as long as the browser doesn't go away. This is even if the tomcat
session expires!
 
Is that right?
 
 
Regards,
 
-Dennis Klotz


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



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



Re: basic question regarding BASIC and FORMS logins

2006-03-08 Thread David Smith
An idea I've also seen floated is to have javascript keep refreshing a
small transparent image every so often.  I've never tried it, but it
shows up frequently as a solution in google.  Benefit is you have
indefinite session life without a lot of dead session clutter.

--David

Richard Mixon wrote:

Dennis,
For just that webapp, you can always bump the session timeout to a very high
value. 
That would just take a change to the web.xml, no change of authentication
method needed.
HTH - Richard

-Original Message-
From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 3:54 PM
To: Tomcat Users List
Subject: basic question regarding BASIC and FORMS logins

Greetings all,
 
I'm trying to get my facts straight, and I'm hoping you will help.
 
I am using forms based login right now and when the tomcat session times
out, the user has to login again. No surprise there.
 
Now, some of our customers don't like this, so for them - can I use a BASIC
login (with SSL possibly) and their user will always be able to use the
session as long as the browser doesn't go away. This is even if the tomcat
session expires!
 
Is that right?
 
 
Regards,
 
-Dennis Klotz


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



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

  



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



Re: basic question regarding BASIC and FORMS logins

2006-03-08 Thread Khawaja Shams
Hello,
   If I am using BASIC authentication, how can I log users out? I tried
doing session.Invalidate, but as described above, it seems like the browser
is caching the credentials.  I would like my app users to be able to log
out.  I would sincerely appreciate any guidance.

Khawaja


On 3/8/06, David Smith [EMAIL PROTECTED] wrote:

 An idea I've also seen floated is to have javascript keep refreshing a
 small transparent image every so often.  I've never tried it, but it
 shows up frequently as a solution in google.  Benefit is you have
 indefinite session life without a lot of dead session clutter.

 --David

 Richard Mixon wrote:

 Dennis,
 For just that webapp, you can always bump the session timeout to a very
 high
 value.
 That would just take a change to the web.xml, no change of authentication
 method needed.
 HTH - Richard
 
 -Original Message-
 From: Klotz Jr, Dennis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 3:54 PM
 To: Tomcat Users List
 Subject: basic question regarding BASIC and FORMS logins
 
 Greetings all,
 
 I'm trying to get my facts straight, and I'm hoping you will help.
 
 I am using forms based login right now and when the tomcat session times
 out, the user has to login again. No surprise there.
 
 Now, some of our customers don't like this, so for them - can I use a
 BASIC
 login (with SSL possibly) and their user will always be able to use the
 session as long as the browser doesn't go away. This is even if the
 tomcat
 session expires!
 
 Is that right?
 
 
 Regards,
 
 -Dennis Klotz
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


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




RE: tomcat admin console not working

2006-03-08 Thread Kuruganti, Lakshmi
All,

I tried a new install and I got into the same issue. Looks like there
won't be any /server/webapps/admin directory. When I go to
http://localhost:8000/admin I get the following page..tomcat is missing
some thing and I am not sure what it is..any help is highly
appreciated..

HTTP Status 500 - 




type Exception report

message 

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

exception 

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:495)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:192)
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.ja
va: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(Applica
tionFilterChain.java:200)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:146)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:209)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:144)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator
Base.java:504)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:594)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:235
8)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:133)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:118)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:594)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:116)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:594)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:127)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:596)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
33)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:152)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)
at java.lang.Thread.run(Thread.java:534)


root cause 

javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtil
s.java:1103)
at
org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043)
at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
at
org.apache.jsp.login_jsp._jspx_meth_bean_message_0(login_jsp.java:206)
at org.apache.jsp.login_jsp._jspService(login_jsp.java:85)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at

TRACE messages

2006-03-08 Thread Mike Sabroff



I am not sure if this is a Tomcat issue or a MySql issue.
I get these trace messages in catalina.out:
Wed Mar 08 07:48:48 CST 2006 TRACE:
about 800 to 1000 lines of them, each time I connect to the database.
I have googled and searched but can find nothing on the cause or the 
solution

except maybe to use log4j.

I have several versions of Tomcat 4.x  / 5.x and it happens in all cases
I don't really think it is a Tomcat issue, but was hoping someone else 
has experienced the

problem and could lead me in the right direction.

Any help would be appreciated.

Thanks,

Mike

--
Mike Sabroff
Web Services Developer
[EMAIL PROTECTED]
920-568-8379


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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread Buddy wu
 
 This only applies to ressource url, not servlet url, neither filters,
 nor security-constraint.
that's what I want to confirm.


 and the security problem that someone has said, I think it may not be
 so important. If a hacker want to detect your site, I think he will
 test all posibles JSP Jsp jSP and others.
 
 
 
 That's not where security problem lies:
 Let's assume your public site is at
 http://yourserver/yourwebapp/index.jsp
 if casesensitiveness is deactivated and you are using a case sensitive
 filesystem (like the microsoft ones), accessing
 http://yourserver/yourwebapp/index.jsP will point to same filesystem
 ressouce, but with one exception, it will not be handled by jsp engine
 and requester will simply get the jsp source  instead of generated html
 (a jsp source could contain potentially critical informations like
 database connection informations)

oh, you mean that someone can get my SOURCE jsp file instead of a
generated html file? right? I think it is a security problem, thanks I
don't realize it before


 More dangerous, suppose your application have an admin interface located at
 http://yourserver/yourwebapp/admin/
 with a security-constraint in web.xml mapped to 'admin/*', any anonymous
 user can have his browser point at 'AdMiN/' and will have access to
 admin interface without authentification, bypassing securities!

really? and why can it bypassing the securities? only because can't
handle by jsp engine? then if can't handle by jsp engine, how can use
the admin tools under 'admin/*'. can you explain more detealed? thanks

 Of course it's not a problem if you don't have jsps, neither servlets,
 nor security constraints, that if you are serving static content. But
 then ,why using tomcat?


I use this to set ArcIMS service, and I write in servlet or I use
tomcat as a servlet engine. And I don't want to combine tomcat with
apache or IIS to serve static html and servlet  separately. but the in
some ArcIMS pages, the link address they write(Some htm page or
generated html file) are small letter (described right?) like
install/install.htm but the real file path not small letter, it's
'Install/Install.htm, so I can't only use tomcat to serve it

I don't know that what I doing will harmfull to my service. Is there
anybody can help me to explain it?

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



Re: How can I set tomcat NOT Case Sensitive

2006-03-08 Thread Buddy wu
2006/3/8, David Kerber [EMAIL PROTECTED]:
 You're welcome.  That tradeoff between security and usability is a
 decision only you and your users can make, but I like to have the option
 to make that tradeoff if necessary.

 Dave
Thank Dave! I said that yesterday only to describe only what I want to
 do, may be there are some mistakes is my saying. so If it has I
really want to know . Thanks again


 Buddy wu wrote:

 2006/3/7, David Kerber [EMAIL PROTECTED]:
 
 
 Context caseSensitive=false
 
 
 thanks a lot. it worked.
 and I think someone discussed other problem of these question maybe
 right. but my goal is only to let tomcat's URL or URI (I don't kown
 which is wright, or all are write) case-insensitive. I don't care the
 case-sensitive feature in jsp or servlet file can work( maybe it MUST
 case-sensitive, because of java language, but I don't care about
 these. I just need URL is CASE-INSENSITIVE, And it will be ok to me)
 
 and the security problem that someone has said, I think it may not be
 so important. If a hacker want to detect your site, I think he will
 test all posibles JSP Jsp jSP and others.
 
 but thanks again ,everyone
 
 
 Buddy wu wrote:
 
 
 
 2006/3/7, Long [EMAIL PROTECTED]:
 
 
 
 
 Buddy wu wrote:
 I wan't to know there is any way to set tomcat NOT CASE SENSITIVE in 
  URL
 I mean: when I write in browser's 'http://localhost/test.html'
 equals to 'http://localhost/TEST.htm'.  Can I do it ? or just in
 WINDOWS can but Linux/unix can't?
 
 Right, url is case-insensitive under Windows because the file system
 
 
 
 
 But, the FACT is that under Windows the URL is CASW-SENSITIVE, not
 case-insecsitive , why?
 
 I've tried, under Windows, test.html and TEST.html is diffrent in
 tomcat server. Is there a parameter to set??
 
 
 
 
 
 can't tell a difference between test.html and TEST.html. The difference
 is there under Linux/UNIX.
 
 Long
 
 



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



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



RE: tomcat admin console not working

2006-03-08 Thread Caldarale, Charles R
 From: Kuruganti, Lakshmi [mailto:[EMAIL PROTECTED] 
 Subject: RE: tomcat admin console not working
 
 I tried a new install and I got into the same issue. Looks
 like there won't be any /server/webapps/admin directory.

The above directory is clearly in the 4.1.31 .zip and .tar.gz downloads
(I haven't checked the .exe).  If you are using some 3rd-party packaging
of Tomcat rather than a real one from the Tomcat download web page,
you're at the mercy of that vendor.  Note that if you use the .tar.gz
one, you'll need a GNU-compatible untarring utility.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



User authentication

2006-03-08 Thread Prashant Saraf
Hello all,
Whatr is best way to create loging authentication if u had multipal login
form/pages.
please help me out.

--
Cup of Java + Suger of XML = Secure WebApp


User authentication

2006-03-08 Thread Prashant Saraf
Hello all,
What is best way to create loging authentication if I had multipal login
form/pages.
please help me out.

--
Cup of Java + Suger of XML = Secure WebApp


RE: User authentication

2006-03-08 Thread Alex Jalali

Hello all,
Whatr is best way to create loging authentication if u had multipal login
form/pages.
please help me out.

When you say multiple form pages, are they all the same? Or do they login to
different webapps? If different webapps, you could use the SingleSignOn 
Valve className=org.apache.catalina.authenticator.SingleSignOn/  

Can you explain more about your login form(s)?

--
Cup of Java + Suger of XML = Secure WebApp

XML makes me nauseous. I guess I must me diabetic :)



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



Re: eclipse and tomcat deployment

2006-03-08 Thread Franck Borel
Hi azri,

what do you mean wih running your project? Did you mean, that you have
problems creating a new tomcat project? Sysdeo is not compatible with
the eclipse version 3.2M2-3.2M4. Perhaps there are similar problems with
your eclipse version.

Best regards

- Franck

 Hi everybody,
 
 I am using Eclipse-3.1.1 and tomcat-4.1.31. I have successfully retrieved my 
 project from my cvs server. Actually I used JBuilder X for the development 
 previously. And just now I am moving it to eclipse. 
 
 I also successfully setup Lomboz, sysdeo and link it with tomcat. But I have 
 problem on how to run my project. Anybody have any suggestion? Thanks.
 
 - azri abdul majid
 
 


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