Re: OT if/else or not if/else

2016-04-22 Thread Baran Topal
if else i prefer. Multiple ifs sounds like a political programming and you
are not sure what you are doing.

22 Nisan 2016 Cuma tarihinde, Leon Rosenberg 
yazdı:

> Hi guys,
>
> this is completely off-topic ;-)
>
> I was wondering if using if/else is not actually slowing down your code.
> Lets say I have three possible conditions, A, B and C, which are exclusive.
> My native approach would be:
> if (A){...}
> if (B){...}
> if (C){...}
>
> now some people would 'optimize' it as
> if (A){ ...} else if (B) {} else if (C) { }
> and I think in the world of single-cpu computers this optimization could
> work.
>
> But what is now, given that compilers can optimize stuff like this and tell
> the processor to calculate all 3 branches simultaneously, which is not
> possible for ifelse.
>
> Which one would you choose?
> Equally important, which one do you think is more readable? I would say if
> else is hard to read, but this can be just personal impression.
>
> regards
> Leon
>


Re: URL rewrite in tomcat 7

2015-02-25 Thread Baran Topal
Hi;

Tuckey plugin did the trick. Thanks for the help.

Br.

2015-02-24 20:30 GMT+01:00 André Warnier a...@ice-sa.com:

 Baran Topal wrote:

 Hi;

 Thanks for the swift replies. I am not allowed to tuckey's rewrite (at
 least until i cannot find a normative Tomcat solution).

 I looked for the documentation for 7.0. and Alias under Host is my
 solution
 however, after rewriting, i bookmark the page and want to reach via
 bookmark but it fails when I directly go via bookmark. What should be the
 remedy?



 it fails is not very helpful as an error description (and neither is the
 rest of what you are writing above a very understandable description of
 what you are doing)

 I suggest that you get one of the browser plugins which shows the exact
 exchanges between browser and server (HttpFox, LiveHttpheaders, Fiddler2 or
 similar), try your thing again and then look at exactly what happens back
 and forth.
 Any of those plugins allows you to save what they track to a text file,
 which you can then copy/paste here.
 And maybe just looking at it will show you why whatever you are trying
 doesn't work.





 Br.

 2015-02-07 15:40 GMT+01:00 Caldarale, Charles R 
 chuck.caldar...@unisys.com
 :

  From: Baran Topal [mailto:jazziiil...@gmail.com]
 Subject: URL rewrite in tomcat 7
 I have a tomcat 7 instance in which i need use alias for my domain.
 Essentially, the alias
 http://test1/ would replace the http:/myaddress.com and its sub

 addresses

  It is not a redirect, rather rewrite of the URL.
 How do i do this? (modifying context.xml or?) Can you help me?

 Take a look at the usual rewrite filter:
 http://tuckey.org/urlrewrite/

  - 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





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




Re: URL rewrite in tomcat 7

2015-02-24 Thread Baran Topal
Hi;

Thanks for the swift replies. I am not allowed to tuckey's rewrite (at
least until i cannot find a normative Tomcat solution).

I looked for the documentation for 7.0. and Alias under Host is my solution
however, after rewriting, i bookmark the page and want to reach via
bookmark but it fails when I directly go via bookmark. What should be the
remedy?

Br.

2015-02-07 15:40 GMT+01:00 Caldarale, Charles R chuck.caldar...@unisys.com
:

  From: Baran Topal [mailto:jazziiil...@gmail.com]
  Subject: URL rewrite in tomcat 7

  I have a tomcat 7 instance in which i need use alias for my domain.

  Essentially, the alias
  http://test1/ would replace the http:/myaddress.com and its sub
 addresses

  It is not a redirect, rather rewrite of the URL.

  How do i do this? (modifying context.xml or?) Can you help me?

 Take a look at the usual rewrite filter:
 http://tuckey.org/urlrewrite/

  - 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




URL rewrite in tomcat 7

2015-02-07 Thread Baran Topal
Hi

I have a tomcat 7 instance in which i need use alias for my domain.
Essentially, the alias

http://test1/ would replace the http:/myaddress.com and its sub addresses

It is not a redirect, rather rewrite of the URL.

How do i do this? (modifying context.xml or?) Can you help me?

BR.
baran


SAML exception in tomcat

2014-10-28 Thread Baran Topal
Hi; I end up with this in tomcat for SAML
[code]
String index out of range: 889
java.lang.StringIndexOutOfBoundsException: String index out of range: 889
at java.lang.String.charAt(Unknown Source)
at waffle.util.Base64.decode(Unknown Source)
at
com.test.baran.user.web.SAMLFilter.validateSignature(SAMLFilter.java:404)
at com.test.baran.
user.web.SAMLFilter.decodeAndValidateSamlResponse(SAMLFilter.java:344)
at com.test.baran.user.web.SAMLFilter.doFilter(SAMLFilter.java:128)
[/code]

My server.xml is as follows:
[code]
 Connector port=443 address=192.168.1.123
   protocol=org.apache.coyote.http11.Http11AprProtocol
   URIEncoding=UTF-8 executor=tomcatThreadPool
   compression=on
compressableMimeType=text/html,text/xml,text/plain,text/javascript,text/css
   SSLEnabled=true
   scheme=https
   secure=true
   SSLCertificateFile=D:\tomcat\conf\my.crt
   SSLCertificateKeyFile=D:\tomcat\conf\my.key
   maxHttpHeaderSize=32768 /
[/code]

How to fix this in tomcat?


Re: Tomcat 6 SSL issue

2014-10-16 Thread Baran Topal
Thanks for prompt response. I simply missed your mail.

I did the new CSR with the new private key.

You could also add protocol attribute to force JSSE connector (BIO or
NIO), to prevent connector auto-selection.
1) What is the protocol attribute and where to add it?
2) I think those old cer and crt is not applicable anymore. Correct?
3) So, what is the fundamental difference in cer and crt? I received cer as
my friend told me it's the intermediate one, whereas crt is not.
4) What would be aliases for cer and crt? Any alias is fine? or it must
match with the alias for private key?

Regards.


2014-10-13 10:55 GMT+02:00 Ognjen Blagojevic ognjen.d.blagoje...@gmail.com
:

 Baran,

 On 10.10.2014 21:06, Baran Topal wrote:

 Then I received 2 files from the certificate authority, abc.com.cer
 and abc.om.p7b


 What certificates do those files contain?


  Connector port=443
 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75 enableLookups=false
 disableUploadTimeout=true acceptCount=100
 scheme=https secure=true SSLEnabled=true
 clientAuth=false sslProtocol=TLS
 keyAlias=server keystoreFile=/path/to/JKSfile/your_site_name.jks
 keystorePass=your_keystore_password /


 Attribute maxSpareThreads is not listed in docs:

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

 You could also add protocol attribute to force JSSE connector (BIO or
 NIO), to prevent connector auto-selection.


  To clean the things up, I want to delete my keystore but is it fine if
 I generate the key with another alias, e.g. tomcat as in the tomcat
 documentation?


 Private key necessary for encryption is in your keystore. If you delete
 your private key, and generate new key pair in new keystore your signed
 certificate becomes worthless. You will need to ask your CA (and, possibly,
 pay) for another certificate.

 If you just want to rename key in keystore, use keytool -changealias.


  2) I have the files, cer and crt (p7b), so is fine or should I need stg
 extra?


 You would need complete certificate chain in order to set up HTTPS. You
 need to check do you have a complete chain in cer file or not.


  3) Is the order of import important?`first crt then cer?


 If you have the complete chain in cer file, then you will just import the
 cer file.


  4) What are the correct import commands? Should I trust tomcat
 documentation or authorities documentation?


 In what parts the two are different? You should use keytool -importcert
 command.

 -Ognjen

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




Tomcat 6 SSL issue

2014-10-10 Thread Baran Topal
Hi;

I have created a keystore and CSR for SSL with the following command:

%JAVA_HOME%\bin\keytool -genkey -alias server -keyalg RSA \
  -keystore \path\to\my\keystore


Then I received 2 files from the certificate authority, abc.com.cer
and abc.om.p7b


From this point, no matter what I have done, i couldn't make the SSL
work on my Tomcat 6.

I followed the steps under,
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html

but I failed to import p7b so I convert it crt file and successfully import it.

My application for http, is using 55012 and I want to use the port 443
for https.

Following is my server.xml

Connector port=443
maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25
maxSpareThreads=75 enableLookups=false
disableUploadTimeout=true acceptCount=100
scheme=https secure=true SSLEnabled=true
clientAuth=false sslProtocol=TLS
keyAlias=server keystoreFile=/path/to/JKSfile/your_site_name.jks
keystorePass=your_keystore_password /


Now my questions are


1) my keystore alias is server and i send my csr after this.

To clean the things up, I want to delete my keystore but is it fine if
I generate the key with another alias, e.g. tomcat as in the tomcat
documentation?

2) I have the files, cer and crt (p7b), so is fine or should I need stg extra?

3) Is the order of import important?`first crt then cer?

4) What are the correct import commands? Should I trust tomcat
documentation or authorities documentation?


My tomcat version is as follows:


Server version: Apache Tomcat/6.0.36
Server built:   Oct 16 2012 09:59:09
Server number:  6.0.36.0
OS Name:Windows 7
OS Version: 6.1
Architecture:   amd64
JVM Version:1.7.0_21-b11
JVM Vendor: Oracle Corporation


Regards.


Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-25 Thread Baran Topal
Hi;

Thanks for your interest. Yes, I realized context idea once i read the
documentation.I must admit the hierarchy is weird but it's a custom
installer of a site that installs on Windows machine. There is no Tomcat
manager console in place (at least I didn't see/enable).

The hierarchy is as this:

programnameunderCdriveProgramFilestomcat/webapps/ROOT/WEB-INF and  under
WEB-INF, there is jsp folder in which it covers the jsp pages of admin that
i want to filter out for a particular IP.

I think, there is no concern to make the change in server.xml because there
will be absolutely one web application under this Tomcat. So, the change
can be application-wide i guess.

For just testing, within the given valve above, i can filter out index.jsp
which is in the path,
programnameunderCdriveProgramFiles/tomcat/webapps/ROOT/ and i can filter
that particular file successfully but fail to filter
programnameunderCdriveProgramFiles/tomcat/webapps/ROOT/WEB-INF/jsp/admin
folder.

Thanks for your help.

Regards.

2014-09-25 14:52 GMT+02:00 Christopher Schultz ch...@christopherschultz.net
:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA256

 Baran,

 On 9/24/14 5:04 PM, Baran Topal wrote:
  Hi, following works under server.xml
 
  Context path=/index.jsp reloadable=true Valve
  className=org.apache.catalina.valves.RemoteAddrValve
  deny=127\.0\.0\.1/ /Context

 Yes, it will work, but declaring a Context in server.xml is a Bad
 Idea. It's better to use a META-INF/context.xml file, or, even better,
 a file in CATALINA_BASE/conf/[engine]/[host]/[webapp].xml

  But, i need to hide my admin directory containing admin.jsp pages
  (more than 1 jsp page)

 The above configuration will deny all users from localhost (but only
 using IPv4) for all URL patterns matching your /index.jsp context (why
 in the world would you have a context path /index.jsp?).

 Something tells me you are seriously misconfiguring this server.

  My admin directory is in WEB-INF and WEB-INF is in the same level
  with /index.jsp but simply, not working when i ref. the context as
  /WEB-INF/admin

 No remote client should be able to directly access anything in
 /WEB-INF/ unless you have really done some damage to your server.

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

 iQIcBAEBCAAGBQJUJA/9AAoJEBzwKT+lPKRYeTYP/ArKK6QUQvbLTpIOWn4Pg4Ha
 Uys9JOuv0nCLHXj3B7Y21vRwc0fuRvfdjN4J0VML+K0kWUqt4Tp8AkDBTSG7yD2P
 tIsUXUUlcOpa1p998d3xtdkLcHQpTkn7nhpcnJwcOQqUUFesKwP9HYNBQI5m5pKX
 s/IcX1cj0AV2rXMjOBK1RWU7WZPQGUVR2RRNtVS0Nc4w9RlYyjQjA+hBxpUFG1HS
 91OdkcX7sJxerlsIAfewTdYZ1oVd/3KGFlj+zSFcv9E17sOdpvBy+HuFdU9kGkQF
 QDCBagmoFNrZmzPktNC0r5BXn1RDOdZ2wAsI9D+ZQyTTG4CPdXZvJRflRIX1QWZe
 jjj8ZhlAH2nrLuKHNnwqWY9KK9GHc7+zs3H6hfe7JuJ/i8Z5u2lwrfK7DpquyUK+
 gcircWL0dEmosmvNWfm3/G+MvyudgUrDihgiuYZY2s1g5CWRr48TAkhEadr4cdOb
 OOMcVTQOyzPLkeNA+5vBBDDEn3dzUq42Semds3HNByumM7Z7/DkALFQ0FYLxk6wd
 spjeYFZP1IFjq5R8Ipdr0NngCmoVzqSnBowYgayvBfIO8P89u6i1Q0KjsL1SVefx
 RmpJhevt/TSPcHurQpM/4tSQnQQqOXorTkAnKxw6csDiaY7IDEtBnTti2dIMe2Ny
 yOF8Ee0Tn2XgILN24ogQ
 =JV6J
 -END PGP SIGNATURE-

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




ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi;

Recently joined, first mail

I have the following filtering which works fine on Tomcat 7 but not on
Tomcat 6... It gives just 404.

filter filter-nameRemote Address Filter/filter-name
filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-class
init-param param-nameallow/param-name
param-value127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1/param-value
/init-param /filter filter-mapping filter-nameRemote Address
Filter/filter-name url-pattern/administrator/*/url-pattern
/filter-mapping

How can I apply this filter on Tomcat 6.

Details of Tomcat 6
Server version: Apache Tomcat/6.0.36
Server built:   Oct 16 2012 09:59:09
Server number:  6.0.36.0
OS Name:Windows 7
OS Version: 6.1
Architecture:   amd64
JVM Version:1.7.0_21-b11
JVM Vendor: Oracle Corporation

Regards.


Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi Andre and Chris;

I understand that Tomcat 6 has valve and Chris, means of context, I have
the feeling that this context.xml may be relevant but i have seen in some
links, conf/server.xml is the place to manipulate.

And the thing is that i didn't see any selective setting to filter the IP
for particular page group, namely, in my administrator path. This is the
example that i found out. Valve
className=org.apache.catalina.valves.RemoteAddrValve
allow=133.133.133.133|127.d+.d+.d+|::1|0:0:0:0:0:0:0:1 /

Regards.

P.S. tomcat mailing list is blocking this mail (treats as spam, why would
it be?)

2014-09-24 18:16 GMT+02:00 André Warnier a...@ice-sa.com:

 Baran Topal wrote:

 Hi;

 Recently joined, first mail

 I have the following filtering which works fine on Tomcat 7 but not on
 Tomcat 6... It gives just 404.

 filter filter-nameRemote Address Filter/filter-name
 filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-class
 init-param param-nameallow/param-name
 param-value127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1/param-value
 /init-param /filter filter-mapping filter-nameRemote Address
 Filter/filter-name url-pattern/administrator/*/url-pattern
 /filter-mapping

 How can I apply this filter on Tomcat 6.

 Details of Tomcat 6
 Server version: Apache Tomcat/6.0.36
 Server built:   Oct 16 2012 09:59:09
 Server number:  6.0.36.0
 OS Name:Windows 7
 OS Version: 6.1
 Architecture:   amd64
 JVM Version:1.7.0_21-b11
 JVM Vendor: Oracle Corporation

 Regards.


 Hi. I had a quick look at the on-line documentation for Tomcat 6, and I
 don't see a remote address *filter* there.  Tomcat 7 has it, but Tomcat 6
 does not seem to have it.
 Tomcat 6 has a Valve for that.

 https://tomcat.apache.org/tomcat-6.0-doc/config/filter.html
 https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html




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




Re: ipfiltering in Tomcat 6 fails, works fine on Tomcat 7

2014-09-24 Thread Baran Topal
Hi, following works under server.xml

   Context path=/index.jsp reloadable=true
Valve className=org.apache.catalina.valves.RemoteAddrValve
deny=127\.0\.0\.1/
/Context

But, i need to hide my admin directory containing admin.jsp pages (more
than 1 jsp page)

My admin directory is in WEB-INF and WEB-INF is in the same level with
/index.jsp but simply, not working when i ref. the context as /WEB-INF/admin


24 Eylül 2014 Çarşamba tarihinde, Baran Topal jazziiil...@gmail.com yazdı:

 Hi Andre and Chris;

 I understand that Tomcat 6 has valve and Chris, means of context, I have
 the feeling that this context.xml may be relevant but i have seen in some
 links, conf/server.xml is the place to manipulate.

 And the thing is that i didn't see any selective setting to filter the IP
 for particular page group, namely, in my administrator path. This is the
 example that i found out. Valve
 className=org.apache.catalina.valves.RemoteAddrValve
 allow=133.133.133.133|127.d+.d+.d+|::1|0:0:0:0:0:0:0:1 /

 Regards.

 P.S. tomcat mailing list is blocking this mail (treats as spam, why would
 it be?)

 2014-09-24 18:16 GMT+02:00 André Warnier a...@ice-sa.com
 javascript:_e(%7B%7D,'cvml','a...@ice-sa.com');:

 Baran Topal wrote:

 Hi;

 Recently joined, first mail

 I have the following filtering which works fine on Tomcat 7 but not on
 Tomcat 6... It gives just 404.

 filter filter-nameRemote Address Filter/filter-name
 filter-classorg.apache.catalina.filters.RemoteAddrFilter/filter-
 class
 init-param param-nameallow/param-name
 param-value127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1/param-value
 /init-param /filter filter-mapping filter-nameRemote Address
 Filter/filter-name url-pattern/administrator/*/url-pattern
 /filter-mapping

 How can I apply this filter on Tomcat 6.

 Details of Tomcat 6
 Server version: Apache Tomcat/6.0.36
 Server built:   Oct 16 2012 09:59:09
 Server number:  6.0.36.0
 OS Name:Windows 7
 OS Version: 6.1
 Architecture:   amd64
 JVM Version:1.7.0_21-b11
 JVM Vendor: Oracle Corporation

 Regards.


 Hi. I had a quick look at the on-line documentation for Tomcat 6, and I
 don't see a remote address *filter* there.  Tomcat 7 has it, but Tomcat 6
 does not seem to have it.
 Tomcat 6 has a Valve for that.

 https://tomcat.apache.org/tomcat-6.0-doc/config/filter.html
 https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html




 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 javascript:_e(%7B%7D,'cvml','users-unsubscr...@tomcat.apache.org');
 For additional commands, e-mail: users-h...@tomcat.apache.org
 javascript:_e(%7B%7D,'cvml','users-h...@tomcat.apache.org');





Adding tomcat 7 as server in IBM RAD. But wait, there is no such option in the Server listing. How to fix this?

2012-03-02 Thread baran topal
Hi there;

I am trying to add  tomcat 7 as server in IBM RAD 7. But wait, there is no
such option in the Server listing (up until 5.5). How to fix this? How can
I add the new Tomcat servers to the eclipse based IBM RAD 7?

Attached.

Regards.

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

Re: Adding tomcat 7 as server in IBM RAD. But wait, there is no such option in the Server listing. How to fix this?

2012-03-02 Thread baran topal
I found a link implying that 7 is not supported. There is a support until
5.5.

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=%2Fcom.ibm.rad.nav.doc%2Ftopics%2Frswsuprad700.html


Yet, I guess, there must be a legacy configuration for this. But couldn't
find a way..

2012/3/2 André Warnier a...@ice-sa.com

 baran topal wrote:

 Hi there;

 I am trying to add  tomcat 7 as server in IBM RAD 7. But wait, there is no
 such option in the Server listing (up until 5.5). How to fix this? How can
 I add the new Tomcat servers to the eclipse based IBM RAD 7?

  Naive question : have you asked IBM ?

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




Re: Adding tomcat 7 as server in IBM RAD. But wait, there is no such option in the Server listing. How to fix this?

2012-03-02 Thread baran topal
You are right. OK, let me check them.

Regards.

2012/3/2 Pid p...@pidster.com

 On 02/03/2012 14:54, baran topal wrote:
  Hi there;
 
  I am trying to add  tomcat 7 as server in IBM RAD 7. But wait, there is
  no such option in the Server listing (up until 5.5). How to fix this?
  How can I add the new Tomcat servers to the eclipse based IBM RAD 7?

 I'm not entirely certain you're asking the right people.
 Perhaps Eclipse or IBM would be able to help?


  Attached.

 No attachment.  The list strips attachments.


 p


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


 --

 [key:62590808]




Re: SSLSession invalidate

2011-09-06 Thread baran topal
Greetings from Stockholm, this is Baran Topal.

As i was drinking my Guiness, i find your question interesting :)

Here you go:

%
HttpSession s = request.getSession(false);
if (s != null) s.invalidate();
%

Inform me whether this is working or not :)

Regards.

On 6 sep 2011, at 22:09, Chema demablo...@gmail.com wrote:

 how can access the SSLSession in a jsp or a servlet
 to be able to invalidate it.

 Sorry, but

 is there any difference between to  invalidate a HTTP Session and a 
 SSLSession ?

 -
 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: Asynchronous servlets + Tomcat + mod_jk

2011-06-07 Thread baran topal
Sent from my iPhone

On 6 jun 2011, at 22:50, André Warnier a...@ice-sa.com wrote:

 Seth Lenzi wrote:
 Anyone here have any experience with asynchronous servlets under a Tomcat 
 that's linked to Apache via mod_jk?  I have an asynchronous servlet that's 
 working nicely when accessed directly from Tomcat, but, when I access it by 
 going through Apache and mod_jk the ServletRequest.startAsync() function 
 call throws an IllegalStateException saying the feature is not supported.
 You do not give a clue about which version of Tomcat you are using, but this 
 may provide an explanation : http://tomcat.apache.org/tomcat-7.0-doc/aio.html


 -
 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



how to: tomcat starts then stops after some seconds...

2007-05-10 Thread baran topal

i was using tomcat two days ago and now i cannot...i guess i uninstall then
reinstall...tomcat starts then stops after some seconds...tomcat 5 i have
used by i tried 6 too to get rid of the problem...help me...


tomcat starts and immediately stops...why????

2007-05-10 Thread baran topal

tomcat starts and immediately(5 secs) stops...i uninstall and reinstall
it...and update it to tomcat 6...problem continues and no error message is
displayed only standart page not displayed is seemed...


Re: tomcat starts and immediately stops...why????

2007-05-10 Thread baran topal

i use 2100 in my senior project presentation as port...8080 for oracle
XE...no problem occured for 5 months but now...i can't...and no error
messages i have...he starts and then stops..in fact the starting bar fills
upto half then diseappears...thank god while my senior project he didn't
fail me...:) but for user manual for my program i need him revive...i know
catalina but which file exactly i must control for log?

2007/5/11, David Smith [EMAIL PROTECTED]:


baran topal wrote:
 tomcat starts and immediately(5 secs) stops...i uninstall and reinstall
 it...and update it to tomcat 6...problem continues and no error
 message is
 displayed only standart page not displayed is seemed...

Ahh.. but you should consult the all knowing logs for details.  See the
log directory in your tomcat install directory  You should see one named
catalina.out which usually consumes output normally headed for standard
out or standard error.  I'm guessing a port conflict.

--David

-
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 starts and immediately stops...why????

2007-05-10 Thread baran topal

well i am using windows xp and i start regularly:)) adn well my team mate
says he has some problem he says command prompt he uses services.msc and
open from sevies i try the same way but apache fails again after 5
seconds...

2007/5/11, David Smith [EMAIL PROTECTED]:


Ok... let's start this from the top.  What OS is this being run on and
how are you starting it?  That'll clue me in on the startup script
method used which should have some influence.

--David

baran topal wrote:
 i use 2100 in my senior project presentation as port...8080 for oracle
 XE...no problem occured for 5 months but now...i can't...and no error
 messages i have...he starts and then stops..in fact the starting bar
 fills
 upto half then diseappears...thank god while my senior project he didn't
 fail me...:) but for user manual for my program i need him revive...i
 know
 catalina but which file exactly i must control for log?

 2007/5/11, David Smith [EMAIL PROTECTED]:

 baran topal wrote:
  tomcat starts and immediately(5 secs) stops...i uninstall and
 reinstall
  it...and update it to tomcat 6...problem continues and no error
  message is
  displayed only standart page not displayed is seemed...
 
 Ahh.. but you should consult the all knowing logs for details.  See the
 log directory in your tomcat install directory  You should see one
named
 catalina.out which usually consumes output normally headed for standard
 out or standard error.  I'm guessing a port conflict.

 --David

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





--
David Smith
Network Operations Supervisor
Department of Entomology
Cornell University
2132 Comstock Hall
Ithaca, NY 14853
Phone: (607) 255-9571
Fax: (607) 255-0940


-
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 starts and immediately stops...why????

2007-05-10 Thread baran topal

not some... same... soorry for english here 6 a.m. i have to sleep now:)

2007/5/11, baran topal [EMAIL PROTECTED]:


well i am using windows xp and i start regularly:)) adn well my team mate
says he has some problem he says command prompt he uses services.msc and
open from sevies i try the same way but apache fails again after 5
seconds...

2007/5/11, David Smith [EMAIL PROTECTED]:

 Ok... let's start this from the top.  What OS is this being run on and
 how are you starting it?  That'll clue me in on the startup script
 method used which should have some influence.

 --David

 baran topal wrote:
  i use 2100 in my senior project presentation as port...8080 for oracle
  XE...no problem occured for 5 months but now...i can't...and no error
  messages i have...he starts and then stops..in fact the starting bar
  fills
  upto half then diseappears...thank god while my senior project he
 didn't
  fail me...:) but for user manual for my program i need him revive...i
  know
  catalina but which file exactly i must control for log?
 
  2007/5/11, David Smith [EMAIL PROTECTED]:
 
  baran topal wrote:
   tomcat starts and immediately(5 secs) stops...i uninstall and
  reinstall
   it...and update it to tomcat 6...problem continues and no error
   message is
   displayed only standart page not displayed is seemed...
  
  Ahh.. but you should consult the all knowing logs for details.  See
 the
  log directory in your tomcat install directory  You should see one
 named
  catalina.out which usually consumes output normally headed for
 standard
  out or standard error.  I'm guessing a port conflict.
 
  --David
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 --
 David Smith
 Network Operations Supervisor
 Department of Entomology
 Cornell University
 2132 Comstock Hall
 Ithaca, NY 14853
 Phone: (607) 255-9571
 Fax: (607) 255-0940


 -
 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 starts and immediately stops...why????

2007-05-10 Thread baran topal

hey if u use msn...add me [EMAIL PROTECTED] but don't mail to this address
ibarelt save it...a pal from department hacked it...he was jealous of me i
guess...:(

2007/5/11, baran topal [EMAIL PROTECTED]:


not some... same... soorry for english here 6 a.m. i have to sleep now:)

2007/5/11, baran topal [EMAIL PROTECTED]:

 well i am using windows xp and i start regularly:)) adn well my team
 mate says he has some problem he says command prompt he uses
 services.msc and open from sevies i try the same way but apache fails
 again after 5 seconds...

 2007/5/11, David Smith [EMAIL PROTECTED]:
 
  Ok... let's start this from the top.  What OS is this being run on and
  how are you starting it?  That'll clue me in on the startup script
  method used which should have some influence.
 
  --David
 
  baran topal wrote:
   i use 2100 in my senior project presentation as port...8080 for
  oracle
   XE...no problem occured for 5 months but now...i can't...and no
  error
   messages i have...he starts and then stops..in fact the starting bar
   fills
   upto half then diseappears...thank god while my senior project he
  didn't
   fail me...:) but for user manual for my program i need him
  revive...i
   know
   catalina but which file exactly i must control for log?
  
   2007/5/11, David Smith  [EMAIL PROTECTED]:
  
   baran topal wrote:
tomcat starts and immediately(5 secs) stops...i uninstall and
   reinstall
it...and update it to tomcat 6...problem continues and no error
message is
displayed only standart page not displayed is seemed...
   
   Ahh.. but you should consult the all knowing logs for details.  See
  the
   log directory in your tomcat install directory  You should see one
  named
   catalina.out which usually consumes output normally headed for
  standard
   out or standard error.  I'm guessing a port conflict.
  
   --David
  
  
  -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
  --
  David Smith
  Network Operations Supervisor
  Department of Entomology
  Cornell University
  2132 Comstock Hall
  Ithaca, NY 14853
  Phone: (607) 255-9571
  Fax: (607) 255-0940
 
 
  -
  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 starts and immediately stops...why????

2007-05-10 Thread baran topal

i install it from scratch...and i will copy my webapps and i will copy
common/lib of mine to the original one..i must i have jars i have
developped...i am now sending the logs as a zipped file...

2007/5/11, baran topal [EMAIL PROTECTED]:


hey if u use msn...add me [EMAIL PROTECTED] but don't mail to this address
ibarelt save it...a pal from department hacked it...he was jealous of me i
guess...:(

2007/5/11, baran topal [EMAIL PROTECTED]:

 not some... same... soorry for english here 6 a.m. i have to sleep now:)

 2007/5/11, baran topal [EMAIL PROTECTED]:
 
  well i am using windows xp and i start regularly:)) adn well my team
  mate says he has some problem he says command prompt he uses
  services.msc and open from sevies i try the same way but apache fails
  again after 5 seconds...
 
  2007/5/11, David Smith [EMAIL PROTECTED]:
  
   Ok... let's start this from the top.  What OS is this being run on
   and
   how are you starting it?  That'll clue me in on the startup script
   method used which should have some influence.
  
   --David
  
   baran topal wrote:
i use 2100 in my senior project presentation as port...8080 for
   oracle
XE...no problem occured for 5 months but now...i can't...and no
   error
messages i have...he starts and then stops..in fact the starting
   bar
fills
upto half then diseappears...thank god while my senior project he
   didn't
fail me...:) but for user manual for my program i need him
   revive...i
know
catalina but which file exactly i must control for log?
   
2007/5/11, David Smith  [EMAIL PROTECTED]:
   
baran topal wrote:
 tomcat starts and immediately(5 secs) stops...i uninstall and
reinstall
 it...and update it to tomcat 6...problem continues and no error
  
 message is
 displayed only standart page not displayed is seemed...

Ahh.. but you should consult the all knowing logs for
   details.  See the
log directory in your tomcat install directory  You should see
   one named
catalina.out which usually consumes output normally headed for
   standard
out or standard error.  I'm guessing a port conflict.
   
--David
   
   
   -
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
  
   --
   David Smith
   Network Operations Supervisor
   Department of Entomology
   Cornell University
   2132 Comstock Hall
   Ithaca, NY 14853
   Phone: (607) 255-9571
   Fax: (607) 255-0940
  
  
  
   -
   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]