Re: Thread Pool

2007-06-11 Thread Dima Retov
May be your servlet should close connection after data is sent.

and/or your program should close connection with server before second
request.

If your program connection keeps open because of keep alive then
second request is sent via old connection that is assigned to servlet
that have not completed its job.




Monday, June 11, 2007, 9:00:36 PM, you wrote:

SH> I am using tomcat version:5.5.20 java version:1.6.0-b105 os version:
SH> intel solaris 5.10
SH> scenario is: my java program call a servlet which return to my java
SH> program using sendData and then goes into a loop to perform other 
SH> functions.  Now after i get the control back in my java program i try to
SH> call another servlet on the same tomcat, but it waits until the previous
SH> servlet call (which was in a loop to perform other functions) is done.
SH> I have these settings in my servler.xml for thread pooling: 
SH> maxThreads="1000" minSpareThreads="100" maxSpareThreads="200" 
SH> acceptCount="500".  Can somebody please how to fix this problem ?



SH> This electronic mail message and any attachments may contain
SH> information which is privileged, sensitive and/or otherwise exempt
SH> from disclosure under applicable law. The information is intended
SH> only for the use of the individual or entity named as the
SH> addressee above. If you are not the intended recipient, you are
SH> hereby notified that any disclosure, copying, distribution
SH> (electronic or otherwise) or forwarding of, or the taking of any
SH> action in reliance on, the contents of this transmission is
SH> strictly prohibited. If you have received this electronic
SH> transmission in error, please notify us by telephone, facsimile,
SH> or e-mail as noted above to arrange for the return of any
SH> electronic mail or attachments. Thank You.



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




-- 
Best regards,
 Dimamailto:[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]



class loading framework

2007-06-10 Thread Dima Retov
Hello,

I need server to listen tcp port and parse request. (not HTTP
protocol)

Is there tomcats class loader framework available as separate project?

I have not found in Commons.

-- 
Best regards,
 Dima  mailto:[EMAIL PROTECTED]



-
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: wildcard certs in tomcat

2007-03-31 Thread Dima Retov
Brian,

You should create CSR and KEY for *.yourdomain.com.

Submit CSR to CA

CA will send you CRT and may be CAcert.

You should install KEY, CRT and (if CA sent you CAcert)

Tomcat may work with 2 types of cert.

Java (keytool) certs. (tomcat without native connector) - these certs
are not tomcat specific. They are used by any Java app.

Openssl certs. (tomcat with native connector) These certs are similar to
Apache + Openssl or Apache + mod_ssl

Cheers,




Saturday, March 31, 2007, 1:25:55 AM, you wrote:

BL> Having problems with using a wildcard cert with Tomcat.  Same
BL> cert/key/bundle trio works in apache in the way that I expect it,
BL> but any docs I've found for Tomcat don't yield me a working
BL> system.  We lost a guy recently that was the web-min, so I'm a
BL> little out of my typical skillset in this venture.  All I've found
BL> online is half a billion people who are having problems doing it,
BL> but no actual solutions.

BL> And yes, I've read:
BL> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

BL> I'm taking from it that I need to import with the server's
BL> csr, which means I need to sign the server's csr with the key
BL> associated with the wildcard cert.  Sounds great, but isn't
BL> working, no matter how I try it.  The word "wildcard" isn't even
BL> on the http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html page.

BL> NetSol doesn't even have advice on the issue; the support
BL> there said they could help me if I was using IIS, BEA, or various
BL> other things, but I guess Tomcat is ummm...too obscure for them,
BL> somehow.  Doesn't Tomcat have the highest market share?  Whatever,
BL> unrelated to the problem, I suppose.

BL> I'm happy to "RTFM" - but I can't find it in TFM.  And the
BL> web is too flooded with failed attempts to find the solutions.

BL> Brian L

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




-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]



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



Re: How to request a client Certificate Authentication ?

2007-03-06 Thread Dima Retov
Hi,

SSL stuff happens before any actual HTTP data is sent.
It not possible to see request's URL at this stage.

Dima

Tuesday, March 6, 2007, 3:29:15 PM, you wrote:

JAA> Hello,
 
JAA> I try to implement a custom client certificate authentication, that does
JAA> some complicated LDAP-lookups in the background and gives an authenticated
JAA> value with request.getRemoteUser() back to the applications.
 
JAA> Peeking through the jcifs source, I chose to implement a filter. This
JAA> works,but I'd like to limit the areas where the tomcat-SSL Connector asks
JAA> for a SSL-Clientauthentication.
 
JAA> I configured the connector with clientAuth="false" and tried to force SSL
JAA> client authentication within the applications web.xml with:

JAA>
JAA>

JAA> Zugriffsschutz
JAA>/secure/*
JAA>
JAA>
JAA> CONFIDENTIAL
JAA>
JAA>

JAA>
JAA>CLIENT-CERT
JAA>
 
JAA> But this does not make the connector ask for a client certificate. How do I
JAA> make the connector ask for it? (clientAuth="true" in the connectors
JAA> configuration works, but limits the access of all pages to users that have
JAA> client certs).

JAA> I'm using tomcat 5.5.20.

JAA> Regards,
JAA> Alexander Jung



-- 
Best regards,
 Dimamailto:[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]



Posting Xml

2007-02-21 Thread Dima Retov
Hello,

Is that good idea to POST XML data to Tomcat?

I wish to make HTTP request to servlet in Tomcat.

Method POST
Content Type: text/xml

Content would be non encoded XML file.

Is it good idea in general. My tomcat handles such requests now.
Is it expected that it will work in future?

Is there any limitations? e.g. request.getParameter() - should
parse GET parameters only.

-- 
Best regards,
 Dima  mailto:[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]



Small CMS

2007-01-07 Thread Dima Retov

Please, advise small CMS for tomcat.

I need smallest possible CMS with set of skins to rapidly setup
several sites.

I tried several CMS but they are too big. 30MB war file.

It would be great if they would use internal databases or just store
info in files.

Thank You!

-- 
Best regards,
 Dima  mailto:[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: [OT] Will you install VISTA?

2006-12-30 Thread Dima Retov
Linux has chance to become top platform for watching and coping pirate HD-DVD :)
I guess there would be Ubuntu Media Edition soon or Mubuntu.

Happy New Year!

Saturday, December 30, 2006, 4:02:48 PM, you wrote:

LR> Hi,

LR> I don't want to start a flame war on microsoft or something, but I
LR> stubbled on this article and was quite shocked what vista really is...
LR> Maybe you will be shocked as well, maybe you don't care, but it's
LR> worth reading anyway :-)

LR> http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt

LR> regards and happy new year!

LR> Leon

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




-- 
Best regards,
 Dimamailto:[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: Question about http connections

2006-12-22 Thread Dima Retov
Is it connection between apache and tomcat?
May be it is in keepalive connection to reuse existent connections?

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]

Friday, December 22, 2006, 7:29:54 PM, you wrote:

VC> Hello there! We have a Jboss 4.0.1 server, and we're experiencing a
VC> strange connector behavior (might be our app as well). We check the
VC> connections on the connector 8009 (we use a mod_jk behind jboss). And
VC> we have some requests on Service status that have over 14.000 seconds.
VC> We even killed the remote user browser (its an internal user from our
VC> corporation) but the connection is still used, it takes a few minutes
VC> to it to die. We have this behavior in many other requests in
VC> different parts of the system, and many with over 100s of time. What
VC> could be causing this? Any thoughts?

VC> Best regards and great holidays






-
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[2]: Multiple designing.

2006-12-21 Thread Dima Retov

I ask that as we had similar idea to make shared hosting for tomcat.

The main problem for us was unloading code (context, sites).

It is complex to stop thread that do not wish to properly stop.

You can protect shutdown port with Security Manager that you must
implement for such project.

Abuser may create memory leaks by placing references to big objects.

As I understand you can't force to unload code.

.NET has "Application Domain" that is able to do that. It is used in
IIS. Java does not have such things.

--

 is not real problem. You can check how such things are
implemented in tomcat's admin page. It is JSP app that is able to add
recourses and adjust server.xml file.

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]



Thursday, December 21, 2006, 10:47:39 AM, you wrote:

WP> Dima Retov ??:
>> WP> We are starting to design a ISP level JSP virutal hosting system which
>> WP> could serve JSP and Servlets.
>> 
>> Would you use have 1 tomcat per server?
>> 
>> If yes, Would you protect it from abusing code? e.g. Anyone would be
>> able to upload code with infinite loops to server.
>> 

WP> Thanks for your response.

WP> I have installed only one tomcat server in a machine. If this is the
WP> thing you have mentioned by "1 tomcat per server", i think i have to
WP> protect the tomcat server from abusing code.

WP> But i don't know so much about tomcat configuration, the only things i
WP> have done to protect the security of the tomcat server is

WP> 1. use iptables blocked the internal ports
WP> 8009, etc ..
WP> 2. use -security option during start the tomcat server.

WP> To be more safely, what should i do with the server, or maybe you could
WP> point out some articles i have to read.

WP> Thanks again.

WP> Wang.



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

 





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



Re: Multiple designing.

2006-12-21 Thread Dima Retov
WP> We are starting to design a ISP level JSP virutal hosting system which
WP> could serve JSP and Servlets.

Would you use have 1 tomcat per server?

If yes, Would you protect it from abusing code? e.g. Anyone would be
able to upload code with infinite loops to server.

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]

Thursday, December 21, 2006, 6:08:32 AM, you wrote:

WP> Hello,

WP> We are starting to design a ISP level JSP virutal hosting system which
WP> could serve JSP and Servlets.

WP> Here are some thing i decide to to:

WP> Apache 2.0.52(RHEL 4 default installation)
WP> Tomcat 5.5.20 (http://tomcat.apache.org)
WP> Tomcat connector 1.2.18(http://tomcat.apache.org)

WP> Add the follow lines in httpd.conf

WP> JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
WP> JkLogFile /etc/httpd/logs/mod_jk.log
WP> JkLogLevelinfo
WP> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
WP> 
WP> AllowOverride None
WP> deny from all
WP> 
WP> 
WP> AllowOverride None
WP> deny from all
WP> 

WP> Then here is a example  in httpd.conf

WP> 
WP> SuexecUserGroup wangph clients
WP> ServerAdmin [EMAIL PROTECTED]
WP> ServerName wangph.example.com
WP> DocumentRoot "/home/wangph/wwwroot"
WP> ScriptAlias /cgi-bin/ /home/wangph/wwwroot/cgi-bin/
WP> ScriptAlias /perl/ /home/wangph/wwwroot/cgi-bin/
WP> ErrorLog logs/error_log
WP> JkMount /*.jsp ajp13
WP> JkMount /servlet/* ajp13
WP> 

WP> And here is a example  in server.xml

WP>  autoDeploy="true"
WP> configClass="org.apache.catalina.startup.ContextConfig"
WP> contextClass="org.apache.catalina.core.StandardContext" debug="0"
WP> deployXML="true"
WP> errorReportValveClass="org.apache.catalina.valves.ErrorReportValve"
WP> liveDeploy="true"
WP> mapperClass="org.apache.catalina.core.StandardHostMapper"
WP> name="wangph.example.com" unpackWARs="true">
WP> >
WP> 

WP> I leave appBase blank. And point the docBase to the apache virtual
WP> documentroot.


WP> If i add a new virtual host, simply add one  in httpd.conf
WP> and one  in server.xml.

WP> Is there any problem?

WP> Thanks very much

WP> Wang Penghui


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






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



Re[4]: PHP on Tomcat

2006-12-20 Thread Dima Retov
You can run php daemon in FastCGI mode and setup servlet in tomcat
that would handle *.php requests

http://php-java-bridge.sourceforge.net/pjb/faq.php

R> I want to use PHP for all tomcat applications. Apache and IIS are
R> not available, but performance is important. How do I install it?




Wednesday, December 20, 2006, 7:31:06 PM, you wrote:

R> Thanks Dima,
R> I may not understand how the the php-java bridge works. It did not seem to
R> allow a php application to run under Tomcat ?

R> ran

R> On 12/20/06, Dima Retov <[EMAIL PROTECTED]> wrote:
>>
>> Here is faster solution.
>> http://php-java-bridge.sourceforge.net/
>>
>> It runs PHP in FastCGI mode. (much faster then CGI)
>>
>>
>>
>>
>> Tuesday, December 19, 2006, 10:40:52 PM, you wrote:
>>
>>
>>
>> d> Ran-2 wrote:
>> >>
>> >> Has anyone managed to get PHP4/5 to work on Tomcat ?
>>
>> d> Try here ..
>> d> http://tools.herberlin.de/phpservlet/index.shtml phpservlet.war .. this
>> d> worked for me on PHP5 (note: read configuration file re: use of
>> d> php-cgi.exe).
>>
>>
>>
>>
>> --
>> Best regards,
>> Dimamailto:[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]
>>
>>



-- 
Best regards,
 Dimamailto:[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[2]: PHP on Tomcat

2006-12-20 Thread Dima Retov
Here is faster solution.
http://php-java-bridge.sourceforge.net/

It runs PHP in FastCGI mode. (much faster then CGI)




Tuesday, December 19, 2006, 10:40:52 PM, you wrote:



d> Ran-2 wrote:
>> 
>> Has anyone managed to get PHP4/5 to work on Tomcat ? 

d> Try here ..
d> http://tools.herberlin.de/phpservlet/index.shtml phpservlet.war .. this
d> worked for me on PHP5 (note: read configuration file re: use of
d> php-cgi.exe).




-- 
Best regards,
 Dimamailto:[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[2]: Notification of expiring sessions

2006-12-19 Thread Dima Retov
I agree that it worth to avoid storing session in DB. It is not
reasonable to load session data from DB every 20 seconds.

You can handle session create/destroy events using class that
implements following interface.
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpSessionListener.html

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]





Tuesday, December 19, 2006, 7:15:41 PM, you wrote:

bs> Chuck,

bs> Valid points.

bs> I was hoping that doing it this way would also provide me with
bs> replication of this data between several tomcat instances. Odviously I
bs> would need to setup session replication between them. Also it would
bs> allow for session data persistence should tomcat be restarted etc. I
bs> could grab the requestedSessionId from the request and then use that
bs> to look up the session data.

bs> I know that tomcat provides some way of persisting session but the
bs> documentation doesn't seem to be very good.

bs> Ben


bs> On 12/19/06, Caldarale, Charles R
bs> <[EMAIL PROTECTED]> wrote:
>> > From: ben short [mailto:[EMAIL PROTECTED]
>> > Subject: Notification of expiring sessions
>> >
>> > I want to store user session data into a database rather than in the
>> > session, to conserve memory.
>>
>> Unless your session data is huge, you're probably consuming more memory
>> by accessing the data base rather than keeping it simple.  There are a
>> lot of objects that have to be created and maintained for every DB
>> connection, statement, result set, etc.  Also, your original session
>> data object(s) will remain in the heap until garbage collection runs, so
>> are you really conserving memory?
>>
>>  - 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]
>>
>>

bs> -
bs> To start a new topic, e-mail: users@tomcat.apache.org
bs> To unsubscribe, e-mail: [EMAIL PROTECTED]
bs> 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[2]: PHP on Tomcat

2006-12-14 Thread Dima Retov
You should better try to use PHP in FastCGI mode.
Both are not well supported on tomcat.

You may also check caucho's Quercus.


Friday, December 15, 2006, 2:48:31 AM, you wrote:

HS> On 12/14/06, Ran <[EMAIL PROTECTED]> wrote:

>> Has anyone managed to get PHP4/5 to work on Tomcat ? Do I still need to
>> patch source code when using php 4.4.4 ?

HS> PHP 4, yes -- 5 apparently doesn't come with build-a-servlet support :-)

HS> It's been quite a while, but I don't recall "patching source" at all. It 
built,
HS> it ran, but with only marginal stability (and when it crashed, the whole VM
HS> crashed). Not production-ready, certainly.

HS> YMMV!



-- 
Best regards,
 Dimamailto:[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: about dynamic class loading

2006-12-14 Thread Dima Retov
You should read about class loader in Java. It does not relates to
tomcat. But tomcat implements classloader to load servlets, libraries
and jsp. You can't force class unload except calling gc.

Thursday, December 14, 2006, 6:02:06 PM, you wrote:

XN> hi everyone,
XN>   I'd like to know wether Tomcat can load a class dynamicly.
XN> for example, Tomcat can load a JSP page without restart the context when I
XN> changed the code of the JSP. But when I changed a class, the context must be
XN> restarted.
XN>   Can it load the changed class without context restart ?

XN>I'll be glad to receive any advise :)

XN> thanks,




-- 
Best regards,
 Dimamailto:[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[2]: Is jsp designed for use by large websites

2006-12-06 Thread Dima Retov
CPU throttling and thread termination are essential for shared
hosting. The only way to terminate bad application is kill VM.

.NET has Application Domains. You are able to unload it without
restart of hole VM.

I think it is alreadfy possible to make CPU throttling in Java and
even in Tomcat.

You can monitor threads and dynamically change priority.

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]

Wednesday, December 6, 2006, 7:27:37 PM, you wrote:

>> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
>> As Tomcat is OpenSource (and not proprietary) and can be 
>> installed on any OS (vs just 1) I dont undertand 
>> What is causing the number of Tomcat users to attenuate over time?

PC> Ancient history, I know, but I'll respond anyway.

PC> A Model T Ford is a perfectly good car.  However, if Ford don't innovate
PC> and other car manufacturers do, people buying new cars will switch away
PC> from Ford to vehicles that are cheaper, faster, have lower fuel costs or
PC> innovations like a roof.

PC> Tomcat and JSP is a perfectly good model for web applications.  However,
PC> if the Java community and the Tomcat developers don't innovate and other
PC> communities do (for example the PHP community and Microsoft), people
PC> deploying new applications will switch away from Tomcat and JSP to
PC> systems that are cheaper, faster to develop, have lower hosting/running
PC> costs or innovations like per-webapp memory and CPU throttling.

PC> The issue is not that Tomcat is bad in absolute terms, it's simply that
PC> other communities are out-innovating it so it's becoming a (perceived)
PC> poorer *relative* choice.

PC> - Peter

PC> -
PC> To start a new topic, e-mail: users@tomcat.apache.org
PC> To unsubscribe, e-mail: [EMAIL PROTECTED]
PC> 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]



FastCGI

2006-11-30 Thread Dima Retov


Does tomcat supports FastCGI?
  

-- 
Best regards,
 Dima  mailto:[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[2]: Is jsp designed for use by large websites

2006-11-30 Thread Dima Retov
There is java implementation of PHP.

http://caucho.com/resin-3.1/doc/quercus.xtp








Thursday, November 30, 2006, 5:24:41 PM, you wrote:

CS> -BEGIN PGP SIGNED MESSAGE-
CS> Hash: SHA1

CS> Martin,

CS> Martin Gainty wrote:
>> This is going O/T so feel free to ping me off the list
>> 
>> These current graphs may help if you want to gage PHP assignments
>> http://mshiltonj.com/sm/categories/languages_p-z/
>> then compare to Java assignments
>> http://mshiltonj.com/sm/categories/languages_a-m/

CS> Wow... Java seems to enjoy a nice margin over the others. My experience
CS> has been that Java developers are not that much in demand -- at least
CS> not in the DC area.

>> Can you show how a simle math routine or for loop routne in a script
>> language PHP performs faster than a language java?

CS> I believe that PHP is not entirely interpreted, at least not all the
CS> time. It's unclear to me what Zend brings to the table, honestly. I
CS> think what you'll find is that most web apps are very simple, and that
CS> the performance characteristics of each language are far outweighed by
CS> the performance of network connections (both HTTP and database) as well
CS> as any database activity that you are doing in your app.

>> Can you show how PHP supports ?

CS> Yeah, PHP doesn't really do threads. You have to rely on the web
CS> server's request processing configuration for concurrency. One advantage
CS> of PHP is that pretty much everything is isolated (at least, if you use
CS> apache httpd and the prefork MPM), so you generally need not worry about
CS> synchronization, etc. -- at least not for objects and such.

>> Can you show how PHP supports inheritance, polymorphism and encapsulation?

CS> I don't think any of that is available in PHP. They do have objects, but
CS> they are loosely typed, which sort of blurs definition of "true" OO.
CS> Still, I maintain that most webapps are stupid simple, and many don't
CS> even write their own code outside of CRUD functions. Since those types
CS> of things don't require you to know anything about OO, many developers
CS> can get away without an OO language.

>> Can you show how PHP supports all Java scope (request/page and application)?

CS> The request scope /does/ exist, and the page scope implicitly exists
CS> since a PHP script can be thought of a one big method (kinda like a
CS> vanilla JSP page). The application scope pretty much does not exist.
CS> There is a "global" scope, but I am unclear as to the behavior across
CS> multiple instances of the PHP engine... for instance, does each script
CS> get a separate copy of the "global" variable? Probably. Does that make
CS> it not really a global variable? I suppose that depends on your point of
CS> view.

CS> The bottom line for the whole PHP versus Java thing for me is perceived
CS> complexity of a project. If I want it done super fast and super simple,
CS> I'll go for PHP. If I want to actually architect something, then I'll
CS> turn to Java. My experience has been that as PHP projects grow, they
CS> become very difficult to maintain. Not so (or, at least, not so much!)
CS> with Java.

CS> Just my .02.

CS> - -chris

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

CS> iD8DBQFFbve59CaO5/Lv0PARAtL5AKCnv/4r+x3IwHciEPqCSc+HlUu64wCffgNw
CS> x1TiKimfohpVEURjN6tAcQI=
CS> =b1TS
CS> -END PGP SIGNATURE-

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

 



-- 
Best regards,
 Dimamailto:[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[2]: Is jsp designed for use by large websites

2006-11-30 Thread Dima Retov
How do you know that there are more PHP developers then Java?

-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]

Thursday, November 30, 2006, 4:39:59 PM, you wrote:

HKN> I am a jsp developer ,too, but honestly not a j2ee guru.

HKN> I don't see any reason that jsp/j2ee will have a bad potential in the
HKN> future.
HKN> However, by the time jsf is mature, jsp users may be gradually transformed
HKN> to jsf/ajax developers  which is a modern trend in the future.
HKN> jsp/jsf has one great advantage in using JAVA as mid-tier or business logic
HKN> language. Consequently the combination of jsp/jsf/j2ee is best suited for
HKN> enterprise level, multi-tier webapps while PHP is versatile (but not the
HKN> best) and easy maintenance. It depends on the choice between convenience 
and
HKN> power. In addition, the "catch" for jsp/jsf/j2ee is "huge learning carve" 
to
HKN> get the most out of jsp/jsf. That's the main reason why PHP developers are
HKN> more common than j2ee developers.




HKN> On 11/30/06, Jack <[EMAIL PROTECTED]> wrote:
>>
>> > Good Morning Jack-
>> > As Tomcat is OpenSource (and not proprietary) and
>> > can be installed on any OS (vs just 1) I dont
>> > undertand
>> > What is causing the number of Tomcat users to
>> > attenuate over time?
>> > M
>>
>> Hello,
>>
>> My logic is:
>>
>> 1a. JSP is not supported by many web hosting companies
>> or is only supported in more expensive dedicated
>> server plans. In contrast, open source alternatives
>> such as php is well-supported by web hosting
>> companies.
>>   -> Result: most small and medium sized
>> websites/webapps that do not need a dedicated server
>> use php.
>> 1b. JSP has many great features. But php is also very
>> powerful and has some capabilities that jsp doesn't
>> have.
>>   -> Result: some heavy-traffic websites/webapps that
>> require dedicated servers use jsp. Some others use php
>> (eg. yahoo
>> [http://news.com.com/2100-1023-963937.html]).
>> -> 2. There are more php users than jsp users.
>>   -> 3. More people get involved in the
>> development and support of php, while fewer people get
>> involved in the development and support of jsp/tomcat.
>> -> Result 1: PHP evolves in a faster pace.
>> Some great features that only jsp supports originally
>> may start to be supported by php.
>> -> Result 2: More (open source) tools/programs
>> are built on top of php. For example, open-source
>> software, phpbb, is used to run many heavy traffic
>> forums such as forums.mozillazine.org.
>>   -> 4. As php becomes more powerful and there
>> are more php tools/programs, more people switch to it.
>> So, we go back to point 2 and the circulation
>> continues.
>> -> 5. The number of jsp users becomes
>> smaller.
>>   -> 6. Fewer people will get involved in
>> the development and support of jsp/tomcat and so the
>> future of jsp/tomcat will become less certain.
>>
>> I point this out because i like jsp and i am concerned
>> about its future. I am not sure if my logic is
>> correct. Correct me if you find any mistakes.
>>
>>
>> ___
>> YM - ВчЅu°T®§
>> ґNєв§AЁS¦і¤WєфЎA§AЄєЄB¤Н¤ґҐiҐHЇd¤U°T®§µ№§AЎA·н§A¤Wєф®ЙґNЇаҐЯ§Y¬ЭЁмЎAҐф¦у»ЎёЬіЈЙNЁ«ҐўЎC
>> http://messenger.yahoo.com.hk
>>
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>




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



JSP alternative to ASP.NET

2006-11-28 Thread Dima Retov
Is there alternative to ASP.NET/Visual Studio

What I mean is there is something good as ASP.NET not just set of
controls. RAD tools like Visual Studio. May be commercial.

  

-- 
Best regards,
 Dima  mailto:[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[2]: APR / SSL in 5.5.20

2006-11-28 Thread Dima Retov
You are using certificate for java's SSL.

You need certificate for openssl.

May be you can convert certificate using following commands
http://mark.foster.cc/kb/openssl-keytool.html

Let me know if it worked for you.


Tuesday, November 28, 2006, 5:39:17 AM, you wrote:

DB> I saw this, but unfortunately it only tells you how to specify the key file.
DB> It doesn't tell you how to generate it.  It seems logical that if everything
DB> works with the .kdb file, then that should hold all of the information that
DB> I need to get SSL working.  Maybe I'm asking the wrong question.  Basically,
DB> given a kdb file that works, I would like to be able to set up APR to handle
DB> SSL.  It seems like this should be a fairly straightforward conversion... ?
 

>> -Original Message-
>> From: Rémy Maucherat [mailto:[EMAIL PROTECTED] 
>> Sent: Monday, November 27, 2006 8:07 PM
>> To: Tomcat Users List
>> Subject: Re: APR / SSL in 5.5.20
>> 
>> On 11/28/06, Daniel Blumenthal <[EMAIL PROTECTED]> wrote:
>> > SSLCertificateFile="${catalina.base}/conf/localhost.crt"
>> > 
>> SSLCertificateKeyFile="${catalina.base}/conf/localhost.key" />
>> >
>> > I can export the .crt file from the .kdb file, but how do I 
>> get the "key"
>> > file?
>> 
>> You should look in the mod_ssl documentation for some details 
>> (http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#sslcertific
>> atekeyfile).
>> 
>> Rémy
>> 
>> -
>> To start a new topic, e-mail: users@tomcat.apache.org To 
>> unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 



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




-- 
Best regards,
 Dimamailto:[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: Security restriction

2006-11-23 Thread Dima Retov
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SecurityManager.html

You can apply your own Security Manager like web browser does with
applets. 


Thursday, November 23, 2006, 6:45:00 PM, you wrote:



AK> Hello,

AK>   i have a quick question.

AK>   if i wanted to restrict what directories tomcat server sees or
AK>   if i want to prevent someone running System.exec( "delete
AK>   everything!!!" ) where would i start?






-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]



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



Re: How to enable APR in windows to work comet with Tomcat 6.0

2006-11-22 Thread Dima Retov
I think comet does not use APR. Comet is pure Java code that uses NIO
(java.nio).
APR handles keep-alive using non-blocking native io (not java.nio)

Wednesday, November 22, 2006, 6:31:41 AM, you wrote:

JK> Hi everybody,

JK> This jayant from iTG Pvt. Ltd. India. I want to use the new feature comet of
JK> Tomcat 6.0. to use that feature I have to use NIO connector or APR. but the
JK> lack of documentation I couldn't understand how to use APR, could any body
JK> suggest me how to do all settings for using APR in windows..

JK> Jayant
JK> (iTG Pvt. Ltd. India)




-- 
Best regards,
 Dimamailto:[EMAIL PROTECTED]



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



Re: JSP Syntax Error

2006-11-09 Thread Dima Retov
You have changed

<% to <%=


Thursday, November 9, 2006, 9:24:36 PM, you wrote:

FML> I am trying to modify the snoop.jsp that comes with Tomcat 5.5.20.  I
FML> have the following snippet in my jsp and it compiles fine:

FML>   
FML> Path info<%
FML> out.print(util.HTMLFilter.filter(request.getPathInfo())); %>
FML>   

FML> If I add the following before the above use of getPathInfo, I get syntax
FML> errors on the new code (the old code still does not report any errors):

FML>   
FML> Context path<%=
FML> out.print(util.HTMLFilter.filter(request.getContextPath())); %>
FML>   
FML>   
FML> Servlet path<%=
FML> out.print(util.HTMLFilter.filter(request.getServletPath())); %>
FML>   

FML> The error is:

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

FML>  An error occurred at line: 43 in the jsp file: /snp/snoop2.jsp
FML>  Generated servlet error:
FML>  Syntax error on token ";", delete this token

FML>  An error occurred at line: 46 in the jsp file: /snp/snoop2.jsp
FML>  Generated servlet error:
FML>  Syntax error on token ";", delete this token

FML> I have not changed anything from the default Jasper configuration.

FML> (Is this the best place to ask this kind of question?)

FML> Mitchell Fisher | Unisys Corp.


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




-- 
Best regards,
 Dimamailto:[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[2]: Comet + tomcat6

2006-11-08 Thread Dima Retov
JK> If you could guide us or send us a link as to how to use APR and NIO
JK> connectors (which support Comet).

APR is not comet.
NIO is comet.

I do not think that APR support async IO.
APR only handles sleeping keep-alive connections in async way.
APR processes requests in regular way.

Am I right?


Wednesday, November 8, 2006, 2:03:29 PM, you wrote:

JK> Hi Mark

JK> Thank you for your suggestions. We are using the default connector for
JK> tomcat6(probably the Http connectors). We would be greatful to you
JK> If you could guide us or send us a link as to how to use APR and NIO
JK> connectors (which support Comet).

JK> Regards
JK> Jayant

JK> -Original Message-
JK> From: Mark Thomas [mailto:[EMAIL PROTECTED] 
JK> Sent: Tuesday, November 07, 2006 9:59 AM
JK> To: Tomcat Users List
JK> Subject: Re: Comet + tomcat6

JK> Nimit Walia wrote:
>> F ANYBODY CAN HELP PLS HELP ME AS SOON AS POSSIBLE

JK> Please do not send the same message multiple times.
JK> http://tomcat.apache.org/faq/tomcatuser.html#why

JK> I haven't looked at or been involved in the Comet development but as far as
JK> I can tell from looking at the code and the docs you need to be using the
JK> APR (http://tomcat.apache.org/tomcat-6.0-doc/apr.html) or NIO connectors.

JK> Which connector are you using?

JK> There is a request flag that indicates comet support
JK> (org.apache.tomcat.comet.support) but it is set on every request by the
JK> connectors that support comet so you should not need to do anything here.

JK> The only other thing I can suggest is to look at the chat example provided
JK> in the TC6 for further clues.

JK> HTH,

JK> Mark

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


JK> --
JK> No virus found in this incoming message.
JK> Checked by AVG Free Edition.
JK> Version: 7.1.409 / Virus Database: 268.13.30/521 - Release Date: 11/7/2006
 




-- 
Best regards,
 Dimamailto:[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[2]: Change welcome page

2006-11-07 Thread Dima Retov
It is better to add index.jsp that would redirect to business objects.
You would not have to move business objects.

index.jsp

<%

response.sendRedirect("http://localhost:8080/businessobjects/enterprise115/desktoplaunch";);

%>


Tuesday, November 7, 2006, 10:40:49 PM, you wrote:

>> From: Fabian Brauers [mailto:[EMAIL PROTECTED] 
>> Subject: Re: Change welcome page
>> 
>> What do I have to change in order to see the 
>> BusinessObjects application when I use http://localhost:8080  ?

CCR> You have to replace the existing ROOT app with your own.  Delete the
CCR> existing webapps/ROOT directory, and then rename your .war or deployment
CCR> directory to ROOT - assuming it's under webapps.

CCR>  - Chuck


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

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




-- 
Best regards,
 Dimamailto:[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[2]: How stable is tomcat

2006-11-01 Thread Dima Retov
Thanks Dave.

What version of JVM have you used?

Wednesday, November 1, 2006, 8:57:19 PM, you wrote:

DK> Dima Retov wrote:

>>How stable is tomcat with Sun's HotSpot JVM 1.5?
>>
>>Right now we have apache servers that are up for 3 and 4 months.
>>So I guess apache 1.3 may works for months.
>>
>>How stable is tomcat against apache or other webservers?
>>
>>Would tomcat be able to work 1 year without restart?
>>  
>>
DK> I've had three instances of 5.5.12 running on the same machine for 6
DK> months without a restart, and that restart 6 months ago was due to a
DK> power failure.  One of those instances gets around 2 million 
DK> transactions per day.

>>I ask that because tomcat with eclipse became unstable twice today.
>>(May be it was happening because of debugging mode of JVM)
>>  
>>
DK> It's probably not due to tomcat; you have a lot more going on than just
DK> a tomcat server in that situation.

DK> Dave



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



-- 
Best regards,
 Dimamailto:[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]



How stable is tomcat

2006-11-01 Thread Dima Retov
Wednesday, November 1, 2006, 8:19:07 PM, you wrote:

CS> John,

CS> John Gorkos wrote:
>> On Wednesday 01 November 2006 11:58, Christopher Schultz wrote:
>>> John Gorkos wrote:
 I use per-context JNDI handles to
 the same Postgres database for multiple apps running inside tomcat.  Each
 context.xml sets up connection limits, max idle, etc, slightly
>>> differently.
>>>
>>> You said "per-context JNDI handles", not per-context JNDI DataSources.
>>> Where are you defining your datasource? In context.xml, or in server.xml
>>> with additional, per-context configuration in context.xml?
>>>
>>> Can you show us the configuration for your JNDI DataSource, including

How stable is tomcat with Sun's HotSpot JVM 1.5?

Right now we have apache servers that are up for 3 and 4 months.
So I guess apache 1.3 may works for months.

How stable is tomcat against apache or other webservers?

Would tomcat be able to work 1 year without restart?

I ask that because tomcat with eclipse became unstable twice today.
(May be it was happening because of debugging mode of JVM)


-- 
Best regards,
 Dimamailto:[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[2]: Performance throttling

2006-10-29 Thread Dima Retov
Thanks Chuck.

ThreadMXBean (JMX) must be used to determine CPU time used by this
thread to change thread priority dynamically.




Saturday, October 28, 2006, 9:56:38 PM, you wrote:

>> From: Dima Retov [mailto:[EMAIL PROTECTED] 
>> Subject: Performance throttling
>> 
>> Is that possible to do performance throttling (or shaping) in tomcat
>> on per context base?

CCR> No direct mechanism that I'm aware of (although others might).  I
CCR> suppose you could segregate apps under different s, and you can
CCR> set thread priority for each  associated with an .

CCR>  - Chuck


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

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



-- 
Best regards,
 Dimamailto:[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]



Performance throttling

2006-10-28 Thread Dima Retov
Hi,

Is that possible to do performance throttling (or shaping) in tomcat
on per context base?

-- 
Best regards,
 Dima  mailto:[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]