Re: [Resin-interest] New 4.0.5 install constantly dropping connections on unloaded server

2010-03-26 Thread Rick Mann
I spoke a bit too soon. WordPress behaves exactly like it did before; title of 
blog posts don't appear anywhere. I had forgotten to tell resin where 
resin-root was, and it didn't load the DB driver.

So, I feel like I'm pretty close to having a working 4.0.5, if it stays up and 
stable for a while, and if I can address the WordPress titles issue.

On Mar 26, 2010, at 23:25:31, Rick Mann wrote:

> Well, it seems to be running pretty solidly like that. However, my only PHP 
> app, WordPress, can't even find its database connection now.
> 
> Moreover, I can't, no matter how much I crank up the logging, get Quercus to 
> log anything about anything it does. If I modify a page, I get an info line 
> indicating that the size changed (implying it's recompiling the page).
> 
> I had some problems with Quercus and 4.0.5 before, but they were limited to 
> certain constructs not rendering correctly. Why it's at all different running 
> with an un-make-ed version of resin is beyond me.
> 
> -- 
> Rick
> 
> On Mar 23, 2010, at 13:57:33, Aaron Freeman wrote:
> 
>> Yes, we just untar it and run it with something like the following script:
>> 
>> /**/
>> 
>> export JAVA_HOME=/opt/java/
>> export RESIN_HOME=/opt/[whatever]/ext/resin-pro-4.0.5
>> export SERVER_ROOT=/opt/[whatever]/server
>> 
>> $JAVA_HOME/bin/java \
>> -server \
>> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
>> -Djava.security.egd=/dev/urandom \
>> -Dresin.home=${RESIN_HOME} \
>> -jar ${RESIN_HOME}/lib/resin.jar \
>> -conf ${SERVER_ROOT}/conf/resin.xml \
>> $*
>> 
>> /**/
>> 
>> Aaron
>> 
>> 
>> On 3/23/2010 3:50 PM, Rick Mann wrote:
>>> I have not. I think that's probably a good idea, so late tonight I'll try 
>>> installing it fresh.
>>> 
>>> What's the right way to invoke it? Just not run make/make install?
>>> 
>>> On Mar 23, 2010, at 13:46:43, Aaron Freeman wrote:
>>> 
>>> 
>>> 
 Rick,
 
 Out of curiosity did you trying running a vanilla version of 4.0.5 without 
 compiling (using Java sockets instead of the native sockets)?  I am 
 curious if you still have the issue with it uncompiled.
 
 Aaron
 
 
 On 3/23/2010 2:15 PM, Rick Mann wrote:
 
 
> On Mar 23, 2010, at 12:10:35, Scott Ferguson wrote:
> 
> 
> 
> 
> 
>> Rick Mann wrote:
>> 
>> 
>> 
>> 
>>> Scott, I've opened a bug for my 4.0.5 woes, including the config file 
>>> and logs from my much more modern Open Solaris machine:
>>> 
>>> 
>>> 
>>> http://bugs.caucho.com/view.php?id=3960
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> Thanks for the detailed bug report. We're not seeing the behavior here 
>> yet, but the details should help track down the differences.
>> 
>> 
>> 
>> 
> Did the way I built and installed it have anything to do with the 
> flakiness?
> 
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG - 
> 
> www.avg.com
> 
> 
> Version: 9.0.791 / Virus Database: 271.1.1/2765 - Release Date: 03/23/10 
> 02:33:00
> 
> 
> 
> 
> 
 ___
 resin-interest mailing list
 
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest
 
 
 
>>> 
>>> 
>>> ___
>>> resin-interest mailing list
>>> 
>>> resin-interest@caucho.com
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>> 
>>> 
>>> 
>>> 
>>> 
>>> No virus found in this incoming message.
>>> Checked by AVG - 
>>> www.avg.com
>>> 
>>> Version: 9.0.791 / Virus Database: 271.1.1/2765 - Release Date: 03/23/10 
>>> 02:33:00
>>> 
>>> 
>>> 
>> 
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] New 4.0.5 install constantly dropping connections on unloaded server

2010-03-26 Thread Rick Mann
Well, it seems to be running pretty solidly like that. However, my only PHP 
app, WordPress, can't even find its database connection now.

Moreover, I can't, no matter how much I crank up the logging, get Quercus to 
log anything about anything it does. If I modify a page, I get an info line 
indicating that the size changed (implying it's recompiling the page).

I had some problems with Quercus and 4.0.5 before, but they were limited to 
certain constructs not rendering correctly. Why it's at all different running 
with an un-make-ed version of resin is beyond me.

-- 
Rick

On Mar 23, 2010, at 13:57:33, Aaron Freeman wrote:

> Yes, we just untar it and run it with something like the following script:
> 
> /**/
> 
> export JAVA_HOME=/opt/java/
> export RESIN_HOME=/opt/[whatever]/ext/resin-pro-4.0.5
> export SERVER_ROOT=/opt/[whatever]/server
> 
> $JAVA_HOME/bin/java \
> -server \
> -Djava.util.logging.manager=com.caucho.log.LogManagerImpl \
> -Djava.security.egd=/dev/urandom \
> -Dresin.home=${RESIN_HOME} \
> -jar ${RESIN_HOME}/lib/resin.jar \
> -conf ${SERVER_ROOT}/conf/resin.xml \
> $*
> 
> /**/
> 
> Aaron
> 
> 
> On 3/23/2010 3:50 PM, Rick Mann wrote:
>> I have not. I think that's probably a good idea, so late tonight I'll try 
>> installing it fresh.
>> 
>> What's the right way to invoke it? Just not run make/make install?
>> 
>> On Mar 23, 2010, at 13:46:43, Aaron Freeman wrote:
>> 
>>   
>> 
>>> Rick,
>>> 
>>> Out of curiosity did you trying running a vanilla version of 4.0.5 without 
>>> compiling (using Java sockets instead of the native sockets)?  I am curious 
>>> if you still have the issue with it uncompiled.
>>> 
>>> Aaron
>>> 
>>> 
>>> On 3/23/2010 2:15 PM, Rick Mann wrote:
>>> 
>>> 
 On Mar 23, 2010, at 12:10:35, Scott Ferguson wrote:
 
   
 
   
 
> Rick Mann wrote:
> 
> 
> 
> 
>> Scott, I've opened a bug for my 4.0.5 woes, including the config file 
>> and logs from my much more modern Open Solaris machine:
>> 
>> 
>> 
>> http://bugs.caucho.com/view.php?id=3960
>> 
>> 
>> 
>>   
>> 
>>   
>> 
> Thanks for the detailed bug report. We're not seeing the behavior here 
> yet, but the details should help track down the differences.
> 
> 
> 
> 
 Did the way I built and installed it have anything to do with the 
 flakiness?
 
   
 
 
 
 No virus found in this incoming message.
 Checked by AVG - 
 
 www.avg.com
 
  
 Version: 9.0.791 / Virus Database: 271.1.1/2765 - Release Date: 03/23/10 
 02:33:00
 
   
 
   
 
>>> ___
>>> resin-interest mailing list
>>> 
>>> resin-interest@caucho.com
>>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>> 
>>> 
>>> 
>> 
>> 
>> ___
>> resin-interest mailing list
>> 
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>> 
>>   
>> 
>> 
>> 
>> No virus found in this incoming message.
>> Checked by AVG - 
>> www.avg.com
>>  
>> Version: 9.0.791 / Virus Database: 271.1.1/2765 - Release Date: 03/23/10 
>> 02:33:00
>> 
>>   
>> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Hibernate transactions

2010-03-26 Thread Rick Mann
Also, the link at the very bottom of that page gets a 500 error:

http://www.caucho.com/resin/examples/amber-basic/index.xtp

> 500 Servlet Exception
> 
> 'ejb3_basic_courses' is not a valid database table.  Either the table needs
> to be created or the create-database-tables attribute must be set.
> 
> com.caucho.db.sql.SQLParseException: 'ejb3_basic_courses' is an unknown
> table.  'FROM table' requires an existing table.
> select 1 from ejb3_basic_courses o where 1=0
> 
> Resin/4.0.s100325 Server: ''



On Mar 26, 2010, at 18:10:01, Stargazer wrote:

> Resin 4.0.5 - following http://wiki.caucho.com/Hibernate works fine, but 
> I'd like to take it to the next level and persist something.
> Adding
> EntityTransaction tx = _manager.getTransaction();
> tx.begin();
> ...
> to the end of the CourseServlet.java file throws up
> 
> java.lang.IllegalStateException: Container-manager @PersistenceContext 
> may not use getTransaction.
> 
> What have I missed please?
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Hibernate transactions

2010-03-26 Thread Stargazer
Resin 4.0.5 - following http://wiki.caucho.com/Hibernate works fine, but 
I'd like to take it to the next level and persist something.
Adding
 EntityTransaction tx = _manager.getTransaction();
 tx.begin();
 ...
to the end of the CourseServlet.java file throws up

java.lang.IllegalStateException: Container-manager @PersistenceContext 
may not use getTransaction.

What have I missed please?



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


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

2010-03-26 Thread Scott Ferguson
As a followup, the old-style JNDI registration does exist in Resin 
4.0.5. It requires an ejb-server in the  which looks like:



  
   ...

Basic  support will be added to 4.0.6, although the full 
support won't be ready until 4.0.8.

-- Scott

Scott Ferguson wrote:
> smallufo wrote:
>   
>> In Resin 4.0.4
>>
>> I follow this step :
>> http://www.caucho.com/resin/doc/resin-ejb.xtp#Hello, World 
>> 
>> 
>
> Do you have a META-INF/ejb-jar.xml? We're currently requiring that file 
> as a marker for classpath scanning (although it appears that we should 
> always scan for those classes.)
>
> - Scott
>   
>> public interface PersonDao {
>>  //... methods...
>> }
>>
>> @Stateless
>> public class PersonServiceImpl implements PersonService , Serializable {
>>   @Inject
>>   private PersonDao personDao;
>> ...
>> }
>>
>> The dao can be injected to Servlet WITHOUT a @Stateless annotation , 
>> but when add @Stateless , it throws :
>>
>> com.caucho.config.ConfigException: foo.HelloServlet.personService: 
>> javax.enterprise.inject.UnsatisfiedResolutionException: Can't find a 
>> bean for 'interface foo.PersonService' because no beans implementing 
>> that class have been registered with the injection manager 
>> InjectManager[web-app:http://test.smallufo.com/testapp-1].
>>   at 
>> com.caucho.config.ConfigException.create(ConfigException.java:102)
>>   at 
>> com.caucho.config.ConfigException.create(ConfigException.java:125)
>>   at 
>> com.caucho.config.inject.InjectionTargetImpl$FieldInjectProgram.inject(InjectionTargetImpl.java:809)
>>   at 
>> com.caucho.config.inject.InjectionTargetImpl.inject(InjectionTargetImpl.java:266)
>>   at 
>> com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:1260)
>>   at 
>> com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:1142)
>>   at 
>> com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:98)
>>   at 
>> com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:183)
>>   at 
>> com.caucho.server.webapp.AccessLogFilterChain.doFilter(AccessLogFilterChain.java:103)
>>   at 
>> com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:286)
>>   at 
>> com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:780)
>>   at 
>> com.caucho.server.connection.TcpConnection.dispatchRequest(TcpConnection.java:600)
>>   at 
>> com.caucho.server.connection.TcpConnection.handleRequestsImpl(TcpConnection.java:566)
>>   at 
>> com.caucho.server.connection.TcpConnection.handleRequests(TcpConnection.java:519)
>>   at 
>> com.caucho.server.connection.TcpConnection$AcceptTask.doTask(TcpConnection.java:1100)
>>   at 
>> com.caucho.server.connection.TcpConnection$ConnectionReadTask.runThread(TcpConnection.java:1037)
>>   at 
>> com.caucho.server.connection.TcpConnection$AcceptTask.run(TcpConnection.java:1068)
>>   at 
>> com.caucho.util.ThreadPool$PoolThread.runTasks(ThreadPool.java:901)
>>   at com.caucho.util.ThreadPool$PoolThread.run(ThreadPool.java:866)
>> Caused by: javax.enterprise.inject.UnsatisfiedResolutionException: 
>> Can't find a bean for 'interface foo.PersonService' because no beans 
>> implementing that class have been registered with the injection 
>> manager InjectManager[web-app:http://test.smallufo.com/testapp-1].
>>   at 
>> com.caucho.config.inject.InjectManager.unsatisfiedException(InjectManager.java:1389)
>>   at 
>> com.caucho.config.inject.InjectManager.resolveByInjectionPoint(InjectManager.java:1545)
>>   at 
>> com.caucho.config.inject.InjectManager.resolveByInjectionPoint(InjectManager.java:1523)
>>   at 
>> com.caucho.config.inject.InjectManager.getInjectableReference(InjectManager.java:1476)
>>   at 
>> com.caucho.config.inject.InjectionTargetImpl$FieldInjectProgram.inject(InjectionTargetImpl.java:805)
>>   ... 16 more
>> Http[2] HTTP/1.1 500 Internal Server Error
>> 
>>
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>>   
>> 
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>   



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] minor issue in the security overview documentation

2010-03-26 Thread Jon Stevens
http://caucho.com/resin-4.0/admin/security-overview.xtp

public void initialize(Subject subject,
CallbackHandler handler,
Map sharedState,
Map options)
{
_subject = subject;
_handler = handler;
_state = sharedState;

_userName = (String) _options.get("user");
_password = (String) _options.get("password");
}

I don't think that _options is correct. =)

jon
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest