[Resin-interest] Static method call in EL

2008-03-19 Thread Mattias Jiderhamn
How do I get a static method call from an EL expression? I can see that 
Resin implements this with com.caucho.el.StaticMethodExpr but I just 
can't make it happen with
  ${foo.Bar.staticMethod(myArg)}

Thanks in advance,
 Mattias


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


Re: [Resin-interest] 2 errors in simple project

2008-03-19 Thread Riccardo Cohen
I tried to use the eclipse environment to run this little sample with 
the help of Steffen Busch, but I continue to have the error:

com.caucho.amber.AmberRuntimeException: 'adlhessian.Ejbuser' with 
classloader EnvironmentClassLoader[web-app:http://localhost:8000] is an 
illegal instance class


Riccardo Cohen wrote:
 hi again
 I'm really blocked with my developments, can somebody help me with this 
 strange problem ? I can send the source it is very small and the error 
 is systematic.
 Thanks a lot.
 
 Riccardo Cohen wrote:
 ok thanks for the url info.


 Now for the amber problem : I cleaned all including work directory, 
 after first run, found a .class for all my ejbs (in classes folder). In 
 work/pre-enhance folder I have the following files :

 Ejbuser__ResinExt.class
 Ejbuser__ResinExt.java
 Ejbuser.class

 and nothing in work/ejb

 I dont' know if the files are valid, but the applications does not work, 
 and continue to try to recompile if I request it.
 I tried to add load-on-startup/ for the servlet that uses that ejb, 
 but it did not change. I also tried to put the whole application in 
 webapps/ROOT in resin folder, but no success.

 The error is systematic.

 would you like me to send you the full app folder ?

 Scott Ferguson wrote:
 This is much more complicated.  Amber does bytecode enhancement at the  
 classloader level, so there are complicated timing issues.   
 Specifically, if something loads the Ejbuser class before Amber has  
 configured it, you'll get the non-enhanced class.

 There might also be some cases where an error in generating the  
 enhanced class might not get logged properly.  Does the log show any  
 kind of error?  Also, is there a valid file in WEB-INF/work/pre-enhance?

 -- Scott

 

-- 
Très cordialement,

Riccardo Cohen
---
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49


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


[Resin-interest] Watchdog Manager

2008-03-19 Thread Mktg. Incorporate Fast
Hello,

 

1.)  When using the watchdog manager in an ISP environment, what does the 

 

resin-conf/resin/conf/resin.conf/resin-conf, file need to contain?  The
default resin.conf has items like watchdog, etc, but I would assume that
some of these config tags are not necessary. Or would the watchdog.conf,
call resin.conf and hence start a second/new watchdog.conf.? If that made
sense. 

 

2.) For an ISP the resin-root, is this simply the document root, or is
this a full resin install?

 

3.) For an ISP the chroot tag has been implemented in the most recent
snapshot.  Are there any docs on this yet?  I read the brief notes in Mantis
regarding this.  Is it the chroot tag within the watchdog-manager as
suggested in the bug comments. http://bugs.caucho.com/view.php?id=2426.  As
commented does this need to have: full resin, full jdk, resolv.conf, within
the chroot directory and I assumed owned by the user noted in the
watchdog.conf?

 

resin xmlns=http://caucho.com/ns/resin;

 

management

  user name=harry password=MD5HASH==/

/management

 

watchdog-manager

 

  watchdog-default

jvm-arg-Xmx256m/jvm-arg

jvm-arg-J-d32/jvm-arg

  /watchdog-default

 

  watchdog id=vssc1

user-nameresin/user-name

group-nameother/group-name

 

resin-conf/resin/conf/resin.conf/resin-conf

resin-root/resin/webapps/domain/resin-root

 

open-port address=99.99.99.99 port=80/

  /watchdog

 

/watchdog-manager

 

/resin

 

 

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


[Resin-interest] Cookie Domain

2008-03-19 Thread Andrew Fritz
I need to set the cookie-domain differently depending on whether I'm 
running local (for testing) or on our production servers. I haven't 
found an documentation about how I might do do that.

Basically, if it is our production cluster I want a .our.domain.com 
cookie domain. Right now the server issues www.out.domain.com or 
our.domain.com - no leading period - based on how I get to the site, 
which blows up if the users changes from www to non-www. If the server 
is running on our test environment (like my laptop) I want a cookie 
domain based on the request URL (default behavior).

Any suggestions. I do NOT want 2 config files.

Andrew


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


Re: [Resin-interest] Cookie Domain

2008-03-19 Thread Scott Ferguson

On Mar 19, 2008, at 3:37 PM, Andrew Fritz wrote:

 I need to set the cookie-domain differently depending on whether I'm
 running local (for testing) or on our production servers. I haven't
 found an documentation about how I might do do that.

 Basically, if it is our production cluster I want a .our.domain.com
 cookie domain. Right now the server issues www.out.domain.com or
 our.domain.com - no leading period - based on how I get to the site,
 which blows up if the users changes from www to non-www. If the server
 is running on our test environment (like my laptop) I want a cookie
 domain based on the request URL (default behavior).

You can use something like:

resin:choose
resin:when test=${dev}
   session-config cookie-domain=dev.com/
/resin:when
resin:otherwise
   session-config cookie-domain=domain.com/
/resin:otherwise
/resin:choose

Then use -Ddev=true when starting Resin.

-- Scott



 Any suggestions. I do NOT want 2 config files.

 Andrew


 ___
 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] Quercus Phorum DB Errors, Closing dangling connections

2008-03-19 Thread Matt Johnston
I am trying to use quercus to run phorum. I put my phorum installation 
into my war and tried to run it. When I try to run any pages, I get an 
error:

Closing dangling connections.  All connections must have a close() in a 
finally block.
[21:00:28.114] {http--8080-7} java.lang.IllegalStateException: unclosed 
connection: 
UserPoolItem[jdbc:mysql://localhost:3306/?characterEncoding=ISO8859_1-0,7] 
was allocated at
[21:00:28.114] {http--8080-7}   at 
com.caucho.jca.UserPoolItem.init(UserPoolItem.java:95)
[21:00:28.114] {http--8080-7}   at 
com.caucho.jca.UserPoolItem.init(UserPoolItem.java:101)
[21:00:28.114] {http--8080-7}   at 
com.caucho.jca.PoolItem.toActive(PoolItem.java:249)
[21:00:28.114] {http--8080-7}   at 
com.caucho.jca.ConnectionPool.create(ConnectionPool.java:922)
[21:00:28.114] {http--8080-7}   at 
com.caucho.jca.ConnectionPool.allocatePool(ConnectionPool.java:780)


Is there any way to tell what php code is causing this problem? Did I 
not setup something right? I defined the datasource in my web.xml

servlet-mapping url-pattern=*.php
 
servlet-class=com.caucho.quercus.servlet.QuercusServlet
 init
   databasejava:comp/env/jdbc/LattaPhorumDS/database
 /init
/servlet-mapping



-- 

Matt Johnston
http://www.lattaoutdoors.com
http://www.gearapalooza.com


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