RE: Re: Tomcat Console - 401 Unauthorized

2024-05-23 Thread Garber, Frank
And the winner is: Chuck 

I tried Chrome (instead of the Corporate mandated browser Edge) and I was right 
away challenged for credentials.

Thanks for all those who responded.


From: Chuck Caldarale 
Sent: Wednesday, May 22, 2024 4:36 PM
To: Tomcat Users List 
Subject: {EXTERNAL} Re: Tomcat Console - 401 Unauthorized

> On May 22, 2024, at 13: 31, Garber, Frank  com. INVALID> wrote: > > Not knowing how it’s supposed to behave, here’s 
> another clue. When I click on the “Server Status” button, I never get prompted




> On May 22, 2024, at 13:31, Garber, Frank 
> mailto:francis.gar...@elevancehealth.com.INVALID>>
>  wrote:

>

> Not knowing how it’s supposed to behave, here’s another clue. When I click on 
> the “Server Status” button, I never get prompted for credentials.





This sounds like a browser configuration problem. On the first attempt to 
access a protected resource, the server will return a 401 status with a 
WWW-Authenticate header listing the acceptable authentication mechanisms; for 
Tomcat, "Basic" is the default. The browser is then supposed to take the 
specified action to determine the credentials - for Basic, that’s the typical 
dialog box prompt.



If you’re using Edge (my condolences if so), go to edge://policy and look at 
the AuthSchemes entry; if it doesn’t include “basic”, you’ll never get the 
prompt.



Can you correct the Edge config or try a different browser?



  - Chuck



CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information or may otherwise be protected by law. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message and any attachment thereto.


RE: Re: Tomcat Console - 401 Unauthorized

2024-05-22 Thread Garber, Frank
Not knowing how it’s supposed to behave, here’s another clue. When I click on 
the “Server Status” button, I never get prompted for credentials. Is it a 
permissions problem on the server itself. Like the server doesn’t have rights 
to the HTML pages?

Thanks in advance,

From: Garber, Frank
Sent: Wednesday, May 22, 2024 2:26 PM
To: Tomcat Users List 
Subject: RE: {EXTERNAL} Re: Tomcat Console - 401 Unauthorized

I’m not sure how the URLs got munged up.

What I have on my side is valid XML, so I’m not worried about that. I’m really 
just concerned that the following isn’t working:

  
  
  

   


Thanks in advance,

From: Chuck Caldarale mailto:n82...@gmail.com>>
Sent: Wednesday, May 22, 2024 2:16 PM
To: Tomcat Users List mailto:users@tomcat.apache.org>>
Subject: {EXTERNAL} Re: Tomcat Console - 401 Unauthorized

> On May 22, 2024, at 10: 51, Garber, Frank  com. INVALID> wrote: > > I've just installed Tomcat 9. 0. 89.  > 
> Tomcat runs, and I can get to the console at https: //urldefense. 
> com/v3/__http: //localhost: 
> 8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$




> On May 22, 2024, at 10:51, Garber, Frank 
> mailto:francis.gar...@elevancehealth.com.INVALID>>
>  wrote:

>

> I've just installed Tomcat 9.0.89.











> Tomcat runs, and I can get to the console at 
> https://urldefense.com/v3/__http://localhost:8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$<https://urldefense.com/v3/__http:/localhost:8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$>
>  but, when I click on "Server Status" I get the 401 Unauthorized page.











> I've been editing the conf\tomcat-users.xml file and have tried MANY 
> different combinations of entries but, can't get past the 401 problem.











> Here's my current file contents:

>

> 

>

>  xmlns=https://urldefense.com/v3/__http://tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$>

>  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

>  xsi:schemaLocation=http://tomcat.apache.org/xml 
> tomcat-users.xsd<https://urldefense.com/v3/__http://tomcat.apache.org/xml*20tomcat-users.xsd__;JQ!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFtPXhfv-$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml*20tomcat-users.xsd__;JQ!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFtPXhfv-$>>

>  version="1.0">





If the above is what you actually have in the .xml file, you should also be 
seeing parsing errors in the catalina.out log file, since it’s not valid XML. 
Once corrected to the following, access to the server status pages worked 
properly.



https://urldefense.com/v3/__http://tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$>"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation="http://tomcat.apache.org/xml 
tomcat-users.xsd<http://tomcat.apache.org/xml%20tomcat-users.xsd>"

  version="1.0">



Note the missing quotes and seriously munged-up xsi:schemaLocation attribute in 
your posting.



If you’re using an editor that thinks it’s clever to convert http:// references 
into HTML, get a better editor.



  - Chuck



CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information or may otherwise be protected by law. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message and any attachment thereto.


RE: Re: Tomcat Console - 401 Unauthorized

2024-05-22 Thread Garber, Frank
I’m not sure how the URLs got munged up.

What I have on my side is valid XML, so I’m not worried about that. I’m really 
just concerned that the following isn’t working:

  
  
  

   


Thanks in advance,

From: Chuck Caldarale 
Sent: Wednesday, May 22, 2024 2:16 PM
To: Tomcat Users List 
Subject: {EXTERNAL} Re: Tomcat Console - 401 Unauthorized

> On May 22, 2024, at 10: 51, Garber, Frank  com. INVALID> wrote: > > I've just installed Tomcat 9. 0. 89.  > 
> Tomcat runs, and I can get to the console at https: //urldefense. 
> com/v3/__http: //localhost: 
> 8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$




> On May 22, 2024, at 10:51, Garber, Frank 
> mailto:francis.gar...@elevancehealth.com.INVALID>>
>  wrote:

>

> I've just installed Tomcat 9.0.89.











> Tomcat runs, and I can get to the console at 
> https://urldefense.com/v3/__http://localhost:8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$<https://urldefense.com/v3/__http:/localhost:8080/__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFvzyQAcQ$>
>  but, when I click on "Server Status" I get the 401 Unauthorized page.











> I've been editing the conf\tomcat-users.xml file and have tried MANY 
> different combinations of entries but, can't get past the 401 problem.











> Here's my current file contents:

>

> 

>

>  xmlns=https://urldefense.com/v3/__http://tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$>

>  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

>  xsi:schemaLocation=http://tomcat.apache.org/xml 
> tomcat-users.xsd<https://urldefense.com/v3/__http://tomcat.apache.org/xml*20tomcat-users.xsd__;JQ!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFtPXhfv-$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml*20tomcat-users.xsd__;JQ!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFtPXhfv-$>>

>  version="1.0">





If the above is what you actually have in the .xml file, you should also be 
seeing parsing errors in the catalina.out log file, since it’s not valid XML. 
Once corrected to the following, access to the server status pages worked 
properly.



https://urldefense.com/v3/__http://tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$<https://urldefense.com/v3/__http:/tomcat.apache.org/xml__;!!IZ3lH8c!yts7ZdG2lLWkLHZXnQFxUeyJeHbX_NxqieI-zv0Ui8nBlMzfnQ_mbT_M5evoEof6o-OZ5azA1nAyFqswncMY$>"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;

  xsi:schemaLocation="http://tomcat.apache.org/xml 
tomcat-users.xsd<http://tomcat.apache.org/xml%20tomcat-users.xsd>"

  version="1.0">



Note the missing quotes and seriously munged-up xsi:schemaLocation attribute in 
your posting.



If you’re using an editor that thinks it’s clever to convert http:// references 
into HTML, get a better editor.



  - Chuck



CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information or may otherwise be protected by law. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message and any attachment thereto.


Tomcat Console - 401 Unauthorized

2024-05-22 Thread Garber, Frank
Hello Group,

I've just installed Tomcat 9.0.89.

First a the first few lines on the Catalina log:
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED 
--add-opens=java.base/java.io=ALL-UNNAMED 
--add-opens=java.base/java.util=ALL-UNNAMED 
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED 
--add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ 
-nonaming ] [ -generateCode [ {pathname} ] ] [ -useGeneratedCode ] { -help | 
start | stop }
22-May-2024 11:16:47.794 INFO [main] 
org.apache.catalina.startup.VersionLoggerListener.log Server version name:   
Apache Tomcat/9.0.89

Tomcat runs, and I can get to the console at http://localhost:8080/ but, when I 
click on "Server Status" I get the 401 Unauthorized page.

I've been editing the conf\tomcat-users.xml file and have tried MANY different 
combinations of entries but, can't get past the 401 problem. I know editing the 
correct file as I see Tomcat logging:
22-May-2024 11:30:00.479 INFO [Catalina-utility-1] 
org.apache.catalina.users.MemoryUserDatabase.backgroundProcess Reloading memory 
user database [UserDatabase] from updated source 
[file:/C:/myProgs/apache-tomcat-9.0.89/conf/tomcat-users.xml]

Regardless, I stop and restart Tomcat to make sure it's picking up the changes.

Here's my current file contents:



http://tomcat.apache.org/xml
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
  xsi:schemaLocation=http://tomcat.apache.org/xml 
tomcat-users.xsd
  version="1.0">

  
  

   




Thanks in advance,
F

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information or may otherwise be protected by law. Any
unauthorized review, use, disclosure or distribution is prohibited. If you
are not the intended recipient, please contact the sender by reply e-mail
and destroy all copies of the original message and any attachment thereto.


Re: Off topic question

2020-05-28 Thread Frank Tornack
Maybe this would help you as a way to encrypt passwords


https://docs.jboss.org/jbosssecurity/docs/6.0/security_guide/html/Encrypting_The_Keystore_Password_In_Tomcat.html


Am Donnerstag, den 28.05.2020, 03:38 + schrieb
jonmcalexan...@wellsfargo.com.INVALID:
> I know this is off topic some, but does anyone know why development
> seemed to just stop on the tomcat-vault?
> 
> Thanks,
> 
> 
> Dream * Excel * Explore * Inspire
> Jon McAlexander
> Asst Vice President
> 
> Middleware Product Engineering
> Enterprise CIO | Platform Services | Middleware | Infrastructure
> Solutions
> 
> 8080 Cobblestone Rd | Urbandale, IA 50322
> MAC: F4469-010
> Tel 515-988-2508 | Cell 515-988-2508
> 
> jonmcalexan...@wellsfargo.com
> 
> 
> This message may contain confidential and/or privileged information.
> If you are not the addressee or authorized to receive this for the
> addressee, you must not use, copy, disclose, or take any action based
> on this message or any information herein. If you have received this
> message in error, please advise the sender immediately by reply e-
> mail and delete this message. Thank you for your cooperation.
> 


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



Re: How to write a filter in web.xml to accept partially a URL ?

2020-04-25 Thread Frank Tornack
Hi Gilbert,

maybe you have more luck with the security-constraint in tomcat.

kindly 
Frank

Am Samstag, den 25.04.2020, 08:47 -0400 schrieb Gilbert Soucy:
> Hello,
> 
> I am new to tomcat and I need to filter the URLs to accept all
> clients for
> part of a URL and reject for all clients another part of this URL.
> 
> In details, I want:
> 
> /abc/def/xyz/*   : accepts all
> /abc/def/*:  reject if URL does  not match /abc/def/xyz*
> 
> 
> I found that the order in which the filters are done is explained in
> this
> link (
> https://stackoverflow.com/questions/17086712/servlet-filters-order-of-execution
> ).
> 
> Based on this, I did the following 2 filters:
> 
> 1) Accept All : this one is the most precise url-pattern and is
> listed
> 1st. When matching, I hope to accept all IP addresses
> 
> 2) Block All  :  this one is more general and should match the
> rest of
> the URL when the 1st fitler does not match. I hope to reject all the
> IP in
> this case
> 
> Here are the filters, in the order that I add them in web.xml :
> 
> 
>   Accept All
>   org.apache.catalina.filters.RemoteAddrFilter class>
>   
> allow
> \d+\.\d+\.\d+\.\d+
>   
> 
> 
>   Accept All
>   /abc/def/xyz/*
> 
> 
> 
>   Block All
>   org.apache.catalina.filters.RemoteAddrFilter class>
>   
> deny
> \d+\.\d+\.\d+\.\d+
>   
> 
> 
>   Block All
>   /abc/def/*
> 
> 
> 
> The result is that all URLs  (  i.e.  /abc/def/* ) are jected and
> /abc/def/xyz/*  is never accepted.
> 
> Is there a way to do what I am trying to do ?
> 
> Thank you
> 
> Gilbert


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



Re: Alternatives for AJP

2020-04-15 Thread Frank Tornack
Chris,

Am Dienstag, den 14.04.2020, 10:56 -0400 schrieb Christopher Schultz:
> Frank,
> 
> On 4/12/20 10:20, Frank Tornack wrote:
> > It is possible to replace AJP with normal HTTP or HTTPs.
> > 
> > AJP has an advantage, it needs less bandwidth.
> 
> Reference?
https://marc.info/?l=tomcat-user=123404294317780
I think AJP has less overhead.

> 
> > But it shouldn't make too much difference with today's computer
> > networks. If you need the bandwidth advantage, you can certainly
> > use the module ModSecurity for Apache HTTPD to protect your
> > application server. But an advanced solution would be to protect
> > AJP with the IPTables firewall. AJP is mostly used in conjunction
> > with HTTPD and if you only allow access to these, it should be
> > pretty secure.
> 
> While a firewall (iptables) can be used to protect AJP, a much better
> solution would be mutually-authenticated stunnel. Even better, switch
> to mutually-authenticated https, which doesn't require a separate
> package to add the security layer.
why not both?
> 
> -chris
> 
> > Am Freitag, den 10.04.2020, 15:45 + schrieb David Cleary:
> > > Some of our customers are currently using the AJP connector.
> > > Given the vulnerability and breaking change to address it, now
> > > may be a good time to prompt them look at alternatives. One
> > > requirement is HTTPS support. What are the alternatives when
> > > hosting Tomcat behind Apache httpd, nginx, or IIS? I do remember
> > > a presentation I thought was pretty good at Apachecon in Miami on
> > > connectors a few years ago. Has there been anything new that has
> > > come out since then? Are there any recommendations on what is
> > > best to replace AJP13?
> > > 
> > > Thanks Dave
> > 
> > -
> > 
> > 
> > 
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> > 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Re: Alternatives for AJP

2020-04-12 Thread Frank Tornack
It is possible to replace AJP with normal HTTP or HTTPs.
AJP has an advantage, it needs less bandwidth. But it shouldn't make
too much difference with today's computer networks. If you need the
bandwidth advantage, you can certainly use the module ModSecurity for
Apache HTTPD to protect your application server. But an advanced
solution would be to protect AJP with the IPTables firewall. AJP is
mostly used in conjunction with HTTPD and if you only allow access to
these, it should be pretty secure.

Am Freitag, den 10.04.2020, 15:45 + schrieb David Cleary:
> Some of our customers are currently using the AJP connector. Given
> the vulnerability and breaking change to address it, now may be a
> good time to prompt them look at alternatives. One requirement is
> HTTPS support. What are the alternatives when hosting Tomcat behind
> Apache httpd, nginx, or IIS? I do remember a presentation I thought
> was pretty good at Apachecon in Miami on connectors a few years ago.
> Has there been anything new that has come out since then? Are there
> any recommendations on what is best to replace AJP13?
> 
> Thanks
> Dave


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



Re: tomcat7 does not log x-forwarded-for

2020-04-12 Thread Frank Tornack
hello all,

unfortunately, I haven't been able to find a clue as to what I'm doing
wrong. Currently, logging works with the direct entry of the HTTP
header. Unfortunately the automatic switching does not work yet. This
means that in case of direct requests, I have a minus sign at this
position. 

Do you have another idea? Thanks in advance.



Am Freitag, den 03.04.2020, 13:38 +0200 schrieb Frank Tornack:
> Hello Mark,
> 
> I could test the change today, unfortunately only with moderate
> success. The change to %a or %h, unfortunately did not work, but the
> readout with the header value per %{X-Forwarded-For}i worked. The log
> doesn't look nice, but we get the value. Nevertheless I am still
> looking for a nicer solution. I was really hoping on %a that we would
> only see the IP of the load balancer if no header is set, but still
> always see an IP.
> 
> Do you have any more ideas what to watch? 
> PS:For a Tomcat update I have to ask other contacts if it is easy to
> do.


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



Re: JNI memory leak?

2020-04-04 Thread Frank Tornack
Good evening,
I have a question about your e-mail address. Why does the address end
on com.INVALID? How do you get such an address?

Sorry for the interposed question,

Am Samstag, den 04.04.2020, 01:48 + schrieb Mark Boon:
> For the past few months we’ve been trying to trace what looks like
> gradual memory creep. After some long-running experiments it seems
> due to memory leaking when
> jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType,
> _jmethodID*, JNI_ArgumentPusher*, Thread*) is invoked. Somewhere.
> 
> My environment is Tomcat running a proxy webapp. It does TLS
> termination,  authentication and then forwards the call to local
> services. It doesn’t do much else, it’s a relatively small
> application.
> 
> Some (possibly relevant) versions and config parameters:
> Tomcat 8.5
> Java 8u241 (Oracle)
> Heap size = 360Mb
> MAX_ALLOC_ARENA=2
> MALLOC_TRIM_THRESHOLD_=250048
> jdk.nio.maxCachedBufferSize=25600
> 
> We couldn’t find any proof of memory leaking on the Java side.
> When we turn on NativeMemoryTracking=detail and we take a snapshot
> shortly after starting, we see (just one block shown):
> 
> [0x03530e462f9a] JNIHandleBlock::allocate_block(Thread*)+0xaa
> [0x03530e3f759a] JavaCallWrapper::JavaCallWrapper(methodHandle,
> Handle, JavaValue*, Thread*)+0x6a
> [0x03530e3fa000] JavaCalls::call_helper(JavaValue*,
> methodHandle*, JavaCallArguments*, Thread*)+0x8f0
> [0x03530e4454a1] jni_invoke_static(JNIEnv_*, JavaValue*,
> _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)
> [clone .isra.96] [clone .constprop.117]+0x1e1
>  (malloc=33783KB type=Internal #110876)
> 
> Then we run it under heavy load for a few weeks and take another
> snapshot:
> 
> [0x03530e462f9a] JNIHandleBlock::allocate_block(Thread*)+0xaa
> [0x03530e3f759a] JavaCallWrapper::JavaCallWrapper(methodHandle,
> Handle, JavaValue*, Thread*)+0x6a
> [0x03530e3fa000] JavaCalls::call_helper(JavaValue*,
> methodHandle*, JavaCallArguments*, Thread*)+0x8f0
> [0x03530e4454a1] jni_invoke_static(JNIEnv_*, JavaValue*,
> _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)
> [clone .isra.96] [clone .constprop.117]+0x1e1
>  (malloc=726749KB type=Internal #2385226)
> 
> While other blocks also show some variation, none show growth like
> this one. When I do some math on the number (726749KB - 33783KB) /
> (2385226 – 110876) it comes down to a pretty even 312 bytes per
> allocation.
> And we leaked just under 700Mb. While not immediately problematic,
> this does not bode well for our customers who run this service for
> months.
> 
> I’d like to avoid telling them they need to restart this service
> every two weeks to reclaim memory. Has anyone seen something like
> this? Any way it could be avoided?
> 
> Mark Boon
> 
> 
> 


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



Re: tomcat7 does not log x-forwarded-for

2020-04-03 Thread Frank Tornack
Hello Mark,

I could test the change today, unfortunately only with moderate
success. The change to %a or %h, unfortunately did not work, but the
readout with the header value per %{X-Forwarded-For}i worked. The log
doesn't look nice, but we get the value. Nevertheless I am still
looking for a nicer solution. I was really hoping on %a that we would
only see the IP of the load balancer if no header is set, but still
always see an IP.

Do you have any more ideas what to watch? 
PS:For a Tomcat update I have to ask other contacts if it is easy to
do.
-- 
Frank Tornack 


Am Mittwoch, den 01.04.2020, 09:35 +0100 schrieb Mark Thomas:
> On 01/04/2020 06:56, Frank Tornack wrote:
> > Am Dienstag, den 31.03.2020, 15:47 +0100 schrieb Mark Thomas:
> > > On 31/03/2020 07:26, Frank Tornack wrote:
> 
> 
> 
> > > > We used the following configuration for access logging and
> > > > remote
> > > > valve:
> > > >  > > > internalProxies="xxx\.xxx\.xxx\.7|xxx\.xxx\.xxx\.8|xxx\.xxx\.xx
> > > > x\.9
> > > > "  remoteIpHeader="X-Forwarded-For" />
> > > 
> > > The remoteIpHeader setting is unnecessary. That is the default.
> > The way I understand you, it shouldn't bother? I had added it
> > because I
> > was not sure about the capitalization.
> 
> Correct. The names of HTTP headers are not case-sensitive. Tomcat
> looks
> them up in a case insensitive manner.
> 
> > > >  > > > directory="logs"
> > > > prefix="access_log." suffix=".log"
> > > > pattern="%{org.apache.catalina.AccessLog.RemoteAddr}r %l %u %t
> > > > %r %s %b" 
> > > > requestAttributesEnabled="true" />
> > > 
> > > That isn't correct. You only need to add
> > > requestAttributesEnabled="true"
> > > to the default AccessLogValve. It will handle looking up the
> > > correct
> > > attributes. You don't need to modify the pattern.
> > I already worked with a modified log layout before the change. I
> > only
> > changed the %{org.apache.catalina.AccessLog.RemoteAddr}r. So would
> > I
> > have to replace %{org.apache.catalina.AccessLog.RemoteAddr}r with a
> > %a?
> 
> I was using %h but %a should work just as well. Let me check ... yes
> it
> does.
> 
> > > I also confirmed that the Valve order doesn't matter.
> > So not like many on the Internet claim it matters?
> 
> Many on the internet are often wrong. Or at least the information
> they
> present is incomplete, out of date and/or out of context.
> 
> In this specific instance, Valve order is irrelevant.
> 
> The general case is a request/response passes through the Valves
> (Engine
> level Valves in order of definition, then Host Valves in order, then
> Context Valves in order), gets processed by the application and then
> returns through the valves in reverse order.
> 
> So, generally, order is important. However, there are some
> exceptions.
> 
> A Valve can choose not to pass the request/response on to the next
> stage
> but to generate the response itself and return the request/response
> back
> through the Valves it has passed through to that point.
> 
> The AccessLogValve is the other exception. It does not generate the
> log
> entry at the point where the request/response passes through it. It
> used
> to a long time ago but that changed with the fix for bug 50582 (in
> 2011).
> 
> It is important which Container (Engine, Host or Context) that the
> Valve
> is added to since that will determine which request/response pairs
> get
> logged.
> 
> > > > The request header 'X-Forwarded-For'
> > > > was set and load balancer was analyzed via wireshark and
> > > > Request
> > > > Dumper
> > > > Filter. We can see the header in both. However we still only
> > > > get
> > > > the IP
> > > > of the load balancer and not the IP of the remote client. The
> > > > IP
> > > > adresses of the config have already been checked and they are
> > > > correct.
> > > 
> > > You can add "... %{X-Forwarded-For}i ..." to the pattern
> > > attribute of
> > > the AccessLog valve to confirm that Tomcat sees this header
> > > value.
> > In the beginning we tested it with Wireshark, later with a
> > RequestDumper in the Tomcat. In both we saw the header.
> > 
> > > I've tested this locally with the latest 7.0.x and everything
> > > works
> > > a

Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Good morning all,

the answers are [inline].

With kind regards
Frank

Am Dienstag, den 31.03.2020, 15:47 +0100 schrieb Mark Thomas:
> On 31/03/2020 07:26, Frank Tornack wrote:
> > Hello all,
> > 
> > I currently have a problem with Tomcat7, or rather a colleague has
> > it.
> > Personally I would like to help him, but I can't find the error
> > myself.
> > We already asked the question on stackoverflow.com and got a good
> > hint,
> > but unfortunately no solving. So I would like to ask for help and
> > support here. I think I am violating the directive of asking a
> > double
> > question, but it is important to me personally to help this
> > colleague.
> > Therefore I am at least honest, the question can also be found at
> > the
> > link: 
> > https://stackoverflow.com/questions/60827540/tomcat-x-forwarded-for-doesnt-work-with-load-balancer
> 
> Which at least enables us to find the one key piece of information
> missing in this question, the version of Tomcat being used: 7.0.76
Sorry I forgot to include this information in the mail.

> 
> > We run a software that uses Tomcat as application server behind a
> > load
> > balancer. Now we would like to record the initial address of the
> > requests and not the IP of the load balancer. We have used these 3
> > websites for the setup, but unfortunately it does not work. The IPs
> > of
> > the loadbalancers are still written to the access log. 
> > https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html
> > https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html
> > https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_IP_Valve
> > 
> > We used the following configuration for access logging and remote
> > valve:
> >  > internalProxies="xxx\.xxx\.xxx\.7|xxx\.xxx\.xxx\.8|xxx\.xxx\.xxx\.9
> > "  r
> > emoteIpHeader="X-Forwarded-For" />
> 
> The remoteIpHeader setting is unnecessary. That is the default.
The way I understand you, it shouldn't bother? I had added it because I
was not sure about the capitalization.

> 
> >  > directory="logs"
> > prefix="access_log." suffix=".log"
> > pattern="%{org.apache.catalina.AccessLog.RemoteAddr}r %l %u %t
> > %r %s %b" 
> > requestAttributesEnabled="true" />
> 
> That isn't correct. You only need to add
> requestAttributesEnabled="true"
> to the default AccessLogValve. It will handle looking up the correct
> attributes. You don't need to modify the pattern.
I already worked with a modified log layout before the change. I only
changed the %{org.apache.catalina.AccessLog.RemoteAddr}r. So would I
have to replace %{org.apache.catalina.AccessLog.RemoteAddr}r with a %a?

> 
> I also confirmed that the Valve order doesn't matter.
So not like many on the Internet claim it matters?

> 
> > The request header 'X-Forwarded-For'
> > was set and load balancer was analyzed via wireshark and Request
> > Dumper
> > Filter. We can see the header in both. However we still only get
> > the IP
> > of the load balancer and not the IP of the remote client. The IP
> > adresses of the config have already been checked and they are
> > correct.
> 
> You can add "... %{X-Forwarded-For}i ..." to the pattern attribute of
> the AccessLog valve to confirm that Tomcat sees this header value.
In the beginning we tested it with Wireshark, later with a
RequestDumper in the Tomcat. In both we saw the header.

> 
> I've tested this locally with the latest 7.0.x and everything works
> as
> expected. I also don't recall any changes / bugs in this area
> recently.
> 
> A quick scan of the changelog does identify various improvements and
> fixes since 7.0.76 but none that immediately jump out as likely to
> cause
> this simple configuration to fail.
Thanks for looking into it.
> 
> Mark
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Re: tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Good morning all,

the answers are [inline].

With kind regards
Frank

Am Dienstag, den 31.03.2020, 10:08 -0400 schrieb Christopher Schultz:
> Frank,
> 
> On 3/31/20 02:26, Frank Tornack wrote:
> > I currently have a problem with Tomcat7, or rather a colleague has
> > it.
> 
> Which exact version of Tomcat 7?
It is version: 7.0.76
> 
> > Personally I would like to help him, but I can't find the error
> > myself. We already asked the question on stackoverflow.com and got
> > a good hint, but unfortunately no solving. So I would like to ask
> > for help and support here. I think I am violating the directive of
> > asking a double question, but it is important to me personally to
> > help this colleague. Therefore I am at least honest, the question
> > can also be found at the link:
> > https://stackoverflow.com/questions/60827540/tomcat-x-forwarded-for-do
> esnt-work-with-load-balancer
> >  We run a software that uses Tomcat as application server behind a
> > load balancer. Now we would like to record the initial address of
> > the requests and not the IP of the load balancer. We have used
> > these 3 websites for the setup, but unfortunately it does not work.
> > The IPs of the loadbalancers are still written to the access log.
> > https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valve
> s/RemoteIpValve.html
> > 
> https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/
> AccessLogValve.html
> > https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_IP_V
> alve
> 
> You
> are at least on the right track.
Thank you. I had the hope not to run completely in the wrong direction.
> 
> > We used the following configuration for access logging and remote
> > valve:  > internalProxies="xxx\.xxx\.xxx\.7|xxx\.xxx\.xxx\.8|xxx\.xxx\.xxx\.9
> > "
> > r emoteIpHeader="X-Forwarded-For" />  > className="org.apache.catalina.valves.AccessLogValve"
> > directory="logs" prefix="access_log." suffix=".log"
> > pattern="%{org.apache.catalina.AccessLog.RemoteAddr}r %l %u %t
> > %r %s %b" requestAttributesEnabled="true" />
> 
> What is the IP address of your load-balancer(s)? One of those
> xxx.xxx.xxx.[789]?
the used load balancer uses three network cards in the Tomcat network.
We have not yet set up a grouping of the network cards, so all IPs are
listed here and linked with "or".
> 
> > The request header 'X-Forwarded-For' was set and load balancer was
> > analyzed via wireshark and Request Dumper Filter. We can see the
> > header in both. However we still only get the IP of the load
> > balancer and not the IP of the remote client. The IP adresses of
> > the config have already been checked and they are correct.
> > 
> > Thank you very much in advance for your support.
> 
> Please post the  that you are using to receive requests
> from your load-balancer.



> 
> Are you seeing any warnings/errors in your log file when Tomcat
> starts? During the first few requests?
There are some errors, but as far as I know only application errors and
none from Tomcat itself. 
> 
> -chris
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Frank Tornack
Yes, these too are for communication between processes. Only you don't
use the network stack. This is a special feature of Unix-like operating
systems.

DGRAM, unlike STREAM, does not know connection states. Therefore STREAM
is comparable to a local TCP connection. Unix domain sockets exist in
the file tree as special files. Access is controlled by file
permissions, as is usual for files. 

Am Dienstag, den 31.03.2020, 14:29 +0200 schrieb André Warnier
(tomcat/perl):
> On 31.03.2020 14:20, Mark Thomas wrote:
> > On 31/03/2020 11:20, Aditya Kumar wrote:
> > > Tomcat 9.0.30 on Windows Server 2012 / Java 1.8
> > > 
> > > I've noticed on a freshly installed version of tomcat 9, upon
> > > startup there
> > > are several connections to and from localhost on different ports
> > > 
> > > For example on my tomcat server there are 4 connections to and
> > > from
> > > localhost (output from netstat)
> > > 
> > >  
> > > TCP0.0.0.0:8080   0.0.0.0:0  LISTENING   
> > > 3972
> > >  
> > > TCP127.0.0.1:55618127.0.0.1:55619ESTABLISHED 
> > > 3972
> > >  
> > > TCP127.0.0.1:55619127.0.0.1:55618ESTABLISHED 
> > > 3972
> > >  
> > > TCP127.0.0.1:55620127.0.0.1:55621ESTABLISHED 
> > > 3972
> > >  
> > > TCP127.0.0.1:55621127.0.0.1:55620ESTABLISHED 
> > > 3972
> > >  
> > > TCP[::]:8080  [::]:0 LISTENING   
> > > 3972
> > > 
> > > These can grow to a large number (several thousand) on a busy
> > > system. What
> > > are these connections used for? What caused them? What thread are
> > > they
> > > attributed to?
> > 
> > The Java NIO implementation on Windows uses TCP for intra-process
> > signalling. It opens a pair of self-connected sockets for every
> > Selector.
> > 
> > Mark
> > 
> 
> While we're at it, under Linux, are the following for a similar
> reason ?
> 
> output of :  netstat -pan | grep 27514   (tomcat's JVM PID = 27514)
> [...]
> unix  2  [ ] STREAM CONNECTED 167427210
> 27514/java
> unix  2  [ ] STREAM CONNECTED 167423436
> 27514/java
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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



Re: Why does Tomcat open connections on localhost?

2020-03-31 Thread Frank Tornack
Hi Aditya,

I'm not quite sure, but it could be a replacement for the sockets that
a Linux system provides for inter-process communication.

But it's just a guess, because I don't see this behavior on Linux.

kindly
Frank

Am Dienstag, den 31.03.2020, 11:20 +0100 schrieb Aditya Kumar:
> Tomcat 9.0.30 on Windows Server 2012 / Java 1.8
> 
> I've noticed on a freshly installed version of tomcat 9, upon startup
> there
> are several connections to and from localhost on different ports
> 
> For example on my tomcat server there are 4 connections to and from
> localhost (output from netstat)
> 
>  TCP0.0.0.0:8080   0.0.0.0:0  LISTENING  
>  3972
>  TCP127.0.0.1:55618127.0.0.1:55619ESTABLISHED
>  3972
>  TCP127.0.0.1:55619127.0.0.1:55618ESTABLISHED
>  3972
>  TCP127.0.0.1:55620127.0.0.1:55621ESTABLISHED
>  3972
>  TCP127.0.0.1:55621127.0.0.1:55620ESTABLISHED
>  3972
>  TCP[::]:8080  [::]:0 LISTENING  
>  3972
> 
> These can grow to a large number (several thousand) on a busy system.
> What
> are these connections used for? What caused them? What thread are
> they
> attributed to?


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



tomcat7 does not log x-forwarded-for

2020-03-31 Thread Frank Tornack
Hello all,

I currently have a problem with Tomcat7, or rather a colleague has it.
Personally I would like to help him, but I can't find the error myself.
We already asked the question on stackoverflow.com and got a good hint,
but unfortunately no solving. So I would like to ask for help and
support here. I think I am violating the directive of asking a double
question, but it is important to me personally to help this colleague.
Therefore I am at least honest, the question can also be found at the
link: 
https://stackoverflow.com/questions/60827540/tomcat-x-forwarded-for-doesnt-work-with-load-balancer

We run a software that uses Tomcat as application server behind a load
balancer. Now we would like to record the initial address of the
requests and not the IP of the load balancer. We have used these 3
websites for the setup, but unfortunately it does not work. The IPs of
the loadbalancers are still written to the access log. 
https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/RemoteIpValve.html
https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/AccessLogValve.html
https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_IP_Valve

We used the following configuration for access logging and remote
valve:



The request header 'X-Forwarded-For'
was set and load balancer was analyzed via wireshark and Request Dumper
Filter. We can see the header in both. However we still only get the IP
of the load balancer and not the IP of the remote client. The IP
adresses of the config have already been checked and they are correct.

Thank you very much in advance for your support.

With kindest regards
Frank


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



How to upgrade from 7.0.86 to 7.0.93

2019-03-18 Thread Frank Sharpless
Team,

Looking for advice on how to upgrade from version 7.0.86 to 7.0.93.

Kind Regards.





A. Frank Sharpless

fsharpl...@paperhost.com<mailto:fsharpl...@paperhost.com>


Chief Technology Officer

Ph: 678-397-1602



[Description: Description: 
cid:image001.gif@01C95ED6.51084AC0]<http://www.paperhost.com/>

675 Mansell Rd, Suite 145
Roswell, GA 30076

www.PaperHost.com<http://www.paperhost.com/>





Re: Using tomcat manager to deploy to several services

2018-12-05 Thread Frank Schullerer
Hello @all,

again thanks for all the answers.
I'm thinking if it's better to have a separate Tomcat instance for each
service. At the moment we have many services running in one Tomcat
instance. The problem with restarting the Tomcat can be imagined by
everyone: all services are stopped.

Frank

Am Mi., 5. Dez. 2018 um 11:53 Uhr schrieb Jäkel, Guido :

> Dear Frank,
>
> I don't agree that this is "better". It will trigger the same things in
> the backend in the end. And obviously don't need the Tomcat Connector to be
> available.
>
> This might be important in situation with some malfunctions caused by
> near-OOM or out-of-request-workers (caused by long running or blocked
> requests).
>
> In my Tomcat farm control scripts, I also never use the "shutdown port"
> mechanism to (graceful) stop the Tomcat but send a SIGTERM to the JVM.
> Again, this will do the same thing but need much less to be fuctional. And
> if a graceful shutdown will fail, one even need to SIGKILL the JVM.
>
> >-Original Message-
> >From: Frank Schullerer [mailto:schulle...@googlemail.com.INVALID]
> >Sent: Tuesday, December 04, 2018 4:06 PM
> >To: users@tomcat.apache.org
> >Subject: Re: Using tomcat manager to deploy to several services
> >
> >Hello,
> >
> >thanks for the answer. That is exactly the way how we do this today (all
> >via a shell script and via Jenkins). But I thought the
> >"official" way to start/stop/deploy/reload applications via   e.g.  "curl
> >http://localhost:8080/manager/text/reload?... " is better
> >
> >Greetings
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello @all,

After searching the web many many times and reading all this here, it seems
that there is no real good
solution for this. In my example server.xml are 4 services but we have 25
and more to come. So we need maybe a
management solution like the Tcat server or I don't know . That's a little
frustrating because I thought it'd be easier.

But many thanks for all the answers!!!


Am Di., 4. Dez. 2018 um 17:45 Uhr schrieb Christopher Schultz <
ch...@christopherschultz.net>:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Frank,
>
> On 12/4/18 06:09, Frank Schullerer wrote:
> > Thanks!
> >
> > Ok let me know if I can achive things in a better way. Now I have
> > a server.xml like this:
> >
> >   > name="Catalina">  > defaultHost="localhost">  >
> >  
> >
> >   > keyAlias=""  />   > name="host1" appBase="services/a" >   
> >   > keyAlias=""  />   > name="host2" appBase="services/b" >   
> >   > keyAlias="ccc"  />   > name="host3" appBase="services/c" >   
> >
> > Please note that we need different ports and different
> > configurations (like clientAuth or keyAlias) for the applications.
> > If there is a better way and have a tomcat manager to deploy all
> > applications, please let me know!
> >
> > Thank you in advance!
>
> As Mark said, you will need to deploy the Tomcat manager 4 times for
> the above configuration.
>
> - -chris
>
> > Am Di., 4. Dez. 2018 um 11:53 Uhr schrieb Mark Thomas
> > :
> >
> >> On 04/12/2018 10:19, Frank Schullerer wrote:
> >>> Hello,
> >>>
> >>> I think this question is independent from the tomcat version
> >>> but I tried
> >> it
> >>> with Tomcat 9.0.13 on Windows. We have several "service" tags
> >>> in our server.xml because we have several applications running
> >>> in one tomcat with several ports and different configuration
> >>> (clientAuth etc). I tried to use the tomcat manager to deploy
> >>> to different services but it failed. It seems that the tomcat
> >>> manager can only deploy within the same service because when I
> >>> deploy the tomcat manager itself to a different service than it
> >>> works. I can deploy to that service.
> >>>
> >>> Is this correct or can I configure the tomcat manager to deploy
> >>> to other services? I also tried to achive that with a
> >>> configuration with "context.xml" but failed.
> >>>
> >>> Please help!
> >>
> >> TL;DR you can't deploy services that way.
> >>
> >> The Tomcat Manager application only works with the Host to which
> >> it has been deployed.
> >>
> >> In Tomcat: - There is exactly one Server - A Server may contain 0
> >> or more Services - A Service may contain 0 or more Connectors and
> >> no more than one Engine - An Engine may contain 0 or more Hosts -
> >> A host may contain 0 or more Contexts (Context == web
> >> application)
> >>
> >> (I left a few things like Valves and Executors out to keep it
> >> simple)
> >>
> >>
> >> The Tomcat Host Manager application only works with the Engine
> >> associated with the Host to which it has been deployed.
> >>
> >> Mark
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwGrywACgkQHPApP6U8
> pFjwZhAAkXowqbvU3WteyhR+Zv2UkNcYhQ5XQH9Z/0kw0GF53+We2Tb4VH6dtXMK
> CF/JEIRRLGaRW60HO2V5vXi3dP57+eZm2gpUIH4bpNfE5w7yCl0CdbSwgSzC5+IR
> 4++CqvGRSQO1fMzIWQG+aYopvo1UDgfBl8mL5mcBcUrzkL1jeEledWDv63kI6MFQ
> 3FlXjl6qgF1eV9EYUw2BUtQyRlgWVLmmMu9p/7PY90WupBMzFAIWcxas3YwITGTY
> Ul2/ClxdfQdOU179l5YRD2nB5mgZNPZ1kIL6WNy9AJtzq8fHUrdj4CfTC4uy9FqL
> BLw66Huj0AADMJn5RBH7WyH+hyVNbf8JSGjLyF6PLYvot6ZR6iRidzftpwT42kya
> JZgpALSRBGIKOAPbNWEPRtrgTp5TjX1cMol23v86+jv6DEzLLptv4wa8jJyLbZ4w
> UU5NW7RQ/oJoWY3IQ1fdsYmwsqYj08JkzN9ZEEWa0DlA150dJvMxrizSY5C3QGeo
> S7WN2mWsbvppZRVg6qAlFlOyFjmJIKWWg4YBp1OybUzgAFb1w8E/xH521T5Zz1Rj
> uV0xit65jvYZucSUsA13q/vEGESOc5VIex/rKCaDOJhtiTHLTtGzkbA7kYgJVAJS
> NqKpbb7Zr+K7PS4i5pjIlAZjv6oqF40M9xwbTjEi6QyLyxQiYho=
> =LeCR
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello,

thanks for the answer. That is exactly the way how we do this today (all
via a shell script and via Jenkins). But I thought the
"official" way to start/stop/deploy/reload applications via   e.g.  "curl
http://localhost:8080/manager/text/reload?... " is better

Greetings


Am Di., 4. Dez. 2018 um 15:40 Uhr schrieb Jäkel, Guido :

> Dear Frank,
>
> I guess you have configured autodeployment of the WARs. And it seems to me
> that you want to use a tree in a filesystem to place your deployments.
> Given that, you may use an arbitrary way to place the WARs to that
> location, because it's not the Tomcat Manager application that actually
> perform the deployment.
>
> You may trigger a restart of the application container by touching the WAR
> or (in case of an expanded deployment) touching a watched file (common
> WEB-INF/web.xml) and trigger undeploy by removing (or hiding by rename the
> extention) the WAR.
>
> >If there is a better way and have a tomcat manager to deploy all
> applications, please let me know!
>
>
> with greetings
>
> Guido
>


Re: Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Thanks!

Ok let me know if I can achive things in a better way. Now I have a
server.xml like this:


  

  
  

  





















Please note that we need different ports and different configurations (like
clientAuth or keyAlias) for the applications.
If there is a better way and have a tomcat manager to deploy all
applications, please let me know!

Thank you in advance!



Am Di., 4. Dez. 2018 um 11:53 Uhr schrieb Mark Thomas :

> On 04/12/2018 10:19, Frank Schullerer wrote:
> > Hello,
> >
> > I think this question is independent from the tomcat version but I tried
> it
> > with Tomcat 9.0.13 on Windows.
> > We have several "service" tags in our server.xml because we have several
> > applications
> > running in one tomcat with several ports and different configuration
> > (clientAuth etc).
> > I tried to use the tomcat manager to deploy to different services but it
> > failed. It seems that the tomcat manager can only deploy within the same
> > service because when I deploy the tomcat manager itself to a different
> > service than it works. I can deploy to that service.
> >
> > Is this correct or can I configure the tomcat manager to deploy to other
> > services? I also tried to achive that with a configuration with
> > "context.xml" but failed.
> >
> > Please help!
>
> TL;DR you can't deploy services that way.
>
> The Tomcat Manager application only works with the Host to which it has
> been deployed.
>
> In Tomcat:
> - There is exactly one Server
> - A Server may contain 0 or more Services
> - A Service may contain 0 or more Connectors and no more than one Engine
> - An Engine may contain 0 or more Hosts
> - A host may contain 0 or more Contexts (Context == web application)
>
> (I left a few things like Valves and Executors out to keep it simple)
>
>
> The Tomcat Host Manager application only works with the Engine
> associated with the Host to which it has been deployed.
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Using tomcat manager to deploy to several services

2018-12-04 Thread Frank Schullerer
Hello,

I think this question is independent from the tomcat version but I tried it
with Tomcat 9.0.13 on Windows.
We have several "service" tags in our server.xml because we have several
applications
running in one tomcat with several ports and different configuration
(clientAuth etc).
I tried to use the tomcat manager to deploy to different services but it
failed. It seems that the tomcat manager can only deploy within the same
service because when I deploy the tomcat manager itself to a different
service than it works. I can deploy to that service.

Is this correct or can I configure the tomcat manager to deploy to other
services? I also tried to achive that with a configuration with
"context.xml" but failed.

Please help!


tomcat Realm formatting

2018-03-27 Thread Frank, Jon
Hi I need to encrypt the password for tomcat console access..

I've encrypted it using the digest.sh script, and I've added it to the 
tomcat-users.xml file. See below...I've X'd out the actual password.

I also need to edit the Realm tag in the server.xml file but there is already a 
Realm for Lockout and DataSource  in it.

My question is how do I add the UserDatabase Realmis it correct how I have 
it below?

I added the Combined Realm along with the UserDatabase Realm I can't test this 
out since we only have a production environment.



##

Tomcat-users.xml

  

  

  

  

  





Server.xml

 

 

 



 

 

  


cheers,
jon frank
middleware infrastructure
w: 651-662-8216h: 952-226-3059c: 612-715-6522route: m125cube: 
m1-g9-03



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the named addressee you must not disseminate, distribute or copy 
this e-mail. Please notify the sender immediately by e-mail if you have 
received this e-mail by mistake and delete this e-mail from your system. If you 
are not the intended recipient you are notified that disclosing, copying, 
distributing or taking any action in reliance on the contents of this 
information is strictly prohibited.


RE: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-05 Thread Frank Taffelt
> I don't think that will work because you can't read the key out of the
> keystore.

The keystore API has the getKey(alias,keypass) method that should give you the 
key. copying the entry could be:

KeyStore newks = KeyStore.getInstance("JKS");
newks.load(null, null);
newks.setKeyEntry(alias,  ks.getKey(alias, keypass), keypass, 
ks.getCertificateChain(alias));

hth,
Frank


RE: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-04 Thread Frank Taffelt
Hi Thomas,

> By far the simplest solution is to have one keystore per private key.

so maybe this could go into the docs section.

> I find the JSSE API tricky to navigate at the best of times so it is possible
> I have missed something. If I have, feel free to point me in the right
> direction. Better yet, provide some code that shows how to use
> KeyManagerFactory with a keystore that has multiple keys each with a different
> password.

yes, i also wondered on the API of KMF having only one password on the init 
method. Could creating a runtime inmemory keystore with the keyentry from the 
original keystore help?

thanks,
Frank



RE: Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-07-03 Thread Frank Taffelt
Hi Christopher,

> > # create 2 entries with different keypass for each entry keytool
> > -genkeypair -alias tomcat1 -storepass storepass  -keystore
> > different.jks  -keyalg RSA -keypass tomcat1  -ext san=dns:tomcat1
> > -dname CN=tomcat1 keytool -genkeypair -alias tomcat2 -storepass
> > storepass  -keystore different.jks  -keyalg RSA -keypass tomcat2 -ext
> > san=dns:tomcat2 -dname CN=tomcat2
> 
> What is the password for the keystore itself?

my password for the keystore has the value storepass.

> 
> > setup a SSL Connector to use that keystore:
> >
> >  > secure="true" SSLEnabled="true"
> >>
> >   > ciphers="HIGH:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!kRSA"
> > protocols="all">
> >
> >   > certificateKeystoreFile="different.jks"
> > certificateKeystorePassword="storepass"
> > certificateKeyAlias="tomcat2" certificateKeystoreType="JKS"
> > certificateKeyPassword="tomcat2" type="RSA" />
> 
> ... and why don't you have the keystore password set, here? Or did you just
> use "changeit"?

in the attribute certificateKeystorePassword i'm using the value storepass. 
IMHO the password is given.

Frank


Tomcat 8.5.16 - can't use Java keystore with multiple entries having different keypass for each entry?

2017-06-30 Thread Frank Taffelt
Hi all,

while playing with some ssl setups i stumbled upon the following behaviour that 
seems like bug to me ?
As long as all keyentries in a keystore have the same password all is fine. 
Using entries with different password tomcat doesnt startup.

For testing:
At first create 2 different keystores (same.jks and different.jks) having each 
2 entries:

# create 2 entries with same keypass for each entry
keytool -genkeypair -alias tomcat1 -storepass storepass  -keystore same.jks  
-keyalg RSA -keypass keypass  -ext san=dns:tomcat1 -dname CN=tomcat1
keytool -genkeypair -alias tomcat2 -storepass storepass  -keystore same.jks  
-keyalg RSA -keypass keypass  -ext san=dns:tomcat2 -dname CN=tomcat2

# create 2 entries with different keypass for each entry
keytool -genkeypair -alias tomcat1 -storepass storepass  -keystore 
different.jks  -keyalg RSA -keypass tomcat1  -ext san=dns:tomcat1 -dname 
CN=tomcat1
keytool -genkeypair -alias tomcat2 -storepass storepass  -keystore 
different.jks  -keyalg RSA -keypass tomcat2  -ext san=dns:tomcat2 -dname 
CN=tomcat2

setup a SSL Connector to use that keystore:












using the config snippet tomcat fails on startup with the following excpetion:
java.lang.IllegalArgumentException: java.security.UnrecoverableKeyException: 
Cannot recover key
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:114)
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:85)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:225)
at 
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:982)
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:244)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:620)
at 
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:66)
at 
org.apache.catalina.connector.Connector.initInternal(Connector.java:997)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at 
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:607)
at org.apache.catalina.startup.Catalina.load(Catalina.java:630)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
at sun.security.provider.KeyProtector.recover(KeyProtector.java:328)
at 
sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:146)
at 
sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56)
at 
sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)
at 
sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)
at java.security.KeyStore.getKey(KeyStore.java:1023)
at 
sun.security.ssl.SunX509KeyManagerImpl.(SunX509KeyManagerImpl.java:133)
at 
sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)
at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)
at 
org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:216)
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:112)
... 20 more


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



RE: InvocationTargetException on startup after upgrade to 8.5.13

2017-04-26 Thread Frank Taffelt
>I can't reproduce this. It may be configuration related. Please provide the 
>steps minimal to reproduce this from a clean 8.5.14 install.

http://www.glesir.de/~frank/tomcat-startup.zip

Sample CATALINA_BASE structure with a prebuilt webapp. To run it you have to 
adjust the contained runcatalina.bat to point CATALINA_HOME to a clean 8.5.14. 
On startup you should see the errors mentioned.

nevertheless you can invoke 
https://localhost/test/metrics 

inside is mvn-tomcat-test.zip that contains the webapp as an mvn project.

hope this helps to dig further into it,
Frank

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



RE: InvocationTargetException on startup after upgrade to 8.5.13

2017-04-25 Thread Frank Taffelt
ava:74)
at 
org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:193)
at 
org.apache.tomcat.util.net.openssl.OpenSSLUtil.getKeyManagers(OpenSSLUtil.java:79)
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:112)
... 45 more


Frank


RE: InvocationTargetException on startup after upgrade to 8.5.13

2017-04-03 Thread Frank Taffelt
hmm my SSL Config didn't change and is part of an CI system that worked with 
each of the 8.5.X versions until the latest. but will cross check.

As the exception occurs during the processing of some JMX beans, i thought that 
it's somewhere related to #60853 that now exposes the SSLHostConfig and 
SSLHostConfigCertificate objects via JMX.

Frank

-Original Message-
From: Rémy Maucherat [mailto:r...@apache.org] 
Sent: Monday, April 03, 2017 11:10 AM
To: Tomcat Users List
Subject: Re: InvocationTargetException on startup after upgrade to 8.5.13

2017-04-03 10:51 GMT+02:00 Frank Taffelt <
frank.taff...@interface-projects.de>:

> after upgrading from 8.5.12 to 8.5.13 the following exception is 
> thrown on startup.
>
> Caused by: java.lang.NullPointerException
> at java.io.FileInputStream.(FileInputStream.java:130)
> at java.io.FileInputStream.(FileInputStream.java:93)
> at java.io.FileReader.(FileReader.java:58)
> at org.apache.tomcat.util.net.jsse.PEMFile.(PEMFile.java:74)
> at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(
> JSSEUtil.java:193)
> at org.apache.tomcat.util.net.openssl.OpenSSLUtil.
> getKeyManagers(OpenSSLUtil.java:79)
> at org.apache.tomcat.util.net.AbstractJsseEndpoint.
> createSSLContext(AbstractJsseEndpoint.java:112)
> ... 45 more
>
> as my app is running normally this seems more like a minor issue ?
>
> There is no relevant changes in 8.5.13, and your SSL configuration is
probably invalid.

Rémy


InvocationTargetException on startup after upgrade to 8.5.13

2017-04-03 Thread Frank Taffelt
after upgrading from 8.5.12 to 8.5.13 the following exception is thrown on 
startup.

WARNING: IntrospectionUtils: InvocationTargetException for class 
org.apache.coyote.http11.Http11NioProtocol ciphers)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:196)
at 
org.apache.catalina.connector.Connector.getProperty(Connector.java:272)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.apache.tomcat.util.IntrospectionUtils.getProperty(IntrospectionUtils.java:211)
at 
org.apache.catalina.mbeans.ConnectorMBean.getAttribute(ConnectorMBean.java:88)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
at io.prometheus.jmx.JmxScraper.scrapeBean(JmxScraper.java:138)
at io.prometheus.jmx.JmxScraper.doScrape(JmxScraper.java:107)
at io.prometheus.jmx.JmxCollector.collect(JmxCollector.java:320)
at 
io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:99)
at 
io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50)
at io.prometheus.client.Collector.register(Collector.java:128)
at io.prometheus.client.Collector.register(Collector.java:121)
at de.ifbus.intergator.metrics.JMXMetrics.register(JMXMetrics.java:33)
at 
de.ifbus.intergator.servlet.MetricsModule.configureServlets(MetricsModule.java:34)
at 
com.google.inject.servlet.ServletModule.configure(ServletModule.java:55)
at com.google.inject.AbstractModule.configure(AbstractModule.java:62)
at 
com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:340)
at com.google.inject.spi.Elements.getElements(Elements.java:110)
at 
com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:138)
at 
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:99)
at com.google.inject.Guice.createInjector(Guice.java:73)
at com.google.inject.Guice.createInjector(Guice.java:62)
at 
de.ifbus.intergator.servlet.AppServletContextListener.getInjector(AppServletContextListener.java:18)
at 
com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:47)
at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: 
java.lang.IllegalArgumentException: java.lang.NullPointerException
at 
org.apache.tomcat.util.net.AbstractEndpoint.addSslHostConfig(AbstractEndpoint.java:215)
at 
org.apache.coyote.http11.AbstractHttp11Protocol.registerDefaultSSLHostConfig(AbstractHttp11Protocol.java:439)
at 
org.apache.coyote.http11.AbstractHttp11Protocol.getCiphers(AbstractHttp11Protocol.java:566)
... 42 more
Caused by: java.lang.IllegalArgumentException: java.lang.NullPointerException
at 
org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:114)
at 
org.apache.tomcat.util.net.AbstractEndpoint.addSslHostConfig(AbstractEndpoint.java:213)
... 44 more
Caused by: java.lang.NullPointerException
at java.io.FileInputStream.(FileInputStream.java:130)
at java.io.FileInputStream.(FileInputStream.java:93)
at java.io.FileReader.(FileReader.java:58)
at org.apache.tomcat.util.net.jsse.PEMFile.(PEMFile.java:74)
at 
org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:193)
at 

Re: Introdution

2016-07-04 Thread Bian Frank
https://github.com/FrankBian/tomcat8.0-source-research 
<https://github.com/FrankBian/tomcat8.0-source-research>

I compiled the tomcat 8 source code with maven in Intellij IDEA, it may be 
helpful for you










> On Jul 5, 2016, at 1:10 PM, Lahiru Wijewardana <lahi.jo...@gmail.com 
> <mailto:lahi.jo...@gmail.com>> wrote:
> 
> Hi all,
> 
> I am a 3rd year undergraduate student of Department of Computer
> Engineering, University of Peradeniya,  Sri Lanka. I am interesting in open
> source contribution. I pick Tomcat 8 as my new project.
> 
> I have install Tomcat and used it. I installed the ant 1.9.7 and clone the
> project from the svn repository accoring to the Building Tomcat page. Now I
> am stuck with building. The downloaded lib giving error ecj-4.5.jar can't
> compile and when I try to develop it with eclipse, eclipse say it can't
> read the ecj-4.5.jar file.
> 
> Thank you




Best Regards,
Frank Bian







RE: AW: wrong request.getServerPort value reported on upgraded HTTP/2 connector ?

2016-06-29 Thread Frank Taffelt
that was fast. thanks.

Frank

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: Wednesday, June 29, 2016 3:41 PM
To: Tomcat Users List
Subject: Re: AW: wrong request.getServerPort value reported on upgraded HTTP/2 
connector ?

On 29/06/2016 09:49, Mark Thomas wrote:
> On 29/06/2016 07:50, Frank Taffelt wrote:
>> i have no other connectors than the one on port 443.
> 
> I can reproduce this. I'll look at getting this fixed for the next release.

Fixed. The fix will be in 9.0.0.M9 onwards and 8.5.4 onwards.

Mark

> 
> Mark
> 
> 
>>
>> -Ursprüngliche Nachricht-
>> Von: Christopher Schultz [mailto:ch...@christopherschultz.net]
>> Gesendet: Dienstag, 28. Juni 2016 17:56
>> An: Tomcat Users List
>> Betreff: Re: wrong request.getServerPort value reported on upgraded HTTP/2 
>> connector ?
>>
>> Frank,
>>
>> On 6/28/16 11:02 AM, Frank Taffelt wrote:
>>> Calling the method request.getServerPort() returns 80 on http/2 
>>> upgraded requests for the https connector. I would expect that this 
>>> method should return 443 in these calls. My current workarround is 
>>> to disable the APR Listener as this results in correct value for the 
>>> https connector. So is this a bug?
>>
>> Definitely seems like a bug. You have no other connectors defined other than 
>> the one on port 443?
>>
>> -chris
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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


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



AW: wrong request.getServerPort value reported on upgraded HTTP/2 connector ?

2016-06-29 Thread Frank Taffelt
i have no other connectors than the one on port 443.

-Ursprüngliche Nachricht-
Von: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Gesendet: Dienstag, 28. Juni 2016 17:56
An: Tomcat Users List
Betreff: Re: wrong request.getServerPort value reported on upgraded HTTP/2 
connector ?

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frank,

On 6/28/16 11:02 AM, Frank Taffelt wrote:
> Calling the method request.getServerPort() returns 80 on http/2 
> upgraded requests for the https connector. I would expect that this 
> method should return 443 in these calls. My current workarround is to 
> disable the APR Listener as this results in correct value for the 
> https connector. So is this a bug?

Definitely seems like a bug. You have no other connectors defined other than 
the one on port 443?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJXcp4aAAoJEBzwKT+lPKRYfwgP/isAFGcsIB0XcgY/SCzVYdas
WO0gBJmDl8IiDG7ALYQ+XZqvCaZZbQRvLZ5se6gx9UGbnpKqTV27j51kSEKb9txE
sat8y7JmYlwrnTrxu6vDgPYHODYs+tI7ilYC02YSBth9v9E6I14egEV7bEv5H0F4
zYavdyO8jUFDFnv/tqllPfu0vm58BSHZnGHJcnSLU3hqijJOcS1edEq+jzj/xAJr
GtMi8ehI2RMSGq5nizl5Yc3zuc3jlsvilpPSc3ygqJfNltKBKDnNivUPWONF4ozS
Ibl6o1Rs8hs132xZka1OPI3+BlTc9HkQgHU3jvrQlfkWzNjv6ogM6Q5B76Jgv65T
li65XFLmw9x6SdUWn93S4FIQIJs/rYoJyX53ZwSlHiONFZh2C4KlDCzQPJ6iMt5z
UdQeUHCHZ2xZURmScSpVAOkyGog6V84kHtaDVPgD8+umNBqA+ujy7abDb6ZdKDuC
Yke6RssFatQmWBGJkp3JORPOIq1C1sNh64Gd1hz8U17kHK0zmffYis5aqeFPxUxr
2jEz1VAbsZULDclpWi2JW4TKezVrOykmQ4Dmgz//OOKeXW1XCwtaigK/c3XSv95D
cm3tpaGUsdhLUM75YaK/H1sLKwVyav6rubYrXWmKvTOPgO4sd3DlXFbW5T7NT+CR
ikuriVBWliBg8rb61KlH
=b+VE
-END PGP SIGNATURE-

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


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



wrong request.getServerPort value reported on upgraded HTTP/2 connector ?

2016-06-28 Thread Frank Taffelt
Calling the method request.getServerPort() returns 80 on http/2 upgraded 
requests for the https connector. I would expect that this method should return 
443 in these calls.
My current workarround is to disable the APR Listener as this results in 
correct value for the https connector. So is this a bug?

so here is my config:
Tomcat: 8.5.3
OS: Win7 (64bit)
tcnative:  1.2.7
Java Version:  1.8.0_92-b14

parts from my server.xml:
* active APR Listener

* connector:







   




Thanks,
Frank


war exploded: Server is not connected. Deploy is not available.

2015-06-10 Thread Frank Bian
I’m using jdk1.7 + tomcat 7.0.59 + intellij IDEA 14.1 on mac pro .

the error : Artifact ….. :war exploded: Server is not connected. Deploy is not 
available.

Any solutions known to fix it ? It stops my work ...


Best Regards,
Frank Bian





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



war exploded: Server is not connected. Deploy is not available.

2015-06-08 Thread Frank Bian
Hi All,
I got the same error : 
http://stackoverflow.com/questions/20163910/tomcat-in-idea-war-exploded-server-is-not-connected-deploy-is-not-available
 
http://stackoverflow.com/questions/20163910/tomcat-in-idea-war-exploded-server-is-not-connected-deploy-is-not-available

__
Connected to the target VM, address: '127.0.0.1:62554', transport: 'socket'
[2015-06-09 10:12:48,226] Artifact com-iyunxiao-dora-web:war exploded: Server 
is not connected. Deploy is not available.
__

My Env : Tomcat 7.0.59 + Inteliij IDEA 14.1 + Mac Pro
And I follow the answer said , but I haven’t found the setEnv.bat/.sh ,the 
catalina.bat/.sh does not contain the settings like this :
set JAVA_OPTS=-server -Xmx768m -XX:MaxPermSize=256M
 I just find below command :
set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%”

Any solution to help ?



Best Regards,
Frank Bian





Re: war exploded: Server is not connected. Deploy is not available.

2015-06-08 Thread Frank Bian
I post a question on stackoverflow 
http://stackoverflow.com/questions/30722839/tomcat-in-intellij-idea-14-war-exploded-server-is-not-connected-deploy-is-no
 
http://stackoverflow.com/questions/30722839/tomcat-in-intellij-idea-14-war-exploded-server-is-not-connected-deploy-is-no


Best Regards,
Frank Bian



 On Jun 9, 2015, at 10:41 AM, Frank Bian frankb...@126.com wrote:
 
 Hi All,
 I got the same error : 
 http://stackoverflow.com/questions/20163910/tomcat-in-idea-war-exploded-server-is-not-connected-deploy-is-not-available
  
 http://stackoverflow.com/questions/20163910/tomcat-in-idea-war-exploded-server-is-not-connected-deploy-is-not-available
 
 __
 Connected to the target VM, address: '127.0.0.1:62554', transport: 'socket'
 [2015-06-09 10:12:48,226] Artifact com-iyunxiao-dora-web:war exploded: Server 
 is not connected. Deploy is not available.
 __
 
 My Env : Tomcat 7.0.59 + Inteliij IDEA 14.1 + Mac Pro
 And I follow the answer said , but I haven’t found the setEnv.bat/.sh ,the 
 catalina.bat/.sh does not contain the settings like this :
 set JAVA_OPTS=-server -Xmx768m -XX:MaxPermSize=256M
 I just find below command :
 set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%”
 
 Any solution to help ?
 
 
 
 Best Regards,
 Frank Bian
 
 
 



RewriteCond

2015-05-30 Thread Frank Lehmann

Hi Dan,

First, please don't top post.
-- Don't know what you mean, i am at qnalist.com and pushed the button reply 
to:

Reply inline like this or at the bottom.
-- See above.

Second, what is the mistake you're referring to?
-- I explained, that the words, which are in the condpattern valvue do not 
match.

Third, we don't know.
-- I have this rewritecond set:
RewriteCond %{HTTP_USER_AGENT}
(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|mobile|palmos|webos)

So, my opinion is, that any word of the string from the user-agent will match 
the string set in the third value of the rule.
But it does not. nothing will happen.

 You still haven't provided any configuration or
explanation of what you did.  Where did you configure the valve?  In
server.xml?  In the Context for an app?  Where did you put the
rewrite.config file?

-- My configuration is as follows:

Windows 2012 R2
Tomcat 8.0 in directory tomcat/webapps
server.xml in /conf directory with valve ...rewritevalve set.
rewrite.config file in directory /conf/catalina/localhost

Rewrite.config will controled after restart tomcat service, because if mistakes 
in the rule, tomcat won't start

Explained enough ?

Regards
Frank




RewriteCond

2015-05-26 Thread Frank Lehmann

Hi Dan,

you are right, i have used this documentation for setting the rewrite rule.

This doc has is mistake in placing the rewrite.config file, but i solved it.

My problem is, that the test condition never works.

Every test rule is ignored.

So what is the reason why every test condition is ignored ?

Regards

Frank

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



RewriteCond

2015-05-25 Thread Frank Lehmann

Hi helpers,

i want to rewrite my url when a mobile user reaches my homepage.

I found this condition on the web after several searchings.

But it will not work.
All other condition also not working, i have tested many conditions.

How can i rewrite a url when a mobile client is getting my homepage ?
Thanks for help.


RewriteCond %{HTTP_USER_AGENT} 
(android|blackberry|googlebot-mobile|iemobile|ipad|iphone|ipod|mobile|palmos|webos) 
[NC]

RewriteRule ^(.+)$ http://www.dashandwerk.net/mobile/ [L]

My environment.

Tomcat 8
Windows 2012 R2
Homepage under folder webapps/root

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



Unable to install tomcat on Window 7

2015-01-26 Thread Frank Lugalla
Hi

Hi  Guys
   I am  trying  to install  Tomcat7 in my computer  without success, I have 
tried to set up  and go through every bit where it goes  wrong as seen  below 
without much success. After startup, the default web applications included with 
Tomcat will be
  available by visiting:

  http://localhost:8080/   But When I go there I  can't  seem to find a 
webpage. Please I am helpless  can  anyone please  help here?



[cid:image001.png@01D0397E.82FE70C0]



This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


RE: Unable to install tomcat on Window 7

2015-01-26 Thread Frank Lugalla


Thanks,
Frank  Lugalla
314-212-27086 (office)
858-366-5733 (mobile)
AMDOCS | EMBRACE CHALLENGE  EXPERIENCE SUCCESS

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, January 26, 2015 4:05 PM
To: Tomcat Users List
Subject: Re: Unable to install tomcat on Window 7

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frank,
 Hi Chris
 It  simply  says the webpage can not be displayedi went confirmed the 
port for HTTP to be 8080,I tried to change port shutdown.bat and 
startup.bat.Still the page wont be displayed.I tried to go check my  proxy 
server settings if anything wrong with setting but still no hope
On 1/26/15 4:41 PM, Frank Lugalla wrote:
 I am  trying  to install Tomcat 7 on my computer without success, I 
 have tried to set up and go through every bit where it goes wrong as 
 seen below without much success.

Your screenshot was stripped by the list. Can you explain in text instead?

 After startup, the default web applications included with Tomcat will 
 be available by visiting:
 
 http://localhost:8080/
 
 But When I go there I can’t seem to find a webpage.

What do you find instead?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJUxroiAAoJEBzwKT+lPKRYMdkP/0BPUYK3MvT9HZRXKCxZIHVO
zHCJAwXyoe5V0RQ3l0QGcAPwrDrvhKnn5mEdn2o97VaaXzCgqDEzwmZSOCUFyLUr
iZqD9GTPijLeuH4oqg4LRpk2Zzqf2BiIc29Hiyczt9vmMIi8HToY0vgEtv+h3+LY
mcQgM1LCXaLOBMIY12Rgq+yn+Ps0VPoq7bz+ff3+a8sEsiXs2DsFOa+D6wznaL7u
TSc74w5zauMocfoMUjYxBA4/+aQ8wdr/MFWrI404L5v0SNMuM24l0A0Y3WO5wwaH
h7LH7jtzRORCNRbI6fkRkvTt4FVMr0EJQoWbpAaupdjyJmb0J2/JTeCmMYJGQunL
SKpDi4E+tUt4sxvu54YrlT2asDGmJFkA0D1vOQrzSRF56Q02QcYCHzSPYRPaRPF2
UdZKt+afsjYzs+AbmW4GhMTsMbKqYv5BnbdK7HiPs61E6YU/bIaKx0boJ9K0Y9+j
Rrr1PBrRByMMriS26kQKXyhA9EKnn7eBvK2tH+yuAhPFaPaKbPCla4CQhTAUckjD
11CcGueFrA6dtOpObeX7bRcpsnYiRZIt21tmusGkf3Re9ukYxgOFKl6rXJiumqVZ
o5ZNBlVacr32Y3Kzw1W8AEPN7pNKq9NMHT7D4Qo3PtXeW9mTwXirtuFwLUtGUAmV
PCRvh7fUhz0JiV8ME7Bx
=O3uw
-END PGP SIGNATURE-

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


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


Server Tomcat v7.0 Server at localhost failed to start.

2014-03-20 Thread Frank Lugalla
-bio-8009]
Mar 20, 2014 11:54:02 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3335 ms
Mar 20, 2014 11:54:02 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 20, 2014 11:54:02 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
Mar 20, 2014 11:54:03 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
Mar 20, 2014 11:54:04 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
java.lang.UnsupportedClassVersionError: com/sbc/etm/servlet/EtmAdminServlet : 
Unsupported major.minor version 51.0 (unable to load class 
com.sbc.etm.servlet.EtmAdminServlet)
   at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
   at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1148)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
   at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1521)
   at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:108)
   at 
org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:58)
   at 
org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:353)
   at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:885)
   at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:317)
   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
   at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
   at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5081)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
   at 
org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at 
org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
   at 
org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at 
org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at 
org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:620)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
Picked up _JAVA_OPTIONS:  -agentlib:C:\PROGRA~3\APPLIC~1\Aternity\hooks\JAVAHO~2


Thanks,
Frank  Lugalla
314-212-27086 (office)
858-366-5733 (mobile)
AMDOCS | EMBRACE CHALLENGE  EXPERIENCE SUCCESS


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


Could not publish server configuration for Tomcat v7.0 Server at localhost.

2014-03-03 Thread Frank Lugalla
Hi  Guys
  Just  started  using  Tomcat v7..deployed my application and I am 
getting this  error when I try to run;
Could not publish server configuration for Tomcat v7.0 Server at localhost.
Multiple Contexts have a path of /etm.

Has anyone   got this type of error before?




Thanks,
Frank  Lugalla
314-212-27086 (office)
858-366-5733 (mobile)
AMDOCS | EMBRACE CHALLENGE  EXPERIENCE SUCCESS


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


RE: Could not publish server configuration for Tomcat v7.0 Server at localhost.

2014-03-03 Thread Frank Lugalla
Hi Chris,
  I right click and add my applications  there


-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Monday, March 03, 2014 10:25 AM
To: Tomcat Users List
Subject: Re: Could not publish server configuration for Tomcat v7.0 Server at 
localhost.

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Frank,

On 3/3/14, 10:58 AM, Frank Lugalla wrote:
 Hi  Guys Just  started  using  Tomcat v7..deployed my application 
 and I am getting this  error when I try to run; Could not publish 
 server configuration for Tomcat v7.0 Server at localhost. Multiple 
 Contexts have a path of /etm.
 
 Has anyone   got this type of error before?

This sounds like a deployment-specific problem. How are you deploying to Tomcat?

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTFKz0AAoJEBzwKT+lPKRYHngP/Rn/lTFot17iCvxjTOvPFQNx
88iaydsU5MTuCIuv56ImCVsfZsnJeaFaCmVjzrBYPjB6WRYnpNtvkV8HzAywZZQD
ZxSFscClikKsrfs2lUh8xpmdGMU/NcvbYKEGndZuB5oslFn6clqjNBlXifBUDzBi
R9ae7eQxCUKh1cpvLNlkON0TtVdU5128VMbDByj70j2Eo1eQA+bxhgwjOht20eSx
02d0SQtf7L7IEXs4hqfOVJlydE/EY1v9fYPXlkVDjBwELeGARq4A0NSUYrPEZ60D
KEVXu8bWKu7ArsolRSPgeYHOkY7/MRWBsainiNQ24pqWMcxPqTD5fnfrA/wasW+T
h8oyAP3ebYYYViRSHnTOHJGaSVz1BEBfRbJEM5hkf0encBEb83Da6jHVa53XQOpQ
dCuuRtF/X50mFw0qIUlK1JG5WB31OHrEwxaNiuUcECdid7Jh5OVfpojZ7gY/AGWt
Iw+hvpBj8lQhMfCcCkw8PUfs1mrMCHlH+ZbmCEngGuNgiFFpeNzplUG8s16DYiHQ
bj4x5c2kRj1DHq0KVPMlRAq3oiY7DJKjgmEckXc/2viff6iha62N+zjPLy4y+e1g
chaS7rtmYISQ+fOUOHAGDgnjpHVzvbjZbzjYAjKDEMpzksXmaaudm/rc4QXD5Szl
kMeJWbR1/2tPn7o+MAwe
=nAMg
-END PGP SIGNATURE-

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


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



Generate pkcs12 certificates from offical COMODO certs

2014-02-14 Thread BONNET, Frank
Hello


I have officials certificates for apache2 from COMODO that I would like to

import into  tomcat (  pkcs12 ) if someone has links / infos to do this task

it would be a great help ( google doesn't help much )


thanks you


Re: Generate pkcs12 certificates from offical COMODO certs

2014-02-14 Thread BONNET, Frank
I need to convert/import from PEM format to P12

thanks





2014-02-14 14:14 GMT+01:00 Sanaullah sanaulla...@gmail.com:

 Hi Frank,

 I am not expert with apache. can you please let me know which format of
 certificate you do have? pem, der, p12. and also in which format you would
 like to convert? or import

 Regards,
 Sanaullah


 On Fri, Feb 14, 2014 at 6:10 PM, BONNET, Frank frank.bon...@esiee.frwrote:

 Hello


 I have officials certificates for apache2 from COMODO that I would like to

 import into  tomcat (  pkcs12 ) if someone has links / infos to do this
 task

 it would be a great help ( google doesn't help much )


 thanks you





Re: Generate pkcs12 certificates from offical COMODO certs

2014-02-14 Thread BONNET, Frank
Hello Ognjen

the intermediate cert in the one named chain right ?


*Frank BONNET*

Systemes UNIX et Reseaux

ESIEE PARIS

01.45.92.66.17 - 06.70.37.37.69


2014-02-14 14:57 GMT+01:00 Ognjen Blagojevic ognjen.d.blagoje...@gmail.com
:

 Frank,


 On 14.2.2014 14:10, BONNET, Frank wrote:

 I have officials certificates for apache2 from COMODO that I would like to
 import into  tomcat (  pkcs12 ) if someone has links / infos to do this
 task
 it would be a great help ( google doesn't help much )


 You didn't mention if you have any preference whether you want to use:

 i. BIO or NIO HTTPS connectors (based on JSSE), or
 ii. APR HTTPS connector (based on OpenSSL).

 Since you mentioned that you want to use PKCS#12 format, I guess you are
 interested in JSSE connectors. If you want to use APR, then the procedure
 is different then the one described here.


 Let's say that you have

 1. Server key in file server.key
 2. Server certificate in file server.pem
 3. Intermediate certificates in file intermediates.pem

 Then, all you need to do is:

 openssl pkcs12 -export -out keystore.p12 -name myserver -in server.pem
 -inkey server.key -certfile intermediates.pem


 Note that it is not necessary that intermediates.pem contains root
 certificate.


 Then, configure HTTPS connector in conf/server.xml as

 Connector port=443
protocol=org.apache.coyote.http11.Http11Protocol
SSLEnabled=true maxThreads=150 scheme=https
secure=true clientAuth=false sslProtocol=TLS
keystoreFile=keystore.p12 keyAlias=myserver
keystoreType=pkcs12 /


 I also recommend that if you check your ciphers strenth, and restrict them
 accordingly.

 -Ognjen


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




Re: Generate pkcs12 certificates from offical COMODO certs

2014-02-14 Thread Frank BONNET
seems to work without it !
thanks

Envoyé de mon iPhone.


Le 14 févr. 2014 à 16:16, Ognjen Blagojevic
ognjen.d.blagoje...@gmail.com a écrit :

 Frank,

 On 14.2.2014 15:00, BONNET, Frank wrote:
 the intermediate cert in the one named chain right ?

 Yes, it is usually named that way.

 -Ognjen



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


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



Start the Tomcat server in the server view and go to http://localhost:8080/

2013-12-27 Thread Frank Lugalla
Hi  All,
 I have a very simple question but seems I cant find this 
optiontried to google several  times,!Can someone please  tell me how to  
Start the Tomcat server in the server view and go to  http://localhost:8080/?
Thank   you
~Frank

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


RE: Start the Tomcat server in the server view and go to http://localhost:8080/

2013-12-27 Thread Frank Lugalla
Hi  Chuck,
   Thank you  for having  a chance to  respond backregarding the version ,I 
am using  Tomcat 7 integrated  with   Eclipse  Kepler  Release 1  with 
JVM=1.7_u45.All run on  window platform.What   I want  is to start my  Tomcat  
server in server view(this is the mode in eclipse).Hope  this  explain somehow

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Friday, December 27, 2013 4:05 PM
To: Tomcat Users List
Subject: RE: Start the Tomcat server in the server view and go to 
http://localhost:8080/

 From: Frank Lugalla [mailto:frank.luga...@amdocs.com]
 Subject: Start the Tomcat server in the server view and go to
 http://localhost:8080/

(Please ignore Martin G's gibberish; it is, as usual, totally irrelevant.)

 Can someone please  tell me how to  Start the Tomcat server in the
 server view and go to  http://localhost:8080/?

First off, you have to tell us what you're referring to as the server view.  
If this is some mode of an IDE, you need to tell people exactly what IDE, and 
how you have integrated Tomcat with it.  (And the answer to your question in 
such case may more likely be obtained from the support mechanism for the IDE.)

Also, provide some real information, such as the Tomcat version, the platform 
you're running on, the JVM version, etc.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



RE: Update the Tomcat JVM configuration

2013-12-09 Thread Frank Lugalla
Thank  you  Mark  for  sharing  your  VM  arguments.It  
works  now..:),i  wasn't  correctly updating the arguments instead of putting 
hyphen for  every linesome of the lines were missing hyphens.

-Original Message-
From: Mark Eggers [mailto:its_toas...@yahoo.com]
Sent: Friday, December 06, 2013 5:56 PM
To: Tomcat Users List
Subject: Re: Update the Tomcat JVM configuration

On 12/6/2013 3:28 PM, Frank Lugalla wrote:
 Hello  All,
 I am  updating  the Tomcat JVM configuration to enable java assertions as 
 below:

 a.   Once tomcat server is configured in local eclipse,I   pressed  F3 on 
 it.

 b.  Click on Open launch configuration link.

 c.   Go to Arguments tab.

 d.  Add -ea at the beginning of JVM arguments.
 Then  Finally  I  restarted  my   tomcat
 Here is  what  I am  getting
Server 
 Tomcat v7.0 Server at localhost failed to start.

 Error: Could not find or load main class -ea Please  anybody  who
 knows  about this  problem.?Thank  you


 -



Works for me:

OS: Windows 7 Home Premium 64 bit
IDE: Eclipse Kepler J2EE (with lots of plugins)
JDK: JDK 1.7.0_45
Tomcat: 7.0.42 (launched from within Eclipse)

VM arguments in the Arguments tab of the Edit launch configuration properties 
window:

-ea
-Dcatalina.base=C:\Users\mdeggers\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
-Dcatalina.home=C:\Users\mdeggers\Apache\apache-tomcat-7.0.42
-Dwtp.deploy=C:\Users\mdeggers\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
-Djava.endorsed.dirs=C:\Users\mdeggers\Apache\apache-tomcat-7.0.42\endorsed

Verified by looking at the running Tomcat with VisualVM

. . . just my two cents
/mde/

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


This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp

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



Update the Tomcat JVM configuration

2013-12-06 Thread Frank Lugalla
Hello  All,
I am  updating  the Tomcat JVM configuration to enable java assertions as below:

a.   Once tomcat server is configured in local eclipse,I   pressed  F3 on 
it.

b.  Click on Open launch configuration link.

c.   Go to Arguments tab.

d.  Add -ea at the beginning of JVM arguments.
Then  Finally  I  restarted  my   tomcat
Here is  what  I am  getting
  Server Tomcat 
v7.0 Server at localhost failed to start.
 Error: Could 
not find or load main class -ea
Please  anybody  who knows  about this  problem.?Thank  you


Frank

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp


Re: Tomcat 6.0.33 trailing slash redirect looses jsessionid attribute

2013-07-15 Thread Frank Sommer

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256
 
 Frank,
 
 On 7/12/13 5:52 AM, Frank Sommer wrote:
 Hello,
 
 I'm using URL rewriting and recently upgraded my tomcat version
 from 6.0.32 to 6.0.33. I figured out that since 6.0.33 the
 jsessionid attribute is omitted in the Location header when Tomcat
 forces a trailing slash redirect e.g. from /mypath to /mypath/. The
 effect is that the session information is lost after the redirect.
 
 This pretty looks like the same as an old bug 'Bug 34749'
 (https://issues.apache.org/bugzilla/show_bug.cgi?id=34749) in
 Tomcat 5.
 
 I also noticed that since 6.0.33 the jsessionid attribute is
 present in the request URI now. Maybe this change caused the
 different behaviour regarding the redirect.
 
 Does anybody run into the same trouble and would you recommend to
 create a bug report respectively?
 
 Can you try with Tomcat 6.0.37? If it's still happening, please log a
 bug report in Bugzilla: https://tomcat.apache.org/bugreport.html
 
 - -chris
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
 
 iQIcBAEBCAAGBQJR4Ad+AAoJEBzwKT+lPKRYmJoQAILxNBI43hz0czdRz+nwSXOA
 NtPW3Z0nCKZPLGZEpbkVB9UJLjkmMDLQ9SyNXNaKlwPjLdfF6WhjJuu4FgIWTtFt
 rwmuG7x1lyJpMLqvpfO0GaSEBY+HPkVwdvYcVXp+CfZfMALbjYxG8NZsDNgsgfWV
 +jLvacI2XJL6umKvMFSdQMWfsJlVceZrqJr1CgX5dAGqhtV2CeQB181KX9mgwdiu
 HLtnC1RPKRX1sFvVmPfZ72i+vEewqMelJUaVgkAXD45EXikAzhnRZv20c2oJ2vL0
 bUJX6HEo4e6YNsAcziZccp+yezN3rxW8fq7Ipku9nIkD8iirLC/mKRkDM4NedFgu
 oTbtNIqy3LowfZxfGdtLnNPRg6a2T/PG+dMU1Gd2UhpQL7Kr9qAhsgRL9dlXDI1w
 5sV+cgIm2drufLkq1uODVaJdqWEi5RNBePaQ2MPqi6vXAjQnhpcJvgPKl3Tv7Jxg
 qUzwVDxn5x1JO8hhHJaeHU7tRkW1oVUy1YyBAAYT6AdYUsfw8f4u0KjexiOGGMbf
 8YXIixZCX16RDqY9DTzTFjxogE343qXPWuVoHT91sudZM1prZvTJMQjtx6hNKiF1
 yA4mtcwhGDTMaJHu1T8gqWB4pTAvuYTuLl4wuY8ty6iwQoPgkyeffaqh0EfBWpUl
 fJsBlc8eh/naTmDWRQtO
 =ffQV
 -END PGP SIGNATURE-
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 

Yes, the same with all versions  6.0.32. I created a bug report 
https://issues.apache.org/bugzilla/show_bug.cgi?id=55266


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



Tomcat 6.0.33 trailing slash redirect looses jsessionid attribute

2013-07-12 Thread Frank Sommer
Hello,

I'm using URL rewriting and recently upgraded my tomcat version from 6.0.32 to 
6.0.33. I figured out that since 6.0.33 the jsessionid attribute is omitted in 
the Location header when Tomcat forces a trailing slash redirect e.g. from 
/mypath to /mypath/.
The effect is that the session information is lost after the redirect.

This pretty looks like the same as an old bug 'Bug 34749' 
(https://issues.apache.org/bugzilla/show_bug.cgi?id=34749) in Tomcat 5. 

I also noticed that since 6.0.33 the jsessionid attribute is present in the 
request URI now. Maybe this change caused the different behaviour regarding the 
redirect. 

Does anybody run into the same trouble and would you recommend to create a bug 
report respectively?

Kind Regards,
Frank


Sample requests using curl:

##
Tomcat 6.0.33 (the same with  6.0.33)
without trailing slash -- Location Header does no longer contain the 
jsessionid. 
##
curl -Lv 
http://localhost:8080/jsessionid-issue;jsessionid=B6F1C24E3F4CEDEDC74B8258B2603C3D?p1=1;
* About to connect() to localhost port 8080 (#0)
*   Trying ::1...
* connected
* Connected to localhost (::1) port 8080 (#0)
 GET /jsessionid-issue;jsessionid=B6F1C24E3F4CEDEDC74B8258B2603C3D?p1=1 
 HTTP/1.1
 User-Agent: curl/7.28.0
 Host: localhost:8080
 Accept: */*
 
 HTTP/1.1 302 Moved Temporarily
 Server: Apache-Coyote/1.1
 Location: http://localhost:8080/jsessionid-issue/?p1=1
 Transfer-Encoding: chunked
 Date: Fri, 12 Jul 2013 09:04:56 GMT
 
* Ignoring the response-body
* Connection #0 to host localhost left intact
* Issue another request to this URL: 
'http://localhost:8080/jsessionid-issue/?p1=1'
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (::1) port 8080 (#0)
 GET /jsessionid-issue/?p1=1 HTTP/1.1
 User-Agent: curl/7.28.0
 Host: localhost:8080
 Accept: */*
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Content-Type: text/html;charset=utf-8
 Content-Length: 189
 Date: Fri, 12 Jul 2013 09:04:56 GMT
 

html
body
http session is null
getRequestURI: /jsessionid-issue/
getRequestedSessionId: null
isRequestedSessionIdFromURL: false
isRequestedSessionIdValid: false
/body
/html
* Connection #0 to host localhost left intact
* Closing connection #0
##


##
Tomcat 6.0.33
with trailing slash -- no 302 redirect; jsessionid is taken into account; 
everything is fine
##
curl -Lv 
http://localhost:8080/jsessionid-issue/;jsessionid=B6F1C24E3F4CEDEDC74B8258B2603C3D?p1=1;
* About to connect() to localhost port 8080 (#0)
*   Trying ::1...
* connected
* Connected to localhost (::1) port 8080 (#0)
 GET /jsessionid-issue/;jsessionid=B6F1C24E3F4CEDEDC74B8258B2603C3D?p1=1 
 HTTP/1.1
 User-Agent: curl/7.28.0
 Host: localhost:8080
 Accept: */*
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Content-Type: text/html;charset=utf-8
 Content-Length: 285
 Date: Fri, 12 Jul 2013 09:06:55 GMT
 

html
body
http session: B6F1C24E3F4CEDEDC74B8258B2603C3D
getRequestURI: /jsessionid-issue/;jsessionid=B6F1C24E3F4CEDEDC74B8258B2603C3D
getRequestedSessionId: B6F1C24E3F4CEDEDC74B8258B2603C3D
isRequestedSessionIdFromURL: true
isRequestedSessionIdValid: true
/body
/html
* Connection #0 to host localhost left intact
* Closing connection #0
##



##
Tomcat 6.0.32
without trailing slash -- Location Header is fine. 
##
curl -Lv 
http://localhost:8080/jsessionid-issue;jsessionid=A91B10DC0B528E311CF35C877B79D144?p1=1;
* About to connect() to localhost port 8080 (#0)
*   Trying ::1...
* connected
* Connected to localhost (::1) port 8080 (#0)
 GET /jsessionid-issue;jsessionid=A91B10DC0B528E311CF35C877B79D144?p1=1 
 HTTP/1.1
 User-Agent: curl/7.28.0
 Host: localhost:8080
 Accept: */*
 
 HTTP/1.1 302 Moved Temporarily
 Server: Apache-Coyote/1.1
 Location: 
http://localhost:8080/jsessionid-issue/;jsessionid=A91B10DC0B528E311CF35C877B79D144?p1=1
 Transfer-Encoding: chunked
 Date: Fri, 12 Jul 2013 09:01:21 GMT
 
* Ignoring the response-body
* Connection #0 to host localhost left intact
* Issue another request to this URL: 
'http://localhost:8080/jsessionid-issue/;jsessionid=A91B10DC0B528E311CF35C877B79D144?p1=1'
* Re-using existing connection! (#0) with host localhost
* Connected to localhost (::1) port 8080 (#0)
 GET /jsessionid-issue/;jsessionid=A91B10DC0B528E311CF35C877B79D144?p1=1 
 HTTP/1.1
 User-Agent: curl/7.28.0
 Host: localhost:8080
 Accept: */*
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Content-Type: text/html;charset=utf-8
 Content-Length: 241
 Date: Fri, 12 Jul 2013 09:01:21 GMT
 

html
body
http session: A91B10DC0B528E311CF35C877B79D144
getRequestURI: /jsessionid-issue/
getRequestedSessionId: A91B10DC0B528E311CF35C877B79D144
isRequestedSessionIdFromURL: true
isRequestedSessionIdValid: true
/body
/html
* Connection #0 to host localhost left intact
* Closing connection #0
##


-
To unsubscribe, e-mail: users-unsubscr

Problem moving application to Tomcat 7.0.27

2012-05-07 Thread Frank Serkland
I am having a problem moving an application from Tomcat 6 to Tomcat 7.0.27.  
Can anyone help me?  Here is my web.xml.
?xml version=1.0 encoding=UTF-8?web-app id=WebApp_ID version=2.4 
xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;   
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;   display-nameGranada High 
School Class of 1986/display-name  filter
filter-namestruts2/filter-name  
filter-classorg.apache.catalina.deploy.WebXml.addFilter/filter-class
/filter   filter-mapping
filter-namestruts2/filter-name  url-pattern/*/url-pattern   
/filter-mapping   listener  
listener-classconfiguration.ConfigurationListener/listener-class
/listener welcome-file-list 
welcome-filehome.jsp/welcome-file   /welcome-file-list/web-app
Here is the error log on my console.SEVERE: End event threw 
exceptionjava.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml 
addFilter   at 
org.apache.tomcat.util.IntrospectionUtils.callMethod1(IntrospectionUtils.java:855)
   at org.apache.tomcat.util.digester.SetNextRule.end(SetNextRule.java:201) 
   at org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1051)   
   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
Source)  at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)  at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)  at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
 Source)at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)   at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 
Source)   at 
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
 Source)at 
org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)   at 
org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1825)  
 at 
org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1201) at 
org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
 at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:345)
 at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at 
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
 at
 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
  at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) 
at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566) 
 at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556) 
 at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)at 
java.util.concurrent.FutureTask.run(Unknown Source)  at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)   at 
java.lang.Thread.run(Unknown Source)May 7, 2012 3:32:36 PM 
org.apache.catalina.startup.ContextConfig parseWebXmlSEVERE: Parse error in 
application web.xml file at 
jndi:/localhost/ghs1986/WEB-INF/web.xmljava.lang.NoSuchMethodException: 
org.apache.catalina.deploy.WebXml addFilter   at 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687) 
 at
 
org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2719) 
   at 
org.apache.tomcat.util.digester.Digester.endElement(Digester.java:1054)  at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown 
Source)  at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 Source)at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
 Source)at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown 
Source)  at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
 Source)  at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)  at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown 
Source)  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown 
Source)   at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown 

java.sql.SQLException: No suitable driver found for in tomcat 6.0.35, is the class loading changed?

2011-12-16 Thread Frank Zhang
Hi All:
Our code is using apache dbcp library and mysql-connector as 
JDBC driver other than tomcat own tomcat-dbcp.jar. we always put 
mysql-connector at CATALINA_HOME/lib while put commons-dbcp-1.4.jar
at CATALINA_HOME/webapps/client/WEB-INF/lib/. This worked fairly well in tomcat 
6.0.2x and even in 6.0.33.  In 6.0.35 I encountered the error 
java.sql.SQLException: No suitable driver found for during the booting time 
which looks like mysql-connector not in classpath.  Considering it's working 
all right before, my suspect is 6.0.35 silently changed its class loading way. 
Could somebody give me some hints? Thanks.

Accidentally, I tried putting mysql-connector to 
CATALINA_HOME/webapps/client/WEB-INF/lib/,  but no better result.

--- the error 

  [java] java.sql.SQLException: No suitable driver found for 
jdbc:mysql://localhost:3306/cloud?autoReconnect=trueprepStmtCacheSize=517cachePrepStmts=true
 [java] at java.sql.DriverManager.getConnection(DriverManager.java:640)
 [java] at java.sql.DriverManager.getConnection(DriverManager.java:200)
 [java] at 
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
 [java] at 
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
 [java] at 
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1181)
 [java] at 
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
 [java] at 
com.cloud.utils.db.Transaction.getStandaloneConnectionWithException(Transaction.java:199)
 [java] at 
com.cloud.utils.db.Transaction.getStandaloneConnection(Transaction.java:208)
 [java] at 
com.cloud.utils.db.DbUtil.getConnectionForGlobalLocks(DbUtil.java:59)
 [java] at com.cloud.utils.db.DbUtil.getGlobalLock(DbUtil.java:204)
 [java] at com.cloud.utils.db.GlobalLock.lock(GlobalLock.java:153)
 [java] at 
com.cloud.upgrade.DatabaseIntegrityChecker.check(DatabaseIntegrityChecker.java:208)
 [java] at 
com.cloud.utils.component.ComponentLocator.runCheckers(ComponentLocator.java:240)
 [java] at 
com.cloud.utils.component.ComponentLocator.parse(ComponentLocator.java:211)
 [java] at 
com.cloud.utils.component.ComponentLocator.getLocatorInternal(ComponentLocator.java:795)
 [java] at 
com.cloud.utils.component.ComponentLocator.getLocator(ComponentLocator.java:833)
 [java] at 
com.cloud.utils.component.ComponentLocator.getComponent(ComponentLocator.java:383)
 [java] at 
com.cloud.utils.component.ComponentLocator.getComponent(ComponentLocator.java:376)
 [java] at 
com.cloud.servlet.CloudStartupServlet.init(CloudStartupServlet.java:46)
 [java] at javax.servlet.GenericServlet.init(GenericServlet.java:212)
 [java] at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
 [java] at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
 [java] at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
 [java] at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
 [java] at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
 [java] at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
 [java] at 
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
 [java] at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
 [java] at 
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
 [java] at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
 [java] at 
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
 [java] at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
 [java] at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 [java] at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
 [java] at 
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
 [java] at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
 [java] at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
 [java] at 
org.apache.catalina.core.StandardService.start(StandardService.java:525)
 [java] at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
 [java] at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [java] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 [java] at 

Re: How to configure USE_SECURE_RANDOM_FOR_UUID?

2011-06-14 Thread franckie frank
Honestly, I was simply curious why the cryptographically secure generation
of random unique ids (through java.security.SecureRandom API)  is disabled
by default.

And It was unclear to me if it is at all possible to change the default
behavior.
Thanks,
Franckie14

2011/6/14 Mark Thomas ma...@apache.org

 On 13/06/2011 22:43, Christopher Schultz wrote:
  Frank,
 
  On 6/13/2011 11:46 AM, franckie frank wrote:
  I ve noticed that in Tomcat 7.0.14 s
  org.apache.catalina.tribes.io.ChannelData there is public static field
 
  'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'.
 
  and it seems to be used only once in the same class. By default its
 value is
  false.
 
  Do you know if there is a way to change/configure its value?
 
  How about:
 
  import org.apache.catalina.tribes.io.ChannelData;
 
  ...
 
 ChannelData.USE_SECURE_RANDOM_FOR_UUID = true;

 But that begs the questions, why would you want to?

 Mark



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




How to configure USE_SECURE_RANDOM_FOR_UUID?

2011-06-13 Thread franckie frank
Hi,



I’ve noticed that in Tomcat 7.0.14’s
org.apache.catalina.tribes.io.ChannelData there is public static field

'public static volatile boolean USE_SECURE_RANDOM_FOR_UUID'.

and it seems to be used only once in the same class. By default its value is
false.



Do you know if there is a way to change/configure its value?



Thanks!

Franckie14


Re: tomcat errors starting after upgrade from cent5.3 to 5.5 (/rebuild-jar-repository: error: Could not find)

2010-12-26 Thread Frank Even
On Thu, Dec 23, 2010 at 1:06 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: list...@elitists.org [mailto:list...@elitists.org] On Behalf Of Frank 
 Even
 Subject: tomcat errors starting after upgrade from cent5.3 to 5.5 
 (/rebuild-jar-repository: error: Could not find)

 Now that we've run the full update, we have this installed:

 java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

 Please, please remove the above.  It has no business being installed in any 
 production environment.

 java-1.6.0-openjdk-1.6.0.0-1.16.b17.el5
 java-1.6.0-openjdk-devel-1.6.0.0-1.16.b17.el5
 java-sun-jdbc-stdext-2.0.1-1mamba
 java-sun-jdbc-stdext-javadoc-2.0.1-1mamba

 Those are not standard Sun/Oracle Java packages, so you're at the mercy of 
 whoever prepared them.

 tomcat5-5.5.23-0jpp.11.el5_5
 tomcat5-common-lib-5.5.23-0jpp.11.el5_5
 tomcat5-jasper-5.5.23-0jpp.11.el5_5
 tomcat5-jsp-2.0-api-5.5.23-0jpp.11.el5_5
 tomcat5-server-lib-5.5.23-0jpp.11.el5_5
 tomcat5-servlet-2.4-api-5.5.23-0jpp.11.el5_5

 None of the above are standard Tomcat downloads - you have third-party 
 repackaged versions of Tomcat installed, and need to consult with the 
 repackager for support.  Real Tomcat downloads are available here:

 http://tomcat.apache.org/download-55.cgi
 http://tomcat.apache.org/download-60.cgi
 http://tomcat.apache.org/download-70.cgi

 Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not
 find jdbc-stdext Java extension for this JVM
 /usr/bin/rebuild-jar-repository: error: Could not find jndi Java
 extension for this JVM
 /usr/bin/rebuild-jar-repository: error: Some detected jars were not
 found for this jvm
 /usr/bin/rebuild-jar-repository: error: Could not find jaas Java
 extension for this JVM
 /usr/bin/rebuild-jar-repository: error: Some detected jars were not
 found for this jvm

 None of the above error messages come from Tomcat itself.  What they do come 
 from is not clear.

  - Chuck

All of this is out of CentOS repositories and I'm limited to sticking
with what is in the repositories.

If you have any guidance with what I am working with, it would be
greatly appreciated.  I do appreciate the input that you have given
thoughdoes give me a couple ideas on hunting with what I have.

Thanks!

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



tomcat errors starting after upgrade from cent5.3 to 5.5 (/rebuild-jar-repository: error: Could not find)

2010-12-23 Thread Frank Even
We just upgraded Cent from 5.3 to 5.5 on a bunch of servers with
little to no issues (kudos to you guys) except on a few servers where
it appears we are having a problem w/ the Tomcat upgrade.  Previously
our application server was working fine under 5.3 with Tomcat/Java
installed as such:

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
java-1.6.0-openjdk-1.6.0.0-0.30.b09.el5
java-1.6.0-openjdk-devel-1.6.0.0-0.30.b09.el5
java-sun-jdbc-stdext-2.0.1-1mamba
java-sun-jdbc-stdext-javadoc-2.0.1-1mamba
tomcat5-5.5.23-0jpp.7.el5_2.1
tomcat5-common-lib-5.5.23-0jpp.7.el5_2.1
tomcat5-jasper-5.5.23-0jpp.7.el5_2.1
tomcat5-jsp-2.0-api-5.5.23-0jpp.7.el5_2.1
tomcat5-server-lib-5.5.23-0jpp.7.el5_2.1
tomcat5-servlet-2.4-api-5.5.23-0jpp.7.el5_2.1

Now that we've run the full update, we have this installed:

java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
java-1.6.0-openjdk-1.6.0.0-1.16.b17.el5
java-1.6.0-openjdk-devel-1.6.0.0-1.16.b17.el5
java-sun-jdbc-stdext-2.0.1-1mamba
java-sun-jdbc-stdext-javadoc-2.0.1-1mamba
tomcat5-5.5.23-0jpp.11.el5_5
tomcat5-common-lib-5.5.23-0jpp.11.el5_5
tomcat5-jasper-5.5.23-0jpp.11.el5_5
tomcat5-jsp-2.0-api-5.5.23-0jpp.11.el5_5
tomcat5-server-lib-5.5.23-0jpp.11.el5_5
tomcat5-servlet-2.4-api-5.5.23-0jpp.11.el5_5
tzdata-java-2010l-1.el5

I don't see any significant changes.  All of the configs appear to be
the same.   Yet now on our application startup, we see the following:

Starting tomcat5: /usr/bin/rebuild-jar-repository: error: Could not
find jdbc-stdext Java extension for this JVM
/usr/bin/rebuild-jar-repository: error: Could not find jndi Java
extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not
found for this jvm
/usr/bin/rebuild-jar-repository: error: Could not find jaas Java
extension for this JVM
/usr/bin/rebuild-jar-repository: error: Some detected jars were not
found for this jvm

what could have changed to have caused these issues?  Having
trouble hunting this down.  Any help that could be provided would be
sincerely appreciated.

Thanks,
Frank

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



class not found in tomcat's JARs (in $CATALINA_HOME/lib)

2010-12-07 Thread frank


Hi Experts:
I have read class not found in FAQ and class loader howto of 
tomcat6, unfortunately, they don't resolve my problem.

I set CATALINA_BASE and CATALINA_HOME to my directory like:

CATALINA_BASE=/usr/share/mydir
CATALINA_HOME=/usr/share/mydir

then link subdirs (conf/, bin/ ...)of tomcat6 to $CATALINA_HOME, 
the lib/ points to /usr/share/tomcat6/lib. IMO, 
tomcat6-servlet-2.5-api.jar, tomcat6-jsp-2.1-api-6.0.26.jar, 
tomcat6-el-2.1-api-6.0.26.jar should be automatically be found since 
they are located at $CATALINA_HOME/lib/. In fact this doesn't work, I 
got errors (see paste at bottom). However, if I added full path of these 
JARs to classpath, things worked. I am puzzled, why common class loader 
doesn't get these files? thank you.



*type* Exception report

*message*

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


*exception*

org.apache.jasper.JasperException: javax.servlet.ServletException: 
java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport

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

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

javax.servlet.ServletException: java.lang.NoClassDefFoundError: 
javax/servlet/jsp/tagext/TagSupport

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

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.index_jsp._jspService(index_jsp.java:1349)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagSupport
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:634)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
java.net.URLClassLoader.access$000(URLClassLoader.java:73)
java.net.URLClassLoader$1.run(URLClassLoader.java:212)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
java.lang.ClassLoader.loadClass(ClassLoader.java:321)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
java.lang.ClassLoader.loadClass(ClassLoader.java:266)
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:634)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
java.net.URLClassLoader.access$000(URLClassLoader.java:73)
java.net.URLClassLoader$1.run(URLClassLoader.java:212)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:205)
java.lang.ClassLoader.loadClass(ClassLoader.java:321)
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
java.lang.ClassLoader.loadClass(ClassLoader.java:266)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1431)

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:128)
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:66)

org.apache.jsp.index_jsp._jspx_meth_fmt_005fsetBundle_005f0(index_jsp.java:1361)
org.apache.jsp.index_jsp._jspService(index_jsp.java:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagSupport
java.net.URLClassLoader$1.run(URLClassLoader.java:217)

Re: Best practice for running Tomcat on port 80

2010-09-09 Thread Frank Tilugulilwa
On Thu, 2010-09-09 at 22:12 +0800, jan gestre wrote: 

 
  There's examples of shell scripts called Tomcat.sh, Tomcat5.sh in the
  unix directory subtree, which may help.  Use Tomcat5.sh as a template.
 
  It demonstrates how to use  configure the jsvc binary.
 
 
  p
 
 Hi Pid,
 
 I was able to start Tomcat by using Tomcat5.sh just like you suggested
 but I have another issue, how do I start it at boot time just like
 when Tomcat was using port 8080.
 
 Many thanks!
 
 Jan


There is a config file called server.xml which i think is responsible.

-
Frank
TZ








_

University Computing Centre - 'Professionalism, Customer Care and Technological 
foresight'


Re: Web app using JDBCRealm runs on Tomcat 5.5.20 but will not run on Tomcat 6.0.26 ...

2010-06-06 Thread Frank Burns
Fully understood -- and very clearly explained.

Again, thanks Chuck.

Cheers,

Frank

On Sun, Jun 6, 2010 at 3:25 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Frank Burns [mailto:francisbu...@gmail.com]
  Subject: Re: Web app using JDBCRealm runs on Tomcat 5.5.20 but will not
  run on Tomcat 6.0.26 ...
 
  didn't realise that specifying the context in the server.xml
  was poor practice and that if you did so then you had to be
  careful.
 
  Can you tell me why that is?

 Placing the Context element in server.xml requires a Tomcat restart
 anytime the context attributes need to be changed (including those of nested
 elements), since server.xml is only read when Tomcat starts.  Especially
 when running multiple webapps, this can be an administrative nightmare.
  Keeping the Context element with the webapp avoids that issue, and makes
 the URI path of the webapp independent of the Context settings.

 Having the Context in server.xml also runs the risk of double deployment,
 which can occur when the path attribute doesn't exactly match the file
 system location of the webapp.  People often don't even recognize that
 they've got a second copy of the webapp running, consuming resources and
 providing an unexpected path into the server.

  - 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: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Web app using JDBCRealm runs on Tomcat 5.5.20 but will not run on Tomcat 6.0.26 ...

2010-06-05 Thread Frank Burns
I have a web app that successfully runs on Tomcat 5.5.20 but will not run on
Tomcat 6.0.26.

Can someone please help me work out why it won't run?

It's on a Windows XP, SP2 machine.

The web app uses JDBCRealm to access a mysql database.

The apps in each Tomcat version are identical (i.e., copied from one Tomcat
webapp directory to the the other) and the context that I use in the
server.xml of each Tomcat version are also identical (apart from the docBase
value). Here it is for Tomcat 5.5.20:

 Context path=/sfpfulladmin
docBase=C:\SoftwareDevelopment\apache-tomcat-5.5.20\webapps\sfpfulladmin
debug=0
  Realm
className=org.apache.catalina.realm.JDBCRealm
 driverName=com.mysql.jdbc.Driver
 connectionURL=jdbc:mysql://
127.0.0.1:3306/ppadminsite
 connectionName=frank
connectionPassword=burns
 userTable=SFP_USER userNameCol=USERNAME
userCredCol=PASSWORD
 userRoleTable=USER_ROLE_ASSOCIATION
roleNameCol=PARENT_ROLE_NAME /
/Context

Here it is for Tomcat 6.0.26.

  Context path=/sfpfulladmin
docBase=C:\SoftwareDevelopment\apache-tomcat-6.0.26\webapps\sfpfulladmin
debug=0
  Realm
className=org.apache.catalina.realm.JDBCRealm
  driverName=com.mysql.jdbc.Driver
  connectionURL=jdbc:mysql://
127.0.0.1:3306/ppadminsite
  connectionName=frank
connectionPassword=burns
 userTable=SFP_USER userNameCol=USERNAME
userCredCol=PASSWORD
 userRoleTable=USER_ROLE_ASSOCIATION
roleNameCol=PARENT_ROLE_NAME /
/Context

The version of the web app in Tomcat 5.5.20 works perfectly and it can
access the database.

But the version of the web app in Tomcat 6.0.26 gives the following error in
the localhost_xxx.log file at startup:

05-Jun-2010 22:15:11 org.apache.catalina.realm.JDBCRealm start
SEVERE: Exception opening database connection
java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:704)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:786)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:519)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
05-Jun-2010 22:15:16 org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
05-Jun-2010 22:15:16 org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()

Any ideas?

Thanks,

Frank


Re: Web app using JDBCRealm runs on Tomcat 5.5.20 but will not run on Tomcat 6.0.26 ...

2010-06-05 Thread Frank Burns
HeyChuck,

Thanks very much for your excellent reply and advice.

Moving the MySQL JDBC driver jar app's WEB-INF/lib directoryto Tomcat's lib
directory sorted the problem and it's working now.

I am aware of the various ways in which you can deploy a webapp, but didn't
realise that specifying the context in the server.xml was poor practice and
that if you did so then you had to be careful.

Can you tell me why that is?

Thanks again.

Frank


On Sun, Jun 6, 2010 at 12:11 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  From: Frank Burns [mailto:francisbu...@gmail.com]
  Subject: Web app using JDBCRealm runs on Tomcat 5.5.20 but will not run
  on Tomcat 6.0.26 ...
 
  the context that I use in the server.xml of each Tomcat

 Let's get the Context element straightened out first.  You should not be
 placing Context elements in server.xml; although it works (if you're
 careful), it is extremely poor practice.  The Context element should be in
 the app's META-INF/context.xml file, without any docBase or path attributes.
  If you don't want to keep the Context element with the webapp, place the
 webapp outside of Tomcat's directory structure, and put the Context
 element in conf/Catalina/[hostName]/[appName].xml, with a docBase attribute
 pointing to the app's location, but without a path attribute.

  Here it is for Tomcat 6.0.26.
 
  Context path=/sfpfulladmin
 
 docBase=C:\SoftwareDevelopment\apache-tomcat-6.0.26\webapps\sfpfulladmin

 Move the Context element and get rid of the path and docBase, as noted
 above.

  debug=0

 The debug attribute hasn't been used for years.

  Realm
  className=org.apache.catalina.realm.JDBCRealm
  driverName=com.mysql.jdbc.Driver
  connectionURL=jdbc:mysql://127.0.0.1:3306/ppadminsite
  connectionName=frank
  connectionPassword=burns
  userTable=SFP_USER
  userNameCol=USERNAME
  userCredCol=PASSWORD
  userRoleTable=USER_ROLE_ASSOCIATION
  roleNameCol=PARENT_ROLE_NAME /

 The JDBCRealm is a poor choice due to inherent design issues (e.g.,
 single-thread, no DB connection pooling).  Much better to use a
 DataSourceRealm:
 http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#DataSourceRealm

 Where is the MySQL JDBC driver jar located?  It should be in Tomcat's lib
 directory (and nowhere else) if using a DataSourceRealm; for a JDBCRealm,
 the jar can be in either Tomcat's lib directory or the app's WEB-INF/lib
 directory, but not both.

  - 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: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




IIS -Tomcat Configuration Question

2010-04-21 Thread Frank Zappa
Hello,

Our group is using IIS as a gateway server to Tomcat. 
(Unfortunately Apache can't be used for this project) 

Our system uses smart cards, so a pki certificate is passed from the browser to 
the gateway server. Does anyone know how to configure IIS to pass the 
user's certificate through IIS to Tomcat?

Thank you kindly!

Hans


  

Missing events in Comet

2010-04-20 Thread Frank Lyaruu
Hi all,

We are trying to use Comet to make our web-service platform more resistent
to heavy loads.
We use HTTP/1.1 POSTS to send our requests (using chunked requests), and the
client waits for the response.

My problem is the following: As far as I can see, I have no way of
(reliably) detecting the end of the request.
I sometimes receive an END event, and sometimes a READ event with 0
available bytes. Those seem to indicate
that the request is complete, but sometimes I just get a few regular READ
events and then nothing.

If I don't use chunking, I can get it to work, as I just 'know' how many
bytes to expect. If I could do the de-chunking
myself I could also detect the final empty chunk + CRLF  to know the request
is done.

My question is: Shouldn't the final chunk always fire an END event, or at
least an empty READ event?

I hope someone can help me, I can supply all sorts of concise testing code.

regards, Frank Lyaruu
Dexels


Re: Missing events in Comet

2010-04-20 Thread Frank Lyaruu
Hi Andre,

Thanks for your reply.
Yes, it does. I am using a very basic java client (using a HttpURLConnection),
and I tested it against a server socket, and I always get a final, empty
chunk.

regards Frank.

ps. I am seeing this both on Tomcat 6.0.26 and Tomcat 7 trunk.

2010/4/20 André Warnier a...@ice-sa.com

 Frank Lyaruu wrote:

 Hi all,

 We are trying to use Comet to make our web-service platform more resistent
 to heavy loads.
 We use HTTP/1.1 POSTS to send our requests (using chunked requests), and
 the
 client waits for the response.

 My problem is the following: As far as I can see, I have no way of
 (reliably) detecting the end of the request.
 I sometimes receive an END event, and sometimes a READ event with 0
 available bytes. Those seem to indicate
 that the request is complete, but sometimes I just get a few regular READ
 events and then nothing.

 If I don't use chunking, I can get it to work, as I just 'know' how many
 bytes to expect. If I could do the de-chunking
 myself I could also detect the final empty chunk + CRLF  to know the
 request
 is done.

 My question is: Shouldn't the final chunk always fire an END event, or at
 least an empty READ event?

 I hope someone can help me, I can supply all sorts of concise testing
 code.

  Have you verified that /the client/ does the chunking properly ?
 As far as I recall, it /must/ send a last chunk of size zero to indicate
 the end of the request, but does it, always ?


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




Re: Blank page when native DLL used

2009-06-03 Thread Frank W. Zammetti

Hi Chuck,

Nope, I just verified, I made no changes to server.xml at all... in 
fact, the only thing I did do was take all the preinstalled applications 
and remove them from webapps... I'd be surprised to learn it, but could 
that be the problem somehow?


Thanks,
Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com



Caldarale, Charles R wrote:

From: Frank W. Zammetti [mailto:fzli...@omnytex.com]
Subject: Re: Blank page when native DLL used



  

32-bit, and I re-confirmed I have the right download (which seems
obvious anyway given that Tomcat picks it up and starts running 
with it, but you never know).



You didn't happen to disable the APR listener in server.xml, did you?  That 
might contribute to the observed symptoms.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


__ Information from ESET Smart Security, version of virus signature 
database 4128 (20090603) __

The message was checked by ESET Smart Security.

http://www.eset.com




  



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



Re: Blank page when native DLL used

2009-06-03 Thread Frank W. Zammetti
That's correct, root too... I tried adding all the webapps back in 
anyway to no avail... the URL I know is correct because without the DLL, 
it gets me my page as expected, but when I drop the DLL in and just hit 
refresh, I get the blank page (I also confirmed there was no trailing 
slash both times to be extra sure).  I can of course hit refresh all day 
long without the DLL (the JSP renders the current time so I know it's 
properly being refreshed).


Well, if I'm the only one that's ever reported this then no big deal, 
I'm perfectly happy assuming it's something on my machine (or me doing 
something stupid that I just can't catch).  This is just for development 
so not a problem at all.  If others see this though, maybe then it might 
be indicative of an actual problem.


Take care,
Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com



Caldarale, Charles R wrote:

From: Frank W. Zammetti [mailto:fzli...@omnytex.com]
Subject: Re: Blank page when native DLL used



  

the only thing I did do was take all the preinstalled
applications and remove them from webapps...



Including ROOT?  If you don't have a default webapp deployed, you will get a 
blank page back if the URL can't be matched against any of the deployed 
webapps.  (This is true with and without tcnative-1.dll available.)  Note that 
the browser may display an old copy of the Tomcat home page if it has one lying 
around; hitting refresh will get rid of that.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


__ Information from ESET Smart Security, version of virus signature 
database 4129 (20090604) __

The message was checked by ESET Smart Security.

http://www.eset.com




  



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



Re: Blank page when native DLL used

2009-05-26 Thread Frank W. Zammetti

Hi Charles,

JVM info:
java version 1.6.0_11
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Client VM (build 11.0-b16, mixed mode, sharing)

32-bit, and I re-confirmed I have the right download (which seems 
obvious anyway given that Tomcat picks it up and starts running with it, 
but you never know).


Thanks,
Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com


Caldarale, Charles R wrote:

From: Frank W. Zammetti [mailto:fzli...@omnytex.com]
Subject: Blank page when native DLL used

Hi folks... I'm running Tomcat 6.0.18 on Windows XP and I'm trying to
use tcnative-1.dll 1.1.16... I drop the DLL in tomcat/bin and it's
picked up at startup as expected... however, trying to access any JSPs
on the server results in a blank page.  If I remove the DLL everything
works fine.



JVM version?  32- vs 64-bit JVM/dll mismatch?

Anything in the logs?

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


__ Information from ESET Smart Security, version of virus signature 
database 4107 (20090527) __

The message was checked by ESET Smart Security.

http://www.eset.com




  


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



Blank page when native DLL used

2009-05-25 Thread Frank W. Zammetti
Hi folks... I'm running Tomcat 6.0.18 on Windows XP and I'm trying to 
use tcnative-1.dll 1.1.16... I drop the DLL in tomcat/bin and it's 
picked up at startup as expected... however, trying to access any JSPs 
on the server results in a blank page.  If I remove the DLL everything 
works fine.


Is this a known issue, or has anyone else seen this?  It's not the end 
of the world or anything, I'm more curious than anything really.


Thanks,
Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com


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



Re: What is the difference?

2009-05-14 Thread Frank W. Zammetti

Err, one is correct and one is not :)

-version does what you expect: gives you information on the JVM that is 
executing.  Just putting version however is telling the JVM to load a 
class named version and execute it, which of course it can't find, hence 
the ClassNotFoundException you see.


Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
All you could possibly want is here: zammetti.com


Dave Filchak wrote:

Curious,

What is the difference between java -version and java version?

In the first case I get:

java -version
java version 1.6.0_13
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02, mixed mode)

In the second, I get:

java version
Exception in thread main java.lang.NoClassDefFoundError: version
Caused by: java.lang.ClassNotFoundException: version
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: version.  Program will exit.


Dave

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


__ Information from ESET Smart Security, version of virus 
signature database 4076 (20090514) __


The message was checked by ESET Smart Security.

http://www.eset.com







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



Re: job announcement - Software Architect

2009-03-21 Thread Frank W. Zammetti
Eh, we've all done rapid iterative design... it usually goes something 
like this...


10:34am: I need the logo to be flaming instead of waving, and it has to 
be done by 11:00am
10:58am: Scratch that, the logo has to fade in and out and it MUST be 
implemented by 11:15am
11:20am: Please change the site's layout from three fluid columns to 
two static by noon's product demo
12:22pm: The demo went well, but they want the logo to be a subtle 
background image, and the layout has to have a header, footer, sidebar 
and the original three fluid columns.  The next demo is at 1:30 so it 
has to be done by then.


By the way, tapid iterative development usually ends in one or more 
suicides, loss of staff to the local Wal-Mart or any version of Windows 
Vista.


Frank

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
My look ma, I have a blog too! blog: zammetti.com/blog


Caldarale, Charles R wrote:
From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] 
Subject: Re: job announcement - Software Architect


P.S. on a very side note, what is test-driven design 
and rapid iterative development ?



I think that means We don't need no stinkin' requirements.

 - 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: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


__ Information from ESET Smart Security, version of virus signature 
database 3953 (20090321) __

The message was checked by ESET Smart Security.

http://www.eset.com




  



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



Re: job announcement - Software Architect

2009-03-21 Thread Frank W. Zammetti

Err, that's Rapid or course dunno what tapid is :)

--
Frank W. Zammetti
Author of Practical Ext JS Projects with Gears (coming soon)
 and Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects with Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
My look ma, I have a blog too! blog: zammetti.com/blog



Frank W. Zammetti wrote:
Eh, we've all done rapid iterative design... it usually goes 
something like this...


10:34am: I need the logo to be flaming instead of waving, and it has 
to be done by 11:00am
10:58am: Scratch that, the logo has to fade in and out and it MUST be 
implemented by 11:15am
11:20am: Please change the site's layout from three fluid columns to 
two static by noon's product demo
12:22pm: The demo went well, but they want the logo to be a subtle 
background image, and the layout has to have a header, footer, sidebar 
and the original three fluid columns.  The next demo is at 1:30 so it 
has to be done by then.


By the way, tapid iterative development usually ends in one or more 
suicides, loss of staff to the local Wal-Mart or any version of 
Windows Vista.


Frank





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



Re: Record and simulate a web app

2009-02-18 Thread Frank W. Zammetti

+1 to what Christopher said... but, you can save yourself some time:

http://javawebparts.sourceforge.net/

More specifically:

http://javawebparts.sourceforge.net/javadocs/javawebparts/filter/RequestRecorderFilter.html

...and to go along with that:

http://javawebparts.sourceforge.net/javadocs/javawebparts/misc/package-summary.html

I think that'll pretty much do as suggested.

Frank

--
Frank W. Zammetti
Author of Practical Dojo Projects
 and Practical DWR 2 Projects
 and Practical JavaScript, DOM Scripting and Ajax Projects
 and Practical Ajax Projects With Java Technology
 (For info: apress.com/book/search?searchterm=zammettiact=search)
My look ma, I have a blog too! blog: zammetti.com/blog



Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Youssef,

On 2/18/2009 2:02 PM, Youssef Mohammed wrote:
  

Sorry if this not directly related to tomcat itself. I have a swing app that
communicate with backend thru a web app deployed on tomcat. For testing
purposes, we want to be able to record some http responses and later on be
able to simulate the same response when it gets the same request ( aka
simulating the web sever).  All tools we could find only record requests and
simulate the client not the sever. Any help/hint is appreciated. thnx



This sounds like something you could write yourself as a relatively
simple webapp:

1. Write an HTTP recorder filter. Configure it as the first filter that
gets run for any request. Wrap the request object with one that records
the input stream coming in, say, to a file. Wrap the response with one
that records the output to another file. Your request object can link
these two files any way it wants. You probably want to do something like
use Content-Length + SHA1(request) as a key to the request that you
store for later.

2. Run your application through this filter to generate some test data.

3. Write a servlet that does nothing but read requests, hash them, look
up the test response from your database of responses, and dump the
response back to the client.

You'll have to watch out for a few things:

1. The recorded response is not directly playable because it includes
things like the status header, which you can't send twice. So you'll
have to record the status header and set it appropriately instead of
just writing content.

2. Similar to #1, you have to send headers using setHeader() instead of
just writing to the output stream, because the output stream is used
solely for the response body.

3. If your requests include bodies, you might want to pre-process the
requests to account for varying amounts of whitespace, etc.

In thinking about #1 and #2 above, I think a change to the recorder is
in order: you probably want to store the headers, status code, etc.
specially instead of just as text in your recorded file. This will make
it easier to play back the response.

Hope that helps,
- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmcfiwACgkQ9CaO5/Lv0PBdqQCgs8PYXOm4U6f2oD+ejQVkHvFQ
QRMAoJJCjhY8XRJX2n9tMDwjIewvtK27
=6R37
-END PGP SIGNATURE-

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


__ Information from ESET Smart Security, version of virus signature 
database 3865 (20090218) __

The message was checked by ESET Smart Security.

http://www.eset.com




  



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



RE: accepting requests from outside the host?

2009-02-13 Thread Frank D. Greco

Thanks for the response Chuck.

I took a look at the tomcat process on my box and it has this:

sockname: AF_INET6 :::127.0.0.1  port: 8080

Basically, its localhost.

I can't telnet or ping.  Our ISP sysadmin disabled those on the firewall.

Someone else said I need to bind it to the ipaddr of the box (OpenSolaris btw),
but I'm not sure how to do that.

Frank

 Can someone pls point me in the right direction on
 how to configure tomcat to accept browser requests
 from outside the box?

No configuration necessary - unless you changed something in server.xml, To=
mcat binds to 0.0.0.0, so it listens on all IP addresses configured for the=
 box it's running on.  There very likely *is* a firewall blocking port 8080=
 somewhere between your browser and the Tomcat system - it might even be on=
 your XP box at home.

Can you reach the target system with a ping?


--
+==+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==+
--


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



RE: accepting requests from outside the host?

2009-02-13 Thread Frank D. Greco



 I can't telnet or ping.  Our ISP sysadmin disabled those on
 the firewall.

Nice guy.


He said it was a security precaution.  Actually I don't
blame him.


 Someone else said I need to bind it to the ipaddr of the box
 (OpenSolaris btw), but I'm not sure how to do that.

Set the address attribute of your Connector element(s) in 
conf/server.xml to the desired IP address:

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html


Ah... I see what the problem was.

I had the Server port set to 8080 but the Connector port
was still set to 80.  Once I set the Connector port to 8080,
I got in.

Thanks for your help Chuck!  I owe you one.

Frank G.
--
+==+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==+
--


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



accepting requests from outside the host?

2009-02-12 Thread Frank D. Greco

I'm new at tomcat config, so go easy... :)

I wanted to setup tomcat for some testing.  So I installed tomcat on 
a new box at our hosting service (which hosts other prod websites of 
ours).  I was able to see tomcat from a browser on the same box.  I 
saw port 8080 (my config setting) associated with the tomcat/java 
process, ie, browsing to http://localhost:8080 worked fine.  So far so good.


But I can't seem to reach it from the outside.  Our ISP admin says 
port 8080 is open on the firewall, but my WinXP home machine can't 
reach it.  I tried to telnet to it, but no luck.


Can someone pls point me in the right direction on how to configure 
tomcat to accept browser requests from outside the box?  There 
probably needs to be something set in server.xml, but I can't seem to 
find that info.


Thanks,

Frank G.
--
+==+
| Crossroads Technologies Inc. |
| www.CrossroadsTech dot com   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==+
--


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



Re: Redeploy leaks

2009-01-06 Thread Frank Castellucci
Yes, you should be cooked, sauted and broiled on an open flame grin.

http://community.eapps.com/showthread.php?t=153

Take a look, maybe useful

On Tue, Jan 6, 2009 at 9:34 AM, Mark Hagger mark.hag...@m-spatial.comwrote:

 On Sat, 2009-01-03 at 14:30 -0500, Cosio, Raul wrote:
  Memory leak is an advanced task. But once understood is very easy to fix
  them, just follow some simple rules, most common situations are: 1) Not

 Usually a matter of torturing yourself for some time following
 classloader trees, together with various static instantiations.  Logging
 systems and Axis/jakarta-commons stuff have been the main causes of
 problems for me.

 This article was useful for me:

 http://blogs.sun.com/fkieviet/entry/how_to_fix_the_dreaded

 I suppose that they are very easy to fix once you work out precisely
 what is causing a leak, but that's a bit like saying that most bugs are
 very easy to fix - but thats a bit misleading isn't it, since you could
 spend hours/days tracking down the bug in the first place.

 Although its obviously nice to track down all the leaks in your app so
 that you could sit redeploying all day to your hearts content (I'll
 probably be burned at the stake for this next bit) but I do sometimes
 suspect that its not worth the effort and just live with having to
 restart your tomcat instance from time to time depending on your
 redeploy strategies.

 Mark



 
 This email has been scanned for all known viruses by the MessageLabs
 SkyScan service.

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




Re: Help With Deployment

2008-12-31 Thread Frank Castellucci
That did the trick, thanks

On Tue, Dec 30, 2008 at 8:10 PM, Ken Bowen kbo...@als.com wrote:

 The Tomcat Manager user-id might not be the one that owns the
 folders/files in question.
 Check the ownership of the files/folders and check whether the startup
 script you are using
 for tomcat changes  to some different user like tomcat.


 On Dec 30, 2008, at 6:49 PM, Frank Castellucci wrote:

  I am on Linux

 I am logged in as the user that runs the build script. tomcat-users.xml
 contains the user that has manager as a role.

 Frank

 On Tue, Dec 30, 2008 at 8:52 AM, Yassine yassine.elas...@gmail.com
 wrote:

  This seem to be a security restriction from your operating system,
 double check that the system user
 who start the ant based deployment process is able to read and write
 into the target deployment directory

 good luck
 Yassine


 On Tue, Dec 30, 2008 at 1:06 PM, Frank Castellucci
 frankiec...@gmail.com wrote:

 I am getting a access denied file IO exception when attempting to

 deploy a

 WAR file from an Ant script, using the address

 file://home/builder//filename.war

 And the Tomcat Manager user-id and password.

 Tomcat : 6.0.18

 Thanks,
 Frank




 --
 --
 Yassine Elassad
 Bonn, Germany.
 Fon : +49 228 97629355
 Mobile : +49 157 74519666

 PEACE :
 ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.

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




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




Help With Deployment

2008-12-30 Thread Frank Castellucci
I am getting a access denied file IO exception when attempting to deploy a
WAR file from an Ant script, using the address

file://home/builder//filename.war

And the Tomcat Manager user-id and password.

Tomcat : 6.0.18

Thanks,
Frank


Re: Help With Deployment

2008-12-30 Thread Frank Castellucci
I am on Linux

I am logged in as the user that runs the build script. tomcat-users.xml
contains the user that has manager as a role.

Frank

On Tue, Dec 30, 2008 at 8:52 AM, Yassine yassine.elas...@gmail.com wrote:

 This seem to be a security restriction from your operating system,
 double check that the system user
 who start the ant based deployment process is able to read and write
 into the target deployment directory

 good luck
 Yassine


 On Tue, Dec 30, 2008 at 1:06 PM, Frank Castellucci
 frankiec...@gmail.com wrote:
  I am getting a access denied file IO exception when attempting to
 deploy a
  WAR file from an Ant script, using the address
 
  file://home/builder//filename.war
 
  And the Tomcat Manager user-id and password.
 
  Tomcat : 6.0.18
 
  Thanks,
  Frank
 



 --
 --
 Yassine Elassad
 Bonn, Germany.
 Fon : +49 228 97629355
 Mobile : +49 157 74519666

 PEACE :
 ( P ) Positive ( E ) Energy ( A ) Always ( C ) Correct ( E ) Errors.

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




Re: JPA/Hibernate persistence and MySQL connection timeout

2008-12-30 Thread Frank Castellucci
Try adding this to your persistence.xml:

property name=hibernate.c3p0.acquire_increment value=3 /

property name=hibernate.c3p0.idle_test_period
value=14400
/
property name=hibernate.c3p0.timeout value=25200 /
property name=hibernate.c3p0.max_size value=15 /
property name=hibernate.c3p0.min_size value=3 /
property name=hibernate.c3p0.max_statements value=0 /
property name=hibernate.c3p0.preferredTestQuery
value=select 1;
/


On Tue, Dec 30, 2008 at 8:05 AM, tarakarajendra prasad 
rajendr...@yahoo.co.uk wrote:

 Hello Kees De Kooter,

   Please Mention the query and hibernate.cfg.xml properties, you have given
 so that we can know little more better the error.
 wishes,
Prasad DTR


 - Original Message 
 From: Kees de Kooter kdekoo...@gmail.com
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, 29 December, 2008 20:50:05
 Subject: Re: JPA/Hibernate persistence and MySQL connection timeout

 Hi Ken,

 Take a look at this page:

 http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html
 As you can see the datasource is obtained using JNDI:
 jta-data-sourcejava:/DefaultDS/jta-data-source


 Cheers,
 Kees de Kooter
 http://www.boplicity.net



 On Mon, Dec 29, 2008 at 14:41, Ken Bowen kbo...@als.com wrote:
  Kees,
 
  Can you point me to a discussion of how to do that?
 
  Thanks,
  Ken
 
  On Dec 29, 2008, at 3:42 AM, Kees de Kooter wrote:
 
  Why don't u use the existing datasources for JPA (instead of setting
  the hibernate.connection properties)?
 
  Kees
 
 
  On Mon, Dec 29, 2008 at 00:50, Ken Bowen kbo...@als.com wrote:
 
  Hi All,
 
  I'm using: Tomcat 6.0.18; Mysql 5.0.51a; Java 1.5; Hibernate 3.2;  (no
  spring)
 
  MyApp utilizes five (5) distinct mysql catalogs (databases).
  Originally all 5 were accessed using JDBC/JNDI with Resources that all
  look
  like this
  (in webapps/MyApp/META-INF):
 
  Resource name=jdbc/CATALOGNAME auth=Container
  type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=X password=X
   driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/CATALOGNAME
   validationQuery=select 1
  /
 
  Everything worked fine, including the validationQuery to deal with
 MySQL
  closing connections overnight.
 
  Recently I replaced the JDBC access for 3 of the catalogs by use of
  JPA/Hibernate persistence,
  while leaving the other two catalogs as originally implemented (they
  consist
  of large tables
  containing daily price information; hence not very object-oriented.)
 The
  persistence.xml looks
  like this:
 
  persistence-unit name=ctdbPU transaction-type=RESOURCE_LOCAL
   providerorg.hibernate.ejb.HibernatePersistence/provider
 
   . lots of class entries like:
   classcom.connectedtrading.database.users.AbstractLineitem/class
   classcom.connectedtrading.database.users.Lineitem/class
 
   properties
 property name=hibernate.connection.driver_class
  value=com.mysql.jdbc.Driver /
 property name=hibernate.connection.url
  value=jdbc:mysql://localhost:3306/CATALOGNAME /
 property name=hibernate.connection.username value=X /
 property name=hibernate.connection.password value=X /
   /properties
  /persistence-unit
 
  [Interestingly enough, only one of the 3 CATALOGNAMEs appears.]
  Note that I left all 5 of the Resource elements in place in
 context.xml.
 
  Once again, everything works well, EXCEPT that now when I leave the
  system
  running overnight and
  no accesses occur (it's only in dev mode), in the morning I now get the
  exception shown at the
  end of this email.  It certainly looks like the mysql disconnect
  behavior.
  As with the JDBC case, repeating the access causes everything to start
  working correctly.
  The query being submitted is
 
   org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:75)
 
 
 
 com.connectedtrading.database.users.UserDAO.findByProperty(UserDAO.java:180)
 
 
 com.connectedtrading.database.users.UserDAO.findByLogin(UserDAO.java:203)
 
  which is a hibernate query supporting user login.
 
  If anyone on the list has had experience with this issue under
  JPA/Hibernate
  persistence,
  I hope you can give me some pointers to dealing with it.
 
  Thanks much in advance,
  Ken Bowen
 
  - The Exception-
 
  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: javax.persistence.PersistenceException:
  org.hibernate.exception.JDBCConnectionException: could not execute
 query
 
 
 
 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:523)
 
 
 
 

configure the Heap Size

2008-10-27 Thread Frank Uccello
Is it possible to set the Heap size in the server.xml file and if so
what the syntax





naroow down my issue

2008-10-20 Thread Frank Uccello
Specs: Tomcat5.5, java 1.5, windows 2003 sp2

I still having an issue with connecting to my tomcat via iss (it connect
to localhost:8060/IT/servlet but not localhost/IT/servlet

After much digging and  I maybe incorrect here but I think it has to
with my server.xml file  

The basic error log now tell me tomcat is on the wrong port but like I
stated I can connect to the port see above



Here the line:
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
debug=0
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   port=8060 minProcessors=5 maxProcessors=75
acceptCount=10
   useURIValidationHack=false /




I think it has to do with this line since I just copy the server.xml
from a working tomcat 4 and this server using tomcat 5 and  the only
thing I changed is tomcat4.coyoteconnector to tomcat5.coyoteconnector



Let me know if line is the correct use or can some tell me what is the
correct syntax 



Thanks



INFO: Retrying request

2008-10-17 Thread Frank Uccello
I have Windows 2003 SP2, tom cat 5.5 , jave 1.5 box

I can reach my tomcat app using localhost:8050/IT/servlet but not
localhost/IT/servlet

I was getting an http error Http error  404 - File or directory
localhost/IT/servlet on web page of not found

I took a closer look at the tomcat logs and they state:


org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request


Anyone see this issue



Thanks




RE: INFO: Retrying request

2008-10-17 Thread Frank Uccello
Not 100$ sure what you mean but here are  my configs
Iaspi_redirector.porperty file located c:\program
files\apache\Jk_redir\bin

# Configuration file for the Jakarta ISAPI Redirector

# The path to the ISAPI Redirector Extension, relative to the website
# This must be in a virtual directory with execute privileges
extension_uri=/Jk_Redir/isapi_redirect.dll

# Full path to the log file for the ISAPI Redirector
log_file=C:\PROGRA~1\IT\WIR1\tc-logs\IsapiRedirect.log

# Log level (debug, info, warn, error or trace)
log_level=info

# Full path to the workers.properties file
worker_file=C:\PROGRA~1\IT\WIR1\tc-config\workers.properties

# Full path to the uriworkermap.properties file
worker_mount_file=C:\PROGRA~1\IT\WIR1\tc-config\uriworkermap.properties

--
Located C:\PROGRA~1\IT\WIR1\tc-config\
# workers.properties
#
# This file provides the jk configuration properties needed to
# connect to Tomcat.

#
# List of workers that jk should create and work with
#
worker.list=aj_pri,aj_sec

#
# Define Primary worker aj_pri
#
worker.aj_pri.host=localhost
worker.aj_pri.port=8050
worker.aj_pri.type=ajp13

#
# Define Secondary worker aj_sec
#
worker.aj_sec.host=localhost
worker.aj_sec.port=8051
worker.aj_sec.type=ajp13
---
Located in C:\PROGRA~1\IT\WIR1\tc-config\
# uriworkermap.properties - IIS
/IT/*=aj_pri


Located C:\PROGRA~1\IT\WIR1\tc-config\
!-- Server Configuration File --
Server port=8010 shutdown=SHUTDOWN debug=0

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

  Service name=Tomcat-Primary

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8050 --
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
debug=0
 
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler
   port=8050 minProcessors=5 maxProcessors=75
acceptCount=10
   useURIValidationHack=false /

Engine name=Primary defaultHost=localhost debug=0

  !-- Global logger --
 
 !-- Logger className=org.apache.catalina.logger.FileLogger
  directory=C:/Program Files/IT/Wire1/logs
  prefix=Tomcat-Primary. suffix=.log timestamp=true/
--

  !-- The default virtual host --
  Host name=localhost debug=0 appBase=webapps
unpackWARs=false autoDeploy=false liveDeploy=false
   Context path=/IT docBase=C:/Program
Files/IT/Wire1/webapps/IT.war crossContext=false /
   Context path=/ITServices docBase=C:/Program
Files/IT/Wire1/webapps/ITServices.war crossContext=false /
   Context path=/ITWap docBase=C:/Program
Files/IT/Wire1/webapps/ITWap.war crossContext=false /
  /Host
/Engine
  /Service
/Server

Let me know what else you may need


Thanks








-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2008 10:37 AM
To: Tomcat Users List
Subject: RE: INFO: Retrying request


frank-

do you have any relevant entries in iptables?
do you have  redirectPort in your connector ?

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and
Sender does not endorse distribution to any party other than intended
recipient. Sender does not necessarily endorse content contained within
this transmission. 


 Subject: INFO: Retrying request
 Date: Fri, 17 Oct 2008 09:53:47 -0400
 From: [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 
 I have Windows 2003 SP2, tom cat 5.5 , jave 1.5 box
 
 I can reach my tomcat app using localhost:8050/IT/servlet but not
 localhost/IT/servlet
 
 I was getting an http error Http error  404 - File or directory
 localhost/IT/servlet on web page of not found
 
 I took a closer look at the tomcat logs and they state:
 
 
 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
 INFO: Retrying request
 
 
 Anyone see this issue
 
 
 
 Thanks
 
 

_
When your life is on the go-take your life with you.
http://clk.atdmt.com/MRT/go/115298558/direct/01/

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



RE: tom cat error

2008-10-16 Thread Frank Uccello
It seem it to be a port issue not sure why I had at 9057 and it did not
work when I changed to 8057 it works

Thanks



-Original Message-
From: Pid [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2008 9:47 AM
To: Tomcat Users List
Subject: Re: tom cat error

Frank Uccello wrote:
 OS: Windows 2003 Server SP2
 Tomcat: 5.5
 Java: 1.5
 
 I am not sure what you mean about configs.
 
 I do know if mean tomcat or my app configuration there are exactly the
 same as the tomcat instances that work only thing the port change and
 name change but everything else is the same

What else is going on the log file at the time?

Which log file is it?

Is that error message part of a stacktrace?
If so, please post the whole stacktrace.

We need more information about your application, what it is doing at the
time perhaps, or what the servlet is intended to do?

p



 David Smith-2 wrote:
 That all it states or could you provide a little more context?

 Also the usual stuff everyone forgets: OS, tomcat version, java 
 version, relevant configs, etc., ...

 --David

 Frank Uccello wrote:

 I have my tomcat start and everything look fine but I can not reach 
 localhost:8057/it/servlet


 The tomcat log states




 SEVERE: Invalid message received with signature 18245


 Any see this before I can not seem to find anything via google




  


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

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



 Quoted from:
 http://www.nabble.com/tomcat-error-tp20002256p20002505.html
 
 
 
 


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


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



tom cat error

2008-10-16 Thread Frank Uccello

OS: Windows 2003 Server SP2
Tomcat: 5.5
Java: 1.5

I am not sure what you mean about configs.

I do know if mean tomcat or my app configuration there are exactly the
same as the tomcat instances that work only thing the port change and
name change but everything else is the same






David Smith-2 wrote:
 
 That all it states or could you provide a little more context?
 
 Also the usual stuff everyone forgets: OS, tomcat version, java 
 version, relevant configs, etc., ...
 
 --David
 
 Frank Uccello wrote:
 
I have my tomcat start and everything look fine but I can not reach 
localhost:8057/it/servlet


The tomcat log states




SEVERE: Invalid message received with signature 18245


Any see this before I can not seem to find anything via google




  

 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
 e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
Quoted from:
http://www.nabble.com/tomcat-error-tp20002256p20002505.html





I/O exception

2008-10-16 Thread Frank Uccello
I have Windows 2003 SP2, tom cat 5.5 , jave 1.5 box and I get the tomcat
error of

INFO: I/O exception (java.net.ConnectException) caught when processing
request: Connection timed out: connect



Anyone see this before I try Google it but could come up with an answer



Thanks





tomcat as services

2008-10-15 Thread Frank Uccello


I have a machine that has multiply tomcat instances and they run as a
service.

I like to add a new tomcat:

First I copy an existing tomcat.exe and rename to
Tomcat-ItActionSystem.exe

Then I type the following 

tomcat5 //IS//TomcatItActionSystems
--DisplayName=Tomcat-ItActionSystem --Install=C:\Program 
Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto
--StartMode=jvm --StopMode=jvm 
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start 
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop



It shows up as service but will not start the tomcat error I get is as
follows:


[2008-10-15 09:33:59] [420  prunsrv.c] [error]
The system cannot find the file specified.
[2008-10-15 09:33:59] [1327 prunsrv.c] [error]
Load configuration failed

I think it's the parmaters can some tell mewhat the correct parmeters
should be



Thanks


Frank



RE: tomcat as services

2008-10-15 Thread Frank Uccello
Ok this maybe a stupid question to ask but where do I download the
service.bat file
I only asked due it is not in tomcaat bin directory and I did a search
and can not find this file




Thanks


 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2008 10:29 AM
To: Tomcat Users List
Subject: RE: tomcat as services

 From: Frank Uccello [mailto:[EMAIL PROTECTED]
 Subject: tomcat as services

 First I copy an existing tomcat.exe and rename to 
 Tomcat-ItActionSystem.exe

 tomcat5 //IS//TomcatItActionSystems
 --DisplayName=Tomcat-ItActionSystem --Install=C:\Program 
 Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto 
 --StartMode=jvm --StopMode=jvm 
 --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start

 --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop

Rather than mucking around with all that, download and install the .zip
version and use the included service.bat script to install as many
services as you want.

 - Chuck


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

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


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



RE: tomcat as services

2008-10-15 Thread Frank Uccello
 Never mind I found it thanks I go to try it




-Original Message-
From: Frank Uccello 
Sent: Wednesday, October 15, 2008 10:52 AM
To: 'Tomcat Users List'
Subject: RE: tomcat as services

Ok this maybe a stupid question to ask but where do I download the
service.bat file I only asked due it is not in tomcaat bin directory and
I did a search and can not find this file




Thanks


 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2008 10:29 AM
To: Tomcat Users List
Subject: RE: tomcat as services

 From: Frank Uccello [mailto:[EMAIL PROTECTED]
 Subject: tomcat as services

 First I copy an existing tomcat.exe and rename to 
 Tomcat-ItActionSystem.exe

 tomcat5 //IS//TomcatItActionSystems
 --DisplayName=Tomcat-ItActionSystem --Install=C:\Program 
 Files\Apache\Tomcat5.5\bin\tomcat-ItActionSystem.exe --Jvm=auto 
 --StartMode=jvm --StopMode=jvm 
 --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start

 --StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop

Rather than mucking around with all that, download and install the .zip
version and use the included service.bat script to install as many
services as you want.

 - Chuck


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

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


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



RE: tomcat as services

2008-10-15 Thread Frank Uccello
I have now try the service.bat install name 

It gives me a window error nonalpah45 only option is click ok

Once click ok   Failed installing 'tomcat-ItActionSystem' service


Please help


-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2008 11:27 AM
To: Tomcat Users List
Subject: RE: tomcat as services

 From: Frank Uccello [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat as services

 Ok this maybe a stupid question to ask but where do I download the 
 service.bat file

Repeating what I already said (emphasis added):

 Rather than mucking around with all that, download and install the 
 **.zip version**

 - Chuck


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

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


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



RE: tomcat as services

2008-10-15 Thread Frank Uccello
Ok I tried with a - now its tomcatItActionSystems

I do not get alpha error but still get 

 Failed installing 'tomcatItActionSystem' service

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2008 12:12 PM
To: Tomcat Users List
Subject: RE: tomcat as services

 From: Frank Uccello [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat as services

 It gives me a window error nonalpah45 only option is click ok
 Once click ok   Failed installing 'tomcat-ItActionSystem' service

The error message is self-explanatory: you have a non-alphabetic
character in the service name.

 - Chuck


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

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


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



RE: tomcat as services

2008-10-15 Thread Frank Uccello
I had change the batch file but I got the service to work thanks 

 

-Original Message-
From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2008 12:12 PM
To: Tomcat Users List
Subject: RE: tomcat as services

 From: Frank Uccello [mailto:[EMAIL PROTECTED]
 Subject: RE: tomcat as services

 It gives me a window error nonalpah45 only option is click ok
 Once click ok   Failed installing 'tomcat-ItActionSystem' service

The error message is self-explanatory: you have a non-alphabetic
character in the service name.

 - Chuck


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

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


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



tomcat error

2008-10-15 Thread Frank Uccello
I have my tomcat start and everything look fine but I can not reach
localhost:8057/it/servlet


The tomcat log states




SEVERE: Invalid message received with signature 18245


Any see this before I can not seem to find anything via google





  1   2   3   >