Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-04-07 Thread smallufo
Hi I tried both this and the servlet-hack solution But resin(4.0.40) complains *xxx.jar!/META-INF/persistence.xml:4: persistence xmlns=http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence is an unexpected top-level tag. **2: persistence

Re: [Resin-interest] Hibernate and JPA (was Resin 4 and Java 8)

2015-04-07 Thread smallufo
My JPA is implemented by hibernate , managed by spring. Is it possible to disable amber ? 2015-04-07 17:23 GMT+08:00 smallufo small...@gmail.com: Hi I tried both this and the servlet-hack solution But resin(4.0.40) complains *xxx.jar!/META-INF/persistence.xml:4: persistence xmlns=http

[Resin-interest] memory and temp-file problem

2012-02-12 Thread smallufo
the files generated by wicket , Resin itself also generates terrible BIG file under resin_home/resin-data/app-0/distcache : -rw-rw-r-- 1 smallufo smallufo 30903631872 Feb 12 22:05 data.db -rw-rw-r-- 1 smallufo smallufo33554432 Feb 12 22:03 mnode.db It takes about 30GB within hours ... It grows

Re: [Resin-interest] [4.0.25] tremendously increases my server load when starts-up

2012-02-11 Thread smallufo
Hi sorry for reply late I tried this snap , and the situation seems the same... after start , the server almost hangs there $ w 23:40:29 up 55 days, 5:40, 2 users, load average: 519.06, 252.13, 96.59 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT smallufo pts/1

Re: [Resin-interest] [4.0.25] tremendously increases my server load when starts-up

2012-02-03 Thread smallufo
GiB) All are local addresses , no VM installed. 2012/2/3 Scott Ferguson f...@caucho.com ** On 02/02/2012 06:53 PM, smallufo wrote: I cannot operate my server when I start resin 4.0.25 The load is so high that the server almost hangs there... Even a ls is so sluggish... It happens even

[Resin-interest] Wicket page error if page contains special chars under OS X

2012-02-03 Thread smallufo
The problem seems exists for a long time... And it only occurs in resin + Mac OS X , not Linux For a wicket page that contains special characters , (such as Chinese chars , and sure, it's encoded in UTF8) and jared. It will be un-jared and loaded by resin's classloader , But , these special

[Resin-interest] [4.0.25] tremendously increases my server load when starts-up

2012-02-02 Thread smallufo
When I execute 'resinctl start' , I notice my server almost hangs And the server load is very high : $ w 00:07:51 up 46 days, 6:07, 3 users, load average: 526.31, 298.59, 121.04 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT smallufo pts/1destiny Wed16

Re: [Resin-interest] [4.0.25] tremendously increases my server load when starts-up

2012-02-02 Thread smallufo
[2012/02/03 00:08:14.370] {main} Java(TM) SE Runtime Environment 1.6.0_22-b04, UTF-8, zh [2012/02/03 00:08:14.371] {main} Java HotSpot(TM) Server VM 17.1-b03, 32, mixed mode, Sun Microsystems Inc. 2012/2/3 Scott Ferguson f...@caucho.com ** On 02/02/2012 08:12 AM, smallufo wrote: When I

[Resin-interest] resin 4.0.25 jersey JNDI problem

2012-02-01 Thread smallufo
I have the same problem with this : http://bugs.caucho.com/bug_view_advanced_page.php?bug_id=4215 [12-02-02 10:01:52.017] {resin-230} classpath:META-INF/caucho/app-default.xml:49: javax.naming.NameNotFoundException: /com.sun.jersey.config/CDIExtension: JNDI rebind requires the parent Context

[Resin-interest] compile 4.0.15 : missing /usr/include/gnu/stubs.h on a x86-64 machine

2010-12-29 Thread smallufo
I have two CentOS 5.4 machines , one is i686 , another is x86-64 4.0.15 installs successfully on i686 machine. (with stubs-32.h in /usr/include/gnu) But , when compiling 4.0.15 on x86_64 machine (with stubs-64.h in /usr/include/gnu) I got file missing error : /usr/include/gnu/stubs.h:7:27 , no

Re: [Resin-interest] compile 4.0.15 : missing /usr/include/gnu/stubs.h on a x86-64 machine

2010-12-29 Thread smallufo
sorry , typo , I mean 4.0.13 2010/12/30 smallufo small...@gmail.com I have two CentOS 5.4 machines , one is i686 , another is x86-64 4.0.15 installs successfully on i686 machine. (with stubs-32.h in /usr/include/gnu) But , when compiling 4.0.15 on x86_64 machine (with stubs-64.h in /usr

[Resin-interest] How to specify JVM encoding in Mac OS X ?

2010-09-16 Thread smallufo
I am a newbie of Mac OS X , My Resin (4.0.10) has an encoding problem under mac os x ... JVM starts without UTF-8 encoding , results in problems when parsing resources... This is resin's startup logs : Resin-4.0.10 (built Tue, 24 Aug 2010 10:49:02 PDT) Copyright(c) 1998-2010 Caucho Technology.

[Resin-interest] @Inject works in 4.0.7 but fails in 4.0.9

2010-08-05 Thread smallufo
@Stateless @Repository public class MergingServiceImpl implements Serializable, MergingService { @Inject private UserOldDao userOldDao; ... } This works in 4.0.7 , but fails in 4.0.9 2010-08-06 08:23:53,388 INFO impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name

[Resin-interest] Is resin compatible with jetty's ContinuationCometdServlet ?

2010-07-22 Thread smallufo
I am trying to develop a cometd powered component in Wicket , which runs in resin-4.0.9 I follow wicketstuff-push's sample code , but the listening component cannot get the event . I wonder whether resin compatible with Jetty's ContinuationCometdServlet ? My config : web.xml : servlet

Re: [Resin-interest] CanDI unable to inject @Stateless

2010-03-24 Thread smallufo
2010/3/25 Scott Ferguson f...@caucho.com Thanks. Can you add an ejb-server/ to your resin.xml (inside the cluster). That's a Resin bug because the ejb-server/ wasn't supposed to be required any more. -- Scott Thank you , it works ! public class HelloServlet extends HttpServlet { @EJB

Re: [Resin-interest] CanDI unable to inject @Stateless

2010-03-24 Thread smallufo
valid settings I can refer to (I've searched a lot ) ? 2010/3/25 Scott Ferguson f...@caucho.com smallufo wrote: 2010/3/25 Scott Ferguson f...@caucho.com mailto:f...@caucho.com Thank you , it works ! public class HelloServlet extends HttpServlet { @EJB / @Inject both works

[Resin-interest] Is Wicket-for-Resin no longer supported ?

2010-03-23 Thread smallufo
I follow this doc : http://www.caucho.com/resin/doc/resin-ioc.xtp#Injection pattern But cannot compile : http://old.nabble.com/-4.0.3--CanDI-in-Wicket-:-InjectManager.injectObject()---td27494543.html#a27494543 I then grabbed the source code , after doing some cleaning , I cannot find

[Resin-interest] CanDI unable to inject @Stateless

2010-03-23 Thread smallufo
In Resin 4.0.4 I follow this step : http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World public interface PersonDao { //... methods... } @Stateless public class PersonServiceImpl implements PersonService , Serializable { @Inject private PersonDao personDao; ... } The dao can be

Re: [Resin-interest] CanDI unable to inject @Stateless

2010-03-23 Thread smallufo
2010/3/24 Aaron Freeman aaron.free...@layerz.com Can you show your resin-web.xml? I only define database tags there : web-app xmlns=http://caucho.com/ns/resin; database jndi-name=jdbc/data driver type=com.mysql.jdbc.Driver

Re: [Resin-interest] CanDI unable to inject @Stateless

2010-03-23 Thread smallufo
Mmm... There is no ejb-jar.xml in META-INF/ After adding an empty ejb-jar.xml , it still doesn't work. No matter 4.0.4 or 4.0.5 2010/3/24 Scott Ferguson f...@caucho.com smallufo wrote: In Resin 4.0.4 I follow this step : http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World

Re: [Resin-interest] CanDI unable to inject @Stateless

2010-03-23 Thread smallufo
2010/3/24 smallufo small...@gmail.com Mmm... There is no ejb-jar.xml in META-INF/ After adding an empty ejb-jar.xml , it still doesn't work. No matter 4.0.4 or 4.0.5 BTW I tried a lot of ejb-jar.xml settings , but non works... Is there any working example for this simple scenario

Re: [Resin-interest] How to make this simplest CanDI work ?

2010-03-21 Thread smallufo
After a whole day work (but in vain) , I modified my code : I take off all hibernate-related settings/libraries from persistence.xml and maven dependencies , I just want to first use resin's Amber to test whether CanDI works... This is database settings in resin-web.xml : database

Re: [Resin-interest] How to make this simplest CanDI work ?

2010-03-21 Thread smallufo
; } }); } 2010/3/22 smallufo small...@gmail.com After a whole day work (but in vain) , I modified my code : I take off all hibernate-related settings/libraries from persistence.xml and maven dependencies , I just want to first use resin's Amber to test whether CanDI

[Resin-interest] 4.0.5 keeps throwing NPE from TransactionImpl.close()

2010-03-20 Thread smallufo
from this sample : http://caucho.com/resin-4.0/examples/servlet-hello/index.xtp A very basic hello Servlet always shows this message in the log: [10-03-20 23:21:24.237] {http://*:8080-6} WebApp[http://test.com/test] active [10-03-20 23:21:24.342] {http://*:8080-6} java.lang.NullPointerException

[Resin-interest] How to make this simplest CanDI work ?

2010-03-20 Thread smallufo
I am new to CanDI , I want to migrate my spring app to JavaEE6 , but having a lot of troubles in Resin (4.0.5) CanDI : There is no working sample in the resin site , most are outdated ... Here is my very basic sample , just JPA 2 and a Servlet : public interface PersonDao { public Person

Re: [Resin-interest] How to make this simplest CanDI work ?

2010-03-20 Thread smallufo
the relation with beans.xml and resin-web.xml ? yes, beans.xml is part of JSR-299. resin-web.xml has the same role as web.xml, it is processed by Resin after web.xml. You can place resin specific / non-standard configuration into resin-web.xml. smallufo írta: I am new to CanDI , I want

Re: [Resin-interest] resin 4.0.4 lacks of bin/ dir

2010-03-03 Thread smallufo
Well , for an application server , having a bin/ directory with some start-up / shut-down scripts is natural / conventional for most developers... 2010/3/4 Emil Ong e...@caucho.com BTW, the command to run Resin with console output has changed to java -jar lib/resin.jar console if you're used

[Resin-interest] resin 4.0.4 lacks of bin/ dir

2010-02-26 Thread smallufo
resin 4.0.4 lacks of bin/ directory ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] [4.0.3] Two Strange Errors

2010-02-18 Thread smallufo
Hi , I am trying 4.0.3 , and found two strange errors that never occurred in 3.1.9 : First is db error : [10-02-18 23:01:50.861] {http--8080-104} SessionImpl[aaahmbrfEEwfP7hs0KHBs,]: can't serialize session [10-02-18 23:01:50.861] {http--8080-104} java.lang.IllegalStateException: Block

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

2010-02-07 Thread smallufo
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 javaee-16.jar from resin 4.0.2 , but I cannot find that ... I grabbed glassfish v3 but sees no such annotation , Is it deprecated ?

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

2010-02-07 Thread smallufo
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/7 smallufo small...@gmail.com: I am migrating from Spring to JSR-299 , I followed

[Resin-interest] [4.0.3] CanDI in Wicket : InjectManager.injectObject() ?

2010-02-07 Thread smallufo
I am trying to integrate CanDI in Wicket , but ... In the bottom of the document : http://www.caucho.com/resin/doc/resin-ioc.xtp private InjectManager _webBeans = InjectManager.create(); _webBeans.injectObject(component); But , I cannot find an injectObject() method in InjectManager ...

Re: [Resin-interest] [4.0.3] No bean named 'resin-webbeans-factory' is defined

2010-02-06 Thread smallufo
I found resin-support.jar in 3.1.9 , but it seems not compatible with 4.0.3 , and throws these exceptions : ClassNotFoundException: com.caucho.webbeans.manager.WebBeansContainer in EnvironmentClassLoader [...] 2010/2/6 smallufo small...@gmail.com Hi I'm trying to migrate from resin 3.1.9

Re: [Resin-interest] resin class reloading not working (3.1.19)

2009-12-23 Thread smallufo
2009/12/23 Alex a...@caucho.com Hi , this is my resin's init message : I grep no HotSwap keyword here ... Putting Spring aside for a moment, make sure the following is done: - compile resin.jni (./configure --prefix=/pathtoyourresin; make; make install) Oops , I know what went wrong . I

[Resin-interest] resin class reloading not working (3.1.19)

2009-12-22 Thread smallufo
Hi : I remember long long time ago , resin was (the only one that) able to reload only the modified class , not the entire web-app. That was great ! But after I upgraded to some version (sorry , I forget what version , it is long ago) , it didn't work anymore. Today , I check again , 3.1.19

Re: [Resin-interest] resin class reloading not working (3.1.19)

2009-12-22 Thread smallufo
[09:04:53.377] {main} Java(TM) SE Runtime Environment 1.6.0_17-b04, UTF-8, zh [09:04:53.378] {main} Java HotSpot(TM) Client VM 14.3-b01, 32, mixed mode, sharing, Sun Microsystems Inc. [09:04:53.378] {main} user.name: smallufo [09:04:53.378] {main} resin.home = /usr/java/resin/ [09:04:53.379] {main

Re: [Resin-interest] resin class reloading not working (3.1.19)

2009-12-22 Thread smallufo
2009/12/23 smallufo small...@gmail.com Hi , this is my resin's init message : I grep no HotSwap keyword here ... log level is enabled : logger name= level=all/ Oops sorry , this should be log , not logger But after I restart resin , I still cannot grep any HotSwap keyword in jvm

[Resin-interest] Resin 3.1.9 behind apache's ProxyPass problem

2009-11-23 Thread smallufo
Hi , I am running resin 3.1.9 in my db server , with host name 'db' and private IP address (192.168.x.x). In the frontend , apache httpd redirect '/servlet' pattern to the backend db with the two lines : ProxyPass /servlet http://db:8080/servlet ProxyPassReverse /servlet http://db:8080/servlet

Re: [Resin-interest] Resin 3.1.9 behind apache's ProxyPass problem

2009-11-23 Thread smallufo
2009/11/24 Alex a...@caucho.com ProxyPreserveHost Wow , It works !!! Thank you very much ! ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest

[Resin-interest] How to make only some directory's (and beneath) PHPs processed by quercus ?

2009-10-07 Thread smallufo
I tried to make quercus to process some of my PHPs with resin 4.0.1. I want to make 'quercus/ and all its sub-directory's PHPs processed by quercus. So , I tried url-pattern=/quercus/*.php , and url-pattern=/quercus/**/*.php But quercus still parse my other directory's php , which is not what I

[Resin-interest] Howto inject Spring Beans into QuercusModule ?

2009-10-05 Thread smallufo
Hi : I am interested in integrating Spring and PHP. I noticed QuercusModule from here : http://www.caucho.com/resin-3.0/quercus/tutorial/module/index.xtp I wonder if it's possible to inject Spring's bean into QuercusModule ? And... If my QuercusModule is compiled (by myself) and jar-ed into

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

2009-10-05 Thread smallufo
pass Chinese words back. see my attachments for detail . If you cannot see the attachment , I uploaded to here : http://i273.photobucket.com/albums/jj212/smallufo/quercus_Chinese_bug.gif I've tried every setting in http://www.caucho.com/resin/doc/quercus.xtp#encoding , but still in vain. Can

[Resin-interest] resin 3.2.1 , mod_caucho seems not working ???

2008-10-31 Thread smallufo
$ tail /etc/httpd/conf/httpd.conf LoadModule caucho_module /usr/lib/httpd/modules/mod_caucho.so ResinConfigServer localhost 6800 CauchoConfigCacheDirectory /tmp CauchoStatus yes in resin.xml host id= root-directory=. web-app id=/ root-directory=webapps/ROOT/ web-app id=/resin-admin