[Resin-interest] changes page broker

2012-07-05 Thread Wesley Wu
: multipart-mime with forward parameters was double-parsing (#4896)/li -- Resin/4.0.27 Server: 'app-0' regards -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin

Re: [Resin-interest] Resin 4 stable for production ?

2011-12-05 Thread Wesley Wu
@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest -- *Wesley Wu 吴萌野* QQ:18990702 Mobile: 18601033886 Email: wesley...@yinyuetai.com wesley...@yinyuetai.com 工体北路8号三里屯SOHO办公D座1103 邮编100027 [image: U3%8Y%PN7N{6ZGQY1F)PI_P] www.yinyuetai.com * * image001

[Resin-interest] It seems resin 4.0.x does not implement Unified EL 2.2 properly

2011-10-20 Thread Wesley Wu
2.2 one. I looked at the source of resin el implementation and found java.el.CompositeELResolver did not implemented the public Object invoke(ELContext context, Object base, Object method, Class?[] paramTypes, Object[] params); method which was added since EL 2.2. any thoughts? -- Wesley Wu

[Resin-interest] It seems resin 4.0.x does not implement Unified EL 2.2 properly

2011-09-29 Thread Wesley Wu
2.2 one. I looked at the source of resin el implementation and found java.el.CompositeELResolver did not implemented the public Object invoke(ELContext context, Object base, Object method, Class?[] paramTypes, Object[] params); method which was added since EL 2.2. any thoughts? -- Wesley Wu

[Resin-interest] ScheduledThreadPool randomly failed to start throwing NullPointerException

2011-07-07 Thread Wesley Wu
) at com.caucho.env.thread.ResinThread.run(ResinThread.java:130) -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] no JMX ObjectName detected with jrockit vm

2011-02-10 Thread Wesley Wu
in CentOS 5.5. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] InjectManager._selfBeanMap should be ConcurrentHashMap?

2010-11-30 Thread Wesley Wu
Thanks, Scott. Would you give out a snapshot and I will do some stress test on it. -Wesley 2010/11/30 Scott Ferguson f...@caucho.com: Thanks. I've fixed it for the next release (changing to ConcurrentHashMap) - Scott Wesley Wu wrote: Or this method sync the wrong map? private SetBean

Re: [Resin-interest] Resin CanDI not support @Alternative ?

2010-11-02 Thread Wesley Wu
. -Wesley 2010/11/2 Scott Ferguson f...@caucho.com: I just checked with that example and it's working fine. Where are the files/classes located, and how is JmsTemplate instantiated? -- Scott Wesley Wu wrote: ==beans.xml=== ?xml version=1.0 encoding=UTF-8? beans xmlns

[Resin-interest] Resin CanDI not support @Alternative ?

2010-11-01 Thread Wesley Wu
{ ... } usage== public class JmsTemplate { @Inject ConnectionFactory factory; ... } - Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] ConnectionPool pool overflow issue again in resin 4.0.10

2010-10-08 Thread Wesley Wu
. Then I switched back to Resin 4.0.9.s100809 and everything went fine. I'll do a fine log if required. Thanks. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] ConcurrentModificationException when InjectManager.findByName

2010-08-19 Thread Wesley Wu
Thanks Scott. Is my code causing this error as Aaron said? -Wesley 2010/8/20 Scott Ferguson f...@caucho.com: Aaron Freeman wrote: This is an error in your JSP/JSTL, not with Resin -- you are trying to modify (add to) a HashMap that you are iterating over. Except it's the Resin code that's

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
Hi Scott, I believe I've fixed this issue by adding @ApplicationScoped and @RequestedScoped annotation to my beans. :) Thanks for your efforts. -Wesley 2010/8/18 Wesley Wu wumen...@gmail.com: Hi Scott, Thanks for the checking. Today I double checked the CDI spec and got some new knowledge

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. It shouldn't matter what context you're injecting from, as long as you're creating a new

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-19 Thread Wesley Wu
I'll tried to do so. 2010/8/20 Scott Ferguson f...@caucho.com: Wesley Wu wrote: 2010/8/20 Scott Ferguson f...@caucho.com: I still think there's a chance for a Resin leak; I just don't understand where it's coming from. I think so. The same code worked fine (no leak) in Resin 4.0.5. Do

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-17 Thread Wesley Wu
have a full story to tell me, if u've got some time. :) Thanks again. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Resin 4.0.9 release

2010-08-13 Thread Wesley Wu
Hi Jan, Did your resin server have a busy traffic? Did u observed any memory leak or heap overflow? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
com.caucho.network.listen.TcpSocketLink.handleRequests(boolean) 8 Hope these help. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-13 Thread Wesley Wu
)); CreationalContext env = beanManager.createCreationalContext(bean); return beanManager.getReference(bean, bean.getBeanClass(), env); } ... } -Wesley ___ resin-interest mailing list resin-interest@caucho.com http

[Resin-interest] Possible memory leak in Resin 4.0.9

2010-08-11 Thread Wesley Wu
at Dependent context (should be GCed when request ends). Any ideas? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] ConnectionPool pool overflow issue in Resin 4.0.9

2010-08-09 Thread Wesley Wu
Thanks. Be sure to notify in the mailing list when the snapshot is out. :) 2010/8/7 Scott Ferguson f...@caucho.com: Wesley Wu wrote: Hi Scott, I've experienced weird connection pool issue in 4.0.9 these days. After every hour (exactly), the 4.0.9 resin refused to service any request

[Resin-interest] ConnectionPool pool overflow issue in Resin 4.0.9

2010-08-05 Thread Wesley Wu
connection-wait-time30s/connection-wait-time /database -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] Servlet 3.0 file upload feature (javax.servlet.http.Part) improperly implemented

2010-07-31 Thread Wesley Wu
. } Now I have to use request.getParameterValues(part.getName()); to retrieve the text form field value. But I know it must be wrong, because we may have multiple fields have the same name. -Wesley ___ resin-interest mailing list resin-interest@caucho.com

[Resin-interest] Severe InjectManager.getCurrent synchronization problem at high load, fixed in 4.0.9?

2010-07-31 Thread Wesley Wu
_localContainer.get(loader); } Probably this problem has bean resolved but I need to do more test in next week. Thanks for the great work. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin

Re: [Resin-interest] Resin 4.0.9 release

2010-07-30 Thread Wesley Wu
the locking problem of previous Resin 4.0.x. My heavy traffic website hanged several times a day. Thanks a lot! I'll try 4.0.9 immediately. -Wesley 2010/7/31 Scott Ferguson f...@caucho.com Just an important note on Resin 4.0.9. Most of the work for this release was related to low level

Re: [Resin-interest] A request for caucho apache module - connect to an instance only after CDI deployment finished

2010-07-20 Thread Wesley Wu
Thanks for the Priority = normal :) -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] A request for caucho apache module - connect to an instance only after CDI deployment finished

2010-07-15 Thread Wesley Wu
on in a cluster, whose forend is an apache httpd server, of course without restarting the httpd service. Hope I described the problem and the request. Or there's any way out to solve this problem currently? -Wesley ___ resin-interest mailing list resin-interest

Re: [Resin-interest] Numerous problems moving to 4.0.8

2010-07-05 Thread Wesley Wu
-version1.0/tlib-version ... /taglib has not problem in classes/META-INF 2010/7/5 Rick Mann rm...@latencyzero.com: On Jul 4, 2010, at 21:55:34, Wesley Wu wrote: Hi Rick Try to place the tld at WEB-INF/classes/META-INF/your_tld_file.tld. I don't think that should be necessary. You're supposed

[Resin-interest] Resin 4.0.8 passed the tck?

2010-07-04 Thread Wesley Wu
until all observers of this event return. [/quote] I never saw any version of resin 4.0.x implemented this function. When I write a method like: public void bootstrap(@Observes AfterDeploymentValidation event, BeanManager manager) { ... } and it never got called. -Wesley

Re: [Resin-interest] Numerous problems moving to 4.0.8

2010-07-04 Thread Wesley Wu
Hi Rick Try to place the tld at WEB-INF/classes/META-INF/your_tld_file.tld. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
To make set method auto translated into a UPDATE clause, the entitymanager should be opened after a transaction begins. @PersistenceUnit(unitName=example) EntityManagerFactory emf; EntityManager em; try { ut.begin(); EntityManager em= emf.createEntityManager(); CourseBean

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
@TransactionAttribute. I never inject a @PersistentContext or never use a container provided EntityManager. I use ThreadLocal to maintain every EntityManager instance. -Wesley 2010/3/30 Stargazer starga...@blueyonder.co.uk On 30-Mar-2010 09:34, Wesley Wu wrote: To make set method auto

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
in several heavy loaded websites. -Wesley 2010/3/31 Scott Ferguson f...@caucho.com Why would calling UserTransaction in your code be faster? Essentially, all @TransactionAttribute does is call UserTransaction.begin() and commit(). (Any extra overhead should be minimal, especially compared

Re: [Resin-interest] Hibernate transactions

2010-03-30 Thread Wesley Wu
); } } 3. Use @TransactionAttribute on RealStuffRunnable.run() Thus my real stuff will not suffer from the reenter and crossing commit. Any better solutions? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com

Re: [Resin-interest] Hibernate transactions

2010-03-29 Thread Wesley Wu
 UserTransaction instance to do the transaction stuff and leave the entitymanager do db stuff and the entitymanager will participate in the transaction. -Wesley 2010/3/29 Stargazer starga...@blueyonder.co.uk On 27-Mar-2010 01:10, Stargazer wrote: Resin 4.0.5 - following http://wiki.caucho.com/Hibernate

Re: [Resin-interest] CanDI java.lang.StackOverflowError

2010-02-10 Thread Wesley Wu
. -Wesley 2010/2/11 Hontvári József hontv...@flyordie.com: I reduced the configuration to the minimum. It consists of a circular setter dependency, and then a separate third constructor initialization which refers to one of circular items. Both have to be present, otherwise StackOverflow doesn't

Re: [Resin-interest] Where is javax.inject.Current ?

2010-02-07 Thread Wesley Wu
according to the JSR299 JSR330 final spec should use javax.inject.Inject instead 2010/2/7 smallufo small...@gmail.com: I am migrating from Spring to JSR-299 , I followed this http://blog.caucho.com/?p=137 , but the first frustration is that I cannot find @Current . I extracted

Re: [Resin-interest] Where is javax.inject.Current ?

2010-02-07 Thread Wesley Wu
the docs should be updated I can't agree more. :) 2010/2/7 smallufo small...@gmail.com: Oops , thanks for replying so soon. BTW , the docs should be updated ... 2010/2/7 Wesley Wu wumen...@gmail.com according to the JSR299 JSR330 final spec should use javax.inject.Inject instead 2010/2

[Resin-interest] @ApplicationScoped/@Singleton bean lazy init problem

2010-01-28 Thread Wesley Wu
case. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] @ApplicationScoped/@Singleton bean lazy init problem

2010-01-28 Thread Wesley Wu
Thanks for the quick response. I don't expect a quick resolve of this bug, since it DOES have a workaround. After some examination of the source code, I think the implementation around scoped adapter may need a serious refactorying because it's something like a HACK resolution. -Wesley 2010/1

Re: [Resin-interest] the response time

2010-01-16 Thread Wesley Wu
Hi Jon Scott, I don't like apache either but resin 4.0.2 cluster web-tier seems unstable for me. I've not tested the 4.0.3 cluster. My Apache config: ResinHost 192.168.1.4 6801 ResinBackup 192.168.1.5 6801 Which load balancer will be more appropriate for this usage? Thanks. -Wesley

[Resin-interest] HempMemoryQueue consumeQueue NullPointerException

2009-12-22 Thread Wesley Wu
:866) Resin 4.0.s091222 snapshot -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
[09-12-18 01:43:05.221] {hmtp-baa-to-aaa-0} com.caucho.hemp.broker.HempMemoryQueue consumeQueue java.lang.IllegalStateException: WebSocket binary must begin with a 0x80 packet at 0x51 (Q) [09-12-18 01:43:05.221] {hmtp-baa-to-aaa-0} at

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
this node is using Resin-4.0.s091216 the other is using Resin-4.0.s091202 -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
Thanks. I switched back to 091202 snapshot and this issue was resolved. Would u take some time to look at my other mail about @ApplicationScoped bean distribution? -Wesley 2009/12/18 Scott Ferguson f...@caucho.com: Wesley Wu wrote: this node is using Resin-4.0.s091216 the other is using

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
So if I want my beans synchronized across the cluster, I have to use either JMS or some thirdparty cluster middleware like JBossCache? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
thanks Jon Jeff, lol, I'll take a serious look at ehcache + terracotta. I've used JBossCache for more than 2 years, but only on single JVM (not clustered). I might think the clustered cache should be working as they advertised. -Wesley 2009/12/18 Jeff Schnitzer j...@infohazard.org: I know

Re: [Resin-interest] HempMemoryQueue Exception when synchronizing sessions between two nodes in a cluster

2009-12-17 Thread Wesley Wu
Thanks Jon, I'll definitely give terracotta a try. As far as I know, EHCache was a opensymphony project one or two years ago. I noticed that ehcache was acquired by terracotta and became a key component of terracotta. That's great! -Wesley ___ resin

[Resin-interest] To make @ApplicationScoped Bean distributed

2009-12-16 Thread Wesley Wu
(model.getId(), model); } } public class MyController { public void execute() { beanManager.fireEvent(new MyEvent(model), ... ); } } should this event be distributated to all MyAppScopedBean instances in cluster nodes? -Wesley

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
: Wesley Wu wrote: Another SEVERE issues with this snapshot. All POST request was dramatically CHANGED to GET request. I'm not seeing that behavior. Can you turn on the finer logging and see what filters/includes/forwards are happening? -- Scott -Wesley 2009/12/3 Scott Ferguson f

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
I think the win32/win64 dlls should be recompiled against the new modification. 2009/12/3 Wesley Wu wumen...@gmail.com: I wonder why this happened. I encountered this in all 4.0.2 versions in my developer machine while not occurred in production machine. I'll do some investigation next

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
/3.5.5 GTB6 (.NET CLR 3.5.30729) 127.0.0.1 - - [03/Dec/2009:08:18:21 +0800] GET /css/style05.css HTTP/1.1 304 - http://localhost:889/register/; Mozilla/5.0 (Windows; U; Windows NT 6.0; zh-CN; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6 (.NET CLR 3.5.30729) -Wesley 2009/12/3 Wesley Wu wumen

Re: [Resin-interest] new Resin 4.0 snapshot

2009-12-02 Thread Wesley Wu
that GET was the subsequent redirect after the POST. I use redirect after post pattern. A request first POST to /register and after some processing, redirect to /register again using a GET request. -Wesley 2009/12/3 Scott Ferguson f...@caucho.com: Wesley Wu wrote: I changed my post url

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-30 Thread Wesley Wu
Without this bug fixed, 4.0.2 can't be used in production environment. I use two machines with two resin as a load balance cluster, one with a web-tier and a app-tier the other only a app-tier. Every file upload block it. 2009/11/30 Wesley Wu wumen...@gmail.com This bug should be marked

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-30 Thread Wesley Wu
by then, but a snapshot with fixes will be ok. Or I'll have to switch back to the 4.0.2 snapshot 091013 (which has performance/logging issue and JPA issues). 2009/12/1 Scott Ferguson f...@caucho.com: Scott Ferguson wrote: Wesley Wu wrote: Without this bug fixed, 4.0.2 can't be used in production environment

Re: [Resin-interest] Multi-Part request error when using HmuxRequest in Resin 4.0.2(GA)

2009-11-29 Thread Wesley Wu
This bug should be marked as block because it prevents resin load-balancer and third-party web server integration from working properly. It seems caucho QA team did not pay much attention to Hmux stuff, because I suffered a lot from it... -Wesley 2009/11/29 Alex a...@caucho.com Multi-Part

Re: [Resin-interest] Resin V Glassfish

2009-11-28 Thread Wesley Wu
. CDI is actually based on JBoss Seam and Google Guice. Cheers, -Kai On 27.11.2009, at 12.10, Wesley Wu wumen...@gmail.com wrote: As long as Scott continue to work for the Resin's future I'll never switch to other platform. I loved the WebBeans so much from December 2007, now called

[Resin-interest] change log page broken

2009-11-25 Thread Wesley Wu
http://www.caucho.com/resin/changes/changes.xtp [show] javascript:show(); /var/www/hosts/www.caucho.com/webapps/resin/changes/changes.xtp:116: expected name at ` ' 114: liquercus: Drupal and OpenID (#3609, rep by B. Wu)/li 115: liquercus: QuercusParseException - missing semicolon within a

Re: [Resin-interest] url rewriting / search engine friendly

2009-10-31 Thread Wesley Wu
syntax. So if my controller parses the url /servlet?command=showuserid=1354, why couldn't it parse the url /user/name instead directly ? This removes from the application one level of control and complexity . Am-I right ? Wesley Wu wrote: Not recommended. I think filter should

Re: [Resin-interest] url rewriting / search engine friendly

2009-10-30 Thread Wesley Wu
You may use http://tuckey.org/urlrewrite/ UrlRewriteFilter. I wrote a similar filter doing the same thing which loads rewrite config from database. 2009/10/30 Riccardo Cohen r...@architectedulogiciel.fr Hello I didn't have yet the opportunity to work with search engine friendly urls with

[Resin-interest] LazyEntityManagerFactory is initialized too late to be injected into scheduled tasks

2009-10-19 Thread Wesley Wu
' because no beans implementing that class have been registered with the injection manager InjectManager[web-app: http://default]. I guess scheduled-task was different with resin:ScheduledTask? -Wesley ___ resin-interest mailing list resin-interest

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
Thanks Scott. I'll test the JPA JSR299/330 stuff. 2009/10/14 Scott Ferguson f...@caucho.com The 4.0.2 snapshot is now available. Bugs can be reported at bugs.caucho.com. The snapshot isn't clean yet, so a bug report might duplicate one of our failing regression tests, but it's better to

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
sometimes I need to inject third party beans and initiate third party objects in my session scoped beans. I think I could only use @SessionScoped annotation on SINGLE beans, though not tested yet. Thanks Scott. Magnificent work! -Wesley ___ resin-interest

Re: [Resin-interest] 4.0.2 schedule

2009-10-13 Thread Wesley Wu
I think I could only use @SessionScoped annotation on SINGLE beans, though not tested yet. sorry, I mean SIMPLE beans not SINGLE. -Wesley 2009/10/14 Wesley Wu wumen...@gmail.com Seems 4.0.2 snapshot passed most of my web test. Passed: Thirdparty Hibernate JPA integration (* see issues below

Re: [Resin-interest] resin 4.0.1 : Chinese UTF8 characters problems in Quercus

2009-10-05 Thread Wesley Wu
That's a long live problem which exists in all Quercushttp://caucho.com/resin/doc/quercus.xtp version. I believe that's because of the poor unicode implementation of mysql (or all db specific) functions. I raised the question to Scott one years before, yet not solved now. - Wesley 2009/10/6

Re: [Resin-interest] Integrating Resin with NetBeans

2009-09-17 Thread Wu Wesley
I'm using Intellij IDEA which supports Resin 3.x. After some modification of the resin plugin, I managed to support 4.0.x in IDEA. Eclipse should support resin too. I don't know if NetBeans supports Resin 4.0.x. :-( -Wesley 2009/9/17 Rom Sok romsok.re...@gmail.com Hi, I am trying to set up

Re: [Resin-interest] chunked encoding issue in HmuxResponse

2009-09-16 Thread Wu Wesley
Thanks Scott. I found my resolution will cause another bug :( so don't use my code. waiting for the 4.0.2 :) - Wesley 2009/9/17 Scott Ferguson f...@caucho.com On Sep 14, 2009, at 5:11 AM, Wu Wesley wrote: affected version: Resin 4.0.0 4.0.1 reproducible: every time

[Resin-interest] chunked encoding issue in HmuxResponse

2009-09-14 Thread Wu Wesley
HmuxResponse.writeHeadersInt to add some lines below: // add by wesley start boolean hasContentLength = false; // add by wesley end if (_contentLength = 0) { cb.clear(); cb.append(_contentLength); _req.writeHeader(Content-Length, cb); // add by wesley start hasContentLength = true; // add by wesley end } else

[Resin-interest] Bug when Injecting beans in different scope with bytecode java.lang.VerifyError

2009-06-17 Thread wesley
believe this is due to a bug in com.caucho.bytecode.JavaClass. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] Any chance to support an out ofbox JSR299implementation for GAE?

2009-04-22 Thread wesley
restricted to using the web-app's I just got word that they are planning to make Thread.setContextClassLoader() available soon, so that may be an option. Emil classloader. I'm pretty sure we can create child classloaders (for proxy/enhancement), but I haven't checked yet. -- Scott -Wesley

[Resin-interest] Any chance to support an out of box JSR299 implementation for GAE?

2009-04-15 Thread wesley
Hi there, I wonder if Resin could distribute a library to support an out of box JSR299 implementation for Google App Engine. We know Resin can't run on GAE now, but I think Resin's implementation of CanDI may be run on GAE. Is there any plan for this? regards

Re: [Resin-interest] Why Apache?

2009-03-10 Thread wesley
Hi Scott, Here is my long wait question : How to configure Resin run with nginx? regards Wesley - Original Message - From: Scott Ferguson f...@caucho.com To: General Discussion for the Resin application server resin-interest@caucho.com Sent: Wednesday, March 11, 2009 1:52 AM

[Resin-interest] A config question about IIS ISAPI plugin

2008-12-26 Thread wesley
Hi there, I'm using IIS as the frontend contacting resin by isapi_srun.dll. I've trouble to find the document about how to configure the params below: connect-timeout live-time dead-time which /caucho-status servlet showed me. The running value I saw in my webapp: connect-timeout: 2

[Resin-interest] Typo in resin c src file resin.def?

2008-09-15 Thread wesley
Hi Scott, I need to recompile win32 src to platform AMD64. Other projects recompiled successfully except project resin. Visual Studio generated three errors complaining that Java_com_caucho_boot_JniProcess_getMaxFd Java_com_caucho_boot_JniProcess_setMaxFd symbols not found. I double checked the

Re: [Resin-interest] Resin 3.2.0 is available

2008-08-08 Thread wesley
Great work! I will try to migrate my busy web app from 3.1.5.s080331 to 3.2.0. :-) - Original Message - From: Scott Ferguson [EMAIL PROTECTED] To: General Discussion for the Resin application server resin-interest@caucho.com Sent: Thursday, August 07, 2008 11:58 PM Subject:

Re: [Resin-interest] Quercus mysql multibyte character-set problem

2008-06-16 Thread wesley
Hi Scott, I've found this bug fixed, thanks. Was it included in the nearest snapshot? -Wesley - Original Message - From: Scott Ferguson [EMAIL PROTECTED] To: General Discussion for the Resin application server resin-interest@caucho.com Sent: Monday, May 19, 2008 11:09 PM Subject: Re

[Resin-interest] Quercus mysql multibyte character-set problem

2008-05-17 Thread wesley
PROTECTED] */; /*!40014 SET [EMAIL PROTECTED] */; /*!40101 SET [EMAIL PROTECTED] */; /*!40101 SET [EMAIL PROTECTED] */; /*!40101 SET [EMAIL PROTECTED] */; /*!40111 SET [EMAIL PROTECTED] */; -- Dump completed on 2008-05-17 6:35:33 = -Wesley

[Resin-interest] Maybe two issues of mod_caucho for Apache 2.2

2008-05-10 Thread wesley
3221225477 -- Restarting. I think these two problems may be related to mod_caucho.dll. Unfortunely, I could not write a simple code snippet to reproduce them. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com

[Resin-interest] bug #2498 reappears in 3.2.0 snapshot

2008-05-10 Thread wesley
http://bugs.caucho.com/view.php?id=2498 I've expierenced a wired problen using @PersistenceUnit. ===Not functional! @Component public class PersistenceStrategy { // @PersistenceContext(unitName = myunit) // EntityManager em; @PersistenceUnit(unitName =

Re: [Resin-interest] database config shouldbeinitializedbeforeany singleton beans

2008-05-07 Thread wesley
Hi Scott, Congratulations for the new release. It seems that 3.1.6 release does not have this bug fixed. It's really a stop bug for me and prevents the whole webapp from starting. -Wesley - Original Message - From: Scott Ferguson [EMAIL PROTECTED] To: General Discussion for the Resin

Re: [Resin-interest] database config shouldbeinitializedbeforeanysingleton beans

2008-05-07 Thread wesley
This issue may be a little hard for me to fix due to the lazy loading of DataSource. I'll wait for the next release. :-) Thanks. -Wesley - Original Message - From: Mattias Jiderhamn [EMAIL PROTECTED] To: resin-interest@caucho.com Sent: Thursday, May 08, 2008 2:22 AM Subject: Re: [Resin

Re: [Resin-interest] Does Resin comet support work with non-blocking IO?

2008-05-05 Thread wesley
I've experienced the same problem. thread-max is set to 2048 in resin.conf and I could not run more than 2048 simultaneous comet clients because of the blocking IO. Any ideas? -Wesley - Original Message - From: Tim Perrett [EMAIL PROTECTED] To: resin-interest@caucho.com Sent: Tuesday

Re: [Resin-interest] database config should be initializedbeforeany singleton beans

2008-05-04 Thread wesley
} at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721) [04:08:57.373] {resin-15} at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643) [04:08:57.373] {resin-15} at java.lang.Thread.run(Thread.java:619) = -Wesley

Re: [Resin-interest] question about UserTransaction

2008-04-25 Thread wesley
Hi Riccardo, I'm using @In TransactionManager transaction; in servlets and @Component and it proved to be robust and of good performance. ps I don't think static is a good directive. -Wesley - Original Message - From: Riccardo Cohen [EMAIL PROTECTED] To: General Discussion

[Resin-interest] database config should be initialized before any singleton beans

2008-04-22 Thread wesley
snapshot version switch. Suggestions are appreciated, thanks. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] database config should be initializedbeforeany singleton beans

2008-04-22 Thread wesley
Thanks for your great work. It's a shame that Webbeans spec team has little respect of Resin. I've googled for webbeans resin and found only 1060 results, really shamed. I'll introduce resin's webbeans implementation to everyone I have influence on in China. -Wesley - Original Message

[Resin-interest] ActiveMQ connection timeout issue

2008-04-20 Thread wesley
I'm using ActiveMQ(v5.1) jca adapter in Resin 3.1 snapshot0331. In my topic producer I manually create a JmsSesion and JmsConnection using JmsFactory and send a TextMessage, then close the connection explicitly. In my message driven bean I did not inject anything because resin should be

Re: [Resin-interest] re write for resin newbie

2008-04-11 Thread wesley
How could I output resin logs both to stdout: and a file c:/resin.log? I've tried log name= level=info path=c:/resin.log,stdout: timestamp=[%H:%M:%S.%s] {%{thread}} / log name= level=info path=stdout:,c:/resin.log timestamp=[%H:%M:%S.%s] {%{thread}} / and no miracle happens. -

Re: [Resin-interest] Is resin-3.1.x compatible with jdk 1.6?

2008-04-07 Thread wesley
Yeah - Original Message - From: Liao Xuefeng [EMAIL PROTECTED] To: resin-interest@caucho.com Sent: Monday, April 07, 2008 5:20 PM Subject: [Resin-interest] Is resin-3.1.x compatible with jdk 1.6? Is resin-3.1.x compatible with jdk 1.6? thanks!

[Resin-interest] admin log already exists after server restart

2008-03-31 Thread wesley
this problem is a bit like http://bugs.caucho.com/view.php?id=2065 . The s080321 and s080331 snapshot both produce this problem. -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] How to configure Resin 3.1.6 with IIS7 under windows server 2008

2008-03-27 Thread wesley
be downloaded, add a MIME map. Detailed Error InformationModule StaticFileModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x80070032 Requested URL http://127.0.0.1:80/index.jsp Physical Path C:\inetpub\wwwroot\index.jsp Logon Method Anonymous Logon User Anonymous -Wesley

[Resin-interest] Unnecessary println the resolver in com.caucho.jsp.PageContextImpl

2008-03-24 Thread wesley
: System.out.println(RESOLV: + _elResolver); 1995: 1996: return _elResolver; 1997:} That cause every jsp execution producing bunch of RESOVL: AbstractVariableResolver[] RESOVL: AbstractVariableResolver[] RESOVL: AbstractVariableResolver[] ... Thanks. -Wesley

Re: [Resin-interest] Unnecessary println the resolver incom.caucho.jsp.PageContextImpl

2008-03-24 Thread wesley
Also line 2032 and line 2039. I've commented those lines and recompiled the class into resin.jar. It's perfectly serving now. Thanks. :-) -Wesley - Original Message - From: Scott Ferguson [EMAIL PROTECTED] To: General Discussion for the Resin application server resin-interest

[Resin-interest] Snapshot 080320 consumes 100% CPU time at 64bit windows

2008-03-24 Thread wesley
or something else, and I did not have the same network clients condition (as the production website) to fully profile and find the reason of bottleneck. Any suggestion will be appreciated. - Wesley ___ resin-interest mailing list resin-interest@caucho.com

Re: [Resin-interest] java com.caucho.server.resin.Resin and java-jar resin.jar behaves different

2008-03-10 Thread wesley
Hi Scott, Did you prove that execution of resin.jar or httpd.exe would cause the unexpected resource url? Regards, - Wesley - Original Message - From: wesley [EMAIL PROTECTED] To: General Discussion for the Resin application server resin-interest@caucho.com Sent: Friday, March 07

[Resin-interest] Bug when using thirdparty persistence layer with @PersistenceUnit

2008-03-06 Thread wesley
} I'm use Hibernate 3.2 as my persistence layer, with 3.1.s080304 snapshot. Other configurations were normal and simple, as http://wiki.caucho.com/Hibernate recommended. Regards - Wesley ___ resin-interest mailing list resin-interest@caucho.com

[Resin-interest] java com.caucho.server.resin.Resin and java -jar resin.jar behaves different

2008-03-06 Thread wesley
the two urls, one of which is /C:/JDK1.6.0/jre/lib/ext/meta-index/ I've written a simple test and comfired it. Should it be a bug of Resin.jar of httpd? Regards, - Wesley ___ resin-interest mailing list resin-interest@caucho.com http

[Resin-interest] Severe IoC/Interceptor bug in Resin 3.1.5

2008-03-01 Thread wesley
, everything is ok return hello; } } === Note the TODO in the service component code. Sorry I sent an incomplete mail a minute ago. Regards, -Wesley ___ resin-interest mailing list resin-interest@caucho.com

[Resin-interest] How to get non-singleton WebBeans in Quercus/PHP?

2008-01-16 Thread wesley
For instance: I want to get a configured web-bean instance by class name in php file below: = ?php echo java_bean(com.mycompany.MyBean); ? = package com.mycompany; @Component // no @Singleton public class MyBean {

[Resin-interest] Webbeans interceptor exceptions

2008-01-16 Thread wesley
(); 178: } and everything goes fine. Should this be a bug or something need extra config to go? -Wesley ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

Re: [Resin-interest] How Resin/Ioc used for struts2/xwork2, need an ObjectFactory implementation

2007-12-22 Thread wesley
(Not a managed webbean. Create a new instance.); return clazz.newInstance(); } } } = Thanks for your help, Scott. - Original Message - From: wesley [EMAIL PROTECTED] To: General Discussion for the Resin application

  1   2   >